Skip to content

Instantly share code, notes, and snippets.

@1wheel
Created August 13, 2018 01:21
Show Gist options
  • Save 1wheel/89ec11ab72a542b2a009d4fcd7b78b4c to your computer and use it in GitHub Desktop.
Save 1wheel/89ec11ab72a542b2a009d4fcd7b78b4c to your computer and use it in GitHub Desktop.
summer-heat
// console.clear()
d3.select('body').selectAppend('div.tooltip.tooltip-hidden')
var months = []
years.forEach(year => {
year.months
.forEach((d, i) => months.push({year: year.year, tmp: d, month: i}))
})
byMonth = d3.nestBy(months, d => d.month)
byMonth.forEach(month => {
month.forEach((d, i) => {
d.rolling = d3.mean(month.slice(i - 10, i + 1), d => d.tmp)
})
var monthReg = month.map(d => [d.year, d.tmp])
month.l = ss.linearRegressionLine(ss.linearRegression(monthReg))
month.min = d3.min(month, d => d.tmp)
if (month.key == 1) month.min += 2
if (month.key == 0) month.min += .6
})
var sel = d3.select('#graph').html('')
var c = d3.conventions({sel, margin: {left: 40}})
c.x.domain([0, 12])
c.y.domain(d3.extent(months, d => d.tmp))
c.svg.appendMany('rect', d3.range(12))
.at({
width: c.x(1),
x: d => c.x(d),
height: c.height,
opacity: d => d % 2 ? .04 : .08
})
c.xAxis
.tickFormat(i => 'Jan Feb March April May June July Aug Sept Oct Nov Dec'.split(' ')[i])
.tickValues(d3.range(12))
c.yAxis
.ticks(6)
.tickSize(c.width)
.tickFormat(d => d + '° C')
d3.drawAxis(c)
c.svg.select('.x')
.translate(0, 0)
.selectAll('.tick')
.translate(d => [c.x(d + .5), c.y(byMonth[d].min)])
c.svg.selectAll('.y')
.translate(c.width, 0)
var pad = innerWidth < 500 ? 3 : 10
var yearScale = d3.scaleLinear()
.domain(d3.extent(years, d => d.year))
.range([pad, c.x(1) - pad])
var line = d3.line()
.x(d => yearScale(d.year))
.y(d => c.y(d.rolling))
.curve(d3.curveStep)
.defined(d => !isNaN(d.rolling))
var monthSel = c.svg.appendMany('g', byMonth)
.translate(d => c.x(d.key), 0)
monthSel
.append('path')
.at({
d: line,
stroke: '#000',
fill: 'none',
strokeWidth: .0,
})
var y0 = years[0].year
var y1 = 2017
monthSel.append('path')
.at({
d: d => `M ${yearScale(y0)} ${c.y(d.l(y0))} L ${yearScale(y1)} ${c.y(d.l(y1))}`,
stroke: '#f0f',
strokeWidth: 3,
fill: '#f0f'
})
.attr('marker-end', 'url(#arrow)')
months.forEach(d => delete d.rolling)
var circleSel = monthSel
.appendMany('circle', d => d)
.at({
r: .7,
strokeWidth: 5,
stroke: d => d.year == 1881 ? 'steelblue' : d.year == 2017 ? 'orange' : '#f00',
strokeOpacity: d => d.year == 1881 || d.year == 2017 ? .5 : .01,
stroke: '#f00',
strokeOpacity: .01,
opacity: innerWidth < 500 ? .7 : 1,
cx: d => yearScale(d.year),
cy: d => c.y(d.tmp)
})
.call(d3.attachTooltip)
.on('mouseover', d => {
circleSel
.classed('active', e => e.year == d.year)
})
.on('mouseout', d => {
circleSel.classed('active', 0)
})
// .classed('active', d => d.year == 1881 || d.year == 2017)
var octSel = monthSel.filter(d => d.key == 9)
octSel.append('g')
.translate(d => [pad - 27, c.y(d[0].tmp) + 2])
.append('text.anno').text(1881)
.at({textAnchor: 'end', dy: '-.3em', fontSize: 10, dx: 10, opacity: .6})
.parent()
.append('path')
.at({
d: 'M 0,0 A 13.09 13.09 0 1 0 26,1',
stroke: '#ccc',
fill: 'none',
})
octSel.append('g')
.translate(d => [c.x(1) - pad, c.y(d[136].tmp) - 2])
.append('text.anno').text(2017)
.at({textAnchor: 'start', dy: '1em', fontSize: 10, dx: 14, opacity: .6})
.parent()
.append('path')
.at({
d: 'M 0,0 A 13.09 13.09 0 1 1 26,1',
stroke: '#ccc',
fill: 'none',
})
c.svg.append('marker')
.attr('id', 'arrow')
.attr('viewBox', '-10 -10 20 20')
.attr('markerWidth', 17)
.attr('markerHeight', 17)
.attr('orient', 'auto')
.append('path')
.attr('d', 'M4,0 L0,-2 L 0,2Z')
.at({
fill: '#f0f'
})
/**
* @license
* Lodash lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE
*/
;(function(){function n(n,t){return n.set(t[0],t[1]),n}function t(n,t){return n.add(t),n}function r(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function e(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u<i;){var o=n[u];t(e,o,r(o),n)}return e}function u(n,t){for(var r=-1,e=null==n?0:n.length;++r<e&&false!==t(n[r],r,n););return n}function i(n,t){for(var r=null==n?0:n.length;r--&&false!==t(n[r],r,n););
return n}function o(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(!t(n[r],r,n))return false;return true}function f(n,t){for(var r=-1,e=null==n?0:n.length,u=0,i=[];++r<e;){var o=n[r];t(o,r,n)&&(i[u++]=o)}return i}function c(n,t){return!(null==n||!n.length)&&-1<d(n,t,0)}function a(n,t,r){for(var e=-1,u=null==n?0:n.length;++e<u;)if(r(t,n[e]))return true;return false}function l(n,t){for(var r=-1,e=null==n?0:n.length,u=Array(e);++r<e;)u[r]=t(n[r],r,n);return u}function s(n,t){for(var r=-1,e=t.length,u=n.length;++r<e;)n[u+r]=t[r];
return n}function h(n,t,r,e){var u=-1,i=null==n?0:n.length;for(e&&i&&(r=n[++u]);++u<i;)r=t(r,n[u],u,n);return r}function p(n,t,r,e){var u=null==n?0:n.length;for(e&&u&&(r=n[--u]);u--;)r=t(r,n[u],u,n);return r}function _(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(t(n[r],r,n))return true;return false}function v(n,t,r){var e;return r(n,function(n,r,u){if(t(n,r,u))return e=r,false}),e}function g(n,t,r,e){var u=n.length;for(r+=e?1:-1;e?r--:++r<u;)if(t(n[r],r,n))return r;return-1}function d(n,t,r){if(t===t)n:{
--r;for(var e=n.length;++r<e;)if(n[r]===t){n=r;break n}n=-1}else n=g(n,b,r);return n}function y(n,t,r,e){--r;for(var u=n.length;++r<u;)if(e(n[r],t))return r;return-1}function b(n){return n!==n}function x(n,t){var r=null==n?0:n.length;return r?k(n,t)/r:P}function j(n){return function(t){return null==t?F:t[n]}}function w(n){return function(t){return null==n?F:n[t]}}function m(n,t,r,e,u){return u(n,function(n,u,i){r=e?(e=false,n):t(r,n,u,i)}),r}function A(n,t){var r=n.length;for(n.sort(t);r--;)n[r]=n[r].c;
return n}function k(n,t){for(var r,e=-1,u=n.length;++e<u;){var i=t(n[e]);i!==F&&(r=r===F?i:r+i)}return r}function E(n,t){for(var r=-1,e=Array(n);++r<n;)e[r]=t(r);return e}function O(n,t){return l(t,function(t){return[t,n[t]]})}function S(n){return function(t){return n(t)}}function I(n,t){return l(t,function(t){return n[t]})}function R(n,t){return n.has(t)}function z(n,t){for(var r=-1,e=n.length;++r<e&&-1<d(t,n[r],0););return r}function W(n,t){for(var r=n.length;r--&&-1<d(t,n[r],0););return r}function B(n){
return"\\"+Tn[n]}function L(n){var t=-1,r=Array(n.size);return n.forEach(function(n,e){r[++t]=[e,n]}),r}function U(n,t){return function(r){return n(t(r))}}function C(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){var o=n[r];o!==t&&"__lodash_placeholder__"!==o||(n[r]="__lodash_placeholder__",i[u++]=r)}return i}function D(n){var t=-1,r=Array(n.size);return n.forEach(function(n){r[++t]=n}),r}function M(n){var t=-1,r=Array(n.size);return n.forEach(function(n){r[++t]=[n,n]}),r}function T(n){if(Bn.test(n)){
for(var t=zn.lastIndex=0;zn.test(n);)++t;n=t}else n=tt(n);return n}function $(n){return Bn.test(n)?n.match(zn)||[]:n.split("")}var F,N=1/0,P=NaN,Z=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],q=/\b__p\+='';/g,V=/\b(__p\+=)''\+/g,K=/(__e\(.*?\)|\b__t\))\+'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,J=RegExp(G.source),Y=RegExp(H.source),Q=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/,en=/^\./,un=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,on=/[\\^$.*+?()[\]{}|]/g,fn=RegExp(on.source),cn=/^\s+|\s+$/g,an=/^\s+/,ln=/\s+$/,sn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,hn=/\{\n\/\* \[wrapped with (.+)\] \*/,pn=/,? & /,_n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,vn=/\\(\\)?/g,gn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dn=/\w*$/,yn=/^[-+]0x[0-9a-f]+$/i,bn=/^0b[01]+$/i,xn=/^\[object .+?Constructor\]$/,jn=/^0o[0-7]+$/i,wn=/^(?:0|[1-9]\d*)$/,mn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,An=/($^)/,kn=/['\n\r\u2028\u2029\\]/g,En="[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?(?:\\u200d(?:[^\\ud800-\\udfff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?)*",On="(?:[\\u2700-\\u27bf]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])"+En,Sn="(?:[^\\ud800-\\udfff][\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]?|[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\ud800-\\udfff])",In=RegExp("['\u2019]","g"),Rn=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),zn=RegExp("\\ud83c[\\udffb-\\udfff](?=\\ud83c[\\udffb-\\udfff])|"+Sn+En,"g"),Wn=RegExp(["[A-Z\\xc0-\\xd6\\xd8-\\xde]?[a-z\\xdf-\\xf6\\xf8-\\xff]+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde]|$)|(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde](?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])|$)|[A-Z\\xc0-\\xd6\\xd8-\\xde]?(?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:d|ll|m|re|s|t|ve))?|[A-Z\\xc0-\\xd6\\xd8-\\xde]+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?|\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)|\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)|\\d+",On].join("|"),"g"),Bn=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),Ln=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Un="Array Buffer DataView Date Error Float32Array Float64Array Function Int8Array Int16Array Int32Array Map Math Object Promise RegExp Set String Symbol TypeError Uint8Array Uint8ClampedArray Uint16Array Uint32Array WeakMap _ clearTimeout isFinite parseInt setTimeout".split(" "),Cn={};
Cn["[object Float32Array]"]=Cn["[object Float64Array]"]=Cn["[object Int8Array]"]=Cn["[object Int16Array]"]=Cn["[object Int32Array]"]=Cn["[object Uint8Array]"]=Cn["[object Uint8ClampedArray]"]=Cn["[object Uint16Array]"]=Cn["[object Uint32Array]"]=true,Cn["[object Arguments]"]=Cn["[object Array]"]=Cn["[object ArrayBuffer]"]=Cn["[object Boolean]"]=Cn["[object DataView]"]=Cn["[object Date]"]=Cn["[object Error]"]=Cn["[object Function]"]=Cn["[object Map]"]=Cn["[object Number]"]=Cn["[object Object]"]=Cn["[object RegExp]"]=Cn["[object Set]"]=Cn["[object String]"]=Cn["[object WeakMap]"]=false;
var Dn={};Dn["[object Arguments]"]=Dn["[object Array]"]=Dn["[object ArrayBuffer]"]=Dn["[object DataView]"]=Dn["[object Boolean]"]=Dn["[object Date]"]=Dn["[object Float32Array]"]=Dn["[object Float64Array]"]=Dn["[object Int8Array]"]=Dn["[object Int16Array]"]=Dn["[object Int32Array]"]=Dn["[object Map]"]=Dn["[object Number]"]=Dn["[object Object]"]=Dn["[object RegExp]"]=Dn["[object Set]"]=Dn["[object String]"]=Dn["[object Symbol]"]=Dn["[object Uint8Array]"]=Dn["[object Uint8ClampedArray]"]=Dn["[object Uint16Array]"]=Dn["[object Uint32Array]"]=true,
Dn["[object Error]"]=Dn["[object Function]"]=Dn["[object WeakMap]"]=false;var Mn,Tn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},$n=parseFloat,Fn=parseInt,Nn=typeof global=="object"&&global&&global.Object===Object&&global,Pn=typeof self=="object"&&self&&self.Object===Object&&self,Zn=Nn||Pn||Function("return this")(),qn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Vn=qn&&typeof module=="object"&&module&&!module.nodeType&&module,Kn=Vn&&Vn.exports===qn,Gn=Kn&&Nn.process;
n:{try{Mn=Gn&&Gn.binding&&Gn.binding("util");break n}catch(n){}Mn=void 0}var Hn=Mn&&Mn.isArrayBuffer,Jn=Mn&&Mn.isDate,Yn=Mn&&Mn.isMap,Qn=Mn&&Mn.isRegExp,Xn=Mn&&Mn.isSet,nt=Mn&&Mn.isTypedArray,tt=j("length"),rt=w({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I",
"\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C",
"\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i",
"\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S",
"\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe",
"\u0149":"'n","\u017f":"s"}),et=w({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),ut=w({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),it=function w(En){function On(n){if(xu(n)&&!af(n)&&!(n instanceof Mn)){if(n instanceof zn)return n;if(ci.call(n,"__wrapped__"))return Pe(n)}return new zn(n)}function Sn(){}function zn(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=F}function Mn(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,
this.__filtered__=false,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Tn(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Nn(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Pn(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function qn(n){var t=-1,r=null==n?0:n.length;for(this.__data__=new Pn;++t<r;)this.add(n[t])}function Vn(n){
this.size=(this.__data__=new Nn(n)).size}function Gn(n,t){var r,e=af(n),u=!e&&cf(n),i=!e&&!u&&sf(n),o=!e&&!u&&!i&&gf(n),u=(e=e||u||i||o)?E(n.length,ri):[],f=u.length;for(r in n)!t&&!ci.call(n,r)||e&&("length"==r||i&&("offset"==r||"parent"==r)||o&&("buffer"==r||"byteLength"==r||"byteOffset"==r)||Re(r,f))||u.push(r);return u}function tt(n){var t=n.length;return t?n[cr(0,t-1)]:F}function ot(n,t){return Te(Mr(n),gt(t,0,n.length))}function ft(n){return Te(Mr(n))}function ct(n,t,r){(r===F||hu(n[t],r))&&(r!==F||t in n)||_t(n,t,r);
}function at(n,t,r){var e=n[t];ci.call(n,t)&&hu(e,r)&&(r!==F||t in n)||_t(n,t,r)}function lt(n,t){for(var r=n.length;r--;)if(hu(n[r][0],t))return r;return-1}function st(n,t,r,e){return oo(n,function(n,u,i){t(e,n,r(n),i)}),e}function ht(n,t){return n&&Tr(t,Lu(t),n)}function pt(n,t){return n&&Tr(t,Uu(t),n)}function _t(n,t,r){"__proto__"==t&&Ei?Ei(n,t,{configurable:true,enumerable:true,value:r,writable:true}):n[t]=r}function vt(n,t){for(var r=-1,e=t.length,u=Hu(e),i=null==n;++r<e;)u[r]=i?F:Wu(n,t[r]);return u;
}function gt(n,t,r){return n===n&&(r!==F&&(n=n<=r?n:r),t!==F&&(n=n>=t?n:t)),n}function dt(n,t,r,e,i,o){var f,c=1&t,a=2&t,l=4&t;if(r&&(f=i?r(n,e,i,o):r(n)),f!==F)return f;if(!bu(n))return n;if(e=af(n)){if(f=Ee(n),!c)return Mr(n,f)}else{var s=yo(n),h="[object Function]"==s||"[object GeneratorFunction]"==s;if(sf(n))return Wr(n,c);if("[object Object]"==s||"[object Arguments]"==s||h&&!i){if(f=a||h?{}:Oe(n),!c)return a?Fr(n,pt(f,n)):$r(n,ht(f,n))}else{if(!Dn[s])return i?n:{};f=Se(n,s,dt,c)}}if(o||(o=new Vn),
i=o.get(n))return i;o.set(n,f);var a=l?a?ye:de:a?Uu:Lu,p=e?F:a(n);return u(p||n,function(e,u){p&&(u=e,e=n[u]),at(f,u,dt(e,t,r,u,n,o))}),f}function yt(n){var t=Lu(n);return function(r){return bt(r,n,t)}}function bt(n,t,r){var e=r.length;if(null==n)return!e;for(n=ni(n);e--;){var u=r[e],i=t[u],o=n[u];if(o===F&&!(u in n)||!i(o))return false}return true}function xt(n,t,r){if(typeof n!="function")throw new ei("Expected a function");return jo(function(){n.apply(F,r)},t)}function jt(n,t,r,e){var u=-1,i=c,o=true,f=n.length,s=[],h=t.length;
if(!f)return s;r&&(t=l(t,S(r))),e?(i=a,o=false):200<=t.length&&(i=R,o=false,t=new qn(t));n:for(;++u<f;){var p=n[u],_=null==r?p:r(p),p=e||0!==p?p:0;if(o&&_===_){for(var v=h;v--;)if(t[v]===_)continue n;s.push(p)}else i(t,_,e)||s.push(p)}return s}function wt(n,t){var r=true;return oo(n,function(n,e,u){return r=!!t(n,e,u)}),r}function mt(n,t,r){for(var e=-1,u=n.length;++e<u;){var i=n[e],o=t(i);if(null!=o&&(f===F?o===o&&!Au(o):r(o,f)))var f=o,c=i}return c}function At(n,t){var r=[];return oo(n,function(n,e,u){
t(n,e,u)&&r.push(n)}),r}function kt(n,t,r,e,u){var i=-1,o=n.length;for(r||(r=Ie),u||(u=[]);++i<o;){var f=n[i];0<t&&r(f)?1<t?kt(f,t-1,r,e,u):s(u,f):e||(u[u.length]=f)}return u}function Et(n,t){return n&&co(n,t,Lu)}function Ot(n,t){return n&&ao(n,t,Lu)}function St(n,t){return f(t,function(t){return gu(n[t])})}function It(n,t){t=Rr(t,n);for(var r=0,e=t.length;null!=n&&r<e;)n=n[$e(t[r++])];return r&&r==e?n:F}function Rt(n,t,r){return t=t(n),af(n)?t:s(t,r(n))}function zt(n){if(null==n)n=n===F?"[object Undefined]":"[object Null]";else if(ki&&ki in ni(n)){
var t=ci.call(n,ki),r=n[ki];try{n[ki]=F;var e=true}catch(n){}var u=si.call(n);e&&(t?n[ki]=r:delete n[ki]),n=u}else n=si.call(n);return n}function Wt(n,t){return n>t}function Bt(n,t){return null!=n&&ci.call(n,t)}function Lt(n,t){return null!=n&&t in ni(n)}function Ut(n,t,r){for(var e=r?a:c,u=n[0].length,i=n.length,o=i,f=Hu(i),s=1/0,h=[];o--;){var p=n[o];o&&t&&(p=l(p,S(t))),s=Mi(p.length,s),f[o]=!r&&(t||120<=u&&120<=p.length)?new qn(o&&p):F}var p=n[0],_=-1,v=f[0];n:for(;++_<u&&h.length<s;){var g=p[_],d=t?t(g):g,g=r||0!==g?g:0;
if(v?!R(v,d):!e(h,d,r)){for(o=i;--o;){var y=f[o];if(y?!R(y,d):!e(n[o],d,r))continue n}v&&v.push(d),h.push(g)}}return h}function Ct(n,t,r){var e={};return Et(n,function(n,u,i){t(e,r(n),u,i)}),e}function Dt(n,t,e){return t=Rr(t,n),n=2>t.length?n:It(n,vr(t,0,-1)),t=null==n?n:n[$e(Ge(t))],null==t?F:r(t,n,e)}function Mt(n){return xu(n)&&"[object Arguments]"==zt(n)}function Tt(n){return xu(n)&&"[object ArrayBuffer]"==zt(n)}function $t(n){return xu(n)&&"[object Date]"==zt(n)}function Ft(n,t,r,e,u){if(n===t)t=true;else if(null==n||null==t||!xu(n)&&!xu(t))t=n!==n&&t!==t;else n:{
var i=af(n),o=af(t),f=i?"[object Array]":yo(n),c=o?"[object Array]":yo(t),f="[object Arguments]"==f?"[object Object]":f,c="[object Arguments]"==c?"[object Object]":c,a="[object Object]"==f,o="[object Object]"==c;if((c=f==c)&&sf(n)){if(!sf(t)){t=false;break n}i=true,a=false}if(c&&!a)u||(u=new Vn),t=i||gf(n)?_e(n,t,r,e,Ft,u):ve(n,t,f,r,e,Ft,u);else{if(!(1&r)&&(i=a&&ci.call(n,"__wrapped__"),f=o&&ci.call(t,"__wrapped__"),i||f)){n=i?n.value():n,t=f?t.value():t,u||(u=new Vn),t=Ft(n,t,r,e,u);break n}if(c)t:if(u||(u=new Vn),
i=1&r,f=de(n),o=f.length,c=de(t).length,o==c||i){for(a=o;a--;){var l=f[a];if(!(i?l in t:ci.call(t,l))){t=false;break t}}if((c=u.get(n))&&u.get(t))t=c==t;else{c=true,u.set(n,t),u.set(t,n);for(var s=i;++a<o;){var l=f[a],h=n[l],p=t[l];if(e)var _=i?e(p,h,l,t,n,u):e(h,p,l,n,t,u);if(_===F?h!==p&&!Ft(h,p,r,e,u):!_){c=false;break}s||(s="constructor"==l)}c&&!s&&(r=n.constructor,e=t.constructor,r!=e&&"constructor"in n&&"constructor"in t&&!(typeof r=="function"&&r instanceof r&&typeof e=="function"&&e instanceof e)&&(c=false)),
u.delete(n),u.delete(t),t=c}}else t=false;else t=false}}return t}function Nt(n){return xu(n)&&"[object Map]"==yo(n)}function Pt(n,t,r,e){var u=r.length,i=u,o=!e;if(null==n)return!i;for(n=ni(n);u--;){var f=r[u];if(o&&f[2]?f[1]!==n[f[0]]:!(f[0]in n))return false}for(;++u<i;){var f=r[u],c=f[0],a=n[c],l=f[1];if(o&&f[2]){if(a===F&&!(c in n))return false}else{if(f=new Vn,e)var s=e(a,l,c,n,t,f);if(s===F?!Ft(l,a,3,e,f):!s)return false}}return true}function Zt(n){return!(!bu(n)||li&&li in n)&&(gu(n)?_i:xn).test(Fe(n))}function qt(n){
return xu(n)&&"[object RegExp]"==zt(n)}function Vt(n){return xu(n)&&"[object Set]"==yo(n)}function Kt(n){return xu(n)&&yu(n.length)&&!!Cn[zt(n)]}function Gt(n){return typeof n=="function"?n:null==n?Nu:typeof n=="object"?af(n)?Xt(n[0],n[1]):Qt(n):Vu(n)}function Ht(n){if(!Le(n))return Ci(n);var t,r=[];for(t in ni(n))ci.call(n,t)&&"constructor"!=t&&r.push(t);return r}function Jt(n,t){return n<t}function Yt(n,t){var r=-1,e=pu(n)?Hu(n.length):[];return oo(n,function(n,u,i){e[++r]=t(n,u,i)}),e}function Qt(n){
var t=me(n);return 1==t.length&&t[0][2]?Ue(t[0][0],t[0][1]):function(r){return r===n||Pt(r,n,t)}}function Xt(n,t){return We(n)&&t===t&&!bu(t)?Ue($e(n),t):function(r){var e=Wu(r,n);return e===F&&e===t?Bu(r,n):Ft(t,e,3)}}function nr(n,t,r,e,u){n!==t&&co(t,function(i,o){if(bu(i)){u||(u=new Vn);var f=u,c=n[o],a=t[o],l=f.get(a);if(l)ct(n,o,l);else{var l=e?e(c,a,o+"",n,t,f):F,s=l===F;if(s){var h=af(a),p=!h&&sf(a),_=!h&&!p&&gf(a),l=a;h||p||_?af(c)?l=c:_u(c)?l=Mr(c):p?(s=false,l=Wr(a,true)):_?(s=false,l=Lr(a,true)):l=[]:wu(a)||cf(a)?(l=c,
cf(c)?l=Ru(c):(!bu(c)||r&&gu(c))&&(l=Oe(a))):s=false}s&&(f.set(a,l),nr(l,a,r,e,f),f.delete(a)),ct(n,o,l)}}else f=e?e(n[o],i,o+"",n,t,u):F,f===F&&(f=i),ct(n,o,f)},Uu)}function tr(n,t){var r=n.length;if(r)return t+=0>t?r:0,Re(t,r)?n[t]:F}function rr(n,t,r){var e=-1;return t=l(t.length?t:[Nu],S(je())),n=Yt(n,function(n){return{a:l(t,function(t){return t(n)}),b:++e,c:n}}),A(n,function(n,t){var e;n:{e=-1;for(var u=n.a,i=t.a,o=u.length,f=r.length;++e<o;){var c=Ur(u[e],i[e]);if(c){e=e>=f?c:c*("desc"==r[e]?-1:1);
break n}}e=n.b-t.b}return e})}function er(n,t){return ur(n,t,function(t,r){return Bu(n,r)})}function ur(n,t,r){for(var e=-1,u=t.length,i={};++e<u;){var o=t[e],f=It(n,o);r(f,o)&&pr(i,Rr(o,n),f)}return i}function ir(n){return function(t){return It(t,n)}}function or(n,t,r,e){var u=e?y:d,i=-1,o=t.length,f=n;for(n===t&&(t=Mr(t)),r&&(f=l(n,S(r)));++i<o;)for(var c=0,a=t[i],a=r?r(a):a;-1<(c=u(f,a,c,e));)f!==n&&wi.call(f,c,1),wi.call(n,c,1);return n}function fr(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];
if(r==e||u!==i){var i=u;Re(u)?wi.call(n,u,1):mr(n,u)}}}function cr(n,t){return n+zi(Fi()*(t-n+1))}function ar(n,t){var r="";if(!n||1>t||9007199254740991<t)return r;do t%2&&(r+=n),(t=zi(t/2))&&(n+=n);while(t);return r}function lr(n,t){return wo(Ce(n,t,Nu),n+"")}function sr(n){return tt(Du(n))}function hr(n,t){var r=Du(n);return Te(r,gt(t,0,r.length))}function pr(n,t,r,e){if(!bu(n))return n;t=Rr(t,n);for(var u=-1,i=t.length,o=i-1,f=n;null!=f&&++u<i;){var c=$e(t[u]),a=r;if(u!=o){var l=f[c],a=e?e(l,c,f):F;
a===F&&(a=bu(l)?l:Re(t[u+1])?[]:{})}at(f,c,a),f=f[c]}return n}function _r(n){return Te(Du(n))}function vr(n,t,r){var e=-1,u=n.length;for(0>t&&(t=-t>u?0:u+t),r=r>u?u:r,0>r&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0,r=Hu(u);++e<u;)r[e]=n[e+t];return r}function gr(n,t){var r;return oo(n,function(n,e,u){return r=t(n,e,u),!r}),!!r}function dr(n,t,r){var e=0,u=null==n?e:n.length;if(typeof t=="number"&&t===t&&2147483647>=u){for(;e<u;){var i=e+u>>>1,o=n[i];null!==o&&!Au(o)&&(r?o<=t:o<t)?e=i+1:u=i}return u}return yr(n,t,Nu,r);
}function yr(n,t,r,e){t=r(t);for(var u=0,i=null==n?0:n.length,o=t!==t,f=null===t,c=Au(t),a=t===F;u<i;){var l=zi((u+i)/2),s=r(n[l]),h=s!==F,p=null===s,_=s===s,v=Au(s);(o?e||_:a?_&&(e||h):f?_&&h&&(e||!p):c?_&&h&&!p&&(e||!v):p||v?0:e?s<=t:s<t)?u=l+1:i=l}return Mi(i,4294967294)}function br(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){var o=n[r],f=t?t(o):o;if(!r||!hu(f,c)){var c=f;i[u++]=0===o?0:o}}return i}function xr(n){return typeof n=="number"?n:Au(n)?P:+n}function jr(n){if(typeof n=="string")return n;
if(af(n))return l(n,jr)+"";if(Au(n))return uo?uo.call(n):"";var t=n+"";return"0"==t&&1/n==-N?"-0":t}function wr(n,t,r){var e=-1,u=c,i=n.length,o=true,f=[],l=f;if(r)o=false,u=a;else if(200<=i){if(u=t?null:po(n))return D(u);o=false,u=R,l=new qn}else l=t?[]:f;n:for(;++e<i;){var s=n[e],h=t?t(s):s,s=r||0!==s?s:0;if(o&&h===h){for(var p=l.length;p--;)if(l[p]===h)continue n;t&&l.push(h),f.push(s)}else u(l,h,r)||(l!==f&&l.push(h),f.push(s))}return f}function mr(n,t){return t=Rr(t,n),n=2>t.length?n:It(n,vr(t,0,-1)),
null==n||delete n[$e(Ge(t))]}function Ar(n,t,r,e){for(var u=n.length,i=e?u:-1;(e?i--:++i<u)&&t(n[i],i,n););return r?vr(n,e?0:i,e?i+1:u):vr(n,e?i+1:0,e?u:i)}function kr(n,t){var r=n;return r instanceof Mn&&(r=r.value()),h(t,function(n,t){return t.func.apply(t.thisArg,s([n],t.args))},r)}function Er(n,t,r){var e=n.length;if(2>e)return e?wr(n[0]):[];for(var u=-1,i=Hu(e);++u<e;)for(var o=n[u],f=-1;++f<e;)f!=u&&(i[u]=jt(i[u]||o,n[f],t,r));return wr(kt(i,1),t,r)}function Or(n,t,r){for(var e=-1,u=n.length,i=t.length,o={};++e<u;)r(o,n[e],e<i?t[e]:F);
return o}function Sr(n){return _u(n)?n:[]}function Ir(n){return typeof n=="function"?n:Nu}function Rr(n,t){return af(n)?n:We(n,t)?[n]:mo(zu(n))}function zr(n,t,r){var e=n.length;return r=r===F?e:r,!t&&r>=e?n:vr(n,t,r)}function Wr(n,t){if(t)return n.slice();var r=n.length,r=yi?yi(r):new n.constructor(r);return n.copy(r),r}function Br(n){var t=new n.constructor(n.byteLength);return new di(t).set(new di(n)),t}function Lr(n,t){return new n.constructor(t?Br(n.buffer):n.buffer,n.byteOffset,n.length)}function Ur(n,t){
if(n!==t){var r=n!==F,e=null===n,u=n===n,i=Au(n),o=t!==F,f=null===t,c=t===t,a=Au(t);if(!f&&!a&&!i&&n>t||i&&o&&c&&!f&&!a||e&&o&&c||!r&&c||!u)return 1;if(!e&&!i&&!a&&n<t||a&&r&&u&&!e&&!i||f&&r&&u||!o&&u||!c)return-1}return 0}function Cr(n,t,r,e){var u=-1,i=n.length,o=r.length,f=-1,c=t.length,a=Di(i-o,0),l=Hu(c+a);for(e=!e;++f<c;)l[f]=t[f];for(;++u<o;)(e||u<i)&&(l[r[u]]=n[u]);for(;a--;)l[f++]=n[u++];return l}function Dr(n,t,r,e){var u=-1,i=n.length,o=-1,f=r.length,c=-1,a=t.length,l=Di(i-f,0),s=Hu(l+a);
for(e=!e;++u<l;)s[u]=n[u];for(l=u;++c<a;)s[l+c]=t[c];for(;++o<f;)(e||u<i)&&(s[l+r[o]]=n[u++]);return s}function Mr(n,t){var r=-1,e=n.length;for(t||(t=Hu(e));++r<e;)t[r]=n[r];return t}function Tr(n,t,r,e){var u=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var f=t[i],c=e?e(r[f],n[f],f,r,n):F;c===F&&(c=n[f]),u?_t(r,f,c):at(r,f,c)}return r}function $r(n,t){return Tr(n,vo(n),t)}function Fr(n,t){return Tr(n,go(n),t)}function Nr(n,t){return function(r,u){var i=af(r)?e:st,o=t?t():{};return i(r,n,je(u,2),o);
}}function Pr(n){return lr(function(t,r){var e=-1,u=r.length,i=1<u?r[u-1]:F,o=2<u?r[2]:F,i=3<n.length&&typeof i=="function"?(u--,i):F;for(o&&ze(r[0],r[1],o)&&(i=3>u?F:i,u=1),t=ni(t);++e<u;)(o=r[e])&&n(t,o,e,i);return t})}function Zr(n,t){return function(r,e){if(null==r)return r;if(!pu(r))return n(r,e);for(var u=r.length,i=t?u:-1,o=ni(r);(t?i--:++i<u)&&false!==e(o[i],i,o););return r}}function qr(n){return function(t,r,e){var u=-1,i=ni(t);e=e(t);for(var o=e.length;o--;){var f=e[n?o:++u];if(false===r(i[f],f,i))break;
}return t}}function Vr(n,t,r){function e(){return(this&&this!==Zn&&this instanceof e?i:n).apply(u?r:this,arguments)}var u=1&t,i=Hr(n);return e}function Kr(n){return function(t){t=zu(t);var r=Bn.test(t)?$(t):F,e=r?r[0]:t.charAt(0);return t=r?zr(r,1).join(""):t.slice(1),e[n]()+t}}function Gr(n){return function(t){return h($u(Tu(t).replace(In,"")),n,"")}}function Hr(n){return function(){var t=arguments;switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:
return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=io(n.prototype),t=n.apply(r,t);return bu(t)?t:r}}function Jr(n,t,e){function u(){for(var o=arguments.length,f=Hu(o),c=o,a=xe(u);c--;)f[c]=arguments[c];return c=3>o&&f[0]!==a&&f[o-1]!==a?[]:C(f,a),o-=c.length,o<e?fe(n,t,Xr,u.placeholder,F,f,c,F,F,e-o):r(this&&this!==Zn&&this instanceof u?i:n,this,f);
}var i=Hr(n);return u}function Yr(n){return function(t,r,e){var u=ni(t);if(!pu(t)){var i=je(r,3);t=Lu(t),r=function(n){return i(u[n],n,u)}}return r=n(t,r,e),-1<r?u[i?t[r]:r]:F}}function Qr(n){return ge(function(t){var r=t.length,e=r,u=zn.prototype.thru;for(n&&t.reverse();e--;){var i=t[e];if(typeof i!="function")throw new ei("Expected a function");if(u&&!o&&"wrapper"==be(i))var o=new zn([],true)}for(e=o?e:r;++e<r;)var i=t[e],u=be(i),f="wrapper"==u?_o(i):F,o=f&&Be(f[0])&&424==f[1]&&!f[4].length&&1==f[9]?o[be(f[0])].apply(o,f[3]):1==i.length&&Be(i)?o[u]():o.thru(i);
return function(){var n=arguments,e=n[0];if(o&&1==n.length&&af(e))return o.plant(e).value();for(var u=0,n=r?t[u].apply(this,n):e;++u<r;)n=t[u].call(this,n);return n}})}function Xr(n,t,r,e,u,i,o,f,c,a){function l(){for(var d=arguments.length,y=Hu(d),b=d;b--;)y[b]=arguments[b];if(_){var x,j=xe(l),b=y.length;for(x=0;b--;)y[b]===j&&++x}if(e&&(y=Cr(y,e,u,_)),i&&(y=Dr(y,i,o,_)),d-=x,_&&d<a)return j=C(y,j),fe(n,t,Xr,l.placeholder,r,y,j,f,c,a-d);if(j=h?r:this,b=p?j[n]:n,d=y.length,f){x=y.length;for(var w=Mi(f.length,x),m=Mr(y);w--;){
var A=f[w];y[w]=Re(A,x)?m[A]:F}}else v&&1<d&&y.reverse();return s&&c<d&&(y.length=c),this&&this!==Zn&&this instanceof l&&(b=g||Hr(b)),b.apply(j,y)}var s=128&t,h=1&t,p=2&t,_=24&t,v=512&t,g=p?F:Hr(n);return l}function ne(n,t){return function(r,e){return Ct(r,n,t(e))}}function te(n,t){return function(r,e){var u;if(r===F&&e===F)return t;if(r!==F&&(u=r),e!==F){if(u===F)return e;typeof r=="string"||typeof e=="string"?(r=jr(r),e=jr(e)):(r=xr(r),e=xr(e)),u=n(r,e)}return u}}function re(n){return ge(function(t){
return t=l(t,S(je())),lr(function(e){var u=this;return n(t,function(n){return r(n,u,e)})})})}function ee(n,t){t=t===F?" ":jr(t);var r=t.length;return 2>r?r?ar(t,n):t:(r=ar(t,Ri(n/T(t))),Bn.test(t)?zr($(r),0,n).join(""):r.slice(0,n))}function ue(n,t,e,u){function i(){for(var t=-1,c=arguments.length,a=-1,l=u.length,s=Hu(l+c),h=this&&this!==Zn&&this instanceof i?f:n;++a<l;)s[a]=u[a];for(;c--;)s[a++]=arguments[++t];return r(h,o?e:this,s)}var o=1&t,f=Hr(n);return i}function ie(n){return function(t,r,e){
e&&typeof e!="number"&&ze(t,r,e)&&(r=e=F),t=Eu(t),r===F?(r=t,t=0):r=Eu(r),e=e===F?t<r?1:-1:Eu(e);var u=-1;r=Di(Ri((r-t)/(e||1)),0);for(var i=Hu(r);r--;)i[n?r:++u]=t,t+=e;return i}}function oe(n){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=Iu(t),r=Iu(r)),n(t,r)}}function fe(n,t,r,e,u,i,o,f,c,a){var l=8&t,s=l?o:F;o=l?F:o;var h=l?i:F;return i=l?F:i,t=(t|(l?32:64))&~(l?64:32),4&t||(t&=-4),u=[n,t,u,h,s,i,o,f,c,a],r=r.apply(F,u),Be(n)&&xo(r,u),r.placeholder=e,De(r,n,t)}function ce(n){
var t=Xu[n];return function(n,r){if(n=Iu(n),r=null==r?0:Mi(Ou(r),292)){var e=(zu(n)+"e").split("e"),e=t(e[0]+"e"+(+e[1]+r)),e=(zu(e)+"e").split("e");return+(e[0]+"e"+(+e[1]-r))}return t(n)}}function ae(n){return function(t){var r=yo(t);return"[object Map]"==r?L(t):"[object Set]"==r?M(t):O(t,n(t))}}function le(n,t,r,e,u,i,o,f){var c=2&t;if(!c&&typeof n!="function")throw new ei("Expected a function");var a=e?e.length:0;if(a||(t&=-97,e=u=F),o=o===F?o:Di(Ou(o),0),f=f===F?f:Ou(f),a-=u?u.length:0,64&t){
var l=e,s=u;e=u=F}var h=c?F:_o(n);return i=[n,t,r,e,u,l,s,i,o,f],h&&(r=i[1],n=h[1],t=r|n,e=128==n&&8==r||128==n&&256==r&&i[7].length<=h[8]||384==n&&h[7].length<=h[8]&&8==r,131>t||e)&&(1&n&&(i[2]=h[2],t|=1&r?0:4),(r=h[3])&&(e=i[3],i[3]=e?Cr(e,r,h[4]):r,i[4]=e?C(i[3],"__lodash_placeholder__"):h[4]),(r=h[5])&&(e=i[5],i[5]=e?Dr(e,r,h[6]):r,i[6]=e?C(i[5],"__lodash_placeholder__"):h[6]),(r=h[7])&&(i[7]=r),128&n&&(i[8]=null==i[8]?h[8]:Mi(i[8],h[8])),null==i[9]&&(i[9]=h[9]),i[0]=h[0],i[1]=t),n=i[0],t=i[1],
r=i[2],e=i[3],u=i[4],f=i[9]=i[9]===F?c?0:n.length:Di(i[9]-a,0),!f&&24&t&&(t&=-25),De((h?lo:xo)(t&&1!=t?8==t||16==t?Jr(n,t,f):32!=t&&33!=t||u.length?Xr.apply(F,i):ue(n,t,r,e):Vr(n,t,r),i),n,t)}function se(n,t,r,e){return n===F||hu(n,ii[r])&&!ci.call(e,r)?t:n}function he(n,t,r,e,u,i){return bu(n)&&bu(t)&&(i.set(t,n),nr(n,t,F,he,i),i.delete(t)),n}function pe(n){return wu(n)?F:n}function _e(n,t,r,e,u,i){var o=1&r,f=n.length,c=t.length;if(f!=c&&!(o&&c>f))return false;if((c=i.get(n))&&i.get(t))return c==t;var c=-1,a=true,l=2&r?new qn:F;
for(i.set(n,t),i.set(t,n);++c<f;){var s=n[c],h=t[c];if(e)var p=o?e(h,s,c,t,n,i):e(s,h,c,n,t,i);if(p!==F){if(p)continue;a=false;break}if(l){if(!_(t,function(n,t){if(!R(l,t)&&(s===n||u(s,n,r,e,i)))return l.push(t)})){a=false;break}}else if(s!==h&&!u(s,h,r,e,i)){a=false;break}}return i.delete(n),i.delete(t),a}function ve(n,t,r,e,u,i,o){switch(r){case"[object DataView]":if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)break;n=n.buffer,t=t.buffer;case"[object ArrayBuffer]":if(n.byteLength!=t.byteLength||!i(new di(n),new di(t)))break;
return true;case"[object Boolean]":case"[object Date]":case"[object Number]":return hu(+n,+t);case"[object Error]":return n.name==t.name&&n.message==t.message;case"[object RegExp]":case"[object String]":return n==t+"";case"[object Map]":var f=L;case"[object Set]":if(f||(f=D),n.size!=t.size&&!(1&e))break;return(r=o.get(n))?r==t:(e|=2,o.set(n,t),t=_e(f(n),f(t),e,u,i,o),o.delete(n),t);case"[object Symbol]":if(eo)return eo.call(n)==eo.call(t)}return false}function ge(n){return wo(Ce(n,F,Ve),n+"")}function de(n){
return Rt(n,Lu,vo)}function ye(n){return Rt(n,Uu,go)}function be(n){for(var t=n.name+"",r=Ji[t],e=ci.call(Ji,t)?r.length:0;e--;){var u=r[e],i=u.func;if(null==i||i==n)return u.name}return t}function xe(n){return(ci.call(On,"placeholder")?On:n).placeholder}function je(){var n=On.iteratee||Pu,n=n===Pu?Gt:n;return arguments.length?n(arguments[0],arguments[1]):n}function we(n,t){var r=n.__data__,e=typeof t;return("string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t)?r[typeof t=="string"?"string":"hash"]:r.map;
}function me(n){for(var t=Lu(n),r=t.length;r--;){var e=t[r],u=n[e];t[r]=[e,u,u===u&&!bu(u)]}return t}function Ae(n,t){var r=null==n?F:n[t];return Zt(r)?r:F}function ke(n,t,r){t=Rr(t,n);for(var e=-1,u=t.length,i=false;++e<u;){var o=$e(t[e]);if(!(i=null!=n&&r(n,o)))break;n=n[o]}return i||++e!=u?i:(u=null==n?0:n.length,!!u&&yu(u)&&Re(o,u)&&(af(n)||cf(n)))}function Ee(n){var t=n.length,r=n.constructor(t);return t&&"string"==typeof n[0]&&ci.call(n,"index")&&(r.index=n.index,r.input=n.input),r}function Oe(n){
return typeof n.constructor!="function"||Le(n)?{}:io(bi(n))}function Se(r,e,u,i){var o=r.constructor;switch(e){case"[object ArrayBuffer]":return Br(r);case"[object Boolean]":case"[object Date]":return new o(+r);case"[object DataView]":return e=i?Br(r.buffer):r.buffer,new r.constructor(e,r.byteOffset,r.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":
case"[object Uint16Array]":case"[object Uint32Array]":return Lr(r,i);case"[object Map]":return e=i?u(L(r),1):L(r),h(e,n,new r.constructor);case"[object Number]":case"[object String]":return new o(r);case"[object RegExp]":return e=new r.constructor(r.source,dn.exec(r)),e.lastIndex=r.lastIndex,e;case"[object Set]":return e=i?u(D(r),1):D(r),h(e,t,new r.constructor);case"[object Symbol]":return eo?ni(eo.call(r)):{}}}function Ie(n){return af(n)||cf(n)||!!(mi&&n&&n[mi])}function Re(n,t){return t=null==t?9007199254740991:t,
!!t&&(typeof n=="number"||wn.test(n))&&-1<n&&0==n%1&&n<t}function ze(n,t,r){if(!bu(r))return false;var e=typeof t;return!!("number"==e?pu(r)&&Re(t,r.length):"string"==e&&t in r)&&hu(r[t],n)}function We(n,t){if(af(n))return false;var r=typeof n;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=n&&!Au(n))||(rn.test(n)||!tn.test(n)||null!=t&&n in ni(t))}function Be(n){var t=be(n),r=On[t];return typeof r=="function"&&t in Mn.prototype&&(n===r||(t=_o(r),!!t&&n===t[0]))}function Le(n){var t=n&&n.constructor;
return n===(typeof t=="function"&&t.prototype||ii)}function Ue(n,t){return function(r){return null!=r&&(r[n]===t&&(t!==F||n in ni(r)))}}function Ce(n,t,e){return t=Di(t===F?n.length-1:t,0),function(){for(var u=arguments,i=-1,o=Di(u.length-t,0),f=Hu(o);++i<o;)f[i]=u[t+i];for(i=-1,o=Hu(t+1);++i<t;)o[i]=u[i];return o[t]=e(f),r(n,this,o)}}function De(n,t,r){var e=t+"";t=wo;var u,i=Ne;return u=(u=e.match(hn))?u[1].split(pn):[],r=i(u,r),(i=r.length)&&(u=i-1,r[u]=(1<i?"& ":"")+r[u],r=r.join(2<i?", ":" "),
e=e.replace(sn,"{\n/* [wrapped with "+r+"] */\n")),t(n,e)}function Me(n){var t=0,r=0;return function(){var e=Ti(),u=16-(e-r);if(r=e,0<u){if(800<=++t)return arguments[0]}else t=0;return n.apply(F,arguments)}}function Te(n,t){var r=-1,e=n.length,u=e-1;for(t=t===F?e:t;++r<t;){var e=cr(r,u),i=n[e];n[e]=n[r],n[r]=i}return n.length=t,n}function $e(n){if(typeof n=="string"||Au(n))return n;var t=n+"";return"0"==t&&1/n==-N?"-0":t}function Fe(n){if(null!=n){try{return fi.call(n)}catch(n){}return n+""}return"";
}function Ne(n,t){return u(Z,function(r){var e="_."+r[0];t&r[1]&&!c(n,e)&&n.push(e)}),n.sort()}function Pe(n){if(n instanceof Mn)return n.clone();var t=new zn(n.__wrapped__,n.__chain__);return t.__actions__=Mr(n.__actions__),t.__index__=n.__index__,t.__values__=n.__values__,t}function Ze(n,t,r){var e=null==n?0:n.length;return e?(r=null==r?0:Ou(r),0>r&&(r=Di(e+r,0)),g(n,je(t,3),r)):-1}function qe(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=e-1;return r!==F&&(u=Ou(r),u=0>r?Di(e+u,0):Mi(u,e-1)),
g(n,je(t,3),u,true)}function Ve(n){return(null==n?0:n.length)?kt(n,1):[]}function Ke(n){return n&&n.length?n[0]:F}function Ge(n){var t=null==n?0:n.length;return t?n[t-1]:F}function He(n,t){return n&&n.length&&t&&t.length?or(n,t):n}function Je(n){return null==n?n:Ni.call(n)}function Ye(n){if(!n||!n.length)return[];var t=0;return n=f(n,function(n){if(_u(n))return t=Di(n.length,t),true}),E(t,function(t){return l(n,j(t))})}function Qe(n,t){if(!n||!n.length)return[];var e=Ye(n);return null==t?e:l(e,function(n){
return r(t,F,n)})}function Xe(n){return n=On(n),n.__chain__=true,n}function nu(n,t){return t(n)}function tu(){return this}function ru(n,t){return(af(n)?u:oo)(n,je(t,3))}function eu(n,t){return(af(n)?i:fo)(n,je(t,3))}function uu(n,t){return(af(n)?l:Yt)(n,je(t,3))}function iu(n,t,r){return t=r?F:t,t=n&&null==t?n.length:t,le(n,128,F,F,F,F,t)}function ou(n,t){var r;if(typeof t!="function")throw new ei("Expected a function");return n=Ou(n),function(){return 0<--n&&(r=t.apply(this,arguments)),1>=n&&(t=F),
r}}function fu(n,t,r){return t=r?F:t,n=le(n,8,F,F,F,F,F,t),n.placeholder=fu.placeholder,n}function cu(n,t,r){return t=r?F:t,n=le(n,16,F,F,F,F,F,t),n.placeholder=cu.placeholder,n}function au(n,t,r){function e(t){var r=c,e=a;return c=a=F,_=t,s=n.apply(e,r)}function u(n){var r=n-p;return n-=_,p===F||r>=t||0>r||g&&n>=l}function i(){var n=Jo();if(u(n))return o(n);var r,e=jo;r=n-_,n=t-(n-p),r=g?Mi(n,l-r):n,h=e(i,r)}function o(n){return h=F,d&&c?e(n):(c=a=F,s)}function f(){var n=Jo(),r=u(n);if(c=arguments,
a=this,p=n,r){if(h===F)return _=n=p,h=jo(i,t),v?e(n):s;if(g)return h=jo(i,t),e(p)}return h===F&&(h=jo(i,t)),s}var c,a,l,s,h,p,_=0,v=false,g=false,d=true;if(typeof n!="function")throw new ei("Expected a function");return t=Iu(t)||0,bu(r)&&(v=!!r.leading,l=(g="maxWait"in r)?Di(Iu(r.maxWait)||0,t):l,d="trailing"in r?!!r.trailing:d),f.cancel=function(){h!==F&&ho(h),_=0,c=p=a=h=F},f.flush=function(){return h===F?s:o(Jo())},f}function lu(n,t){function r(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;return i.has(u)?i.get(u):(e=n.apply(this,e),
r.cache=i.set(u,e)||i,e)}if(typeof n!="function"||null!=t&&typeof t!="function")throw new ei("Expected a function");return r.cache=new(lu.Cache||Pn),r}function su(n){if(typeof n!="function")throw new ei("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}function hu(n,t){return n===t||n!==n&&t!==t}function pu(n){return null!=n&&yu(n.length)&&!gu(n);
}function _u(n){return xu(n)&&pu(n)}function vu(n){if(!xu(n))return false;var t=zt(n);return"[object Error]"==t||"[object DOMException]"==t||typeof n.message=="string"&&typeof n.name=="string"&&!wu(n)}function gu(n){return!!bu(n)&&(n=zt(n),"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n)}function du(n){return typeof n=="number"&&n==Ou(n)}function yu(n){return typeof n=="number"&&-1<n&&0==n%1&&9007199254740991>=n}function bu(n){var t=typeof n;return null!=n&&("object"==t||"function"==t);
}function xu(n){return null!=n&&typeof n=="object"}function ju(n){return typeof n=="number"||xu(n)&&"[object Number]"==zt(n)}function wu(n){return!(!xu(n)||"[object Object]"!=zt(n))&&(n=bi(n),null===n||(n=ci.call(n,"constructor")&&n.constructor,typeof n=="function"&&n instanceof n&&fi.call(n)==hi))}function mu(n){return typeof n=="string"||!af(n)&&xu(n)&&"[object String]"==zt(n)}function Au(n){return typeof n=="symbol"||xu(n)&&"[object Symbol]"==zt(n)}function ku(n){if(!n)return[];if(pu(n))return mu(n)?$(n):Mr(n);
if(Ai&&n[Ai]){n=n[Ai]();for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}return t=yo(n),("[object Map]"==t?L:"[object Set]"==t?D:Du)(n)}function Eu(n){return n?(n=Iu(n),n===N||n===-N?1.7976931348623157e308*(0>n?-1:1):n===n?n:0):0===n?n:0}function Ou(n){n=Eu(n);var t=n%1;return n===n?t?n-t:n:0}function Su(n){return n?gt(Ou(n),0,4294967295):0}function Iu(n){if(typeof n=="number")return n;if(Au(n))return P;if(bu(n)&&(n=typeof n.valueOf=="function"?n.valueOf():n,n=bu(n)?n+"":n),typeof n!="string")return 0===n?n:+n;
n=n.replace(cn,"");var t=bn.test(n);return t||jn.test(n)?Fn(n.slice(2),t?2:8):yn.test(n)?P:+n}function Ru(n){return Tr(n,Uu(n))}function zu(n){return null==n?"":jr(n)}function Wu(n,t,r){return n=null==n?F:It(n,t),n===F?r:n}function Bu(n,t){return null!=n&&ke(n,t,Lt)}function Lu(n){return pu(n)?Gn(n):Ht(n)}function Uu(n){if(pu(n))n=Gn(n,true);else if(bu(n)){var t,r=Le(n),e=[];for(t in n)("constructor"!=t||!r&&ci.call(n,t))&&e.push(t);n=e}else{if(t=[],null!=n)for(r in ni(n))t.push(r);n=t}return n}function Cu(n,t){
if(null==n)return{};var r=l(ye(n),function(n){return[n]});return t=je(t),ur(n,r,function(n,r){return t(n,r[0])})}function Du(n){return null==n?[]:I(n,Lu(n))}function Mu(n){return Nf(zu(n).toLowerCase())}function Tu(n){return(n=zu(n))&&n.replace(mn,rt).replace(Rn,"")}function $u(n,t,r){return n=zu(n),t=r?F:t,t===F?Ln.test(n)?n.match(Wn)||[]:n.match(_n)||[]:n.match(t)||[]}function Fu(n){return function(){return n}}function Nu(n){return n}function Pu(n){return Gt(typeof n=="function"?n:dt(n,1))}function Zu(n,t,r){
var e=Lu(t),i=St(t,e);null!=r||bu(t)&&(i.length||!e.length)||(r=t,t=n,n=this,i=St(t,Lu(t)));var o=!(bu(r)&&"chain"in r&&!r.chain),f=gu(n);return u(i,function(r){var e=t[r];n[r]=e,f&&(n.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=n(this.__wrapped__);return(r.__actions__=Mr(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,s([this.value()],arguments))})}),n}function qu(){}function Vu(n){return We(n)?j($e(n)):ir(n)}function Ku(){return[]}function Gu(){
return false}En=null==En?Zn:it.defaults(Zn.Object(),En,it.pick(Zn,Un));var Hu=En.Array,Ju=En.Date,Yu=En.Error,Qu=En.Function,Xu=En.Math,ni=En.Object,ti=En.RegExp,ri=En.String,ei=En.TypeError,ui=Hu.prototype,ii=ni.prototype,oi=En["__core-js_shared__"],fi=Qu.prototype.toString,ci=ii.hasOwnProperty,ai=0,li=function(){var n=/[^.]+$/.exec(oi&&oi.keys&&oi.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),si=ii.toString,hi=fi.call(ni),pi=Zn._,_i=ti("^"+fi.call(ci).replace(on,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vi=Kn?En.Buffer:F,gi=En.Symbol,di=En.Uint8Array,yi=vi?vi.f:F,bi=U(ni.getPrototypeOf,ni),xi=ni.create,ji=ii.propertyIsEnumerable,wi=ui.splice,mi=gi?gi.isConcatSpreadable:F,Ai=gi?gi.iterator:F,ki=gi?gi.toStringTag:F,Ei=function(){
try{var n=Ae(ni,"defineProperty");return n({},"",{}),n}catch(n){}}(),Oi=En.clearTimeout!==Zn.clearTimeout&&En.clearTimeout,Si=Ju&&Ju.now!==Zn.Date.now&&Ju.now,Ii=En.setTimeout!==Zn.setTimeout&&En.setTimeout,Ri=Xu.ceil,zi=Xu.floor,Wi=ni.getOwnPropertySymbols,Bi=vi?vi.isBuffer:F,Li=En.isFinite,Ui=ui.join,Ci=U(ni.keys,ni),Di=Xu.max,Mi=Xu.min,Ti=Ju.now,$i=En.parseInt,Fi=Xu.random,Ni=ui.reverse,Pi=Ae(En,"DataView"),Zi=Ae(En,"Map"),qi=Ae(En,"Promise"),Vi=Ae(En,"Set"),Ki=Ae(En,"WeakMap"),Gi=Ae(ni,"create"),Hi=Ki&&new Ki,Ji={},Yi=Fe(Pi),Qi=Fe(Zi),Xi=Fe(qi),no=Fe(Vi),to=Fe(Ki),ro=gi?gi.prototype:F,eo=ro?ro.valueOf:F,uo=ro?ro.toString:F,io=function(){
function n(){}return function(t){return bu(t)?xi?xi(t):(n.prototype=t,t=new n,n.prototype=F,t):{}}}();On.templateSettings={escape:Q,evaluate:X,interpolate:nn,variable:"",imports:{_:On}},On.prototype=Sn.prototype,On.prototype.constructor=On,zn.prototype=io(Sn.prototype),zn.prototype.constructor=zn,Mn.prototype=io(Sn.prototype),Mn.prototype.constructor=Mn,Tn.prototype.clear=function(){this.__data__=Gi?Gi(null):{},this.size=0},Tn.prototype.delete=function(n){return n=this.has(n)&&delete this.__data__[n],
this.size-=n?1:0,n},Tn.prototype.get=function(n){var t=this.__data__;return Gi?(n=t[n],"__lodash_hash_undefined__"===n?F:n):ci.call(t,n)?t[n]:F},Tn.prototype.has=function(n){var t=this.__data__;return Gi?t[n]!==F:ci.call(t,n)},Tn.prototype.set=function(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=Gi&&t===F?"__lodash_hash_undefined__":t,this},Nn.prototype.clear=function(){this.__data__=[],this.size=0},Nn.prototype.delete=function(n){var t=this.__data__;return n=lt(t,n),!(0>n)&&(n==t.length-1?t.pop():wi.call(t,n,1),
--this.size,true)},Nn.prototype.get=function(n){var t=this.__data__;return n=lt(t,n),0>n?F:t[n][1]},Nn.prototype.has=function(n){return-1<lt(this.__data__,n)},Nn.prototype.set=function(n,t){var r=this.__data__,e=lt(r,n);return 0>e?(++this.size,r.push([n,t])):r[e][1]=t,this},Pn.prototype.clear=function(){this.size=0,this.__data__={hash:new Tn,map:new(Zi||Nn),string:new Tn}},Pn.prototype.delete=function(n){return n=we(this,n).delete(n),this.size-=n?1:0,n},Pn.prototype.get=function(n){return we(this,n).get(n);
},Pn.prototype.has=function(n){return we(this,n).has(n)},Pn.prototype.set=function(n,t){var r=we(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},qn.prototype.add=qn.prototype.push=function(n){return this.__data__.set(n,"__lodash_hash_undefined__"),this},qn.prototype.has=function(n){return this.__data__.has(n)},Vn.prototype.clear=function(){this.__data__=new Nn,this.size=0},Vn.prototype.delete=function(n){var t=this.__data__;return n=t.delete(n),this.size=t.size,n},Vn.prototype.get=function(n){
return this.__data__.get(n)},Vn.prototype.has=function(n){return this.__data__.has(n)},Vn.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Nn){var e=r.__data__;if(!Zi||199>e.length)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Pn(e)}return r.set(n,t),this.size=r.size,this};var oo=Zr(Et),fo=Zr(Ot,true),co=qr(),ao=qr(true),lo=Hi?function(n,t){return Hi.set(n,t),n}:Nu,so=Ei?function(n,t){return Ei(n,"toString",{configurable:true,enumerable:false,value:Fu(t),writable:true})}:Nu,ho=Oi||function(n){
return Zn.clearTimeout(n)},po=Vi&&1/D(new Vi([,-0]))[1]==N?function(n){return new Vi(n)}:qu,_o=Hi?function(n){return Hi.get(n)}:qu,vo=Wi?function(n){return null==n?[]:(n=ni(n),f(Wi(n),function(t){return ji.call(n,t)}))}:Ku,go=Wi?function(n){for(var t=[];n;)s(t,vo(n)),n=bi(n);return t}:Ku,yo=zt;(Pi&&"[object DataView]"!=yo(new Pi(new ArrayBuffer(1)))||Zi&&"[object Map]"!=yo(new Zi)||qi&&"[object Promise]"!=yo(qi.resolve())||Vi&&"[object Set]"!=yo(new Vi)||Ki&&"[object WeakMap]"!=yo(new Ki))&&(yo=function(n){
var t=zt(n);if(n=(n="[object Object]"==t?n.constructor:F)?Fe(n):"")switch(n){case Yi:return"[object DataView]";case Qi:return"[object Map]";case Xi:return"[object Promise]";case no:return"[object Set]";case to:return"[object WeakMap]"}return t});var bo=oi?gu:Gu,xo=Me(lo),jo=Ii||function(n,t){return Zn.setTimeout(n,t)},wo=Me(so),mo=function(n){n=lu(n,function(n){return 500===t.size&&t.clear(),n});var t=n.cache;return n}(function(n){var t=[];return en.test(n)&&t.push(""),n.replace(un,function(n,r,e,u){
t.push(e?u.replace(vn,"$1"):r||n)}),t}),Ao=lr(function(n,t){return _u(n)?jt(n,kt(t,1,_u,true)):[]}),ko=lr(function(n,t){var r=Ge(t);return _u(r)&&(r=F),_u(n)?jt(n,kt(t,1,_u,true),je(r,2)):[]}),Eo=lr(function(n,t){var r=Ge(t);return _u(r)&&(r=F),_u(n)?jt(n,kt(t,1,_u,true),F,r):[]}),Oo=lr(function(n){var t=l(n,Sr);return t.length&&t[0]===n[0]?Ut(t):[]}),So=lr(function(n){var t=Ge(n),r=l(n,Sr);return t===Ge(r)?t=F:r.pop(),r.length&&r[0]===n[0]?Ut(r,je(t,2)):[]}),Io=lr(function(n){var t=Ge(n),r=l(n,Sr);return(t=typeof t=="function"?t:F)&&r.pop(),
r.length&&r[0]===n[0]?Ut(r,F,t):[]}),Ro=lr(He),zo=ge(function(n,t){var r=null==n?0:n.length,e=vt(n,t);return fr(n,l(t,function(n){return Re(n,r)?+n:n}).sort(Ur)),e}),Wo=lr(function(n){return wr(kt(n,1,_u,true))}),Bo=lr(function(n){var t=Ge(n);return _u(t)&&(t=F),wr(kt(n,1,_u,true),je(t,2))}),Lo=lr(function(n){var t=Ge(n),t=typeof t=="function"?t:F;return wr(kt(n,1,_u,true),F,t)}),Uo=lr(function(n,t){return _u(n)?jt(n,t):[]}),Co=lr(function(n){return Er(f(n,_u))}),Do=lr(function(n){var t=Ge(n);return _u(t)&&(t=F),
Er(f(n,_u),je(t,2))}),Mo=lr(function(n){var t=Ge(n),t=typeof t=="function"?t:F;return Er(f(n,_u),F,t)}),To=lr(Ye),$o=lr(function(n){var t=n.length,t=1<t?n[t-1]:F,t=typeof t=="function"?(n.pop(),t):F;return Qe(n,t)}),Fo=ge(function(n){function t(t){return vt(t,n)}var r=n.length,e=r?n[0]:0,u=this.__wrapped__;return!(1<r||this.__actions__.length)&&u instanceof Mn&&Re(e)?(u=u.slice(e,+e+(r?1:0)),u.__actions__.push({func:nu,args:[t],thisArg:F}),new zn(u,this.__chain__).thru(function(n){return r&&!n.length&&n.push(F),
n})):this.thru(t)}),No=Nr(function(n,t,r){ci.call(n,r)?++n[r]:_t(n,r,1)}),Po=Yr(Ze),Zo=Yr(qe),qo=Nr(function(n,t,r){ci.call(n,r)?n[r].push(t):_t(n,r,[t])}),Vo=lr(function(n,t,e){var u=-1,i=typeof t=="function",o=pu(n)?Hu(n.length):[];return oo(n,function(n){o[++u]=i?r(t,n,e):Dt(n,t,e)}),o}),Ko=Nr(function(n,t,r){_t(n,r,t)}),Go=Nr(function(n,t,r){n[r?0:1].push(t)},function(){return[[],[]]}),Ho=lr(function(n,t){if(null==n)return[];var r=t.length;return 1<r&&ze(n,t[0],t[1])?t=[]:2<r&&ze(t[0],t[1],t[2])&&(t=[t[0]]),
rr(n,kt(t,1),[])}),Jo=Si||function(){return Zn.Date.now()},Yo=lr(function(n,t,r){var e=1;if(r.length)var u=C(r,xe(Yo)),e=32|e;return le(n,e,t,r,u)}),Qo=lr(function(n,t,r){var e=3;if(r.length)var u=C(r,xe(Qo)),e=32|e;return le(t,e,n,r,u)}),Xo=lr(function(n,t){return xt(n,1,t)}),nf=lr(function(n,t,r){return xt(n,Iu(t)||0,r)});lu.Cache=Pn;var tf=lr(function(n,t){t=1==t.length&&af(t[0])?l(t[0],S(je())):l(kt(t,1),S(je()));var e=t.length;return lr(function(u){for(var i=-1,o=Mi(u.length,e);++i<o;)u[i]=t[i].call(this,u[i]);
return r(n,this,u)})}),rf=lr(function(n,t){return le(n,32,F,t,C(t,xe(rf)))}),ef=lr(function(n,t){return le(n,64,F,t,C(t,xe(ef)))}),uf=ge(function(n,t){return le(n,256,F,F,F,t)}),of=oe(Wt),ff=oe(function(n,t){return n>=t}),cf=Mt(function(){return arguments}())?Mt:function(n){return xu(n)&&ci.call(n,"callee")&&!ji.call(n,"callee")},af=Hu.isArray,lf=Hn?S(Hn):Tt,sf=Bi||Gu,hf=Jn?S(Jn):$t,pf=Yn?S(Yn):Nt,_f=Qn?S(Qn):qt,vf=Xn?S(Xn):Vt,gf=nt?S(nt):Kt,df=oe(Jt),yf=oe(function(n,t){return n<=t}),bf=Pr(function(n,t){
if(Le(t)||pu(t))Tr(t,Lu(t),n);else for(var r in t)ci.call(t,r)&&at(n,r,t[r])}),xf=Pr(function(n,t){Tr(t,Uu(t),n)}),jf=Pr(function(n,t,r,e){Tr(t,Uu(t),n,e)}),wf=Pr(function(n,t,r,e){Tr(t,Lu(t),n,e)}),mf=ge(vt),Af=lr(function(n){return n.push(F,se),r(jf,F,n)}),kf=lr(function(n){return n.push(F,he),r(Rf,F,n)}),Ef=ne(function(n,t,r){n[t]=r},Fu(Nu)),Of=ne(function(n,t,r){ci.call(n,t)?n[t].push(r):n[t]=[r]},je),Sf=lr(Dt),If=Pr(function(n,t,r){nr(n,t,r)}),Rf=Pr(function(n,t,r,e){nr(n,t,r,e)}),zf=ge(function(n,t){
var r={};if(null==n)return r;var e=false;t=l(t,function(t){return t=Rr(t,n),e||(e=1<t.length),t}),Tr(n,ye(n),r),e&&(r=dt(r,7,pe));for(var u=t.length;u--;)mr(r,t[u]);return r}),Wf=ge(function(n,t){return null==n?{}:er(n,t)}),Bf=ae(Lu),Lf=ae(Uu),Uf=Gr(function(n,t,r){return t=t.toLowerCase(),n+(r?Mu(t):t)}),Cf=Gr(function(n,t,r){return n+(r?"-":"")+t.toLowerCase()}),Df=Gr(function(n,t,r){return n+(r?" ":"")+t.toLowerCase()}),Mf=Kr("toLowerCase"),Tf=Gr(function(n,t,r){return n+(r?"_":"")+t.toLowerCase();
}),$f=Gr(function(n,t,r){return n+(r?" ":"")+Nf(t)}),Ff=Gr(function(n,t,r){return n+(r?" ":"")+t.toUpperCase()}),Nf=Kr("toUpperCase"),Pf=lr(function(n,t){try{return r(n,F,t)}catch(n){return vu(n)?n:new Yu(n)}}),Zf=ge(function(n,t){return u(t,function(t){t=$e(t),_t(n,t,Yo(n[t],n))}),n}),qf=Qr(),Vf=Qr(true),Kf=lr(function(n,t){return function(r){return Dt(r,n,t)}}),Gf=lr(function(n,t){return function(r){return Dt(n,r,t)}}),Hf=re(l),Jf=re(o),Yf=re(_),Qf=ie(),Xf=ie(true),nc=te(function(n,t){return n+t},0),tc=ce("ceil"),rc=te(function(n,t){
return n/t},1),ec=ce("floor"),uc=te(function(n,t){return n*t},1),ic=ce("round"),oc=te(function(n,t){return n-t},0);return On.after=function(n,t){if(typeof t!="function")throw new ei("Expected a function");return n=Ou(n),function(){if(1>--n)return t.apply(this,arguments)}},On.ary=iu,On.assign=bf,On.assignIn=xf,On.assignInWith=jf,On.assignWith=wf,On.at=mf,On.before=ou,On.bind=Yo,On.bindAll=Zf,On.bindKey=Qo,On.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return af(n)?n:[n]},
On.chain=Xe,On.chunk=function(n,t,r){if(t=(r?ze(n,t,r):t===F)?1:Di(Ou(t),0),r=null==n?0:n.length,!r||1>t)return[];for(var e=0,u=0,i=Hu(Ri(r/t));e<r;)i[u++]=vr(n,e,e+=t);return i},On.compact=function(n){for(var t=-1,r=null==n?0:n.length,e=0,u=[];++t<r;){var i=n[t];i&&(u[e++]=i)}return u},On.concat=function(){var n=arguments.length;if(!n)return[];for(var t=Hu(n-1),r=arguments[0];n--;)t[n-1]=arguments[n];return s(af(r)?Mr(r):[r],kt(t,1))},On.cond=function(n){var t=null==n?0:n.length,e=je();return n=t?l(n,function(n){
if("function"!=typeof n[1])throw new ei("Expected a function");return[e(n[0]),n[1]]}):[],lr(function(e){for(var u=-1;++u<t;){var i=n[u];if(r(i[0],this,e))return r(i[1],this,e)}})},On.conforms=function(n){return yt(dt(n,1))},On.constant=Fu,On.countBy=No,On.create=function(n,t){var r=io(n);return null==t?r:ht(r,t)},On.curry=fu,On.curryRight=cu,On.debounce=au,On.defaults=Af,On.defaultsDeep=kf,On.defer=Xo,On.delay=nf,On.difference=Ao,On.differenceBy=ko,On.differenceWith=Eo,On.drop=function(n,t,r){var e=null==n?0:n.length;
return e?(t=r||t===F?1:Ou(t),vr(n,0>t?0:t,e)):[]},On.dropRight=function(n,t,r){var e=null==n?0:n.length;return e?(t=r||t===F?1:Ou(t),t=e-t,vr(n,0,0>t?0:t)):[]},On.dropRightWhile=function(n,t){return n&&n.length?Ar(n,je(t,3),true,true):[]},On.dropWhile=function(n,t){return n&&n.length?Ar(n,je(t,3),true):[]},On.fill=function(n,t,r,e){var u=null==n?0:n.length;if(!u)return[];for(r&&typeof r!="number"&&ze(n,t,r)&&(r=0,e=u),u=n.length,r=Ou(r),0>r&&(r=-r>u?0:u+r),e=e===F||e>u?u:Ou(e),0>e&&(e+=u),e=r>e?0:Su(e);r<e;)n[r++]=t;
return n},On.filter=function(n,t){return(af(n)?f:At)(n,je(t,3))},On.flatMap=function(n,t){return kt(uu(n,t),1)},On.flatMapDeep=function(n,t){return kt(uu(n,t),N)},On.flatMapDepth=function(n,t,r){return r=r===F?1:Ou(r),kt(uu(n,t),r)},On.flatten=Ve,On.flattenDeep=function(n){return(null==n?0:n.length)?kt(n,N):[]},On.flattenDepth=function(n,t){return null!=n&&n.length?(t=t===F?1:Ou(t),kt(n,t)):[]},On.flip=function(n){return le(n,512)},On.flow=qf,On.flowRight=Vf,On.fromPairs=function(n){for(var t=-1,r=null==n?0:n.length,e={};++t<r;){
var u=n[t];e[u[0]]=u[1]}return e},On.functions=function(n){return null==n?[]:St(n,Lu(n))},On.functionsIn=function(n){return null==n?[]:St(n,Uu(n))},On.groupBy=qo,On.initial=function(n){return(null==n?0:n.length)?vr(n,0,-1):[]},On.intersection=Oo,On.intersectionBy=So,On.intersectionWith=Io,On.invert=Ef,On.invertBy=Of,On.invokeMap=Vo,On.iteratee=Pu,On.keyBy=Ko,On.keys=Lu,On.keysIn=Uu,On.map=uu,On.mapKeys=function(n,t){var r={};return t=je(t,3),Et(n,function(n,e,u){_t(r,t(n,e,u),n)}),r},On.mapValues=function(n,t){
var r={};return t=je(t,3),Et(n,function(n,e,u){_t(r,e,t(n,e,u))}),r},On.matches=function(n){return Qt(dt(n,1))},On.matchesProperty=function(n,t){return Xt(n,dt(t,1))},On.memoize=lu,On.merge=If,On.mergeWith=Rf,On.method=Kf,On.methodOf=Gf,On.mixin=Zu,On.negate=su,On.nthArg=function(n){return n=Ou(n),lr(function(t){return tr(t,n)})},On.omit=zf,On.omitBy=function(n,t){return Cu(n,su(je(t)))},On.once=function(n){return ou(2,n)},On.orderBy=function(n,t,r,e){return null==n?[]:(af(t)||(t=null==t?[]:[t]),
r=e?F:r,af(r)||(r=null==r?[]:[r]),rr(n,t,r))},On.over=Hf,On.overArgs=tf,On.overEvery=Jf,On.overSome=Yf,On.partial=rf,On.partialRight=ef,On.partition=Go,On.pick=Wf,On.pickBy=Cu,On.property=Vu,On.propertyOf=function(n){return function(t){return null==n?F:It(n,t)}},On.pull=Ro,On.pullAll=He,On.pullAllBy=function(n,t,r){return n&&n.length&&t&&t.length?or(n,t,je(r,2)):n},On.pullAllWith=function(n,t,r){return n&&n.length&&t&&t.length?or(n,t,F,r):n},On.pullAt=zo,On.range=Qf,On.rangeRight=Xf,On.rearg=uf,On.reject=function(n,t){
return(af(n)?f:At)(n,su(je(t,3)))},On.remove=function(n,t){var r=[];if(!n||!n.length)return r;var e=-1,u=[],i=n.length;for(t=je(t,3);++e<i;){var o=n[e];t(o,e,n)&&(r.push(o),u.push(e))}return fr(n,u),r},On.rest=function(n,t){if(typeof n!="function")throw new ei("Expected a function");return t=t===F?t:Ou(t),lr(n,t)},On.reverse=Je,On.sampleSize=function(n,t,r){return t=(r?ze(n,t,r):t===F)?1:Ou(t),(af(n)?ot:hr)(n,t)},On.set=function(n,t,r){return null==n?n:pr(n,t,r)},On.setWith=function(n,t,r,e){return e=typeof e=="function"?e:F,
null==n?n:pr(n,t,r,e)},On.shuffle=function(n){return(af(n)?ft:_r)(n)},On.slice=function(n,t,r){var e=null==n?0:n.length;return e?(r&&typeof r!="number"&&ze(n,t,r)?(t=0,r=e):(t=null==t?0:Ou(t),r=r===F?e:Ou(r)),vr(n,t,r)):[]},On.sortBy=Ho,On.sortedUniq=function(n){return n&&n.length?br(n):[]},On.sortedUniqBy=function(n,t){return n&&n.length?br(n,je(t,2)):[]},On.split=function(n,t,r){return r&&typeof r!="number"&&ze(n,t,r)&&(t=r=F),r=r===F?4294967295:r>>>0,r?(n=zu(n))&&(typeof t=="string"||null!=t&&!_f(t))&&(t=jr(t),
!t&&Bn.test(n))?zr($(n),0,r):n.split(t,r):[]},On.spread=function(n,t){if(typeof n!="function")throw new ei("Expected a function");return t=null==t?0:Di(Ou(t),0),lr(function(e){var u=e[t];return e=zr(e,0,t),u&&s(e,u),r(n,this,e)})},On.tail=function(n){var t=null==n?0:n.length;return t?vr(n,1,t):[]},On.take=function(n,t,r){return n&&n.length?(t=r||t===F?1:Ou(t),vr(n,0,0>t?0:t)):[]},On.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?(t=r||t===F?1:Ou(t),t=e-t,vr(n,0>t?0:t,e)):[]},On.takeRightWhile=function(n,t){
return n&&n.length?Ar(n,je(t,3),false,true):[]},On.takeWhile=function(n,t){return n&&n.length?Ar(n,je(t,3)):[]},On.tap=function(n,t){return t(n),n},On.throttle=function(n,t,r){var e=true,u=true;if(typeof n!="function")throw new ei("Expected a function");return bu(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),au(n,t,{leading:e,maxWait:t,trailing:u})},On.thru=nu,On.toArray=ku,On.toPairs=Bf,On.toPairsIn=Lf,On.toPath=function(n){return af(n)?l(n,$e):Au(n)?[n]:Mr(mo(zu(n)))},On.toPlainObject=Ru,
On.transform=function(n,t,r){var e=af(n),i=e||sf(n)||gf(n);if(t=je(t,4),null==r){var o=n&&n.constructor;r=i?e?new o:[]:bu(n)&&gu(o)?io(bi(n)):{}}return(i?u:Et)(n,function(n,e,u){return t(r,n,e,u)}),r},On.unary=function(n){return iu(n,1)},On.union=Wo,On.unionBy=Bo,On.unionWith=Lo,On.uniq=function(n){return n&&n.length?wr(n):[]},On.uniqBy=function(n,t){return n&&n.length?wr(n,je(t,2)):[]},On.uniqWith=function(n,t){return t=typeof t=="function"?t:F,n&&n.length?wr(n,F,t):[]},On.unset=function(n,t){return null==n||mr(n,t);
},On.unzip=Ye,On.unzipWith=Qe,On.update=function(n,t,r){return null==n?n:pr(n,t,Ir(r)(It(n,t)),void 0)},On.updateWith=function(n,t,r,e){return e=typeof e=="function"?e:F,null!=n&&(n=pr(n,t,Ir(r)(It(n,t)),e)),n},On.values=Du,On.valuesIn=function(n){return null==n?[]:I(n,Uu(n))},On.without=Uo,On.words=$u,On.wrap=function(n,t){return rf(Ir(t),n)},On.xor=Co,On.xorBy=Do,On.xorWith=Mo,On.zip=To,On.zipObject=function(n,t){return Or(n||[],t||[],at)},On.zipObjectDeep=function(n,t){return Or(n||[],t||[],pr);
},On.zipWith=$o,On.entries=Bf,On.entriesIn=Lf,On.extend=xf,On.extendWith=jf,Zu(On,On),On.add=nc,On.attempt=Pf,On.camelCase=Uf,On.capitalize=Mu,On.ceil=tc,On.clamp=function(n,t,r){return r===F&&(r=t,t=F),r!==F&&(r=Iu(r),r=r===r?r:0),t!==F&&(t=Iu(t),t=t===t?t:0),gt(Iu(n),t,r)},On.clone=function(n){return dt(n,4)},On.cloneDeep=function(n){return dt(n,5)},On.cloneDeepWith=function(n,t){return t=typeof t=="function"?t:F,dt(n,5,t)},On.cloneWith=function(n,t){return t=typeof t=="function"?t:F,dt(n,4,t)},
On.conformsTo=function(n,t){return null==t||bt(n,t,Lu(t))},On.deburr=Tu,On.defaultTo=function(n,t){return null==n||n!==n?t:n},On.divide=rc,On.endsWith=function(n,t,r){n=zu(n),t=jr(t);var e=n.length,e=r=r===F?e:gt(Ou(r),0,e);return r-=t.length,0<=r&&n.slice(r,e)==t},On.eq=hu,On.escape=function(n){return(n=zu(n))&&Y.test(n)?n.replace(H,et):n},On.escapeRegExp=function(n){return(n=zu(n))&&fn.test(n)?n.replace(on,"\\$&"):n},On.every=function(n,t,r){var e=af(n)?o:wt;return r&&ze(n,t,r)&&(t=F),e(n,je(t,3));
},On.find=Po,On.findIndex=Ze,On.findKey=function(n,t){return v(n,je(t,3),Et)},On.findLast=Zo,On.findLastIndex=qe,On.findLastKey=function(n,t){return v(n,je(t,3),Ot)},On.floor=ec,On.forEach=ru,On.forEachRight=eu,On.forIn=function(n,t){return null==n?n:co(n,je(t,3),Uu)},On.forInRight=function(n,t){return null==n?n:ao(n,je(t,3),Uu)},On.forOwn=function(n,t){return n&&Et(n,je(t,3))},On.forOwnRight=function(n,t){return n&&Ot(n,je(t,3))},On.get=Wu,On.gt=of,On.gte=ff,On.has=function(n,t){return null!=n&&ke(n,t,Bt);
},On.hasIn=Bu,On.head=Ke,On.identity=Nu,On.includes=function(n,t,r,e){return n=pu(n)?n:Du(n),r=r&&!e?Ou(r):0,e=n.length,0>r&&(r=Di(e+r,0)),mu(n)?r<=e&&-1<n.indexOf(t,r):!!e&&-1<d(n,t,r)},On.indexOf=function(n,t,r){var e=null==n?0:n.length;return e?(r=null==r?0:Ou(r),0>r&&(r=Di(e+r,0)),d(n,t,r)):-1},On.inRange=function(n,t,r){return t=Eu(t),r===F?(r=t,t=0):r=Eu(r),n=Iu(n),n>=Mi(t,r)&&n<Di(t,r)},On.invoke=Sf,On.isArguments=cf,On.isArray=af,On.isArrayBuffer=lf,On.isArrayLike=pu,On.isArrayLikeObject=_u,
On.isBoolean=function(n){return true===n||false===n||xu(n)&&"[object Boolean]"==zt(n)},On.isBuffer=sf,On.isDate=hf,On.isElement=function(n){return xu(n)&&1===n.nodeType&&!wu(n)},On.isEmpty=function(n){if(null==n)return true;if(pu(n)&&(af(n)||typeof n=="string"||typeof n.splice=="function"||sf(n)||gf(n)||cf(n)))return!n.length;var t=yo(n);if("[object Map]"==t||"[object Set]"==t)return!n.size;if(Le(n))return!Ht(n).length;for(var r in n)if(ci.call(n,r))return false;return true},On.isEqual=function(n,t){return Ft(n,t);
},On.isEqualWith=function(n,t,r){var e=(r=typeof r=="function"?r:F)?r(n,t):F;return e===F?Ft(n,t,F,r):!!e},On.isError=vu,On.isFinite=function(n){return typeof n=="number"&&Li(n)},On.isFunction=gu,On.isInteger=du,On.isLength=yu,On.isMap=pf,On.isMatch=function(n,t){return n===t||Pt(n,t,me(t))},On.isMatchWith=function(n,t,r){return r=typeof r=="function"?r:F,Pt(n,t,me(t),r)},On.isNaN=function(n){return ju(n)&&n!=+n},On.isNative=function(n){if(bo(n))throw new Yu("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");
return Zt(n)},On.isNil=function(n){return null==n},On.isNull=function(n){return null===n},On.isNumber=ju,On.isObject=bu,On.isObjectLike=xu,On.isPlainObject=wu,On.isRegExp=_f,On.isSafeInteger=function(n){return du(n)&&-9007199254740991<=n&&9007199254740991>=n},On.isSet=vf,On.isString=mu,On.isSymbol=Au,On.isTypedArray=gf,On.isUndefined=function(n){return n===F},On.isWeakMap=function(n){return xu(n)&&"[object WeakMap]"==yo(n)},On.isWeakSet=function(n){return xu(n)&&"[object WeakSet]"==zt(n)},On.join=function(n,t){
return null==n?"":Ui.call(n,t)},On.kebabCase=Cf,On.last=Ge,On.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=e;if(r!==F&&(u=Ou(r),u=0>u?Di(e+u,0):Mi(u,e-1)),t===t){for(r=u+1;r--&&n[r]!==t;);n=r}else n=g(n,b,u,true);return n},On.lowerCase=Df,On.lowerFirst=Mf,On.lt=df,On.lte=yf,On.max=function(n){return n&&n.length?mt(n,Nu,Wt):F},On.maxBy=function(n,t){return n&&n.length?mt(n,je(t,2),Wt):F},On.mean=function(n){return x(n,Nu)},On.meanBy=function(n,t){return x(n,je(t,2))},On.min=function(n){
return n&&n.length?mt(n,Nu,Jt):F},On.minBy=function(n,t){return n&&n.length?mt(n,je(t,2),Jt):F},On.stubArray=Ku,On.stubFalse=Gu,On.stubObject=function(){return{}},On.stubString=function(){return""},On.stubTrue=function(){return true},On.multiply=uc,On.nth=function(n,t){return n&&n.length?tr(n,Ou(t)):F},On.noConflict=function(){return Zn._===this&&(Zn._=pi),this},On.noop=qu,On.now=Jo,On.pad=function(n,t,r){n=zu(n);var e=(t=Ou(t))?T(n):0;return!t||e>=t?n:(t=(t-e)/2,ee(zi(t),r)+n+ee(Ri(t),r))},On.padEnd=function(n,t,r){
n=zu(n);var e=(t=Ou(t))?T(n):0;return t&&e<t?n+ee(t-e,r):n},On.padStart=function(n,t,r){n=zu(n);var e=(t=Ou(t))?T(n):0;return t&&e<t?ee(t-e,r)+n:n},On.parseInt=function(n,t,r){return r||null==t?t=0:t&&(t=+t),$i(zu(n).replace(an,""),t||0)},On.random=function(n,t,r){if(r&&typeof r!="boolean"&&ze(n,t,r)&&(t=r=F),r===F&&(typeof t=="boolean"?(r=t,t=F):typeof n=="boolean"&&(r=n,n=F)),n===F&&t===F?(n=0,t=1):(n=Eu(n),t===F?(t=n,n=0):t=Eu(t)),n>t){var e=n;n=t,t=e}return r||n%1||t%1?(r=Fi(),Mi(n+r*(t-n+$n("1e-"+((r+"").length-1))),t)):cr(n,t);
},On.reduce=function(n,t,r){var e=af(n)?h:m,u=3>arguments.length;return e(n,je(t,4),r,u,oo)},On.reduceRight=function(n,t,r){var e=af(n)?p:m,u=3>arguments.length;return e(n,je(t,4),r,u,fo)},On.repeat=function(n,t,r){return t=(r?ze(n,t,r):t===F)?1:Ou(t),ar(zu(n),t)},On.replace=function(){var n=arguments,t=zu(n[0]);return 3>n.length?t:t.replace(n[1],n[2])},On.result=function(n,t,r){t=Rr(t,n);var e=-1,u=t.length;for(u||(u=1,n=F);++e<u;){var i=null==n?F:n[$e(t[e])];i===F&&(e=u,i=r),n=gu(i)?i.call(n):i;
}return n},On.round=ic,On.runInContext=w,On.sample=function(n){return(af(n)?tt:sr)(n)},On.size=function(n){if(null==n)return 0;if(pu(n))return mu(n)?T(n):n.length;var t=yo(n);return"[object Map]"==t||"[object Set]"==t?n.size:Ht(n).length},On.snakeCase=Tf,On.some=function(n,t,r){var e=af(n)?_:gr;return r&&ze(n,t,r)&&(t=F),e(n,je(t,3))},On.sortedIndex=function(n,t){return dr(n,t)},On.sortedIndexBy=function(n,t,r){return yr(n,t,je(r,2))},On.sortedIndexOf=function(n,t){var r=null==n?0:n.length;if(r){
var e=dr(n,t);if(e<r&&hu(n[e],t))return e}return-1},On.sortedLastIndex=function(n,t){return dr(n,t,true)},On.sortedLastIndexBy=function(n,t,r){return yr(n,t,je(r,2),true)},On.sortedLastIndexOf=function(n,t){if(null==n?0:n.length){var r=dr(n,t,true)-1;if(hu(n[r],t))return r}return-1},On.startCase=$f,On.startsWith=function(n,t,r){return n=zu(n),r=null==r?0:gt(Ou(r),0,n.length),t=jr(t),n.slice(r,r+t.length)==t},On.subtract=oc,On.sum=function(n){return n&&n.length?k(n,Nu):0},On.sumBy=function(n,t){return n&&n.length?k(n,je(t,2)):0;
},On.template=function(n,t,r){var e=On.templateSettings;r&&ze(n,t,r)&&(t=F),n=zu(n),t=jf({},t,e,se),r=jf({},t.imports,e.imports,se);var u,i,o=Lu(r),f=I(r,o),c=0;r=t.interpolate||An;var a="__p+='";r=ti((t.escape||An).source+"|"+r.source+"|"+(r===nn?gn:An).source+"|"+(t.evaluate||An).source+"|$","g");var l="sourceURL"in t?"//# sourceURL="+t.sourceURL+"\n":"";if(n.replace(r,function(t,r,e,o,f,l){return e||(e=o),a+=n.slice(c,l).replace(kn,B),r&&(u=true,a+="'+__e("+r+")+'"),f&&(i=true,a+="';"+f+";\n__p+='"),
e&&(a+="'+((__t=("+e+"))==null?'':__t)+'"),c=l+t.length,t}),a+="';",(t=t.variable)||(a="with(obj){"+a+"}"),a=(i?a.replace(q,""):a).replace(V,"$1").replace(K,"$1;"),a="function("+(t||"obj")+"){"+(t?"":"obj||(obj={});")+"var __t,__p=''"+(u?",__e=_.escape":"")+(i?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+a+"return __p}",t=Pf(function(){return Qu(o,l+"return "+a).apply(F,f)}),t.source=a,vu(t))throw t;return t},On.times=function(n,t){if(n=Ou(n),1>n||9007199254740991<n)return[];
var r=4294967295,e=Mi(n,4294967295);for(t=je(t),n-=4294967295,e=E(e,t);++r<n;)t(r);return e},On.toFinite=Eu,On.toInteger=Ou,On.toLength=Su,On.toLower=function(n){return zu(n).toLowerCase()},On.toNumber=Iu,On.toSafeInteger=function(n){return n?gt(Ou(n),-9007199254740991,9007199254740991):0===n?n:0},On.toString=zu,On.toUpper=function(n){return zu(n).toUpperCase()},On.trim=function(n,t,r){return(n=zu(n))&&(r||t===F)?n.replace(cn,""):n&&(t=jr(t))?(n=$(n),r=$(t),t=z(n,r),r=W(n,r)+1,zr(n,t,r).join("")):n;
},On.trimEnd=function(n,t,r){return(n=zu(n))&&(r||t===F)?n.replace(ln,""):n&&(t=jr(t))?(n=$(n),t=W(n,$(t))+1,zr(n,0,t).join("")):n},On.trimStart=function(n,t,r){return(n=zu(n))&&(r||t===F)?n.replace(an,""):n&&(t=jr(t))?(n=$(n),t=z(n,$(t)),zr(n,t).join("")):n},On.truncate=function(n,t){var r=30,e="...";if(bu(t))var u="separator"in t?t.separator:u,r="length"in t?Ou(t.length):r,e="omission"in t?jr(t.omission):e;n=zu(n);var i=n.length;if(Bn.test(n))var o=$(n),i=o.length;if(r>=i)return n;if(i=r-T(e),1>i)return e;
if(r=o?zr(o,0,i).join(""):n.slice(0,i),u===F)return r+e;if(o&&(i+=r.length-i),_f(u)){if(n.slice(i).search(u)){var f=r;for(u.global||(u=ti(u.source,zu(dn.exec(u))+"g")),u.lastIndex=0;o=u.exec(f);)var c=o.index;r=r.slice(0,c===F?i:c)}}else n.indexOf(jr(u),i)!=i&&(u=r.lastIndexOf(u),-1<u&&(r=r.slice(0,u)));return r+e},On.unescape=function(n){return(n=zu(n))&&J.test(n)?n.replace(G,ut):n},On.uniqueId=function(n){var t=++ai;return zu(n)+t},On.upperCase=Ff,On.upperFirst=Nf,On.each=ru,On.eachRight=eu,On.first=Ke,
Zu(On,function(){var n={};return Et(On,function(t,r){ci.call(On.prototype,r)||(n[r]=t)}),n}(),{chain:false}),On.VERSION="4.17.4",u("bind bindKey curry curryRight partial partialRight".split(" "),function(n){On[n].placeholder=On}),u(["drop","take"],function(n,t){Mn.prototype[n]=function(r){r=r===F?1:Di(Ou(r),0);var e=this.__filtered__&&!t?new Mn(this):this.clone();return e.__filtered__?e.__takeCount__=Mi(r,e.__takeCount__):e.__views__.push({size:Mi(r,4294967295),type:n+(0>e.__dir__?"Right":"")}),e},Mn.prototype[n+"Right"]=function(t){
return this.reverse()[n](t).reverse()}}),u(["filter","map","takeWhile"],function(n,t){var r=t+1,e=1==r||3==r;Mn.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:je(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}}),u(["head","last"],function(n,t){var r="take"+(t?"Right":"");Mn.prototype[n]=function(){return this[r](1).value()[0]}}),u(["initial","tail"],function(n,t){var r="drop"+(t?"":"Right");Mn.prototype[n]=function(){return this.__filtered__?new Mn(this):this[r](1);
}}),Mn.prototype.compact=function(){return this.filter(Nu)},Mn.prototype.find=function(n){return this.filter(n).head()},Mn.prototype.findLast=function(n){return this.reverse().find(n)},Mn.prototype.invokeMap=lr(function(n,t){return typeof n=="function"?new Mn(this):this.map(function(r){return Dt(r,n,t)})}),Mn.prototype.reject=function(n){return this.filter(su(je(n)))},Mn.prototype.slice=function(n,t){n=Ou(n);var r=this;return r.__filtered__&&(0<n||0>t)?new Mn(r):(0>n?r=r.takeRight(-n):n&&(r=r.drop(n)),
t!==F&&(t=Ou(t),r=0>t?r.dropRight(-t):r.take(t-n)),r)},Mn.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Mn.prototype.toArray=function(){return this.take(4294967295)},Et(Mn.prototype,function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),u=On[e?"take"+("last"==t?"Right":""):t],i=e||/^find/.test(t);u&&(On.prototype[t]=function(){function t(n){return n=u.apply(On,s([n],f)),e&&h?n[0]:n}var o=this.__wrapped__,f=e?[1]:arguments,c=o instanceof Mn,a=f[0],l=c||af(o);
l&&r&&typeof a=="function"&&1!=a.length&&(c=l=false);var h=this.__chain__,p=!!this.__actions__.length,a=i&&!h,c=c&&!p;return!i&&l?(o=c?o:new Mn(this),o=n.apply(o,f),o.__actions__.push({func:nu,args:[t],thisArg:F}),new zn(o,h)):a&&c?n.apply(this,f):(o=this.thru(t),a?e?o.value()[0]:o.value():o)})}),u("pop push shift sort splice unshift".split(" "),function(n){var t=ui[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);On.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){
var u=this.value();return t.apply(af(u)?u:[],n)}return this[r](function(r){return t.apply(af(r)?r:[],n)})}}),Et(Mn.prototype,function(n,t){var r=On[t];if(r){var e=r.name+"";(Ji[e]||(Ji[e]=[])).push({name:t,func:r})}}),Ji[Xr(F,2).name]=[{name:"wrapper",func:F}],Mn.prototype.clone=function(){var n=new Mn(this.__wrapped__);return n.__actions__=Mr(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Mr(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Mr(this.__views__),
n},Mn.prototype.reverse=function(){if(this.__filtered__){var n=new Mn(this);n.__dir__=-1,n.__filtered__=true}else n=this.clone(),n.__dir__*=-1;return n},Mn.prototype.value=function(){var n,t=this.__wrapped__.value(),r=this.__dir__,e=af(t),u=0>r,i=e?t.length:0;n=i;for(var o=this.__views__,f=0,c=-1,a=o.length;++c<a;){var l=o[c],s=l.size;switch(l.type){case"drop":f+=s;break;case"dropRight":n-=s;break;case"take":n=Mi(n,f+s);break;case"takeRight":f=Di(f,n-s)}}if(n={start:f,end:n},o=n.start,f=n.end,n=f-o,
o=u?f:o-1,f=this.__iteratees__,c=f.length,a=0,l=Mi(n,this.__takeCount__),!e||!u&&i==n&&l==n)return kr(t,this.__actions__);e=[];n:for(;n--&&a<l;){for(o+=r,u=-1,i=t[o];++u<c;){var h=f[u],s=h.type,h=(0,h.iteratee)(i);if(2==s)i=h;else if(!h){if(1==s)continue n;break n}}e[a++]=i}return e},On.prototype.at=Fo,On.prototype.chain=function(){return Xe(this)},On.prototype.commit=function(){return new zn(this.value(),this.__chain__)},On.prototype.next=function(){this.__values__===F&&(this.__values__=ku(this.value()));
var n=this.__index__>=this.__values__.length;return{done:n,value:n?F:this.__values__[this.__index__++]}},On.prototype.plant=function(n){for(var t,r=this;r instanceof Sn;){var e=Pe(r);e.__index__=0,e.__values__=F,t?u.__wrapped__=e:t=e;var u=e,r=r.__wrapped__}return u.__wrapped__=n,t},On.prototype.reverse=function(){var n=this.__wrapped__;return n instanceof Mn?(this.__actions__.length&&(n=new Mn(this)),n=n.reverse(),n.__actions__.push({func:nu,args:[Je],thisArg:F}),new zn(n,this.__chain__)):this.thru(Je);
},On.prototype.toJSON=On.prototype.valueOf=On.prototype.value=function(){return kr(this.__wrapped__,this.__actions__)},On.prototype.first=On.prototype.head,Ai&&(On.prototype[Ai]=tu),On}();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Zn._=it, define(function(){return it})):Vn?((Vn.exports=it)._=it,qn._=it):Zn._=it}).call(this);!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.d3=t.d3||{})}(this,function(t){"use strict";function n(t){return function(n,e){return Mf(t(n),e)}}function e(t,n){return[t,n]}function r(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=If?10:o>=Hf?5:o>=Bf?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=If?10:o>=Hf?5:o>=Bf?2:1)}function i(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=If?i*=10:o>=Hf?i*=5:o>=Bf&&(i*=2),n<t?-i:i}function o(t){return t.length}function u(t){return"translate("+(t+.5)+",0)"}function a(t){return"translate(0,"+(t+.5)+")"}function c(t){return function(n){return+t(n)}}function s(t){var n=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(n=Math.round(n)),function(e){return+t(e)+n}}function f(){return!this.__axis}function l(t,n){function e(e){var u=null==i?n.ticks?n.ticks.apply(n,r):n.domain():i,a=null==o?n.tickFormat?n.tickFormat.apply(n,r):cl:o,y=Math.max(l,0)+p,_=n.range(),m=+_[0]+.5,x=+_[_.length-1]+.5,b=(n.bandwidth?s:c)(n.copy()),w=e.selection?e.selection():e,M=w.selectAll(".domain").data([null]),T=w.selectAll(".tick").data(u,n).order(),N=T.exit(),k=T.enter().append("g").attr("class","tick"),S=T.select("line"),A=T.select("text");M=M.merge(M.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),T=T.merge(k),S=S.merge(k.append("line").attr("stroke","#000").attr(v+"2",d*l)),A=A.merge(k.append("text").attr("fill","#000").attr(v,d*y).attr("dy",t===sl?"0em":t===ll?"0.71em":"0.32em")),e!==w&&(M=M.transition(e),T=T.transition(e),S=S.transition(e),A=A.transition(e),N=N.transition(e).attr("opacity",pl).attr("transform",function(t){return isFinite(t=b(t))?g(t):this.getAttribute("transform")}),k.attr("opacity",pl).attr("transform",function(t){var n=this.parentNode.__axis;return g(n&&isFinite(n=n(t))?n:b(t))})),N.remove(),M.attr("d",t===hl||t==fl?"M"+d*h+","+m+"H0.5V"+x+"H"+d*h:"M"+m+","+d*h+"V0.5H"+x+"V"+d*h),T.attr("opacity",1).attr("transform",function(t){return g(b(t))}),S.attr(v+"2",d*l),A.attr(v,d*y).text(a),w.filter(f).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===fl?"start":t===hl?"end":"middle"),w.each(function(){this.__axis=b})}var r=[],i=null,o=null,l=6,h=6,p=3,d=t===sl||t===hl?-1:1,v=t===hl||t===fl?"x":"y",g=t===sl||t===ll?u:a;return e.scale=function(t){return arguments.length?(n=t,e):n},e.ticks=function(){return r=al.call(arguments),e},e.tickArguments=function(t){return arguments.length?(r=null==t?[]:al.call(t),e):r.slice()},e.tickValues=function(t){return arguments.length?(i=null==t?null:al.call(t),e):i&&i.slice()},e.tickFormat=function(t){return arguments.length?(o=t,e):o},e.tickSize=function(t){return arguments.length?(l=h=+t,e):l},e.tickSizeInner=function(t){return arguments.length?(l=+t,e):l},e.tickSizeOuter=function(t){return arguments.length?(h=+t,e):h},e.tickPadding=function(t){return arguments.length?(p=+t,e):p},e}function h(t){return l(sl,t)}function p(t){return l(fl,t)}function d(t){return l(ll,t)}function v(t){return l(hl,t)}function g(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r)throw new Error("illegal type: "+t);r[t]=[]}return new y(r)}function y(t){this._=t}function _(t,n){return t.trim().split(/^|\s+/).map(function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})}function m(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function x(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=dl,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}function b(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===vl&&n.documentElement.namespaceURI===vl?n.createElement(t):n.createElementNS(e,t)}}function w(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function M(){return new T}function T(){this._="@"+(++ml).toString(36)}function N(t,n,e){return t=k(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function k(n,e,r){return function(i){var o=t.event;t.event=i;try{n.call(this,this.__data__,e,r)}finally{t.event=o}}}function S(t){return t.trim().split(/^|\s+/).map(function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}})}function A(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.capture);++i?n.length=i:delete this.__on}}}function E(t,n,e){var r=Tl.hasOwnProperty(t.type)?N:k;return function(i,o,u){var a,c=this.__on,s=r(n,o,u);if(c)for(var f=0,l=c.length;f<l;++f)if((a=c[f]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=s,a.capture=e),void(a.value=n);this.addEventListener(t.type,s,e),a={type:t.type,name:t.name,value:n,listener:s,capture:e},c?c.push(a):this.__on=[a]}}function C(n,e,r,i){var o=t.event;n.sourceEvent=t.event,t.event=n;try{return e.apply(r,i)}finally{t.event=o}}function z(){}function P(){return[]}function R(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function L(t,n,e,r,i,o){for(var u,a=0,c=n.length,s=o.length;a<s;++a)(u=n[a])?(u.__data__=o[a],r[a]=u):e[a]=new R(t,o[a]);for(;a<c;++a)(u=n[a])&&(i[a]=u)}function D(t,n,e,r,i,o,u){var a,c,s,f={},l=n.length,h=o.length,p=new Array(l);for(a=0;a<l;++a)(c=n[a])&&(p[a]=s=Ul+u.call(c,c.__data__,a,n),s in f?i[a]=c:f[s]=c);for(a=0;a<h;++a)s=Ul+u.call(t,o[a],a,o),(c=f[s])?(r[a]=c,c.__data__=o[a],f[s]=null):e[a]=new R(t,o[a]);for(a=0;a<l;++a)(c=n[a])&&f[p[a]]===c&&(i[a]=c)}function q(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function U(t){return function(){this.removeAttribute(t)}}function O(t){return function(){this.removeAttributeNS(t.space,t.local)}}function F(t,n){return function(){this.setAttribute(t,n)}}function Y(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function I(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function H(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function B(t){return function(){this.style.removeProperty(t)}}function j(t,n,e){return function(){this.style.setProperty(t,n,e)}}function X(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function W(t,n){return t.style.getPropertyValue(n)||Gl(t).getComputedStyle(t,null).getPropertyValue(n)}function V(t){return function(){delete this[t]}}function $(t,n){return function(){this[t]=n}}function Z(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function G(t){return t.trim().split(/^|\s+/)}function Q(t){return t.classList||new J(t)}function J(t){this._node=t,this._names=G(t.getAttribute("class")||"")}function K(t,n){for(var e=Q(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function tt(t,n){for(var e=Q(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function nt(t){return function(){K(this,t)}}function et(t){return function(){tt(this,t)}}function rt(t,n){return function(){(n.apply(this,arguments)?K:tt)(this,t)}}function it(){this.textContent=""}function ot(t){return function(){this.textContent=t}}function ut(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function at(){this.innerHTML=""}function ct(t){return function(){this.innerHTML=t}}function st(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function ft(){this.nextSibling&&this.parentNode.appendChild(this)}function lt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ht(){return null}function pt(){var t=this.parentNode;t&&t.removeChild(this)}function dt(t,n,e){var r=Gl(t),i=r.CustomEvent;"function"==typeof i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function vt(t,n){return function(){return dt(this,t,n)}}function gt(t,n){return function(){return dt(this,t,n.apply(this,arguments))}}function yt(t,n){this._groups=t,this._parents=n}function _t(){return new yt([[document.documentElement]],sh)}function mt(){t.event.stopImmediatePropagation()}function xt(t,n){var e=t.document.documentElement,r=fh(t).on("dragstart.drag",null);n&&(r.on("click.drag",dh,!0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in e?r.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}function bt(t,n,e,r,i,o,u,a,c,s){this.target=t,this.type=n,this.subject=e,this.identifier=r,this.active=i,this.x=o,this.y=u,this.dx=a,this.dy=c,this._=s}function wt(){return!t.event.button}function Mt(){return this.parentNode}function Tt(n){return null==n?{x:t.event.x,y:t.event.y}:n}function Nt(){return"ontouchstart"in this}function kt(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function St(){}function At(t){var n;return t=(t+"").trim().toLowerCase(),(n=wh.exec(t))?(n=parseInt(n[1],16),new Rt(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1)):(n=Mh.exec(t))?Et(parseInt(n[1],16)):(n=Th.exec(t))?new Rt(n[1],n[2],n[3],1):(n=Nh.exec(t))?new Rt(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=kh.exec(t))?Ct(n[1],n[2],n[3],n[4]):(n=Sh.exec(t))?Ct(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Ah.exec(t))?Lt(n[1],n[2]/100,n[3]/100,1):(n=Eh.exec(t))?Lt(n[1],n[2]/100,n[3]/100,n[4]):Ch.hasOwnProperty(t)?Et(Ch[t]):"transparent"===t?new Rt(NaN,NaN,NaN,0):null}function Et(t){return new Rt(t>>16&255,t>>8&255,255&t,1)}function Ct(t,n,e,r){return r<=0&&(t=n=e=NaN),new Rt(t,n,e,r)}function zt(t){return t instanceof St||(t=At(t)),t?(t=t.rgb(),new Rt(t.r,t.g,t.b,t.opacity)):new Rt}function Pt(t,n,e,r){return 1===arguments.length?zt(t):new Rt(t,n,e,null==r?1:r)}function Rt(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Lt(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Ut(t,n,e,r)}function Dt(t){if(t instanceof Ut)return new Ut(t.h,t.s,t.l,t.opacity);if(t instanceof St||(t=At(t)),!t)return new Ut;if(t instanceof Ut)return t;t=t.rgb();var n=t.r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),u=NaN,a=o-i,c=(o+i)/2;return a?(u=n===o?(e-r)/a+6*(e<r):e===o?(r-n)/a+2:(n-e)/a+4,a/=c<.5?o+i:2-o-i,u*=60):a=c>0&&c<1?0:u,new Ut(u,a,c,t.opacity)}function qt(t,n,e,r){return 1===arguments.length?Dt(t):new Ut(t,n,e,null==r?1:r)}function Ut(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Ot(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function Ft(t){if(t instanceof It)return new It(t.l,t.a,t.b,t.opacity);if(t instanceof $t){var n=t.h*zh;return new It(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof Rt||(t=zt(t));var e=Xt(t.r),r=Xt(t.g),i=Xt(t.b),o=Ht((.4124564*e+.3575761*r+.1804375*i)/Rh),u=Ht((.2126729*e+.7151522*r+.072175*i)/Lh);return new It(116*u-16,500*(o-u),200*(u-Ht((.0193339*e+.119192*r+.9503041*i)/Dh)),t.opacity)}function Yt(t,n,e,r){return 1===arguments.length?Ft(t):new It(t,n,e,null==r?1:r)}function It(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function Ht(t){return t>Fh?Math.pow(t,1/3):t/Oh+qh}function Bt(t){return t>Uh?t*t*t:Oh*(t-qh)}function jt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Xt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Wt(t){if(t instanceof $t)return new $t(t.h,t.c,t.l,t.opacity);t instanceof It||(t=Ft(t));var n=Math.atan2(t.b,t.a)*Ph;return new $t(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Vt(t,n,e,r){return 1===arguments.length?Wt(t):new $t(t,n,e,null==r?1:r)}function $t(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function Zt(t){if(t instanceof Qt)return new Qt(t.h,t.s,t.l,t.opacity);t instanceof Rt||(t=zt(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(Vh*r+Xh*n-Wh*e)/(Vh+Xh-Wh),o=r-i,u=(jh*(e-i)-Hh*o)/Bh,a=Math.sqrt(u*u+o*o)/(jh*i*(1-i)),c=a?Math.atan2(u,o)*Ph-120:NaN;return new Qt(c<0?c+360:c,a,i,t.opacity)}function Gt(t,n,e,r){return 1===arguments.length?Zt(t):new Qt(t,n,e,null==r?1:r)}function Qt(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Jt(t,n,e,r,i){var o=t*t,u=o*t;return((1-3*t+3*o-u)*n+(4-6*o+3*u)*e+(1+3*t+3*o-3*u)*r+u*i)/6}function Kt(t,n){return function(e){return t+e*n}}function tn(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)}}function nn(t,n){var e=n-t;return e?Kt(t,e>180||e<-180?e-360*Math.round(e/360):e):ep(isNaN(t)?n:t)}function en(t){return 1==(t=+t)?rn:function(n,e){return e-n?tn(n,e,t):ep(isNaN(n)?e:n)}}function rn(t,n){var e=n-t;return e?Kt(t,e):ep(isNaN(t)?n:t)}function on(t){return function(n){var e,r,i=n.length,o=new Array(i),u=new Array(i),a=new Array(i);for(e=0;e<i;++e)r=Pt(n[e]),o[e]=r.r||0,u[e]=r.g||0,a[e]=r.b||0;return o=t(o),u=t(u),a=t(a),r.opacity=1,function(t){return r.r=o(t),r.g=u(t),r.b=a(t),r+""}}}function un(t){return function(){return t}}function an(t){return function(n){return t(n)+""}}function cn(t){return"none"===t?gp:($h||($h=document.createElement("DIV"),Zh=document.documentElement,Gh=document.defaultView),$h.style.transform=t,t=Gh.getComputedStyle(Zh.appendChild($h),null).getPropertyValue("transform"),Zh.removeChild($h),t=t.slice(7,-1).split(","),yp(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function sn(t){return null==t?gp:(Qh||(Qh=document.createElementNS("http://www.w3.org/2000/svg","g")),Qh.setAttribute("transform",t),(t=Qh.transform.baseVal.consolidate())?(t=t.matrix,yp(t.a,t.b,t.c,t.d,t.e,t.f)):gp)}function fn(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}function o(t,r,i,o,u,a){if(t!==i||r!==o){var c=u.push("translate(",null,n,null,e);a.push({i:c-4,x:cp(t,i)},{i:c-2,x:cp(r,o)})}else(i||o)&&u.push("translate("+i+n+o+e)}function u(t,n,e,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:cp(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}function a(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:cp(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}function c(t,n,e,r,o,u){if(t!==e||n!==r){var a=o.push(i(o)+"scale(",null,",",null,")");u.push({i:a-4,x:cp(t,e)},{i:a-2,x:cp(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}return function(n,e){var r=[],i=[];return n=t(n),e=t(e),o(n.translateX,n.translateY,e.translateX,e.translateY,r,i),u(n.rotate,e.rotate,r,i),a(n.skewX,e.skewX,r,i),c(n.scaleX,n.scaleY,e.scaleX,e.scaleY,r,i),n=e=null,function(t){for(var n,e=-1,o=i.length;++e<o;)r[(n=i[e]).i]=n.x(t);return r.join("")}}}function ln(t){return((t=Math.exp(t))+1/t)/2}function hn(t){return((t=Math.exp(t))-1/t)/2}function pn(t){return((t=Math.exp(2*t))-1)/(t+1)}function dn(t){return function(n,e){var r=t((n=qt(n)).h,(e=qt(e)).h),i=rn(n.s,e.s),o=rn(n.l,e.l),u=rn(n.opacity,e.opacity);return function(t){return n.h=r(t),n.s=i(t),n.l=o(t),n.opacity=u(t),n+""}}}function vn(t,n){var e=rn((t=Yt(t)).l,(n=Yt(n)).l),r=rn(t.a,n.a),i=rn(t.b,n.b),o=rn(t.opacity,n.opacity);return function(n){return t.l=e(n),t.a=r(n),t.b=i(n),t.opacity=o(n),t+""}}function gn(t){return function(n,e){var r=t((n=Vt(n)).h,(e=Vt(e)).h),i=rn(n.c,e.c),o=rn(n.l,e.l),u=rn(n.opacity,e.opacity);return function(t){return n.h=r(t),n.c=i(t),n.l=o(t),n.opacity=u(t),n+""}}}function yn(t){return function n(e){function r(n,r){var i=t((n=Gt(n)).h,(r=Gt(r)).h),o=rn(n.s,r.s),u=rn(n.l,r.l),a=rn(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=o(t),n.l=u(Math.pow(t,e)),n.opacity=a(t),n+""}}return e=+e,r.gamma=n,r}(1)}function _n(){return Lp||(Up(mn),Lp=qp.now()+Dp)}function mn(){Lp=0}function xn(){this._call=this._time=this._next=null}function bn(t,n,e){var r=new xn;return r.restart(t,n,e),r}function wn(){_n(),++Ep;for(var t,n=Jh;n;)(t=Lp-n._time)>=0&&n._call.call(null,t),n=n._next;--Ep}function Mn(){Lp=(Rp=qp.now())+Dp,Ep=Cp=0;try{wn()}finally{Ep=0,Nn(),Lp=0}}function Tn(){var t=qp.now(),n=t-Rp;n>Pp&&(Dp-=n,Rp=t)}function Nn(){for(var t,n,e=Jh,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Jh=n);Kh=t,kn(r)}function kn(t){if(!Ep){Cp&&(Cp=clearTimeout(Cp));t-Lp>24?(t<1/0&&(Cp=setTimeout(Mn,t-qp.now()-Dp)),zp&&(zp=clearInterval(zp))):(zp||(Rp=qp.now(),zp=setInterval(Tn,Pp)),Ep=1,Up(Mn))}}function Sn(t,n){var e=En(t,n);if(e.state>Hp)throw new Error("too late; already scheduled");return e}function An(t,n){var e=En(t,n);if(e.state>jp)throw new Error("too late; already started");return e}function En(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function Cn(t,n,e){function r(t){e.state=Bp,e.timer.restart(i,e.delay,e.time),e.delay<=t&&i(t-e.delay)}function i(r){var s,f,l,h;if(e.state!==Bp)return u();for(s in c)if(h=c[s],h.name===e.name){if(h.state===Xp)return Op(i);h.state===Wp?(h.state=$p,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete c[s]):+s<n&&(h.state=$p,h.timer.stop(),delete c[s])}if(Op(function(){e.state===Xp&&(e.state=Wp,e.timer.restart(o,e.delay,e.time),o(r))}),e.state=jp,e.on.call("start",t,t.__data__,e.index,e.group),e.state===jp){for(e.state=Xp,a=new Array(l=e.tween.length),s=0,f=-1;s<l;++s)(h=e.tween[s].value.call(t,t.__data__,e.index,e.group))&&(a[++f]=h);a.length=f+1}}function o(n){for(var r=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(u),e.state=Vp,1),i=-1,o=a.length;++i<o;)a[i].call(null,r);e.state===Vp&&(e.on.call("end",t,t.__data__,e.index,e.group),u())}function u(){e.state=$p,e.timer.stop(),delete c[n];for(var r in c)return;delete t.__transition}var a,c=t.__transition;c[n]=e,e.timer=bn(r,0,e.time)}function zn(t,n){var e,r;return function(){var i=An(this,t),o=i.tween;if(o!==e){r=e=o;for(var u=0,a=r.length;u<a;++u)if(r[u].name===n){r=r.slice(),r.splice(u,1);break}}i.tween=r}}function Pn(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=An(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:n,value:e},c=0,s=i.length;c<s;++c)if(i[c].name===n){i[c]=a;break}c===s&&i.push(a)}o.tween=i}}function Rn(t,n,e){var r=t._id;return t.each(function(){var t=An(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)}),function(t){return En(t,r).value[n]}}function Ln(t){return function(){this.removeAttribute(t)}}function Dn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function qn(t,n,e){var r,i;return function(){var o=this.getAttribute(t);return o===e?null:o===r?i:i=n(r=o,e)}}function Un(t,n,e){var r,i;return function(){var o=this.getAttributeNS(t.space,t.local);return o===e?null:o===r?i:i=n(r=o,e)}}function On(t,n,e){var r,i,o;return function(){var u,a=e(this);return null==a?void this.removeAttribute(t):(u=this.getAttribute(t),u===a?null:u===r&&a===i?o:o=n(r=u,i=a))}}function Fn(t,n,e){var r,i,o;return function(){var u,a=e(this);return null==a?void this.removeAttributeNS(t.space,t.local):(u=this.getAttributeNS(t.space,t.local),u===a?null:u===r&&a===i?o:o=n(r=u,i=a))}}function Yn(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttributeNS(t.space,t.local,r(n))}}return e._value=n,e}function In(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttribute(t,r(n))}}return e._value=n,e}function Hn(t,n){return function(){Sn(this,t).delay=+n.apply(this,arguments)}}function Bn(t,n){return n=+n,function(){Sn(this,t).delay=n}}function jn(t,n){return function(){An(this,t).duration=+n.apply(this,arguments)}}function Xn(t,n){return n=+n,function(){An(this,t).duration=n}}function Wn(t,n){if("function"!=typeof n)throw new Error;return function(){An(this,t).ease=n}}function Vn(t){return(t+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t})}function $n(t,n,e){var r,i,o=Vn(n)?Sn:An;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}function Zn(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}function Gn(t,n){var e,r,i;return function(){var o=W(this,t),u=(this.style.removeProperty(t),W(this,t));return o===u?null:o===e&&u===r?i:i=n(e=o,r=u)}}function Qn(t){return function(){this.style.removeProperty(t)}}function Jn(t,n,e){var r,i;return function(){var o=W(this,t);return o===e?null:o===r?i:i=n(r=o,e)}}function Kn(t,n,e){var r,i,o;return function(){var u=W(this,t),a=e(this);return null==a&&(this.style.removeProperty(t),a=W(this,t)),u===a?null:u===r&&a===i?o:o=n(r=u,i=a)}}function te(t,n,e){function r(){var r=this,i=n.apply(r,arguments);return i&&function(n){r.style.setProperty(t,i(n),e)}}return r._value=n,r}function ne(t){return function(){this.textContent=t}}function ee(t){return function(){var n=t(this);this.textContent=null==n?"":n}}function re(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function ie(t){return _t().transition(t)}function oe(){return++yd}function ue(t){return+t}function ae(t){return t*t}function ce(t){return t*(2-t)}function se(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function fe(t){return t*t*t}function le(t){return--t*t*t+1}function he(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}function pe(t){return 1-Math.cos(t*Md)}function de(t){return Math.sin(t*Md)}function ve(t){return(1-Math.cos(wd*t))/2}function ge(t){return Math.pow(2,10*t-10)}function ye(t){return 1-Math.pow(2,-10*t)}function _e(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function me(t){return 1-Math.sqrt(1-t*t)}function xe(t){return Math.sqrt(1- --t*t)}function be(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}function we(t){return 1-Me(1-t)}function Me(t){return(t=+t)<Td?Rd*t*t:t<kd?Rd*(t-=Nd)*t+Sd:t<Ed?Rd*(t-=Ad)*t+Cd:Rd*(t-=zd)*t+Pd}function Te(t){return((t*=2)<=1?1-Me(1-t):Me(t-1)+1)/2}function Ne(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return Id.time=_n(),Id;return e}function ke(){t.event.stopImmediatePropagation()}function Se(t){return{type:t}}function Ae(){return!t.event.button}function Ee(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Ce(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function ze(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Pe(t){var n=t.__brush;return n?n.dim.output(n.selection):null}function Re(){return De(Jd)}function Le(){return De(Kd)}function De(n){function e(t){var e=t.property("__brush",a).selectAll(".overlay").data([Se("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",nv.overlay).merge(e).each(function(){var t=Ce(this).extent;fh(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])}),t.selectAll(".selection").data([Se("selection")]).enter().append("rect").attr("class","selection").attr("cursor",nv.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var i=t.selectAll(".handle").data(n.handles,function(t){return t.type});i.exit().remove(),i.enter().append("rect").attr("class",function(t){return"handle handle--"+t.type}).attr("cursor",function(t){return nv[t.type]}),t.each(r).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",u)}function r(){var t=fh(this),n=Ce(this).selection;n?(t.selectAll(".selection").style("display",null).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1]),t.selectAll(".handle").style("display",null).attr("x",function(t){return"e"===t.type[t.type.length-1]?n[1][0]-h/2:n[0][0]-h/2}).attr("y",function(t){return"s"===t.type[0]?n[1][1]-h/2:n[0][1]-h/2}).attr("width",function(t){return"n"===t.type||"s"===t.type?n[1][0]-n[0][0]+h:h}).attr("height",function(t){return"e"===t.type||"w"===t.type?n[1][1]-n[0][1]+h:h})):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function i(t,n){return t.__brush.emitter||new o(t,n)}function o(t,n){this.that=t,this.args=n,this.state=t.__brush,this.active=0}function u(){function e(){var t=Al(T);!q||w||M||(Math.abs(t[0]-O[0])>Math.abs(t[1]-O[1])?M=!0:w=!0),O=t,b=!0,Vd(),o()}function o(){var t;switch(m=O[0]-U[0],x=O[1]-U[1],k){case Zd:case $d:S&&(m=Math.max(P-l,Math.min(L-v,m)),h=l+m,g=v+m),A&&(x=Math.max(R-p,Math.min(D-y,x)),d=p+x,_=y+x);break;case Gd:S<0?(m=Math.max(P-l,Math.min(L-l,m)),h=l+m,g=v):S>0&&(m=Math.max(P-v,Math.min(L-v,m)),h=l,g=v+m),A<0?(x=Math.max(R-p,Math.min(D-p,x)),d=p+x,_=y):A>0&&(x=Math.max(R-y,Math.min(D-y,x)),d=p,_=y+x);break;case Qd:S&&(h=Math.max(P,Math.min(L,l-m*S)),g=Math.max(P,Math.min(L,v+m*S))),A&&(d=Math.max(R,Math.min(D,p-x*A)),_=Math.max(R,Math.min(D,y+x*A)))}g<h&&(S*=-1,t=l,l=v,v=t,t=h,h=g,g=t,N in ev&&I.attr("cursor",nv[N=ev[N]])),_<d&&(A*=-1,t=p,p=y,y=t,t=d,d=_,_=t,N in rv&&I.attr("cursor",nv[N=rv[N]])),E.selection&&(z=E.selection),w&&(h=z[0][0],g=z[1][0]),M&&(d=z[0][1],_=z[1][1]),z[0][0]===h&&z[0][1]===d&&z[1][0]===g&&z[1][1]===_||(E.selection=[[h,d],[g,_]],r.call(T),F.brush())}function u(){if(ke(),t.event.touches){if(t.event.touches.length)return;c&&clearTimeout(c),c=setTimeout(function(){c=null},500),Y.on("touchmove.brush touchend.brush touchcancel.brush",null)}else xt(t.event.view,b),H.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Y.attr("pointer-events","all"),I.attr("cursor",nv.overlay),E.selection&&(z=E.selection),ze(z)&&(E.selection=null,r.call(T)),F.end()}function a(){switch(t.event.keyCode){case 16:q=S&&A;break;case 18:k===Gd&&(S&&(v=g-m*S,l=h+m*S),A&&(y=_-x*A,p=d+x*A),k=Qd,o());break;case 32:k!==Gd&&k!==Qd||(S<0?v=g-m:S>0&&(l=h-m),A<0?y=_-x:A>0&&(p=d-x),k=Zd,I.attr("cursor",nv.selection),o());break;default:return}Vd()}function s(){switch(t.event.keyCode){case 16:q&&(w=M=q=!1,o());break;case 18:k===Qd&&(S<0?v=g:S>0&&(l=h),A<0?y=_:A>0&&(p=d),k=Gd,o());break;case 32:k===Zd&&(t.event.altKey?(S&&(v=g-m*S,l=h+m*S),A&&(y=_-x*A,p=d+x*A),k=Qd):(S<0?v=g:S>0&&(l=h),A<0?y=_:A>0&&(p=d),k=Gd),I.attr("cursor",nv[N]),o());break;default:return}Vd()}if(t.event.touches){if(t.event.changedTouches.length<t.event.touches.length)return Vd()}else if(c)return;if(f.apply(this,arguments)){var l,h,p,d,v,g,y,_,m,x,b,w,M,T=this,N=t.event.target.__data__.type,k="selection"===(t.event.metaKey?N="overlay":N)?$d:t.event.altKey?Qd:Gd,S=n===Kd?null:iv[N],A=n===Jd?null:ov[N],E=Ce(T),C=E.extent,z=E.selection,P=C[0][0],R=C[0][1],L=C[1][0],D=C[1][1],q=S&&A&&t.event.shiftKey,U=Al(T),O=U,F=i(T,arguments).beforestart();"overlay"===N?E.selection=z=[[l=n===Kd?P:U[0],p=n===Jd?R:U[1]],[v=n===Kd?L:l,y=n===Jd?D:p]]:(l=z[0][0],p=z[0][1],v=z[1][0],y=z[1][1]),h=l,d=p,g=v,_=y;var Y=fh(T).attr("pointer-events","none"),I=Y.selectAll(".overlay").attr("cursor",nv[N]);if(t.event.touches)Y.on("touchmove.brush",e,!0).on("touchend.brush touchcancel.brush",u,!0);else{var H=fh(t.event.view).on("keydown.brush",a,!0).on("keyup.brush",s,!0).on("mousemove.brush",e,!0).on("mouseup.brush",u,!0);vh(t.event.view)}ke(),Gp(T),r.call(T),F.start()}}function a(){var t=this.__brush||{selection:null};return t.extent=s.apply(this,arguments),t.dim=n,t}var c,s=Ee,f=Ae,l=g(e,"start","brush","end"),h=6;return e.move=function(t,e){t.selection?t.on("start.brush",function(){i(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){i(this,arguments).end()}).tween("brush",function(){function t(t){u.selection=1===t&&ze(s)?null:f(t),r.call(o),a.brush()}var o=this,u=o.__brush,a=i(o,arguments),c=u.selection,s=n.input("function"==typeof e?e.apply(this,arguments):e,u.extent),f=pp(c,s);return c&&s?t:t(1)}):t.each(function(){var t=this,o=arguments,u=t.__brush,a=n.input("function"==typeof e?e.apply(t,o):e,u.extent),c=i(t,o).beforestart();Gp(t),u.selection=null==a||ze(a)?null:a,r.call(t),c.start().brush().end()})},o.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(t){C(new Wd(e,t,n.output(this.state.selection)),l.apply,l,[t,this.that,this.args])}},e.extent=function(t){return arguments.length?(s="function"==typeof t?t:Xd([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),e):s},e.filter=function(t){return arguments.length?(f="function"==typeof t?t:Xd(!!t),e):f},e.handleSize=function(t){return arguments.length?(h=+t,e):h},e.on=function(){var t=l.on.apply(l,arguments);return t===l?e:t},e}function qe(t){return function(n,e){return t(n.source.value+n.target.value,e.source.value+e.target.value)}}function Ue(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Oe(){return new Ue}function Fe(t){return t.source}function Ye(t){return t.target}function Ie(t){return t.radius}function He(t){return t.startAngle}function Be(t){return t.endAngle}function je(){}function Xe(t,n){var e=new je;if(t instanceof je)t.each(function(t,n){e.set(n,t)});else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==n)for(;++i<o;)e.set(i,t[i]);else for(;++i<o;)e.set(n(r=t[i],i,t),r)}else if(t)for(var u in t)e.set(u,t[u]);return e}function We(){return{}}function Ve(t,n,e){t[n]=e}function $e(){return Xe()}function Ze(t,n,e){t.set(n,e)}function Ge(){}function Qe(t,n){var e=new Ge;if(t instanceof Ge)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}function Je(t){return new Function("d","return {"+t.map(function(t,n){return JSON.stringify(t)+": d["+n+"]"}).join(",")+"}")}function Ke(t,n){var e=Je(t);return function(r,i){return n(e(r),i,t)}}function tr(t){var n=Object.create(null),e=[];return t.forEach(function(t){for(var r in t)r in n||e.push(n[r]=r)}),e}function nr(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,o,u,a,c,s,f,l,h,p=t._root,d={data:r},v=t._x0,g=t._y0,y=t._x1,_=t._y1;if(!p)return t._root=d,t;for(;p.length;)if((s=n>=(o=(v+y)/2))?v=o:y=o,(f=e>=(u=(g+_)/2))?g=u:_=u,i=p,!(p=p[l=f<<1|s]))return i[l]=d,t;if(a=+t._x.call(null,p.data),c=+t._y.call(null,p.data),n===a&&e===c)return d.next=p,i?i[l]=d:t._root=d,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(s=n>=(o=(v+y)/2))?v=o:y=o,(f=e>=(u=(g+_)/2))?g=u:_=u}while((l=f<<1|s)==(h=(c>=u)<<1|a>=o));return i[h]=p,i[l]=d,t}function er(t){var n,e,r,i,o=t.length,u=new Array(o),a=new Array(o),c=1/0,s=1/0,f=-1/0,l=-1/0;for(e=0;e<o;++e)isNaN(r=+this._x.call(null,n=t[e]))||isNaN(i=+this._y.call(null,n))||(u[e]=r,a[e]=i,r<c&&(c=r),r>f&&(f=r),i<s&&(s=i),i>l&&(l=i));for(f<c&&(c=this._x0,f=this._x1),l<s&&(s=this._y0,l=this._y1),this.cover(c,s).cover(f,l),e=0;e<o;++e)nr(this,u[e],a[e],t[e]);return this}function rr(t){for(var n=0,e=t.length;n<e;++n)this.remove(t[n]);return this}function ir(t){return t[0]}function or(t){return t[1]}function ur(t,n,e){var r=new ar(null==n?ir:n,null==e?or:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function ar(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function cr(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}function sr(t){return t.x+t.vx}function fr(t){return t.y+t.vy}function lr(t){return t.index}function hr(t,n){var e=t.get(n);if(!e)throw new Error("missing: "+n);return e}function pr(t){return t.x}function dr(t){return t.y}function vr(t){return new gr(t)}function gr(t){if(!(n=wg.exec(t)))throw new Error("invalid format: "+t);var n,e=n[1]||" ",r=n[2]||">",i=n[3]||"-",o=n[4]||"",u=!!n[5],a=n[6]&&+n[6],c=!!n[7],s=n[8]&&+n[8].slice(1),f=n[9]||""
;"n"===f?(c=!0,f="g"):bg[f]||(f=""),(u||"0"===e&&"="===r)&&(u=!0,e="0",r="="),this.fill=e,this.align=r,this.sign=i,this.symbol=o,this.zero=u,this.width=a,this.comma=c,this.precision=s,this.type=f}function yr(n){return Mg=kg(n),t.format=Mg.format,t.formatPrefix=Mg.formatPrefix,Mg}function _r(){this.reset()}function mr(t,n,e){var r=t.s=n+e,i=r-n,o=r-i;t.t=n-o+(e-i)}function xr(t){return t>1?0:t<-1?fy:Math.acos(t)}function br(t){return t>1?ly:t<-1?-ly:Math.asin(t)}function wr(t){return(t=Ty(t/2))*t}function Mr(){}function Tr(t,n){t&&Ey.hasOwnProperty(t.type)&&Ey[t.type](t,n)}function Nr(t,n,e){var r,i=-1,o=t.length-e;for(n.lineStart();++i<o;)r=t[i],n.point(r[0],r[1],r[2]);n.lineEnd()}function kr(t,n){var e=-1,r=t.length;for(n.polygonStart();++e<r;)Nr(t[e],n,1);n.polygonEnd()}function Sr(){Ry.point=Er}function Ar(){Cr(zg,Pg)}function Er(t,n){Ry.point=Cr,zg=t,Pg=n,t*=vy,n*=vy,Rg=t,Lg=my(n=n/2+hy),Dg=Ty(n)}function Cr(t,n){t*=vy,n*=vy,n=n/2+hy;var e=t-Rg,r=e>=0?1:-1,i=r*e,o=my(n),u=Ty(n),a=Dg*u,c=Lg*o+a*my(i),s=a*r*Ty(i);zy.add(_y(s,c)),Rg=t,Lg=o,Dg=u}function zr(t){return[_y(t[1],t[0]),br(t[2])]}function Pr(t){var n=t[0],e=t[1],r=my(e);return[r*my(n),r*Ty(n),Ty(e)]}function Rr(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function Lr(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function Dr(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function qr(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function Ur(t){var n=ky(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}function Or(t,n){jg.push(Xg=[qg=t,Og=t]),n<Ug&&(Ug=n),n>Fg&&(Fg=n)}function Fr(t,n){var e=Pr([t*vy,n*vy]);if(Bg){var r=Lr(Bg,e),i=[r[1],-r[0],0],o=Lr(i,r);Ur(o),o=zr(o);var u,a=t-Yg,c=a>0?1:-1,s=o[0]*dy*c,f=gy(a)>180;f^(c*Yg<s&&s<c*t)?(u=o[1]*dy)>Fg&&(Fg=u):(s=(s+360)%360-180,f^(c*Yg<s&&s<c*t)?(u=-o[1]*dy)<Ug&&(Ug=u):(n<Ug&&(Ug=n),n>Fg&&(Fg=n))),f?t<Yg?Xr(qg,t)>Xr(qg,Og)&&(Og=t):Xr(t,Og)>Xr(qg,Og)&&(qg=t):Og>=qg?(t<qg&&(qg=t),t>Og&&(Og=t)):t>Yg?Xr(qg,t)>Xr(qg,Og)&&(Og=t):Xr(t,Og)>Xr(qg,Og)&&(qg=t)}else jg.push(Xg=[qg=t,Og=t]);n<Ug&&(Ug=n),n>Fg&&(Fg=n),Bg=e,Yg=t}function Yr(){qy.point=Fr}function Ir(){Xg[0]=qg,Xg[1]=Og,qy.point=Or,Bg=null}function Hr(t,n){if(Bg){var e=t-Yg;Dy.add(gy(e)>180?e+(e>0?360:-360):e)}else Ig=t,Hg=n;Ry.point(t,n),Fr(t,n)}function Br(){Ry.lineStart()}function jr(){Hr(Ig,Hg),Ry.lineEnd(),gy(Dy)>sy&&(qg=-(Og=180)),Xg[0]=qg,Xg[1]=Og,Bg=null}function Xr(t,n){return(n-=t)<0?n+360:n}function Wr(t,n){return t[0]-n[0]}function Vr(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}function $r(t,n){t*=vy,n*=vy;var e=my(n);Zr(e*my(t),e*Ty(t),Ty(n))}function Zr(t,n,e){++Wg,$g+=(t-$g)/Wg,Zg+=(n-Zg)/Wg,Gg+=(e-Gg)/Wg}function Gr(){Oy.point=Qr}function Qr(t,n){t*=vy,n*=vy;var e=my(n);oy=e*my(t),uy=e*Ty(t),ay=Ty(n),Oy.point=Jr,Zr(oy,uy,ay)}function Jr(t,n){t*=vy,n*=vy;var e=my(n),r=e*my(t),i=e*Ty(t),o=Ty(n),u=_y(ky((u=uy*o-ay*i)*u+(u=ay*r-oy*o)*u+(u=oy*i-uy*r)*u),oy*r+uy*i+ay*o);Vg+=u,Qg+=u*(oy+(oy=r)),Jg+=u*(uy+(uy=i)),Kg+=u*(ay+(ay=o)),Zr(oy,uy,ay)}function Kr(){Oy.point=$r}function ti(){Oy.point=ei}function ni(){ri(ry,iy),Oy.point=$r}function ei(t,n){ry=t,iy=n,t*=vy,n*=vy,Oy.point=ri;var e=my(n);oy=e*my(t),uy=e*Ty(t),ay=Ty(n),Zr(oy,uy,ay)}function ri(t,n){t*=vy,n*=vy;var e=my(n),r=e*my(t),i=e*Ty(t),o=Ty(n),u=uy*o-ay*i,a=ay*r-oy*o,c=oy*i-uy*r,s=ky(u*u+a*a+c*c),f=br(s),l=s&&-f/s;ty+=l*u,ny+=l*a,ey+=l*c,Vg+=f,Qg+=f*(oy+(oy=r)),Jg+=f*(uy+(uy=i)),Kg+=f*(ay+(ay=o)),Zr(oy,uy,ay)}function ii(t,n){return[t>fy?t-py:t<-fy?t+py:t,n]}function oi(t,n,e){return(t%=py)?n||e?Iy(ai(t),ci(n,e)):ai(t):n||e?ci(n,e):ii}function ui(t){return function(n,e){return n+=t,[n>fy?n-py:n<-fy?n+py:n,e]}}function ai(t){var n=ui(t);return n.invert=ui(-t),n}function ci(t,n){function e(t,n){var e=my(n),a=my(t)*e,c=Ty(t)*e,s=Ty(n),f=s*r+a*i;return[_y(c*o-f*u,a*r-s*i),br(f*o+c*u)]}var r=my(t),i=Ty(t),o=my(n),u=Ty(n);return e.invert=function(t,n){var e=my(n),a=my(t)*e,c=Ty(t)*e,s=Ty(n),f=s*o-c*u;return[_y(c*o+s*u,a*r+f*i),br(f*r-a*i)]},e}function si(t,n,e,r,i,o){if(e){var u=my(n),a=Ty(n),c=r*e;null==i?(i=n+r*py,o=n-c/2):(i=fi(u,i),o=fi(u,o),(r>0?i<o:i>o)&&(i+=r*py));for(var s,f=i;r>0?f>o:f<o;f-=c)s=zr([u,-a*my(f),-a*Ty(f)]),t.point(s[0],s[1])}}function fi(t,n){n=Pr(n),n[0]-=t,Ur(n);var e=xr(-n[1]);return((-n[2]<0?-e:e)+py-sy)%py}function li(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function hi(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r<n;)i.n=e=t[r],e.p=i,i=e;i.n=e=t[0],e.p=i}}function pi(t){return t.length>1}function di(t,n){return((t=t.x)[0]<0?t[1]-ly-sy:ly-t[1])-((n=n.x)[0]<0?n[1]-ly-sy:ly-n[1])}function vi(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,u){var a=o>0?fy:-fy,c=gy(o-e);gy(c-fy)<sy?(t.point(e,r=(r+u)/2>0?ly:-ly),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),t.point(o,r),n=0):i!==a&&c>=fy&&(gy(e-i)<sy&&(e-=i*sy),gy(o-a)<sy&&(o-=a*sy),r=gi(e,r,o,u),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),n=0),t.point(e=o,r=u),i=a},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}}function gi(t,n,e,r){var i,o,u=Ty(t-e);return gy(u)>sy?yy((Ty(n)*(o=my(r))*Ty(e)-Ty(r)*(i=my(n))*Ty(t))/(i*o*u)):(n+r)/2}function yi(t,n,e,r){var i;if(null==t)i=e*ly,r.point(-fy,i),r.point(0,i),r.point(fy,i),r.point(fy,0),r.point(fy,-i),r.point(0,-i),r.point(-fy,-i),r.point(-fy,0),r.point(-fy,i);else if(gy(t[0]-n[0])>sy){var o=t[0]<n[0]?fy:-fy;i=e*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(n[0],n[1])}function _i(t,n,e,r){function i(i,o){return t<=i&&i<=e&&n<=o&&o<=r}function o(i,o,a,s){var f=0,l=0;if(null==i||(f=u(i,a))!==(l=u(o,a))||c(i,o)<0^a>0)do{s.point(0===f||3===f?t:e,f>1?r:n)}while((f=(f+a+4)%4)!==l);else s.point(o[0],o[1])}function u(r,i){return gy(r[0]-t)<sy?i>0?0:3:gy(r[0]-e)<sy?i>0?2:1:gy(r[1]-n)<sy?i>0?1:0:i>0?3:2}function a(t,n){return c(t.x,n.x)}function c(t,n){var e=u(t,1),r=u(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(u){function c(t,n){i(t,n)&&k.point(t,n)}function s(){for(var n=0,e=0,i=g.length;e<i;++e)for(var o,u,a=g[e],c=1,s=a.length,f=a[0],l=f[0],h=f[1];c<s;++c)o=l,u=h,f=a[c],l=f[0],h=f[1],u<=r?h>r&&(l-o)*(r-u)>(h-u)*(t-o)&&++n:h<=r&&(l-o)*(r-u)<(h-u)*(t-o)&&--n;return n}function f(){k=S,v=[],g=[],N=!0}function l(){var t=s(),n=N&&t,e=(v=Kf(v)).length;(n||e)&&(u.polygonStart(),n&&(u.lineStart(),o(null,null,1,u),u.lineEnd()),e&&r_(v,a,t,o,u),u.polygonEnd()),k=u,v=g=y=null}function h(){A.point=d,g&&g.push(y=[]),T=!0,M=!1,b=w=NaN}function p(){v&&(d(_,m),x&&M&&S.rejoin(),v.push(S.result())),A.point=c,M&&k.lineEnd()}function d(o,u){var a=i(o,u);if(g&&y.push([o,u]),T)_=o,m=u,x=a,T=!1,a&&(k.lineStart(),k.point(o,u));else if(a&&M)k.point(o,u);else{var c=[b=Math.max(l_,Math.min(f_,b)),w=Math.max(l_,Math.min(f_,w))],s=[o=Math.max(l_,Math.min(f_,o)),u=Math.max(l_,Math.min(f_,u))];s_(c,s,t,n,e,r)?(M||(k.lineStart(),k.point(c[0],c[1])),k.point(s[0],s[1]),a||k.lineEnd(),N=!1):a&&(k.lineStart(),k.point(o,u),N=!1)}b=o,w=u,M=a}var v,g,y,_,m,x,b,w,M,T,N,k=u,S=n_(),A={point:c,lineStart:h,lineEnd:p,polygonStart:f,polygonEnd:l};return A}}function mi(){d_.point=bi,d_.lineEnd=xi}function xi(){d_.point=d_.lineEnd=Mr}function bi(t,n){t*=vy,n*=vy,Hy=t,By=Ty(n),jy=my(n),d_.point=wi}function wi(t,n){t*=vy,n*=vy;var e=Ty(n),r=my(n),i=gy(t-Hy),o=my(i),u=Ty(i),a=r*u,c=jy*e-By*r*o,s=By*e+jy*r*o;p_.add(_y(ky(a*a+c*c),s)),Hy=t,By=e,jy=r}function Mi(t,n){return!(!t||!x_.hasOwnProperty(t.type))&&x_[t.type](t,n)}function Ti(t,n){return 0===__(t,n)}function Ni(t,n){var e=__(t[0],t[1]);return __(t[0],n)+__(n,t[1])<=e+sy}function ki(t,n){return!!o_(t.map(Si),Ai(n))}function Si(t){return t=t.map(Ai),t.pop(),t}function Ai(t){return[t[0]*vy,t[1]*vy]}function Ei(t,n,e){var r=Yf(t,n-sy,e).concat(n);return function(t){return r.map(function(n){return[t,n]})}}function Ci(t,n,e){var r=Yf(t,n-sy,e).concat(n);return function(t){return r.map(function(n){return[n,t]})}}function zi(){function t(){return{type:"MultiLineString",coordinates:n()}}function n(){return Yf(xy(o/g)*g,i,g).map(h).concat(Yf(xy(s/y)*y,c,y).map(p)).concat(Yf(xy(r/d)*d,e,d).filter(function(t){return gy(t%g)>sy}).map(f)).concat(Yf(xy(a/v)*v,u,v).filter(function(t){return gy(t%y)>sy}).map(l))}var e,r,i,o,u,a,c,s,f,l,h,p,d=10,v=d,g=90,y=360,_=2.5;return t.lines=function(){return n().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[h(o).concat(p(c).slice(1),h(i).reverse().slice(1),p(s).reverse().slice(1))]}},t.extent=function(n){return arguments.length?t.extentMajor(n).extentMinor(n):t.extentMinor()},t.extentMajor=function(n){return arguments.length?(o=+n[0][0],i=+n[1][0],s=+n[0][1],c=+n[1][1],o>i&&(n=o,o=i,i=n),s>c&&(n=s,s=c,c=n),t.precision(_)):[[o,s],[i,c]]},t.extentMinor=function(n){return arguments.length?(r=+n[0][0],e=+n[1][0],a=+n[0][1],u=+n[1][1],r>e&&(n=r,r=e,e=n),a>u&&(n=a,a=u,u=n),t.precision(_)):[[r,a],[e,u]]},t.step=function(n){return arguments.length?t.stepMajor(n).stepMinor(n):t.stepMinor()},t.stepMajor=function(n){return arguments.length?(g=+n[0],y=+n[1],t):[g,y]},t.stepMinor=function(n){return arguments.length?(d=+n[0],v=+n[1],t):[d,v]},t.precision=function(n){return arguments.length?(_=+n,f=Ei(a,u,90),l=Ci(r,e,_),h=Ei(s,c,90),p=Ci(o,i,_),t):_},t.extentMajor([[-180,-90+sy],[180,90-sy]]).extentMinor([[-180,-80-sy],[180,80+sy]])}function Pi(){return zi()()}function Ri(){k_.point=Li}function Li(t,n){k_.point=Di,Xy=Vy=t,Wy=$y=n}function Di(t,n){N_.add($y*t-Vy*n),Vy=t,$y=n}function qi(){Di(Xy,Wy)}function Ui(t,n){t<S_&&(S_=t),t>E_&&(E_=t),n<A_&&(A_=n),n>C_&&(C_=n)}function Oi(t,n){P_+=t,R_+=n,++L_}function Fi(){I_.point=Yi}function Yi(t,n){I_.point=Ii,Oi(Qy=t,Jy=n)}function Ii(t,n){var e=t-Qy,r=n-Jy,i=ky(e*e+r*r);D_+=i*(Qy+t)/2,q_+=i*(Jy+n)/2,U_+=i,Oi(Qy=t,Jy=n)}function Hi(){I_.point=Oi}function Bi(){I_.point=Xi}function ji(){Wi(Zy,Gy)}function Xi(t,n){I_.point=Wi,Oi(Zy=Qy=t,Gy=Jy=n)}function Wi(t,n){var e=t-Qy,r=n-Jy,i=ky(e*e+r*r);D_+=i*(Qy+t)/2,q_+=i*(Jy+n)/2,U_+=i,i=Jy*t-Qy*n,O_+=i*(Qy+t),F_+=i*(Jy+n),Y_+=3*i,Oi(Qy=t,Jy=n)}function Vi(t){this._context=t}function $i(t,n){$_.point=Zi,B_=X_=t,j_=W_=n}function Zi(t,n){X_-=t,W_-=n,V_.add(ky(X_*X_+W_*W_)),X_=t,W_=n}function Gi(){this._string=[]}function Qi(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Ji(t){return function(n){var e=new Ki;for(var r in t)e[r]=t[r];return e.stream=n,e}}function Ki(){}function to(t,n,e){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),Cy(e,t.stream(z_)),n(z_.result()),null!=r&&t.clipExtent(r),t}function no(t,n,e){return to(t,function(e){var r=n[1][0]-n[0][0],i=n[1][1]-n[0][1],o=Math.min(r/(e[1][0]-e[0][0]),i/(e[1][1]-e[0][1])),u=+n[0][0]+(r-o*(e[1][0]+e[0][0]))/2,a=+n[0][1]+(i-o*(e[1][1]+e[0][1]))/2;t.scale(150*o).translate([u,a])},e)}function eo(t,n,e){return no(t,[[0,0],n],e)}function ro(t,n,e){return to(t,function(e){var r=+n,i=r/(e[1][0]-e[0][0]),o=(r-i*(e[1][0]+e[0][0]))/2,u=-i*e[0][1];t.scale(150*i).translate([o,u])},e)}function io(t,n,e){return to(t,function(e){var r=+n,i=r/(e[1][1]-e[0][1]),o=-i*e[0][0],u=(r-i*(e[1][1]+e[0][1]))/2;t.scale(150*i).translate([o,u])},e)}function oo(t){return Ji({point:function(n,e){n=t(n,e),this.stream.point(n[0],n[1])}})}function uo(t,n){function e(r,i,o,u,a,c,s,f,l,h,p,d,v,g){var y=s-r,_=f-i,m=y*y+_*_;if(m>4*n&&v--){var x=u+h,b=a+p,w=c+d,M=ky(x*x+b*b+w*w),T=br(w/=M),N=gy(gy(w)-1)<sy||gy(o-l)<sy?(o+l)/2:_y(b,x),k=t(N,T),S=k[0],A=k[1],E=S-r,C=A-i,z=_*E-y*C;(z*z/m>n||gy((y*E+_*C)/m-.5)>.3||u*h+a*p+c*d<J_)&&(e(r,i,o,u,a,c,S,A,N,x/=M,b/=M,w,v,g),g.point(S,A),e(S,A,N,x,b,w,s,f,l,h,p,d,v,g))}}return function(n){function r(e,r){e=t(e,r),n.point(e[0],e[1])}function i(){y=NaN,w.point=o,n.lineStart()}function o(r,i){var o=Pr([r,i]),u=t(r,i);e(y,_,g,m,x,b,y=u[0],_=u[1],g=r,m=o[0],x=o[1],b=o[2],Q_,n),n.point(y,_)}function u(){w.point=r,n.lineEnd()}function a(){i(),w.point=c,w.lineEnd=s}function c(t,n){o(f=t,n),l=y,h=_,p=m,d=x,v=b,w.point=o}function s(){e(y,_,g,m,x,b,l,h,f,p,d,v,Q_,n),w.lineEnd=u,u()}var f,l,h,p,d,v,g,y,_,m,x,b,w={point:r,lineStart:i,lineEnd:u,polygonStart:function(){n.polygonStart(),w.lineStart=a},polygonEnd:function(){n.polygonEnd(),w.lineStart=i}};return w}}function ao(t){return Ji({point:function(n,e){var r=t(n,e);return this.stream.point(r[0],r[1])}})}function co(t){return so(function(){return t})()}function so(t){function n(t){return t=f(t[0]*vy,t[1]*vy),[t[0]*g+a,c-t[1]*g]}function e(t){return(t=f.invert((t[0]-a)/g,(c-t[1])/g))&&[t[0]*dy,t[1]*dy]}function r(t,n){return t=u(t,n),[t[0]*g+a,c-t[1]*g]}function i(){f=Iy(s=oi(b,w,M),u);var t=u(m,x);return a=y-t[0]*g,c=_+t[1]*g,o()}function o(){return d=v=null,n}var u,a,c,s,f,l,h,p,d,v,g=150,y=480,_=250,m=0,x=0,b=0,w=0,M=0,T=null,N=a_,k=null,S=M_,A=.5,E=K_(r,A);return n.stream=function(t){return d&&v===t?d:d=tm(ao(s)(N(E(S(v=t)))))},n.preclip=function(t){return arguments.length?(N=t,T=void 0,o()):N},n.postclip=function(t){return arguments.length?(S=t,k=l=h=p=null,o()):S},n.clipAngle=function(t){return arguments.length?(N=+t?c_(T=t*vy):(T=null,a_),o()):T*dy},n.clipExtent=function(t){return arguments.length?(S=null==t?(k=l=h=p=null,M_):_i(k=+t[0][0],l=+t[0][1],h=+t[1][0],p=+t[1][1]),o()):null==k?null:[[k,l],[h,p]]},n.scale=function(t){return arguments.length?(g=+t,i()):g},n.translate=function(t){return arguments.length?(y=+t[0],_=+t[1],i()):[y,_]},n.center=function(t){return arguments.length?(m=t[0]%360*vy,x=t[1]%360*vy,i()):[m*dy,x*dy]},n.rotate=function(t){return arguments.length?(b=t[0]%360*vy,w=t[1]%360*vy,M=t.length>2?t[2]%360*vy:0,i()):[b*dy,w*dy,M*dy]},n.precision=function(t){return arguments.length?(E=K_(r,A=t*t),o()):ky(A)},n.fitExtent=function(t,e){return no(n,t,e)},n.fitSize=function(t,e){return eo(n,t,e)},n.fitWidth=function(t,e){return ro(n,t,e)},n.fitHeight=function(t,e){return io(n,t,e)},function(){return u=t.apply(this,arguments),n.invert=u.invert&&e,i()}}function fo(t){var n=0,e=fy/3,r=so(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*vy,e=t[1]*vy):[n*dy,e*dy]},i}function lo(t){function n(t,n){return[t*e,Ty(n)/e]}var e=my(t);return n.invert=function(t,n){return[t/e,br(n*e)]},n}function ho(t,n){function e(t,n){var e=ky(o-2*i*Ty(n))/i;return[e*Ty(t*=i),u-e*my(t)]}var r=Ty(t),i=(r+Ty(n))/2;if(gy(i)<sy)return lo(t);var o=1+r*(2*i-r),u=ky(o)/i;return e.invert=function(t,n){var e=u-n;return[_y(t,gy(e))/i*Ny(e),br((o-(t*t+e*e)*i*i)/(2*i))]},e}function po(t){var n=t.length;return{point:function(e,r){for(var i=-1;++i<n;)t[i].point(e,r)},sphere:function(){for(var e=-1;++e<n;)t[e].sphere()},lineStart:function(){for(var e=-1;++e<n;)t[e].lineStart()},lineEnd:function(){for(var e=-1;++e<n;)t[e].lineEnd()},polygonStart:function(){for(var e=-1;++e<n;)t[e].polygonStart()},polygonEnd:function(){for(var e=-1;++e<n;)t[e].polygonEnd()}}}function vo(t){return function(n,e){var r=my(n),i=my(e),o=t(r*i);return[o*i*Ty(n),o*Ty(e)]}}function go(t){return function(n,e){var r=ky(n*n+e*e),i=t(r),o=Ty(i),u=my(i);return[_y(n*o,r*u),br(r&&e*o/r)]}}function yo(t,n){return[t,wy(Sy((ly+n)/2))]}function _o(t){function n(){var n=fy*a(),u=o(Ky(o.rotate()).invert([0,0]));return s(null==f?[[u[0]-n,u[1]-n],[u[0]+n,u[1]+n]]:t===yo?[[Math.max(u[0]-n,f),e],[Math.min(u[0]+n,r),i]]:[[f,Math.max(u[1]-n,e)],[r,Math.min(u[1]+n,i)]])}var e,r,i,o=co(t),u=o.center,a=o.scale,c=o.translate,s=o.clipExtent,f=null;return o.scale=function(t){return arguments.length?(a(t),n()):a()},o.translate=function(t){return arguments.length?(c(t),n()):c()},o.center=function(t){return arguments.length?(u(t),n()):u()},o.clipExtent=function(t){return arguments.length?(null==t?f=e=r=i=null:(f=+t[0][0],e=+t[0][1],r=+t[1][0],i=+t[1][1]),n()):null==f?null:[[f,e],[r,i]]},n()}function mo(t){return Sy((ly+t)/2)}function xo(t,n){function e(t,n){o>0?n<-ly+sy&&(n=-ly+sy):n>ly-sy&&(n=ly-sy);var e=o/My(mo(n),i);return[e*Ty(i*t),o-e*my(i*t)]}var r=my(t),i=t===n?Ty(t):wy(r/my(n))/wy(mo(n)/mo(t)),o=r*My(mo(t),i)/i;return i?(e.invert=function(t,n){var e=o-n,r=Ny(i)*ky(t*t+e*e);return[_y(t,gy(e))/i*Ny(e),2*yy(My(o/r,1/i))-ly]},e):yo}function bo(t,n){return[t,n]}function wo(t,n){function e(t,n){var e=o-n,r=i*t;return[e*Ty(r),o-e*my(r)]}var r=my(t),i=t===n?Ty(t):(r-my(n))/(n-t),o=r/i+t;return gy(i)<sy?bo:(e.invert=function(t,n){var e=o-n;return[_y(t,gy(e))/i*Ny(e),o-Ny(i)*ky(t*t+e*e)]},e)}function Mo(t,n){var e=my(n),r=my(t)*e;return[e*Ty(t)/r,Ty(n)/r]}function To(t,n,e,r){return 1===t&&1===n&&0===e&&0===r?M_:Ji({point:function(i,o){this.stream.point(i*t+e,o*n+r)}})}function No(t,n){var e=n*n,r=e*e;return[t*(.8707-.131979*e+r*(r*(.003971*e-.001529*r)-.013791)),n*(1.007226+e*(.015085+r*(.028874*e-.044475-.005916*r)))]}function ko(t,n){return[my(n)*Ty(t),Ty(n)]}function So(t,n){var e=my(n),r=1+my(t)*e;return[e*Ty(t)/r,Ty(n)/r]}function Ao(t,n){return[wy(Sy((ly+n)/2)),-t]}function Eo(t,n){return t.parent===n.parent?1:2}function Co(t){return t.reduce(zo,0)/t.length}function zo(t,n){return t+n.x}function Po(t){return 1+t.reduce(Ro,0)}function Ro(t,n){return Math.max(t,n.y)}function Lo(t){for(var n;n=t.children;)t=n[0];return t}function Do(t){for(var n;n=t.children;)t=n[n.length-1];return t}function qo(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function Uo(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;for(t=e.pop(),n=r.pop();t===n;)i=t,t=e.pop(),n=r.pop();return i}function Oo(t,n){var e,r,i,o,u,a=new Bo(t),c=+t.value&&(a.value=t.value),s=[a];for(null==n&&(n=Yo);e=s.pop();)if(c&&(e.value=+e.data.value),(i=n(e.data))&&(u=i.length))for(e.children=new Array(u),o=u-1;o>=0;--o)s.push(r=e.children[o]=new Bo(i[o])),r.parent=e,r.depth=e.depth+1;return a.eachBefore(Ho)}function Fo(){return Oo(this).eachBefore(Io)}function Yo(t){return t.children}function Io(t){t.data=t.data.data}function Ho(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function Bo(t){this.data=t,this.depth=this.height=0,this.parent=null}function jo(t){for(var n,e,r=t.length;r;)e=Math.random()*r--|0,n=t[r],t[r]=t[e],t[e]=n;return t}function Xo(t,n){var e,r;if($o(n,t))return[n];for(e=0;e<t.length;++e)if(Wo(n,t[e])&&$o(Qo(t[e],n),t))return[t[e],n];for(e=0;e<t.length-1;++e)for(r=e+1;r<t.length;++r)if(Wo(Qo(t[e],t[r]),n)&&Wo(Qo(t[e],n),t[r])&&Wo(Qo(t[r],n),t[e])&&$o(Jo(t[e],t[r],n),t))return[t[e],t[r],n];throw new Error}function Wo(t,n){var e=t.r-n.r,r=n.x-t.x,i=n.y-t.y;return e<0||e*e<r*r+i*i}function Vo(t,n){var e=t.r-n.r+1e-6,r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function $o(t,n){for(var e=0;e<n.length;++e)if(!Vo(t,n[e]))return!1;return!0}function Zo(t){switch(t.length){case 1:return Go(t[0]);case 2:return Qo(t[0],t[1]);case 3:return Jo(t[0],t[1],t[2])}}function Go(t){return{x:t.x,y:t.y,r:t.r}}function Qo(t,n){var e=t.x,r=t.y,i=t.r,o=n.x,u=n.y,a=n.r,c=o-e,s=u-r,f=a-i,l=Math.sqrt(c*c+s*s);return{x:(e+o+c/l*f)/2,y:(r+u+s/l*f)/2,r:(l+i+a)/2}}function Jo(t,n,e){var r=t.x,i=t.y,o=t.r,u=n.x,a=n.y,c=n.r,s=e.x,f=e.y,l=e.r,h=r-u,p=r-s,d=i-a,v=i-f,g=c-o,y=l-o,_=r*r+i*i-o*o,m=_-u*u-a*a+c*c,x=_-s*s-f*f+l*l,b=p*d-h*v,w=(d*x-v*m)/(2*b)-r,M=(v*g-d*y)/b,T=(p*m-h*x)/(2*b)-i,N=(h*y-p*g)/b,k=M*M+N*N-1,S=2*(o+w*M+T*N),A=w*w+T*T-o*o,E=-(k?(S+Math.sqrt(S*S-4*k*A))/(2*k):A/S);return{x:r+w+M*E,y:i+T+N*E,r:E}}function Ko(t,n,e){var r=t.x,i=t.y,o=n.r+e.r,u=t.r+e.r,a=n.x-r,c=n.y-i,s=a*a+c*c;if(s){var f=.5+((u*=u)-(o*=o))/(2*s),l=Math.sqrt(Math.max(0,2*o*(u+s)-(u-=s)*u-o*o))/(2*s);e.x=r+f*a+l*c,e.y=i+f*c-l*a}else e.x=r+u,e.y=i}function tu(t,n){var e=n.x-t.x,r=n.y-t.y,i=t.r+n.r;return i*i-1e-6>e*e+r*r}function nu(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,o=(n.y*e.r+e.y*n.r)/r;return i*i+o*o}function eu(t){this._=t,this.next=null,this.previous=null}function ru(t){if(!(i=t.length))return 0;var n,e,r,i,o,u,a,c,s,f,l;if(n=t[0],n.x=0,n.y=0,!(i>1))return n.r;if(e=t[1],n.x=-e.r,e.x=n.r,e.y=0,!(i>2))return n.r+e.r;Ko(e,n,r=t[2]),n=new eu(n),e=new eu(e),r=new eu(r),n.next=r.previous=e,e.next=n.previous=r,r.next=e.previous=n;t:for(a=3;a<i;++a){Ko(n._,e._,r=t[a]),r=new eu(r),c=e.next,s=n.previous,f=e._.r,l=n._.r;do{if(f<=l){if(tu(c._,r._)){e=c,n.next=e,e.previous=n,--a;continue t}f+=c._.r,c=c.next}else{if(tu(s._,r._)){n=s,n.next=e,e.previous=n,--a;continue t}l+=s._.r,s=s.previous}}while(c!==s.next);for(r.previous=n,r.next=e,n.next=e.previous=e=r,o=nu(n);(r=r.next)!==e;)(u=nu(r))<o&&(n=r,o=u);e=n.next}for(n=[e._],r=e;(r=r.next)!==e;)n.push(r._);for(r=zm(n),a=0;a<i;++a)n=t[a],n.x-=r.x,n.y-=r.y;return r.r}function iu(t){return null==t?null:ou(t)}function ou(t){if("function"!=typeof t)throw new Error;return t}function uu(){return 0}function au(t){return Math.sqrt(t.value)}function cu(t){return function(n){n.children||(n.r=Math.max(0,+t(n)||0))}}function su(t,n){return function(e){if(r=e.children){var r,i,o,u=r.length,a=t(e)*n||0;if(a)for(i=0;i<u;++i)r[i].r+=a;if(o=ru(r),a)for(i=0;i<u;++i)r[i].r-=a;e.r=o+a}}}function fu(t){return function(n){var e=n.parent;n.r*=t,e&&(n.x=e.x+t*n.x,n.y=e.y+t*n.y)}}function lu(t){return t.id}function hu(t){return t.parentId}function pu(t,n){return t.parent===n.parent?1:2}function du(t){var n=t.children;return n?n[0]:t.t}function vu(t){var n=t.children;return n?n[n.length-1]:t.t}function gu(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function yu(t){for(var n,e=0,r=0,i=t.children,o=i.length;--o>=0;)n=i[o],n.z+=e,n.m+=e,e+=n.s+(r+=n.c)}function _u(t,n,e){return t.a.parent===n.parent?t.a:e}function mu(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}function xu(t){for(var n,e,r,i,o,u=new mu(t,0),a=[u];n=a.pop();)if(r=n._.children)for(n.children=new Array(o=r.length),i=o-1;i>=0;--i)a.push(e=n.children[i]=new mu(r[i],i)),e.parent=n;return(u.parent=new mu(null,0)).children=[u],u}function bu(t,n,e,r,i,o){for(var u,a,c,s,f,l,h,p,d,v,g,y=[],_=n.children,m=0,x=0,b=_.length,w=n.value;m<b;){c=i-e,s=o-r;do{f=_[x++].value}while(!f&&x<b);for(l=h=f,v=Math.max(s/c,c/s)/(w*t),g=f*f*v,d=Math.max(h/g,g/l);x<b;++x){if(f+=a=_[x].value,a<l&&(l=a),a>h&&(h=a),g=f*f*v,(p=Math.max(h/g,g/l))>d){f-=a;break}d=p}y.push(u={value:f,dice:c<s,children:_.slice(m,x)}),u.dice?qm(u,e,r,i,w?r+=s*f/w:o):Bm(u,e,r,w?e+=c*f/w:i,o),w-=f,m=x}return y}function wu(t,n){return t[0]-n[0]||t[1]-n[1]}function Mu(t){for(var n=t.length,e=[0,1],r=2,i=2;i<n;++i){for(;r>1&&Jm(t[e[r-2]],t[e[r-1]],t[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function Tu(t){this._size=t,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function Nu(t){if(!t._start)try{ku(t)}catch(n){if(t._tasks[t._ended+t._active-1])Au(t,n);else if(!t._data)throw n}}function ku(t){for(;t._start=t._waiting&&t._active<t._size;){var n=t._ended+t._active,e=t._tasks[n],r=e.length-1,i=e[r];e[r]=Su(t,n),--t._waiting,++t._active,e=i.apply(null,e),t._tasks[n]&&(t._tasks[n]=e||rx)}}function Su(t,n){return function(e,r){t._tasks[n]&&(--t._active,++t._ended,t._tasks[n]=null,null==t._error&&(null!=e?Au(t,e):(t._data[n]=r,t._waiting?Nu(t):Eu(t))))}}function Au(t,n){var e,r=t._tasks.length;for(t._error=n,t._data=void 0,t._waiting=NaN;--r>=0;)if((e=t._tasks[r])&&(t._tasks[r]=null,e.abort))try{e.abort()}catch(n){}t._active=NaN,Eu(t)}function Eu(t){if(!t._active&&t._call){var n=t._data;t._data=void 0,t._call(t._error,n)}}function Cu(t){if(null==t)t=1/0;else if(!((t=+t)>=1))throw new Error("invalid concurrency");return new Tu(t)}function zu(t){return function(n,e){t(null==n?e:null)}}function Pu(t){var n=t.responseType;return n&&"text"!==n?t.response:t.responseText}function Ru(t,n){return function(e){return t(e.responseText,n)}}function Lu(t){function n(n){var o=n+"",u=e.get(o);if(!u){if(i!==Mx)return i;e.set(o,u=r.push(n))}return t[(u-1)%t.length]}var e=Xe(),r=[],i=Mx;return t=null==t?[]:wx.call(t),n.domain=function(t){if(!arguments.length)return r.slice();r=[],e=Xe();for(var i,o,u=-1,a=t.length;++u<a;)e.has(o=(i=t[u])+"")||e.set(o,r.push(i));return n},n.range=function(e){return arguments.length?(t=wx.call(e),n):t.slice()},n.unknown=function(t){return arguments.length?(i=t,n):i},n.copy=function(){return Lu().domain(r).range(t).unknown(i)},n}function Du(){function t(){var t=i().length,r=u[1]<u[0],l=u[r-0],h=u[1-r];n=(h-l)/Math.max(1,t-c+2*s),a&&(n=Math.floor(n)),l+=(h-l-n*(t-c))*f,e=n*(1-c),a&&(l=Math.round(l),e=Math.round(e));var p=Yf(t).map(function(t){return l+n*t});return o(r?p.reverse():p)}var n,e,r=Lu().unknown(void 0),i=r.domain,o=r.range,u=[0,1],a=!1,c=0,s=0,f=.5;return delete r.unknown,r.domain=function(n){return arguments.length?(i(n),t()):i()},r.range=function(n){return arguments.length?(u=[+n[0],+n[1]],t()):u.slice()},r.rangeRound=function(n){return u=[+n[0],+n[1]],a=!0,t()},r.bandwidth=function(){return e},r.step=function(){return n},r.round=function(n){return arguments.length?(a=!!n,t()):a},r.padding=function(n){return arguments.length?(c=s=Math.max(0,Math.min(1,n)),t()):c},r.paddingInner=function(n){return arguments.length?(c=Math.max(0,Math.min(1,n)),t()):c},r.paddingOuter=function(n){return arguments.length?(s=Math.max(0,Math.min(1,n)),t()):s},r.align=function(n){return arguments.length?(f=Math.max(0,Math.min(1,n)),t()):f},r.copy=function(){return Du().domain(i()).range(u).round(a).paddingInner(c).paddingOuter(s).align(f)},t()}function qu(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return qu(n())},t}function Uu(){return qu(Du().paddingInner(1))}function Ou(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:Tx(n)}function Fu(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=n?0:t>=e?1:r(t)}}}function Yu(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=0?n:t>=1?e:r(t)}}}function Iu(t,n,e,r){var i=t[0],o=t[1],u=n[0],a=n[1];return o<i?(i=e(o,i),u=r(a,u)):(i=e(i,o),u=r(u,a)),function(t){return u(i(t))}}function Hu(t,n,e,r){var i=Math.min(t.length,n.length)-1,o=new Array(i),u=new Array(i),a=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<i;)o[a]=e(t[a],t[a+1]),u[a]=r(n[a],n[a+1]);return function(n){var e=kf(t,n,1,i)-1;return u[e](o[e](n))}}function Bu(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function ju(t,n){function e(){return i=Math.min(a.length,c.length)>2?Hu:Iu,o=u=null,r}function r(n){return(o||(o=i(a,c,f?Fu(t):t,s)))(+n)}var i,o,u,a=kx,c=kx,s=pp,f=!1;return r.invert=function(t){return(u||(u=i(c,a,Ou,f?Yu(n):n)))(+t)},r.domain=function(t){return arguments.length?(a=bx.call(t,Nx),e()):a.slice()},r.range=function(t){return arguments.length?(c=wx.call(t),e()):c.slice()},r.rangeRound=function(t){return c=wx.call(t),s=dp,e()},r.clamp=function(t){return arguments.length?(f=!!t,e()):f},r.interpolate=function(t){return arguments.length?(s=t,e()):s},e()}function Xu(t){var n=t.domain;return t.ticks=function(t){var e=n();return jf(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){return Sx(n(),t,e)},t.nice=function(e){null==e&&(e=10);var i,o=n(),u=0,a=o.length-1,c=o[u],s=o[a];return s<c&&(i=c,c=s,s=i,i=u,u=a,a=i),i=r(c,s,e),i>0?(c=Math.floor(c/i)*i,s=Math.ceil(s/i)*i,i=r(c,s,e)):i<0&&(c=Math.ceil(c*i)/i,s=Math.floor(s*i)/i,i=r(c,s,e)),i>0?(o[u]=Math.floor(c/i)*i,o[a]=Math.ceil(s/i)*i,n(o)):i<0&&(o[u]=Math.ceil(c*i)/i,o[a]=Math.floor(s*i)/i,n(o)),t},t}function Wu(){var t=ju(Ou,cp);return t.copy=function(){return Bu(t,Wu())},Xu(t)}function Vu(){function t(t){return+t}var n=[0,1];return t.invert=t,t.domain=t.range=function(e){return arguments.length?(n=bx.call(e,Nx),t):n.slice()},t.copy=function(){return Vu().domain(n)},Xu(t)}function $u(t,n){return(n=Math.log(n/t))?function(e){return Math.log(e/t)/n}:Tx(n)}function Zu(t,n){return t<0?function(e){return-Math.pow(-n,e)*Math.pow(-t,1-e)}:function(e){return Math.pow(n,e)*Math.pow(t,1-e)}}function Gu(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Qu(t){return 10===t?Gu:t===Math.E?Math.exp:function(n){return Math.pow(t,n)}}function Ju(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(n){return Math.log(n)/t})}function Ku(t){return function(n){return-t(-n)}}function ta(){function n(){return o=Ju(i),u=Qu(i),r()[0]<0&&(o=Ku(o),u=Ku(u)),e}var e=ju($u,Zu).domain([1,10]),r=e.domain,i=10,o=Ju(10),u=Qu(10);return e.base=function(t){return arguments.length?(i=+t,n()):i},e.domain=function(t){return arguments.length?(r(t),n()):r()},e.ticks=function(t){var n,e=r(),a=e[0],c=e[e.length-1];(n=c<a)&&(h=a,a=c,c=h);var s,f,l,h=o(a),p=o(c),d=null==t?10:+t,v=[];if(!(i%1)&&p-h<d){if(h=Math.round(h)-1,p=Math.round(p)+1,a>0){for(;h<p;++h)for(f=1,s=u(h);f<i;++f)if(!((l=s*f)<a)){if(l>c)break;v.push(l)}}else for(;h<p;++h)for(f=i-1,s=u(h);f>=1;--f)if(!((l=s*f)<a)){if(l>c)break;v.push(l)}}else v=jf(h,p,Math.min(p-h,d)).map(u);return n?v.reverse():v},e.tickFormat=function(n,r){if(null==r&&(r=10===i?".0e":","),"function"!=typeof r&&(r=t.format(r)),n===1/0)return r;null==n&&(n=10);var a=Math.max(1,i*n/e.ticks().length);return function(t){var n=t/u(Math.round(o(t)));return n*i<i-.5&&(n*=i),n<=a?r(t):""}},e.nice=function(){return r(Ax(r(),{floor:function(t){return u(Math.floor(o(t)))},ceil:function(t){return u(Math.ceil(o(t)))}}))},e.copy=function(){return Bu(e,ta().base(i))},e}function na(t,n){return t<0?-Math.pow(-t,n):Math.pow(t,n)}function ea(){function t(t,n){return(n=na(n,e)-(t=na(t,e)))?function(r){return(na(r,e)-t)/n}:Tx(n)}function n(t,n){return n=na(n,e)-(t=na(t,e)),function(r){return na(t+n*r,1/e)}}var e=1,r=ju(t,n),i=r.domain;return r.exponent=function(t){return arguments.length?(e=+t,i(i())):e},r.copy=function(){return Bu(r,ea().exponent(e))},Xu(r)}function ra(){return ea().exponent(.5)}function ia(){function t(){var t=0,o=Math.max(1,r.length);for(i=new Array(o-1);++t<o;)i[t-1]=Vf(e,t/o);return n}function n(t){if(!isNaN(t=+t))return r[kf(i,t)]}var e=[],r=[],i=[];return n.invertExtent=function(t){var n=r.indexOf(t);return n<0?[NaN,NaN]:[n>0?i[n-1]:e[0],n<i.length?i[n]:e[e.length-1]]},n.domain=function(n){if(!arguments.length)return e.slice();e=[];for(var r,i=0,o=n.length;i<o;++i)null==(r=n[i])||isNaN(r=+r)||e.push(r);return e.sort(Mf),t()},n.range=function(n){return arguments.length?(r=wx.call(n),t()):r.slice()},n.quantiles=function(){return i.slice()},n.copy=function(){return ia().domain(e).range(r)},n}function oa(){function t(t){if(t<=t)return u[kf(o,t,0,i)]}function n(){var n=-1;for(o=new Array(i);++n<i;)o[n]=((n+1)*r-(n-i)*e)/(i+1);return t}var e=0,r=1,i=1,o=[.5],u=[0,1];return t.domain=function(t){return arguments.length?(e=+t[0],r=+t[1],n()):[e,r]},t.range=function(t){return arguments.length?(i=(u=wx.call(t)).length-1,n()):u.slice()},t.invertExtent=function(t){var n=u.indexOf(t);return n<0?[NaN,NaN]:n<1?[e,o[0]]:n>=i?[o[i-1],r]:[o[n-1],o[n]]},t.copy=function(){return oa().domain([e,r]).range(u)},Xu(t)}function ua(){function t(t){if(t<=t)return e[kf(n,t,0,r)]}var n=[.5],e=[0,1],r=1;return t.domain=function(i){return arguments.length?(n=wx.call(i),r=Math.min(n.length,e.length-1),t):n.slice()},t.range=function(i){return arguments.length?(e=wx.call(i),r=Math.min(n.length,e.length-1),t):e.slice()},t.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},t.copy=function(){return ua().domain(n).range(e)},t}function aa(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,o){var u,a=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e<r&&o>0))return a;do{a.push(u=new Date(+e)),n(e,o),t(e)}while(u<e&&e<r);return a},i.filter=function(e){return aa(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 Ex.setTime(+n),Cx.setTime(+r),t(Ex),t(Cx),Math.floor(e(Ex,Cx))},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}function ca(t){return aa(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())*Rx)/Lx})}function sa(t){return aa(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)/Lx})}function fa(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 la(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 ha(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function pa(t){function n(t,n){return function(e){var r,i,o,u=[],a=-1,c=0,s=t.length;for(e instanceof Date||(e=new Date(+e));++a<s;)37===t.charCodeAt(a)&&(u.push(t.slice(c,a)),null!=(i=Pb[r=t.charAt(++a)])?r=t.charAt(++a):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),u.push(r),c=a+1);return u.push(t.slice(c,a)),u.join("")}}function e(t,n){return function(e){var i,o,u=ha(1900),a=r(u,t,e+="",0);if(a!=e.length)return null;if("Q"in u)return new Date(u.Q);if("p"in u&&(u.H=u.H%12+12*u.p),"V"in u){if(u.V<1||u.V>53)return null;"w"in u||(u.w=1),"Z"in u?(i=la(ha(u.y)),o=i.getUTCDay(),i=o>4||0===o?db.ceil(i):db(i),i=lb.offset(i,7*(u.V-1)),u.y=i.getUTCFullYear(),u.m=i.getUTCMonth(),u.d=i.getUTCDate()+(u.w+6)%7):(i=n(ha(u.y)),o=i.getDay(),i=o>4||0===o?jx.ceil(i):jx(i),i=Ix.offset(i,7*(u.V-1)),u.y=i.getFullYear(),u.m=i.getMonth(),u.d=i.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),o="Z"in u?la(ha(u.y)).getUTCDay():n(ha(u.y)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+7*u.W-(o+5)%7:u.w+7*u.U-(o+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,la(u)):n(u)}}function r(t,n,e,r){for(var i,o,u=0,a=n.length,c=e.length;u<a;){if(r>=c)return-1;if(37===(i=n.charCodeAt(u++))){if(i=n.charAt(u++),!(o=H[i in Pb?n.charAt(u++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}function i(t,n,e){var r=C.exec(n.slice(e));return r?(t.p=z[r[0].toLowerCase()],e+r[0].length):-1}function o(t,n,e){var r=L.exec(n.slice(e));return r?(t.w=D[r[0].toLowerCase()],e+r[0].length):-1}function u(t,n,e){var r=P.exec(n.slice(e));return r?(t.w=R[r[0].toLowerCase()],e+r[0].length):-1}function a(t,n,e){var r=O.exec(n.slice(e));return r?(t.m=F[r[0].toLowerCase()],e+r[0].length):-1}function c(t,n,e){var r=q.exec(n.slice(e));return r?(t.m=U[r[0].toLowerCase()],e+r[0].length):-1}function s(t,n,e){return r(t,w,n,e)}function f(t,n,e){return r(t,M,n,e)}function l(t,n,e){return r(t,T,n,e)}function h(t){return S[t.getDay()]}function p(t){return k[t.getDay()]}function d(t){return E[t.getMonth()]}function v(t){return A[t.getMonth()]}function g(t){return N[+(t.getHours()>=12)]}function y(t){return S[t.getUTCDay()]}function _(t){return k[t.getUTCDay()]}function m(t){return E[t.getUTCMonth()]}function x(t){return A[t.getUTCMonth()]}function b(t){return N[+(t.getUTCHours()>=12)]}var w=t.dateTime,M=t.date,T=t.time,N=t.periods,k=t.days,S=t.shortDays,A=t.months,E=t.shortMonths,C=ga(N),z=ya(N),P=ga(k),R=ya(k),L=ga(S),D=ya(S),q=ga(A),U=ya(A),O=ga(E),F=ya(E),Y={a:h,A:p,b:d,B:v,c:null,d:Ua,e:Ua,f:Ha,H:Oa,I:Fa,j:Ya,L:Ia,m:Ba,M:ja,p:g,Q:_c,s:mc,S:Xa,u:Wa,U:Va,V:$a,w:Za,W:Ga,x:null,X:null,y:Qa,Y:Ja,Z:Ka,"%":yc},I={a:y,A:_,b:m,B:x,c:null,d:tc,e:tc,f:oc,H:nc,I:ec,j:rc,L:ic,m:uc,M:ac,p:b,Q:_c,s:mc,S:cc,u:sc,U:fc,V:lc,w:hc,W:pc,x:null,X:null,y:dc,Y:vc,Z:gc,"%":yc},H={a:o,A:u,b:a,B:c,c:s,d:Sa,e:Sa,f:Ra,H:Ea,I:Ea,j:Aa,L:Pa,m:ka,M:Ca,p:i,Q:Da,s:qa,S:za,u:ma,U:xa,V:ba,w:_a,W:wa,x:f,X:l,y:Ta,Y:Ma,Z:Na,"%":La};return Y.x=n(M,Y),Y.X=n(T,Y),Y.c=n(w,Y),I.x=n(M,I),I.X=n(T,I),I.c=n(w,I),{format:function(t){var e=n(t+="",Y);return e.toString=function(){return t},e},parse:function(t){var n=e(t+="",fa);return n.toString=function(){return t},n},utcFormat:function(t){var e=n(t+="",I);return e.toString=function(){return t},e},utcParse:function(t){var n=e(t,la);return n.toString=function(){return t},n}}}function da(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(n)+i:i)}function va(t){return t.replace(Db,"\\$&")}function ga(t){return new RegExp("^(?:"+t.map(va).join("|")+")","i")}function ya(t){for(var n={},e=-1,r=t.length;++e<r;)n[t[e].toLowerCase()]=e;return n}function _a(t,n,e){var r=Rb.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function ma(t,n,e){var r=Rb.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function xa(t,n,e){var r=Rb.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function ba(t,n,e){var r=Rb.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function wa(t,n,e){var r=Rb.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function Ma(t,n,e){var r=Rb.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function Ta(t,n,e){var r=Rb.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function Na(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 ka(t,n,e){var r=Rb.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function Sa(t,n,e){var r=Rb.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function Aa(t,n,e){var r=Rb.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function Ea(t,n,e){var r=Rb.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function Ca(t,n,e){var r=Rb.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function za(t,n,e){var r=Rb.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function Pa(t,n,e){var r=Rb.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function Ra(t,n,e){var r=Rb.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function La(t,n,e){var r=Lb.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function Da(t,n,e){var r=Rb.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function qa(t,n,e){var r=Rb.exec(n.slice(e));return r?(t.Q=1e3*+r[0],e+r[0].length):-1}function Ua(t,n){return da(t.getDate(),n,2)}function Oa(t,n){return da(t.getHours(),n,2)}function Fa(t,n){return da(t.getHours()%12||12,n,2)}function Ya(t,n){return da(1+Ix.count(ob(t),t),n,3)}function Ia(t,n){return da(t.getMilliseconds(),n,3)}function Ha(t,n){return Ia(t,n)+"000"}function Ba(t,n){return da(t.getMonth()+1,n,2)}function ja(t,n){return da(t.getMinutes(),n,2)}function Xa(t,n){return da(t.getSeconds(),n,2)}function Wa(t){var n=t.getDay();return 0===n?7:n}function Va(t,n){return da(Bx.count(ob(t),t),n,2)}function $a(t,n){var e=t.getDay();return t=e>=4||0===e?Vx(t):Vx.ceil(t),da(Vx.count(ob(t),t)+(4===ob(t).getDay()),n,2)}function Za(t){return t.getDay()}function Ga(t,n){return da(jx.count(ob(t),t),n,2)}function Qa(t,n){return da(t.getFullYear()%100,n,2)}function Ja(t,n){return da(t.getFullYear()%1e4,n,4)}function Ka(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+da(n/60|0,"0",2)+da(n%60,"0",2)}function tc(t,n){return da(t.getUTCDate(),n,2)}function nc(t,n){return da(t.getUTCHours(),n,2)}function ec(t,n){return da(t.getUTCHours()%12||12,n,2)}function rc(t,n){return da(1+lb.count(Eb(t),t),n,3)}function ic(t,n){return da(t.getUTCMilliseconds(),n,3)}function oc(t,n){return ic(t,n)+"000"}function uc(t,n){return da(t.getUTCMonth()+1,n,2)}function ac(t,n){return da(t.getUTCMinutes(),n,2)}function cc(t,n){return da(t.getUTCSeconds(),n,2)}function sc(t){var n=t.getUTCDay();return 0===n?7:n}function fc(t,n){return da(pb.count(Eb(t),t),n,2)}function lc(t,n){var e=t.getUTCDay();return t=e>=4||0===e?yb(t):yb.ceil(t),da(yb.count(Eb(t),t)+(4===Eb(t).getUTCDay()),n,2)}function hc(t){return t.getUTCDay()}function pc(t,n){return da(db.count(Eb(t),t),n,2)}function dc(t,n){return da(t.getUTCFullYear()%100,n,2)}function vc(t,n){return da(t.getUTCFullYear()%1e4,n,4)}function gc(){return"+0000"}function yc(){return"%"}function _c(t){return+t}function mc(t){return Math.floor(+t/1e3)}function xc(n){return Cb=pa(n),t.timeFormat=Cb.format,t.timeParse=Cb.parse,t.utcFormat=Cb.utcFormat,t.utcParse=Cb.utcParse,Cb}function bc(t){return t.toISOString()}function wc(t){var n=new Date(t);return isNaN(n)?null:n}function Mc(t){return new Date(t)}function Tc(t){return t instanceof Date?+t:+new Date(+t)}function Nc(t,n,e,r,o,u,a,c,s){function f(i){return(a(i)<i?v:u(i)<i?g:o(i)<i?y:r(i)<i?_:n(i)<i?e(i)<i?m:x:t(i)<i?b:w)(i)}function l(n,e,r,o){if(null==n&&(n=10),"number"==typeof n){var u=Math.abs(r-e)/n,a=Tf(function(t){return t[2]}).right(M,u);a===M.length?(o=i(e/jb,r/jb,n),n=t):a?(a=M[u/M[a-1][2]<M[a][2]/u?a-1:a],o=a[1],n=a[0]):(o=Math.max(i(e,r,n),1),n=c)}return null==o?n:n.every(o)}var h=ju(Ou,cp),p=h.invert,d=h.domain,v=s(".%L"),g=s(":%S"),y=s("%I:%M"),_=s("%I %p"),m=s("%a %d"),x=s("%b %d"),b=s("%B"),w=s("%Y"),M=[[a,1,Ob],[a,5,5*Ob],[a,15,15*Ob],[a,30,30*Ob],[u,1,Fb],[u,5,5*Fb],[u,15,15*Fb],[u,30,30*Fb],[o,1,Yb],[o,3,3*Yb],[o,6,6*Yb],[o,12,12*Yb],[r,1,Ib],[r,2,2*Ib],[e,1,Hb],[n,1,Bb],[n,3,3*Bb],[t,1,jb]];return h.invert=function(t){return new Date(p(t))},h.domain=function(t){return arguments.length?d(bx.call(t,Tc)):d().map(Mc)},h.ticks=function(t,n){var e,r=d(),i=r[0],o=r[r.length-1],u=o<i;return u&&(e=i,i=o,o=e),e=l(t,i,o,n),e=e?e.range(i,o+1):[],u?e.reverse():e},h.tickFormat=function(t,n){return null==n?f:s(n)},h.nice=function(t,n){var e=d();return(t=l(t,e[0],e[e.length-1],n))?d(Ax(e,t)):h},h.copy=function(){return Bu(h,Nc(t,n,e,r,o,u,a,c,s))},h}function kc(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}function Sc(t){function n(n){var o=(n-e)/(r-e);return t(i?Math.max(0,Math.min(1,o)):o)}var e=0,r=1,i=!1;return n.domain=function(t){return arguments.length?(e=+t[0],r=+t[1],n):[e,r]},n.clamp=function(t){return arguments.length?(i=!!t,n):i},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return Sc(t).domain([e,r]).clamp(i)},Xu(n)}function Ac(t){return t>1?0:t<-1?gw:Math.acos(t)}function Ec(t){return t>=1?yw:t<=-1?-yw:Math.asin(t)}function Cc(t){return t.innerRadius}function zc(t){return t.outerRadius}function Pc(t){return t.startAngle}function Rc(t){return t.endAngle}function Lc(t){return t&&t.padAngle}function Dc(t,n,e,r,i,o,u,a){var c=e-t,s=r-n,f=u-i,l=a-o,h=(f*(n-o)-l*(t-i))/(l*c-f*s);return[t+h*c,n+h*s]}function qc(t,n,e,r,i,o,u){var a=t-e,c=n-r,s=(u?o:-o)/dw(a*a+c*c),f=s*c,l=-s*a,h=t+f,p=n+l,d=e+f,v=r+l,g=(h+d)/2,y=(p+v)/2,_=d-h,m=v-p,x=_*_+m*m,b=i-o,w=h*v-d*p,M=(m<0?-1:1)*dw(lw(0,b*b*x-w*w)),T=(w*m-_*M)/x,N=(-w*_-m*M)/x,k=(w*m+_*M)/x,S=(-w*_+m*M)/x,A=T-g,E=N-y,C=k-g,z=S-y;return A*A+E*E>C*C+z*z&&(T=k,N=S),{cx:T,cy:N,x01:-f,y01:-l,x11:T*(i/b-1),y11:N*(i/b-1)}}function Uc(t){this._context=t}function Oc(t){return t[0]}function Fc(t){return t[1]}function Yc(t){this._curve=t}function Ic(t){function n(n){return new Yc(t(n))}return n._curve=t,n}function Hc(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(Ic(t)):n()._curve},t}function Bc(t){return t.source}function jc(t){return t.target}function Xc(t){function n(){var n,a=Cw.call(arguments),c=e.apply(this,a),s=r.apply(this,a);if(u||(u=n=Oe()),t(u,+i.apply(this,(a[0]=c,a)),+o.apply(this,a),+i.apply(this,(a[0]=s,a)),+o.apply(this,a)),n)return u=null,n+""||null}var e=Bc,r=jc,i=Oc,o=Fc,u=null;return n.source=function(t){return arguments.length?(e=t,n):e},n.target=function(t){return arguments.length?(r=t,n):r},n.x=function(t){return arguments.length?(i="function"==typeof t?t:aw(+t),n):i},n.y=function(t){return arguments.length?(o="function"==typeof t?t:aw(+t),n):o},n.context=function(t){return arguments.length?(u=null==t?null:t,n):u},n}function Wc(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function Vc(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function $c(t,n,e,r,i){var o=Ew(n,e),u=Ew(n,e=(e+i)/2),a=Ew(r,e),c=Ew(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(u[0],u[1],a[0],a[1],c[0],c[1])}function Zc(){return Xc(Wc)}function Gc(){return Xc(Vc)}function Qc(){var t=Xc($c);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}function Jc(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function Kc(t){this._context=t}function ts(t){this._context=t}function ns(t){this._context=t}function es(t,n){this._basis=new Kc(t),this._beta=n}function rs(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function is(t,n){this._context=t,this._k=(1-n)/6}function os(t,n){this._context=t,this._k=(1-n)/6}function us(t,n){this._context=t,this._k=(1-n)/6}function as(t,n,e){var r=t._x1,i=t._y1,o=t._x2,u=t._y2;if(t._l01_a>vw){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>vw){var s=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*s+t._x1*t._l23_2a-n*t._l12_2a)/f,u=(u*s+t._y1*t._l23_2a-e*t._l12_2a)/f}t._context.bezierCurveTo(r,i,o,u,t._x2,t._y2)}function cs(t,n){this._context=t,this._alpha=n}function ss(t,n){this._context=t,this._alpha=n}function fs(t,n){this._context=t,this._alpha=n}function ls(t){this._context=t}function hs(t){return t<0?-1:1}function ps(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),u=(e-t._y1)/(i||r<0&&-0),a=(o*i+u*r)/(r+i);return(hs(o)+hs(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(a))||0}function ds(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function vs(t,n,e){var r=t._x0,i=t._y0,o=t._x1,u=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,i+a*n,o-a,u-a*e,o,u)}function gs(t){this._context=t}function ys(t){this._context=new _s(t)}function _s(t){this._context=t}function ms(t){return new gs(t)}function xs(t){return new ys(t)}function bs(t){this._context=t}function ws(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),u=new Array(r);for(i[0]=0,o[0]=2,u[0]=t[0]+2*t[1],n=1;n<r-1;++n)i[n]=1,o[n]=4,u[n]=4*t[n]+2*t[n+1];for(i[r-1]=2,o[r-1]=7,u[r-1]=8*t[r-1]+t[r],n=1;n<r;++n)e=i[n]/o[n-1],o[n]-=e,u[n]-=e*u[n-1];for(i[r-1]=u[r-1]/o[r-1],n=r-2;n>=0;--n)i[n]=(u[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n<r-1;++n)o[n]=2*t[n+1]-i[n+1];return[i,o]}function Ms(t,n){this._context=t,this._t=n}function Ts(t){return new Ms(t,0)}function Ns(t){return new Ms(t,1)}function ks(t,n){return t[n]}function Ss(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}function As(t){return t[0]}function Es(t){return t[1]}function Cs(){this._=null}function zs(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Ps(t,n){var e=n,r=n.R,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function Rs(t,n){var e=n,r=n.L,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function Ls(t){for(;t.L;)t=t.L;return t}function Ds(t,n,e,r){var i=[null,null],o=kM.push(i)-1;return i.left=t,i.right=n,e&&Us(i,t,n,e),r&&Us(i,n,t,r),TM[t.index].halfedges.push(o),TM[n.index].halfedges.push(o),i}function qs(t,n,e){var r=[n,e];return r.left=t,r}function Us(t,n,e,r){t[0]||t[1]?t.left===e?t[1]=r:t[0]=r:(t[0]=r,t.left=n,t.right=e)}function Os(t,n,e,r,i){var o,u=t[0],a=t[1],c=u[0],s=u[1],f=a[0],l=a[1],h=0,p=1,d=f-c,v=l-s;if(o=n-c,d||!(o>0)){if(o/=d,d<0){if(o<h)return;o<p&&(p=o)}else if(d>0){if(o>p)return;o>h&&(h=o)}if(o=r-c,d||!(o<0)){if(o/=d,d<0){if(o>p)return;o>h&&(h=o)}else if(d>0){if(o<h)return;o<p&&(p=o)}if(o=e-s,v||!(o>0)){if(o/=v,v<0){if(o<h)return;o<p&&(p=o)}else if(v>0){if(o>p)return;o>h&&(h=o)}if(o=i-s,v||!(o<0)){if(o/=v,v<0){if(o>p)return;o>h&&(h=o)}else if(v>0){if(o<h)return;o<p&&(p=o)}return!(h>0||p<1)||(h>0&&(t[0]=[c+h*d,s+h*v]),p<1&&(t[1]=[c+p*d,s+p*v]),!0)}}}}}function Fs(t,n,e,r,i){var o=t[1];if(o)return!0;var u,a,c=t[0],s=t.left,f=t.right,l=s[0],h=s[1],p=f[0],d=f[1],v=(l+p)/2,g=(h+d)/2;if(d===h){if(v<n||v>=r)return;if(l>p){if(c){if(c[1]>=i)return}else c=[v,e];o=[v,i]}else{if(c){if(c[1]<e)return}else c=[v,i];o=[v,e]}}else if(u=(l-p)/(d-h),a=g-u*v,u<-1||u>1)if(l>p){if(c){if(c[1]>=i)return}else c=[(e-a)/u,e];o=[(i-a)/u,i]}else{if(c){if(c[1]<e)return}else c=[(i-a)/u,i];o=[(e-a)/u,e]}else if(h<d){if(c){if(c[0]>=r)return}else c=[n,u*n+a];o=[r,u*r+a]}else{if(c){if(c[0]<n)return}else c=[r,u*r+a];o=[n,u*n+a]}return t[0]=c,t[1]=o,!0}function Ys(t,n,e,r){for(var i,o=kM.length;o--;)Fs(i=kM[o],t,n,e,r)&&Os(i,t,n,e,r)&&(Math.abs(i[0][0]-i[1][0])>EM||Math.abs(i[0][1]-i[1][1])>EM)||delete kM[o]}function Is(t){return TM[t.index]={site:t,halfedges:[]}}function Hs(t,n){var e=t.site,r=n.left,i=n.right;return e===i&&(i=r,r=e),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(e===r?(r=n[1],i=n[0]):(r=n[0],i=n[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function Bs(t,n){return n[+(n.left!==t.site)]}function js(t,n){return n[+(n.left===t.site)]}function Xs(){for(var t,n,e,r,i=0,o=TM.length;i<o;++i)if((t=TM[i])&&(r=(n=t.halfedges).length)){var u=new Array(r),a=new Array(r);for(e=0;e<r;++e)u[e]=e,a[e]=Hs(t,kM[n[e]]);for(u.sort(function(t,n){return a[n]-a[t]}),e=0;e<r;++e)a[e]=n[u[e]];for(e=0;e<r;++e)n[e]=a[e]}}function Ws(t,n,e,r){var i,o,u,a,c,s,f,l,h,p,d,v,g=TM.length,y=!0;for(i=0;i<g;++i)if(o=TM[i]){for(u=o.site,c=o.halfedges,a=c.length;a--;)kM[c[a]]||c.splice(a,1);for(a=0,s=c.length;a<s;)p=js(o,kM[c[a]]),d=p[0],v=p[1],f=Bs(o,kM[c[++a%s]]),l=f[0],h=f[1],(Math.abs(d-l)>EM||Math.abs(v-h)>EM)&&(c.splice(a,0,kM.push(qs(u,p,Math.abs(d-t)<EM&&r-v>EM?[t,Math.abs(l-t)<EM?h:r]:Math.abs(v-r)<EM&&e-d>EM?[Math.abs(h-r)<EM?l:e,r]:Math.abs(d-e)<EM&&v-n>EM?[e,Math.abs(l-e)<EM?h:n]:Math.abs(v-n)<EM&&d-t>EM?[Math.abs(h-n)<EM?l:t,n]:null))-1),++s);s&&(y=!1)}if(y){var _,m,x,b=1/0;for(i=0,y=null;i<g;++i)(o=TM[i])&&(u=o.site,_=u[0]-t,m=u[1]-n,(x=_*_+m*m)<b&&(b=x,y=o));if(y){var w=[t,n],M=[t,r],T=[e,r],N=[e,n];y.halfedges.push(kM.push(qs(u=y.site,w,M))-1,kM.push(qs(u,M,T))-1,kM.push(qs(u,T,N))-1,kM.push(qs(u,N,w))-1)}}for(i=0;i<g;++i)(o=TM[i])&&(o.halfedges.length||delete TM[i])}function Vs(){zs(this),this.x=this.y=this.arc=this.site=this.cy=null}function $s(t){var n=t.P,e=t.N;if(n&&e){var r=n.site,i=t.site,o=e.site;if(r!==o){var u=i[0],a=i[1],c=r[0]-u,s=r[1]-a,f=o[0]-u,l=o[1]-a,h=2*(c*l-s*f);if(!(h>=-CM)){var p=c*c+s*s,d=f*f+l*l,v=(l*p-s*d)/h,g=(c*d-f*p)/h,y=SM.pop()||new Vs;y.arc=t,y.site=i,y.x=v+u,y.y=(y.cy=g+a)+Math.sqrt(v*v+g*g),t.circle=y;for(var _=null,m=NM._;m;)if(y.y<m.y||y.y===m.y&&y.x<=m.x){if(!m.L){_=m.P;break}m=m.L}else{if(!m.R){_=m;break}m=m.R}NM.insert(_,y),_||(wM=y)}}}}function Zs(t){var n=t.circle;n&&(n.P||(wM=n.N),NM.remove(n),SM.push(n),zs(n),t.circle=null)}function Gs(){zs(this),this.edge=this.site=this.circle=null}function Qs(t){var n=AM.pop()||new Gs;return n.site=t,n}function Js(t){Zs(t),MM.remove(t),AM.push(t),zs(t)}function Ks(t){var n=t.circle,e=n.x,r=n.cy,i=[e,r],o=t.P,u=t.N,a=[t];Js(t);for(var c=o;c.circle&&Math.abs(e-c.circle.x)<EM&&Math.abs(r-c.circle.cy)<EM;)o=c.P,a.unshift(c),Js(c),c=o;a.unshift(c),Zs(c);for(var s=u;s.circle&&Math.abs(e-s.circle.x)<EM&&Math.abs(r-s.circle.cy)<EM;)u=s.N,a.push(s),Js(s),s=u;a.push(s),Zs(s);var f,l=a.length;for(f=1;f<l;++f)s=a[f],c=a[f-1],Us(s.edge,c.site,s.site,i);c=a[0],s=a[l-1],s.edge=Ds(c.site,s.site,null,i),$s(c),$s(s)}function tf(t){for(var n,e,r,i,o=t[0],u=t[1],a=MM._;a;)if((r=nf(a,u)-o)>EM)a=a.L;else{if(!((i=o-ef(a,u))>EM)){r>-EM?(n=a.P,e=a):i>-EM?(n=a,e=a.N):n=e=a;break}if(!a.R){n=a;break}a=a.R}Is(t);var c=Qs(t);if(MM.insert(n,c),n||e){if(n===e)return Zs(n),e=Qs(n.site),MM.insert(c,e),c.edge=e.edge=Ds(n.site,c.site),$s(n),void $s(e);if(!e)return void(c.edge=Ds(n.site,c.site));Zs(n),Zs(e);var s=n.site,f=s[0],l=s[1],h=t[0]-f,p=t[1]-l,d=e.site,v=d[0]-f,g=d[1]-l,y=2*(h*g-p*v),_=h*h+p*p,m=v*v+g*g,x=[(g*_-p*m)/y+f,(h*m-v*_)/y+l];Us(e.edge,s,d,x),c.edge=Ds(s,t,null,x),e.edge=Ds(t,d,null,x),$s(n),$s(e)}}function nf(t,n){var e=t.site,r=e[0],i=e[1],o=i-n;if(!o)return r;var u=t.P;if(!u)return-1/0;e=u.site;var a=e[0],c=e[1],s=c-n;if(!s)return a;var f=a-r,l=1/o-1/s,h=f/s;return l?(-h+Math.sqrt(h*h-2*l*(f*f/(-2*s)-c+s/2+i-o/2)))/l+r:(r+a)/2}function ef(t,n){var e=t.N;if(e)return nf(e,n);var r=t.site;return r[1]===n?r[0]:1/0}function rf(t,n,e){return(t[0]-e[0])*(n[1]-t[1])-(t[0]-n[0])*(e[1]-t[1])}function of(t,n){return n[1]-t[1]||n[0]-t[0]}function uf(t,n){var e,r,i,o=t.sort(of).pop();for(kM=[],TM=new Array(t.length),MM=new Cs,NM=new Cs;;)if(i=wM,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===e&&o[1]===r||(tf(o),e=o[0],r=o[1]),o=t.pop();else{if(!i)break;Ks(i.arc)}if(Xs(),n){var u=+n[0][0],a=+n[0][1],c=+n[1][0],s=+n[1][1];Ys(u,a,c,s),Ws(u,a,c,s)}this.edges=kM,this.cells=TM,MM=NM=kM=TM=null}function af(t,n,e){this.target=t,this.type=n,this.transform=e}function cf(t,n,e){this.k=t,this.x=n,this.y=e}function sf(t){return t.__zoom||RM}function ff(){t.event.stopImmediatePropagation()}function lf(){return!t.event.button}function hf(){var t,n,e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,t=e.width.baseVal.value,n=e.height.baseVal.value):(t=e.clientWidth,n=e.clientHeight),[[0,0],[t,n]]}function pf(){return this.__zoom||RM}function df(){return-t.event.deltaY*(t.event.deltaMode?120:1)/500}function vf(){return"ontouchstart"in this}function gf(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],o=t.invertY(n[0][1])-e[0][1],u=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),u>o?(o+u)/2:Math.min(0,o)||Math.max(0,u))}function yf(){return null}function _f(){for(var t=arguments,n=0,e=t.length;n<e;)"string"!=typeof t[n]&&"number"!=typeof t[n]||(t[n]=function(t){return function(n){return n[t]}}(t[n])),n++;return function(n){for(var e=0,r=t.length;e++<r;)n=t[e-1].call(this,n);return n}}function mf(t,n,e){return(e[0]-n[0])*(t[1]-n[1])<(e[1]-n[1])*(t[0]-n[0])}function xf(t,n,e,r){var i=t[0],o=e[0],u=n[0]-i,a=r[0]-o,c=t[1],s=e[1],f=n[1]-c,l=r[1]-s,h=(a*(c-s)-l*(i-o))/(l*u-a*f);return[i+h*u,c+h*f]}function bf(t){var n=t[0],e=t[t.length-1];return!(n[0]-e[0]||n[1]-e[1])}function wf(){function n(){var t=0;s.forEach(function(n,e){n<pageYOffset-d+y&&(t=e)}),t=Math.min(i-1,t);var n=pageYOffset>o;h!=n&&(h=n,p.classed("graph-scroll-below",h));var e=!h&&pageYOffset>d;l!=e&&(l=e,p.classed("graph-scroll-fixed",l)),h&&(t=i-1),c!=t&&(a.classed("graph-scroll-active",function(n,e){return e===t}),u.call("active",null,t),c=t)}function e(){s=[];var t;a.each(function(n,e){e||(t=this.getBoundingClientRect().top),s.push(this.getBoundingClientRect().top-t)});var n=p.node().getBoundingClientRect(),e=f.node()?f.node().getBoundingClientRect().height:0;d=n.top+pageYOffset,o=n.bottom-e+pageYOffset}function r(){if(l){var n;switch(t.event.keyCode){case 39:if(t.event.metaKey)return;case 40:case 34:n=t.event.metaKey?1/0:1;break;case 37:if(t.event.metaKey)return;case 38:case 33:n=t.event.metaKey?-1/0:-1;break;case 32:n=t.event.shiftKey?-1:1;break;default:return}var e=Math.max(0,Math.min(c+n,i-1));e!=c&&(fh(document.documentElement).interrupt().transition().duration(500).tween("scroll",function(){var t=cp(pageYOffset,s[e]+d);return function(n){scrollTo(0,t(n))}}),t.event.preventDefault())}}var i,o,u=g("scroll","active"),a=fh("null"),c=NaN,s=[],f=fh("null"),l=null,h=null,p=fh("body"),d=0,v=Math.random(),y=200,_={};return _.container=function(t){return t?(p=t,_):p},_.graph=function(t){return t?(f=t,_):f},_.eventId=function(t){return t?(v=t,_):v},_.sections=function(t){return t?(a=t,i=a.size(),fh(window).on("scroll.gscroll"+v,n).on("resize.gscroll"+v,e).on("keydown.gscroll"+v,r),e(),window["gscrollTimer"+v]&&window["gscrollTimer"+v].stop(),window["gscrollTimer"+v]=bn(n),_):a},_.on=function(){var t=u.on.apply(u,arguments);return t===u?_:t},_.offset=function(t){return t?(y=t,_):y},_}var Mf=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN},Tf=function(t){return 1===t.length&&(t=n(t)),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)>0?i=o:r=o+1}return r}}},Nf=Tf(Mf),kf=Nf.right,Sf=Nf.left,Af=function(t,n){null==n&&(n=e);for(var r=0,i=t.length-1,o=t[0],u=new Array(i<0?0:i);r<i;)u[r]=n(o,o=t[++r]);return u},Ef=function(t,n,r){var i,o,u,a,c=t.length,s=n.length,f=new Array(c*s);for(null==r&&(r=e),i=u=0;i<c;++i)for(a=t[i],o=0;o<s;++o,++u)f[u]=r(a,n[o]);return f},Cf=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN},zf=function(t){return null===t?NaN:+t},Pf=function(t,n){var e,r,i=t.length,o=0,u=-1,a=0,c=0;if(null==n)for(;++u<i;)isNaN(e=zf(t[u]))||(r=e-a,a+=r/++o,c+=r*(e-a));else for(;++u<i;)isNaN(e=zf(n(t[u],u,t)))||(r=e-a,a+=r/++o,c+=r*(e-a));if(o>1)return c/(o-1)},Rf=function(t,n){var e=Pf(t,n);return e?Math.sqrt(e):e},Lf=function(t,n){var e,r,i,o=t.length,u=-1;if(null==n){for(;++u<o;)if(null!=(e=t[u])&&e>=e)for(r=i=e;++u<o;)null!=(e=t[u])&&(r>e&&(r=e),i<e&&(i=e))}else for(;++u<o;)if(null!=(e=n(t[u],u,t))&&e>=e)for(r=i=e;++u<o;)null!=(e=n(t[u],u,t))&&(r>e&&(r=e),i<e&&(i=e));return[r,i]},Df=Array.prototype,qf=Df.slice,Uf=Df.map,Of=function(t){return function(){return t}},Ff=function(t){return t},Yf=function(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r<i;)o[r]=t+r*e;return o},If=Math.sqrt(50),Hf=Math.sqrt(10),Bf=Math.sqrt(2),jf=function(t,n,e){var i,o,u,a,c=-1;if(n=+n,t=+t,e=+e,t===n&&e>0)return[t];if((i=n<t)&&(o=t,t=n,n=o),0===(a=r(t,n,e))||!isFinite(a))return[];if(a>0)for(t=Math.ceil(t/a),n=Math.floor(n/a),u=new Array(o=Math.ceil(n-t+1));++c<o;)u[c]=(t+c)*a;else for(t=Math.floor(t*a),n=Math.ceil(n*a),u=new Array(o=Math.ceil(t-n+1));++c<o;)u[c]=(t-c)/a;return i&&u.reverse(),u},Xf=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1},Wf=function(){function t(t){var o,u,a=t.length,c=new Array(a);for(o=0;o<a;++o)c[o]=n(t[o],o,t);var s=e(c),f=s[0],l=s[1],h=r(c,f,l);Array.isArray(h)||(h=i(f,l,h),h=Yf(Math.ceil(f/h)*h,Math.floor(l/h)*h,h));for(var p=h.length;h[0]<=f;)h.shift(),--p;for(;h[p-1]>l;)h.pop(),--p;var d,v=new Array(p+1);for(o=0;o<=p;++o)d=v[o]=[],d.x0=o>0?h[o-1]:f,d.x1=o<p?h[o]:l;for(o=0;o<a;++o)u=c[o],f<=u&&u<=l&&v[kf(h,u,0,p)].push(t[o]);return v}var n=Ff,e=Lf,r=Xf;return t.value=function(e){return arguments.length?(n="function"==typeof e?e:Of(e),t):n},t.domain=function(n){return arguments.length?(e="function"==typeof n?n:Of([n[0],n[1]]),t):e},t.thresholds=function(n){return arguments.length?(r="function"==typeof n?n:Of(Array.isArray(n)?qf.call(n):n),t):r},t},Vf=function(t,n,e){if(null==e&&(e=zf),r=t.length){if((n=+n)<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),u=+e(t[o],o,t);return u+(+e(t[o+1],o+1,t)-u)*(i-o)}},$f=function(t,n,e){return t=Uf.call(t,zf).sort(Mf),Math.ceil((e-n)/(2*(Vf(t,.75)-Vf(t,.25))*Math.pow(t.length,-1/3)))},Zf=function(t,n,e){return Math.ceil((e-n)/(3.5*Rf(t)*Math.pow(t.length,-1/3)))},Gf=function(t,n){var e,r,i=t.length,o=-1;if(null==n){for(;++o<i;)if(null!=(e=t[o])&&e>=e)for(r=e;++o<i;)null!=(e=t[o])&&e>r&&(r=e)}else for(;++o<i;)if(null!=(e=n(t[o],o,t))&&e>=e)for(r=e;++o<i;)null!=(e=n(t[o],o,t))&&e>r&&(r=e);return r},Qf=function(t,n){var e,r=t.length,i=r,o=-1,u=0;if(null==n)for(;++o<r;)isNaN(e=zf(t[o]))?--i:u+=e;else for(;++o<r;)isNaN(e=zf(n(t[o],o,t)))?--i:u+=e;if(i)return u/i},Jf=function(t,n){var e,r=t.length,i=-1,o=[];if(null==n)for(;++i<r;)isNaN(e=zf(t[i]))||o.push(e);else for(;++i<r;)isNaN(e=zf(n(t[i],i,t)))||o.push(e);return Vf(o.sort(Mf),.5)},Kf=function(t){for(var n,e,r,i=t.length,o=-1,u=0;++o<i;)u+=t[o].length;for(e=new Array(u);--i>=0;)for(r=t[i],n=r.length;--n>=0;)e[--u]=r[n];return e},tl=function(t,n){var e,r,i=t.length,o=-1;if(null==n){for(;++o<i;)if(null!=(e=t[o])&&e>=e)for(r=e;++o<i;)null!=(e=t[o])&&r>e&&(r=e)}else for(;++o<i;)if(null!=(e=n(t[o],o,t))&&e>=e)for(r=e;++o<i;)null!=(e=n(t[o],o,t))&&r>e&&(r=e);return r},nl=function(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r},el=function(t,n){if(e=t.length){var e,r,i=0,o=0,u=t[o];for(null==n&&(n=Mf);++i<e;)(n(r=t[i],u)<0||0!==n(u,u))&&(u=r,o=i);return 0===n(u,u)?o:void 0}},rl=function(t,n,e){for(var r,i,o=(null==e?t.length:e)-(n=null==n?0:+n);o;)i=Math.random()*o--|0,r=t[o+n],t[o+n]=t[i+n],t[i+n]=r;return t},il=function(t,n){var e,r=t.length,i=-1,o=0;if(null==n)for(;++i<r;)(e=+t[i])&&(o+=e);else for(;++i<r;)(e=+n(t[i],i,t))&&(o+=e);return o},ol=function(t){if(!(i=t.length))return[];for(var n=-1,e=tl(t,o),r=new Array(e);++n<e;)for(var i,u=-1,a=r[n]=new Array(i);++u<i;)a[u]=t[u][n];return r},ul=function(){return ol(arguments)},al=Array.prototype.slice,cl=function(t){return t},sl=1,fl=2,ll=3,hl=4,pl=1e-6,dl={value:function(){}};y.prototype=g.prototype={constructor:y,on:function(t,n){var e,r=this._,i=_(t+"",r),o=-1,u=i.length;{if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o<u;)if(e=(t=i[o]).type)r[e]=x(r[e],t.name,n);else if(null==n)for(e in r)r[e]=x(r[e],t.name,null);return this}for(;++o<u;)if((e=(t=i[o]).type)&&(e=m(r[e],t.name)))return e}},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new y(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),o=0;o<e;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(r=this._[t],o=0,e=r.length;o<e;++o)r[o].value.apply(n,i)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}};var vl="http://www.w3.org/1999/xhtml",gl={svg:"http://www.w3.org/2000/svg",xhtml:vl,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},yl=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),gl.hasOwnProperty(n)?{space:gl[n],local:t}:t},_l=function(t){var n=yl(t);return(n.local?w:b)(n)},ml=0;T.prototype=M.prototype={constructor:T,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var xl=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var bl=document.documentElement;if(!bl.matches){var wl=bl.webkitMatchesSelector||bl.msMatchesSelector||bl.mozMatchesSelector||bl.oMatchesSelector;xl=function(t){return function(){return wl.call(this,t)}}}}var Ml=xl,Tl={};if(t.event=null,"undefined"!=typeof document){"onmouseenter"in document.documentElement||(Tl={mouseenter:"mouseover",mouseleave:"mouseout"})}var Nl=function(t,n,e){var r,i,o=S(t+""),u=o.length;{if(!(arguments.length<2)){for(a=n?E:A,null==e&&(e=!1),r=0;r<u;++r)this.each(a(o[r],n,e));return this}var a=this.node().__on;if(a)for(var c,s=0,f=a.length;s<f;++s)for(r=0,c=a[s];r<u;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value}},kl=function(){for(var n,e=t.event;n=e.sourceEvent;)e=n;return e},Sl=function(t,n){var e=t.ownerSVGElement||t;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=n.clientX,r.y=n.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var i=t.getBoundingClientRect();return[n.clientX-i.left-t.clientLeft,n.clientY-i.top-t.clientTop]},Al=function(t){var n=kl();return n.changedTouches&&(n=n.changedTouches[0]),Sl(t,n)},El=function(t){return null==t?z:function(){return this.querySelector(t)}},Cl=function(t){"function"!=typeof t&&(t=El(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u,a=n[i],c=a.length,s=r[i]=new Array(c),f=0;f<c;++f)(o=a[f])&&(u=t.call(o,o.__data__,f,a))&&("__data__"in o&&(u.__data__=o.__data__),s[f]=u);return new yt(r,this._parents)},zl=function(t){return null==t?P:function(){return this.querySelectorAll(t)}},Pl=function(t){"function"!=typeof t&&(t=zl(t))
;for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var u,a=n[o],c=a.length,s=0;s<c;++s)(u=a[s])&&(r.push(t.call(u,u.__data__,s,a)),i.push(u));return new yt(r,i)},Rl=function(t){"function"!=typeof t&&(t=Ml(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,c=r[i]=[],s=0;s<a;++s)(o=u[s])&&t.call(o,o.__data__,s,u)&&c.push(o);return new yt(r,this._parents)},Ll=function(t){return new Array(t.length)},Dl=function(){return new yt(this._enter||this._groups.map(Ll),this._parents)};R.prototype={constructor:R,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var ql=function(t){return function(){return t}},Ul="$",Ol=function(t,n){if(!t)return p=new Array(this.size()),s=-1,this.each(function(t){p[++s]=t}),p;var e=n?D:L,r=this._parents,i=this._groups;"function"!=typeof t&&(t=ql(t));for(var o=i.length,u=new Array(o),a=new Array(o),c=new Array(o),s=0;s<o;++s){var f=r[s],l=i[s],h=l.length,p=t.call(f,f&&f.__data__,s,r),d=p.length,v=a[s]=new Array(d),g=u[s]=new Array(d);e(f,l,v,g,c[s]=new Array(h),p,n);for(var y,_,m=0,x=0;m<d;++m)if(y=v[m]){for(m>=x&&(x=m+1);!(_=g[x])&&++x<d;);y._next=_||null}}return u=new yt(u,r),u._enter=a,u._exit=c,u},Fl=function(){return new yt(this._exit||this._groups.map(Ll),this._parents)},Yl=function(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var c,s=n[a],f=e[a],l=s.length,h=u[a]=new Array(l),p=0;p<l;++p)(c=s[p]||f[p])&&(h[p]=c);for(;a<r;++a)u[a]=n[a];return new yt(u,this._parents)},Il=function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,u=i[o];--o>=0;)(r=i[o])&&(u&&u!==r.nextSibling&&u.parentNode.insertBefore(r,u),u=r);return this},Hl=function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=q);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var u,a=e[o],c=a.length,s=i[o]=new Array(c),f=0;f<c;++f)(u=a[f])&&(s[f]=u);s.sort(n)}return new yt(i,this._parents).order()},Bl=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},jl=function(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t},Xl=function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var u=r[i];if(u)return u}return null},Wl=function(){var t=0;return this.each(function(){++t}),t},Vl=function(){return!this.node()},$l=function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],u=0,a=o.length;u<a;++u)(i=o[u])&&t.call(i,i.__data__,u,o);return this},Zl=function(t,n){var e=yl(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?O:U:"function"==typeof n?e.local?H:I:e.local?Y:F)(e,n))},Gl=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView},Ql=function(t,n,e){return arguments.length>1?this.each((null==n?B:"function"==typeof n?X:j)(t,n,null==e?"":e)):W(this.node(),t)},Jl=function(t,n){return arguments.length>1?this.each((null==n?V:"function"==typeof n?Z:$)(t,n)):this.node()[t]};J.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Kl=function(t,n){var e=G(t+"");if(arguments.length<2){for(var r=Q(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?rt:n?nt:et)(e,n))},th=function(t){return arguments.length?this.each(null==t?it:("function"==typeof t?ut:ot)(t)):this.node().textContent},nh=function(t){return arguments.length?this.each(null==t?at:("function"==typeof t?st:ct)(t)):this.node().innerHTML},eh=function(){return this.each(ft)},rh=function(){return this.each(lt)},ih=function(t){var n="function"==typeof t?t:_l(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},oh=function(t,n){var e="function"==typeof t?t:_l(t),r=null==n?ht:"function"==typeof n?n:El(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})},uh=function(){return this.each(pt)},ah=function(t){return arguments.length?this.property("__data__",t):this.node().__data__},ch=function(t,n){return this.each(("function"==typeof n?gt:vt)(t,n))},sh=[null];yt.prototype=_t.prototype={constructor:yt,select:Cl,selectAll:Pl,filter:Rl,data:Ol,enter:Dl,exit:Fl,merge:Yl,order:Il,sort:Hl,call:Bl,nodes:jl,node:Xl,size:Wl,empty:Vl,each:$l,attr:Zl,style:Ql,property:Jl,classed:Kl,text:th,html:nh,raise:eh,lower:rh,append:ih,insert:oh,remove:uh,datum:ah,on:Nl,dispatch:ch};var fh=function(t){return"string"==typeof t?new yt([[document.querySelector(t)]],[document.documentElement]):new yt([[t]],sh)},lh=function(t){return"string"==typeof t?new yt([document.querySelectorAll(t)],[document.documentElement]):new yt([null==t?[]:t],sh)},hh=function(t,n,e){arguments.length<3&&(e=n,n=kl().changedTouches);for(var r,i=0,o=n?n.length:0;i<o;++i)if((r=n[i]).identifier===e)return Sl(t,r);return null},ph=function(t,n){null==n&&(n=kl().touches);for(var e=0,r=n?n.length:0,i=new Array(r);e<r;++e)i[e]=Sl(t,n[e]);return i},dh=function(){t.event.preventDefault(),t.event.stopImmediatePropagation()},vh=function(t){var n=t.document.documentElement,e=fh(t).on("dragstart.drag",dh,!0);"onselectstart"in n?e.on("selectstart.drag",dh,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")},gh=function(t){return function(){return t}};bt.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var yh=function(){function n(t){t.on("mousedown.drag",e).filter(y).on("touchstart.drag",o).on("touchmove.drag",u).on("touchend.drag touchcancel.drag",a).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function e(){if(!h&&p.apply(this,arguments)){var n=c("mouse",d.apply(this,arguments),Al,this,arguments);n&&(fh(t.event.view).on("mousemove.drag",r,!0).on("mouseup.drag",i,!0),vh(t.event.view),mt(),l=!1,s=t.event.clientX,f=t.event.clientY,n("start"))}}function r(){if(dh(),!l){var n=t.event.clientX-s,e=t.event.clientY-f;l=n*n+e*e>b}_.mouse("drag")}function i(){fh(t.event.view).on("mousemove.drag mouseup.drag",null),xt(t.event.view,l),dh(),_.mouse("end")}function o(){if(p.apply(this,arguments)){var n,e,r=t.event.changedTouches,i=d.apply(this,arguments),o=r.length;for(n=0;n<o;++n)(e=c(r[n].identifier,i,hh,this,arguments))&&(mt(),e("start"))}}function u(){var n,e,r=t.event.changedTouches,i=r.length;for(n=0;n<i;++n)(e=_[r[n].identifier])&&(dh(),e("drag"))}function a(){var n,e,r=t.event.changedTouches,i=r.length;for(h&&clearTimeout(h),h=setTimeout(function(){h=null},500),n=0;n<i;++n)(e=_[r[n].identifier])&&(mt(),e("end"))}function c(e,r,i,o,u){var a,c,s,f=i(r,e),l=m.copy();if(C(new bt(n,"beforestart",a,e,x,f[0],f[1],0,0,l),function(){return null!=(t.event.subject=a=v.apply(o,u))&&(c=a.x-f[0]||0,s=a.y-f[1]||0,!0)}))return function t(h){var p,d=f;switch(h){case"start":_[e]=t,p=x++;break;case"end":delete _[e],--x;case"drag":f=i(r,e),p=x}C(new bt(n,h,a,e,p,f[0]+c,f[1]+s,f[0]-d[0],f[1]-d[1],l),l.apply,l,[h,o,u])}}var s,f,l,h,p=wt,d=Mt,v=Tt,y=Nt,_={},m=g("start","drag","end"),x=0,b=0;return n.filter=function(t){return arguments.length?(p="function"==typeof t?t:gh(!!t),n):p},n.container=function(t){return arguments.length?(d="function"==typeof t?t:gh(t),n):d},n.subject=function(t){return arguments.length?(v="function"==typeof t?t:gh(t),n):v},n.touchable=function(t){return arguments.length?(y="function"==typeof t?t:gh(!!t),n):y},n.on=function(){var t=m.on.apply(m,arguments);return t===m?n:t},n.clickDistance=function(t){return arguments.length?(b=(t=+t)*t,n):Math.sqrt(b)},n},_h=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t},mh="\\s*([+-]?\\d+)\\s*",xh="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",bh="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wh=/^#([0-9a-f]{3})$/,Mh=/^#([0-9a-f]{6})$/,Th=new RegExp("^rgb\\("+[mh,mh,mh]+"\\)$"),Nh=new RegExp("^rgb\\("+[bh,bh,bh]+"\\)$"),kh=new RegExp("^rgba\\("+[mh,mh,mh,xh]+"\\)$"),Sh=new RegExp("^rgba\\("+[bh,bh,bh,xh]+"\\)$"),Ah=new RegExp("^hsl\\("+[xh,bh,bh]+"\\)$"),Eh=new RegExp("^hsla\\("+[xh,bh,bh,xh]+"\\)$"),Ch={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};_h(St,At,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),_h(Rt,Pt,kt(St,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Rt(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Rt(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},toString:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(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+")")}})),_h(Ut,qt,kt(St,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Ut(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ut(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 Rt(Ot(t>=240?t-240:t+120,i,r),Ot(t,i,r),Ot(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 zh=Math.PI/180,Ph=180/Math.PI,Rh=.95047,Lh=1,Dh=1.08883,qh=4/29,Uh=6/29,Oh=3*Uh*Uh,Fh=Uh*Uh*Uh;_h(It,Yt,kt(St,{brighter:function(t){return new It(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new It(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 t=Lh*Bt(t),n=Rh*Bt(n),e=Dh*Bt(e),new Rt(jt(3.2404542*n-1.5371385*t-.4985314*e),jt(-.969266*n+1.8760108*t+.041556*e),jt(.0556434*n-.2040259*t+1.0572252*e),this.opacity)}})),_h($t,Vt,kt(St,{brighter:function(t){return new $t(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new $t(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return Ft(this).rgb()}}));var Yh=-.14861,Ih=1.78277,Hh=-.29227,Bh=-.90649,jh=1.97294,Xh=jh*Bh,Wh=jh*Ih,Vh=Ih*Hh-Bh*Yh;_h(Qt,Gt,kt(St,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Qt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Qt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*zh,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new Rt(255*(n+e*(Yh*r+Ih*i)),255*(n+e*(Hh*r+Bh*i)),255*(n+e*(jh*r)),this.opacity)}}));var $h,Zh,Gh,Qh,Jh,Kh,tp=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],o=t[r+1],u=r>0?t[r-1]:2*i-o,a=r<n-1?t[r+2]:2*o-i;return Jt((e-r/n)*n,u,i,o,a)}},np=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],o=t[r%n],u=t[(r+1)%n],a=t[(r+2)%n];return Jt((e-r/n)*n,i,o,u,a)}},ep=function(t){return function(){return t}},rp=function t(n){function e(t,n){var e=r((t=Pt(t)).r,(n=Pt(n)).r),i=r(t.g,n.g),o=r(t.b,n.b),u=rn(t.opacity,n.opacity);return function(n){return t.r=e(n),t.g=i(n),t.b=o(n),t.opacity=u(n),t+""}}var r=en(n);return e.gamma=t,e}(1),ip=on(tp),op=on(np),up=function(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),u=new Array(r);for(e=0;e<i;++e)o[e]=pp(t[e],n[e]);for(;e<r;++e)u[e]=n[e];return function(t){for(e=0;e<i;++e)u[e]=o[e](t);return u}},ap=function(t,n){var e=new Date;return t=+t,n-=t,function(r){return e.setTime(t+n*r),e}},cp=function(t,n){return t=+t,n-=t,function(e){return t+n*e}},sp=function(t,n){var e,r={},i={};null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={});for(e in n)e in t?r[e]=pp(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}},fp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,lp=new RegExp(fp.source,"g"),hp=function(t,n){var e,r,i,o=fp.lastIndex=lp.lastIndex=0,u=-1,a=[],c=[];for(t+="",n+="";(e=fp.exec(t))&&(r=lp.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),a[u]?a[u]+=i:a[++u]=i),(e=e[0])===(r=r[0])?a[u]?a[u]+=r:a[++u]=r:(a[++u]=null,c.push({i:u,x:cp(e,r)})),o=lp.lastIndex;return o<n.length&&(i=n.slice(o),a[u]?a[u]+=i:a[++u]=i),a.length<2?c[0]?an(c[0].x):un(n):(n=c.length,function(t){for(var e,r=0;r<n;++r)a[(e=c[r]).i]=e.x(t);return a.join("")})},pp=function(t,n){var e,r=typeof n;return null==n||"boolean"===r?ep(n):("number"===r?cp:"string"===r?(e=At(n))?(n=e,rp):hp:n instanceof At?rp:n instanceof Date?ap:Array.isArray(n)?up:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?sp:cp)(t,n)},dp=function(t,n){return t=+t,n-=t,function(e){return Math.round(t+n*e)}},vp=180/Math.PI,gp={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},yp=function(t,n,e,r,i,o){var u,a,c;return(u=Math.sqrt(t*t+n*n))&&(t/=u,n/=u),(c=t*e+n*r)&&(e-=t*c,r-=n*c),(a=Math.sqrt(e*e+r*r))&&(e/=a,r/=a,c/=a),t*r<n*e&&(t=-t,n=-n,c=-c,u=-u),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*vp,skewX:Math.atan(c)*vp,scaleX:u,scaleY:a}},_p=fn(cn,"px, ","px)","deg)"),mp=fn(sn,", ",")",")"),xp=Math.SQRT2,bp=function(t,n){var e,r,i=t[0],o=t[1],u=t[2],a=n[0],c=n[1],s=n[2],f=a-i,l=c-o,h=f*f+l*l;if(h<1e-12)r=Math.log(s/u)/xp,e=function(t){return[i+t*f,o+t*l,u*Math.exp(xp*t*r)]};else{var p=Math.sqrt(h),d=(s*s-u*u+4*h)/(2*u*2*p),v=(s*s-u*u-4*h)/(2*s*2*p),g=Math.log(Math.sqrt(d*d+1)-d),y=Math.log(Math.sqrt(v*v+1)-v);r=(y-g)/xp,e=function(t){var n=t*r,e=ln(g),a=u/(2*p)*(e*pn(xp*n+g)-hn(g));return[i+a*f,o+a*l,u*e/ln(xp*n+g)]}}return e.duration=1e3*r,e},wp=dn(nn),Mp=dn(rn),Tp=gn(nn),Np=gn(rn),kp=yn(nn),Sp=yn(rn),Ap=function(t,n){for(var e=new Array(n),r=0;r<n;++r)e[r]=t(r/(n-1));return e},Ep=0,Cp=0,zp=0,Pp=1e3,Rp=0,Lp=0,Dp=0,qp="object"==typeof performance&&performance.now?performance:Date,Up="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};xn.prototype=bn.prototype={constructor:xn,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?_n():+e)+(null==n?0:+n),this._next||Kh===this||(Kh?Kh._next=this:Jh=this,Kh=this),this._call=t,this._time=e,kn()},stop:function(){this._call&&(this._call=null,this._time=1/0,kn())}};var Op=function(t,n,e){var r=new xn;return n=null==n?0:+n,r.restart(function(e){r.stop(),t(e+n)},n,e),r},Fp=function(t,n,e){var r=new xn,i=n;return null==n?(r.restart(t,n,e),r):(n=+n,e=null==e?_n():+e,r.restart(function o(u){u+=i,r.restart(o,i+=n,e),t(u)},n,e),r)},Yp=g("start","end","interrupt"),Ip=[],Hp=0,Bp=1,jp=2,Xp=3,Wp=4,Vp=5,$p=6,Zp=function(t,n,e,r,i,o){var u=t.__transition;if(u){if(e in u)return}else t.__transition={};Cn(t,e,{name:n,index:r,group:i,on:Yp,tween:Ip,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Hp})},Gp=function(t,n){var e,r,i,o=t.__transition,u=!0;if(o){n=null==n?null:n+"";for(i in o)(e=o[i]).name===n?(r=e.state>jp&&e.state<Vp,e.state=$p,e.timer.stop(),r&&e.on.call("interrupt",t,t.__data__,e.index,e.group),delete o[i]):u=!1;u&&delete t.__transition}},Qp=function(t){return this.each(function(){Gp(this,t)})},Jp=function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=En(this.node(),e).tween,o=0,u=i.length;o<u;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?zn:Pn)(e,t,n))},Kp=function(t,n){var e;return("number"==typeof n?cp:n instanceof At?rp:(e=At(n))?(n=e,rp):hp)(t,n)},td=function(t,n){var e=yl(t),r="transform"===e?mp:Kp;return this.attrTween(t,"function"==typeof n?(e.local?Fn:On)(e,r,Rn(this,"attr."+t,n)):null==n?(e.local?Dn:Ln)(e):(e.local?Un:qn)(e,r,n+""))},nd=function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=yl(t);return this.tween(e,(r.local?Yn:In)(r,n))},ed=function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Hn:Bn)(n,t)):En(this.node(),n).delay},rd=function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?jn:Xn)(n,t)):En(this.node(),n).duration},id=function(t){var n=this._id;return arguments.length?this.each(Wn(n,t)):En(this.node(),n).ease},od=function(t){"function"!=typeof t&&(t=Ml(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,c=r[i]=[],s=0;s<a;++s)(o=u[s])&&t.call(o,o.__data__,s,u)&&c.push(o);return new re(r,this._parents,this._name,this._id)},ud=function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var c,s=n[a],f=e[a],l=s.length,h=u[a]=new Array(l),p=0;p<l;++p)(c=s[p]||f[p])&&(h[p]=c);for(;a<r;++a)u[a]=n[a];return new re(u,this._parents,this._name,this._id)},ad=function(t,n){var e=this._id;return arguments.length<2?En(this.node(),e).on.on(t):this.each($n(e,t,n))},cd=function(){return this.on("end.remove",Zn(this._id))},sd=function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=El(t));for(var r=this._groups,i=r.length,o=new Array(i),u=0;u<i;++u)for(var a,c,s=r[u],f=s.length,l=o[u]=new Array(f),h=0;h<f;++h)(a=s[h])&&(c=t.call(a,a.__data__,h,s))&&("__data__"in a&&(c.__data__=a.__data__),l[h]=c,Zp(l[h],n,e,h,l,En(a,e)));return new re(o,this._parents,n,e)},fd=function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=zl(t));for(var r=this._groups,i=r.length,o=[],u=[],a=0;a<i;++a)for(var c,s=r[a],f=s.length,l=0;l<f;++l)if(c=s[l]){for(var h,p=t.call(c,c.__data__,l,s),d=En(c,e),v=0,g=p.length;v<g;++v)(h=p[v])&&Zp(h,n,e,v,p,d);o.push(p),u.push(c)}return new re(o,u,n,e)},ld=_t.prototype.constructor,hd=function(){return new ld(this._groups,this._parents)},pd=function(t,n,e){var r="transform"==(t+="")?_p:Kp;return null==n?this.styleTween(t,Gn(t,r)).on("end.style."+t,Qn(t)):this.styleTween(t,"function"==typeof n?Kn(t,r,Rn(this,"style."+t,n)):Jn(t,r,n+""),e)},dd=function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,te(t,n,null==e?"":e))},vd=function(t){return this.tween("text","function"==typeof t?ee(Rn(this,"text",t)):ne(null==t?"":t+""))},gd=function(){for(var t=this._name,n=this._id,e=oe(),r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],c=a.length,s=0;s<c;++s)if(u=a[s]){var f=En(u,n);Zp(u,t,e,s,a,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new re(r,this._parents,t,e)},yd=0,_d=_t.prototype;re.prototype=ie.prototype={constructor:re,select:sd,selectAll:fd,filter:od,merge:ud,selection:hd,transition:gd,call:_d.call,nodes:_d.nodes,node:_d.node,size:_d.size,empty:_d.empty,each:_d.each,on:ad,attr:td,attrTween:nd,style:pd,styleTween:dd,text:vd,remove:cd,tween:Jp,delay:ed,duration:rd,ease:id};var md=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),xd=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),bd=function t(n){function e(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,e.exponent=t,e}(3),wd=Math.PI,Md=wd/2,Td=4/11,Nd=6/11,kd=8/11,Sd=.75,Ad=9/11,Ed=10/11,Cd=.9375,zd=21/22,Pd=63/64,Rd=1/Td/Td,Ld=function t(n){function e(t){return t*t*((n+1)*t-n)}return n=+n,e.overshoot=t,e}(1.70158),Dd=function t(n){function e(t){return--t*t*((n+1)*t+n)+1}return n=+n,e.overshoot=t,e}(1.70158),qd=function t(n){function e(t){return((t*=2)<1?t*t*((n+1)*t-n):(t-=2)*t*((n+1)*t+n)+2)/2}return n=+n,e.overshoot=t,e}(1.70158),Ud=2*Math.PI,Od=function t(n,e){function r(t){return n*Math.pow(2,10*--t)*Math.sin((i-t)/e)}var i=Math.asin(1/(n=Math.max(1,n)))*(e/=Ud);return r.amplitude=function(n){return t(n,e*Ud)},r.period=function(e){return t(n,e)},r}(1,.3),Fd=function t(n,e){function r(t){return 1-n*Math.pow(2,-10*(t=+t))*Math.sin((t+i)/e)}var i=Math.asin(1/(n=Math.max(1,n)))*(e/=Ud);return r.amplitude=function(n){return t(n,e*Ud)},r.period=function(e){return t(n,e)},r}(1,.3),Yd=function t(n,e){function r(t){return((t=2*t-1)<0?n*Math.pow(2,10*t)*Math.sin((i-t)/e):2-n*Math.pow(2,-10*t)*Math.sin((i+t)/e))/2}var i=Math.asin(1/(n=Math.max(1,n)))*(e/=Ud);return r.amplitude=function(n){return t(n,e*Ud)},r.period=function(e){return t(n,e)},r}(1,.3),Id={time:null,delay:0,duration:250,ease:he},Hd=function(t){var n,e;t instanceof re?(n=t._id,t=t._name):(n=oe(),(e=Id).time=_n(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],c=a.length,s=0;s<c;++s)(u=a[s])&&Zp(u,t,n,s,a,e||Ne(u,n));return new re(r,this._parents,t,n)};_t.prototype.interrupt=Qp,_t.prototype.transition=Hd;var Bd=[null],jd=function(t,n){var e,r,i=t.__transition;if(i){n=null==n?null:n+"";for(r in i)if((e=i[r]).state>Bp&&e.name===n)return new re([[t]],Bd,n,+r)}return null},Xd=function(t){return function(){return t}},Wd=function(t,n,e){this.target=t,this.type=n,this.selection=e},Vd=function(){t.event.preventDefault(),t.event.stopImmediatePropagation()},$d={name:"drag"},Zd={name:"space"},Gd={name:"handle"},Qd={name:"center"},Jd={name:"x",handles:["e","w"].map(Se),input:function(t,n){return t&&[[t[0],n[0][1]],[t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Kd={name:"y",handles:["n","s"].map(Se),input:function(t,n){return t&&[[n[0][0],t[0]],[n[1][0],t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},tv={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(Se),input:function(t){return t},output:function(t){return t}},nv={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},ev={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},rv={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},iv={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},ov={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1},uv=function(){return De(tv)},av=Math.cos,cv=Math.sin,sv=Math.PI,fv=sv/2,lv=2*sv,hv=Math.max,pv=function(){function t(t){var o,u,a,c,s,f,l=t.length,h=[],p=Yf(l),d=[],v=[],g=v.groups=new Array(l),y=new Array(l*l);for(o=0,s=-1;++s<l;){for(u=0,f=-1;++f<l;)u+=t[s][f];h.push(u),d.push(Yf(l)),o+=u}for(e&&p.sort(function(t,n){return e(h[t],h[n])}),r&&d.forEach(function(n,e){n.sort(function(n,i){return r(t[e][n],t[e][i])})}),o=hv(0,lv-n*l)/o,c=o?n:lv/l,u=0,s=-1;++s<l;){for(a=u,f=-1;++f<l;){var _=p[s],m=d[_][f],x=t[_][m],b=u,w=u+=x*o;y[m*l+_]={index:_,subindex:m,startAngle:b,endAngle:w,value:x}}g[_]={index:_,startAngle:a,endAngle:u,value:h[_]},u+=c}for(s=-1;++s<l;)for(f=s-1;++f<l;){var M=y[f*l+s],T=y[s*l+f];(M.value||T.value)&&v.push(M.value<T.value?{source:T,target:M}:{source:M,target:T})}return i?v.sort(i):v}var n=0,e=null,r=null,i=null;return t.padAngle=function(e){return arguments.length?(n=hv(0,e),t):n},t.sortGroups=function(n){return arguments.length?(e=n,t):e},t.sortSubgroups=function(n){return arguments.length?(r=n,t):r},t.sortChords=function(n){return arguments.length?(null==n?i=null:(i=qe(n))._=n,t):i&&i._},t},dv=Array.prototype.slice,vv=function(t){return function(){return t}},gv=Math.PI,yv=2*gv,_v=yv-1e-6;Ue.prototype=Oe.prototype={constructor:Ue,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var o=this._x1,u=this._y1,a=e-t,c=r-n,s=o-t,f=u-n,l=s*s+f*f;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(l>1e-6)if(Math.abs(f*a-c*s)>1e-6&&i){var h=e-o,p=r-u,d=a*a+c*c,v=h*h+p*p,g=Math.sqrt(d),y=Math.sqrt(l),_=i*Math.tan((gv-Math.acos((d+l-v)/(2*g*y)))/2),m=_/y,x=_/g;Math.abs(m-1)>1e-6&&(this._+="L"+(t+m*s)+","+(n+m*f)),this._+="A"+i+","+i+",0,0,"+ +(f*h>s*p)+","+(this._x1=t+x*a)+","+(this._y1=n+x*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,e,r,i,o){t=+t,n=+n,e=+e;var u=e*Math.cos(r),a=e*Math.sin(r),c=t+u,s=n+a,f=1^o,l=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+s:(Math.abs(this._x1-c)>1e-6||Math.abs(this._y1-s)>1e-6)&&(this._+="L"+c+","+s),e&&(l<0&&(l=l%yv+yv),l>_v?this._+="A"+e+","+e+",0,1,"+f+","+(t-u)+","+(n-a)+"A"+e+","+e+",0,1,"+f+","+(this._x1=c)+","+(this._y1=s):l>1e-6&&(this._+="A"+e+","+e+",0,"+ +(l>=gv)+","+f+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};var mv=function(){function t(){var t,a=dv.call(arguments),c=n.apply(this,a),s=e.apply(this,a),f=+r.apply(this,(a[0]=c,a)),l=i.apply(this,a)-fv,h=o.apply(this,a)-fv,p=f*av(l),d=f*cv(l),v=+r.apply(this,(a[0]=s,a)),g=i.apply(this,a)-fv,y=o.apply(this,a)-fv;if(u||(u=t=Oe()),u.moveTo(p,d),u.arc(0,0,f,l,h),l===g&&h===y||(u.quadraticCurveTo(0,0,v*av(g),v*cv(g)),u.arc(0,0,v,g,y)),u.quadraticCurveTo(0,0,p,d),u.closePath(),t)return u=null,t+""||null}var n=Fe,e=Ye,r=Ie,i=He,o=Be,u=null;return t.radius=function(n){return arguments.length?(r="function"==typeof n?n:vv(+n),t):r},t.startAngle=function(n){return arguments.length?(i="function"==typeof n?n:vv(+n),t):i},t.endAngle=function(n){return arguments.length?(o="function"==typeof n?n:vv(+n),t):o},t.source=function(e){return arguments.length?(n=e,t):n},t.target=function(n){return arguments.length?(e=n,t):e},t.context=function(n){return arguments.length?(u=null==n?null:n,t):u},t};je.prototype=Xe.prototype={constructor:je,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 xv=function(){function t(n,i,u,a){if(i>=o.length)return null!=e&&n.sort(e),null!=r?r(n):n;for(var c,s,f,l=-1,h=n.length,p=o[i++],d=Xe(),v=u();++l<h;)(f=d.get(c=p(s=n[l])+""))?f.push(s):d.set(c,[s]);return d.each(function(n,e){a(v,e,t(n,i,u,a))}),v}function n(t,e){if(++e>o.length)return t;var i,a=u[e-1];return null!=r&&e>=o.length?i=t.entries():(i=[],t.each(function(t,r){i.push({key:r,values:n(t,e)})})),null!=a?i.sort(function(t,n){return a(t.key,n.key)}):i}var e,r,i,o=[],u=[];return i={object:function(n){return t(n,0,We,Ve)},map:function(n){return t(n,0,$e,Ze)},entries:function(e){return n(t(e,0,$e,Ze),0)},key:function(t){return o.push(t),i},sortKeys:function(t){return u[o.length-1]=t,i},sortValues:function(t){return e=t,i},rollup:function(t){return r=t,i}}},bv=Xe.prototype;Ge.prototype=Qe.prototype={constructor:Ge,has:bv.has,add:function(t){return t+="",this["$"+t]=t,this},remove:bv.remove,clear:bv.clear,values:bv.keys,size:bv.size,empty:bv.empty,each:bv.each};var wv=function(t){var n=[];for(var e in t)n.push(e);return n},Mv=function(t){var n=[];for(var e in t)n.push(t[e]);return n},Tv=function(t){var n=[];for(var e in t)n.push({key:e,value:t[e]});return n},Nv={},kv={},Sv=34,Av=10,Ev=13,Cv=function(t){function n(t,n){var r,i,o=e(t,function(t,e){if(r)return r(t,e-1);i=t,r=n?Ke(t,n):Je(t)});return o.columns=i||[],o}function e(t,n){function e(){if(s)return kv;if(f)return f=!1,Nv;var n,e,r=u;if(t.charCodeAt(r)===Sv){for(;u++<o&&t.charCodeAt(u)!==Sv||t.charCodeAt(++u)===Sv;);return(n=u)>=o?s=!0:(e=t.charCodeAt(u++))===Av?f=!0:e===Ev&&(f=!0,t.charCodeAt(u)===Av&&++u),t.slice(r+1,n-1).replace(/""/g,'"')}for(;u<o;){if((e=t.charCodeAt(n=u++))===Av)f=!0;else if(e===Ev)f=!0,t.charCodeAt(u)===Av&&++u;else if(e!==c)continue;return t.slice(r,n)}return s=!0,t.slice(r,o)}var r,i=[],o=t.length,u=0,a=0,s=o<=0,f=!1;for(t.charCodeAt(o-1)===Av&&--o,t.charCodeAt(o-1)===Ev&&--o;(r=e())!==kv;){for(var l=[];r!==Nv&&r!==kv;)l.push(r),r=e();n&&null==(l=n(l,a++))||i.push(l)}return i}function r(n,e){return null==e&&(e=tr(n)),
[e.map(u).join(t)].concat(n.map(function(n){return e.map(function(t){return u(n[t])}).join(t)})).join("\n")}function i(t){return t.map(o).join("\n")}function o(n){return n.map(u).join(t)}function u(t){return null==t?"":a.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}var a=new RegExp('["'+t+"\n\r]"),c=t.charCodeAt(0);return{parse:n,parseRows:e,format:r,formatRows:i}},zv=Cv(","),Pv=zv.parse,Rv=zv.parseRows,Lv=zv.format,Dv=zv.formatRows,qv=Cv("\t"),Uv=qv.parse,Ov=qv.parseRows,Fv=qv.format,Yv=qv.formatRows,Iv=function(t,n){function e(){var e,i,o=r.length,u=0,a=0;for(e=0;e<o;++e)i=r[e],u+=i.x,a+=i.y;for(u=u/o-t,a=a/o-n,e=0;e<o;++e)i=r[e],i.x-=u,i.y-=a}var r;return null==t&&(t=0),null==n&&(n=0),e.initialize=function(t){r=t},e.x=function(n){return arguments.length?(t=+n,e):t},e.y=function(t){return arguments.length?(n=+t,e):n},e},Hv=function(t){return function(){return t}},Bv=function(){return 1e-6*(Math.random()-.5)},jv=function(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return nr(this.cover(n,e),n,e,t)},Xv=function(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var e=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(e))i=(e=Math.floor(t))+1,o=(r=Math.floor(n))+1;else{if(!(e>t||t>i||r>n||n>o))return this;var u,a,c=i-e,s=this._root;switch(a=(n<(r+o)/2)<<1|t<(e+i)/2){case 0:do{u=new Array(4),u[a]=s,s=u}while(c*=2,i=e+c,o=r+c,t>i||n>o);break;case 1:do{u=new Array(4),u[a]=s,s=u}while(c*=2,e=i-c,o=r+c,e>t||n>o);break;case 2:do{u=new Array(4),u[a]=s,s=u}while(c*=2,i=e+c,r=o-c,t>i||r>n);break;case 3:do{u=new Array(4),u[a]=s,s=u}while(c*=2,e=i-c,r=o-c,e>t||r>n)}this._root&&this._root.length&&(this._root=s)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this},Wv=function(){var t=[];return this.visit(function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)}),t},Vv=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},$v=function(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i},Zv=function(t,n,e){var r,i,o,u,a,c,s,f=this._x0,l=this._y0,h=this._x1,p=this._y1,d=[],v=this._root;for(v&&d.push(new $v(v,f,l,h,p)),null==e?e=1/0:(f=t-e,l=n-e,h=t+e,p=n+e,e*=e);c=d.pop();)if(!(!(v=c.node)||(i=c.x0)>h||(o=c.y0)>p||(u=c.x1)<f||(a=c.y1)<l))if(v.length){var g=(i+u)/2,y=(o+a)/2;d.push(new $v(v[3],g,y,u,a),new $v(v[2],i,y,g,a),new $v(v[1],g,o,u,y),new $v(v[0],i,o,g,y)),(s=(n>=y)<<1|t>=g)&&(c=d[d.length-1],d[d.length-1]=d[d.length-1-s],d[d.length-1-s]=c)}else{var _=t-+this._x.call(null,v.data),m=n-+this._y.call(null,v.data),x=_*_+m*m;if(x<e){var b=Math.sqrt(e=x);f=t-b,l=n-b,h=t+b,p=n+b,r=v.data}}return r},Gv=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(u=+this._y.call(null,t)))return this;var n,e,r,i,o,u,a,c,s,f,l,h,p=this._root,d=this._x0,v=this._y0,g=this._x1,y=this._y1;if(!p)return this;if(p.length)for(;;){if((s=o>=(a=(d+g)/2))?d=a:g=a,(f=u>=(c=(v+y)/2))?v=c:y=c,n=p,!(p=p[l=f<<1|s]))return this;if(!p.length)break;(n[l+1&3]||n[l+2&3]||n[l+3&3])&&(e=n,h=l)}for(;p.data!==t;)if(r=p,!(p=p.next))return this;return(i=p.next)&&delete p.next,r?(i?r.next=i:delete r.next,this):n?(i?n[l]=i:delete n[l],(p=n[0]||n[1]||n[2]||n[3])&&p===(n[3]||n[2]||n[1]||n[0])&&!p.length&&(e?e[h]=p:this._root=p),this):(this._root=i,this)},Qv=function(){return this._root},Jv=function(){var t=0;return this.visit(function(n){if(!n.length)do{++t}while(n=n.next)}),t},Kv=function(t){var n,e,r,i,o,u,a=[],c=this._root;for(c&&a.push(new $v(c,this._x0,this._y0,this._x1,this._y1));n=a.pop();)if(!t(c=n.node,r=n.x0,i=n.y0,o=n.x1,u=n.y1)&&c.length){var s=(r+o)/2,f=(i+u)/2;(e=c[3])&&a.push(new $v(e,s,f,o,u)),(e=c[2])&&a.push(new $v(e,r,f,s,u)),(e=c[1])&&a.push(new $v(e,s,i,o,f)),(e=c[0])&&a.push(new $v(e,r,i,s,f))}return this},tg=function(t){var n,e=[],r=[];for(this._root&&e.push(new $v(this._root,this._x0,this._y0,this._x1,this._y1));n=e.pop();){var i=n.node;if(i.length){var o,u=n.x0,a=n.y0,c=n.x1,s=n.y1,f=(u+c)/2,l=(a+s)/2;(o=i[0])&&e.push(new $v(o,u,a,f,l)),(o=i[1])&&e.push(new $v(o,f,a,c,l)),(o=i[2])&&e.push(new $v(o,u,l,f,s)),(o=i[3])&&e.push(new $v(o,f,l,c,s))}r.push(n)}for(;n=r.pop();)t(n.node,n.x0,n.y0,n.x1,n.y1);return this},ng=function(t){return arguments.length?(this._x=t,this):this._x},eg=function(t){return arguments.length?(this._y=t,this):this._y},rg=ur.prototype=ar.prototype;rg.copy=function(){var t,n,e=new ar(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=cr(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=cr(n));return e},rg.add=jv,rg.addAll=er,rg.cover=Xv,rg.data=Wv,rg.extent=Vv,rg.find=Zv,rg.remove=Gv,rg.removeAll=rr,rg.root=Qv,rg.size=Jv,rg.visit=Kv,rg.visitAfter=tg,rg.x=ng,rg.y=eg;var ig,og=function(t){function n(){function t(t,n,e,r,i){var o=t.data,a=t.r,p=l+a;{if(!o)return n>s+p||r<s-p||e>f+p||i<f-p;if(o.index>c.index){var d=s-o.x-o.vx,v=f-o.y-o.vy,g=d*d+v*v;g<p*p&&(0===d&&(d=Bv(),g+=d*d),0===v&&(v=Bv(),g+=v*v),g=(p-(g=Math.sqrt(g)))/g*u,c.vx+=(d*=g)*(p=(a*=a)/(h+a)),c.vy+=(v*=g)*p,o.vx-=d*(p=1-p),o.vy-=v*p)}}}for(var n,r,c,s,f,l,h,p=i.length,d=0;d<a;++d)for(r=ur(i,sr,fr).visitAfter(e),n=0;n<p;++n)c=i[n],l=o[c.index],h=l*l,s=c.x+c.vx,f=c.y+c.vy,r.visit(t)}function e(t){if(t.data)return t.r=o[t.data.index];for(var n=t.r=0;n<4;++n)t[n]&&t[n].r>t.r&&(t.r=t[n].r)}function r(){if(i){var n,e,r=i.length;for(o=new Array(r),n=0;n<r;++n)e=i[n],o[e.index]=+t(e,n,i)}}var i,o,u=1,a=1;return"function"!=typeof t&&(t=Hv(null==t?1:+t)),n.initialize=function(t){i=t,r()},n.iterations=function(t){return arguments.length?(a=+t,n):a},n.strength=function(t){return arguments.length?(u=+t,n):u},n.radius=function(e){return arguments.length?(t="function"==typeof e?e:Hv(+e),r(),n):t},n},ug=function(t){function n(t){return 1/Math.min(s[t.source.index],s[t.target.index])}function e(n){for(var e=0,r=t.length;e<d;++e)for(var i,o,c,s,l,h,p,v=0;v<r;++v)i=t[v],o=i.source,c=i.target,s=c.x+c.vx-o.x-o.vx||Bv(),l=c.y+c.vy-o.y-o.vy||Bv(),h=Math.sqrt(s*s+l*l),h=(h-a[v])/h*n*u[v],s*=h,l*=h,c.vx-=s*(p=f[v]),c.vy-=l*p,o.vx+=s*(p=1-p),o.vy+=l*p}function r(){if(c){var n,e,r=c.length,h=t.length,p=Xe(c,l);for(n=0,s=new Array(r);n<h;++n)e=t[n],e.index=n,"object"!=typeof e.source&&(e.source=hr(p,e.source)),"object"!=typeof e.target&&(e.target=hr(p,e.target)),s[e.source.index]=(s[e.source.index]||0)+1,s[e.target.index]=(s[e.target.index]||0)+1;for(n=0,f=new Array(h);n<h;++n)e=t[n],f[n]=s[e.source.index]/(s[e.source.index]+s[e.target.index]);u=new Array(h),i(),a=new Array(h),o()}}function i(){if(c)for(var n=0,e=t.length;n<e;++n)u[n]=+h(t[n],n,t)}function o(){if(c)for(var n=0,e=t.length;n<e;++n)a[n]=+p(t[n],n,t)}var u,a,c,s,f,l=lr,h=n,p=Hv(30),d=1;return null==t&&(t=[]),e.initialize=function(t){c=t,r()},e.links=function(n){return arguments.length?(t=n,r(),e):t},e.id=function(t){return arguments.length?(l=t,e):l},e.iterations=function(t){return arguments.length?(d=+t,e):d},e.strength=function(t){return arguments.length?(h="function"==typeof t?t:Hv(+t),i(),e):h},e.distance=function(t){return arguments.length?(p="function"==typeof t?t:Hv(+t),o(),e):p},e},ag=10,cg=Math.PI*(3-Math.sqrt(5)),sg=function(t){function n(){e(),p.call("tick",o),u<a&&(h.stop(),p.call("end",o))}function e(){var n,e,r=t.length;for(u+=(s-u)*c,l.each(function(t){t(u)}),n=0;n<r;++n)e=t[n],null==e.fx?e.x+=e.vx*=f:(e.x=e.fx,e.vx=0),null==e.fy?e.y+=e.vy*=f:(e.y=e.fy,e.vy=0)}function r(){for(var n,e=0,r=t.length;e<r;++e){if(n=t[e],n.index=e,isNaN(n.x)||isNaN(n.y)){var i=ag*Math.sqrt(e),o=e*cg;n.x=i*Math.cos(o),n.y=i*Math.sin(o)}(isNaN(n.vx)||isNaN(n.vy))&&(n.vx=n.vy=0)}}function i(n){return n.initialize&&n.initialize(t),n}var o,u=1,a=.001,c=1-Math.pow(a,1/300),s=0,f=.6,l=Xe(),h=bn(n),p=g("tick","end");return null==t&&(t=[]),r(),o={tick:e,restart:function(){return h.restart(n),o},stop:function(){return h.stop(),o},nodes:function(n){return arguments.length?(t=n,r(),l.each(i),o):t},alpha:function(t){return arguments.length?(u=+t,o):u},alphaMin:function(t){return arguments.length?(a=+t,o):a},alphaDecay:function(t){return arguments.length?(c=+t,o):+c},alphaTarget:function(t){return arguments.length?(s=+t,o):s},velocityDecay:function(t){return arguments.length?(f=1-t,o):1-f},force:function(t,n){return arguments.length>1?(null==n?l.remove(t):l.set(t,i(n)),o):l.get(t)},find:function(n,e,r){var i,o,u,a,c,s=0,f=t.length;for(null==r?r=1/0:r*=r,s=0;s<f;++s)a=t[s],i=n-a.x,o=e-a.y,(u=i*i+o*o)<r&&(c=a,r=u);return c},on:function(t,n){return arguments.length>1?(p.on(t,n),o):p.on(t)}}},fg=function(){function t(t){var n,a=i.length,c=ur(i,pr,dr).visitAfter(e);for(u=t,n=0;n<a;++n)o=i[n],c.visit(r)}function n(){if(i){var t,n,e=i.length;for(a=new Array(e),t=0;t<e;++t)n=i[t],a[n.index]=+c(n,t,i)}}function e(t){var n,e,r,i,o,u=0,c=0;if(t.length){for(r=i=o=0;o<4;++o)(n=t[o])&&(e=Math.abs(n.value))&&(u+=n.value,c+=e,r+=e*n.x,i+=e*n.y);t.x=r/c,t.y=i/c}else{n=t,n.x=n.data.x,n.y=n.data.y;do{u+=a[n.data.index]}while(n=n.next)}t.value=u}function r(t,n,e,r){if(!t.value)return!0;var i=t.x-o.x,c=t.y-o.y,h=r-n,p=i*i+c*c;if(h*h/l<p)return p<f&&(0===i&&(i=Bv(),p+=i*i),0===c&&(c=Bv(),p+=c*c),p<s&&(p=Math.sqrt(s*p)),o.vx+=i*t.value*u/p,o.vy+=c*t.value*u/p),!0;if(!(t.length||p>=f)){(t.data!==o||t.next)&&(0===i&&(i=Bv(),p+=i*i),0===c&&(c=Bv(),p+=c*c),p<s&&(p=Math.sqrt(s*p)));do{t.data!==o&&(h=a[t.data.index]*u/p,o.vx+=i*h,o.vy+=c*h)}while(t=t.next)}}var i,o,u,a,c=Hv(-30),s=1,f=1/0,l=.81;return t.initialize=function(t){i=t,n()},t.strength=function(e){return arguments.length?(c="function"==typeof e?e:Hv(+e),n(),t):c},t.distanceMin=function(n){return arguments.length?(s=n*n,t):Math.sqrt(s)},t.distanceMax=function(n){return arguments.length?(f=n*n,t):Math.sqrt(f)},t.theta=function(n){return arguments.length?(l=n*n,t):Math.sqrt(l)},t},lg=function(t,n,e){function r(t){for(var r=0,i=o.length;r<i;++r){var c=o[r],s=c.x-n||1e-6,f=c.y-e||1e-6,l=Math.sqrt(s*s+f*f),h=(a[r]-l)*u[r]*t/l;c.vx+=s*h,c.vy+=f*h}}function i(){if(o){var n,e=o.length;for(u=new Array(e),a=new Array(e),n=0;n<e;++n)a[n]=+t(o[n],n,o),u[n]=isNaN(a[n])?0:+c(o[n],n,o)}}var o,u,a,c=Hv(.1);return"function"!=typeof t&&(t=Hv(+t)),null==n&&(n=0),null==e&&(e=0),r.initialize=function(t){o=t,i()},r.strength=function(t){return arguments.length?(c="function"==typeof t?t:Hv(+t),i(),r):c},r.radius=function(n){return arguments.length?(t="function"==typeof n?n:Hv(+n),i(),r):t},r.x=function(t){return arguments.length?(n=+t,r):n},r.y=function(t){return arguments.length?(e=+t,r):e},r},hg=function(t){function n(t){for(var n,e=0,u=r.length;e<u;++e)n=r[e],n.vx+=(o[e]-n.x)*i[e]*t}function e(){if(r){var n,e=r.length;for(i=new Array(e),o=new Array(e),n=0;n<e;++n)i[n]=isNaN(o[n]=+t(r[n],n,r))?0:+u(r[n],n,r)}}var r,i,o,u=Hv(.1);return"function"!=typeof t&&(t=Hv(null==t?0:+t)),n.initialize=function(t){r=t,e()},n.strength=function(t){return arguments.length?(u="function"==typeof t?t:Hv(+t),e(),n):u},n.x=function(r){return arguments.length?(t="function"==typeof r?r:Hv(+r),e(),n):t},n},pg=function(t){function n(t){for(var n,e=0,u=r.length;e<u;++e)n=r[e],n.vy+=(o[e]-n.y)*i[e]*t}function e(){if(r){var n,e=r.length;for(i=new Array(e),o=new Array(e),n=0;n<e;++n)i[n]=isNaN(o[n]=+t(r[n],n,r))?0:+u(r[n],n,r)}}var r,i,o,u=Hv(.1);return"function"!=typeof t&&(t=Hv(null==t?0:+t)),n.initialize=function(t){r=t,e()},n.strength=function(t){return arguments.length?(u="function"==typeof t?t:Hv(+t),e(),n):u},n.y=function(r){return arguments.length?(t="function"==typeof r?r:Hv(+r),e(),n):t},n},dg=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)]},vg=function(t){return t=dg(Math.abs(t)),t?t[1]:NaN},gg=function(t,n){return function(e,r){for(var i=e.length,o=[],u=0,a=t[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),o.push(e.substring(i-=a,i+a)),!((c+=a+1)>r));)a=t[u=(u+1)%t.length];return o.reverse().join(n)}},yg=function(t){return function(n){return n.replace(/[0-9]/g,function(n){return t[+n]})}},_g=function(t,n){t=t.toPrecision(n);t:for(var e,r=t.length,i=1,o=-1;i<r;++i)switch(t[i]){case".":o=e=i;break;case"0":0===o&&(o=i),e=i;break;case"e":break t;default:o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t},mg=function(t,n){var e=dg(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(ig=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,u=r.length;return o===u?r:o>u?r+new Array(o-u+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+dg(t,Math.max(0,n+o-1))[0]},xg=function(t,n){var e=dg(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")},bg={"":_g,"%":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 xg(100*t,n)},r:xg,s:mg,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},wg=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;vr.prototype=gr.prototype,gr.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.type};var Mg,Tg=function(t){return t},Ng=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],kg=function(t){function n(t){function n(t){var n,i,a,f=g,x=y;if("c"===v)x=_(t)+x,t="";else{t=+t;var b=t<0;if(t=_(Math.abs(t),d),b&&0==+t&&(b=!1),f=(b?"("===s?s:"-":"-"===s||"("===s?"":s)+f,x=x+("s"===v?Ng[8+ig/3]:"")+(b&&"("===s?")":""),m)for(n=-1,i=t.length;++n<i;)if(48>(a=t.charCodeAt(n))||a>57){x=(46===a?o+t.slice(n+1):t.slice(n))+x,t=t.slice(0,n);break}}p&&!l&&(t=r(t,1/0));var w=f.length+t.length+x.length,M=w<h?new Array(h-w+1).join(e):"";switch(p&&l&&(t=r(M+t,M.length?h-x.length:1/0),M=""),c){case"<":t=f+t+x+M;break;case"=":t=f+M+t+x;break;case"^":t=M.slice(0,w=M.length>>1)+f+t+x+M.slice(w);break;default:t=M+f+t+x}return u(t)}t=vr(t);var e=t.fill,c=t.align,s=t.sign,f=t.symbol,l=t.zero,h=t.width,p=t.comma,d=t.precision,v=t.type,g="$"===f?i[0]:"#"===f&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",y="$"===f?i[1]:/[%p]/.test(v)?a:"",_=bg[v],m=!v||/[defgprs%]/.test(v);return d=null==d?v?6:12:/[gprs]/.test(v)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),n.toString=function(){return t+""},n}function e(t,e){var r=n((t=vr(t),t.type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(vg(e)/3))),o=Math.pow(10,-i),u=Ng[8+i/3];return function(t){return r(o*t)+u}}var r=t.grouping&&t.thousands?gg(t.grouping,t.thousands):Tg,i=t.currency,o=t.decimal,u=t.numerals?yg(t.numerals):Tg,a=t.percent||"%";return{format:n,formatPrefix:e}};yr({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var Sg=function(t){return Math.max(0,-vg(Math.abs(t)))},Ag=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(vg(n)/3)))-vg(Math.abs(t)))},Eg=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,vg(n)-vg(t))+1},Cg=function(){return new _r};_r.prototype={constructor:_r,reset:function(){this.s=this.t=0},add:function(t){mr(cy,t,this.t),mr(this,cy.s,this.s),this.s?this.t+=cy.t:this.s=cy.t},valueOf:function(){return this.s}};var zg,Pg,Rg,Lg,Dg,qg,Ug,Og,Fg,Yg,Ig,Hg,Bg,jg,Xg,Wg,Vg,$g,Zg,Gg,Qg,Jg,Kg,ty,ny,ey,ry,iy,oy,uy,ay,cy=new _r,sy=1e-6,fy=Math.PI,ly=fy/2,hy=fy/4,py=2*fy,dy=180/fy,vy=fy/180,gy=Math.abs,yy=Math.atan,_y=Math.atan2,my=Math.cos,xy=Math.ceil,by=Math.exp,wy=Math.log,My=Math.pow,Ty=Math.sin,Ny=Math.sign||function(t){return t>0?1:t<0?-1:0},ky=Math.sqrt,Sy=Math.tan,Ay={Feature:function(t,n){Tr(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)Tr(e[r].geometry,n)}},Ey={Sphere:function(t,n){n.sphere()},Point:function(t,n){t=t.coordinates,n.point(t[0],t[1],t[2])},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)t=e[r],n.point(t[0],t[1],t[2])},LineString:function(t,n){Nr(t.coordinates,n,0)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)Nr(e[r],n,0)},Polygon:function(t,n){kr(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)kr(e[r],n)},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)Tr(e[r],n)}},Cy=function(t,n){t&&Ay.hasOwnProperty(t.type)?Ay[t.type](t,n):Tr(t,n)},zy=Cg(),Py=Cg(),Ry={point:Mr,lineStart:Mr,lineEnd:Mr,polygonStart:function(){zy.reset(),Ry.lineStart=Sr,Ry.lineEnd=Ar},polygonEnd:function(){var t=+zy;Py.add(t<0?py+t:t),this.lineStart=this.lineEnd=this.point=Mr},sphere:function(){Py.add(py)}},Ly=function(t){return Py.reset(),Cy(t,Ry),2*Py},Dy=Cg(),qy={point:Or,lineStart:Yr,lineEnd:Ir,polygonStart:function(){qy.point=Hr,qy.lineStart=Br,qy.lineEnd=jr,Dy.reset(),Ry.polygonStart()},polygonEnd:function(){Ry.polygonEnd(),qy.point=Or,qy.lineStart=Yr,qy.lineEnd=Ir,zy<0?(qg=-(Og=180),Ug=-(Fg=90)):Dy>sy?Fg=90:Dy<-sy&&(Ug=-90),Xg[0]=qg,Xg[1]=Og}},Uy=function(t){var n,e,r,i,o,u,a;if(Fg=Og=-(qg=Ug=1/0),jg=[],Cy(t,qy),e=jg.length){for(jg.sort(Wr),n=1,r=jg[0],o=[r];n<e;++n)i=jg[n],Vr(r,i[0])||Vr(r,i[1])?(Xr(r[0],i[1])>Xr(r[0],r[1])&&(r[1]=i[1]),Xr(i[0],r[1])>Xr(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(u=-1/0,e=o.length-1,n=0,r=o[e];n<=e;r=i,++n)i=o[n],(a=Xr(r[1],i[0]))>u&&(u=a,qg=i[0],Og=r[1])}return jg=Xg=null,qg===1/0||Ug===1/0?[[NaN,NaN],[NaN,NaN]]:[[qg,Ug],[Og,Fg]]},Oy={sphere:Mr,point:$r,lineStart:Gr,lineEnd:Kr,polygonStart:function(){Oy.lineStart=ti,Oy.lineEnd=ni},polygonEnd:function(){Oy.lineStart=Gr,Oy.lineEnd=Kr}},Fy=function(t){Wg=Vg=$g=Zg=Gg=Qg=Jg=Kg=ty=ny=ey=0,Cy(t,Oy);var n=ty,e=ny,r=ey,i=n*n+e*e+r*r;return i<1e-12&&(n=Qg,e=Jg,r=Kg,Vg<sy&&(n=$g,e=Zg,r=Gg),(i=n*n+e*e+r*r)<1e-12)?[NaN,NaN]:[_y(e,n)*dy,br(r/ky(i))*dy]},Yy=function(t){return function(){return t}},Iy=function(t,n){function e(e,r){return e=t(e,r),n(e[0],e[1])}return t.invert&&n.invert&&(e.invert=function(e,r){return(e=n.invert(e,r))&&t.invert(e[0],e[1])}),e};ii.invert=ii;var Hy,By,jy,Xy,Wy,Vy,$y,Zy,Gy,Qy,Jy,Ky=function(t){function n(n){return n=t(n[0]*vy,n[1]*vy),n[0]*=dy,n[1]*=dy,n}return t=oi(t[0]*vy,t[1]*vy,t.length>2?t[2]*vy:0),n.invert=function(n){return n=t.invert(n[0]*vy,n[1]*vy),n[0]*=dy,n[1]*=dy,n},n},t_=function(){function t(t,n){e.push(t=r(t,n)),t[0]*=dy,t[1]*=dy}function n(){var t=i.apply(this,arguments),n=o.apply(this,arguments)*vy,c=u.apply(this,arguments)*vy;return e=[],r=oi(-t[0]*vy,-t[1]*vy,0).invert,si(a,n,c,1),t={type:"Polygon",coordinates:[e]},e=r=null,t}var e,r,i=Yy([0,0]),o=Yy(90),u=Yy(6),a={point:t};return n.center=function(t){return arguments.length?(i="function"==typeof t?t:Yy([+t[0],+t[1]]),n):i},n.radius=function(t){return arguments.length?(o="function"==typeof t?t:Yy(+t),n):o},n.precision=function(t){return arguments.length?(u="function"==typeof t?t:Yy(+t),n):u},n},n_=function(){var t,n=[];return{point:function(n,e){t.push([n,e])},lineStart:function(){n.push(t=[])},lineEnd:Mr,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}},e_=function(t,n){return gy(t[0]-n[0])<sy&&gy(t[1]-n[1])<sy},r_=function(t,n,e,r,i){var o,u,a=[],c=[];if(t.forEach(function(t){if(!((n=t.length-1)<=0)){var n,e,r=t[0],u=t[n];if(e_(r,u)){for(i.lineStart(),o=0;o<n;++o)i.point((r=t[o])[0],r[1]);return void i.lineEnd()}a.push(e=new li(r,t,null,!0)),c.push(e.o=new li(r,null,e,!1)),a.push(e=new li(u,t,null,!1)),c.push(e.o=new li(u,null,e,!0))}}),a.length){for(c.sort(n),hi(a),hi(c),o=0,u=c.length;o<u;++o)c[o].e=e=!e;for(var s,f,l=a[0];;){for(var h=l,p=!0;h.v;)if((h=h.n)===l)return;s=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(p)for(o=0,u=s.length;o<u;++o)i.point((f=s[o])[0],f[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(p)for(s=h.p.z,o=s.length-1;o>=0;--o)i.point((f=s[o])[0],f[1]);else r(h.x,h.p.x,-1,i);h=h.p}h=h.o,s=h.z,p=!p}while(!h.v);i.lineEnd()}}},i_=Cg(),o_=function(t,n){var e=n[0],r=n[1],i=[Ty(e),-my(e),0],o=0,u=0;i_.reset();for(var a=0,c=t.length;a<c;++a)if(f=(s=t[a]).length)for(var s,f,l=s[f-1],h=l[0],p=l[1]/2+hy,d=Ty(p),v=my(p),g=0;g<f;++g,h=_,d=x,v=b,l=y){var y=s[g],_=y[0],m=y[1]/2+hy,x=Ty(m),b=my(m),w=_-h,M=w>=0?1:-1,T=M*w,N=T>fy,k=d*x;if(i_.add(_y(k*M*Ty(T),v*b+k*my(T))),o+=N?w+M*py:w,N^h>=e^_>=e){var S=Lr(Pr(l),Pr(y));Ur(S);var A=Lr(i,S);Ur(A);var E=(N^w>=0?-1:1)*br(A[2]);(r>E||r===E&&(S[0]||S[1]))&&(u+=N^w>=0?1:-1)}}return(o<-sy||o<sy&&i_<-sy)^1&u},u_=function(t,n,e,r){return function(i){function o(n,e){t(n,e)&&i.point(n,e)}function u(t,n){v.point(t,n)}function a(){m.point=u,v.lineStart()}function c(){m.point=o,v.lineEnd()}function s(t,n){d.push([t,n]),y.point(t,n)}function f(){y.lineStart(),d=[]}function l(){s(d[0][0],d[0][1]),y.lineEnd();var t,n,e,r,o=y.clean(),u=g.result(),a=u.length;if(d.pop(),h.push(d),d=null,a)if(1&o){if(e=u[0],(n=e.length-1)>0){for(_||(i.polygonStart(),_=!0),i.lineStart(),t=0;t<n;++t)i.point((r=e[t])[0],r[1]);i.lineEnd()}}else a>1&&2&o&&u.push(u.pop().concat(u.shift())),p.push(u.filter(pi))}var h,p,d,v=n(i),g=n_(),y=n(g),_=!1,m={point:o,lineStart:a,lineEnd:c,polygonStart:function(){m.point=s,m.lineStart=f,m.lineEnd=l,p=[],h=[]},polygonEnd:function(){m.point=o,m.lineStart=a,m.lineEnd=c,p=Kf(p);var t=o_(h,r);p.length?(_||(i.polygonStart(),_=!0),r_(p,di,t,e,i)):t&&(_||(i.polygonStart(),_=!0),i.lineStart(),e(null,null,1,i),i.lineEnd()),_&&(i.polygonEnd(),_=!1),p=h=null},sphere:function(){i.polygonStart(),i.lineStart(),e(null,null,1,i),i.lineEnd(),i.polygonEnd()}};return m}},a_=u_(function(){return!0},vi,yi,[-fy,-ly]),c_=function(t){function n(n,e,r,i){si(i,t,a,r,n,e)}function e(t,n){return my(t)*my(n)>u}function r(t){var n,r,u,a,f;return{lineStart:function(){a=u=!1,f=1},point:function(l,h){var p,d=[l,h],v=e(l,h),g=c?v?0:o(l,h):v?o(l+(l<0?fy:-fy),h):0;if(!n&&(a=u=v)&&t.lineStart(),v!==u&&(!(p=i(n,d))||e_(n,p)||e_(d,p))&&(d[0]+=sy,d[1]+=sy,v=e(d[0],d[1])),v!==u)f=0,v?(t.lineStart(),p=i(d,n),t.point(p[0],p[1])):(p=i(n,d),t.point(p[0],p[1]),t.lineEnd()),n=p;else if(s&&n&&c^v){var y;g&r||!(y=i(d,n,!0))||(f=0,c?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!v||n&&e_(n,d)||t.point(d[0],d[1]),n=d,u=v,r=g},lineEnd:function(){u&&t.lineEnd(),n=null},clean:function(){return f|(a&&u)<<1}}}function i(t,n,e){var r=Pr(t),i=Pr(n),o=[1,0,0],a=Lr(r,i),c=Rr(a,a),s=a[0],f=c-s*s;if(!f)return!e&&t;var l=u*c/f,h=-u*s/f,p=Lr(o,a),d=qr(o,l);Dr(d,qr(a,h));var v=p,g=Rr(d,v),y=Rr(v,v),_=g*g-y*(Rr(d,d)-1);if(!(_<0)){var m=ky(_),x=qr(v,(-g-m)/y);if(Dr(x,d),x=zr(x),!e)return x;var b,w=t[0],M=n[0],T=t[1],N=n[1];M<w&&(b=w,w=M,M=b);var k=M-w,S=gy(k-fy)<sy,A=S||k<sy;if(!S&&N<T&&(b=T,T=N,N=b),A?S?T+N>0^x[1]<(gy(x[0]-w)<sy?T:N):T<=x[1]&&x[1]<=N:k>fy^(w<=x[0]&&x[0]<=M)){var E=qr(v,(-g+m)/y);return Dr(E,d),[x,zr(E)]}}}function o(n,e){var r=c?t:fy-t,i=0;return n<-r?i|=1:n>r&&(i|=2),e<-r?i|=4:e>r&&(i|=8),i}var u=my(t),a=6*vy,c=u>0,s=gy(u)>sy;return u_(e,r,n,c?[0,-t]:[-fy,t-fy])},s_=function(t,n,e,r,i,o){var u,a=t[0],c=t[1],s=n[0],f=n[1],l=0,h=1,p=s-a,d=f-c;if(u=e-a,p||!(u>0)){if(u/=p,p<0){if(u<l)return;u<h&&(h=u)}else if(p>0){if(u>h)return;u>l&&(l=u)}if(u=i-a,p||!(u<0)){if(u/=p,p<0){if(u>h)return;u>l&&(l=u)}else if(p>0){if(u<l)return;u<h&&(h=u)}if(u=r-c,d||!(u>0)){if(u/=d,d<0){if(u<l)return;u<h&&(h=u)}else if(d>0){if(u>h)return;u>l&&(l=u)}if(u=o-c,d||!(u<0)){if(u/=d,d<0){if(u>h)return;u>l&&(l=u)}else if(d>0){if(u<l)return;u<h&&(h=u)}return l>0&&(t[0]=a+l*p,t[1]=c+l*d),h<1&&(n[0]=a+h*p,n[1]=c+h*d),!0}}}}},f_=1e9,l_=-f_,h_=function(){var t,n,e,r=0,i=0,o=960,u=500;return e={stream:function(e){return t&&n===e?t:t=_i(r,i,o,u)(n=e)},extent:function(a){return arguments.length?(r=+a[0][0],i=+a[0][1],o=+a[1][0],u=+a[1][1],t=n=null,e):[[r,i],[o,u]]}}},p_=Cg(),d_={sphere:Mr,point:Mr,lineStart:mi,lineEnd:Mr,polygonStart:Mr,polygonEnd:Mr},v_=function(t){return p_.reset(),Cy(t,d_),+p_},g_=[null,null],y_={type:"LineString",coordinates:g_},__=function(t,n){return g_[0]=t,g_[1]=n,v_(y_)},m_={Feature:function(t,n){return Mi(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)if(Mi(e[r].geometry,n))return!0;return!1}},x_={Sphere:function(){return!0},Point:function(t,n){return Ti(t.coordinates,n)},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Ti(e[r],n))return!0;return!1},LineString:function(t,n){return Ni(t.coordinates,n)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Ni(e[r],n))return!0;return!1},Polygon:function(t,n){return ki(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(ki(e[r],n))return!0;return!1},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)if(Mi(e[r],n))return!0;return!1}},b_=function(t,n){return(t&&m_.hasOwnProperty(t.type)?m_[t.type]:Mi)(t,n)},w_=function(t,n){var e=t[0]*vy,r=t[1]*vy,i=n[0]*vy,o=n[1]*vy,u=my(r),a=Ty(r),c=my(o),s=Ty(o),f=u*my(e),l=u*Ty(e),h=c*my(i),p=c*Ty(i),d=2*br(ky(wr(o-r)+u*c*wr(i-e))),v=Ty(d),g=d?function(t){var n=Ty(t*=d)/v,e=Ty(d-t)/v,r=e*f+n*h,i=e*l+n*p,o=e*a+n*s;return[_y(i,r)*dy,_y(o,ky(r*r+i*i))*dy]}:function(){return[e*dy,r*dy]};return g.distance=d,g},M_=function(t){return t},T_=Cg(),N_=Cg(),k_={point:Mr,lineStart:Mr,lineEnd:Mr,polygonStart:function(){k_.lineStart=Ri,k_.lineEnd=qi},polygonEnd:function(){k_.lineStart=k_.lineEnd=k_.point=Mr,T_.add(gy(N_)),N_.reset()},result:function(){var t=T_/2;return T_.reset(),t}},S_=1/0,A_=S_,E_=-S_,C_=E_,z_={point:Ui,lineStart:Mr,lineEnd:Mr,polygonStart:Mr,polygonEnd:Mr,result:function(){var t=[[S_,A_],[E_,C_]];return E_=C_=-(A_=S_=1/0),t}},P_=0,R_=0,L_=0,D_=0,q_=0,U_=0,O_=0,F_=0,Y_=0,I_={point:Oi,lineStart:Fi,lineEnd:Hi,polygonStart:function(){I_.lineStart=Bi,I_.lineEnd=ji},polygonEnd:function(){I_.point=Oi,I_.lineStart=Fi,I_.lineEnd=Hi},result:function(){var t=Y_?[O_/Y_,F_/Y_]:U_?[D_/U_,q_/U_]:L_?[P_/L_,R_/L_]:[NaN,NaN];return P_=R_=L_=D_=q_=U_=O_=F_=Y_=0,t}};Vi.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,py)}},result:Mr};var H_,B_,j_,X_,W_,V_=Cg(),$_={point:Mr,lineStart:function(){$_.point=$i},lineEnd:function(){H_&&Zi(B_,j_),$_.point=Mr},polygonStart:function(){H_=!0},polygonEnd:function(){H_=null},result:function(){var t=+V_;return V_.reset(),t}};Gi.prototype={_radius:4.5,_circle:Qi(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:null==this._circle&&(this._circle=Qi(this._radius)),this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}};var Z_=function(t,n){function e(t){return t&&("function"==typeof o&&i.pointRadius(+o.apply(this,arguments)),Cy(t,r(i))),i.result()}var r,i,o=4.5;return e.area=function(t){return Cy(t,r(k_)),k_.result()},e.measure=function(t){return Cy(t,r($_)),$_.result()},e.bounds=function(t){return Cy(t,r(z_)),z_.result()},e.centroid=function(t){return Cy(t,r(I_)),I_.result()},e.projection=function(n){return arguments.length?(r=null==n?(t=null,M_):(t=n).stream,e):t},e.context=function(t){return arguments.length?(i=null==t?(n=null,new Gi):new Vi(n=t),"function"!=typeof o&&i.pointRadius(o),e):n},e.pointRadius=function(t){return arguments.length?(o="function"==typeof t?t:(i.pointRadius(+t),+t),e):o},e.projection(t).context(n)},G_=function(t){return{stream:Ji(t)}};Ki.prototype={constructor:Ki,point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Q_=16,J_=my(30*vy),K_=function(t,n){return+n?uo(t,n):oo(t)},tm=Ji({point:function(t,n){this.stream.point(t*vy,n*vy)}}),nm=function(){return fo(ho).scale(155.424).center([0,33.6442])},em=function(){return nm().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])},rm=function(){function t(t){var n=t[0],e=t[1];return a=null,i.point(n,e),a||(o.point(n,e),a)||(u.point(n,e),a)}function n(){return e=r=null,t}var e,r,i,o,u,a,c=em(),s=nm().rotate([154,0]).center([-2,58.5]).parallels([55,65]),f=nm().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(t,n){a=[t,n]}};return t.invert=function(t){var n=c.scale(),e=c.translate(),r=(t[0]-e[0])/n,i=(t[1]-e[1])/n;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?s:i>=.166&&i<.234&&r>=-.214&&r<-.115?f:c).invert(t)},t.stream=function(t){return e&&r===t?e:e=po([c.stream(r=t),s.stream(t),f.stream(t)])},t.precision=function(t){return arguments.length?(c.precision(t),s.precision(t),f.precision(t),n()):c.precision()},t.scale=function(n){return arguments.length?(c.scale(n),s.scale(.35*n),f.scale(n),t.translate(c.translate())):c.scale()},t.translate=function(t){if(!arguments.length)return c.translate();var e=c.scale(),r=+t[0],a=+t[1];return i=c.translate(t).clipExtent([[r-.455*e,a-.238*e],[r+.455*e,a+.238*e]]).stream(l),o=s.translate([r-.307*e,a+.201*e]).clipExtent([[r-.425*e+sy,a+.12*e+sy],[r-.214*e-sy,a+.234*e-sy]]).stream(l),u=f.translate([r-.205*e,a+.212*e]).clipExtent([[r-.214*e+sy,a+.166*e+sy],[r-.115*e-sy,a+.234*e-sy]]).stream(l),n()},t.fitExtent=function(n,e){return no(t,n,e)},t.fitSize=function(n,e){return eo(t,n,e)},t.fitWidth=function(n,e){return ro(t,n,e)},t.fitHeight=function(n,e){return io(t,n,e)},t.scale(1070)},im=vo(function(t){return ky(2/(1+t))});im.invert=go(function(t){return 2*br(t/2)});var om=function(){return co(im).scale(124.75).clipAngle(179.999)},um=vo(function(t){return(t=xr(t))&&t/Ty(t)});um.invert=go(function(t){return t});var am=function(){return co(um).scale(79.4188).clipAngle(179.999)};yo.invert=function(t,n){return[t,2*yy(by(n))-ly]};var cm=function(){return _o(yo).scale(961/py)},sm=function(){return fo(xo).scale(109.5).parallels([30,30])};bo.invert=bo;var fm=function(){return co(bo).scale(152.63)},lm=function(){return fo(wo).scale(131.154).center([0,13.9389])};Mo.invert=go(yy);var hm=function(){return co(Mo).scale(144.049).clipAngle(60)},pm=function(){function t(){return i=o=null,u}var n,e,r,i,o,u,a=1,c=0,s=0,f=1,l=1,h=M_,p=null,d=M_;return u={stream:function(t){return i&&o===t?i:i=h(d(o=t))},postclip:function(i){return arguments.length?(d=i,p=n=e=r=null,t()):d},clipExtent:function(i){return arguments.length?(d=null==i?(p=n=e=r=null,M_):_i(p=+i[0][0],n=+i[0][1],e=+i[1][0],r=+i[1][1]),t()):null==p?null:[[p,n],[e,r]]},scale:function(n){return arguments.length?(h=To((a=+n)*f,a*l,c,s),t()):a},translate:function(n){return arguments.length?(h=To(a*f,a*l,c=+n[0],s=+n[1]),t()):[c,s]},reflectX:function(n){return arguments.length?(h=To(a*(f=n?-1:1),a*l,c,s),t()):f<0},reflectY:function(n){return arguments.length?(h=To(a*f,a*(l=n?-1:1),c,s),t()):l<0},fitExtent:function(t,n){return no(u,t,n)},fitSize:function(t,n){return eo(u,t,n)},fitWidth:function(t,n){return ro(u,t,n)},fitHeight:function(t,n){return io(u,t,n)}}};No.invert=function(t,n){
var e,r=n,i=25;do{var o=r*r,u=o*o;r-=e=(r*(1.007226+o*(.015085+u*(.028874*o-.044475-.005916*u)))-n)/(1.007226+o*(.045255+u*(.259866*o-.311325-.005916*11*u)))}while(gy(e)>sy&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]};var dm=function(){return co(No).scale(175.295)};ko.invert=go(br);var vm=function(){return co(ko).scale(249.5).clipAngle(90+sy)};So.invert=go(function(t){return 2*yy(t)});var gm=function(){return co(So).scale(250).clipAngle(142)};Ao.invert=function(t,n){return[-n,2*yy(by(t))-ly]};var ym=function(){var t=_o(Ao),n=t.center,e=t.rotate;return t.center=function(t){return arguments.length?n([-t[1],t[0]]):(t=n(),[t[1],-t[0]])},t.rotate=function(t){return arguments.length?e([t[0],t[1],t.length>2?t[2]+90:90]):(t=e(),[t[0],t[1],t[2]-90])},e([0,0,90]).scale(159.155)},_m=function(){function t(t){var o,u=0;t.eachAfter(function(t){var e=t.children;e?(t.x=Co(e),t.y=Po(e)):(t.x=o?u+=n(t,o):0,t.y=0,o=t)});var a=Lo(t),c=Do(t),s=a.x-n(a,c)/2,f=c.x+n(c,a)/2;return t.eachAfter(i?function(n){n.x=(n.x-t.x)*e,n.y=(t.y-n.y)*r}:function(n){n.x=(n.x-s)/(f-s)*e,n.y=(1-(t.y?n.y/t.y:1))*r})}var n=Eo,e=1,r=1,i=!1;return t.separation=function(e){return arguments.length?(n=e,t):n},t.size=function(n){return arguments.length?(i=!1,e=+n[0],r=+n[1],t):i?null:[e,r]},t.nodeSize=function(n){return arguments.length?(i=!0,e=+n[0],r=+n[1],t):i?[e,r]:null},t},mm=function(){return this.eachAfter(qo)},xm=function(t){var n,e,r,i,o=this,u=[o];do{for(n=u.reverse(),u=[];o=n.pop();)if(t(o),e=o.children)for(r=0,i=e.length;r<i;++r)u.push(e[r])}while(u.length);return this},bm=function(t){for(var n,e,r=this,i=[r];r=i.pop();)if(t(r),n=r.children)for(e=n.length-1;e>=0;--e)i.push(n[e]);return this},wm=function(t){for(var n,e,r,i=this,o=[i],u=[];i=o.pop();)if(u.push(i),n=i.children)for(e=0,r=n.length;e<r;++e)o.push(n[e]);for(;i=u.pop();)t(i);return this},Mm=function(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e})},Tm=function(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},Nm=function(t){for(var n=this,e=Uo(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},km=function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},Sm=function(){var t=[];return this.each(function(n){t.push(n)}),t},Am=function(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},Em=function(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n};Bo.prototype=Oo.prototype={constructor:Bo,count:mm,each:xm,eachAfter:wm,eachBefore:bm,sum:Mm,sort:Tm,path:Nm,ancestors:km,descendants:Sm,leaves:Am,links:Em,copy:Fo};var Cm=Array.prototype.slice,zm=function(t){for(var n,e,r=0,i=(t=jo(Cm.call(t))).length,o=[];r<i;)n=t[r],e&&Vo(e,n)?++r:(e=Zo(o=Xo(o,n)),r=0);return e},Pm=function(t){return ru(t),t},Rm=function(t){return function(){return t}},Lm=function(){function t(t){return t.x=e/2,t.y=r/2,n?t.eachBefore(cu(n)).eachAfter(su(i,.5)).eachBefore(fu(1)):t.eachBefore(cu(au)).eachAfter(su(uu,1)).eachAfter(su(i,t.r/Math.min(e,r))).eachBefore(fu(Math.min(e,r)/(2*t.r))),t}var n=null,e=1,r=1,i=uu;return t.radius=function(e){return arguments.length?(n=iu(e),t):n},t.size=function(n){return arguments.length?(e=+n[0],r=+n[1],t):[e,r]},t.padding=function(n){return arguments.length?(i="function"==typeof n?n:Rm(+n),t):i},t},Dm=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},qm=function(t,n,e,r,i){for(var o,u=t.children,a=-1,c=u.length,s=t.value&&(r-n)/t.value;++a<c;)o=u[a],o.y0=e,o.y1=i,o.x0=n,o.x1=n+=o.value*s},Um=function(){function t(t){var u=t.height+1;return t.x0=t.y0=i,t.x1=e,t.y1=r/u,t.eachBefore(n(r,u)),o&&t.eachBefore(Dm),t}function n(t,n){return function(e){e.children&&qm(e,e.x0,t*(e.depth+1)/n,e.x1,t*(e.depth+2)/n);var r=e.x0,o=e.y0,u=e.x1-i,a=e.y1-i;u<r&&(r=u=(r+u)/2),a<o&&(o=a=(o+a)/2),e.x0=r,e.y0=o,e.x1=u,e.y1=a}}var e=1,r=1,i=0,o=!1;return t.round=function(n){return arguments.length?(o=!!n,t):o},t.size=function(n){return arguments.length?(e=+n[0],r=+n[1],t):[e,r]},t.padding=function(n){return arguments.length?(i=+n,t):i},t},Om="$",Fm={depth:-1},Ym={},Im=function(){function t(t){var r,i,o,u,a,c,s,f=t.length,l=new Array(f),h={};for(i=0;i<f;++i)r=t[i],a=l[i]=new Bo(r),null!=(c=n(r,i,t))&&(c+="")&&(s=Om+(a.id=c),h[s]=s in h?Ym:a);for(i=0;i<f;++i)if(a=l[i],null!=(c=e(t[i],i,t))&&(c+="")){if(!(u=h[Om+c]))throw new Error("missing: "+c);if(u===Ym)throw new Error("ambiguous: "+c);u.children?u.children.push(a):u.children=[a],a.parent=u}else{if(o)throw new Error("multiple roots");o=a}if(!o)throw new Error("no root");if(o.parent=Fm,o.eachBefore(function(t){t.depth=t.parent.depth+1,--f}).eachBefore(Ho),o.parent=null,f>0)throw new Error("cycle");return o}var n=lu,e=hu;return t.id=function(e){return arguments.length?(n=ou(e),t):n},t.parentId=function(n){return arguments.length?(e=ou(n),t):e},t};mu.prototype=Object.create(Bo.prototype);var Hm=function(){function t(t){var r=xu(t);if(r.eachAfter(n),r.parent.m=-r.z,r.eachBefore(e),c)t.eachBefore(i);else{var s=t,f=t,l=t;t.eachBefore(function(t){t.x<s.x&&(s=t),t.x>f.x&&(f=t),t.depth>l.depth&&(l=t)});var h=s===f?1:o(s,f)/2,p=h-s.x,d=u/(f.x+h+p),v=a/(l.depth||1);t.eachBefore(function(t){t.x=(t.x+p)*d,t.y=t.depth*v})}return t}function n(t){var n=t.children,e=t.parent.children,i=t.i?e[t.i-1]:null;if(n){yu(t);var u=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+o(t._,i._),t.m=t.z-u):t.z=u}else i&&(t.z=i.z+o(t._,i._));t.parent.A=r(t,i,t.parent.A||e[0])}function e(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function r(t,n,e){if(n){for(var r,i=t,u=t,a=n,c=i.parent.children[0],s=i.m,f=u.m,l=a.m,h=c.m;a=vu(a),i=du(i),a&&i;)c=du(c),u=vu(u),u.a=t,r=a.z+l-i.z-s+o(a._,i._),r>0&&(gu(_u(a,t,e),t,r),s+=r,f+=r),l+=a.m,s+=i.m,h+=c.m,f+=u.m;a&&!vu(u)&&(u.t=a,u.m+=l-f),i&&!du(c)&&(c.t=i,c.m+=s-h,e=t)}return e}function i(t){t.x*=u,t.y=t.depth*a}var o=pu,u=1,a=1,c=null;return t.separation=function(n){return arguments.length?(o=n,t):o},t.size=function(n){return arguments.length?(c=!1,u=+n[0],a=+n[1],t):c?null:[u,a]},t.nodeSize=function(n){return arguments.length?(c=!0,u=+n[0],a=+n[1],t):c?[u,a]:null},t},Bm=function(t,n,e,r,i){for(var o,u=t.children,a=-1,c=u.length,s=t.value&&(i-e)/t.value;++a<c;)o=u[a],o.x0=n,o.x1=r,o.y0=e,o.y1=e+=o.value*s},jm=(1+Math.sqrt(5))/2,Xm=function t(n){function e(t,e,r,i,o){bu(n,t,e,r,i,o)}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(jm),Wm=function(){function t(t){return t.x0=t.y0=0,t.x1=i,t.y1=o,t.eachBefore(n),u=[0],r&&t.eachBefore(Dm),t}function n(t){var n=u[t.depth],r=t.x0+n,i=t.y0+n,o=t.x1-n,h=t.y1-n;o<r&&(r=o=(r+o)/2),h<i&&(i=h=(i+h)/2),t.x0=r,t.y0=i,t.x1=o,t.y1=h,t.children&&(n=u[t.depth+1]=a(t)/2,r+=l(t)-n,i+=c(t)-n,o-=s(t)-n,h-=f(t)-n,o<r&&(r=o=(r+o)/2),h<i&&(i=h=(i+h)/2),e(t,r,i,o,h))}var e=Xm,r=!1,i=1,o=1,u=[0],a=uu,c=uu,s=uu,f=uu,l=uu;return t.round=function(n){return arguments.length?(r=!!n,t):r},t.size=function(n){return arguments.length?(i=+n[0],o=+n[1],t):[i,o]},t.tile=function(n){return arguments.length?(e=ou(n),t):e},t.padding=function(n){return arguments.length?t.paddingInner(n).paddingOuter(n):t.paddingInner()},t.paddingInner=function(n){return arguments.length?(a="function"==typeof n?n:Rm(+n),t):a},t.paddingOuter=function(n){return arguments.length?t.paddingTop(n).paddingRight(n).paddingBottom(n).paddingLeft(n):t.paddingTop()},t.paddingTop=function(n){return arguments.length?(c="function"==typeof n?n:Rm(+n),t):c},t.paddingRight=function(n){return arguments.length?(s="function"==typeof n?n:Rm(+n),t):s},t.paddingBottom=function(n){return arguments.length?(f="function"==typeof n?n:Rm(+n),t):f},t.paddingLeft=function(n){return arguments.length?(l="function"==typeof n?n:Rm(+n),t):l},t},Vm=function(t,n,e,r,i){function o(t,n,e,r,i,u,a){if(t>=n-1){var s=c[t];return s.x0=r,s.y0=i,s.x1=u,s.y1=a,void 0}for(var l=f[t],h=e/2+l,p=t+1,d=n-1;p<d;){var v=p+d>>>1;f[v]<h?p=v+1:d=v}h-f[p-1]<f[p]-h&&t+1<p&&--p;var g=f[p]-l,y=e-g;if(u-r>a-i){var _=(r*y+u*g)/e;o(t,p,g,r,i,_,a),o(p,n,y,_,i,u,a)}else{var m=(i*y+a*g)/e;o(t,p,g,r,i,u,m),o(p,n,y,r,m,u,a)}}var u,a,c=t.children,s=c.length,f=new Array(s+1);for(f[0]=a=u=0;u<s;++u)f[u+1]=a+=c[u].value;o(0,s,t.value,n,e,r,i)},$m=function(t,n,e,r,i){(1&t.depth?Bm:qm)(t,n,e,r,i)},Zm=function t(n){function e(t,e,r,i,o){if((u=t._squarify)&&u.ratio===n)for(var u,a,c,s,f,l=-1,h=u.length,p=t.value;++l<h;){for(a=u[l],c=a.children,s=a.value=0,f=c.length;s<f;++s)a.value+=c[s].value;a.dice?qm(a,e,r,i,r+=(o-r)*a.value/p):Bm(a,e,r,e+=(i-e)*a.value/p,o),p-=a.value}else t._squarify=u=bu(n,t,e,r,i,o),u.ratio=n}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(jm),Gm=function(t){for(var n,e=-1,r=t.length,i=t[r-1],o=0;++e<r;)n=i,i=t[e],o+=n[1]*i[0]-n[0]*i[1];return o/2},Qm=function(t){for(var n,e,r=-1,i=t.length,o=0,u=0,a=t[i-1],c=0;++r<i;)n=a,a=t[r],c+=e=n[0]*a[1]-a[0]*n[1],o+=(n[0]+a[0])*e,u+=(n[1]+a[1])*e;return c*=3,[o/c,u/c]},Jm=function(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])},Km=function(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n<e;++n)r[n]=[+t[n][0],+t[n][1],n];for(r.sort(wu),n=0;n<e;++n)i[n]=[r[n][0],-r[n][1]];var o=Mu(r),u=Mu(i),a=u[0]===o[0],c=u[u.length-1]===o[o.length-1],s=[];for(n=o.length-1;n>=0;--n)s.push(t[r[o[n]][2]]);for(n=+a;n<u.length-c;++n)s.push(t[r[u[n]][2]]);return s},tx=function(t,n){for(var e,r,i=t.length,o=t[i-1],u=n[0],a=n[1],c=o[0],s=o[1],f=!1,l=0;l<i;++l)o=t[l],e=o[0],r=o[1],r>a!=s>a&&u<(c-e)*(a-r)/(s-r)+e&&(f=!f),c=e,s=r;return f},nx=function(t){for(var n,e,r=-1,i=t.length,o=t[i-1],u=o[0],a=o[1],c=0;++r<i;)n=u,e=a,o=t[r],u=o[0],a=o[1],n-=u,e-=a,c+=Math.sqrt(n*n+e*e);return c},ex=[].slice,rx={};Tu.prototype=Cu.prototype={constructor:Tu,defer:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var n=ex.call(arguments,1);return n.push(t),++this._waiting,this._tasks.push(n),Nu(this),this},abort:function(){return null==this._error&&Au(this,new Error("abort")),this},await:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(n,e){t.apply(null,[n].concat(e))},Eu(this),this},awaitAll:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=t,Eu(this),this}};var ix=function(){return Math.random()},ox=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,1===arguments.length?(e=t,t=0):e-=t,function(){return n()*e+t}}return e.source=t,e}(ix),ux=function t(n){function e(t,e){var r,i;return t=null==t?0:+t,e=null==e?1:+e,function(){var o;if(null!=r)o=r,r=null;else do{r=2*n()-1,o=2*n()-1,i=r*r+o*o}while(!i||i>1);return t+e*o*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(ix),ax=function t(n){function e(){var t=ux.source(n).apply(this,arguments);return function(){return Math.exp(t())}}return e.source=t,e}(ix),cx=function t(n){function e(t){return function(){for(var e=0,r=0;r<t;++r)e+=n();return e}}return e.source=t,e}(ix),sx=function t(n){function e(t){var e=cx.source(n)(t);return function(){return e()/t}}return e.source=t,e}(ix),fx=function t(n){function e(t){return function(){return-Math.log(1-n())/t}}return e.source=t,e}(ix),lx=function(t,n){function e(t){var n,e=s.status;if(!e&&Pu(s)||e>=200&&e<300||304===e){if(o)try{n=o.call(r,s)}catch(t){return void a.call("error",r,t)}else n=s;a.call("load",r,n)}else a.call("error",r,t)}var r,i,o,u,a=g("beforesend","progress","load","error"),c=Xe(),s=new XMLHttpRequest,f=null,l=null,h=0;if("undefined"==typeof XDomainRequest||"withCredentials"in s||!/^(http(s)?:)?\/\//.test(t)||(s=new XDomainRequest),"onload"in s?s.onload=s.onerror=s.ontimeout=e:s.onreadystatechange=function(t){s.readyState>3&&e(t)},s.onprogress=function(t){a.call("progress",r,t)},r={header:function(t,n){return t=(t+"").toLowerCase(),arguments.length<2?c.get(t):(null==n?c.remove(t):c.set(t,n+""),r)},mimeType:function(t){return arguments.length?(i=null==t?null:t+"",r):i},responseType:function(t){return arguments.length?(u=t,r):u},timeout:function(t){return arguments.length?(h=+t,r):h},user:function(t){return arguments.length<1?f:(f=null==t?null:t+"",r)},password:function(t){return arguments.length<1?l:(l=null==t?null:t+"",r)},response:function(t){return o=t,r},get:function(t,n){return r.send("GET",t,n)},post:function(t,n){return r.send("POST",t,n)},send:function(n,e,o){return s.open(n,t,!0,f,l),null==i||c.has("accept")||c.set("accept",i+",*/*"),s.setRequestHeader&&c.each(function(t,n){s.setRequestHeader(n,t)}),null!=i&&s.overrideMimeType&&s.overrideMimeType(i),null!=u&&(s.responseType=u),h>0&&(s.timeout=h),null==o&&"function"==typeof e&&(o=e,e=null),null!=o&&1===o.length&&(o=zu(o)),null!=o&&r.on("error",o).on("load",function(t){o(null,t)}),a.call("beforesend",r,s),s.send(null==e?null:e),r},abort:function(){return s.abort(),r},on:function(){var t=a.on.apply(a,arguments);return t===a?r:t}},null!=n){if("function"!=typeof n)throw new Error("invalid callback: "+n);return r.get(n)}return r},hx=function(t,n){return function(e,r){var i=lx(e).mimeType(t).response(n);if(null!=r){if("function"!=typeof r)throw new Error("invalid callback: "+r);return i.get(r)}return i}},px=hx("text/html",function(t){return document.createRange().createContextualFragment(t.responseText)}),dx=hx("application/json",function(t){return JSON.parse(t.responseText)}),vx=hx("text/plain",function(t){return t.responseText}),gx=hx("application/xml",function(t){var n=t.responseXML;if(!n)throw new Error("parse error");return n}),yx=function(t,n){return function(e,r,i){arguments.length<3&&(i=r,r=null);var o=lx(e).mimeType(t);return o.row=function(t){return arguments.length?o.response(Ru(n,r=t)):r},o.row(r),i?o.get(i):o}},_x=yx("text/csv",Pv),mx=yx("text/tab-separated-values",Uv),xx=Array.prototype,bx=xx.map,wx=xx.slice,Mx={name:"implicit"},Tx=function(t){return function(){return t}},Nx=function(t){return+t},kx=[0,1],Sx=function(n,e,r){var o,u=n[0],a=n[n.length-1],c=i(u,a,null==e?10:e);switch(r=vr(null==r?",f":r),r.type){case"s":var s=Math.max(Math.abs(u),Math.abs(a));return null!=r.precision||isNaN(o=Ag(c,s))||(r.precision=o),t.formatPrefix(r,s);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=Eg(c,Math.max(Math.abs(u),Math.abs(a))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=Sg(c))||(r.precision=o-2*("%"===r.type))}return t.format(r)},Ax=function(t,n){t=t.slice();var e,r=0,i=t.length-1,o=t[r],u=t[i];return u<o&&(e=r,r=i,i=e,e=o,o=u,u=e),t[r]=n.floor(o),t[i]=n.ceil(u),t},Ex=new Date,Cx=new Date,zx=aa(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});zx.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?aa(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):zx:null};var Px=zx.range,Rx=6e4,Lx=6048e5,Dx=aa(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()}),qx=Dx.range,Ux=aa(function(t){t.setTime(Math.floor(t/Rx)*Rx)},function(t,n){t.setTime(+t+n*Rx)},function(t,n){return(n-t)/Rx},function(t){return t.getMinutes()}),Ox=Ux.range,Fx=aa(function(t){var n=t.getTimezoneOffset()*Rx%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()}),Yx=Fx.range,Ix=aa(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())*Rx)/864e5},function(t){return t.getDate()-1}),Hx=Ix.range,Bx=ca(0),jx=ca(1),Xx=ca(2),Wx=ca(3),Vx=ca(4),$x=ca(5),Zx=ca(6),Gx=Bx.range,Qx=jx.range,Jx=Xx.range,Kx=Wx.range,tb=Vx.range,nb=$x.range,eb=Zx.range,rb=aa(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()}),ib=rb.range,ob=aa(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()});ob.every=function(t){return isFinite(t=Math.floor(t))&&t>0?aa(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 ub=ob.range,ab=aa(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*Rx)},function(t,n){return(n-t)/Rx},function(t){return t.getUTCMinutes()}),cb=ab.range,sb=aa(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()}),fb=sb.range,lb=aa(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}),hb=lb.range,pb=sa(0),db=sa(1),vb=sa(2),gb=sa(3),yb=sa(4),_b=sa(5),mb=sa(6),xb=pb.range,bb=db.range,wb=vb.range,Mb=gb.range,Tb=yb.range,Nb=_b.range,kb=mb.range,Sb=aa(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()}),Ab=Sb.range,Eb=aa(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()});Eb.every=function(t){return isFinite(t=Math.floor(t))&&t>0?aa(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 Cb,zb=Eb.range,Pb={"-":"",_:" ",0:"0"},Rb=/^\s*\d+/,Lb=/^%/,Db=/[\\^$*+?|[\]().{}]/g;xc({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"]});var qb=Date.prototype.toISOString?bc:t.utcFormat("%Y-%m-%dT%H:%M:%S.%LZ"),Ub=+new Date("2000-01-01T00:00:00.000Z")?wc:t.utcParse("%Y-%m-%dT%H:%M:%S.%LZ"),Ob=1e3,Fb=60*Ob,Yb=60*Fb,Ib=24*Yb,Hb=7*Ib,Bb=30*Ib,jb=365*Ib,Xb=function(){return Nc(ob,rb,Bx,Ix,Fx,Ux,Dx,zx,t.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},Wb=function(){return Nc(Eb,Sb,pb,lb,sb,ab,Dx,zx,t.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},Vb=function(t){return t.match(/.{6}/g).map(function(t){return"#"+t})},$b=Vb("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Zb=Vb("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),Gb=Vb("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),Qb=Vb("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),Jb=Sp(Gt(300,.5,0),Gt(-240,.5,1)),Kb=Sp(Gt(-100,.75,.35),Gt(80,1.5,.8)),tw=Sp(Gt(260,.75,.35),Gt(80,1.5,.8)),nw=Gt(),ew=function(t){(t<0||t>1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return nw.h=360*t-100,nw.s=1.5-1.5*n,nw.l=.8-.9*n,nw+""},rw=kc(Vb("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),iw=kc(Vb("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),ow=kc(Vb("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),uw=kc(Vb("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),aw=function(t){return function(){return t}},cw=Math.abs,sw=Math.atan2,fw=Math.cos,lw=Math.max,hw=Math.min,pw=Math.sin,dw=Math.sqrt,vw=1e-12,gw=Math.PI,yw=gw/2,_w=2*gw,mw=function(){function t(){var t,s,f=+n.apply(this,arguments),l=+e.apply(this,arguments),h=o.apply(this,arguments)-yw,p=u.apply(this,arguments)-yw,d=cw(p-h),v=p>h;if(c||(c=t=Oe()),l<f&&(s=l,l=f,f=s),l>vw)if(d>_w-vw)c.moveTo(l*fw(h),l*pw(h)),c.arc(0,0,l,h,p,!v),f>vw&&(c.moveTo(f*fw(p),f*pw(p)),c.arc(0,0,f,p,h,v));else{var g,y,_=h,m=p,x=h,b=p,w=d,M=d,T=a.apply(this,arguments)/2,N=T>vw&&(i?+i.apply(this,arguments):dw(f*f+l*l)),k=hw(cw(l-f)/2,+r.apply(this,arguments)),S=k,A=k;if(N>vw){var E=Ec(N/f*pw(T)),C=Ec(N/l*pw(T));(w-=2*E)>vw?(E*=v?1:-1,x+=E,b-=E):(w=0,x=b=(h+p)/2),(M-=2*C)>vw?(C*=v?1:-1,_+=C,m-=C):(M=0,_=m=(h+p)/2)}var z=l*fw(_),P=l*pw(_),R=f*fw(b),L=f*pw(b);if(k>vw){var D=l*fw(m),q=l*pw(m),U=f*fw(x),O=f*pw(x);if(d<gw){var F=w>vw?Dc(z,P,U,O,D,q,R,L):[R,L],Y=z-F[0],I=P-F[1],H=D-F[0],B=q-F[1],j=1/pw(Ac((Y*H+I*B)/(dw(Y*Y+I*I)*dw(H*H+B*B)))/2),X=dw(F[0]*F[0]+F[1]*F[1]);S=hw(k,(f-X)/(j-1)),A=hw(k,(l-X)/(j+1))}}M>vw?A>vw?(g=qc(U,O,z,P,l,A,v),y=qc(D,q,R,L,l,A,v),c.moveTo(g.cx+g.x01,g.cy+g.y01),A<k?c.arc(g.cx,g.cy,A,sw(g.y01,g.x01),sw(y.y01,y.x01),!v):(c.arc(g.cx,g.cy,A,sw(g.y01,g.x01),sw(g.y11,g.x11),!v),c.arc(0,0,l,sw(g.cy+g.y11,g.cx+g.x11),sw(y.cy+y.y11,y.cx+y.x11),!v),c.arc(y.cx,y.cy,A,sw(y.y11,y.x11),sw(y.y01,y.x01),!v))):(c.moveTo(z,P),c.arc(0,0,l,_,m,!v)):c.moveTo(z,P),f>vw&&w>vw?S>vw?(g=qc(R,L,D,q,f,-S,v),y=qc(z,P,U,O,f,-S,v),c.lineTo(g.cx+g.x01,g.cy+g.y01),S<k?c.arc(g.cx,g.cy,S,sw(g.y01,g.x01),sw(y.y01,y.x01),!v):(c.arc(g.cx,g.cy,S,sw(g.y01,g.x01),sw(g.y11,g.x11),!v),c.arc(0,0,f,sw(g.cy+g.y11,g.cx+g.x11),sw(y.cy+y.y11,y.cx+y.x11),v),c.arc(y.cx,y.cy,S,sw(y.y11,y.x11),sw(y.y01,y.x01),!v))):c.arc(0,0,f,b,x,v):c.lineTo(R,L)}else c.moveTo(0,0);if(c.closePath(),t)return c=null,t+""||null}var n=Cc,e=zc,r=aw(0),i=null,o=Pc,u=Rc,a=Lc,c=null;return t.centroid=function(){var t=(+n.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +u.apply(this,arguments))/2-gw/2;return[fw(r)*t,pw(r)*t]},t.innerRadius=function(e){return arguments.length?(n="function"==typeof e?e:aw(+e),t):n},t.outerRadius=function(n){return arguments.length?(e="function"==typeof n?n:aw(+n),t):e},t.cornerRadius=function(n){return arguments.length?(r="function"==typeof n?n:aw(+n),t):r},t.padRadius=function(n){return arguments.length?(i=null==n?null:"function"==typeof n?n:aw(+n),t):i},t.startAngle=function(n){return arguments.length?(o="function"==typeof n?n:aw(+n),t):o},t.endAngle=function(n){return arguments.length?(u="function"==typeof n?n:aw(+n),t):u},t.padAngle=function(n){return arguments.length?(a="function"==typeof n?n:aw(+n),t):a},t.context=function(n){return arguments.length?(c=null==n?null:n,t):c},t};Uc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var xw=function(t){return new Uc(t)},bw=function(){function t(t){var a,c,s,f=t.length,l=!1;for(null==i&&(u=o(s=Oe())),a=0;a<=f;++a)!(a<f&&r(c=t[a],a,t))===l&&((l=!l)?u.lineStart():u.lineEnd()),l&&u.point(+n(c,a,t),+e(c,a,t));if(s)return u=null,s+""||null}var n=Oc,e=Fc,r=aw(!0),i=null,o=xw,u=null;return t.x=function(e){return arguments.length?(n="function"==typeof e?e:aw(+e),t):n},t.y=function(n){return arguments.length?(e="function"==typeof n?n:aw(+n),t):e},t.defined=function(n){return arguments.length?(r="function"==typeof n?n:aw(!!n),t):r},t.curve=function(n){return arguments.length?(o=n,null!=i&&(u=o(i)),t):o},t.context=function(n){return arguments.length?(null==n?i=u=null:u=o(i=n),t):i},t},ww=function(){function t(t){var n,f,l,h,p,d=t.length,v=!1,g=new Array(d),y=new Array(d);for(null==a&&(s=c(p=Oe())),n=0;n<=d;++n){if(!(n<d&&u(h=t[n],n,t))===v)if(v=!v)f=n,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),l=n-1;l>=f;--l)s.point(g[l],y[l]);s.lineEnd(),s.areaEnd()}v&&(g[n]=+e(h,n,t),y[n]=+i(h,n,t),s.point(r?+r(h,n,t):g[n],o?+o(h,n,t):y[n]))}if(p)return s=null,p+""||null}function n(){return bw().defined(u).curve(c).context(a)}var e=Oc,r=null,i=aw(0),o=Fc,u=aw(!0),a=null,c=xw,s=null;return t.x=function(n){return arguments.length?(e="function"==typeof n?n:aw(+n),r=null,t):e},t.x0=function(n){return arguments.length?(e="function"==typeof n?n:aw(+n),t):e},t.x1=function(n){return arguments.length?(r=null==n?null:"function"==typeof n?n:aw(+n),t):r},t.y=function(n){return arguments.length?(i="function"==typeof n?n:aw(+n),o=null,t):i},t.y0=function(n){return arguments.length?(i="function"==typeof n?n:aw(+n),t):i},t.y1=function(n){return arguments.length?(o=null==n?null:"function"==typeof n?n:aw(+n),t):o},t.lineX0=t.lineY0=function(){return n().x(e).y(i)},t.lineY1=function(){return n().x(e).y(o)},t.lineX1=function(){return n().x(r).y(i)},t.defined=function(n){return arguments.length?(u="function"==typeof n?n:aw(!!n),t):u},t.curve=function(n){return arguments.length?(c=n,null!=a&&(s=c(a)),t):c},t.context=function(n){return arguments.length?(null==n?a=s=null:s=c(a=n),t):a},t},Mw=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN},Tw=function(t){return t},Nw=function(){function t(t){var a,c,s,f,l,h=t.length,p=0,d=new Array(h),v=new Array(h),g=+i.apply(this,arguments),y=Math.min(_w,Math.max(-_w,o.apply(this,arguments)-g)),_=Math.min(Math.abs(y)/h,u.apply(this,arguments)),m=_*(y<0?-1:1);for(a=0;a<h;++a)(l=v[d[a]=a]=+n(t[a],a,t))>0&&(p+=l);for(null!=e?d.sort(function(t,n){return e(v[t],v[n])}):null!=r&&d.sort(function(n,e){return r(t[n],t[e])}),a=0,s=p?(y-h*m)/p:0;a<h;++a,g=f)c=d[a],l=v[c],f=g+(l>0?l*s:0)+m,v[c]={data:t[c],index:a,value:l,startAngle:g,endAngle:f,padAngle:_};return v}var n=Tw,e=Mw,r=null,i=aw(0),o=aw(_w),u=aw(0);return t.value=function(e){return arguments.length?(n="function"==typeof e?e:aw(+e),t):n},t.sortValues=function(n){return arguments.length?(e=n,r=null,t):e},
t.sort=function(n){return arguments.length?(r=n,e=null,t):r},t.startAngle=function(n){return arguments.length?(i="function"==typeof n?n:aw(+n),t):i},t.endAngle=function(n){return arguments.length?(o="function"==typeof n?n:aw(+n),t):o},t.padAngle=function(n){return arguments.length?(u="function"==typeof n?n:aw(+n),t):u},t},kw=Ic(xw);Yc.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};var Sw=function(){return Hc(bw().curve(kw))},Aw=function(){var t=ww().curve(kw),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Hc(e())},delete t.lineX0,t.lineEndAngle=function(){return Hc(r())},delete t.lineX1,t.lineInnerRadius=function(){return Hc(i())},delete t.lineY0,t.lineOuterRadius=function(){return Hc(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(Ic(t)):n()._curve},t},Ew=function(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]},Cw=Array.prototype.slice,zw={draw:function(t,n){var e=Math.sqrt(n/gw);t.moveTo(e,0),t.arc(0,0,e,0,_w)}},Pw={draw:function(t,n){var e=Math.sqrt(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}},Rw=Math.sqrt(1/3),Lw=2*Rw,Dw={draw:function(t,n){var e=Math.sqrt(n/Lw),r=e*Rw;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},qw=Math.sin(gw/10)/Math.sin(7*gw/10),Uw=Math.sin(_w/10)*qw,Ow=-Math.cos(_w/10)*qw,Fw={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),r=Uw*e,i=Ow*e;t.moveTo(0,-e),t.lineTo(r,i);for(var o=1;o<5;++o){var u=_w*o/5,a=Math.cos(u),c=Math.sin(u);t.lineTo(c*e,-a*e),t.lineTo(a*r-c*i,c*r+a*i)}t.closePath()}},Yw={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}},Iw=Math.sqrt(3),Hw={draw:function(t,n){var e=-Math.sqrt(n/(3*Iw));t.moveTo(0,2*e),t.lineTo(-Iw*e,-e),t.lineTo(Iw*e,-e),t.closePath()}},Bw=-.5,jw=Math.sqrt(3)/2,Xw=1/Math.sqrt(12),Ww=3*(Xw/2+1),Vw={draw:function(t,n){var e=Math.sqrt(n/Ww),r=e/2,i=e*Xw,o=r,u=e*Xw+e,a=-o,c=u;t.moveTo(r,i),t.lineTo(o,u),t.lineTo(a,c),t.lineTo(Bw*r-jw*i,jw*r+Bw*i),t.lineTo(Bw*o-jw*u,jw*o+Bw*u),t.lineTo(Bw*a-jw*c,jw*a+Bw*c),t.lineTo(Bw*r+jw*i,Bw*i-jw*r),t.lineTo(Bw*o+jw*u,Bw*u-jw*o),t.lineTo(Bw*a+jw*c,Bw*c-jw*a),t.closePath()}},$w=[zw,Pw,Dw,Yw,Fw,Hw,Vw],Zw=function(){function t(){var t;if(r||(r=t=Oe()),n.apply(this,arguments).draw(r,+e.apply(this,arguments)),t)return r=null,t+""||null}var n=aw(zw),e=aw(64),r=null;return t.type=function(e){return arguments.length?(n="function"==typeof e?e:aw(e),t):n},t.size=function(n){return arguments.length?(e="function"==typeof n?n:aw(+n),t):e},t.context=function(n){return arguments.length?(r=null==n?null:n,t):r},t},Gw=function(){};Kc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Jc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Jc(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var Qw=function(t){return new Kc(t)};ts.prototype={areaStart:Gw,areaEnd:Gw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:Jc(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var Jw=function(t){return new ts(t)};ns.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:Jc(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var Kw=function(t){return new ns(t)};es.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],u=t[e]-i,a=n[e]-o,c=-1;++c<=e;)r=c/e,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*u),this._beta*n[c]+(1-this._beta)*(o+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var tM=function t(n){function e(t){return 1===n?new Kc(t):new es(t,n)}return e.beta=function(n){return t(+n)},e}(.85);is.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:rs(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:rs(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var nM=function t(n){function e(t){return new is(t,n)}return e.tension=function(n){return t(+n)},e}(0);os.prototype={areaStart:Gw,areaEnd:Gw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:rs(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var eM=function t(n){function e(t){return new os(t,n)}return e.tension=function(n){return t(+n)},e}(0);us.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:rs(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var rM=function t(n){function e(t){return new us(t,n)}return e.tension=function(n){return t(+n)},e}(0);cs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:as(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var iM=function t(n){function e(t){return n?new cs(t,n):new is(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);ss.prototype={areaStart:Gw,areaEnd:Gw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:as(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var oM=function t(n){function e(t){return n?new ss(t,n):new os(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);fs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:as(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var uM=function t(n){function e(t){return n?new fs(t,n):new us(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);ls.prototype={areaStart:Gw,areaEnd:Gw,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}};var aM=function(t){return new ls(t)};gs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:vs(this,this._t0,ds(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=NaN;if(t=+t,n=+n,t!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,vs(this,ds(this,e=ps(this,t,n)),e);break;default:vs(this,this._t0,e=ps(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(ys.prototype=Object.create(gs.prototype)).point=function(t,n){gs.prototype.point.call(this,n,t)},_s.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,o){this._context.bezierCurveTo(n,t,r,e,o,i)}},bs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,e=t.length;if(e)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===e)this._context.lineTo(t[1],n[1]);else for(var r=ws(t),i=ws(n),o=0,u=1;u<e;++o,++u)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[u],n[u]);(this._line||0!==this._line&&1===e)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var cM=function(t){return new bs(t)};Ms.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var sM=function(t){return new Ms(t,.5)},fM=function(t,n){if((i=t.length)>1)for(var e,r,i,o=1,u=t[n[0]],a=u.length;o<i;++o)for(r=u,u=t[n[o]],e=0;e<a;++e)u[e][1]+=u[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]},lM=function(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e},hM=function(){function t(t){var o,u,a=n.apply(this,arguments),c=t.length,s=a.length,f=new Array(s);for(o=0;o<s;++o){for(var l,h=a[o],p=f[o]=new Array(c),d=0;d<c;++d)p[d]=l=[0,+i(t[d],h,d,t)],l.data=t[d];p.key=h}for(o=0,u=e(f);o<s;++o)f[u[o]].index=o;return r(f,u),f}var n=aw([]),e=lM,r=fM,i=ks;return t.keys=function(e){return arguments.length?(n="function"==typeof e?e:aw(Cw.call(e)),t):n},t.value=function(n){return arguments.length?(i="function"==typeof n?n:aw(+n),t):i},t.order=function(n){return arguments.length?(e=null==n?lM:"function"==typeof n?n:aw(Cw.call(n)),t):e},t.offset=function(n){return arguments.length?(r=null==n?fM:n,t):r},t},pM=function(t,n){if((r=t.length)>0){for(var e,r,i,o=0,u=t[0].length;o<u;++o){for(i=e=0;e<r;++e)i+=t[e][o][1]||0;if(i)for(e=0;e<r;++e)t[e][o][1]/=i}fM(t,n)}},dM=function(t,n){if((a=t.length)>1)for(var e,r,i,o,u,a,c=0,s=t[n[0]].length;c<s;++c)for(o=u=0,e=0;e<a;++e)(i=(r=t[n[e]][c])[1]-r[0])>=0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=u,r[0]=u+=i):r[0]=o},vM=function(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;r<o;++r){for(var u=0,a=0;u<e;++u)a+=t[u][r][1]||0;i[r][1]+=i[r][0]=-a/2}fM(t,n)}},gM=function(t,n){if((i=t.length)>0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,u=1;u<r;++u){for(var a=0,c=0,s=0;a<i;++a){for(var f=t[n[a]],l=f[u][1]||0,h=f[u-1][1]||0,p=(l-h)/2,d=0;d<a;++d){var v=t[n[d]];p+=(v[u][1]||0)-(v[u-1][1]||0)}c+=l,s+=p*l}e[u-1][1]+=e[u-1][0]=o,c&&(o-=s/c)}e[u-1][1]+=e[u-1][0]=o,fM(t,n)}},yM=function(t){var n=t.map(Ss);return lM(t).sort(function(t,e){return n[t]-n[e]})},_M=function(t){return yM(t).reverse()},mM=function(t){var n,e,r=t.length,i=t.map(Ss),o=lM(t).sort(function(t,n){return i[n]-i[t]}),u=0,a=0,c=[],s=[];for(n=0;n<r;++n)e=o[n],u<a?(u+=i[e],c.push(e)):(a+=i[e],s.push(e));return s.reverse().concat(c)},xM=function(t){return lM(t).reverse()},bM=function(t){return function(){return t}};Cs.prototype={constructor:Cs,insert:function(t,n){var e,r,i;if(t){if(n.P=t,n.N=t.N,t.N&&(t.N.P=n),t.N=n,t.R){for(t=t.R;t.L;)t=t.L;t.L=n}else t.R=n;e=t}else this._?(t=Ls(this._),n.P=null,n.N=t,t.P=t.L=n,e=t):(n.P=n.N=null,this._=n,e=null);for(n.L=n.R=null,n.U=e,n.C=!0,t=n;e&&e.C;)r=e.U,e===r.L?(i=r.R,i&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.R&&(Ps(this,e),t=e,e=t.U),e.C=!1,r.C=!0,Rs(this,r))):(i=r.L,i&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(Rs(this,e),t=e,e=t.U),e.C=!1,r.C=!0,Ps(this,r))),e=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var n,e,r,i=t.U,o=t.L,u=t.R;if(e=o?u?Ls(u):o:u,i?i.L===t?i.L=e:i.R=e:this._=e,o&&u?(r=e.C,e.C=t.C,e.L=o,o.U=e,e!==u?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=u,u.U=e):(e.U=i,i=e,t=e.R)):(r=t.C,t=e),t&&(t.U=i),!r){if(t&&t.C)return void(t.C=!1);do{if(t===this._)break;if(t===i.L){if(n=i.R,n.C&&(n.C=!1,i.C=!0,Ps(this,i),n=i.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,Rs(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,Ps(this,i),t=this._;break}}else if(n=i.L,n.C&&(n.C=!1,i.C=!0,Rs(this,i),n=i.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,Ps(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,Rs(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var wM,MM,TM,NM,kM,SM=[],AM=[],EM=1e-6,CM=1e-12;uf.prototype={constructor:uf,polygons:function(){var t=this.edges;return this.cells.map(function(n){var e=n.halfedges.map(function(e){return Bs(n,t[e])});return e.data=n.site.data,e})},triangles:function(){var t=[],n=this.edges;return this.cells.forEach(function(e,r){if(o=(i=e.halfedges).length)for(var i,o,u,a=e.site,c=-1,s=n[i[o-1]],f=s.left===a?s.right:s.left;++c<o;)u=f,s=n[i[c]],f=s.left===a?s.right:s.left,u&&f&&r<u.index&&r<f.index&&rf(a,u,f)<0&&t.push([a.data,u.data,f.data])}),t},links:function(){return this.edges.filter(function(t){return t.right}).map(function(t){return{source:t.left.data,target:t.right.data}})},find:function(t,n,e){for(var r,i,o=this,u=o._found||0,a=o.cells.length;!(i=o.cells[u]);)if(++u>=a)return null;var c=t-i.site[0],s=n-i.site[1],f=c*c+s*s;do{i=o.cells[r=u],u=null,i.halfedges.forEach(function(e){var r=o.edges[e],a=r.left;if(a!==i.site&&a||(a=r.right)){var c=t-a[0],s=n-a[1],l=c*c+s*s;l<f&&(f=l,u=a.index)}})}while(null!==u);return o._found=r,null==e||f<=e*e?i.site:null}};var zM=function(){function t(t){return new uf(t.map(function(r,i){var o=[Math.round(n(r,i,t)/EM)*EM,Math.round(e(r,i,t)/EM)*EM];return o.index=i,o.data=r,o}),r)}var n=As,e=Es,r=null;return t.polygons=function(n){return t(n).polygons()},t.links=function(n){return t(n).links()},t.triangles=function(n){return t(n).triangles()},t.x=function(e){return arguments.length?(n="function"==typeof e?e:bM(+e),t):n},t.y=function(n){return arguments.length?(e="function"==typeof n?n:bM(+n),t):e},t.extent=function(n){return arguments.length?(r=null==n?null:[[+n[0][0],+n[0][1]],[+n[1][0],+n[1][1]]],t):r&&[[r[0][0],r[0][1]],[r[1][0],r[1][1]]]},t.size=function(n){return arguments.length?(r=null==n?null:[[0,0],[+n[0],+n[1]]],t):r&&[r[1][0]-r[0][0],r[1][1]-r[0][1]]},t},PM=function(t){return function(){return t}};cf.prototype={constructor:cf,scale:function(t){return 1===t?this:new cf(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new cf(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var RM=new cf(1,0,0);sf.prototype=cf.prototype;var LM=function(){t.event.preventDefault(),t.event.stopImmediatePropagation()},DM=function(){function n(t){t.property("__zoom",pf).on("wheel.zoom",c).on("mousedown.zoom",s).on("dblclick.zoom",f).filter(b).on("touchstart.zoom",l).on("touchmove.zoom",h).on("touchend.zoom touchcancel.zoom",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function e(t,n){return n=Math.max(w[0],Math.min(w[1],n)),n===t.k?t:new cf(n,t.x,t.y)}function r(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new cf(t.k,r,i)}function i(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function o(t,n,e){t.on("start.zoom",function(){u(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){u(this,arguments).end()}).tween("zoom",function(){var t=this,r=arguments,o=u(t,r),a=_.apply(t,r),c=e||i(a),s=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),f=t.__zoom,l="function"==typeof n?n.apply(t,r):n,h=N(f.invert(c).concat(s/f.k),l.invert(c).concat(s/l.k));return function(t){if(1===t)t=l;else{var n=h(t),e=s/n[2];t=new cf(e,c[0]-n[0]*e,c[1]-n[1]*e)}o.zoom(null,t)}})}function u(t,n){for(var e,r=0,i=k.length;r<i;++r)if((e=k[r]).that===t)return e;return new a(t,n)}function a(t,n){this.that=t,this.args=n,this.index=-1,this.active=0,this.extent=_.apply(t,n)}function c(){function t(){n.wheel=null,n.end()}if(y.apply(this,arguments)){var n=u(this,arguments),i=this.__zoom,o=Math.max(w[0],Math.min(w[1],i.k*Math.pow(2,x.apply(this,arguments)))),a=Al(this);if(n.wheel)n.mouse[0][0]===a[0]&&n.mouse[0][1]===a[1]||(n.mouse[1]=i.invert(n.mouse[0]=a)),clearTimeout(n.wheel);else{if(i.k===o)return;n.mouse=[a,i.invert(a)],Gp(this),n.start()}LM(),n.wheel=setTimeout(t,E),n.zoom("mouse",m(r(e(i,o),n.mouse[0],n.mouse[1]),n.extent,M))}}function s(){function n(){if(LM(),!i.moved){var n=t.event.clientX-c,e=t.event.clientY-s;i.moved=n*n+e*e>z}i.zoom("mouse",m(r(i.that.__zoom,i.mouse[0]=Al(i.that),i.mouse[1]),i.extent,M))}function e(){o.on("mousemove.zoom mouseup.zoom",null),xt(t.event.view,i.moved),LM(),i.end()}if(!v&&y.apply(this,arguments)){var i=u(this,arguments),o=fh(t.event.view).on("mousemove.zoom",n,!0).on("mouseup.zoom",e,!0),a=Al(this),c=t.event.clientX,s=t.event.clientY;vh(t.event.view),ff(),i.mouse=[a,this.__zoom.invert(a)],Gp(this),i.start()}}function f(){if(y.apply(this,arguments)){var i=this.__zoom,u=Al(this),a=i.invert(u),c=i.k*(t.event.shiftKey?.5:2),s=m(r(e(i,c),u,a),_.apply(this,arguments),M);LM(),T>0?fh(this).transition().duration(T).call(o,s,u):fh(this).call(n.transform,s)}}function l(){if(y.apply(this,arguments)){var n,e,r,i,o=u(this,arguments),a=t.event.changedTouches,c=a.length;for(ff(),e=0;e<c;++e)r=a[e],i=hh(this,a,r.identifier),i=[i,this.__zoom.invert(i),r.identifier],o.touch0?o.touch1||(o.touch1=i):(o.touch0=i,n=!0);if(d&&(d=clearTimeout(d),!o.touch1))return o.end(),void((i=fh(this).on("dblclick.zoom"))&&i.apply(this,arguments));n&&(d=setTimeout(function(){d=null},A),Gp(this),o.start())}}function h(){var n,i,o,a,c=u(this,arguments),s=t.event.changedTouches,f=s.length;for(LM(),d&&(d=clearTimeout(d)),n=0;n<f;++n)i=s[n],o=hh(this,s,i.identifier),c.touch0&&c.touch0[2]===i.identifier?c.touch0[0]=o:c.touch1&&c.touch1[2]===i.identifier&&(c.touch1[0]=o);if(i=c.that.__zoom,c.touch1){var l=c.touch0[0],h=c.touch0[1],p=c.touch1[0],v=c.touch1[1],g=(g=p[0]-l[0])*g+(g=p[1]-l[1])*g,y=(y=v[0]-h[0])*y+(y=v[1]-h[1])*y;i=e(i,Math.sqrt(g/y)),o=[(l[0]+p[0])/2,(l[1]+p[1])/2],a=[(h[0]+v[0])/2,(h[1]+v[1])/2]}else{if(!c.touch0)return;o=c.touch0[0],a=c.touch0[1]}c.zoom("touch",m(r(i,o,a),c.extent,M))}function p(){var n,e,r=u(this,arguments),i=t.event.changedTouches,o=i.length;for(ff(),v&&clearTimeout(v),v=setTimeout(function(){v=null},A),n=0;n<o;++n)e=i[n],r.touch0&&r.touch0[2]===e.identifier?delete r.touch0:r.touch1&&r.touch1[2]===e.identifier&&delete r.touch1;r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0?r.touch0[1]=this.__zoom.invert(r.touch0[0]):r.end()}var d,v,y=lf,_=hf,m=gf,x=df,b=vf,w=[0,1/0],M=[[-1/0,-1/0],[1/0,1/0]],T=250,N=bp,k=[],S=g("start","zoom","end"),A=500,E=150,z=0;return n.transform=function(t,n){var e=t.selection?t.selection():t;e.property("__zoom",pf),t!==e?o(t,n):e.interrupt().each(function(){u(this,arguments).start().zoom(null,"function"==typeof n?n.apply(this,arguments):n).end()})},n.scaleBy=function(t,e){n.scaleTo(t,function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)})},n.scaleTo=function(t,o){n.transform(t,function(){var t=_.apply(this,arguments),n=this.__zoom,u=i(t),a=n.invert(u),c="function"==typeof o?o.apply(this,arguments):o;return m(r(e(n,c),u,a),t,M)})},n.translateBy=function(t,e,r){n.transform(t,function(){return m(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof r?r.apply(this,arguments):r),_.apply(this,arguments),M)})},n.translateTo=function(t,e,r){n.transform(t,function(){var t=_.apply(this,arguments),n=this.__zoom,o=i(t);return m(RM.translate(o[0],o[1]).scale(n.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof r?-r.apply(this,arguments):-r),t,M)})},a.prototype={start:function(){return 1==++this.active&&(this.index=k.push(this)-1,this.emit("start")),this},zoom:function(t,n){return this.mouse&&"mouse"!==t&&(this.mouse[1]=n.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=n.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=n.invert(this.touch1[0])),this.that.__zoom=n,this.emit("zoom"),this},end:function(){return 0==--this.active&&(k.splice(this.index,1),this.index=-1,this.emit("end")),this},emit:function(t){C(new af(n,t,this.that.__zoom),S.apply,S,[t,this.that,this.args])}},n.wheelDelta=function(t){return arguments.length?(x="function"==typeof t?t:PM(+t),n):x},n.filter=function(t){return arguments.length?(y="function"==typeof t?t:PM(!!t),n):y},n.touchable=function(t){return arguments.length?(b="function"==typeof t?t:PM(!!t),n):b},n.extent=function(t){return arguments.length?(_="function"==typeof t?t:PM([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),n):_},n.scaleExtent=function(t){return arguments.length?(w[0]=+t[0],w[1]=+t[1],n):[w[0],w[1]]},n.translateExtent=function(t){return arguments.length?(M[0][0]=+t[0][0],M[1][0]=+t[1][0],M[0][1]=+t[0][1],M[1][1]=+t[1][1],n):[[M[0][0],M[0][1]],[M[1][0],M[1][1]]]},n.constrain=function(t){return arguments.length?(m=t,n):m},n.duration=function(t){return arguments.length?(T=+t,n):T},n.interpolate=function(t){return arguments.length?(N=t,n):N},n.on=function(){var t=S.on.apply(S,arguments);return t===S?n:t},n.clickDistance=function(t){return arguments.length?(z=(t=+t)*t,n):Math.sqrt(z)},n},qM=function(t,n){var e=this.node();return e?e.getBBox?this.attr("transform",function(e,r){var i="function"==typeof t?t.call(this,e,r):t;return 0===n?i=[i,0]:1===n&&(i=[0,i]),"translate("+i[0]+","+i[1]+")"}):this.style("transform",function(e,r){var i="function"==typeof t?t.call(this,e,r):t;return 0===n?i=[i,0]:1===n&&(i=[0,i]),"translate("+i[0]+"px,"+i[1]+"px)"}):this},UM=function(t){if("string"==typeof t){var n,e={},r=t.split(/([\.#])/g);for(t=r.shift();n=r.shift();)"."==n?e.class=e.class?e.class+" "+r.shift():r.shift():"#"==n&&(e.id=r.shift());return{tag:t,attr:e}}return t},OM=function(t){var n,e;"function"==typeof t?n=t:(e=UM(t),n=_l(e.tag));var r=this.select(function(){return this.appendChild(n.apply(this,arguments))});if(e)for(var i in e.attr)r.attr(i,e.attr[i]);return r},FM=function(t,n){var e=UM(t),r=_l(e.tag),i=null==n?yf:"function"==typeof n?n:El(n),o=this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)});for(var u in e.attr)o.attr(u,e.attr[u]);return o},YM=function(){var t=[];return this.filter(function(){return!(t.indexOf(this.parentNode)>-1)&&(t.push(this.parentNode),!0)}).select(function(){return this.parentNode})},IM=function(t){var n,e=El(t),r=UM(t);t=_l(r.tag),n=this.select(function(){return e.apply(this,arguments)||this.appendChild(t.apply(this,arguments))});for(var i in r.attr)n.attr(i,r.attr[i]);return n},HM=function(t,n){return this.selectAll("tspan").data(function(n){return("function"==typeof t?t(n):t).map(function(t){return{line:t,parent:n}})}).enter().append("tspan").text(function(t){return t.line}).attr("x",0).attr("dy",function(t,e){return e?("function"==typeof n?n(t.parent,t.line,e):n)||15:0})},BM=function(t,n){if("string"==typeof n){console.warn("DEPRECATED: jetpack's appendMany order of arguments has changed. It's appendMany('div', data) from now on");var e=n;n=t,t=e}return this.selectAll(null).data(n).enter().append(t)},jM=function(t,n){if("object"==typeof t){for(var e in t)this.attr(e.replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase(),t[e]);return this}return 1==arguments.length?this.attr(t):this.attr(t,n)};_f.not=function(t){return!t},_f.run=function(t){return t()},_f.objToFn=function(t,n){return 1==arguments.length&&(n=void 0),function(e){return void 0!==t[e]?t[e]:n}};var XM=function(t,n){function e(t,n,e){return n=n.replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase(),~"top left bottom right padding-top padding-left padding-bottom padding-right border-top b-width border-left-width border-botto-width m border-right-width margin-top margin-left margin-bottom margin-right font-size width height stroke-width line-height margin padding border border-radius max-width min-width".indexOf(n)?t.style(n,"function"==typeof e?i(e):r(e)):t.style(n,e),t}function r(t){return t.match?t:t+"px"}function i(t){return function(){return r(t.apply(this,arguments))}}if("object"==typeof t){for(var o in t)e(this,o,t[o]);return this}return 1==arguments.length?this.style(t):e(this,t,n)},WM={A:7,a:7,B:8,b:7,C:8,c:6,D:9,d:7,E:7,e:7,F:7,f:4,G:9,g:7,H:9,h:7,I:3,i:3,J:5,j:3,K:8,k:6,L:7,l:3,M:11,m:11,N:9,n:7,O:9,o:7,P:8,p:7,Q:9,q:7,R:8,r:4,S:8,s:6,T:7,t:4,U:9,u:7,V:7,v:6,W:11,w:9,X:7,x:6,Y:7,y:6,Z:7,z:5,".":2,",":2,":":2,";":2},VM=function(t,n,e,r){function i(t){return!r&&WM[t]||WM.a}function o(t){return t.length}function u(t,n){return t-n}var a,c,s,f,l,h,p=[],d=[],v=[];return c=t.split(" "),c.forEach(function(t,n){var e=t.split("-");e.length>1?e.forEach(function(t,n){d.push(t+(n<e.length-1?"-":""))}):d.push(t+(n<c.length-1?" ":""))}),s=n||40,f=e||Math.max(3,Math.min(.5*s,.75*d.map(o).sort(u)[Math.round(d.length/2)])),l=s*WM.a,h=f*WM.a,a=0,d.forEach(function(t){var n=il(t.split("").map(i));return a+n>l&&a>h&&(p.push(v.join("")),v.length=0,a=0),a+=n,v.push(t)}),v.length&&p.push(v.join("")),p.filter(function(t){return""!==t})},$M=function(t){return"function"==typeof t?function(n,e){return t(n)<t(e)?-1:t(n)>t(e)?1:t(n)>=t(e)?0:NaN}:function(n,e){return n[t]<e[t]?-1:n[t]>e[t]?1:n[t]>=e[t]?0:NaN}},ZM=function(t){return"function"==typeof t?function(n,e){return t(e)<t(n)?-1:t(e)>t(n)?1:t(e)>=t(n)?0:NaN}:function(n,e){return e[t]<n[t]?-1:e[t]>n[t]?1:e[t]>=n[t]?0:NaN}},GM=function(t){t=t||{},t.margin=t.margin||{},["top","right","bottom","left"].forEach(function(n){t.margin[n]||0===t.margin[n]||(t.margin[n]=20)}),t.parentSel&&(t.sel=t.parentSel);var n=t.sel&&t.sel.node();return t.totalWidth=t.totalWidth||n&&n.offsetWidth||960,t.totalHeight=t.totalHeight||n&&n.offsetHeight||500,t.width=t.width||t.totalWidth-t.margin.left-t.margin.right,t.height=t.height||t.totalHeight-t.margin.top-t.margin.bottom,
t.totalWidth=t.width+t.margin.left+t.margin.right,t.totalHeight=t.height+t.margin.top+t.margin.bottom,t.sel=t.sel||fh("body"),t.sel.st({position:"relative",height:t.totalHeight,width:t.totalWidth}),t.x=t.x||Wu().range([0,t.width]),t.y=t.y||Wu().range([t.height,0]),t.xAxis=t.xAxis||d().scale(t.x),t.yAxis=t.yAxis||v().scale(t.y),t.layers=(t.layers||"s").split("").map(function(n){var e;if("s"==n)e=t.sel.append("svg").st({position:t.layers?"absolute":""}).attr("width",t.totalWidth).attr("height",t.totalHeight).append("g").attr("transform","translate("+t.margin.left+","+t.margin.top+")"),t.svg||(t.svg=e);else if("c"==n){var r=window.devicePixelRatio||1;e=t.sel.append("canvas").at({width:t.totalWidth*r,height:t.totalHeight*r}).st({width:t.totalWidth,height:t.totalHeight}).st({position:"absolute"}).node().getContext("2d"),e.scale(r,r),e.translate(t.margin.left,t.margin.top)}else"d"==n&&(e=t.sel.append("div").st({position:"absolute",left:t.margin.left,top:t.margin.top,width:t.width,height:t.height}));return e}),t},QM=function(t){return{xAxisSel:t.svg.append("g").attr("class","x axis").attr("transform","translate(0,"+t.height+")").call(t.xAxis),yAxisSel:t.svg.append("g").attr("class","y axis").call(t.yAxis)}},JM=function(t,n,e){return Math.max(t,Math.min(e,n))},KM=function(n,e,r){function i(t){e.classed("tooltip-hidden",!1).html("").appendMany("div",r).html(function(n){return n(t)}),fh(this).classed("tooltipped",!0)}function o(n){if(e.size()){var r=t.event,i=r.clientX,o=r.clientY,u=e.node().getBoundingClientRect(),a=JM(20,i-u.width/2,window.innerWidth-u.width-20),c=innerHeight>o+20+u.height?o+20:o-u.height-20;e.style("left",a+"px").style("top",c+"px")}}function u(t){e.classed("tooltip-hidden",!0),lh(".tooltipped").classed("tooltipped",!1)}if(n.size()){e=e||fh(".tooltip"),n.on("mouseover.attachTooltip",i).on("mousemove.attachTooltip",o).on("mouseout.attachTooltip",u).on("click.attachTooltip",function(t){console.log(t)});var a=n.datum();r=r||wv(a).filter(function(t){return"object"!=typeof a[t]&&"array"!=a[t]}).map(function(t){return function(n){return t+": <b>"+n[t]+"</b>"}})}},tT=function(){var t=Cu(),n=[].slice.call(arguments),e=n.slice(0,n.length-1),r=n[n.length-1];e.forEach(function(n){var e=n.split("?")[0].split(".").reverse()[0],i={csv:_x,tsv:mx,json:dx}[e];if(!i)return r(new Error("Invalid type",n));t.defer(i,n)}),t.awaitAll(r)},nT=function(t,n){return xv().key(n).entries(t).map(function(t){return t.values.key=t.key,t.values})},eT=function(t,n){return n?Math.round(t*(n=Math.pow(10,n)))/n:Math.round(t)},rT=function(t,n){for(var e,r,i,o,u,a,c=bf(n),s=-1,f=t.length-bf(t),l=t[f-1];++s<f;){for(e=n.slice(),n.length=0,o=t[s],u=e[(i=e.length-c)-1],r=-1;++r<i;)a=e[r],mf(a,l,o)?(mf(u,l,o)||n.push(xf(u,a,l,o)),n.push(a)):mf(u,l,o)&&n.push(xf(u,a,l,o)),u=a;c&&n.push(n[0]),l=o}return n};_t.prototype.translate=qM,ie.prototype.translate=qM,_t.prototype.append=OM,_t.prototype.insert=FM,_t.prototype.parent=YM,_t.prototype.selectAppend=IM,_t.prototype.tspans=HM,_t.prototype.appendMany=BM,_t.prototype.at=jM,_t.prototype.st=XM,ie.prototype.at=jM,ie.prototype.st=XM,_t.prototype.prop=_t.prototype.property,xc({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.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."]}),t.version="4.12.0",t.bisect=kf,t.bisectRight=kf,t.bisectLeft=Sf,t.ascending=Mf,t.bisector=Tf,t.cross=Ef,t.descending=Cf,t.deviation=Rf,t.extent=Lf,t.histogram=Wf,t.thresholdFreedmanDiaconis=$f,t.thresholdScott=Zf,t.thresholdSturges=Xf,t.max=Gf,t.mean=Qf,t.median=Jf,t.merge=Kf,t.min=tl,t.pairs=Af,t.permute=nl,t.quantile=Vf,t.range=Yf,t.scan=el,t.shuffle=rl,t.sum=il,t.ticks=jf,t.tickIncrement=r,t.tickStep=i,t.transpose=ol,t.variance=Pf,t.zip=ul,t.axisTop=h,t.axisRight=p,t.axisBottom=d,t.axisLeft=v,t.brush=uv,t.brushX=Re,t.brushY=Le,t.brushSelection=Pe,t.chord=pv,t.ribbon=mv,t.nest=xv,t.set=Qe,t.map=Xe,t.keys=wv,t.values=Mv,t.entries=Tv,t.color=At,t.rgb=Pt,t.hsl=qt,t.lab=Yt,t.hcl=Vt,t.cubehelix=Gt,t.dispatch=g,t.drag=yh,t.dragDisable=vh,t.dragEnable=xt,t.dsvFormat=Cv,t.csvParse=Pv,t.csvParseRows=Rv,t.csvFormat=Lv,t.csvFormatRows=Dv,t.tsvParse=Uv,t.tsvParseRows=Ov,t.tsvFormat=Fv,t.tsvFormatRows=Yv,t.easeLinear=ue,t.easeQuad=se,t.easeQuadIn=ae,t.easeQuadOut=ce,t.easeQuadInOut=se,t.easeCubic=he,t.easeCubicIn=fe,t.easeCubicOut=le,t.easeCubicInOut=he,t.easePoly=bd,t.easePolyIn=md,t.easePolyOut=xd,t.easePolyInOut=bd,t.easeSin=ve,t.easeSinIn=pe,t.easeSinOut=de,t.easeSinInOut=ve,t.easeExp=_e,t.easeExpIn=ge,t.easeExpOut=ye,t.easeExpInOut=_e,t.easeCircle=be,t.easeCircleIn=me,t.easeCircleOut=xe,t.easeCircleInOut=be,t.easeBounce=Me,t.easeBounceIn=we,t.easeBounceOut=Me,t.easeBounceInOut=Te,t.easeBack=qd,t.easeBackIn=Ld,t.easeBackOut=Dd,t.easeBackInOut=qd,t.easeElastic=Fd,t.easeElasticIn=Od,t.easeElasticOut=Fd,t.easeElasticInOut=Yd,t.forceCenter=Iv,t.forceCollide=og,t.forceLink=ug,t.forceManyBody=fg,t.forceRadial=lg,t.forceSimulation=sg,t.forceX=hg,t.forceY=pg,t.formatDefaultLocale=yr,t.formatLocale=kg,t.formatSpecifier=vr,t.precisionFixed=Sg,t.precisionPrefix=Ag,t.precisionRound=Eg,t.geoArea=Ly,t.geoBounds=Uy,t.geoCentroid=Fy,t.geoCircle=t_,t.geoClipAntimeridian=a_,t.geoClipCircle=c_,t.geoClipExtent=h_,t.geoClipRectangle=_i,t.geoContains=b_,t.geoDistance=__,t.geoGraticule=zi,t.geoGraticule10=Pi,t.geoInterpolate=w_,t.geoLength=v_,t.geoPath=Z_,t.geoAlbers=em,t.geoAlbersUsa=rm,t.geoAzimuthalEqualArea=om,t.geoAzimuthalEqualAreaRaw=im,t.geoAzimuthalEquidistant=am,t.geoAzimuthalEquidistantRaw=um,t.geoConicConformal=sm,t.geoConicConformalRaw=xo,t.geoConicEqualArea=nm,t.geoConicEqualAreaRaw=ho,t.geoConicEquidistant=lm,t.geoConicEquidistantRaw=wo,t.geoEquirectangular=fm,t.geoEquirectangularRaw=bo,t.geoGnomonic=hm,t.geoGnomonicRaw=Mo,t.geoIdentity=pm,t.geoProjection=co,t.geoProjectionMutator=so,t.geoMercator=cm,t.geoMercatorRaw=yo,t.geoNaturalEarth1=dm,t.geoNaturalEarth1Raw=No,t.geoOrthographic=vm,t.geoOrthographicRaw=ko,t.geoStereographic=gm,t.geoStereographicRaw=So,t.geoTransverseMercator=ym,t.geoTransverseMercatorRaw=Ao,t.geoRotation=Ky,t.geoStream=Cy,t.geoTransform=G_,t.cluster=_m,t.hierarchy=Oo,t.pack=Lm,t.packSiblings=Pm,t.packEnclose=zm,t.partition=Um,t.stratify=Im,t.tree=Hm,t.treemap=Wm,t.treemapBinary=Vm,t.treemapDice=qm,t.treemapSlice=Bm,t.treemapSliceDice=$m,t.treemapSquarify=Xm,t.treemapResquarify=Zm,t.interpolate=pp,t.interpolateArray=up,t.interpolateBasis=tp,t.interpolateBasisClosed=np,t.interpolateDate=ap,t.interpolateNumber=cp,t.interpolateObject=sp,t.interpolateRound=dp,t.interpolateString=hp,t.interpolateTransformCss=_p,t.interpolateTransformSvg=mp,t.interpolateZoom=bp,t.interpolateRgb=rp,t.interpolateRgbBasis=ip,t.interpolateRgbBasisClosed=op,t.interpolateHsl=wp,t.interpolateHslLong=Mp,t.interpolateLab=vn,t.interpolateHcl=Tp;t.interpolateHclLong=Np,t.interpolateCubehelix=kp,t.interpolateCubehelixLong=Sp,t.quantize=Ap,t.path=Oe,t.polygonArea=Gm,t.polygonCentroid=Qm,t.polygonHull=Km,t.polygonContains=tx,t.polygonLength=nx,t.quadtree=ur,t.queue=Cu,t.randomUniform=ox,t.randomNormal=ux,t.randomLogNormal=ax,t.randomBates=sx,t.randomIrwinHall=cx,t.randomExponential=fx,t.request=lx,t.html=px,t.json=dx,t.text=vx,t.xml=gx,t.csv=_x,t.tsv=mx,t.scaleBand=Du,t.scalePoint=Uu,t.scaleIdentity=Vu,t.scaleLinear=Wu,t.scaleLog=ta,t.scaleOrdinal=Lu,t.scaleImplicit=Mx,t.scalePow=ea,t.scaleSqrt=ra,t.scaleQuantile=ia,t.scaleQuantize=oa,t.scaleThreshold=ua,t.scaleTime=Xb,t.scaleUtc=Wb,t.schemeCategory10=$b,t.schemeCategory20b=Zb,t.schemeCategory20c=Gb,t.schemeCategory20=Qb,t.interpolateCubehelixDefault=Jb,t.interpolateRainbow=ew,t.interpolateWarm=Kb,t.interpolateCool=tw,t.interpolateViridis=rw,t.interpolateMagma=iw,t.interpolateInferno=ow,t.interpolatePlasma=uw,t.scaleSequential=Sc,t.creator=_l,t.local=M,t.matcher=Ml,t.mouse=Al,t.namespace=yl,t.namespaces=gl,t.clientPoint=Sl,t.select=fh,t.selectAll=lh,t.selection=_t,t.selector=El,t.selectorAll=zl,t.style=W,t.touch=hh,t.touches=ph,t.window=Gl,t.customEvent=C,t.arc=mw,t.area=ww,t.line=bw,t.pie=Nw,t.areaRadial=Aw,t.radialArea=Aw,t.lineRadial=Sw,t.radialLine=Sw,t.pointRadial=Ew,t.linkHorizontal=Zc,t.linkVertical=Gc,t.linkRadial=Qc,t.symbol=Zw,t.symbols=$w,t.symbolCircle=zw,t.symbolCross=Pw,t.symbolDiamond=Dw,t.symbolSquare=Yw,t.symbolStar=Fw,t.symbolTriangle=Hw,t.symbolWye=Vw,t.curveBasisClosed=Jw,t.curveBasisOpen=Kw,t.curveBasis=Qw,t.curveBundle=tM,t.curveCardinalClosed=eM,t.curveCardinalOpen=rM,t.curveCardinal=nM,t.curveCatmullRomClosed=oM,t.curveCatmullRomOpen=uM,t.curveCatmullRom=iM,t.curveLinearClosed=aM,t.curveLinear=xw,t.curveMonotoneX=ms,t.curveMonotoneY=xs,t.curveNatural=cM,t.curveStep=sM,t.curveStepAfter=Ns,t.curveStepBefore=Ts,t.stack=hM,t.stackOffsetExpand=pM,t.stackOffsetDiverging=dM,t.stackOffsetNone=fM,t.stackOffsetSilhouette=vM,t.stackOffsetWiggle=gM,t.stackOrderAscending=yM,t.stackOrderDescending=_M,t.stackOrderInsideOut=mM,t.stackOrderNone=lM,t.stackOrderReverse=xM,t.timeInterval=aa,t.timeMillisecond=zx,t.timeMilliseconds=Px,t.utcMillisecond=zx,t.utcMilliseconds=Px,t.timeSecond=Dx,t.timeSeconds=qx,t.utcSecond=Dx,t.utcSeconds=qx,t.timeMinute=Ux,t.timeMinutes=Ox,t.timeHour=Fx,t.timeHours=Yx,t.timeDay=Ix,t.timeDays=Hx,t.timeWeek=Bx,t.timeWeeks=Gx,t.timeSunday=Bx,t.timeSundays=Gx,t.timeMonday=jx,t.timeMondays=Qx,t.timeTuesday=Xx,t.timeTuesdays=Jx,t.timeWednesday=Wx,t.timeWednesdays=Kx,t.timeThursday=Vx,t.timeThursdays=tb,t.timeFriday=$x,t.timeFridays=nb,t.timeSaturday=Zx,t.timeSaturdays=eb,t.timeMonth=rb,t.timeMonths=ib,t.timeYear=ob,t.timeYears=ub,t.utcMinute=ab,t.utcMinutes=cb,t.utcHour=sb,t.utcHours=fb,t.utcDay=lb,t.utcDays=hb,t.utcWeek=pb,t.utcWeeks=xb,t.utcSunday=pb,t.utcSundays=xb,t.utcMonday=db,t.utcMondays=bb,t.utcTuesday=vb,t.utcTuesdays=wb,t.utcWednesday=gb,t.utcWednesdays=Mb,t.utcThursday=yb,t.utcThursdays=Tb,t.utcFriday=_b,t.utcFridays=Nb,t.utcSaturday=mb,t.utcSaturdays=kb,t.utcMonth=Sb,t.utcMonths=Ab,t.utcYear=Eb,t.utcYears=zb,t.timeFormatDefaultLocale=xc,t.timeFormatLocale=pa,t.isoFormat=qb,t.isoParse=Ub,t.now=_n,t.timer=bn,t.timerFlush=wn,t.timeout=Op,t.interval=Fp,t.transition=ie,t.active=jd,t.interrupt=Gp,t.voronoi=zM,t.zoom=DM,t.zoomTransform=sf,t.zoomIdentity=RM,t.wordwrap=VM,t.parseAttributes=UM,t.f=_f,t.ascendingKey=$M;t.descendingKey=ZM,t.conventions=GM,t.drawAxis=QM,t.attachTooltip=KM,t.loadData=tT,t.nestBy=nT,t.round=eT,t.clamp=JM,t.polygonClip=rT,t.graphScroll=wf,Object.defineProperty(t,"__esModule",{value:!0})});
[{"months":[-5.4,-.1,2.6,5.6,11.8,15.1,18.6,15.9,12.1,5,5.7,.9],"avg_temp":7.31666666666667,"year":1881},{"months":[.4,1.5,6,7.7,12,14.3,16.8,14.9,13.1,8.9,3.9,.6],"avg_temp":8.34166666666667,"year":1882},{"months":[-.3,2.3,-1.7,6.1,12.4,16.2,16.7,15.9,13.4,8.5,4.3,.8],"avg_temp":7.88333333333333,"year":1883},{"months":[2.9,2.7,4.7,6.1,12.7,13.1,18.2,17,14.3,7.9,1.7,1.7],"avg_temp":8.58333333333333,"year":1884},{"months":[-2.8,3,2.5,9.2,10,16.7,17.3,14.6,12.7,7.4,2.7,-.3],"avg_temp":7.75,"year":1885},{"months":[-1.3,-2.9,.4,8.7,12.7,14.3,16.8,16.9,15.1,9.5,5.1,.8],"avg_temp":8.00833333333333,"year":1886},{"months":[-3.7,-.8,1.1,7.1,10,15.5,18.7,15.7,12.2,5.5,3.1,-.8],"avg_temp":6.96666666666667,"year":1887},{"months":[-1.9,-2.6,.7,5.7,12.1,15.8,14.7,15.1,12.5,6.4,3.3,.6],"avg_temp":6.86666666666667,"year":1888},{"months":[-2.4,-2.6,.3,6.9,15.8,18.6,16.4,15.4,11.1,8,2.7,-1.6],"avg_temp":7.38333333333333,"year":1889},{"months":[2,-2.6,4.1,6.8,13.6,13.9,15.4,16.5,13.1,7.2,2.9,-5.3],"avg_temp":7.3,"year":1890},{"months":[-4.5,-.6,2.6,5.1,12.7,14.7,16.2,15,13.8,9.9,2.7,1.7],"avg_temp":7.44166666666667,"year":1891},{"months":[-1.8,.5,.5,7,12.2,15.1,16,18.1,13.8,7.5,3,-1.9],"avg_temp":7.5,"year":1892},{"months":[-7.3,1.8,4.3,8.8,12.3,15.8,17.4,17,12.4,9.8,2.2,.3],"avg_temp":7.9,"year":1893},{"months":[-1.8,1.6,4.7,9.9,11.3,14.2,17.8,15.4,11,8,4.9,.5],"avg_temp":8.125,"year":1894},{"months":[-4,-6.8,1.4,8.6,12.2,15.7,17.2,16.5,15.2,7.1,4.8,-.1],"avg_temp":7.31666666666667,"year":1895},{"months":[-.8,-.2,5.3,5.9,10.7,16.7,17,14.3,12.8,8.6,1.2,-.5],"avg_temp":7.58333333333333,"year":1896},{"months":[-2.9,1.2,5,7.2,10.6,17,16.5,17.1,12.3,7.3,2.8,1.3],"avg_temp":7.95,"year":1897},{"months":[2.3,1.1,2.9,7.3,11.3,14.8,14.4,18,13.6,8.9,4.7,3],"avg_temp":8.525,"year":1898},{"months":[2.1,2,2.6,7.1,11.1,14.7,17.3,16.8,12.5,7.8,6.4,-3.3],"avg_temp":8.09166666666667,"year":1899},{"months":[.7,1.1,.6,6.5,10.8,16,18.4,16.2,13.8,8.6,4.7,2.8],"avg_temp":8.35,"year":1900},{"months":[-3.7,-4.1,2.1,8,12.8,15.6,18.5,16.4,13.4,9.1,2.7,.9],"avg_temp":7.64166666666667,"year":1901},{"months":[2.8,-1.3,3.4,7.8,8.6,15.3,15.8,14.7,12,7.1,1.6,-1.8],"avg_temp":7.16666666666667,"year":1902},{"months":[.3,3.6,5.7,4.7,12.6,14.8,16.2,15.4,13.5,9.6,4.4,-.8],"avg_temp":8.33333333333333,"year":1903},{"months":[-1.3,1.1,3,8.8,12.3,15.2,18.8,16.5,11.9,8.3,3.3,2.4],"avg_temp":8.35833333333333,"year":1904},{"months":[-1.8,1.3,4.5,5.9,12.1,17,18.6,16.5,12.8,4.5,3.1,1],"avg_temp":7.95833333333333,"year":1905},{"months":[1,.3,2.2,8,13.1,14.7,17.2,16.5,12.5,9.8,6.3,-2.2],"avg_temp":8.28333333333333,"year":1906},{"months":[-.3,-1.5,2.6,6.1,12.9,14.6,14.5,15.7,13.1,11.2,3.3,1.5],"avg_temp":7.80833333333333,"year":1907},{"months":[-2.2,1.2,2.3,5.4,13.2,17,17.2,14.5,12.1,8.1,1.5,-.5],"avg_temp":7.48333333333333,"year":1908},{"months":[-1.6,-2.5,1.5,7.8,10.9,14.1,15,16.2,12.7,10.2,2,1.9],"avg_temp":7.35,"year":1909},{"months":[1.4,2.4,3.7,7.3,12.3,16.5,15.5,15.8,12,9.1,2.2,2.6],"avg_temp":8.4,"year":1910},{"months":[-1.1,1.3,4,7.2,13.1,14.9,19.2,19.4,14.4,8.5,4.7,3],"avg_temp":9.05,"year":1911},{"months":[-1.5,2.3,6,6.9,11.9,15.6,17.9,14,9.1,6.5,2.6,3.1],"avg_temp":7.86666666666667,"year":1912},{"months":[-.2,1.3,6,7.8,12.4,14.8,14.6,14.8,12.6,9.5,6.8,2],"avg_temp":8.53333333333333,"year":1913},{"months":[-3,3.1,4.7,9.8,10.9,14.6,17.6,17.2,12.4,8.2,3.4,3.5],"avg_temp":8.53333333333333,"year":1914},{"months":[.2,1,1.7,6.9,13.1,17.5,16.2,15.2,11.8,6.4,1.5,3.5],"avg_temp":7.91666666666667,"year":1915},{"months":[3.8,.8,3.9,8.2,13.1,12.8,16,15.9,12,8.5,4.5,1.8],"avg_temp":8.44166666666667,"year":1916},{"months":[-2.6,-3.8,0,4.3,15,18.8,17.3,16.7,14.5,7.2,5.1,-2.1],"avg_temp":7.53333333333333,"year":1917},{"months":[.7,1.7,4,9,14,13,16.5,15.9,12.9,7.9,3,3.9],"avg_temp":8.54166666666667,"year":1918},{"months":[.7,-.5,3,5.6,11.6,15,14.4,16.1,14.7,6,.5,.8],"avg_temp":7.325,"year":1919},{"months":[2.3,3,6.1,9.4,13.8,14.9,17.4,15,13,6.9,1.2,.6],"avg_temp":8.63333333333333,"year":1920},{"months":[4.2,1.3,5.6,7.8,14,14.4,18.7,17.3,13.5,11,-.2,.5],"avg_temp":9.00833333333333,"year":1921},{"months":[-2.7,-1.3,3.5,5.5,13.6,15.7,15.7,15.4,11.2,5,2.5,2.2],"avg_temp":7.19166666666667,"year":1922},{"months":[1.5,1,4.9,6.8,11.4,11.2,18.6,15.7,13.1,10.3,2.9,-1.7],"avg_temp":7.975,"year":1923},{"months":[-2.9,-2.6,2.2,6.3,13.7,15.1,16.7,14.5,13.6,9.4,3,1.5],"avg_temp":7.54166666666667,"year":1924},{"months":[2.5,3.6,1.3,8.2,13.9,15,17.9,16.5,11,8.5,2,-.4],"avg_temp":8.33333333333333,"year":1925},{"months":[0,4.4,4,9.7,10.7,13.8,17.4,16,14.6,7.8,6,.6],"avg_temp":8.75,"year":1926},{"months":[1.8,.9,5.9,7.1,10.9,14.1,17.3,16.4,13.5,8.6,2.7,-2.6],"avg_temp":8.05,"year":1927},{"months":[1.6,2.5,2.9,7.5,10.1,14.1,18.4,16.2,12.5,8.6,6.2,-.3],"avg_temp":8.35833333333333,"year":1928},{"months":[-4.7,-9.6,2.6,4.5,13.1,14.5,17.5,17.1,15.5,9.7,4.7,3.6],"avg_temp":7.375,"year":1929},{"months":[2.3,-.2,4.2,8.3,11.6,18.2,16.4,16,13.2,8.7,5.9,.6],"avg_temp":8.76666666666667,"year":1930},{"months":[.2,-1.2,.2,5.8,15.1,16.1,16.8,15.4,10.2,7.3,4.7,.1],"avg_temp":7.55833333333333,"year":1931},{"months":[1.8,-1.9,.8,7,12.5,14.6,17.9,18.7,15,8.5,4.2,.8],"avg_temp":8.325,"year":1932},{"months":[-2.6,.1,5.1,7,11.5,14.3,18.1,16.9,13.5,8.8,2.5,-3.9],"avg_temp":7.60833333333333,"year":1933},{"months":[.5,1.2,4.1,10.3,13.3,16.4,18.3,16.4,15.6,9.6,4.1,4.8],"avg_temp":9.55,"year":1934},{"months":[-.8,1.9,2.7,7.3,10.5,17.2,17.8,16.6,13.7,8.6,5.2,.4],"avg_temp":8.425,"year":1935},{"months":[3.1,.2,5,6.2,12.3,16.2,16.8,16.2,13,6.4,3.8,1.5],"avg_temp":8.39166666666667,"year":1936},{"months":[-.8,2.2,2.9,8,14.7,16.3,17.2,17.1,13.3,9.5,3.3,-.5],"avg_temp":8.6,"year":1937},{"months":[1.7,.9,7,5,10.7,16,16.7,17.7,13.8,8.7,7,-1.9],"avg_temp":8.60833333333333,"year":1938},{"months":[2.6,1.6,1.7,8.6,10.5,16.3,17,17.5,13.4,6.5,5.5,-1.6],"avg_temp":8.3,"year":1939},{"months":[-9,-4.3,2.8,7.9,12.2,16.7,16.2,14.5,12.4,7.6,5.4,-2.8],"avg_temp":6.63333333333333,"year":1940},{"months":[-5.4,-.2,3.3,5.5,9.2,16.3,18.6,15,12.3,8,2,1.5],"avg_temp":7.175,"year":1941},{"months":[-7.9,-5.4,1.4,7.5,12.1,14.4,16.1,17.6,15.1,11.1,3.3,2.1],"avg_temp":7.28333333333333,"year":1942},{"months":[-.4,2.9,5.6,9.3,12.8,14.4,17.7,17.9,13.8,9.9,2.7,.2],"avg_temp":8.9,"year":1943},{"months":[3.1,-1.1,.9,8.6,11.6,14.2,17.4,19.6,12.8,8.6,4.1,-.4],"avg_temp":8.28333333333333,"year":1944},{"months":[-4,4,6,8.8,14,16.6,17.9,16.2,13.8,9.7,3.6,1.3],"avg_temp":8.99166666666667,"year":1945},{"months":[-1.8,2.4,3.7,10.2,13.9,14.8,18.4,16.2,14.1,7,4,-2.3],"avg_temp":8.38333333333333,"year":1946},{"months":[-4.7,-6.6,2.6,9.4,14.7,17.9,18.9,18.9,16.8,7.8,5.3,1.4],"avg_temp":8.53333333333333,"year":1947},{"months":[3.1,.5,5.7,10,13.6,15.6,16.2,16.4,13.8,8.7,4.2,.9],"avg_temp":9.05833333333333,"year":1948},{"months":[1.2,1.7,2,10.3,12.2,14.1,17.6,17,16.3,10.6,3.7,3],"avg_temp":9.14166666666667,"year":1949},{"months":[-1,3,4.8,6.8,13.8,17.6,18,17.5,12.9,7.8,4.3,-2],"avg_temp":8.625,"year":1950},{"months":[1.5,1.9,2.2,7.3,11.5,15.3,17.1,17.2,14.5,7.3,6.5,2.5],"avg_temp":8.73333333333333,"year":1951},{"months":[.2,-.1,2.6,10.3,12.3,15.2,18.3,17.8,10.5,7.2,1.7,-.5],"avg_temp":7.95833333333333,"year":1952},{"months":[-.8,-.1,4.8,9,13.2,16.1,17.4,16.4,13.5,10.4,4.8,2.5],"avg_temp":8.93333333333333,"year":1953},{"months":[-3.2,-3.5,4.3,5.8,12.2,16,14.4,15.8,13.5,9.9,4.1,3.2],"avg_temp":7.70833333333333,"year":1954},{"months":[-1.7,-1.9,.4,6.9,10.3,14.6,17.4,16.8,13.4,8,3.8,2.6],"avg_temp":7.55,"year":1955},{"months":[.2,-9.6,2.9,5.3,12.5,13.2,16.9,14.1,13.8,8.2,2.5,2],"avg_temp":6.83333333333333,"year":1956},{"months":[.3,3.8,6.4,7.5,9.7,16.7,17.7,15.1,11.8,9.2,4.5,.5],"avg_temp":8.6,"year":1957},{"months":[-.4,1.9,-.3,5.2,13.3,14.5,17,16.9,14.5,9.3,4.3,2.5],"avg_temp":8.225,"year":1958},{"months":[-.1,-.1,6.2,9.4,12.7,16.1,19.3,17.3,13.5,8.5,3.3,2.2],"avg_temp":9.025,"year":1959},{"months":[-.1,.4,4.3,7.4,12.8,16.2,15.4,15.8,12.5,9.1,6,1.2],"avg_temp":8.41666666666667,"year":1960},{"months":[-.8,4.4,6,10.6,10.3,16,15.1,15.7,16.3,10.5,3.7,-.6],"avg_temp":8.93333333333333,"year":1961},{"months":[1.7,.3,.2,8.2,9.8,14.2,15,15.8,12.3,9,2.7,-3.3],"avg_temp":7.15833333333333,"year":1962},{"months":[-7.4,-5.7,2.5,8.4,12,15.8,17.7,15.9,13.7,8.1,7.4,-3.1],"avg_temp":7.10833333333333,"year":1963},{"months":[-2.6,.6,.6,8.6,13.6,16.9,18.1,15.9,13.6,7.1,4.9,.4],"avg_temp":8.14166666666667,"year":1964},{"months":[1.2,-1.8,2.3,6.7,11.2,15.5,15,14.9,12.7,8.2,1.4,2.6],"avg_temp":7.49166666666667,"year":1965},{"months":[-2.7,3.5,3.3,8.6,13,16.9,15.6,15.5,13.2,11.1,2.2,2],"avg_temp":8.51666666666667,"year":1966},{"months":[.7,2.8,5.4,6.5,12.5,14.7,18.6,16.4,13.8,11.1,3.9,.4],"avg_temp":8.9,"year":1967},{"months":[-1.1,.7,4.4,9,10.9,16,16.2,16.4,13.4,10.2,3.7,-2],"avg_temp":8.15,"year":1968},{"months":[.5,-2.1,.9,7,12.9,14.8,18.4,16.5,13.8,10,5.1,-4.7],"avg_temp":7.75833333333333,"year":1969},{"months":[-2.6,-1.1,1.2,5.3,11.4,17.2,16.1,16.8,13.2,8.9,5.8,.5],"avg_temp":7.725,"year":1970},{"months":[-1.1,1.4,1,8.2,14,13.9,18,17.8,12,8.8,3.5,3.6],"avg_temp":8.425,"year":1971},{"months":[-2.3,2,5.3,7.2,11.3,14.5,17.7,15.7,10.7,6.8,4.3,.8],"avg_temp":7.83333333333333,"year":1972},{"months":[0,1,3.9,5.1,12.5,16.1,17.2,17.7,14.1,7.3,3.3,.2],"avg_temp":8.2,"year":1973},{"months":[3.3,3.2,5.7,8,11,14.1,15.3,17.1,13.2,5.5,4.9,4.8],"avg_temp":8.84166666666667,"year":1974},{"months":[4.5,1.4,3.6,6.8,11.8,14.7,18.2,18.8,15.5,7.5,3.1,1.2],"avg_temp":8.925,"year":1975},{"months":[1.2,.5,1.3,6.9,12.8,17.4,19.3,16.2,12.7,9.5,4.8,-1],"avg_temp":8.46666666666667,"year":1976},{"months":[.4,3,6.1,5.7,11.7,15.5,16.5,15.9,11.9,10.2,5.1,2.1],"avg_temp":8.675,"year":1977},{"months":[.8,-1.4,4.8,6.5,11.6,14.8,15.5,15.1,12.2,9.1,4.2,.3],"avg_temp":7.79166666666667,"year":1978},{"months":[-4.5,-1.8,3.7,6.3,12.4,16.5,15.3,15.5,13.1,8.6,3.7,3.8],"avg_temp":7.71666666666667,"year":1979},{"months":[-2.7,2.1,3.3,6,10.7,14.7,15.1,16.6,13.9,8,3,.7],"avg_temp":7.61666666666667,"year":1980},{"months":[-1.5,-.4,6.8,7.8,13.2,15.3,16.4,16.4,14,8.1,4.6,-2.2],"avg_temp":8.20833333333333,"year":1981},{"months":[-2.3,-.1,4.2,6.5,12.4,16.3,18.9,17.3,15.7,9.7,6,2.2],"avg_temp":8.9,"year":1982},{"months":[4,-1.7,4.6,8.6,11.3,16.3,20.4,18.1,13.7,9.2,3.5,.7],"avg_temp":9.05833333333333,"year":1983},{"months":[1.1,-.3,2,6.8,10.8,13.7,15.9,17,12.3,10.2,4.9,1.2],"avg_temp":7.96666666666667,"year":1984},{"months":[-5.5,-3.1,2.8,7.6,13.4,13.5,17.4,16.2,13.5,8.8,.8,3.7],"avg_temp":7.425,"year":1985},{"months":[.1,-6.4,3,6.3,14.1,15.9,17,16.3,11.3,9.6,5.9,2.1],"avg_temp":7.93333333333333,"year":1986},{"months":[-5.9,-.3,-.4,9.1,9.7,13.9,16.9,15.5,14.5,9.4,4.9,2.1],"avg_temp":7.45,"year":1987},{"months":[3.5,2.1,2.7,8,14.2,15,17,17,13.2,9.7,3,3.4],"avg_temp":9.06666666666667,"year":1988},{"months":[2.5,3.4,7,7.2,13.8,15.3,17.7,17,14.4,10.4,2.7,2.4],"avg_temp":9.48333333333333,"year":1989},{"months":[2.5,5.7,6.9,7.4,13.9,15.2,16.7,18.3,11.8,10.2,4.5,.8],"avg_temp":9.49166666666667,"year":1990},{"months":[1.5,-2.4,6.4,7.1,9.5,13.5,19.2,17.9,14.8,8.2,4,.7],"avg_temp":8.36666666666667,"year":1991},{"months":[1,2.8,4.8,7.8,14.5,17.3,18.6,19.1,13.4,6.5,5.4,1.3],"avg_temp":9.375,"year":1992},{"months":[2.5,-.7,3.6,10.4,14.6,15.7,16.1,15.8,12.2,7.9,.4,3.2],"avg_temp":8.475,"year":1993},{"months":[3,-.2,6.3,7.9,12.6,15.9,21.3,17.8,13.2,7.6,7.2,3.6],"avg_temp":9.68333333333333,"year":1994},{"months":[.2,4.6,3.1,8.5,12.2,14.3,20.1,18.3,12.6,11.8,3,-1.8],"avg_temp":8.90833333333333,"year":1995},{"months":[-2.8,-2.2,1,8.4,11.2,15.7,15.9,17.2,10.9,9.2,4.5,-2.4],"avg_temp":7.21666666666667,"year":1996},{"months":[-2.6,4.1,5.8,6.4,12.7,15.9,17.2,19.8,13.7,7.7,4,2.2],"avg_temp":8.90833333333333,"year":1997},{"months":[2.4,4.3,5,8.9,14,16.5,16.4,16.7,13.4,8.7,1.6,1],"avg_temp":9.075,"year":1998},{"months":[2.6,.4,5.4,8.9,13.8,15.2,19,17.2,16.8,9,3.5,2.2],"avg_temp":9.5,"year":1999},{"months":[1.1,3.9,5.2,10.2,14.6,17,15.3,17.6,13.9,10.6,6.1,3.1],"avg_temp":9.88333333333333,"year":2e3},{"months":[.9,2.3,4.2,7.1,14.4,14.3,18.6,18.6,11.8,12.5,3.8,-.2],"avg_temp":9.025,"year":2001},{"months":[1.2,5.1,5.4,8.1,13.8,17.4,17.7,18.8,13.2,8.3,5.6,.3],"avg_temp":9.575,"year":2002},{"months":[-.3,-1.9,5.3,8.5,14.1,19.4,19.1,20.6,13.9,5.9,6,1.8],"avg_temp":9.36666666666667,"year":2003},{"months":[-.1,2.4,4.1,9.4,11.6,15.3,16.8,18.4,14,10.1,4.2,1.1],"avg_temp":8.94166666666667,"year":2004},{"months":[2,-1,3.6,9.3,12.8,16.4,18,15.8,15,11,4.2,.9],"avg_temp":9,"year":2005},{"months":[-2.6,-.4,1.5,8,13.1,16.8,22,15.5,16.9,12.1,7,4.4],"avg_temp":9.525,"year":2006},{"months":[4.8,3.9,6.2,11.5,14.2,17.4,17.2,16.9,12.6,8.4,3.7,1.6],"avg_temp":9.86666666666667,"year":2007},{"months":[3.7,3.7,4.2,7.6,14.5,16.9,18,17.4,12.4,9.1,5.1,1.1],"avg_temp":9.475,"year":2008},{"months":[-2.2,.5,4.3,11.8,13.6,14.8,18,18.7,14.7,8.2,7.4,.3],"avg_temp":9.175,"year":2009},{"months":[-3.7,-.5,4.2,8.7,10.4,16.3,20.3,16.7,12.4,8.1,4.8,-3.7],"avg_temp":7.83333333333333,"year":2010},{"months":[1,.9,4.9,11.6,13.9,16.5,16.1,17.7,15.2,9.4,4.5,3.9],"avg_temp":9.63333333333333,"year":2011},{"months":[1.9,-2.5,6.9,8.2,14.2,15.5,17.4,18.4,13.6,8.7,5.2,1.5],"avg_temp":9.08333333333333,"year":2012},{"months":[.2,-.7,.1,8.1,11.8,15.7,19.5,17.9,13.3,10.6,4.6,3.6],"avg_temp":8.725,"year":2013},{"months":[2.1,4.3,6.9,10.8,12.4,16.1,19.3,16,14.9,11.9,6.5,2.7],"avg_temp":10.325,"year":2014},{"months":[2.2,.7,5.2,8.4,12.3,15.8,19.4,19.9,13,8.4,7.5,6.5],"avg_temp":9.94166666666667,"year":2015},{"months":[1,3.3,4,7.9,13.7,17,18.6,17.7,16.9,8.5,3.8,2.2],"avg_temp":9.55,"year":2016},{"months":[-2.2,2.9,7.2,7.4,14.1,17.8,18.1,17.9,12.8,11.1,5.1,2.7],"avg_temp":9.575,"year":2017}]
var years = [{"months":[-5.4,-.1,2.6,5.6,11.8,15.1,18.6,15.9,12.1,5,5.7,.9],"avg_temp":7.31666666666667,"year":1881},{"months":[.4,1.5,6,7.7,12,14.3,16.8,14.9,13.1,8.9,3.9,.6],"avg_temp":8.34166666666667,"year":1882},{"months":[-.3,2.3,-1.7,6.1,12.4,16.2,16.7,15.9,13.4,8.5,4.3,.8],"avg_temp":7.88333333333333,"year":1883},{"months":[2.9,2.7,4.7,6.1,12.7,13.1,18.2,17,14.3,7.9,1.7,1.7],"avg_temp":8.58333333333333,"year":1884},{"months":[-2.8,3,2.5,9.2,10,16.7,17.3,14.6,12.7,7.4,2.7,-.3],"avg_temp":7.75,"year":1885},{"months":[-1.3,-2.9,.4,8.7,12.7,14.3,16.8,16.9,15.1,9.5,5.1,.8],"avg_temp":8.00833333333333,"year":1886},{"months":[-3.7,-.8,1.1,7.1,10,15.5,18.7,15.7,12.2,5.5,3.1,-.8],"avg_temp":6.96666666666667,"year":1887},{"months":[-1.9,-2.6,.7,5.7,12.1,15.8,14.7,15.1,12.5,6.4,3.3,.6],"avg_temp":6.86666666666667,"year":1888},{"months":[-2.4,-2.6,.3,6.9,15.8,18.6,16.4,15.4,11.1,8,2.7,-1.6],"avg_temp":7.38333333333333,"year":1889},{"months":[2,-2.6,4.1,6.8,13.6,13.9,15.4,16.5,13.1,7.2,2.9,-5.3],"avg_temp":7.3,"year":1890},{"months":[-4.5,-.6,2.6,5.1,12.7,14.7,16.2,15,13.8,9.9,2.7,1.7],"avg_temp":7.44166666666667,"year":1891},{"months":[-1.8,.5,.5,7,12.2,15.1,16,18.1,13.8,7.5,3,-1.9],"avg_temp":7.5,"year":1892},{"months":[-7.3,1.8,4.3,8.8,12.3,15.8,17.4,17,12.4,9.8,2.2,.3],"avg_temp":7.9,"year":1893},{"months":[-1.8,1.6,4.7,9.9,11.3,14.2,17.8,15.4,11,8,4.9,.5],"avg_temp":8.125,"year":1894},{"months":[-4,-6.8,1.4,8.6,12.2,15.7,17.2,16.5,15.2,7.1,4.8,-.1],"avg_temp":7.31666666666667,"year":1895},{"months":[-.8,-.2,5.3,5.9,10.7,16.7,17,14.3,12.8,8.6,1.2,-.5],"avg_temp":7.58333333333333,"year":1896},{"months":[-2.9,1.2,5,7.2,10.6,17,16.5,17.1,12.3,7.3,2.8,1.3],"avg_temp":7.95,"year":1897},{"months":[2.3,1.1,2.9,7.3,11.3,14.8,14.4,18,13.6,8.9,4.7,3],"avg_temp":8.525,"year":1898},{"months":[2.1,2,2.6,7.1,11.1,14.7,17.3,16.8,12.5,7.8,6.4,-3.3],"avg_temp":8.09166666666667,"year":1899},{"months":[.7,1.1,.6,6.5,10.8,16,18.4,16.2,13.8,8.6,4.7,2.8],"avg_temp":8.35,"year":1900},{"months":[-3.7,-4.1,2.1,8,12.8,15.6,18.5,16.4,13.4,9.1,2.7,.9],"avg_temp":7.64166666666667,"year":1901},{"months":[2.8,-1.3,3.4,7.8,8.6,15.3,15.8,14.7,12,7.1,1.6,-1.8],"avg_temp":7.16666666666667,"year":1902},{"months":[.3,3.6,5.7,4.7,12.6,14.8,16.2,15.4,13.5,9.6,4.4,-.8],"avg_temp":8.33333333333333,"year":1903},{"months":[-1.3,1.1,3,8.8,12.3,15.2,18.8,16.5,11.9,8.3,3.3,2.4],"avg_temp":8.35833333333333,"year":1904},{"months":[-1.8,1.3,4.5,5.9,12.1,17,18.6,16.5,12.8,4.5,3.1,1],"avg_temp":7.95833333333333,"year":1905},{"months":[1,.3,2.2,8,13.1,14.7,17.2,16.5,12.5,9.8,6.3,-2.2],"avg_temp":8.28333333333333,"year":1906},{"months":[-.3,-1.5,2.6,6.1,12.9,14.6,14.5,15.7,13.1,11.2,3.3,1.5],"avg_temp":7.80833333333333,"year":1907},{"months":[-2.2,1.2,2.3,5.4,13.2,17,17.2,14.5,12.1,8.1,1.5,-.5],"avg_temp":7.48333333333333,"year":1908},{"months":[-1.6,-2.5,1.5,7.8,10.9,14.1,15,16.2,12.7,10.2,2,1.9],"avg_temp":7.35,"year":1909},{"months":[1.4,2.4,3.7,7.3,12.3,16.5,15.5,15.8,12,9.1,2.2,2.6],"avg_temp":8.4,"year":1910},{"months":[-1.1,1.3,4,7.2,13.1,14.9,19.2,19.4,14.4,8.5,4.7,3],"avg_temp":9.05,"year":1911},{"months":[-1.5,2.3,6,6.9,11.9,15.6,17.9,14,9.1,6.5,2.6,3.1],"avg_temp":7.86666666666667,"year":1912},{"months":[-.2,1.3,6,7.8,12.4,14.8,14.6,14.8,12.6,9.5,6.8,2],"avg_temp":8.53333333333333,"year":1913},{"months":[-3,3.1,4.7,9.8,10.9,14.6,17.6,17.2,12.4,8.2,3.4,3.5],"avg_temp":8.53333333333333,"year":1914},{"months":[.2,1,1.7,6.9,13.1,17.5,16.2,15.2,11.8,6.4,1.5,3.5],"avg_temp":7.91666666666667,"year":1915},{"months":[3.8,.8,3.9,8.2,13.1,12.8,16,15.9,12,8.5,4.5,1.8],"avg_temp":8.44166666666667,"year":1916},{"months":[-2.6,-3.8,0,4.3,15,18.8,17.3,16.7,14.5,7.2,5.1,-2.1],"avg_temp":7.53333333333333,"year":1917},{"months":[.7,1.7,4,9,14,13,16.5,15.9,12.9,7.9,3,3.9],"avg_temp":8.54166666666667,"year":1918},{"months":[.7,-.5,3,5.6,11.6,15,14.4,16.1,14.7,6,.5,.8],"avg_temp":7.325,"year":1919},{"months":[2.3,3,6.1,9.4,13.8,14.9,17.4,15,13,6.9,1.2,.6],"avg_temp":8.63333333333333,"year":1920},{"months":[4.2,1.3,5.6,7.8,14,14.4,18.7,17.3,13.5,11,-.2,.5],"avg_temp":9.00833333333333,"year":1921},{"months":[-2.7,-1.3,3.5,5.5,13.6,15.7,15.7,15.4,11.2,5,2.5,2.2],"avg_temp":7.19166666666667,"year":1922},{"months":[1.5,1,4.9,6.8,11.4,11.2,18.6,15.7,13.1,10.3,2.9,-1.7],"avg_temp":7.975,"year":1923},{"months":[-2.9,-2.6,2.2,6.3,13.7,15.1,16.7,14.5,13.6,9.4,3,1.5],"avg_temp":7.54166666666667,"year":1924},{"months":[2.5,3.6,1.3,8.2,13.9,15,17.9,16.5,11,8.5,2,-.4],"avg_temp":8.33333333333333,"year":1925},{"months":[0,4.4,4,9.7,10.7,13.8,17.4,16,14.6,7.8,6,.6],"avg_temp":8.75,"year":1926},{"months":[1.8,.9,5.9,7.1,10.9,14.1,17.3,16.4,13.5,8.6,2.7,-2.6],"avg_temp":8.05,"year":1927},{"months":[1.6,2.5,2.9,7.5,10.1,14.1,18.4,16.2,12.5,8.6,6.2,-.3],"avg_temp":8.35833333333333,"year":1928},{"months":[-4.7,-9.6,2.6,4.5,13.1,14.5,17.5,17.1,15.5,9.7,4.7,3.6],"avg_temp":7.375,"year":1929},{"months":[2.3,-.2,4.2,8.3,11.6,18.2,16.4,16,13.2,8.7,5.9,.6],"avg_temp":8.76666666666667,"year":1930},{"months":[.2,-1.2,.2,5.8,15.1,16.1,16.8,15.4,10.2,7.3,4.7,.1],"avg_temp":7.55833333333333,"year":1931},{"months":[1.8,-1.9,.8,7,12.5,14.6,17.9,18.7,15,8.5,4.2,.8],"avg_temp":8.325,"year":1932},{"months":[-2.6,.1,5.1,7,11.5,14.3,18.1,16.9,13.5,8.8,2.5,-3.9],"avg_temp":7.60833333333333,"year":1933},{"months":[.5,1.2,4.1,10.3,13.3,16.4,18.3,16.4,15.6,9.6,4.1,4.8],"avg_temp":9.55,"year":1934},{"months":[-.8,1.9,2.7,7.3,10.5,17.2,17.8,16.6,13.7,8.6,5.2,.4],"avg_temp":8.425,"year":1935},{"months":[3.1,.2,5,6.2,12.3,16.2,16.8,16.2,13,6.4,3.8,1.5],"avg_temp":8.39166666666667,"year":1936},{"months":[-.8,2.2,2.9,8,14.7,16.3,17.2,17.1,13.3,9.5,3.3,-.5],"avg_temp":8.6,"year":1937},{"months":[1.7,.9,7,5,10.7,16,16.7,17.7,13.8,8.7,7,-1.9],"avg_temp":8.60833333333333,"year":1938},{"months":[2.6,1.6,1.7,8.6,10.5,16.3,17,17.5,13.4,6.5,5.5,-1.6],"avg_temp":8.3,"year":1939},{"months":[-9,-4.3,2.8,7.9,12.2,16.7,16.2,14.5,12.4,7.6,5.4,-2.8],"avg_temp":6.63333333333333,"year":1940},{"months":[-5.4,-.2,3.3,5.5,9.2,16.3,18.6,15,12.3,8,2,1.5],"avg_temp":7.175,"year":1941},{"months":[-7.9,-5.4,1.4,7.5,12.1,14.4,16.1,17.6,15.1,11.1,3.3,2.1],"avg_temp":7.28333333333333,"year":1942},{"months":[-.4,2.9,5.6,9.3,12.8,14.4,17.7,17.9,13.8,9.9,2.7,.2],"avg_temp":8.9,"year":1943},{"months":[3.1,-1.1,.9,8.6,11.6,14.2,17.4,19.6,12.8,8.6,4.1,-.4],"avg_temp":8.28333333333333,"year":1944},{"months":[-4,4,6,8.8,14,16.6,17.9,16.2,13.8,9.7,3.6,1.3],"avg_temp":8.99166666666667,"year":1945},{"months":[-1.8,2.4,3.7,10.2,13.9,14.8,18.4,16.2,14.1,7,4,-2.3],"avg_temp":8.38333333333333,"year":1946},{"months":[-4.7,-6.6,2.6,9.4,14.7,17.9,18.9,18.9,16.8,7.8,5.3,1.4],"avg_temp":8.53333333333333,"year":1947},{"months":[3.1,.5,5.7,10,13.6,15.6,16.2,16.4,13.8,8.7,4.2,.9],"avg_temp":9.05833333333333,"year":1948},{"months":[1.2,1.7,2,10.3,12.2,14.1,17.6,17,16.3,10.6,3.7,3],"avg_temp":9.14166666666667,"year":1949},{"months":[-1,3,4.8,6.8,13.8,17.6,18,17.5,12.9,7.8,4.3,-2],"avg_temp":8.625,"year":1950},{"months":[1.5,1.9,2.2,7.3,11.5,15.3,17.1,17.2,14.5,7.3,6.5,2.5],"avg_temp":8.73333333333333,"year":1951},{"months":[.2,-.1,2.6,10.3,12.3,15.2,18.3,17.8,10.5,7.2,1.7,-.5],"avg_temp":7.95833333333333,"year":1952},{"months":[-.8,-.1,4.8,9,13.2,16.1,17.4,16.4,13.5,10.4,4.8,2.5],"avg_temp":8.93333333333333,"year":1953},{"months":[-3.2,-3.5,4.3,5.8,12.2,16,14.4,15.8,13.5,9.9,4.1,3.2],"avg_temp":7.70833333333333,"year":1954},{"months":[-1.7,-1.9,.4,6.9,10.3,14.6,17.4,16.8,13.4,8,3.8,2.6],"avg_temp":7.55,"year":1955},{"months":[.2,-9.6,2.9,5.3,12.5,13.2,16.9,14.1,13.8,8.2,2.5,2],"avg_temp":6.83333333333333,"year":1956},{"months":[.3,3.8,6.4,7.5,9.7,16.7,17.7,15.1,11.8,9.2,4.5,.5],"avg_temp":8.6,"year":1957},{"months":[-.4,1.9,-.3,5.2,13.3,14.5,17,16.9,14.5,9.3,4.3,2.5],"avg_temp":8.225,"year":1958},{"months":[-.1,-.1,6.2,9.4,12.7,16.1,19.3,17.3,13.5,8.5,3.3,2.2],"avg_temp":9.025,"year":1959},{"months":[-.1,.4,4.3,7.4,12.8,16.2,15.4,15.8,12.5,9.1,6,1.2],"avg_temp":8.41666666666667,"year":1960},{"months":[-.8,4.4,6,10.6,10.3,16,15.1,15.7,16.3,10.5,3.7,-.6],"avg_temp":8.93333333333333,"year":1961},{"months":[1.7,.3,.2,8.2,9.8,14.2,15,15.8,12.3,9,2.7,-3.3],"avg_temp":7.15833333333333,"year":1962},{"months":[-7.4,-5.7,2.5,8.4,12,15.8,17.7,15.9,13.7,8.1,7.4,-3.1],"avg_temp":7.10833333333333,"year":1963},{"months":[-2.6,.6,.6,8.6,13.6,16.9,18.1,15.9,13.6,7.1,4.9,.4],"avg_temp":8.14166666666667,"year":1964},{"months":[1.2,-1.8,2.3,6.7,11.2,15.5,15,14.9,12.7,8.2,1.4,2.6],"avg_temp":7.49166666666667,"year":1965},{"months":[-2.7,3.5,3.3,8.6,13,16.9,15.6,15.5,13.2,11.1,2.2,2],"avg_temp":8.51666666666667,"year":1966},{"months":[.7,2.8,5.4,6.5,12.5,14.7,18.6,16.4,13.8,11.1,3.9,.4],"avg_temp":8.9,"year":1967},{"months":[-1.1,.7,4.4,9,10.9,16,16.2,16.4,13.4,10.2,3.7,-2],"avg_temp":8.15,"year":1968},{"months":[.5,-2.1,.9,7,12.9,14.8,18.4,16.5,13.8,10,5.1,-4.7],"avg_temp":7.75833333333333,"year":1969},{"months":[-2.6,-1.1,1.2,5.3,11.4,17.2,16.1,16.8,13.2,8.9,5.8,.5],"avg_temp":7.725,"year":1970},{"months":[-1.1,1.4,1,8.2,14,13.9,18,17.8,12,8.8,3.5,3.6],"avg_temp":8.425,"year":1971},{"months":[-2.3,2,5.3,7.2,11.3,14.5,17.7,15.7,10.7,6.8,4.3,.8],"avg_temp":7.83333333333333,"year":1972},{"months":[0,1,3.9,5.1,12.5,16.1,17.2,17.7,14.1,7.3,3.3,.2],"avg_temp":8.2,"year":1973},{"months":[3.3,3.2,5.7,8,11,14.1,15.3,17.1,13.2,5.5,4.9,4.8],"avg_temp":8.84166666666667,"year":1974},{"months":[4.5,1.4,3.6,6.8,11.8,14.7,18.2,18.8,15.5,7.5,3.1,1.2],"avg_temp":8.925,"year":1975},{"months":[1.2,.5,1.3,6.9,12.8,17.4,19.3,16.2,12.7,9.5,4.8,-1],"avg_temp":8.46666666666667,"year":1976},{"months":[.4,3,6.1,5.7,11.7,15.5,16.5,15.9,11.9,10.2,5.1,2.1],"avg_temp":8.675,"year":1977},{"months":[.8,-1.4,4.8,6.5,11.6,14.8,15.5,15.1,12.2,9.1,4.2,.3],"avg_temp":7.79166666666667,"year":1978},{"months":[-4.5,-1.8,3.7,6.3,12.4,16.5,15.3,15.5,13.1,8.6,3.7,3.8],"avg_temp":7.71666666666667,"year":1979},{"months":[-2.7,2.1,3.3,6,10.7,14.7,15.1,16.6,13.9,8,3,.7],"avg_temp":7.61666666666667,"year":1980},{"months":[-1.5,-.4,6.8,7.8,13.2,15.3,16.4,16.4,14,8.1,4.6,-2.2],"avg_temp":8.20833333333333,"year":1981},{"months":[-2.3,-.1,4.2,6.5,12.4,16.3,18.9,17.3,15.7,9.7,6,2.2],"avg_temp":8.9,"year":1982},{"months":[4,-1.7,4.6,8.6,11.3,16.3,20.4,18.1,13.7,9.2,3.5,.7],"avg_temp":9.05833333333333,"year":1983},{"months":[1.1,-.3,2,6.8,10.8,13.7,15.9,17,12.3,10.2,4.9,1.2],"avg_temp":7.96666666666667,"year":1984},{"months":[-5.5,-3.1,2.8,7.6,13.4,13.5,17.4,16.2,13.5,8.8,.8,3.7],"avg_temp":7.425,"year":1985},{"months":[.1,-6.4,3,6.3,14.1,15.9,17,16.3,11.3,9.6,5.9,2.1],"avg_temp":7.93333333333333,"year":1986},{"months":[-5.9,-.3,-.4,9.1,9.7,13.9,16.9,15.5,14.5,9.4,4.9,2.1],"avg_temp":7.45,"year":1987},{"months":[3.5,2.1,2.7,8,14.2,15,17,17,13.2,9.7,3,3.4],"avg_temp":9.06666666666667,"year":1988},{"months":[2.5,3.4,7,7.2,13.8,15.3,17.7,17,14.4,10.4,2.7,2.4],"avg_temp":9.48333333333333,"year":1989},{"months":[2.5,5.7,6.9,7.4,13.9,15.2,16.7,18.3,11.8,10.2,4.5,.8],"avg_temp":9.49166666666667,"year":1990},{"months":[1.5,-2.4,6.4,7.1,9.5,13.5,19.2,17.9,14.8,8.2,4,.7],"avg_temp":8.36666666666667,"year":1991},{"months":[1,2.8,4.8,7.8,14.5,17.3,18.6,19.1,13.4,6.5,5.4,1.3],"avg_temp":9.375,"year":1992},{"months":[2.5,-.7,3.6,10.4,14.6,15.7,16.1,15.8,12.2,7.9,.4,3.2],"avg_temp":8.475,"year":1993},{"months":[3,-.2,6.3,7.9,12.6,15.9,21.3,17.8,13.2,7.6,7.2,3.6],"avg_temp":9.68333333333333,"year":1994},{"months":[.2,4.6,3.1,8.5,12.2,14.3,20.1,18.3,12.6,11.8,3,-1.8],"avg_temp":8.90833333333333,"year":1995},{"months":[-2.8,-2.2,1,8.4,11.2,15.7,15.9,17.2,10.9,9.2,4.5,-2.4],"avg_temp":7.21666666666667,"year":1996},{"months":[-2.6,4.1,5.8,6.4,12.7,15.9,17.2,19.8,13.7,7.7,4,2.2],"avg_temp":8.90833333333333,"year":1997},{"months":[2.4,4.3,5,8.9,14,16.5,16.4,16.7,13.4,8.7,1.6,1],"avg_temp":9.075,"year":1998},{"months":[2.6,.4,5.4,8.9,13.8,15.2,19,17.2,16.8,9,3.5,2.2],"avg_temp":9.5,"year":1999},{"months":[1.1,3.9,5.2,10.2,14.6,17,15.3,17.6,13.9,10.6,6.1,3.1],"avg_temp":9.88333333333333,"year":2e3},{"months":[.9,2.3,4.2,7.1,14.4,14.3,18.6,18.6,11.8,12.5,3.8,-.2],"avg_temp":9.025,"year":2001},{"months":[1.2,5.1,5.4,8.1,13.8,17.4,17.7,18.8,13.2,8.3,5.6,.3],"avg_temp":9.575,"year":2002},{"months":[-.3,-1.9,5.3,8.5,14.1,19.4,19.1,20.6,13.9,5.9,6,1.8],"avg_temp":9.36666666666667,"year":2003},{"months":[-.1,2.4,4.1,9.4,11.6,15.3,16.8,18.4,14,10.1,4.2,1.1],"avg_temp":8.94166666666667,"year":2004},{"months":[2,-1,3.6,9.3,12.8,16.4,18,15.8,15,11,4.2,.9],"avg_temp":9,"year":2005},{"months":[-2.6,-.4,1.5,8,13.1,16.8,22,15.5,16.9,12.1,7,4.4],"avg_temp":9.525,"year":2006},{"months":[4.8,3.9,6.2,11.5,14.2,17.4,17.2,16.9,12.6,8.4,3.7,1.6],"avg_temp":9.86666666666667,"year":2007},{"months":[3.7,3.7,4.2,7.6,14.5,16.9,18,17.4,12.4,9.1,5.1,1.1],"avg_temp":9.475,"year":2008},{"months":[-2.2,.5,4.3,11.8,13.6,14.8,18,18.7,14.7,8.2,7.4,.3],"avg_temp":9.175,"year":2009},{"months":[-3.7,-.5,4.2,8.7,10.4,16.3,20.3,16.7,12.4,8.1,4.8,-3.7],"avg_temp":7.83333333333333,"year":2010},{"months":[1,.9,4.9,11.6,13.9,16.5,16.1,17.7,15.2,9.4,4.5,3.9],"avg_temp":9.63333333333333,"year":2011},{"months":[1.9,-2.5,6.9,8.2,14.2,15.5,17.4,18.4,13.6,8.7,5.2,1.5],"avg_temp":9.08333333333333,"year":2012},{"months":[.2,-.7,.1,8.1,11.8,15.7,19.5,17.9,13.3,10.6,4.6,3.6],"avg_temp":8.725,"year":2013},{"months":[2.1,4.3,6.9,10.8,12.4,16.1,19.3,16,14.9,11.9,6.5,2.7],"avg_temp":10.325,"year":2014},{"months":[2.2,.7,5.2,8.4,12.3,15.8,19.4,19.9,13,8.4,7.5,6.5],"avg_temp":9.94166666666667,"year":2015},{"months":[1,3.3,4,7.9,13.7,17,18.6,17.7,16.9,8.5,3.8,2.2],"avg_temp":9.55,"year":2016},{"months":[-2.2,2.9,7.2,7.4,14.1,17.8,18.1,17.9,12.8,11.1,5.1,2.7],"avg_temp":9.575,"year":2017}]
{trendlines:{0:{slope:.0142946512355333,intercept:-28.23481388802},1:{slope:.00840043928043856,intercept:-15.9962215946063},all:{slope:.0107990707845127,intercept:-12.7116627029214},3:{slope:.0127322832308574,intercept:-17.1143397817449},4:{slope:.00809677868622273,intercept:-3.33901787487817},5:{slope:.00658235709115982,intercept:2.71552093774046},6:{slope:.0102450061531226,intercept:-2.66104529261399},7:{slope:.0138116750984748,intercept:-10.2773489275112},8:{slope:.00726193365318198,intercept:-.838180222898394},9:{slope:.0122244105512723,intercept:-15.167711930853},10:{slope:.0115220191535833,intercept:-18.4651744544215},11:{slope:.0117054343159034,intercept:-21.9343294379002},2:{slope:.0133316133510202,intercept:-22.4211396481038}},monthAverages:[{avg_temp:-.367391304347826,month:0},{avg_temp:.380434782608696,month:1},{avg_temp:3.56884057971015,month:2},{avg_temp:7.70724637681159,month:3},{avg_temp:12.445652173913,month:4},{avg_temp:15.5478260869565,month:5},{avg_temp:17.3115942028986,month:6},{avg_temp:16.6416058394161,month:7},{avg_temp:13.3153284671533,month:8},{avg_temp:8.65766423357664,month:9},{avg_temp:3.99124087591241,month:10},{avg_temp:.87956204379562,month:11}],extremes:[{year:1940,type:"min",temp:-9,month:0},{year:2007,type:"max",temp:4.8,month:0},{year:1929,type:"min",temp:-9.6,month:1},{year:1990,type:"max",temp:5.7,month:1},{year:1883,type:"min",temp:-1.7,month:2},{year:2017,type:"max",temp:7.2,month:2},{year:1917,type:"min",temp:4.3,month:3},{year:2018,type:"max",temp:12.3,month:3},{year:1902,type:"min",temp:8.6,month:4},{year:2018,type:"max",temp:16,month:4},{year:1923,type:"min",temp:11.2,month:5},{year:2003,type:"max",temp:19.4,month:5},{year:1898,type:"min",temp:14.4,month:6},{year:2006,type:"max",temp:22,month:6},{year:1912,type:"min",temp:14,month:7},{year:2003,type:"max",temp:20.6,month:7},{year:1912,type:"min",temp:9.1,month:8},{year:2006,type:"max",temp:16.9,month:8},{year:1905,type:"min",temp:4.5,month:9},{year:2001,type:"max",temp:12.5,month:9},{year:1921,type:"min",temp:-.2,month:10},{year:2015,type:"max",temp:7.5,month:10},{year:1890,type:"min",temp:-5.3,month:11},{year:2015,type:"max",temp:6.5,month:11}],decades:[{start:1889,months:[-2.12,-.66,3.11,7.35,12.27,15.65,16.43,16.33,12.91,8.23,3.19,-.26],end:1898},{start:1899,months:[-.24,.37,2.9,6.83,11.95,15.49,17.25,15.92,12.76,8.41,3.73,-3.32931382115986e-17],end:1908},{start:1909,months:[-.39,.76,3.55,7.52,12.67,15.26,16.58,16.11,12.44,8.2,3.58,2.32],end:1918},{start:1919,months:[.9,1.23,3.94,7.39,12.37,14.33,17.25,15.91,13.07,8.21,2.68,.12],end:1928},{start:1929,months:[.07,-.64,3.46,6.94,12.53,15.98,17.35,16.81,13.68,8.58,4.54,.55],end:1938},{start:1939,months:[-2.44,-.62,3.37,8.58,12.46,15.72,17.44,16.98,13.83,8.49,4.01,.03],end:1948},{start:1949,months:[-.37,-.29,3.01,7.44,12.1,15.33,17.18,16.46,13.47,8.79,4.02,1.63],end:1958},{start:1959,months:[-1.12,.51,3.52,8.34,11.88,15.83,16.6,15.96,13.5,9.29,3.92,-.02],end:1968},{start:1969,months:[.47,.79,3.38,6.67,12.1,15.3,17.22,16.76,12.93,8.36,4.41,.78],end:1978},{start:1979,months:[-1.37,-.99,3.27,7.3,12.22,15.11,17.03,16.59,13.52,9.13,4.03,1.77],end:1988},{start:1989,months:[1.02,1.94,4.99,8,12.9,15.53,17.92,17.79,13.04,8.82,3.73,1.1],end:1998},{start:1999,months:[1.33,1.84,4.51,8.86,13.69,16.61,18.17,17.68,14.05,9.7,4.92,1.63],end:2008},{start:2009,months:[.4,.7,4.61,9.52,13.24,16.32,18.7,17.8777777777778,14.0888888888889,9.43333333333333,5.48888888888889,2.18888888888889],end:2018}],years:[{months:[-5.4,-.1,2.6,5.6,11.8,15.1,18.6,15.9,12.1,5,5.7,.9],avg_temp:7.31666666666667,year:1881},{months:[.4,1.5,6,7.7,12,14.3,16.8,14.9,13.1,8.9,3.9,.6],avg_temp:8.34166666666667,year:1882},{months:[-.3,2.3,-1.7,6.1,12.4,16.2,16.7,15.9,13.4,8.5,4.3,.8],avg_temp:7.88333333333333,year:1883},{months:[2.9,2.7,4.7,6.1,12.7,13.1,18.2,17,14.3,7.9,1.7,1.7],avg_temp:8.58333333333333,year:1884},{months:[-2.8,3,2.5,9.2,10,16.7,17.3,14.6,12.7,7.4,2.7,-.3],avg_temp:7.75,year:1885},{months:[-1.3,-2.9,.4,8.7,12.7,14.3,16.8,16.9,15.1,9.5,5.1,.8],avg_temp:8.00833333333333,year:1886},{months:[-3.7,-.8,1.1,7.1,10,15.5,18.7,15.7,12.2,5.5,3.1,-.8],avg_temp:6.96666666666667,year:1887},{months:[-1.9,-2.6,.7,5.7,12.1,15.8,14.7,15.1,12.5,6.4,3.3,.6],avg_temp:6.86666666666667,year:1888},{months:[-2.4,-2.6,.3,6.9,15.8,18.6,16.4,15.4,11.1,8,2.7,-1.6],avg_temp:7.38333333333333,year:1889},{months:[2,-2.6,4.1,6.8,13.6,13.9,15.4,16.5,13.1,7.2,2.9,-5.3],avg_temp:7.3,year:1890},{months:[-4.5,-.6,2.6,5.1,12.7,14.7,16.2,15,13.8,9.9,2.7,1.7],avg_temp:7.44166666666667,year:1891},{months:[-1.8,.5,.5,7,12.2,15.1,16,18.1,13.8,7.5,3,-1.9],avg_temp:7.5,year:1892},{months:[-7.3,1.8,4.3,8.8,12.3,15.8,17.4,17,12.4,9.8,2.2,.3],avg_temp:7.9,year:1893},{months:[-1.8,1.6,4.7,9.9,11.3,14.2,17.8,15.4,11,8,4.9,.5],avg_temp:8.125,year:1894},{months:[-4,-6.8,1.4,8.6,12.2,15.7,17.2,16.5,15.2,7.1,4.8,-.1],avg_temp:7.31666666666667,year:1895},{months:[-.8,-.2,5.3,5.9,10.7,16.7,17,14.3,12.8,8.6,1.2,-.5],avg_temp:7.58333333333333,year:1896},{months:[-2.9,1.2,5,7.2,10.6,17,16.5,17.1,12.3,7.3,2.8,1.3],avg_temp:7.95,year:1897},{months:[2.3,1.1,2.9,7.3,11.3,14.8,14.4,18,13.6,8.9,4.7,3],avg_temp:8.525,year:1898},{months:[2.1,2,2.6,7.1,11.1,14.7,17.3,16.8,12.5,7.8,6.4,-3.3],avg_temp:8.09166666666667,year:1899},{months:[.7,1.1,.6,6.5,10.8,16,18.4,16.2,13.8,8.6,4.7,2.8],avg_temp:8.35,year:1900},{months:[-3.7,-4.1,2.1,8,12.8,15.6,18.5,16.4,13.4,9.1,2.7,.9],avg_temp:7.64166666666667,year:1901},{months:[2.8,-1.3,3.4,7.8,8.6,15.3,15.8,14.7,12,7.1,1.6,-1.8],avg_temp:7.16666666666667,year:1902},{months:[.3,3.6,5.7,4.7,12.6,14.8,16.2,15.4,13.5,9.6,4.4,-.8],avg_temp:8.33333333333333,year:1903},{months:[-1.3,1.1,3,8.8,12.3,15.2,18.8,16.5,11.9,8.3,3.3,2.4],avg_temp:8.35833333333333,year:1904},{months:[-1.8,1.3,4.5,5.9,12.1,17,18.6,16.5,12.8,4.5,3.1,1],avg_temp:7.95833333333333,year:1905},{months:[1,.3,2.2,8,13.1,14.7,17.2,16.5,12.5,9.8,6.3,-2.2],avg_temp:8.28333333333333,year:1906},{months:[-.3,-1.5,2.6,6.1,12.9,14.6,14.5,15.7,13.1,11.2,3.3,1.5],avg_temp:7.80833333333333,year:1907},{months:[-2.2,1.2,2.3,5.4,13.2,17,17.2,14.5,12.1,8.1,1.5,-.5],avg_temp:7.48333333333333,year:1908},{months:[-1.6,-2.5,1.5,7.8,10.9,14.1,15,16.2,12.7,10.2,2,1.9],avg_temp:7.35,year:1909},{months:[1.4,2.4,3.7,7.3,12.3,16.5,15.5,15.8,12,9.1,2.2,2.6],avg_temp:8.4,year:1910},{months:[-1.1,1.3,4,7.2,13.1,14.9,19.2,19.4,14.4,8.5,4.7,3],avg_temp:9.05,year:1911},{months:[-1.5,2.3,6,6.9,11.9,15.6,17.9,14,9.1,6.5,2.6,3.1],avg_temp:7.86666666666667,year:1912},{months:[-.2,1.3,6,7.8,12.4,14.8,14.6,14.8,12.6,9.5,6.8,2],avg_temp:8.53333333333333,year:1913},{months:[-3,3.1,4.7,9.8,10.9,14.6,17.6,17.2,12.4,8.2,3.4,3.5],avg_temp:8.53333333333333,year:1914},{months:[.2,1,1.7,6.9,13.1,17.5,16.2,15.2,11.8,6.4,1.5,3.5],avg_temp:7.91666666666667,year:1915},{months:[3.8,.8,3.9,8.2,13.1,12.8,16,15.9,12,8.5,4.5,1.8],avg_temp:8.44166666666667,year:1916},{months:[-2.6,-3.8,0,4.3,15,18.8,17.3,16.7,14.5,7.2,5.1,-2.1],avg_temp:7.53333333333333,year:1917},{months:[.7,1.7,4,9,14,13,16.5,15.9,12.9,7.9,3,3.9],avg_temp:8.54166666666667,year:1918},{months:[.7,-.5,3,5.6,11.6,15,14.4,16.1,14.7,6,.5,.8],avg_temp:7.325,year:1919},{months:[2.3,3,6.1,9.4,13.8,14.9,17.4,15,13,6.9,1.2,.6],avg_temp:8.63333333333333,year:1920},{months:[4.2,1.3,5.6,7.8,14,14.4,18.7,17.3,13.5,11,-.2,.5],avg_temp:9.00833333333333,year:1921},{months:[-2.7,-1.3,3.5,5.5,13.6,15.7,15.7,15.4,11.2,5,2.5,2.2],avg_temp:7.19166666666667,year:1922},{months:[1.5,1,4.9,6.8,11.4,11.2,18.6,15.7,13.1,10.3,2.9,-1.7],avg_temp:7.975,year:1923},{months:[-2.9,-2.6,2.2,6.3,13.7,15.1,16.7,14.5,13.6,9.4,3,1.5],avg_temp:7.54166666666667,year:1924},{months:[2.5,3.6,1.3,8.2,13.9,15,17.9,16.5,11,8.5,2,-.4],avg_temp:8.33333333333333,year:1925},{months:[0,4.4,4,9.7,10.7,13.8,17.4,16,14.6,7.8,6,.6],avg_temp:8.75,year:1926},{months:[1.8,.9,5.9,7.1,10.9,14.1,17.3,16.4,13.5,8.6,2.7,-2.6],avg_temp:8.05,year:1927},{months:[1.6,2.5,2.9,7.5,10.1,14.1,18.4,16.2,12.5,8.6,6.2,-.3],avg_temp:8.35833333333333,year:1928},{months:[-4.7,-9.6,2.6,4.5,13.1,14.5,17.5,17.1,15.5,9.7,4.7,3.6],avg_temp:7.375,year:1929},{months:[2.3,-.2,4.2,8.3,11.6,18.2,16.4,16,13.2,8.7,5.9,.6],avg_temp:8.76666666666667,year:1930},{months:[.2,-1.2,.2,5.8,15.1,16.1,16.8,15.4,10.2,7.3,4.7,.1],avg_temp:7.55833333333333,year:1931},{months:[1.8,-1.9,.8,7,12.5,14.6,17.9,18.7,15,8.5,4.2,.8],avg_temp:8.325,year:1932},{months:[-2.6,.1,5.1,7,11.5,14.3,18.1,16.9,13.5,8.8,2.5,-3.9],avg_temp:7.60833333333333,year:1933},{months:[.5,1.2,4.1,10.3,13.3,16.4,18.3,16.4,15.6,9.6,4.1,4.8],avg_temp:9.55,year:1934},{months:[-.8,1.9,2.7,7.3,10.5,17.2,17.8,16.6,13.7,8.6,5.2,.4],avg_temp:8.425,year:1935},{months:[3.1,.2,5,6.2,12.3,16.2,16.8,16.2,13,6.4,3.8,1.5],avg_temp:8.39166666666667,year:1936},{months:[-.8,2.2,2.9,8,14.7,16.3,17.2,17.1,13.3,9.5,3.3,-.5],avg_temp:8.6,year:1937},{months:[1.7,.9,7,5,10.7,16,16.7,17.7,13.8,8.7,7,-1.9],avg_temp:8.60833333333333,year:1938},{months:[2.6,1.6,1.7,8.6,10.5,16.3,17,17.5,13.4,6.5,5.5,-1.6],avg_temp:8.3,year:1939},{months:[-9,-4.3,2.8,7.9,12.2,16.7,16.2,14.5,12.4,7.6,5.4,-2.8],avg_temp:6.63333333333333,year:1940},{months:[-5.4,-.2,3.3,5.5,9.2,16.3,18.6,15,12.3,8,2,1.5],avg_temp:7.175,year:1941},{months:[-7.9,-5.4,1.4,7.5,12.1,14.4,16.1,17.6,15.1,11.1,3.3,2.1],avg_temp:7.28333333333333,year:1942},{months:[-.4,2.9,5.6,9.3,12.8,14.4,17.7,17.9,13.8,9.9,2.7,.2],avg_temp:8.9,year:1943},{months:[3.1,-1.1,.9,8.6,11.6,14.2,17.4,19.6,12.8,8.6,4.1,-.4],avg_temp:8.28333333333333,year:1944},{months:[-4,4,6,8.8,14,16.6,17.9,16.2,13.8,9.7,3.6,1.3],avg_temp:8.99166666666667,year:1945},{months:[-1.8,2.4,3.7,10.2,13.9,14.8,18.4,16.2,14.1,7,4,-2.3],avg_temp:8.38333333333333,year:1946},{months:[-4.7,-6.6,2.6,9.4,14.7,17.9,18.9,18.9,16.8,7.8,5.3,1.4],avg_temp:8.53333333333333,year:1947},{months:[3.1,.5,5.7,10,13.6,15.6,16.2,16.4,13.8,8.7,4.2,.9],avg_temp:9.05833333333333,year:1948},{months:[1.2,1.7,2,10.3,12.2,14.1,17.6,17,16.3,10.6,3.7,3],avg_temp:9.14166666666667,year:1949},{months:[-1,3,4.8,6.8,13.8,17.6,18,17.5,12.9,7.8,4.3,-2],avg_temp:8.625,year:1950},{months:[1.5,1.9,2.2,7.3,11.5,15.3,17.1,17.2,14.5,7.3,6.5,2.5],avg_temp:8.73333333333333,year:1951},{months:[.2,-.1,2.6,10.3,12.3,15.2,18.3,17.8,10.5,7.2,1.7,-.5],avg_temp:7.95833333333333,year:1952},{months:[-.8,-.1,4.8,9,13.2,16.1,17.4,16.4,13.5,10.4,4.8,2.5],avg_temp:8.93333333333333,year:1953},{months:[-3.2,-3.5,4.3,5.8,12.2,16,14.4,15.8,13.5,9.9,4.1,3.2],avg_temp:7.70833333333333,year:1954},{months:[-1.7,-1.9,.4,6.9,10.3,14.6,17.4,16.8,13.4,8,3.8,2.6],avg_temp:7.55,year:1955},{months:[.2,-9.6,2.9,5.3,12.5,13.2,16.9,14.1,13.8,8.2,2.5,2],avg_temp:6.83333333333333,year:1956},{months:[.3,3.8,6.4,7.5,9.7,16.7,17.7,15.1,11.8,9.2,4.5,.5],avg_temp:8.6,year:1957},{months:[-.4,1.9,-.3,5.2,13.3,14.5,17,16.9,14.5,9.3,4.3,2.5],avg_temp:8.225,year:1958},{months:[-.1,-.1,6.2,9.4,12.7,16.1,19.3,17.3,13.5,8.5,3.3,2.2],avg_temp:9.025,year:1959},{months:[-.1,.4,4.3,7.4,12.8,16.2,15.4,15.8,12.5,9.1,6,1.2],avg_temp:8.41666666666667,year:1960},{months:[-.8,4.4,6,10.6,10.3,16,15.1,15.7,16.3,10.5,3.7,-.6],avg_temp:8.93333333333333,year:1961},{months:[1.7,.3,.2,8.2,9.8,14.2,15,15.8,12.3,9,2.7,-3.3],avg_temp:7.15833333333333,year:1962},{months:[-7.4,-5.7,2.5,8.4,12,15.8,17.7,15.9,13.7,8.1,7.4,-3.1],avg_temp:7.10833333333333,year:1963},{months:[-2.6,.6,.6,8.6,13.6,16.9,18.1,15.9,13.6,7.1,4.9,.4],avg_temp:8.14166666666667,year:1964},{months:[1.2,-1.8,2.3,6.7,11.2,15.5,15,14.9,12.7,8.2,1.4,2.6],avg_temp:7.49166666666667,year:1965},{months:[-2.7,3.5,3.3,8.6,13,16.9,15.6,15.5,13.2,11.1,2.2,2],avg_temp:8.51666666666667,year:1966},{months:[.7,2.8,5.4,6.5,12.5,14.7,18.6,16.4,13.8,11.1,3.9,.4],avg_temp:8.9,year:1967},{months:[-1.1,.7,4.4,9,10.9,16,16.2,16.4,13.4,10.2,3.7,-2],avg_temp:8.15,year:1968},{months:[.5,-2.1,.9,7,12.9,14.8,18.4,16.5,13.8,10,5.1,-4.7],avg_temp:7.75833333333333,year:1969},{months:[-2.6,-1.1,1.2,5.3,11.4,17.2,16.1,16.8,13.2,8.9,5.8,.5],avg_temp:7.725,year:1970},{months:[-1.1,1.4,1,8.2,14,13.9,18,17.8,12,8.8,3.5,3.6],avg_temp:8.425,year:1971},{months:[-2.3,2,5.3,7.2,11.3,14.5,17.7,15.7,10.7,6.8,4.3,.8],avg_temp:7.83333333333333,year:1972},{months:[0,1,3.9,5.1,12.5,16.1,17.2,17.7,14.1,7.3,3.3,.2],avg_temp:8.2,year:1973},{months:[3.3,3.2,5.7,8,11,14.1,15.3,17.1,13.2,5.5,4.9,4.8],avg_temp:8.84166666666667,year:1974},{months:[4.5,1.4,3.6,6.8,11.8,14.7,18.2,18.8,15.5,7.5,3.1,1.2],avg_temp:8.925,year:1975},{months:[1.2,.5,1.3,6.9,12.8,17.4,19.3,16.2,12.7,9.5,4.8,-1],avg_temp:8.46666666666667,year:1976},{months:[.4,3,6.1,5.7,11.7,15.5,16.5,15.9,11.9,10.2,5.1,2.1],avg_temp:8.675,year:1977},{months:[.8,-1.4,4.8,6.5,11.6,14.8,15.5,15.1,12.2,9.1,4.2,.3],avg_temp:7.79166666666667,year:1978},{months:[-4.5,-1.8,3.7,6.3,12.4,16.5,15.3,15.5,13.1,8.6,3.7,3.8],avg_temp:7.71666666666667,year:1979},{months:[-2.7,2.1,3.3,6,10.7,14.7,15.1,16.6,13.9,8,3,.7],avg_temp:7.61666666666667,year:1980},{months:[-1.5,-.4,6.8,7.8,13.2,15.3,16.4,16.4,14,8.1,4.6,-2.2],avg_temp:8.20833333333333,year:1981},{months:[-2.3,-.1,4.2,6.5,12.4,16.3,18.9,17.3,15.7,9.7,6,2.2],avg_temp:8.9,year:1982},{months:[4,-1.7,4.6,8.6,11.3,16.3,20.4,18.1,13.7,9.2,3.5,.7],avg_temp:9.05833333333333,year:1983},{months:[1.1,-.3,2,6.8,10.8,13.7,15.9,17,12.3,10.2,4.9,1.2],avg_temp:7.96666666666667,year:1984},{months:[-5.5,-3.1,2.8,7.6,13.4,13.5,17.4,16.2,13.5,8.8,.8,3.7],avg_temp:7.425,year:1985},{months:[.1,-6.4,3,6.3,14.1,15.9,17,16.3,11.3,9.6,5.9,2.1],avg_temp:7.93333333333333,year:1986},{months:[-5.9,-.3,-.4,9.1,9.7,13.9,16.9,15.5,14.5,9.4,4.9,2.1],avg_temp:7.45,year:1987},{months:[3.5,2.1,2.7,8,14.2,15,17,17,13.2,9.7,3,3.4],avg_temp:9.06666666666667,year:1988},{months:[2.5,3.4,7,7.2,13.8,15.3,17.7,17,14.4,10.4,2.7,2.4],avg_temp:9.48333333333333,year:1989},{months:[2.5,5.7,6.9,7.4,13.9,15.2,16.7,18.3,11.8,10.2,4.5,.8],avg_temp:9.49166666666667,year:1990},{months:[1.5,-2.4,6.4,7.1,9.5,13.5,19.2,17.9,14.8,8.2,4,.7],avg_temp:8.36666666666667,year:1991},{months:[1,2.8,4.8,7.8,14.5,17.3,18.6,19.1,13.4,6.5,5.4,1.3],avg_temp:9.375,year:1992},{months:[2.5,-.7,3.6,10.4,14.6,15.7,16.1,15.8,12.2,7.9,.4,3.2],avg_temp:8.475,year:1993},{months:[3,-.2,6.3,7.9,12.6,15.9,21.3,17.8,13.2,7.6,7.2,3.6],avg_temp:9.68333333333333,year:1994},{months:[.2,4.6,3.1,8.5,12.2,14.3,20.1,18.3,12.6,11.8,3,-1.8],avg_temp:8.90833333333333,year:1995},{months:[-2.8,-2.2,1,8.4,11.2,15.7,15.9,17.2,10.9,9.2,4.5,-2.4],avg_temp:7.21666666666667,year:1996},{months:[-2.6,4.1,5.8,6.4,12.7,15.9,17.2,19.8,13.7,7.7,4,2.2],avg_temp:8.90833333333333,year:1997},{months:[2.4,4.3,5,8.9,14,16.5,16.4,16.7,13.4,8.7,1.6,1],avg_temp:9.075,year:1998},{months:[2.6,.4,5.4,8.9,13.8,15.2,19,17.2,16.8,9,3.5,2.2],avg_temp:9.5,year:1999},{months:[1.1,3.9,5.2,10.2,14.6,17,15.3,17.6,13.9,10.6,6.1,3.1],avg_temp:9.88333333333333,year:2e3},{months:[.9,2.3,4.2,7.1,14.4,14.3,18.6,18.6,11.8,12.5,3.8,-.2],avg_temp:9.025,year:2001},{months:[1.2,5.1,5.4,8.1,13.8,17.4,17.7,18.8,13.2,8.3,5.6,.3],avg_temp:9.575,year:2002},{months:[-.3,-1.9,5.3,8.5,14.1,19.4,19.1,20.6,13.9,5.9,6,1.8],avg_temp:9.36666666666667,year:2003},{months:[-.1,2.4,4.1,9.4,11.6,15.3,16.8,18.4,14,10.1,4.2,1.1],avg_temp:8.94166666666667,year:2004},{months:[2,-1,3.6,9.3,12.8,16.4,18,15.8,15,11,4.2,.9],avg_temp:9,year:2005},{months:[-2.6,-.4,1.5,8,13.1,16.8,22,15.5,16.9,12.1,7,4.4],avg_temp:9.525,year:2006},{months:[4.8,3.9,6.2,11.5,14.2,17.4,17.2,16.9,12.6,8.4,3.7,1.6],avg_temp:9.86666666666667,year:2007},{months:[3.7,3.7,4.2,7.6,14.5,16.9,18,17.4,12.4,9.1,5.1,1.1],avg_temp:9.475,year:2008},{months:[-2.2,.5,4.3,11.8,13.6,14.8,18,18.7,14.7,8.2,7.4,.3],avg_temp:9.175,year:2009},{months:[-3.7,-.5,4.2,8.7,10.4,16.3,20.3,16.7,12.4,8.1,4.8,-3.7],avg_temp:7.83333333333333,year:2010},{months:[1,.9,4.9,11.6,13.9,16.5,16.1,17.7,15.2,9.4,4.5,3.9],avg_temp:9.63333333333333,year:2011},{months:[1.9,-2.5,6.9,8.2,14.2,15.5,17.4,18.4,13.6,8.7,5.2,1.5],avg_temp:9.08333333333333,year:2012},{months:[.2,-.7,.1,8.1,11.8,15.7,19.5,17.9,13.3,10.6,4.6,3.6],avg_temp:8.725,year:2013},{months:[2.1,4.3,6.9,10.8,12.4,16.1,19.3,16,14.9,11.9,6.5,2.7],avg_temp:10.325,year:2014},{months:[2.2,.7,5.2,8.4,12.3,15.8,19.4,19.9,13,8.4,7.5,6.5],avg_temp:9.94166666666667,year:2015},{months:[1,3.3,4,7.9,13.7,17,18.6,17.7,16.9,8.5,3.8,2.2],avg_temp:9.55,year:2016},{months:[-2.2,2.9,7.2,7.4,14.1,17.8,18.1,17.9,12.8,11.1,5.1,2.7],avg_temp:9.575,year:2017},{months:[3.7,-1.9,2.4,12.3,16,17.7,20.3],avg_temp:null,year:2018}]}}
<!DOCTYPE html>
<meta charset='utf-8'>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
<script src='https://unpkg.com/simple-statistics@6.1.0/dist/simple-statistics.min.js' />
<script>
console.log('hi')
</script>
<div id='graph'></div>
<script src='data.js'></script>
<script src='d3_.js'></script>
<script src='_script.js'></script>
body{
font-family: monaco, Consolas, 'Lucida Console', monospace;
margin: 0px;
}
.tooltip {
top: -1000px;
position: fixed;
padding: 10px;
background: rgba(255, 255, 255, .90);
border: 1px solid lightgray;
pointer-events: none;
}
.tooltip-hidden{
opacity: 0;
transition: all .3s;
transition-delay: .1s;
}
@media (max-width: 590px){
div.tooltip{
bottom: -1px;
width: calc(100%);
left: -1px !important;
right: -1px !important;
top: auto !important;
width: auto !important;
}
}
svg{
overflow: visible;
}
.domain{
display: none;
}
text{
/*pointer-events: none;*/
/*text-shadow: 0 1px 0 #fff, 1px 0 0 #fff, 0 -1px 0 #fff, -1px 0 0 #fff;*/
}
.axis{
opacity: .4;
}
.y line{
stroke: #ccc;
}
.x line{
opacity: 0;
}
.x{
opacity: 1;
}
.x text{
font-size: 14px
}
circle.active{
stroke-opacity: .5;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment