How to use function method in chrominator

Best JavaScript code snippet using chrominator

d3.min.js

Source:d3.min.js Github

copy

Full Screen

1const define = "define";2let XDomainRequest, Sizzle;3!(function () {4 function n(n) {5 return n && (n.ownerDocument || n.document || n).documentElement;6 }7 function t(n) {8 return (9 n &&10 ((n.ownerDocument && n.ownerDocument.defaultView) ||11 (n.document && n) ||12 n.defaultView)13 );14 }15 function e(n, t) {16 return t > n ? -1 : n > t ? 1 : n >= t ? 0 : NaN;17 }18 function r(n) {19 return null === n ? NaN : +n;20 }21 function i(n) {22 return !isNaN(n);23 }24 function u(n) {25 return {26 left: function (t, e, r, i) {27 for (28 arguments.length < 3 && (r = 0),29 arguments.length < 4 && (i = t.length);30 i > r;31 ) {32 var u = (r + i) >>> 1;33 n(t[u], e) < 0 ? (r = u + 1) : (i = u);34 }35 return r;36 },37 right: function (t, e, r, i) {38 for (39 arguments.length < 3 && (r = 0),40 arguments.length < 4 && (i = t.length);41 i > r;42 ) {43 var u = (r + i) >>> 1;44 n(t[u], e) > 0 ? (i = u) : (r = u + 1);45 }46 return r;47 },48 };49 }50 function o(n) {51 return n.length;52 }53 function a(n) {54 for (var t = 1; (n * t) % 1; ) t *= 10;55 return t;56 }57 function l(n, t) {58 for (var e in t)59 Object.defineProperty(n.prototype, e, { value: t[e], enumerable: !1 });60 }61 function c() {62 this._ = Object.create(null);63 }64 function f(n) {65 return (n += "") === bo || n[0] === _o ? _o + n : n;66 }67 function s(n) {68 return (n += "")[0] === _o ? n.slice(1) : n;69 }70 function h(n) {71 return f(n) in this._;72 }73 function p(n) {74 return (n = f(n)) in this._ && delete this._[n];75 }76 function g() {77 var n = [];78 for (var t in this._) n.push(s(t));79 return n;80 }81 function v() {82 var n = 0;83 for (var t in this._) ++n;84 return n;85 }86 function d() {87 for (var n in this._) return !1;88 return !0;89 }90 function y() {91 this._ = Object.create(null);92 }93 function m(n) {94 return n;95 }96 function M(n, t, e) {97 return function () {98 var r = e.apply(t, arguments);99 return r === t ? n : r;100 };101 }102 function x(n, t) {103 if (t in n) return t;104 t = t.charAt(0).toUpperCase() + t.slice(1);105 for (var e = 0, r = wo.length; r > e; ++e) {106 var i = wo[e] + t;107 if (i in n) return i;108 }109 }110 function b() {}111 function _() {}112 function w(n) {113 function t() {114 for (var t, r = e, i = -1, u = r.length; ++i < u; )115 (t = r[i].on) && t.apply(this, arguments);116 return n;117 }118 var e = [],119 r = new c();120 return (121 (t.on = function (t, i) {122 var u,123 o = r.get(t);124 return arguments.length < 2125 ? o && o.on126 : (o &&127 ((o.on = null),128 (e = e.slice(0, (u = e.indexOf(o))).concat(e.slice(u + 1))),129 r.remove(t)),130 i && e.push(r.set(t, { on: i })),131 n);132 }),133 t134 );135 }136 function S() {137 ao.event.preventDefault();138 }139 function k() {140 for (var n, t = ao.event; (n = t.sourceEvent); ) t = n;141 return t;142 }143 function N(n) {144 for (var t = new _(), e = 0, r = arguments.length; ++e < r; )145 t[arguments[e]] = w(t);146 return (147 (t.of = function (e, r) {148 return function (i) {149 try {150 var u = (i.sourceEvent = ao.event);151 (i.target = n), (ao.event = i), t[i.type].apply(e, r);152 } finally {153 ao.event = u;154 }155 };156 }),157 t158 );159 }160 function E(n) {161 return ko(n, Co), n;162 }163 function A(n) {164 return "function" == typeof n165 ? n166 : function () {167 return No(n, this);168 };169 }170 function C(n) {171 return "function" == typeof n172 ? n173 : function () {174 return Eo(n, this);175 };176 }177 function z(n, t) {178 function e() {179 this.removeAttribute(n);180 }181 function r() {182 this.removeAttributeNS(n.space, n.local);183 }184 function i() {185 this.setAttribute(n, t);186 }187 function u() {188 this.setAttributeNS(n.space, n.local, t);189 }190 function o() {191 var e = t.apply(this, arguments);192 null == e ? this.removeAttribute(n) : this.setAttribute(n, e);193 }194 function a() {195 var e = t.apply(this, arguments);196 null == e197 ? this.removeAttributeNS(n.space, n.local)198 : this.setAttributeNS(n.space, n.local, e);199 }200 return (201 (n = ao.ns.qualify(n)),202 null == t203 ? n.local204 ? r205 : e206 : "function" == typeof t207 ? n.local208 ? a209 : o210 : n.local211 ? u212 : i213 );214 }215 function L(n) {216 return n.trim().replace(/\s+/g, " ");217 }218 function q(n) {219 return new RegExp("(?:^|\\s+)" + ao.requote(n) + "(?:\\s+|$)", "g");220 }221 function T(n) {222 return (n + "").trim().split(/^|\s+/);223 }224 function R(n, t) {225 function e() {226 for (var e = -1; ++e < i; ) n[e](this, t);227 }228 function r() {229 for (var e = -1, r = t.apply(this, arguments); ++e < i; ) n[e](this, r);230 }231 n = T(n).map(D);232 var i = n.length;233 return "function" == typeof t ? r : e;234 }235 function D(n) {236 var t = q(n);237 return function (e, r) {238 if ((i = e.classList)) return r ? i.add(n) : i.remove(n);239 var i = e.getAttribute("class") || "";240 r241 ? ((t.lastIndex = 0),242 t.test(i) || e.setAttribute("class", L(i + " " + n)))243 : e.setAttribute("class", L(i.replace(t, " ")));244 };245 }246 function P(n, t, e) {247 function r() {248 this.style.removeProperty(n);249 }250 function i() {251 this.style.setProperty(n, t, e);252 }253 function u() {254 var r = t.apply(this, arguments);255 null == r256 ? this.style.removeProperty(n)257 : this.style.setProperty(n, r, e);258 }259 return null == t ? r : "function" == typeof t ? u : i;260 }261 function U(n, t) {262 function e() {263 delete this[n];264 }265 function r() {266 this[n] = t;267 }268 function i() {269 var e = t.apply(this, arguments);270 null == e ? delete this[n] : (this[n] = e);271 }272 return null == t ? e : "function" == typeof t ? i : r;273 }274 function j(n) {275 function t() {276 var t = this.ownerDocument,277 e = this.namespaceURI;278 return e === zo && t.documentElement.namespaceURI === zo279 ? t.createElement(n)280 : t.createElementNS(e, n);281 }282 function e() {283 return this.ownerDocument.createElementNS(n.space, n.local);284 }285 return "function" == typeof n ? n : (n = ao.ns.qualify(n)).local ? e : t;286 }287 function F() {288 var n = this.parentNode;289 n && n.removeChild(this);290 }291 function H(n) {292 return { __data__: n };293 }294 function O(n) {295 return function () {296 return Ao(this, n);297 };298 }299 function I(n) {300 return (301 arguments.length || (n = e),302 function (t, e) {303 return t && e ? n(t.__data__, e.__data__) : !t - !e;304 }305 );306 }307 function Y(n, t) {308 for (var e = 0, r = n.length; r > e; e++)309 for (var i, u = n[e], o = 0, a = u.length; a > o; o++)310 (i = u[o]) && t(i, o, e);311 return n;312 }313 function Z(n) {314 return ko(n, qo), n;315 }316 function V(n) {317 var t, e;318 return function (r, i, u) {319 var o,320 a = n[u].update,321 l = a.length;322 for (323 u != e && ((e = u), (t = 0)), i >= t && (t = i + 1);324 !(o = a[t]) && ++t < l;325 );326 return o;327 };328 }329 function X(n, t, e) {330 function r() {331 var t = this[o];332 t && (this.removeEventListener(n, t, t.$), delete this[o]);333 }334 function i() {335 var i = l(t, co(arguments));336 r.call(this),337 this.addEventListener(n, (this[o] = i), (i.$ = e)),338 (i._ = t);339 }340 function u() {341 var t,342 e = new RegExp("^__on([^.]+)" + ao.requote(n) + "$");343 for (var r in this)344 if ((t = r.match(e))) {345 var i = this[r];346 this.removeEventListener(t[1], i, i.$), delete this[r];347 }348 }349 var o = "__on" + n,350 a = n.indexOf("."),351 l = $;352 a > 0 && (n = n.slice(0, a));353 var c = To.get(n);354 return c && ((n = c), (l = B)), a ? (t ? i : r) : t ? b : u;355 }356 function $(n, t) {357 return function (e) {358 var r = ao.event;359 (ao.event = e), (t[0] = this.__data__);360 try {361 n.apply(this, t);362 } finally {363 ao.event = r;364 }365 };366 }367 function B(n, t) {368 var e = $(n, t);369 return function (n) {370 var t = this,371 r = n.relatedTarget;372 (r && (r === t || 8 & r.compareDocumentPosition(t))) || e.call(t, n);373 };374 }375 function W(e) {376 var r = ".dragsuppress-" + ++Do,377 i = "click" + r,378 u = ao379 .select(t(e))380 .on("touchmove" + r, S)381 .on("dragstart" + r, S)382 .on("selectstart" + r, S);383 if (384 (null == Ro &&385 (Ro = "onselectstart" in e ? !1 : x(e.style, "userSelect")),386 Ro)387 ) {388 var o = n(e).style,389 a = o[Ro];390 o[Ro] = "none";391 }392 return function (n) {393 if ((u.on(r, null), Ro && (o[Ro] = a), n)) {394 var t = function () {395 u.on(i, null);396 };397 u.on(398 i,399 function () {400 S(), t();401 },402 !0403 ),404 setTimeout(t, 0);405 }406 };407 }408 function J(n, e) {409 e.changedTouches && (e = e.changedTouches[0]);410 var r = n.ownerSVGElement || n;411 if (r.createSVGPoint) {412 var i = r.createSVGPoint();413 if (0 > Po) {414 var u = t(n);415 if (u.scrollX || u.scrollY) {416 r = ao.select("body").append("svg").style(417 {418 position: "absolute",419 top: 0,420 left: 0,421 margin: 0,422 padding: 0,423 border: "none",424 },425 "important"426 );427 var o = r[0][0].getScreenCTM();428 (Po = !(o.f || o.e)), r.remove();429 }430 }431 return (432 Po433 ? ((i.x = e.pageX), (i.y = e.pageY))434 : ((i.x = e.clientX), (i.y = e.clientY)),435 (i = i.matrixTransform(n.getScreenCTM().inverse())),436 [i.x, i.y]437 );438 }439 var a = n.getBoundingClientRect();440 return [e.clientX - a.left - n.clientLeft, e.clientY - a.top - n.clientTop];441 }442 function G() {443 return ao.event.changedTouches[0].identifier;444 }445 function K(n) {446 return n > 0 ? 1 : 0 > n ? -1 : 0;447 }448 function Q(n, t, e) {449 return (t[0] - n[0]) * (e[1] - n[1]) - (t[1] - n[1]) * (e[0] - n[0]);450 }451 function nn(n) {452 return n > 1 ? 0 : -1 > n ? Fo : Math.acos(n);453 }454 function tn(n) {455 return n > 1 ? Io : -1 > n ? -Io : Math.asin(n);456 }457 function en(n) {458 return ((n = Math.exp(n)) - 1 / n) / 2;459 }460 function rn(n) {461 return ((n = Math.exp(n)) + 1 / n) / 2;462 }463 function un(n) {464 return ((n = Math.exp(2 * n)) - 1) / (n + 1);465 }466 function on(n) {467 return (n = Math.sin(n / 2)) * n;468 }469 function an() {}470 function ln(n, t, e) {471 return this instanceof ln472 ? ((this.h = +n), (this.s = +t), void (this.l = +e))473 : arguments.length < 2474 ? n instanceof ln475 ? new ln(n.h, n.s, n.l)476 : _n("" + n, wn, ln)477 : new ln(n, t, e);478 }479 function cn(n, t, e) {480 function r(n) {481 return (482 n > 360 ? (n -= 360) : 0 > n && (n += 360),483 60 > n484 ? u + ((o - u) * n) / 60485 : 180 > n486 ? o487 : 240 > n488 ? u + ((o - u) * (240 - n)) / 60489 : u490 );491 }492 function i(n) {493 return Math.round(255 * r(n));494 }495 var u, o;496 return (497 (n = isNaN(n) ? 0 : (n %= 360) < 0 ? n + 360 : n),498 (t = isNaN(t) ? 0 : 0 > t ? 0 : t > 1 ? 1 : t),499 (e = 0 > e ? 0 : e > 1 ? 1 : e),500 (o = 0.5 >= e ? e * (1 + t) : e + t - e * t),501 (u = 2 * e - o),502 new mn(i(n + 120), i(n), i(n - 120))503 );504 }505 function fn(n, t, e) {506 return this instanceof fn507 ? ((this.h = +n), (this.c = +t), void (this.l = +e))508 : arguments.length < 2509 ? n instanceof fn510 ? new fn(n.h, n.c, n.l)511 : n instanceof hn512 ? gn(n.l, n.a, n.b)513 : gn((n = Sn((n = ao.rgb(n)).r, n.g, n.b)).l, n.a, n.b)514 : new fn(n, t, e);515 }516 function sn(n, t, e) {517 return (518 isNaN(n) && (n = 0),519 isNaN(t) && (t = 0),520 new hn(e, Math.cos((n *= Yo)) * t, Math.sin(n) * t)521 );522 }523 function hn(n, t, e) {524 return this instanceof hn525 ? ((this.l = +n), (this.a = +t), void (this.b = +e))526 : arguments.length < 2527 ? n instanceof hn528 ? new hn(n.l, n.a, n.b)529 : n instanceof fn530 ? sn(n.h, n.c, n.l)531 : Sn((n = mn(n)).r, n.g, n.b)532 : new hn(n, t, e);533 }534 function pn(n, t, e) {535 var r = (n + 16) / 116,536 i = r + t / 500,537 u = r - e / 200;538 return (539 (i = vn(i) * na),540 (r = vn(r) * ta),541 (u = vn(u) * ea),542 new mn(543 yn(3.2404542 * i - 1.5371385 * r - 0.4985314 * u),544 yn(-0.969266 * i + 1.8760108 * r + 0.041556 * u),545 yn(0.0556434 * i - 0.2040259 * r + 1.0572252 * u)546 )547 );548 }549 function gn(n, t, e) {550 return n > 0551 ? new fn(Math.atan2(e, t) * Zo, Math.sqrt(t * t + e * e), n)552 : new fn(NaN, NaN, n);553 }554 function vn(n) {555 return n > 0.206893034 ? n * n * n : (n - 4 / 29) / 7.787037;556 }557 function dn(n) {558 return n > 0.008856 ? Math.pow(n, 1 / 3) : 7.787037 * n + 4 / 29;559 }560 function yn(n) {561 return Math.round(562 255 * (0.00304 >= n ? 12.92 * n : 1.055 * Math.pow(n, 1 / 2.4) - 0.055)563 );564 }565 function mn(n, t, e) {566 return this instanceof mn567 ? ((this.r = ~~n), (this.g = ~~t), void (this.b = ~~e))568 : arguments.length < 2569 ? n instanceof mn570 ? new mn(n.r, n.g, n.b)571 : _n("" + n, mn, cn)572 : new mn(n, t, e);573 }574 function Mn(n) {575 return new mn(n >> 16, (n >> 8) & 255, 255 & n);576 }577 function xn(n) {578 return Mn(n) + "";579 }580 function bn(n) {581 return 16 > n582 ? "0" + Math.max(0, n).toString(16)583 : Math.min(255, n).toString(16);584 }585 function _n(n, t, e) {586 var r,587 i,588 u,589 o = 0,590 a = 0,591 l = 0;592 if ((r = /([a-z]+)\((.*)\)/.exec((n = n.toLowerCase()))))593 switch (((i = r[2].split(",")), r[1])) {594 case "hsl":595 return e(596 parseFloat(i[0]),597 parseFloat(i[1]) / 100,598 parseFloat(i[2]) / 100599 );600 case "rgb":601 return t(Nn(i[0]), Nn(i[1]), Nn(i[2]));602 }603 return (u = ua.get(n))604 ? t(u.r, u.g, u.b)605 : (null == n ||606 "#" !== n.charAt(0) ||607 isNaN((u = parseInt(n.slice(1), 16))) ||608 (4 === n.length609 ? ((o = (3840 & u) >> 4),610 (o = (o >> 4) | o),611 (a = 240 & u),612 (a = (a >> 4) | a),613 (l = 15 & u),614 (l = (l << 4) | l))615 : 7 === n.length &&616 ((o = (16711680 & u) >> 16),617 (a = (65280 & u) >> 8),618 (l = 255 & u))),619 t(o, a, l));620 }621 function wn(n, t, e) {622 var r,623 i,624 u = Math.min((n /= 255), (t /= 255), (e /= 255)),625 o = Math.max(n, t, e),626 a = o - u,627 l = (o + u) / 2;628 return (629 a630 ? ((i = 0.5 > l ? a / (o + u) : a / (2 - o - u)),631 (r =632 n == o633 ? (t - e) / a + (e > t ? 6 : 0)634 : t == o635 ? (e - n) / a + 2636 : (n - t) / a + 4),637 (r *= 60))638 : ((r = NaN), (i = l > 0 && 1 > l ? 0 : r)),639 new ln(r, i, l)640 );641 }642 function Sn(n, t, e) {643 (n = kn(n)), (t = kn(t)), (e = kn(e));644 var r = dn((0.4124564 * n + 0.3575761 * t + 0.1804375 * e) / na),645 i = dn((0.2126729 * n + 0.7151522 * t + 0.072175 * e) / ta),646 u = dn((0.0193339 * n + 0.119192 * t + 0.9503041 * e) / ea);647 return hn(116 * i - 16, 500 * (r - i), 200 * (i - u));648 }649 function kn(n) {650 return (n /= 255) <= 0.04045651 ? n / 12.92652 : Math.pow((n + 0.055) / 1.055, 2.4);653 }654 function Nn(n) {655 var t = parseFloat(n);656 return "%" === n.charAt(n.length - 1) ? Math.round(2.55 * t) : t;657 }658 function En(n) {659 return "function" == typeof n660 ? n661 : function () {662 return n;663 };664 }665 function An(n) {666 return function (t, e, r) {667 return (668 2 === arguments.length &&669 "function" == typeof e &&670 ((r = e), (e = null)),671 Cn(t, e, n, r)672 );673 };674 }675 function Cn(n, t, e, r) {676 function i() {677 var n,678 t = l.status;679 if ((!t && Ln(l)) || (t >= 200 && 300 > t) || 304 === t) {680 try {681 n = e.call(u, l);682 } catch (r) {683 return void o.error.call(u, r);684 }685 o.load.call(u, n);686 } else o.error.call(u, l);687 }688 var u = {},689 o = ao.dispatch("beforesend", "progress", "load", "error"),690 a = {},691 l = new XMLHttpRequest(),692 c = null;693 return (694 !this.XDomainRequest ||695 "withCredentials" in l ||696 !/^(http(s)?:)?\/\//.test(n) ||697 (l = new XDomainRequest()),698 "onload" in l699 ? (l.onload = l.onerror = i)700 : (l.onreadystatechange = function () {701 l.readyState > 3 && i();702 }),703 (l.onprogress = function (n) {704 var t = ao.event;705 ao.event = n;706 try {707 o.progress.call(u, l);708 } finally {709 ao.event = t;710 }711 }),712 (u.header = function (n, t) {713 return (714 (n = (n + "").toLowerCase()),715 arguments.length < 2716 ? a[n]717 : (null == t ? delete a[n] : (a[n] = t + ""), u)718 );719 }),720 (u.mimeType = function (n) {721 return arguments.length ? ((t = null == n ? null : n + ""), u) : t;722 }),723 (u.responseType = function (n) {724 return arguments.length ? ((c = n), u) : c;725 }),726 (u.response = function (n) {727 return (e = n), u;728 }),729 ["get", "post"].forEach(function (n) {730 u[n] = function () {731 return u.send.apply(u, [n].concat(co(arguments)));732 };733 }),734 (u.send = function (e, r, i) {735 if (736 (2 === arguments.length &&737 "function" == typeof r &&738 ((i = r), (r = null)),739 l.open(e, n, !0),740 null == t || "accept" in a || (a.accept = t + ",*/*"),741 l.setRequestHeader)742 )743 for (var f in a) l.setRequestHeader(f, a[f]);744 return (745 null != t && l.overrideMimeType && l.overrideMimeType(t),746 null != c && (l.responseType = c),747 null != i &&748 u.on("error", i).on("load", function (n) {749 i(null, n);750 }),751 o.beforesend.call(u, l),752 l.send(null == r ? null : r),753 u754 );755 }),756 (u.abort = function () {757 return l.abort(), u;758 }),759 ao.rebind(u, o, "on"),760 null == r ? u : u.get(zn(r))761 );762 }763 function zn(n) {764 return 1 === n.length765 ? function (t, e) {766 n(null == t ? e : null);767 }768 : n;769 }770 function Ln(n) {771 var t = n.responseType;772 return t && "text" !== t ? n.response : n.responseText;773 }774 function qn(n, t, e) {775 var r = arguments.length;776 2 > r && (t = 0), 3 > r && (e = Date.now());777 var i = e + t,778 u = { c: n, t: i, n: null };779 return (780 aa ? (aa.n = u) : (oa = u),781 (aa = u),782 la || ((ca = clearTimeout(ca)), (la = 1), fa(Tn)),783 u784 );785 }786 function Tn() {787 var n = Rn(),788 t = Dn() - n;789 t > 24790 ? (isFinite(t) && (clearTimeout(ca), (ca = setTimeout(Tn, t))), (la = 0))791 : ((la = 1), fa(Tn));792 }793 function Rn() {794 for (var n = Date.now(), t = oa; t; )795 n >= t.t && t.c(n - t.t) && (t.c = null), (t = t.n);796 return n;797 }798 function Dn() {799 for (var n, t = oa, e = 1 / 0; t; )800 t.c801 ? (t.t < e && (e = t.t), (t = (n = t).n))802 : (t = n ? (n.n = t.n) : (oa = t.n));803 return (aa = n), e;804 }805 function Pn(n, t) {806 return t - (n ? Math.ceil(Math.log(n) / Math.LN10) : 1);807 }808 function Un(n, t) {809 var e = Math.pow(10, 3 * xo(8 - t));810 return {811 scale:812 t > 8813 ? function (n) {814 return n / e;815 }816 : function (n) {817 return n * e;818 },819 symbol: n,820 };821 }822 function jn(n) {823 var t = n.decimal,824 e = n.thousands,825 r = n.grouping,826 i = n.currency,827 u =828 r && e829 ? function (n, t) {830 for (831 var i = n.length, u = [], o = 0, a = r[0], l = 0;832 i > 0 &&833 a > 0 &&834 (l + a + 1 > t && (a = Math.max(1, t - l)),835 u.push(n.substring((i -= a), i + a)),836 !((l += a + 1) > t));837 )838 a = r[(o = (o + 1) % r.length)];839 return u.reverse().join(e);840 }841 : m;842 return function (n) {843 var e = ha.exec(n),844 r = e[1] || " ",845 o = e[2] || ">",846 a = e[3] || "-",847 l = e[4] || "",848 c = e[5],849 f = +e[6],850 s = e[7],851 h = e[8],852 p = e[9],853 g = 1,854 v = "",855 d = "",856 y = !1,857 m = !0;858 switch (859 (h && (h = +h.substring(1)),860 (c || ("0" === r && "=" === o)) && ((c = r = "0"), (o = "=")),861 p)862 ) {863 case "n":864 (s = !0), (p = "g");865 break;866 case "%":867 (g = 100), (d = "%"), (p = "f");868 break;869 case "p":870 (g = 100), (d = "%"), (p = "r");871 break;872 case "b":873 case "o":874 case "x":875 case "X":876 "#" === l && (v = "0" + p.toLowerCase());877 case "c":878 m = !1;879 case "d":880 (y = !0), (h = 0);881 break;882 case "s":883 (g = -1), (p = "r");884 }885 "$" === l && ((v = i[0]), (d = i[1])),886 "r" != p || h || (p = "g"),887 null != h &&888 ("g" == p889 ? (h = Math.max(1, Math.min(21, h)))890 : ("e" != p && "f" != p) || (h = Math.max(0, Math.min(20, h)))),891 (p = pa.get(p) || Fn);892 var M = c && s;893 return function (n) {894 var e = d;895 if (y && n % 1) return "";896 var i =897 0 > n || (0 === n && 0 > 1 / n)898 ? ((n = -n), "-")899 : "-" === a900 ? ""901 : a;902 if (0 > g) {903 var l = ao.formatPrefix(n, h);904 (n = l.scale(n)), (e = l.symbol + d);905 } else n *= g;906 n = p(n, h);907 var x,908 b,909 _ = n.lastIndexOf(".");910 if (0 > _) {911 var w = m ? n.lastIndexOf("e") : -1;912 0 > w913 ? ((x = n), (b = ""))914 : ((x = n.substring(0, w)), (b = n.substring(w)));915 } else (x = n.substring(0, _)), (b = t + n.substring(_ + 1));916 !c && s && (x = u(x, 1 / 0));917 var S = v.length + x.length + b.length + (M ? 0 : i.length),918 k = f > S ? new Array((S = f - S + 1)).join(r) : "";919 return (920 M && (x = u(k + x, k.length ? f - b.length : 1 / 0)),921 (i += v),922 (n = x + b),923 ("<" === o924 ? i + n + k925 : ">" === o926 ? k + i + n927 : "^" === o928 ? k.substring(0, (S >>= 1)) + i + n + k.substring(S)929 : i + (M ? n : k + n)) + e930 );931 };932 };933 }934 function Fn(n) {935 return n + "";936 }937 function Hn() {938 this._ = new Date(939 arguments.length > 1 ? Date.UTC.apply(this, arguments) : arguments[0]940 );941 }942 function On(n, t, e) {943 function r(t) {944 var e = n(t),945 r = u(e, 1);946 return r - t > t - e ? e : r;947 }948 function i(e) {949 return t((e = n(new va(e - 1))), 1), e;950 }951 function u(n, e) {952 return t((n = new va(+n)), e), n;953 }954 function o(n, r, u) {955 var o = i(n),956 a = [];957 if (u > 1) for (; r > o; ) e(o) % u || a.push(new Date(+o)), t(o, 1);958 else for (; r > o; ) a.push(new Date(+o)), t(o, 1);959 return a;960 }961 function a(n, t, e) {962 try {963 va = Hn;964 var r = new Hn();965 return (r._ = n), o(r, t, e);966 } finally {967 va = Date;968 }969 }970 (n.floor = n), (n.round = r), (n.ceil = i), (n.offset = u), (n.range = o);971 var l = (n.utc = In(n));972 return (973 (l.floor = l),974 (l.round = In(r)),975 (l.ceil = In(i)),976 (l.offset = In(u)),977 (l.range = a),978 n979 );980 }981 function In(n) {982 return function (t, e) {983 try {984 va = Hn;985 var r = new Hn();986 return (r._ = t), n(r, e)._;987 } finally {988 va = Date;989 }990 };991 }992 function Yn(n) {993 function t(n) {994 function t(t) {995 for (var e, i, u, o = [], a = -1, l = 0; ++a < r; )996 37 === n.charCodeAt(a) &&997 (o.push(n.slice(l, a)),998 null != (i = ya[(e = n.charAt(++a))]) && (e = n.charAt(++a)),999 (u = A[e]) && (e = u(t, null == i ? ("e" === e ? " " : "0") : i)),1000 o.push(e),1001 (l = a + 1));1002 return o.push(n.slice(l, a)), o.join("");1003 }1004 var r = n.length;1005 return (1006 (t.parse = function (t) {1007 var r = { y: 1900, m: 0, d: 1, H: 0, M: 0, S: 0, L: 0, Z: null },1008 i = e(r, n, t, 0);1009 if (i != t.length) return null;1010 "p" in r && (r.H = (r.H % 12) + 12 * r.p);1011 var u = null != r.Z && va !== Hn,1012 o = new (u ? Hn : va)();1013 return (1014 "j" in r1015 ? o.setFullYear(r.y, 0, r.j)1016 : "W" in r || "U" in r1017 ? ("w" in r || (r.w = "W" in r ? 1 : 0),1018 o.setFullYear(r.y, 0, 1),1019 o.setFullYear(1020 r.y,1021 0,1022 "W" in r1023 ? ((r.w + 6) % 7) + 7 * r.W - ((o.getDay() + 5) % 7)1024 : r.w + 7 * r.U - ((o.getDay() + 6) % 7)1025 ))1026 : o.setFullYear(r.y, r.m, r.d),1027 o.setHours(r.H + ((r.Z / 100) | 0), r.M + (r.Z % 100), r.S, r.L),1028 u ? o._ : o1029 );1030 }),1031 (t.toString = function () {1032 return n;1033 }),1034 t1035 );1036 }1037 function e(n, t, e, r) {1038 for (var i, u, o, a = 0, l = t.length, c = e.length; l > a; ) {1039 if (r >= c) return -1;1040 if (((i = t.charCodeAt(a++)), 37 === i)) {1041 if (1042 ((o = t.charAt(a++)),1043 (u = C[o in ya ? t.charAt(a++) : o]),1044 !u || (r = u(n, e, r)) < 0)1045 )1046 return -1;1047 } else if (i != e.charCodeAt(r++)) return -1;1048 }1049 return r;1050 }1051 function r(n, t, e) {1052 _.lastIndex = 0;1053 var r = _.exec(t.slice(e));1054 return r ? ((n.w = w.get(r[0].toLowerCase())), e + r[0].length) : -1;1055 }1056 function i(n, t, e) {1057 x.lastIndex = 0;1058 var r = x.exec(t.slice(e));1059 return r ? ((n.w = b.get(r[0].toLowerCase())), e + r[0].length) : -1;1060 }1061 function u(n, t, e) {1062 N.lastIndex = 0;1063 var r = N.exec(t.slice(e));1064 return r ? ((n.m = E.get(r[0].toLowerCase())), e + r[0].length) : -1;1065 }1066 function o(n, t, e) {1067 S.lastIndex = 0;1068 var r = S.exec(t.slice(e));1069 return r ? ((n.m = k.get(r[0].toLowerCase())), e + r[0].length) : -1;1070 }1071 function a(n, t, r) {1072 return e(n, A.c.toString(), t, r);1073 }1074 function l(n, t, r) {1075 return e(n, A.x.toString(), t, r);1076 }1077 function c(n, t, r) {1078 return e(n, A.X.toString(), t, r);1079 }1080 function f(n, t, e) {1081 var r = M.get(t.slice(e, (e += 2)).toLowerCase());1082 return null == r ? -1 : ((n.p = r), e);1083 }1084 var s = n.dateTime,1085 h = n.date,1086 p = n.time,1087 g = n.periods,1088 v = n.days,1089 d = n.shortDays,1090 y = n.months,1091 m = n.shortMonths;1092 (t.utc = function (n) {1093 function e(n) {1094 try {1095 va = Hn;1096 var t = new va();1097 return (t._ = n), r(t);1098 } finally {1099 va = Date;1100 }1101 }1102 var r = t(n);1103 return (1104 (e.parse = function (n) {1105 try {1106 va = Hn;1107 var t = r.parse(n);1108 return t && t._;1109 } finally {1110 va = Date;1111 }1112 }),1113 (e.toString = r.toString),1114 e1115 );1116 }),1117 (t.multi = t.utc.multi = ct);1118 var M = ao.map(),1119 x = Vn(v),1120 b = Xn(v),1121 _ = Vn(d),1122 w = Xn(d),1123 S = Vn(y),1124 k = Xn(y),1125 N = Vn(m),1126 E = Xn(m);1127 g.forEach(function (n, t) {1128 M.set(n.toLowerCase(), t);1129 });1130 var A = {1131 a: function (n) {1132 return d[n.getDay()];1133 },1134 A: function (n) {1135 return v[n.getDay()];1136 },1137 b: function (n) {1138 return m[n.getMonth()];1139 },1140 B: function (n) {1141 return y[n.getMonth()];1142 },1143 c: t(s),1144 d: function (n, t) {1145 return Zn(n.getDate(), t, 2);1146 },1147 e: function (n, t) {1148 return Zn(n.getDate(), t, 2);1149 },1150 H: function (n, t) {1151 return Zn(n.getHours(), t, 2);1152 },1153 I: function (n, t) {1154 return Zn(n.getHours() % 12 || 12, t, 2);1155 },1156 j: function (n, t) {1157 return Zn(1 + ga.dayOfYear(n), t, 3);1158 },1159 L: function (n, t) {1160 return Zn(n.getMilliseconds(), t, 3);1161 },1162 m: function (n, t) {1163 return Zn(n.getMonth() + 1, t, 2);1164 },1165 M: function (n, t) {1166 return Zn(n.getMinutes(), t, 2);1167 },1168 p: function (n) {1169 return g[+(n.getHours() >= 12)];1170 },1171 S: function (n, t) {1172 return Zn(n.getSeconds(), t, 2);1173 },1174 U: function (n, t) {1175 return Zn(ga.sundayOfYear(n), t, 2);1176 },1177 w: function (n) {1178 return n.getDay();1179 },1180 W: function (n, t) {1181 return Zn(ga.mondayOfYear(n), t, 2);1182 },1183 x: t(h),1184 X: t(p),1185 y: function (n, t) {1186 return Zn(n.getFullYear() % 100, t, 2);1187 },1188 Y: function (n, t) {1189 return Zn(n.getFullYear() % 1e4, t, 4);1190 },1191 Z: at,1192 "%": function () {1193 return "%";1194 },1195 },1196 C = {1197 a: r,1198 A: i,1199 b: u,1200 B: o,1201 c: a,1202 d: tt,1203 e: tt,1204 H: rt,1205 I: rt,1206 j: et,1207 L: ot,1208 m: nt,1209 M: it,1210 p: f,1211 S: ut,1212 U: Bn,1213 w: $n,1214 W: Wn,1215 x: l,1216 X: c,1217 y: Gn,1218 Y: Jn,1219 Z: Kn,1220 "%": lt,1221 };1222 return t;1223 }1224 function Zn(n, t, e) {1225 var r = 0 > n ? "-" : "",1226 i = (r ? -n : n) + "",1227 u = i.length;1228 return r + (e > u ? new Array(e - u + 1).join(t) + i : i);1229 }1230 function Vn(n) {1231 return new RegExp("^(?:" + n.map(ao.requote).join("|") + ")", "i");1232 }1233 function Xn(n) {1234 for (var t = new c(), e = -1, r = n.length; ++e < r; )1235 t.set(n[e].toLowerCase(), e);1236 return t;1237 }1238 function $n(n, t, e) {1239 ma.lastIndex = 0;1240 var r = ma.exec(t.slice(e, e + 1));1241 return r ? ((n.w = +r[0]), e + r[0].length) : -1;1242 }1243 function Bn(n, t, e) {1244 ma.lastIndex = 0;1245 var r = ma.exec(t.slice(e));1246 return r ? ((n.U = +r[0]), e + r[0].length) : -1;1247 }1248 function Wn(n, t, e) {1249 ma.lastIndex = 0;1250 var r = ma.exec(t.slice(e));1251 return r ? ((n.W = +r[0]), e + r[0].length) : -1;1252 }1253 function Jn(n, t, e) {1254 ma.lastIndex = 0;1255 var r = ma.exec(t.slice(e, e + 4));1256 return r ? ((n.y = +r[0]), e + r[0].length) : -1;1257 }1258 function Gn(n, t, e) {1259 ma.lastIndex = 0;1260 var r = ma.exec(t.slice(e, e + 2));1261 return r ? ((n.y = Qn(+r[0])), e + r[0].length) : -1;1262 }1263 function Kn(n, t, e) {1264 return /^[+-]\d{4}$/.test((t = t.slice(e, e + 5)))1265 ? ((n.Z = -t), e + 5)1266 : -1;1267 }1268 function Qn(n) {1269 return n + (n > 68 ? 1900 : 2e3);1270 }1271 function nt(n, t, e) {1272 ma.lastIndex = 0;1273 var r = ma.exec(t.slice(e, e + 2));1274 return r ? ((n.m = r[0] - 1), e + r[0].length) : -1;1275 }1276 function tt(n, t, e) {1277 ma.lastIndex = 0;1278 var r = ma.exec(t.slice(e, e + 2));1279 return r ? ((n.d = +r[0]), e + r[0].length) : -1;1280 }1281 function et(n, t, e) {1282 ma.lastIndex = 0;1283 var r = ma.exec(t.slice(e, e + 3));1284 return r ? ((n.j = +r[0]), e + r[0].length) : -1;1285 }1286 function rt(n, t, e) {1287 ma.lastIndex = 0;1288 var r = ma.exec(t.slice(e, e + 2));1289 return r ? ((n.H = +r[0]), e + r[0].length) : -1;1290 }1291 function it(n, t, e) {1292 ma.lastIndex = 0;1293 var r = ma.exec(t.slice(e, e + 2));1294 return r ? ((n.M = +r[0]), e + r[0].length) : -1;1295 }1296 function ut(n, t, e) {1297 ma.lastIndex = 0;1298 var r = ma.exec(t.slice(e, e + 2));1299 return r ? ((n.S = +r[0]), e + r[0].length) : -1;1300 }1301 function ot(n, t, e) {1302 ma.lastIndex = 0;1303 var r = ma.exec(t.slice(e, e + 3));1304 return r ? ((n.L = +r[0]), e + r[0].length) : -1;1305 }1306 function at(n) {1307 var t = n.getTimezoneOffset(),1308 e = t > 0 ? "-" : "+",1309 r = (xo(t) / 60) | 0,1310 i = xo(t) % 60;1311 return e + Zn(r, "0", 2) + Zn(i, "0", 2);1312 }1313 function lt(n, t, e) {1314 Ma.lastIndex = 0;1315 var r = Ma.exec(t.slice(e, e + 1));1316 return r ? e + r[0].length : -1;1317 }1318 function ct(n) {1319 for (var t = n.length, e = -1; ++e < t; ) n[e][0] = this(n[e][0]);1320 return function (t) {1321 for (var e = 0, r = n[e]; !r[1](t); ) r = n[++e];1322 return r[0](t);1323 };1324 }1325 function ft() {}1326 function st(n, t, e) {1327 var r = (e.s = n + t),1328 i = r - n,1329 u = r - i;1330 e.t = n - u + (t - i);1331 }1332 function ht(n, t) {1333 n && wa.hasOwnProperty(n.type) && wa[n.type](n, t);1334 }1335 function pt(n, t, e) {1336 var r,1337 i = -1,1338 u = n.length - e;1339 for (t.lineStart(); ++i < u; ) (r = n[i]), t.point(r[0], r[1], r[2]);1340 t.lineEnd();1341 }1342 function gt(n, t) {1343 var e = -1,1344 r = n.length;1345 for (t.polygonStart(); ++e < r; ) pt(n[e], t, 1);1346 t.polygonEnd();1347 }1348 function vt() {1349 function n(n, t) {1350 (n *= Yo), (t = (t * Yo) / 2 + Fo / 4);1351 var e = n - r,1352 o = e >= 0 ? 1 : -1,1353 a = o * e,1354 l = Math.cos(t),1355 c = Math.sin(t),1356 f = u * c,1357 s = i * l + f * Math.cos(a),1358 h = f * o * Math.sin(a);1359 ka.add(Math.atan2(h, s)), (r = n), (i = l), (u = c);1360 }1361 var t, e, r, i, u;1362 (Na.point = function (o, a) {1363 (Na.point = n),1364 (r = (t = o) * Yo),1365 (i = Math.cos((a = ((e = a) * Yo) / 2 + Fo / 4))),1366 (u = Math.sin(a));1367 }),1368 (Na.lineEnd = function () {1369 n(t, e);1370 });1371 }1372 function dt(n) {1373 var t = n[0],1374 e = n[1],1375 r = Math.cos(e);1376 return [r * Math.cos(t), r * Math.sin(t), Math.sin(e)];1377 }1378 function yt(n, t) {1379 return n[0] * t[0] + n[1] * t[1] + n[2] * t[2];1380 }1381 function mt(n, t) {1382 return [1383 n[1] * t[2] - n[2] * t[1],1384 n[2] * t[0] - n[0] * t[2],1385 n[0] * t[1] - n[1] * t[0],1386 ];1387 }1388 function Mt(n, t) {1389 (n[0] += t[0]), (n[1] += t[1]), (n[2] += t[2]);1390 }1391 function xt(n, t) {1392 return [n[0] * t, n[1] * t, n[2] * t];1393 }1394 function bt(n) {1395 var t = Math.sqrt(n[0] * n[0] + n[1] * n[1] + n[2] * n[2]);1396 (n[0] /= t), (n[1] /= t), (n[2] /= t);1397 }1398 function _t(n) {1399 return [Math.atan2(n[1], n[0]), tn(n[2])];1400 }1401 function wt(n, t) {1402 return xo(n[0] - t[0]) < Uo && xo(n[1] - t[1]) < Uo;1403 }1404 function St(n, t) {1405 n *= Yo;1406 var e = Math.cos((t *= Yo));1407 kt(e * Math.cos(n), e * Math.sin(n), Math.sin(t));1408 }1409 function kt(n, t, e) {1410 ++Ea, (Ca += (n - Ca) / Ea), (za += (t - za) / Ea), (La += (e - La) / Ea);1411 }1412 function Nt() {1413 function n(n, i) {1414 n *= Yo;1415 var u = Math.cos((i *= Yo)),1416 o = u * Math.cos(n),1417 a = u * Math.sin(n),1418 l = Math.sin(i),1419 c = Math.atan2(1420 Math.sqrt(1421 (c = e * l - r * a) * c +1422 (c = r * o - t * l) * c +1423 (c = t * a - e * o) * c1424 ),1425 t * o + e * a + r * l1426 );1427 (Aa += c),1428 (qa += c * (t + (t = o))),1429 (Ta += c * (e + (e = a))),1430 (Ra += c * (r + (r = l))),1431 kt(t, e, r);1432 }1433 var t, e, r;1434 ja.point = function (i, u) {1435 i *= Yo;1436 var o = Math.cos((u *= Yo));1437 (t = o * Math.cos(i)),1438 (e = o * Math.sin(i)),1439 (r = Math.sin(u)),1440 (ja.point = n),1441 kt(t, e, r);1442 };1443 }1444 function Et() {1445 ja.point = St;1446 }1447 function At() {1448 function n(n, t) {1449 n *= Yo;1450 var e = Math.cos((t *= Yo)),1451 o = e * Math.cos(n),1452 a = e * Math.sin(n),1453 l = Math.sin(t),1454 c = i * l - u * a,1455 f = u * o - r * l,1456 s = r * a - i * o,1457 h = Math.sqrt(c * c + f * f + s * s),1458 p = r * o + i * a + u * l,1459 g = h && -nn(p) / h,1460 v = Math.atan2(h, p);1461 (Da += g * c),1462 (Pa += g * f),1463 (Ua += g * s),1464 (Aa += v),1465 (qa += v * (r + (r = o))),1466 (Ta += v * (i + (i = a))),1467 (Ra += v * (u + (u = l))),1468 kt(r, i, u);1469 }1470 var t, e, r, i, u;1471 (ja.point = function (o, a) {1472 (t = o), (e = a), (ja.point = n), (o *= Yo);1473 var l = Math.cos((a *= Yo));1474 (r = l * Math.cos(o)),1475 (i = l * Math.sin(o)),1476 (u = Math.sin(a)),1477 kt(r, i, u);1478 }),1479 (ja.lineEnd = function () {1480 n(t, e), (ja.lineEnd = Et), (ja.point = St);1481 });1482 }1483 function Ct(n, t) {1484 function e(e, r) {1485 return (e = n(e, r)), t(e[0], e[1]);1486 }1487 return (1488 n.invert &&1489 t.invert &&1490 (e.invert = function (e, r) {1491 return (e = t.invert(e, r)), e && n.invert(e[0], e[1]);1492 }),1493 e1494 );1495 }1496 function zt() {1497 return !0;1498 }1499 function Lt(n, t, e, r, i) {1500 var u = [],1501 o = [];1502 if (1503 (n.forEach(function (n) {1504 if (!((t = n.length - 1) <= 0)) {1505 var t,1506 e = n[0],1507 r = n[t];1508 if (wt(e, r)) {1509 i.lineStart();1510 for (var a = 0; t > a; ++a) i.point((e = n[a])[0], e[1]);1511 return void i.lineEnd();1512 }1513 var l = new Tt(e, n, null, !0),1514 c = new Tt(e, null, l, !1);1515 (l.o = c),1516 u.push(l),1517 o.push(c),1518 (l = new Tt(r, n, null, !1)),1519 (c = new Tt(r, null, l, !0)),1520 (l.o = c),1521 u.push(l),1522 o.push(c);1523 }1524 }),1525 o.sort(t),1526 qt(u),1527 qt(o),1528 u.length)1529 ) {1530 for (var a = 0, l = e, c = o.length; c > a; ++a) o[a].e = l = !l;1531 for (var f, s, h = u[0]; ; ) {1532 for (var p = h, g = !0; p.v; ) if ((p = p.n) === h) return;1533 (f = p.z), i.lineStart();1534 do {1535 if (((p.v = p.o.v = !0), p.e)) {1536 if (g)1537 for (var a = 0, c = f.length; c > a; ++a)1538 i.point((s = f[a])[0], s[1]);1539 else r(p.x, p.n.x, 1, i);1540 p = p.n;1541 } else {1542 if (g) {1543 f = p.p.z;1544 for (var a = f.length - 1; a >= 0; --a)1545 i.point((s = f[a])[0], s[1]);1546 } else r(p.x, p.p.x, -1, i);1547 p = p.p;1548 }1549 (p = p.o), (f = p.z), (g = !g);1550 } while (!p.v);1551 i.lineEnd();1552 }1553 }1554 }1555 function qt(n) {1556 if ((t = n.length)) {1557 for (var t, e, r = 0, i = n[0]; ++r < t; )1558 (i.n = e = n[r]), (e.p = i), (i = e);1559 (i.n = e = n[0]), (e.p = i);1560 }1561 }1562 function Tt(n, t, e, r) {1563 (this.x = n),1564 (this.z = t),1565 (this.o = e),1566 (this.e = r),1567 (this.v = !1),1568 (this.n = this.p = null);1569 }1570 function Rt(n, t, e, r) {1571 return function (i, u) {1572 function o(t, e) {1573 var r = i(t, e);1574 n((t = r[0]), (e = r[1])) && u.point(t, e);1575 }1576 function a(n, t) {1577 var e = i(n, t);1578 d.point(e[0], e[1]);1579 }1580 function l() {1581 (m.point = a), d.lineStart();1582 }1583 function c() {1584 (m.point = o), d.lineEnd();1585 }1586 function f(n, t) {1587 v.push([n, t]);1588 var e = i(n, t);1589 x.point(e[0], e[1]);1590 }1591 function s() {1592 x.lineStart(), (v = []);1593 }1594 function h() {1595 f(v[0][0], v[0][1]), x.lineEnd();1596 var n,1597 t = x.clean(),1598 e = M.buffer(),1599 r = e.length;1600 if ((v.pop(), g.push(v), (v = null), r))1601 if (1 & t) {1602 n = e[0];1603 var i,1604 r = n.length - 1,1605 o = -1;1606 if (r > 0) {1607 for (b || (u.polygonStart(), (b = !0)), u.lineStart(); ++o < r; )1608 u.point((i = n[o])[0], i[1]);1609 u.lineEnd();1610 }1611 } else1612 r > 1 && 2 & t && e.push(e.pop().concat(e.shift())),1613 p.push(e.filter(Dt));1614 }1615 var p,1616 g,1617 v,1618 d = t(u),1619 y = i.invert(r[0], r[1]),1620 m = {1621 point: o,1622 lineStart: l,1623 lineEnd: c,1624 polygonStart: function () {1625 (m.point = f),1626 (m.lineStart = s),1627 (m.lineEnd = h),1628 (p = []),1629 (g = []);1630 },1631 polygonEnd: function () {1632 (m.point = o),1633 (m.lineStart = l),1634 (m.lineEnd = c),1635 (p = ao.merge(p));1636 var n = Ot(y, g);1637 p.length1638 ? (b || (u.polygonStart(), (b = !0)), Lt(p, Ut, n, e, u))1639 : n &&1640 (b || (u.polygonStart(), (b = !0)),1641 u.lineStart(),1642 e(null, null, 1, u),1643 u.lineEnd()),1644 b && (u.polygonEnd(), (b = !1)),1645 (p = g = null);1646 },1647 sphere: function () {1648 u.polygonStart(),1649 u.lineStart(),1650 e(null, null, 1, u),1651 u.lineEnd(),1652 u.polygonEnd();1653 },1654 },1655 M = Pt(),1656 x = t(M),1657 b = !1;1658 return m;1659 };1660 }1661 function Dt(n) {1662 return n.length > 1;1663 }1664 function Pt() {1665 var n,1666 t = [];1667 return {1668 lineStart: function () {1669 t.push((n = []));1670 },1671 point: function (t, e) {1672 n.push([t, e]);1673 },1674 lineEnd: b,1675 buffer: function () {1676 var e = t;1677 return (t = []), (n = null), e;1678 },1679 rejoin: function () {1680 t.length > 1 && t.push(t.pop().concat(t.shift()));1681 },1682 };1683 }1684 function Ut(n, t) {1685 return (1686 ((n = n.x)[0] < 0 ? n[1] - Io - Uo : Io - n[1]) -1687 ((t = t.x)[0] < 0 ? t[1] - Io - Uo : Io - t[1])1688 );1689 }1690 function jt(n) {1691 var t,1692 e = NaN,1693 r = NaN,1694 i = NaN;1695 return {1696 lineStart: function () {1697 n.lineStart(), (t = 1);1698 },1699 point: function (u, o) {1700 var a = u > 0 ? Fo : -Fo,1701 l = xo(u - e);1702 xo(l - Fo) < Uo1703 ? (n.point(e, (r = (r + o) / 2 > 0 ? Io : -Io)),1704 n.point(i, r),1705 n.lineEnd(),1706 n.lineStart(),1707 n.point(a, r),1708 n.point(u, r),1709 (t = 0))1710 : i !== a &&1711 l >= Fo &&1712 (xo(e - i) < Uo && (e -= i * Uo),1713 xo(u - a) < Uo && (u -= a * Uo),1714 (r = Ft(e, r, u, o)),1715 n.point(i, r),1716 n.lineEnd(),1717 n.lineStart(),1718 n.point(a, r),1719 (t = 0)),1720 n.point((e = u), (r = o)),1721 (i = a);1722 },1723 lineEnd: function () {1724 n.lineEnd(), (e = r = NaN);1725 },1726 clean: function () {1727 return 2 - t;1728 },1729 };1730 }1731 function Ft(n, t, e, r) {1732 var i,1733 u,1734 o = Math.sin(n - e);1735 return xo(o) > Uo1736 ? Math.atan(1737 (Math.sin(t) * (u = Math.cos(r)) * Math.sin(e) -1738 Math.sin(r) * (i = Math.cos(t)) * Math.sin(n)) /1739 (i * u * o)1740 )1741 : (t + r) / 2;1742 }1743 function Ht(n, t, e, r) {1744 var i;1745 if (null == n)1746 (i = e * Io),1747 r.point(-Fo, i),1748 r.point(0, i),1749 r.point(Fo, i),1750 r.point(Fo, 0),1751 r.point(Fo, -i),1752 r.point(0, -i),1753 r.point(-Fo, -i),1754 r.point(-Fo, 0),1755 r.point(-Fo, i);1756 else if (xo(n[0] - t[0]) > Uo) {1757 var u = n[0] < t[0] ? Fo : -Fo;1758 (i = (e * u) / 2), r.point(-u, i), r.point(0, i), r.point(u, i);1759 } else r.point(t[0], t[1]);1760 }1761 function Ot(n, t) {1762 var e = n[0],1763 r = n[1],1764 i = [Math.sin(e), -Math.cos(e), 0],1765 u = 0,1766 o = 0;1767 ka.reset();1768 for (var a = 0, l = t.length; l > a; ++a) {1769 var c = t[a],1770 f = c.length;1771 if (f)1772 for (1773 var s = c[0],1774 h = s[0],1775 p = s[1] / 2 + Fo / 4,1776 g = Math.sin(p),1777 v = Math.cos(p),1778 d = 1;1779 ;1780 ) {1781 d === f && (d = 0), (n = c[d]);1782 var y = n[0],1783 m = n[1] / 2 + Fo / 4,1784 M = Math.sin(m),1785 x = Math.cos(m),1786 b = y - h,1787 _ = b >= 0 ? 1 : -1,1788 w = _ * b,1789 S = w > Fo,1790 k = g * M;1791 if (1792 (ka.add(Math.atan2(k * _ * Math.sin(w), v * x + k * Math.cos(w))),1793 (u += S ? b + _ * Ho : b),1794 S ^ (h >= e) ^ (y >= e))1795 ) {1796 var N = mt(dt(s), dt(n));1797 bt(N);1798 var E = mt(i, N);1799 bt(E);1800 var A = (S ^ (b >= 0) ? -1 : 1) * tn(E[2]);1801 (r > A || (r === A && (N[0] || N[1]))) &&1802 (o += S ^ (b >= 0) ? 1 : -1);1803 }1804 if (!d++) break;1805 (h = y), (g = M), (v = x), (s = n);1806 }1807 }1808 return (-Uo > u || (Uo > u && -Uo > ka)) ^ (1 & o);1809 }1810 function It(n) {1811 function t(n, t) {1812 return Math.cos(n) * Math.cos(t) > u;1813 }1814 function e(n) {1815 var e, u, l, c, f;1816 return {1817 lineStart: function () {1818 (c = l = !1), (f = 1);1819 },1820 point: function (s, h) {1821 var p,1822 g = [s, h],1823 v = t(s, h),1824 d = o ? (v ? 0 : i(s, h)) : v ? i(s + (0 > s ? Fo : -Fo), h) : 0;1825 if (1826 (!e && (c = l = v) && n.lineStart(),1827 v !== l &&1828 ((p = r(e, g)),1829 (wt(e, p) || wt(g, p)) &&1830 ((g[0] += Uo), (g[1] += Uo), (v = t(g[0], g[1])))),1831 v !== l)1832 )1833 (f = 0),1834 v1835 ? (n.lineStart(), (p = r(g, e)), n.point(p[0], p[1]))1836 : ((p = r(e, g)), n.point(p[0], p[1]), n.lineEnd()),1837 (e = p);1838 else if (a && e && o ^ v) {1839 var y;1840 d & u ||1841 !(y = r(g, e, !0)) ||1842 ((f = 0),1843 o1844 ? (n.lineStart(),1845 n.point(y[0][0], y[0][1]),1846 n.point(y[1][0], y[1][1]),1847 n.lineEnd())1848 : (n.point(y[1][0], y[1][1]),1849 n.lineEnd(),1850 n.lineStart(),1851 n.point(y[0][0], y[0][1])));1852 }1853 !v || (e && wt(e, g)) || n.point(g[0], g[1]),1854 (e = g),1855 (l = v),1856 (u = d);1857 },1858 lineEnd: function () {1859 l && n.lineEnd(), (e = null);1860 },1861 clean: function () {1862 return f | ((c && l) << 1);1863 },1864 };1865 }1866 function r(n, t, e) {1867 var r = dt(n),1868 i = dt(t),1869 o = [1, 0, 0],1870 a = mt(r, i),1871 l = yt(a, a),1872 c = a[0],1873 f = l - c * c;1874 if (!f) return !e && n;1875 var s = (u * l) / f,1876 h = (-u * c) / f,1877 p = mt(o, a),1878 g = xt(o, s),1879 v = xt(a, h);1880 Mt(g, v);1881 var d = p,1882 y = yt(g, d),1883 m = yt(d, d),1884 M = y * y - m * (yt(g, g) - 1);1885 if (!(0 > M)) {1886 var x = Math.sqrt(M),1887 b = xt(d, (-y - x) / m);1888 if ((Mt(b, g), (b = _t(b)), !e)) return b;1889 var _,1890 w = n[0],1891 S = t[0],1892 k = n[1],1893 N = t[1];1894 w > S && ((_ = w), (w = S), (S = _));1895 var E = S - w,1896 A = xo(E - Fo) < Uo,1897 C = A || Uo > E;1898 if (1899 (!A && k > N && ((_ = k), (k = N), (N = _)),1900 C1901 ? A1902 ? (k + N > 0) ^ (b[1] < (xo(b[0] - w) < Uo ? k : N))1903 : k <= b[1] && b[1] <= N1904 : (E > Fo) ^ (w <= b[0] && b[0] <= S))1905 ) {1906 var z = xt(d, (-y + x) / m);1907 return Mt(z, g), [b, _t(z)];1908 }1909 }1910 }1911 function i(t, e) {1912 var r = o ? n : Fo - n,1913 i = 0;1914 return (1915 -r > t ? (i |= 1) : t > r && (i |= 2),1916 -r > e ? (i |= 4) : e > r && (i |= 8),1917 i1918 );1919 }1920 var u = Math.cos(n),1921 o = u > 0,1922 a = xo(u) > Uo,1923 l = ve(n, 6 * Yo);1924 return Rt(t, e, l, o ? [0, -n] : [-Fo, n - Fo]);1925 }1926 function Yt(n, t, e, r) {1927 return function (i) {1928 var u,1929 o = i.a,1930 a = i.b,1931 l = o.x,1932 c = o.y,1933 f = a.x,1934 s = a.y,1935 h = 0,1936 p = 1,1937 g = f - l,1938 v = s - c;1939 if (((u = n - l), g || !(u > 0))) {1940 if (((u /= g), 0 > g)) {1941 if (h > u) return;1942 p > u && (p = u);1943 } else if (g > 0) {1944 if (u > p) return;1945 u > h && (h = u);1946 }1947 if (((u = e - l), g || !(0 > u))) {1948 if (((u /= g), 0 > g)) {1949 if (u > p) return;1950 u > h && (h = u);1951 } else if (g > 0) {1952 if (h > u) return;1953 p > u && (p = u);1954 }1955 if (((u = t - c), v || !(u > 0))) {1956 if (((u /= v), 0 > v)) {1957 if (h > u) return;1958 p > u && (p = u);1959 } else if (v > 0) {1960 if (u > p) return;1961 u > h && (h = u);1962 }1963 if (((u = r - c), v || !(0 > u))) {1964 if (((u /= v), 0 > v)) {1965 if (u > p) return;1966 u > h && (h = u);1967 } else if (v > 0) {1968 if (h > u) return;1969 p > u && (p = u);1970 }1971 return (1972 h > 0 && (i.a = { x: l + h * g, y: c + h * v }),1973 1 > p && (i.b = { x: l + p * g, y: c + p * v }),1974 i1975 );1976 }1977 }1978 }1979 }1980 };1981 }1982 function Zt(n, t, e, r) {1983 function i(r, i) {1984 return xo(r[0] - n) < Uo1985 ? i > 01986 ? 01987 : 31988 : xo(r[0] - e) < Uo1989 ? i > 01990 ? 21991 : 11992 : xo(r[1] - t) < Uo1993 ? i > 01994 ? 11995 : 01996 : i > 01997 ? 31998 : 2;1999 }2000 function u(n, t) {2001 return o(n.x, t.x);2002 }2003 function o(n, t) {2004 var e = i(n, 1),2005 r = i(t, 1);2006 return e !== r2007 ? e - r2008 : 0 === e2009 ? t[1] - n[1]2010 : 1 === e2011 ? n[0] - t[0]2012 : 2 === e2013 ? n[1] - t[1]2014 : t[0] - n[0];2015 }2016 return function (a) {2017 function l(n) {2018 for (var t = 0, e = d.length, r = n[1], i = 0; e > i; ++i)2019 for (var u, o = 1, a = d[i], l = a.length, c = a[0]; l > o; ++o)2020 (u = a[o]),2021 c[1] <= r2022 ? u[1] > r && Q(c, u, n) > 0 && ++t2023 : u[1] <= r && Q(c, u, n) < 0 && --t,2024 (c = u);2025 return 0 !== t;2026 }2027 function c(u, a, l, c) {2028 var f = 0,2029 s = 0;2030 if (2031 null == u ||2032 (f = i(u, l)) !== (s = i(a, l)) ||2033 (o(u, a) < 0) ^ (l > 0)2034 ) {2035 do c.point(0 === f || 3 === f ? n : e, f > 1 ? r : t);2036 while ((f = (f + l + 4) % 4) !== s);2037 } else c.point(a[0], a[1]);2038 }2039 function f(i, u) {2040 return i >= n && e >= i && u >= t && r >= u;2041 }2042 function s(n, t) {2043 f(n, t) && a.point(n, t);2044 }2045 function h() {2046 (C.point = g), d && d.push((y = [])), (S = !0), (w = !1), (b = _ = NaN);2047 }2048 function p() {2049 v && (g(m, M), x && w && E.rejoin(), v.push(E.buffer())),2050 (C.point = s),2051 w && a.lineEnd();2052 }2053 function g(n, t) {2054 (n = Math.max(-Ha, Math.min(Ha, n))),2055 (t = Math.max(-Ha, Math.min(Ha, t)));2056 var e = f(n, t);2057 if ((d && y.push([n, t]), S))2058 (m = n),2059 (M = t),2060 (x = e),2061 (S = !1),2062 e && (a.lineStart(), a.point(n, t));2063 else if (e && w) a.point(n, t);2064 else {2065 var r = { a: { x: b, y: _ }, b: { x: n, y: t } };2066 A(r)2067 ? (w || (a.lineStart(), a.point(r.a.x, r.a.y)),2068 a.point(r.b.x, r.b.y),2069 e || a.lineEnd(),2070 (k = !1))2071 : e && (a.lineStart(), a.point(n, t), (k = !1));2072 }2073 (b = n), (_ = t), (w = e);2074 }2075 var v,2076 d,2077 y,2078 m,2079 M,2080 x,2081 b,2082 _,2083 w,2084 S,2085 k,2086 N = a,2087 E = Pt(),2088 A = Yt(n, t, e, r),2089 C = {2090 point: s,2091 lineStart: h,2092 lineEnd: p,2093 polygonStart: function () {2094 (a = E), (v = []), (d = []), (k = !0);2095 },2096 polygonEnd: function () {2097 (a = N), (v = ao.merge(v));2098 var t = l([n, r]),2099 e = k && t,2100 i = v.length;2101 (e || i) &&2102 (a.polygonStart(),2103 e && (a.lineStart(), c(null, null, 1, a), a.lineEnd()),2104 i && Lt(v, u, t, c, a),2105 a.polygonEnd()),2106 (v = d = y = null);2107 },2108 };2109 return C;2110 };2111 }2112 function Vt(n) {2113 var t = 0,2114 e = Fo / 3,2115 r = ae(n),2116 i = r(t, e);2117 return (2118 (i.parallels = function (n) {2119 return arguments.length2120 ? r((t = (n[0] * Fo) / 180), (e = (n[1] * Fo) / 180))2121 : [(t / Fo) * 180, (e / Fo) * 180];2122 }),2123 i2124 );2125 }2126 function Xt(n, t) {2127 function e(n, t) {2128 var e = Math.sqrt(u - 2 * i * Math.sin(t)) / i;2129 return [e * Math.sin((n *= i)), o - e * Math.cos(n)];2130 }2131 var r = Math.sin(n),2132 i = (r + Math.sin(t)) / 2,2133 u = 1 + r * (2 * i - r),2134 o = Math.sqrt(u) / i;2135 return (2136 (e.invert = function (n, t) {2137 var e = o - t;2138 return [2139 Math.atan2(n, e) / i,2140 tn((u - (n * n + e * e) * i * i) / (2 * i)),2141 ];2142 }),2143 e2144 );2145 }2146 function $t() {2147 function n(n, t) {2148 (Ia += i * n - r * t), (r = n), (i = t);2149 }2150 var t, e, r, i;2151 ($a.point = function (u, o) {2152 ($a.point = n), (t = r = u), (e = i = o);2153 }),2154 ($a.lineEnd = function () {2155 n(t, e);2156 });2157 }2158 function Bt(n, t) {2159 Ya > n && (Ya = n),2160 n > Va && (Va = n),2161 Za > t && (Za = t),2162 t > Xa && (Xa = t);2163 }2164 function Wt() {2165 function n(n, t) {2166 o.push("M", n, ",", t, u);2167 }2168 function t(n, t) {2169 o.push("M", n, ",", t), (a.point = e);2170 }2171 function e(n, t) {2172 o.push("L", n, ",", t);2173 }2174 function r() {2175 a.point = n;2176 }2177 function i() {2178 o.push("Z");2179 }2180 var u = Jt(4.5),2181 o = [],2182 a = {2183 point: n,2184 lineStart: function () {2185 a.point = t;2186 },2187 lineEnd: r,2188 polygonStart: function () {2189 a.lineEnd = i;2190 },2191 polygonEnd: function () {2192 (a.lineEnd = r), (a.point = n);2193 },2194 pointRadius: function (n) {2195 return (u = Jt(n)), a;2196 },2197 result: function () {2198 if (o.length) {2199 var n = o.join("");2200 return (o = []), n;2201 }2202 },2203 };2204 return a;2205 }2206 function Jt(n) {2207 return (2208 "m0," +2209 n +2210 "a" +2211 n +2212 "," +2213 n +2214 " 0 1,1 0," +2215 -2 * n +2216 "a" +2217 n +2218 "," +2219 n +2220 " 0 1,1 0," +2221 2 * n +2222 "z"2223 );2224 }2225 function Gt(n, t) {2226 (Ca += n), (za += t), ++La;2227 }2228 function Kt() {2229 function n(n, r) {2230 var i = n - t,2231 u = r - e,2232 o = Math.sqrt(i * i + u * u);2233 (qa += (o * (t + n)) / 2),2234 (Ta += (o * (e + r)) / 2),2235 (Ra += o),2236 Gt((t = n), (e = r));2237 }2238 var t, e;2239 Wa.point = function (r, i) {2240 (Wa.point = n), Gt((t = r), (e = i));2241 };2242 }2243 function Qt() {2244 Wa.point = Gt;2245 }2246 function ne() {2247 function n(n, t) {2248 var e = n - r,2249 u = t - i,2250 o = Math.sqrt(e * e + u * u);2251 (qa += (o * (r + n)) / 2),2252 (Ta += (o * (i + t)) / 2),2253 (Ra += o),2254 (o = i * n - r * t),2255 (Da += o * (r + n)),2256 (Pa += o * (i + t)),2257 (Ua += 3 * o),2258 Gt((r = n), (i = t));2259 }2260 var t, e, r, i;2261 (Wa.point = function (u, o) {2262 (Wa.point = n), Gt((t = r = u), (e = i = o));2263 }),2264 (Wa.lineEnd = function () {2265 n(t, e);2266 });2267 }2268 function te(n) {2269 function t(t, e) {2270 n.moveTo(t + o, e), n.arc(t, e, o, 0, Ho);2271 }2272 function e(t, e) {2273 n.moveTo(t, e), (a.point = r);2274 }2275 function r(t, e) {2276 n.lineTo(t, e);2277 }2278 function i() {2279 a.point = t;2280 }2281 function u() {2282 n.closePath();2283 }2284 var o = 4.5,2285 a = {2286 point: t,2287 lineStart: function () {2288 a.point = e;2289 },2290 lineEnd: i,2291 polygonStart: function () {2292 a.lineEnd = u;2293 },2294 polygonEnd: function () {2295 (a.lineEnd = i), (a.point = t);2296 },2297 pointRadius: function (n) {2298 return (o = n), a;2299 },2300 result: b,2301 };2302 return a;2303 }2304 function ee(n) {2305 function t(n) {2306 return (a ? r : e)(n);2307 }2308 function e(t) {2309 return ue(t, function (e, r) {2310 (e = n(e, r)), t.point(e[0], e[1]);2311 });2312 }2313 function r(t) {2314 function e(e, r) {2315 (e = n(e, r)), t.point(e[0], e[1]);2316 }2317 function r() {2318 (M = NaN), (S.point = u), t.lineStart();2319 }2320 function u(e, r) {2321 var u = dt([e, r]),2322 o = n(e, r);2323 i(2324 M,2325 x,2326 m,2327 b,2328 _,2329 w,2330 (M = o[0]),2331 (x = o[1]),2332 (m = e),2333 (b = u[0]),2334 (_ = u[1]),2335 (w = u[2]),2336 a,2337 t2338 ),2339 t.point(M, x);2340 }2341 function o() {2342 (S.point = e), t.lineEnd();2343 }2344 function l() {2345 r(), (S.point = c), (S.lineEnd = f);2346 }2347 function c(n, t) {2348 u((s = n), (h = t)),2349 (p = M),2350 (g = x),2351 (v = b),2352 (d = _),2353 (y = w),2354 (S.point = u);2355 }2356 function f() {2357 i(M, x, m, b, _, w, p, g, s, v, d, y, a, t), (S.lineEnd = o), o();2358 }2359 var s,2360 h,2361 p,2362 g,2363 v,2364 d,2365 y,2366 m,2367 M,2368 x,2369 b,2370 _,2371 w,2372 S = {2373 point: e,2374 lineStart: r,2375 lineEnd: o,2376 polygonStart: function () {2377 t.polygonStart(), (S.lineStart = l);2378 },2379 polygonEnd: function () {2380 t.polygonEnd(), (S.lineStart = r);2381 },2382 };2383 return S;2384 }2385 function i(t, e, r, a, l, c, f, s, h, p, g, v, d, y) {2386 var m = f - t,2387 M = s - e,2388 x = m * m + M * M;2389 if (x > 4 * u && d--) {2390 var b = a + p,2391 _ = l + g,2392 w = c + v,2393 S = Math.sqrt(b * b + _ * _ + w * w),2394 k = Math.asin((w /= S)),2395 N =2396 xo(xo(w) - 1) < Uo || xo(r - h) < Uo2397 ? (r + h) / 22398 : Math.atan2(_, b),2399 E = n(N, k),2400 A = E[0],2401 C = E[1],2402 z = A - t,2403 L = C - e,2404 q = M * z - m * L;2405 ((q * q) / x > u ||2406 xo((m * z + M * L) / x - 0.5) > 0.3 ||2407 o > a * p + l * g + c * v) &&2408 (i(t, e, r, a, l, c, A, C, N, (b /= S), (_ /= S), w, d, y),2409 y.point(A, C),2410 i(A, C, N, b, _, w, f, s, h, p, g, v, d, y));2411 }2412 }2413 var u = 0.5,2414 o = Math.cos(30 * Yo),2415 a = 16;2416 return (2417 (t.precision = function (n) {2418 return arguments.length2419 ? ((a = (u = n * n) > 0 && 16), t)2420 : Math.sqrt(u);2421 }),2422 t2423 );2424 }2425 function re(n) {2426 var t = ee(function (t, e) {2427 return n([t * Zo, e * Zo]);2428 });2429 return function (n) {2430 return le(t(n));2431 };2432 }2433 function ie(n) {2434 this.stream = n;2435 }2436 function ue(n, t) {2437 return {2438 point: t,2439 sphere: function () {2440 n.sphere();2441 },2442 lineStart: function () {2443 n.lineStart();2444 },2445 lineEnd: function () {2446 n.lineEnd();2447 },2448 polygonStart: function () {2449 n.polygonStart();2450 },2451 polygonEnd: function () {2452 n.polygonEnd();2453 },2454 };2455 }2456 function oe(n) {2457 return ae(function () {2458 return n;2459 })();2460 }2461 function ae(n) {2462 function t(n) {2463 return (n = a(n[0] * Yo, n[1] * Yo)), [n[0] * h + l, c - n[1] * h];2464 }2465 function e(n) {2466 return (2467 (n = a.invert((n[0] - l) / h, (c - n[1]) / h)),2468 n && [n[0] * Zo, n[1] * Zo]2469 );2470 }2471 function r() {2472 a = Ct((o = se(y, M, x)), u);2473 var n = u(v, d);2474 return (l = p - n[0] * h), (c = g + n[1] * h), i();2475 }2476 function i() {2477 return f && ((f.valid = !1), (f = null)), t;2478 }2479 var u,2480 o,2481 a,2482 l,2483 c,2484 f,2485 s = ee(function (n, t) {2486 return (n = u(n, t)), [n[0] * h + l, c - n[1] * h];2487 }),2488 h = 150,2489 p = 480,2490 g = 250,2491 v = 0,2492 d = 0,2493 y = 0,2494 M = 0,2495 x = 0,2496 b = Fa,2497 _ = m,2498 w = null,2499 S = null;2500 return (2501 (t.stream = function (n) {2502 return f && (f.valid = !1), (f = le(b(o, s(_(n))))), (f.valid = !0), f;2503 }),2504 (t.clipAngle = function (n) {2505 return arguments.length2506 ? ((b = null == n ? ((w = n), Fa) : It((w = +n) * Yo)), i())2507 : w;2508 }),2509 (t.clipExtent = function (n) {2510 return arguments.length2511 ? ((S = n), (_ = n ? Zt(n[0][0], n[0][1], n[1][0], n[1][1]) : m), i())2512 : S;2513 }),2514 (t.scale = function (n) {2515 return arguments.length ? ((h = +n), r()) : h;2516 }),2517 (t.translate = function (n) {2518 return arguments.length ? ((p = +n[0]), (g = +n[1]), r()) : [p, g];2519 }),2520 (t.center = function (n) {2521 return arguments.length2522 ? ((v = (n[0] % 360) * Yo), (d = (n[1] % 360) * Yo), r())2523 : [v * Zo, d * Zo];2524 }),2525 (t.rotate = function (n) {2526 return arguments.length2527 ? ((y = (n[0] % 360) * Yo),2528 (M = (n[1] % 360) * Yo),2529 (x = n.length > 2 ? (n[2] % 360) * Yo : 0),2530 r())2531 : [y * Zo, M * Zo, x * Zo];2532 }),2533 ao.rebind(t, s, "precision"),2534 function () {2535 return (u = n.apply(this, arguments)), (t.invert = u.invert && e), r();2536 }2537 );2538 }2539 function le(n) {2540 return ue(n, function (t, e) {2541 n.point(t * Yo, e * Yo);2542 });2543 }2544 function ce(n, t) {2545 return [n, t];2546 }2547 function fe(n, t) {2548 return [n > Fo ? n - Ho : -Fo > n ? n + Ho : n, t];2549 }2550 function se(n, t, e) {2551 return n ? (t || e ? Ct(pe(n), ge(t, e)) : pe(n)) : t || e ? ge(t, e) : fe;2552 }2553 function he(n) {2554 return function (t, e) {2555 return (t += n), [t > Fo ? t - Ho : -Fo > t ? t + Ho : t, e];2556 };2557 }2558 function pe(n) {2559 var t = he(n);2560 return (t.invert = he(-n)), t;2561 }2562 function ge(n, t) {2563 function e(n, t) {2564 var e = Math.cos(t),2565 a = Math.cos(n) * e,2566 l = Math.sin(n) * e,2567 c = Math.sin(t),2568 f = c * r + a * i;2569 return [Math.atan2(l * u - f * o, a * r - c * i), tn(f * u + l * o)];2570 }2571 var r = Math.cos(n),2572 i = Math.sin(n),2573 u = Math.cos(t),2574 o = Math.sin(t);2575 return (2576 (e.invert = function (n, t) {2577 var e = Math.cos(t),2578 a = Math.cos(n) * e,2579 l = Math.sin(n) * e,2580 c = Math.sin(t),2581 f = c * u - l * o;2582 return [Math.atan2(l * u + c * o, a * r + f * i), tn(f * r - a * i)];2583 }),2584 e2585 );2586 }2587 function ve(n, t) {2588 var e = Math.cos(n),2589 r = Math.sin(n);2590 return function (i, u, o, a) {2591 var l = o * t;2592 null != i2593 ? ((i = de(e, i)),2594 (u = de(e, u)),2595 (o > 0 ? u > i : i > u) && (i += o * Ho))2596 : ((i = n + o * Ho), (u = n - 0.5 * l));2597 for (var c, f = i; o > 0 ? f > u : u > f; f -= l)2598 a.point((c = _t([e, -r * Math.cos(f), -r * Math.sin(f)]))[0], c[1]);2599 };2600 }2601 function de(n, t) {2602 var e = dt(t);2603 (e[0] -= n), bt(e);2604 var r = nn(-e[1]);2605 return ((-e[2] < 0 ? -r : r) + 2 * Math.PI - Uo) % (2 * Math.PI);2606 }2607 function ye(n, t, e) {2608 var r = ao.range(n, t - Uo, e).concat(t);2609 return function (n) {2610 return r.map(function (t) {2611 return [n, t];2612 });2613 };2614 }2615 function me(n, t, e) {2616 var r = ao.range(n, t - Uo, e).concat(t);2617 return function (n) {2618 return r.map(function (t) {2619 return [t, n];2620 });2621 };2622 }2623 function Me(n) {2624 return n.source;2625 }2626 function xe(n) {2627 return n.target;2628 }2629 function be(n, t, e, r) {2630 var i = Math.cos(t),2631 u = Math.sin(t),2632 o = Math.cos(r),2633 a = Math.sin(r),2634 l = i * Math.cos(n),2635 c = i * Math.sin(n),2636 f = o * Math.cos(e),2637 s = o * Math.sin(e),2638 h = 2 * Math.asin(Math.sqrt(on(r - t) + i * o * on(e - n))),2639 p = 1 / Math.sin(h),2640 g = h2641 ? function (n) {2642 var t = Math.sin((n *= h)) * p,2643 e = Math.sin(h - n) * p,2644 r = e * l + t * f,2645 i = e * c + t * s,2646 o = e * u + t * a;2647 return [2648 Math.atan2(i, r) * Zo,2649 Math.atan2(o, Math.sqrt(r * r + i * i)) * Zo,2650 ];2651 }2652 : function () {2653 return [n * Zo, t * Zo];2654 };2655 return (g.distance = h), g;2656 }2657 function _e() {2658 function n(n, i) {2659 var u = Math.sin((i *= Yo)),2660 o = Math.cos(i),2661 a = xo((n *= Yo) - t),2662 l = Math.cos(a);2663 (Ja += Math.atan2(2664 Math.sqrt((a = o * Math.sin(a)) * a + (a = r * u - e * o * l) * a),2665 e * u + r * o * l2666 )),2667 (t = n),2668 (e = u),2669 (r = o);2670 }2671 var t, e, r;2672 (Ga.point = function (i, u) {2673 (t = i * Yo),2674 (e = Math.sin((u *= Yo))),2675 (r = Math.cos(u)),2676 (Ga.point = n);2677 }),2678 (Ga.lineEnd = function () {2679 Ga.point = Ga.lineEnd = b;2680 });2681 }2682 function we(n, t) {2683 function e(t, e) {2684 var r = Math.cos(t),2685 i = Math.cos(e),2686 u = n(r * i);2687 return [u * i * Math.sin(t), u * Math.sin(e)];2688 }2689 return (2690 (e.invert = function (n, e) {2691 var r = Math.sqrt(n * n + e * e),2692 i = t(r),2693 u = Math.sin(i),2694 o = Math.cos(i);2695 return [Math.atan2(n * u, r * o), Math.asin(r && (e * u) / r)];2696 }),2697 e2698 );2699 }2700 function Se(n, t) {2701 function e(n, t) {2702 o > 0 ? -Io + Uo > t && (t = -Io + Uo) : t > Io - Uo && (t = Io - Uo);2703 var e = o / Math.pow(i(t), u);2704 return [e * Math.sin(u * n), o - e * Math.cos(u * n)];2705 }2706 var r = Math.cos(n),2707 i = function (n) {2708 return Math.tan(Fo / 4 + n / 2);2709 },2710 u =2711 n === t2712 ? Math.sin(n)2713 : Math.log(r / Math.cos(t)) / Math.log(i(t) / i(n)),2714 o = (r * Math.pow(i(n), u)) / u;2715 return u2716 ? ((e.invert = function (n, t) {2717 var e = o - t,2718 r = K(u) * Math.sqrt(n * n + e * e);2719 return [2720 Math.atan2(n, e) / u,2721 2 * Math.atan(Math.pow(o / r, 1 / u)) - Io,2722 ];2723 }),2724 e)2725 : Ne;2726 }2727 function ke(n, t) {2728 function e(n, t) {2729 var e = u - t;2730 return [e * Math.sin(i * n), u - e * Math.cos(i * n)];2731 }2732 var r = Math.cos(n),2733 i = n === t ? Math.sin(n) : (r - Math.cos(t)) / (t - n),2734 u = r / i + n;2735 return xo(i) < Uo2736 ? ce2737 : ((e.invert = function (n, t) {2738 var e = u - t;2739 return [Math.atan2(n, e) / i, u - K(i) * Math.sqrt(n * n + e * e)];2740 }),2741 e);2742 }2743 function Ne(n, t) {2744 return [n, Math.log(Math.tan(Fo / 4 + t / 2))];2745 }2746 function Ee(n) {2747 var t,2748 e = oe(n),2749 r = e.scale,2750 i = e.translate,2751 u = e.clipExtent;2752 return (2753 (e.scale = function () {2754 var n = r.apply(e, arguments);2755 return n === e ? (t ? e.clipExtent(null) : e) : n;2756 }),2757 (e.translate = function () {2758 var n = i.apply(e, arguments);2759 return n === e ? (t ? e.clipExtent(null) : e) : n;2760 }),2761 (e.clipExtent = function (n) {2762 var o = u.apply(e, arguments);2763 if (o === e) {2764 if ((t = null == n)) {2765 var a = Fo * r(),2766 l = i();2767 u([2768 [l[0] - a, l[1] - a],2769 [l[0] + a, l[1] + a],2770 ]);2771 }2772 } else t && (o = null);2773 return o;2774 }),2775 e.clipExtent(null)2776 );2777 }2778 function Ae(n, t) {2779 return [Math.log(Math.tan(Fo / 4 + t / 2)), -n];2780 }2781 function Ce(n) {2782 return n[0];2783 }2784 function ze(n) {2785 return n[1];2786 }2787 function Le(n) {2788 for (var t = n.length, e = [0, 1], r = 2, i = 2; t > i; i++) {2789 for (; r > 1 && Q(n[e[r - 2]], n[e[r - 1]], n[i]) <= 0; ) --r;2790 e[r++] = i;2791 }2792 return e.slice(0, r);2793 }2794 function qe(n, t) {2795 return n[0] - t[0] || n[1] - t[1];2796 }2797 function Te(n, t, e) {2798 return (e[0] - t[0]) * (n[1] - t[1]) < (e[1] - t[1]) * (n[0] - t[0]);2799 }2800 function Re(n, t, e, r) {2801 var i = n[0],2802 u = e[0],2803 o = t[0] - i,2804 a = r[0] - u,2805 l = n[1],2806 c = e[1],2807 f = t[1] - l,2808 s = r[1] - c,2809 h = (a * (l - c) - s * (i - u)) / (s * o - a * f);2810 return [i + h * o, l + h * f];2811 }2812 function De(n) {2813 var t = n[0],2814 e = n[n.length - 1];2815 return !(t[0] - e[0] || t[1] - e[1]);2816 }2817 function Pe() {2818 rr(this), (this.edge = this.site = this.circle = null);2819 }2820 function Ue(n) {2821 var t = cl.pop() || new Pe();2822 return (t.site = n), t;2823 }2824 function je(n) {2825 Be(n), ol.remove(n), cl.push(n), rr(n);2826 }2827 function Fe(n) {2828 var t = n.circle,2829 e = t.x,2830 r = t.cy,2831 i = { x: e, y: r },2832 u = n.P,2833 o = n.N,2834 a = [n];2835 je(n);2836 for (2837 var l = u;2838 l.circle && xo(e - l.circle.x) < Uo && xo(r - l.circle.cy) < Uo;2839 )2840 (u = l.P), a.unshift(l), je(l), (l = u);2841 a.unshift(l), Be(l);2842 for (2843 var c = o;2844 c.circle && xo(e - c.circle.x) < Uo && xo(r - c.circle.cy) < Uo;2845 )2846 (o = c.N), a.push(c), je(c), (c = o);2847 a.push(c), Be(c);2848 var f,2849 s = a.length;2850 for (f = 1; s > f; ++f)2851 (c = a[f]), (l = a[f - 1]), nr(c.edge, l.site, c.site, i);2852 (l = a[0]),2853 (c = a[s - 1]),2854 (c.edge = Ke(l.site, c.site, null, i)),2855 $e(l),2856 $e(c);2857 }2858 function He(n) {2859 for (var t, e, r, i, u = n.x, o = n.y, a = ol._; a; )2860 if (((r = Oe(a, o) - u), r > Uo)) a = a.L;2861 else {2862 if (((i = u - Ie(a, o)), !(i > Uo))) {2863 r > -Uo2864 ? ((t = a.P), (e = a))2865 : i > -Uo2866 ? ((t = a), (e = a.N))2867 : (t = e = a);2868 break;2869 }2870 if (!a.R) {2871 t = a;2872 break;2873 }2874 a = a.R;2875 }2876 var l = Ue(n);2877 if ((ol.insert(t, l), t || e)) {2878 if (t === e)2879 return (2880 Be(t),2881 (e = Ue(t.site)),2882 ol.insert(l, e),2883 (l.edge = e.edge = Ke(t.site, l.site)),2884 $e(t),2885 void $e(e)2886 );2887 if (!e) return void (l.edge = Ke(t.site, l.site));2888 Be(t), Be(e);2889 var c = t.site,2890 f = c.x,2891 s = c.y,2892 h = n.x - f,2893 p = n.y - s,2894 g = e.site,2895 v = g.x - f,2896 d = g.y - s,2897 y = 2 * (h * d - p * v),2898 m = h * h + p * p,2899 M = v * v + d * d,2900 x = { x: (d * m - p * M) / y + f, y: (h * M - v * m) / y + s };2901 nr(e.edge, c, g, x),2902 (l.edge = Ke(c, n, null, x)),2903 (e.edge = Ke(n, g, null, x)),2904 $e(t),2905 $e(e);2906 }2907 }2908 function Oe(n, t) {2909 var e = n.site,2910 r = e.x,2911 i = e.y,2912 u = i - t;2913 if (!u) return r;2914 var o = n.P;2915 if (!o) return -(1 / 0);2916 e = o.site;2917 var a = e.x,2918 l = e.y,2919 c = l - t;2920 if (!c) return a;2921 var f = a - r,2922 s = 1 / u - 1 / c,2923 h = f / c;2924 return s2925 ? (-h +2926 Math.sqrt(2927 h * h - 2 * s * ((f * f) / (-2 * c) - l + c / 2 + i - u / 2)2928 )) /2929 s +2930 r2931 : (r + a) / 2;2932 }2933 function Ie(n, t) {2934 var e = n.N;2935 if (e) return Oe(e, t);2936 var r = n.site;2937 return r.y === t ? r.x : 1 / 0;2938 }2939 function Ye(n) {2940 (this.site = n), (this.edges = []);2941 }2942 function Ze(n) {2943 for (2944 var t,2945 e,2946 r,2947 i,2948 u,2949 o,2950 a,2951 l,2952 c,2953 f,2954 s = n[0][0],2955 h = n[1][0],2956 p = n[0][1],2957 g = n[1][1],2958 v = ul,2959 d = v.length;2960 d--;2961 )2962 if (((u = v[d]), u && u.prepare()))2963 for (a = u.edges, l = a.length, o = 0; l > o; )2964 (f = a[o].end()),2965 (r = f.x),2966 (i = f.y),2967 (c = a[++o % l].start()),2968 (t = c.x),2969 (e = c.y),2970 (xo(r - t) > Uo || xo(i - e) > Uo) &&2971 (a.splice(2972 o,2973 0,2974 new tr(2975 Qe(2976 u.site,2977 f,2978 xo(r - s) < Uo && g - i > Uo2979 ? { x: s, y: xo(t - s) < Uo ? e : g }2980 : xo(i - g) < Uo && h - r > Uo2981 ? { x: xo(e - g) < Uo ? t : h, y: g }2982 : xo(r - h) < Uo && i - p > Uo2983 ? { x: h, y: xo(t - h) < Uo ? e : p }2984 : xo(i - p) < Uo && r - s > Uo2985 ? { x: xo(e - p) < Uo ? t : s, y: p }2986 : null2987 ),2988 u.site,2989 null2990 )2991 ),2992 ++l);2993 }2994 function Ve(n, t) {2995 return t.angle - n.angle;2996 }2997 function Xe() {2998 rr(this), (this.x = this.y = this.arc = this.site = this.cy = null);2999 }3000 function $e(n) {3001 var t = n.P,3002 e = n.N;3003 if (t && e) {3004 var r = t.site,3005 i = n.site,3006 u = e.site;3007 if (r !== u) {3008 var o = i.x,3009 a = i.y,3010 l = r.x - o,3011 c = r.y - a,3012 f = u.x - o,3013 s = u.y - a,3014 h = 2 * (l * s - c * f);3015 if (!(h >= -jo)) {3016 var p = l * l + c * c,3017 g = f * f + s * s,3018 v = (s * p - c * g) / h,3019 d = (l * g - f * p) / h,3020 s = d + a,3021 y = fl.pop() || new Xe();3022 (y.arc = n),3023 (y.site = i),3024 (y.x = v + o),3025 (y.y = s + Math.sqrt(v * v + d * d)),3026 (y.cy = s),3027 (n.circle = y);3028 for (var m = null, M = ll._; M; )3029 if (y.y < M.y || (y.y === M.y && y.x <= M.x)) {3030 if (!M.L) {3031 m = M.P;3032 break;3033 }3034 M = M.L;3035 } else {3036 if (!M.R) {3037 m = M;3038 break;3039 }3040 M = M.R;3041 }3042 ll.insert(m, y), m || (al = y);3043 }3044 }3045 }3046 }3047 function Be(n) {3048 var t = n.circle;3049 t &&3050 (t.P || (al = t.N), ll.remove(t), fl.push(t), rr(t), (n.circle = null));3051 }3052 function We(n) {3053 for (3054 var t, e = il, r = Yt(n[0][0], n[0][1], n[1][0], n[1][1]), i = e.length;3055 i--;3056 )3057 (t = e[i]),3058 (!Je(t, n) ||3059 !r(t) ||3060 (xo(t.a.x - t.b.x) < Uo && xo(t.a.y - t.b.y) < Uo)) &&3061 ((t.a = t.b = null), e.splice(i, 1));3062 }3063 function Je(n, t) {3064 var e = n.b;3065 if (e) return !0;3066 var r,3067 i,3068 u = n.a,3069 o = t[0][0],3070 a = t[1][0],3071 l = t[0][1],3072 c = t[1][1],3073 f = n.l,3074 s = n.r,3075 h = f.x,3076 p = f.y,3077 g = s.x,3078 v = s.y,3079 d = (h + g) / 2,3080 y = (p + v) / 2;3081 if (v === p) {3082 if (o > d || d >= a) return;3083 if (h > g) {3084 if (u) {3085 if (u.y >= c) return;3086 } else u = { x: d, y: l };3087 e = { x: d, y: c };3088 } else {3089 if (u) {3090 if (u.y < l) return;3091 } else u = { x: d, y: c };3092 e = { x: d, y: l };3093 }3094 } else if (((r = (h - g) / (v - p)), (i = y - r * d), -1 > r || r > 1))3095 if (h > g) {3096 if (u) {3097 if (u.y >= c) return;3098 } else u = { x: (l - i) / r, y: l };3099 e = { x: (c - i) / r, y: c };3100 } else {3101 if (u) {3102 if (u.y < l) return;3103 } else u = { x: (c - i) / r, y: c };3104 e = { x: (l - i) / r, y: l };3105 }3106 else if (v > p) {3107 if (u) {3108 if (u.x >= a) return;3109 } else u = { x: o, y: r * o + i };3110 e = { x: a, y: r * a + i };3111 } else {3112 if (u) {3113 if (u.x < o) return;3114 } else u = { x: a, y: r * a + i };3115 e = { x: o, y: r * o + i };3116 }3117 return (n.a = u), (n.b = e), !0;3118 }3119 function Ge(n, t) {3120 (this.l = n), (this.r = t), (this.a = this.b = null);3121 }3122 function Ke(n, t, e, r) {3123 var i = new Ge(n, t);3124 return (3125 il.push(i),3126 e && nr(i, n, t, e),3127 r && nr(i, t, n, r),3128 ul[n.i].edges.push(new tr(i, n, t)),3129 ul[t.i].edges.push(new tr(i, t, n)),3130 i3131 );3132 }3133 function Qe(n, t, e) {3134 var r = new Ge(n, null);3135 return (r.a = t), (r.b = e), il.push(r), r;3136 }3137 function nr(n, t, e, r) {3138 n.a || n.b3139 ? n.l === e3140 ? (n.b = r)3141 : (n.a = r)3142 : ((n.a = r), (n.l = t), (n.r = e));3143 }3144 function tr(n, t, e) {3145 var r = n.a,3146 i = n.b;3147 (this.edge = n),3148 (this.site = t),3149 (this.angle = e3150 ? Math.atan2(e.y - t.y, e.x - t.x)3151 : n.l === t3152 ? Math.atan2(i.x - r.x, r.y - i.y)3153 : Math.atan2(r.x - i.x, i.y - r.y));3154 }3155 function er() {3156 this._ = null;3157 }3158 function rr(n) {3159 n.U = n.C = n.L = n.R = n.P = n.N = null;3160 }3161 function ir(n, t) {3162 var e = t,3163 r = t.R,3164 i = e.U;3165 i ? (i.L === e ? (i.L = r) : (i.R = r)) : (n._ = r),3166 (r.U = i),3167 (e.U = r),3168 (e.R = r.L),3169 e.R && (e.R.U = e),3170 (r.L = e);3171 }3172 function ur(n, t) {3173 var e = t,3174 r = t.L,3175 i = e.U;3176 i ? (i.L === e ? (i.L = r) : (i.R = r)) : (n._ = r),3177 (r.U = i),3178 (e.U = r),3179 (e.L = r.R),3180 e.L && (e.L.U = e),3181 (r.R = e);3182 }3183 function or(n) {3184 for (; n.L; ) n = n.L;3185 return n;3186 }3187 function ar(n, t) {3188 var e,3189 r,3190 i,3191 u = n.sort(lr).pop();3192 for (il = [], ul = new Array(n.length), ol = new er(), ll = new er(); ; )3193 if (((i = al), u && (!i || u.y < i.y || (u.y === i.y && u.x < i.x))))3194 (u.x === e && u.y === r) ||3195 ((ul[u.i] = new Ye(u)), He(u), (e = u.x), (r = u.y)),3196 (u = n.pop());3197 else {3198 if (!i) break;3199 Fe(i.arc);3200 }3201 t && (We(t), Ze(t));3202 var o = { cells: ul, edges: il };3203 return (ol = ll = il = ul = null), o;3204 }3205 function lr(n, t) {3206 return t.y - n.y || t.x - n.x;3207 }3208 function cr(n, t, e) {3209 return (n.x - e.x) * (t.y - n.y) - (n.x - t.x) * (e.y - n.y);3210 }3211 function fr(n) {3212 return n.x;3213 }3214 function sr(n) {3215 return n.y;3216 }3217 function hr() {3218 return { leaf: !0, nodes: [], point: null, x: null, y: null };3219 }3220 function pr(n, t, e, r, i, u) {3221 if (!n(t, e, r, i, u)) {3222 var o = 0.5 * (e + i),3223 a = 0.5 * (r + u),3224 l = t.nodes;3225 l[0] && pr(n, l[0], e, r, o, a),3226 l[1] && pr(n, l[1], o, r, i, a),3227 l[2] && pr(n, l[2], e, a, o, u),3228 l[3] && pr(n, l[3], o, a, i, u);3229 }3230 }3231 function gr(n, t, e, r, i, u, o) {3232 var a,3233 l = 1 / 0;3234 return (3235 (function c(n, f, s, h, p) {3236 if (!(f > u || s > o || r > h || i > p)) {3237 if ((g = n.point)) {3238 var g,3239 v = t - n.x,3240 d = e - n.y,3241 y = v * v + d * d;3242 if (l > y) {3243 var m = Math.sqrt((l = y));3244 (r = t - m), (i = e - m), (u = t + m), (o = e + m), (a = g);3245 }3246 }3247 for (3248 var M = n.nodes,3249 x = 0.5 * (f + h),3250 b = 0.5 * (s + p),3251 _ = t >= x,3252 w = e >= b,3253 S = (w << 1) | _,3254 k = S + 4;3255 k > S;3256 ++S3257 )3258 if ((n = M[3 & S]))3259 switch (3 & S) {3260 case 0:3261 c(n, f, s, x, b);3262 break;3263 case 1:3264 c(n, x, s, h, b);3265 break;3266 case 2:3267 c(n, f, b, x, p);3268 break;3269 case 3:3270 c(n, x, b, h, p);3271 }3272 }3273 })(n, r, i, u, o),3274 a3275 );3276 }3277 function vr(n, t) {3278 (n = ao.rgb(n)), (t = ao.rgb(t));3279 var e = n.r,3280 r = n.g,3281 i = n.b,3282 u = t.r - e,3283 o = t.g - r,3284 a = t.b - i;3285 return function (n) {3286 return (3287 "#" +3288 bn(Math.round(e + u * n)) +3289 bn(Math.round(r + o * n)) +3290 bn(Math.round(i + a * n))3291 );3292 };3293 }3294 function dr(n, t) {3295 var e,3296 r = {},3297 i = {};3298 for (e in n) e in t ? (r[e] = Mr(n[e], t[e])) : (i[e] = n[e]);3299 for (e in t) e in n || (i[e] = t[e]);3300 return function (n) {3301 for (e in r) i[e] = r[e](n);3302 return i;3303 };3304 }3305 function yr(n, t) {3306 return (3307 (n = +n),3308 (t = +t),3309 function (e) {3310 return n * (1 - e) + t * e;3311 }3312 );3313 }3314 function mr(n, t) {3315 var e,3316 r,3317 i,3318 u = (hl.lastIndex = pl.lastIndex = 0),3319 o = -1,3320 a = [],3321 l = [];3322 for (n += "", t += ""; (e = hl.exec(n)) && (r = pl.exec(t)); )3323 (i = r.index) > u &&3324 ((i = t.slice(u, i)), a[o] ? (a[o] += i) : (a[++o] = i)),3325 (e = e[0]) === (r = r[0])3326 ? a[o]3327 ? (a[o] += r)3328 : (a[++o] = r)3329 : ((a[++o] = null), l.push({ i: o, x: yr(e, r) })),3330 (u = pl.lastIndex);3331 return (3332 u < t.length && ((i = t.slice(u)), a[o] ? (a[o] += i) : (a[++o] = i)),3333 a.length < 23334 ? l[0]3335 ? ((t = l[0].x),3336 function (n) {3337 return t(n) + "";3338 })3339 : function () {3340 return t;3341 }3342 : ((t = l.length),3343 function (n) {3344 for (var e, r = 0; t > r; ++r) a[(e = l[r]).i] = e.x(n);3345 return a.join("");3346 })3347 );3348 }3349 function Mr(n, t) {3350 for (3351 var e, r = ao.interpolators.length;3352 --r >= 0 && !(e = ao.interpolators[r](n, t));3353 );3354 return e;3355 }3356 function xr(n, t) {3357 var e,3358 r = [],3359 i = [],3360 u = n.length,3361 o = t.length,3362 a = Math.min(n.length, t.length);3363 for (e = 0; a > e; ++e) r.push(Mr(n[e], t[e]));3364 for (; u > e; ++e) i[e] = n[e];3365 for (; o > e; ++e) i[e] = t[e];3366 return function (n) {3367 for (e = 0; a > e; ++e) i[e] = r[e](n);3368 return i;3369 };3370 }3371 function br(n) {3372 return function (t) {3373 return 0 >= t ? 0 : t >= 1 ? 1 : n(t);3374 };3375 }3376 function _r(n) {3377 return function (t) {3378 return 1 - n(1 - t);3379 };3380 }3381 function wr(n) {3382 return function (t) {3383 return 0.5 * (0.5 > t ? n(2 * t) : 2 - n(2 - 2 * t));3384 };3385 }3386 function Sr(n) {3387 return n * n;3388 }3389 function kr(n) {3390 return n * n * n;3391 }3392 function Nr(n) {3393 if (0 >= n) return 0;3394 if (n >= 1) return 1;3395 var t = n * n,3396 e = t * n;3397 return 4 * (0.5 > n ? e : 3 * (n - t) + e - 0.75);3398 }3399 function Er(n) {3400 return function (t) {3401 return Math.pow(t, n);3402 };3403 }3404 function Ar(n) {3405 return 1 - Math.cos(n * Io);3406 }3407 function Cr(n) {3408 return Math.pow(2, 10 * (n - 1));3409 }3410 function zr(n) {3411 return 1 - Math.sqrt(1 - n * n);3412 }3413 function Lr(n, t) {3414 var e;3415 return (3416 arguments.length < 2 && (t = 0.45),3417 arguments.length3418 ? (e = (t / Ho) * Math.asin(1 / n))3419 : ((n = 1), (e = t / 4)),3420 function (r) {3421 return 1 + n * Math.pow(2, -10 * r) * Math.sin(((r - e) * Ho) / t);3422 }3423 );3424 }3425 function qr(n) {3426 return (3427 n || (n = 1.70158),3428 function (t) {3429 return t * t * ((n + 1) * t - n);3430 }3431 );3432 }3433 function Tr(n) {3434 return 1 / 2.75 > n3435 ? 7.5625 * n * n3436 : 2 / 2.75 > n3437 ? 7.5625 * (n -= 1.5 / 2.75) * n + 0.753438 : 2.5 / 2.75 > n3439 ? 7.5625 * (n -= 2.25 / 2.75) * n + 0.93753440 : 7.5625 * (n -= 2.625 / 2.75) * n + 0.984375;3441 }3442 function Rr(n, t) {3443 (n = ao.hcl(n)), (t = ao.hcl(t));3444 var e = n.h,3445 r = n.c,3446 i = n.l,3447 u = t.h - e,3448 o = t.c - r,3449 a = t.l - i;3450 return (3451 isNaN(o) && ((o = 0), (r = isNaN(r) ? t.c : r)),3452 isNaN(u)3453 ? ((u = 0), (e = isNaN(e) ? t.h : e))3454 : u > 1803455 ? (u -= 360)3456 : -180 > u && (u += 360),3457 function (n) {3458 return sn(e + u * n, r + o * n, i + a * n) + "";3459 }3460 );3461 }3462 function Dr(n, t) {3463 (n = ao.hsl(n)), (t = ao.hsl(t));3464 var e = n.h,3465 r = n.s,3466 i = n.l,3467 u = t.h - e,3468 o = t.s - r,3469 a = t.l - i;3470 return (3471 isNaN(o) && ((o = 0), (r = isNaN(r) ? t.s : r)),3472 isNaN(u)3473 ? ((u = 0), (e = isNaN(e) ? t.h : e))3474 : u > 1803475 ? (u -= 360)3476 : -180 > u && (u += 360),3477 function (n) {3478 return cn(e + u * n, r + o * n, i + a * n) + "";3479 }3480 );3481 }3482 function Pr(n, t) {3483 (n = ao.lab(n)), (t = ao.lab(t));3484 var e = n.l,3485 r = n.a,3486 i = n.b,3487 u = t.l - e,3488 o = t.a - r,3489 a = t.b - i;3490 return function (n) {3491 return pn(e + u * n, r + o * n, i + a * n) + "";3492 };3493 }3494 function Ur(n, t) {3495 return (3496 (t -= n),3497 function (e) {3498 return Math.round(n + t * e);3499 }3500 );3501 }3502 function jr(n) {3503 var t = [n.a, n.b],3504 e = [n.c, n.d],3505 r = Hr(t),3506 i = Fr(t, e),3507 u = Hr(Or(e, t, -i)) || 0;3508 t[0] * e[1] < e[0] * t[1] &&3509 ((t[0] *= -1), (t[1] *= -1), (r *= -1), (i *= -1)),3510 (this.rotate =3511 (r ? Math.atan2(t[1], t[0]) : Math.atan2(-e[0], e[1])) * Zo),3512 (this.translate = [n.e, n.f]),3513 (this.scale = [r, u]),3514 (this.skew = u ? Math.atan2(i, u) * Zo : 0);3515 }3516 function Fr(n, t) {3517 return n[0] * t[0] + n[1] * t[1];3518 }3519 function Hr(n) {3520 var t = Math.sqrt(Fr(n, n));3521 return t && ((n[0] /= t), (n[1] /= t)), t;3522 }3523 function Or(n, t, e) {3524 return (n[0] += e * t[0]), (n[1] += e * t[1]), n;3525 }3526 function Ir(n) {3527 return n.length ? n.pop() + "," : "";3528 }3529 function Yr(n, t, e, r) {3530 if (n[0] !== t[0] || n[1] !== t[1]) {3531 var i = e.push("translate(", null, ",", null, ")");3532 r.push({ i: i - 4, x: yr(n[0], t[0]) }, { i: i - 2, x: yr(n[1], t[1]) });3533 } else (t[0] || t[1]) && e.push("translate(" + t + ")");3534 }3535 function Zr(n, t, e, r) {3536 n !== t3537 ? (n - t > 180 ? (t += 360) : t - n > 180 && (n += 360),3538 r.push({ i: e.push(Ir(e) + "rotate(", null, ")") - 2, x: yr(n, t) }))3539 : t && e.push(Ir(e) + "rotate(" + t + ")");3540 }3541 function Vr(n, t, e, r) {3542 n !== t3543 ? r.push({ i: e.push(Ir(e) + "skewX(", null, ")") - 2, x: yr(n, t) })3544 : t && e.push(Ir(e) + "skewX(" + t + ")");3545 }3546 function Xr(n, t, e, r) {3547 if (n[0] !== t[0] || n[1] !== t[1]) {3548 var i = e.push(Ir(e) + "scale(", null, ",", null, ")");3549 r.push({ i: i - 4, x: yr(n[0], t[0]) }, { i: i - 2, x: yr(n[1], t[1]) });3550 } else (1 === t[0] && 1 === t[1]) || e.push(Ir(e) + "scale(" + t + ")");3551 }3552 function $r(n, t) {3553 var e = [],3554 r = [];3555 return (3556 (n = ao.transform(n)),3557 (t = ao.transform(t)),3558 Yr(n.translate, t.translate, e, r),3559 Zr(n.rotate, t.rotate, e, r),3560 Vr(n.skew, t.skew, e, r),3561 Xr(n.scale, t.scale, e, r),3562 (n = t = null),3563 function (n) {3564 for (var t, i = -1, u = r.length; ++i < u; ) e[(t = r[i]).i] = t.x(n);3565 return e.join("");3566 }3567 );3568 }3569 function Br(n, t) {3570 return (3571 (t = (t -= n = +n) || 1 / t),3572 function (e) {3573 return (e - n) / t;3574 }3575 );3576 }3577 function Wr(n, t) {3578 return (3579 (t = (t -= n = +n) || 1 / t),3580 function (e) {3581 return Math.max(0, Math.min(1, (e - n) / t));3582 }3583 );3584 }3585 function Jr(n) {3586 for (var t = n.source, e = n.target, r = Kr(t, e), i = [t]; t !== r; )3587 (t = t.parent), i.push(t);3588 for (var u = i.length; e !== r; ) i.splice(u, 0, e), (e = e.parent);3589 return i;3590 }3591 function Gr(n) {3592 for (var t = [], e = n.parent; null != e; )3593 t.push(n), (n = e), (e = e.parent);3594 return t.push(n), t;3595 }3596 function Kr(n, t) {3597 if (n === t) return n;3598 for (3599 var e = Gr(n), r = Gr(t), i = e.pop(), u = r.pop(), o = null;3600 i === u;3601 )3602 (o = i), (i = e.pop()), (u = r.pop());3603 return o;3604 }3605 function Qr(n) {3606 n.fixed |= 2;3607 }3608 function ni(n) {3609 n.fixed &= -7;3610 }3611 function ti(n) {3612 (n.fixed |= 4), (n.px = n.x), (n.py = n.y);3613 }3614 function ei(n) {3615 n.fixed &= -5;3616 }3617 function ri(n, t, e) {3618 var r = 0,3619 i = 0;3620 if (((n.charge = 0), !n.leaf))3621 for (var u, o = n.nodes, a = o.length, l = -1; ++l < a; )3622 (u = o[l]),3623 null != u &&3624 (ri(u, t, e),3625 (n.charge += u.charge),3626 (r += u.charge * u.cx),3627 (i += u.charge * u.cy));3628 if (n.point) {3629 n.leaf ||3630 ((n.point.x += Math.random() - 0.5),3631 (n.point.y += Math.random() - 0.5));3632 var c = t * e[n.point.index];3633 (n.charge += n.pointCharge = c),3634 (r += c * n.point.x),3635 (i += c * n.point.y);3636 }3637 (n.cx = r / n.charge), (n.cy = i / n.charge);3638 }3639 function ii(n, t) {3640 return (3641 ao.rebind(n, t, "sort", "children", "value"),3642 (n.nodes = n),3643 (n.links = fi),3644 n3645 );3646 }3647 function ui(n, t) {3648 for (var e = [n]; null != (n = e.pop()); )3649 if ((t(n), (i = n.children) && (r = i.length)))3650 for (var r, i; --r >= 0; ) e.push(i[r]);3651 }3652 function oi(n, t) {3653 for (var e = [n], r = []; null != (n = e.pop()); )3654 if ((r.push(n), (u = n.children) && (i = u.length)))3655 for (var i, u, o = -1; ++o < i; ) e.push(u[o]);3656 for (; null != (n = r.pop()); ) t(n);3657 }3658 function ai(n) {3659 return n.children;3660 }3661 function li(n) {3662 return n.value;3663 }3664 function ci(n, t) {3665 return t.value - n.value;3666 }3667 function fi(n) {3668 return ao.merge(3669 n.map(function (n) {3670 return (n.children || []).map(function (t) {3671 return { source: n, target: t };3672 });3673 })3674 );3675 }3676 function si(n) {3677 return n.x;3678 }3679 function hi(n) {3680 return n.y;3681 }3682 function pi(n, t, e) {3683 (n.y0 = t), (n.y = e);3684 }3685 function gi(n) {3686 return ao.range(n.length);3687 }3688 function vi(n) {3689 for (var t = -1, e = n[0].length, r = []; ++t < e; ) r[t] = 0;3690 return r;3691 }3692 function di(n) {3693 for (var t, e = 1, r = 0, i = n[0][1], u = n.length; u > e; ++e)3694 (t = n[e][1]) > i && ((r = e), (i = t));3695 return r;3696 }3697 function yi(n) {3698 return n.reduce(mi, 0);3699 }3700 function mi(n, t) {3701 return n + t[1];3702 }3703 function Mi(n, t) {3704 return xi(n, Math.ceil(Math.log(t.length) / Math.LN2 + 1));3705 }3706 function xi(n, t) {3707 for (var e = -1, r = +n[0], i = (n[1] - r) / t, u = []; ++e <= t; )3708 u[e] = i * e + r;3709 return u;3710 }3711 function bi(n) {3712 return [ao.min(n), ao.max(n)];3713 }3714 function _i(n, t) {3715 return n.value - t.value;3716 }3717 function wi(n, t) {3718 var e = n._pack_next;3719 (n._pack_next = t),3720 (t._pack_prev = n),3721 (t._pack_next = e),3722 (e._pack_prev = t);3723 }3724 function Si(n, t) {3725 (n._pack_next = t), (t._pack_prev = n);3726 }3727 function ki(n, t) {3728 var e = t.x - n.x,3729 r = t.y - n.y,3730 i = n.r + t.r;3731 return 0.999 * i * i > e * e + r * r;3732 }3733 function Ni(n) {3734 function t(n) {3735 (f = Math.min(n.x - n.r, f)),3736 (s = Math.max(n.x + n.r, s)),3737 (h = Math.min(n.y - n.r, h)),3738 (p = Math.max(n.y + n.r, p));3739 }3740 if ((e = n.children) && (c = e.length)) {3741 var e,3742 r,3743 i,3744 u,3745 o,3746 a,3747 l,3748 c,3749 f = 1 / 0,3750 s = -(1 / 0),3751 h = 1 / 0,3752 p = -(1 / 0);3753 if (3754 (e.forEach(Ei),3755 (r = e[0]),3756 (r.x = -r.r),3757 (r.y = 0),3758 t(r),3759 c > 1 && ((i = e[1]), (i.x = i.r), (i.y = 0), t(i), c > 2))3760 )3761 for (3762 u = e[2],3763 zi(r, i, u),3764 t(u),3765 wi(r, u),3766 r._pack_prev = u,3767 wi(u, i),3768 i = r._pack_next,3769 o = 3;3770 c > o;3771 o++3772 ) {3773 zi(r, i, (u = e[o]));3774 var g = 0,3775 v = 1,3776 d = 1;3777 for (a = i._pack_next; a !== i; a = a._pack_next, v++)3778 if (ki(a, u)) {3779 g = 1;3780 break;3781 }3782 if (1 == g)3783 for (3784 l = r._pack_prev;3785 l !== a._pack_prev && !ki(l, u);3786 l = l._pack_prev, d++3787 );3788 g3789 ? (d > v || (v == d && i.r < r.r) ? Si(r, (i = a)) : Si((r = l), i),3790 o--)3791 : (wi(r, u), (i = u), t(u));3792 }3793 var y = (f + s) / 2,3794 m = (h + p) / 2,3795 M = 0;3796 for (o = 0; c > o; o++)3797 (u = e[o]),3798 (u.x -= y),3799 (u.y -= m),3800 (M = Math.max(M, u.r + Math.sqrt(u.x * u.x + u.y * u.y)));3801 (n.r = M), e.forEach(Ai);3802 }3803 }3804 function Ei(n) {3805 n._pack_next = n._pack_prev = n;3806 }3807 function Ai(n) {3808 delete n._pack_next, delete n._pack_prev;3809 }3810 function Ci(n, t, e, r) {3811 var i = n.children;3812 if (((n.x = t += r * n.x), (n.y = e += r * n.y), (n.r *= r), i))3813 for (var u = -1, o = i.length; ++u < o; ) Ci(i[u], t, e, r);3814 }3815 function zi(n, t, e) {3816 var r = n.r + e.r,3817 i = t.x - n.x,3818 u = t.y - n.y;3819 if (r && (i || u)) {3820 var o = t.r + e.r,3821 a = i * i + u * u;3822 (o *= o), (r *= r);3823 var l = 0.5 + (r - o) / (2 * a),3824 c =3825 Math.sqrt(Math.max(0, 2 * o * (r + a) - (r -= a) * r - o * o)) /3826 (2 * a);3827 (e.x = n.x + l * i + c * u), (e.y = n.y + l * u - c * i);3828 } else (e.x = n.x + r), (e.y = n.y);3829 }3830 function Li(n, t) {3831 return n.parent == t.parent ? 1 : 2;3832 }3833 function qi(n) {3834 var t = n.children;3835 return t.length ? t[0] : n.t;3836 }3837 function Ti(n) {3838 var t,3839 e = n.children;3840 return (t = e.length) ? e[t - 1] : n.t;3841 }3842 function Ri(n, t, e) {3843 var r = e / (t.i - n.i);3844 (t.c -= r), (t.s += e), (n.c += r), (t.z += e), (t.m += e);3845 }3846 function Di(n) {3847 for (var t, e = 0, r = 0, i = n.children, u = i.length; --u >= 0; )3848 (t = i[u]), (t.z += e), (t.m += e), (e += t.s + (r += t.c));3849 }3850 function Pi(n, t, e) {3851 return n.a.parent === t.parent ? n.a : e;3852 }3853 function Ui(n) {3854 return (3855 1 +3856 ao.max(n, function (n) {3857 return n.y;3858 })3859 );3860 }3861 function ji(n) {3862 return (3863 n.reduce(function (n, t) {3864 return n + t.x;3865 }, 0) / n.length3866 );3867 }3868 function Fi(n) {3869 var t = n.children;3870 return t && t.length ? Fi(t[0]) : n;3871 }3872 function Hi(n) {3873 var t,3874 e = n.children;3875 return e && (t = e.length) ? Hi(e[t - 1]) : n;3876 }3877 function Oi(n) {3878 return { x: n.x, y: n.y, dx: n.dx, dy: n.dy };3879 }3880 function Ii(n, t) {3881 var e = n.x + t[3],3882 r = n.y + t[0],3883 i = n.dx - t[1] - t[3],3884 u = n.dy - t[0] - t[2];3885 return (3886 0 > i && ((e += i / 2), (i = 0)),3887 0 > u && ((r += u / 2), (u = 0)),3888 { x: e, y: r, dx: i, dy: u }3889 );3890 }3891 function Yi(n) {3892 var t = n[0],3893 e = n[n.length - 1];3894 return e > t ? [t, e] : [e, t];3895 }3896 function Zi(n) {3897 return n.rangeExtent ? n.rangeExtent() : Yi(n.range());3898 }3899 function Vi(n, t, e, r) {3900 var i = e(n[0], n[1]),3901 u = r(t[0], t[1]);3902 return function (n) {3903 return u(i(n));3904 };3905 }3906 function Xi(n, t) {3907 var e,3908 r = 0,3909 i = n.length - 1,3910 u = n[r],3911 o = n[i];3912 return (3913 u > o && ((e = r), (r = i), (i = e), (e = u), (u = o), (o = e)),3914 (n[r] = t.floor(u)),3915 (n[i] = t.ceil(o)),3916 n3917 );3918 }3919 function $i(n) {3920 return n3921 ? {3922 floor: function (t) {3923 return Math.floor(t / n) * n;3924 },3925 ceil: function (t) {3926 return Math.ceil(t / n) * n;3927 },3928 }3929 : Sl;3930 }3931 function Bi(n, t, e, r) {3932 var i = [],3933 u = [],3934 o = 0,3935 a = Math.min(n.length, t.length) - 1;3936 for (3937 n[a] < n[0] && ((n = n.slice().reverse()), (t = t.slice().reverse()));3938 ++o <= a;3939 )3940 i.push(e(n[o - 1], n[o])), u.push(r(t[o - 1], t[o]));3941 return function (t) {3942 var e = ao.bisect(n, t, 1, a) - 1;3943 return u[e](i[e](t));3944 };3945 }3946 function Wi(n, t, e, r) {3947 function i() {3948 var i = Math.min(n.length, t.length) > 2 ? Bi : Vi,3949 l = r ? Wr : Br;3950 return (o = i(n, t, l, e)), (a = i(t, n, l, Mr)), u;3951 }3952 function u(n) {3953 return o(n);3954 }3955 var o, a;3956 return (3957 (u.invert = function (n) {3958 return a(n);3959 }),3960 (u.domain = function (t) {3961 return arguments.length ? ((n = t.map(Number)), i()) : n;3962 }),3963 (u.range = function (n) {3964 return arguments.length ? ((t = n), i()) : t;3965 }),3966 (u.rangeRound = function (n) {3967 return u.range(n).interpolate(Ur);3968 }),3969 (u.clamp = function (n) {3970 return arguments.length ? ((r = n), i()) : r;3971 }),3972 (u.interpolate = function (n) {3973 return arguments.length ? ((e = n), i()) : e;3974 }),3975 (u.ticks = function (t) {3976 return Qi(n, t);3977 }),3978 (u.tickFormat = function (t, e) {3979 return nu(n, t, e);3980 }),3981 (u.nice = function (t) {3982 return Gi(n, t), i();3983 }),3984 (u.copy = function () {3985 return Wi(n, t, e, r);3986 }),3987 i()3988 );3989 }3990 function Ji(n, t) {3991 return ao.rebind(n, t, "range", "rangeRound", "interpolate", "clamp");3992 }3993 function Gi(n, t) {3994 return Xi(n, $i(Ki(n, t)[2])), Xi(n, $i(Ki(n, t)[2])), n;3995 }3996 function Ki(n, t) {3997 null == t && (t = 10);3998 var e = Yi(n),3999 r = e[1] - e[0],4000 i = Math.pow(10, Math.floor(Math.log(r / t) / Math.LN10)),4001 u = (t / r) * i;4002 return (4003 0.15 >= u ? (i *= 10) : 0.35 >= u ? (i *= 5) : 0.75 >= u && (i *= 2),4004 (e[0] = Math.ceil(e[0] / i) * i),4005 (e[1] = Math.floor(e[1] / i) * i + 0.5 * i),4006 (e[2] = i),4007 e4008 );4009 }4010 function Qi(n, t) {4011 return ao.range.apply(ao, Ki(n, t));4012 }4013 function nu(n, t, e) {4014 var r = Ki(n, t);4015 if (e) {4016 var i = ha.exec(e);4017 if ((i.shift(), "s" === i[8])) {4018 var u = ao.formatPrefix(Math.max(xo(r[0]), xo(r[1])));4019 return (4020 i[7] || (i[7] = "." + tu(u.scale(r[2]))),4021 (i[8] = "f"),4022 (e = ao.format(i.join(""))),4023 function (n) {4024 return e(u.scale(n)) + u.symbol;4025 }4026 );4027 }4028 i[7] || (i[7] = "." + eu(i[8], r)), (e = i.join(""));4029 } else e = ",." + tu(r[2]) + "f";4030 return ao.format(e);4031 }4032 function tu(n) {4033 return -Math.floor(Math.log(n) / Math.LN10 + 0.01);4034 }4035 function eu(n, t) {4036 var e = tu(t[2]);4037 return n in kl4038 ? Math.abs(e - tu(Math.max(xo(t[0]), xo(t[1])))) + +("e" !== n)4039 : e - 2 * ("%" === n);4040 }4041 function ru(n, t, e, r) {4042 function i(n) {4043 return (4044 (e ? Math.log(0 > n ? 0 : n) : -Math.log(n > 0 ? 0 : -n)) / Math.log(t)4045 );4046 }4047 function u(n) {4048 return e ? Math.pow(t, n) : -Math.pow(t, -n);4049 }4050 function o(t) {4051 return n(i(t));4052 }4053 return (4054 (o.invert = function (t) {4055 return u(n.invert(t));4056 }),4057 (o.domain = function (t) {4058 return arguments.length4059 ? ((e = t[0] >= 0), n.domain((r = t.map(Number)).map(i)), o)4060 : r;4061 }),4062 (o.base = function (e) {4063 return arguments.length ? ((t = +e), n.domain(r.map(i)), o) : t;4064 }),4065 (o.nice = function () {4066 var t = Xi(r.map(i), e ? Math : El);4067 return n.domain(t), (r = t.map(u)), o;4068 }),4069 (o.ticks = function () {4070 var n = Yi(r),4071 o = [],4072 a = n[0],4073 l = n[1],4074 c = Math.floor(i(a)),4075 f = Math.ceil(i(l)),4076 s = t % 1 ? 2 : t;4077 if (isFinite(f - c)) {4078 if (e) {4079 for (; f > c; c++) for (var h = 1; s > h; h++) o.push(u(c) * h);4080 o.push(u(c));4081 } else4082 for (o.push(u(c)); c++ < f; )4083 for (var h = s - 1; h > 0; h--) o.push(u(c) * h);4084 for (c = 0; o[c] < a; c++);4085 for (f = o.length; o[f - 1] > l; f--);4086 o = o.slice(c, f);4087 }4088 return o;4089 }),4090 (o.tickFormat = function (n, e) {4091 if (!arguments.length) return Nl;4092 arguments.length < 24093 ? (e = Nl)4094 : "function" != typeof e && (e = ao.format(e));4095 var r = Math.max(1, (t * n) / o.ticks().length);4096 return function (n) {4097 var o = n / u(Math.round(i(n)));4098 return t - 0.5 > o * t && (o *= t), r >= o ? e(n) : "";4099 };4100 }),4101 (o.copy = function () {4102 return ru(n.copy(), t, e, r);4103 }),4104 Ji(o, n)4105 );4106 }4107 function iu(n, t, e) {4108 function r(t) {4109 return n(i(t));4110 }4111 var i = uu(t),4112 u = uu(1 / t);4113 return (4114 (r.invert = function (t) {4115 return u(n.invert(t));4116 }),4117 (r.domain = function (t) {4118 return arguments.length ? (n.domain((e = t.map(Number)).map(i)), r) : e;4119 }),4120 (r.ticks = function (n) {4121 return Qi(e, n);4122 }),4123 (r.tickFormat = function (n, t) {4124 return nu(e, n, t);4125 }),4126 (r.nice = function (n) {4127 return r.domain(Gi(e, n));4128 }),4129 (r.exponent = function (o) {4130 return arguments.length4131 ? ((i = uu((t = o))), (u = uu(1 / t)), n.domain(e.map(i)), r)4132 : t;4133 }),4134 (r.copy = function () {4135 return iu(n.copy(), t, e);4136 }),4137 Ji(r, n)4138 );4139 }4140 function uu(n) {4141 return function (t) {4142 return 0 > t ? -Math.pow(-t, n) : Math.pow(t, n);4143 };4144 }4145 function ou(n, t) {4146 function e(e) {4147 return u[4148 ((i.get(e) || ("range" === t.t ? i.set(e, n.push(e)) : NaN)) - 1) %4149 u.length4150 ];4151 }4152 function r(t, e) {4153 return ao.range(n.length).map(function (n) {4154 return t + e * n;4155 });4156 }4157 var i, u, o;4158 return (4159 (e.domain = function (r) {4160 if (!arguments.length) return n;4161 (n = []), (i = new c());4162 for (var u, o = -1, a = r.length; ++o < a; )4163 i.has((u = r[o])) || i.set(u, n.push(u));4164 return e[t.t].apply(e, t.a);4165 }),4166 (e.range = function (n) {4167 return arguments.length4168 ? ((u = n), (o = 0), (t = { t: "range", a: arguments }), e)4169 : u;4170 }),4171 (e.rangePoints = function (i, a) {4172 arguments.length < 2 && (a = 0);4173 var l = i[0],4174 c = i[1],4175 f =4176 n.length < 24177 ? ((l = (l + c) / 2), 0)4178 : (c - l) / (n.length - 1 + a);4179 return (4180 (u = r(l + (f * a) / 2, f)),4181 (o = 0),4182 (t = { t: "rangePoints", a: arguments }),4183 e4184 );4185 }),4186 (e.rangeRoundPoints = function (i, a) {4187 arguments.length < 2 && (a = 0);4188 var l = i[0],4189 c = i[1],4190 f =4191 n.length < 24192 ? ((l = c = Math.round((l + c) / 2)), 0)4193 : ((c - l) / (n.length - 1 + a)) | 0;4194 return (4195 (u = r(4196 l + Math.round((f * a) / 2 + (c - l - (n.length - 1 + a) * f) / 2),4197 f4198 )),4199 (o = 0),4200 (t = { t: "rangeRoundPoints", a: arguments }),4201 e4202 );4203 }),4204 (e.rangeBands = function (i, a, l) {4205 arguments.length < 2 && (a = 0), arguments.length < 3 && (l = a);4206 var c = i[1] < i[0],4207 f = i[c - 0],4208 s = i[1 - c],4209 h = (s - f) / (n.length - a + 2 * l);4210 return (4211 (u = r(f + h * l, h)),4212 c && u.reverse(),4213 (o = h * (1 - a)),4214 (t = { t: "rangeBands", a: arguments }),4215 e4216 );4217 }),4218 (e.rangeRoundBands = function (i, a, l) {4219 arguments.length < 2 && (a = 0), arguments.length < 3 && (l = a);4220 var c = i[1] < i[0],4221 f = i[c - 0],4222 s = i[1 - c],4223 h = Math.floor((s - f) / (n.length - a + 2 * l));4224 return (4225 (u = r(f + Math.round((s - f - (n.length - a) * h) / 2), h)),4226 c && u.reverse(),4227 (o = Math.round(h * (1 - a))),4228 (t = { t: "rangeRoundBands", a: arguments }),4229 e4230 );4231 }),4232 (e.rangeBand = function () {4233 return o;4234 }),4235 (e.rangeExtent = function () {4236 return Yi(t.a[0]);4237 }),4238 (e.copy = function () {4239 return ou(n, t);4240 }),4241 e.domain(n)4242 );4243 }4244 function au(n, t) {4245 function u() {4246 var e = 0,4247 r = t.length;4248 for (a = []; ++e < r; ) a[e - 1] = ao.quantile(n, e / r);4249 return o;4250 }4251 function o(n) {4252 return isNaN((n = +n)) ? void 0 : t[ao.bisect(a, n)];4253 }4254 var a;4255 return (4256 (o.domain = function (t) {4257 return arguments.length ? ((n = t.map(r).filter(i).sort(e)), u()) : n;4258 }),4259 (o.range = function (n) {4260 return arguments.length ? ((t = n), u()) : t;4261 }),4262 (o.quantiles = function () {4263 return a;4264 }),4265 (o.invertExtent = function (e) {4266 return (4267 (e = t.indexOf(e)),4268 0 > e4269 ? [NaN, NaN]4270 : [e > 0 ? a[e - 1] : n[0], e < a.length ? a[e] : n[n.length - 1]]4271 );4272 }),4273 (o.copy = function () {4274 return au(n, t);4275 }),4276 u()4277 );4278 }4279 function lu(n, t, e) {4280 function r(t) {4281 return e[Math.max(0, Math.min(o, Math.floor(u * (t - n))))];4282 }4283 function i() {4284 return (u = e.length / (t - n)), (o = e.length - 1), r;4285 }4286 var u, o;4287 return (4288 (r.domain = function (e) {4289 return arguments.length4290 ? ((n = +e[0]), (t = +e[e.length - 1]), i())4291 : [n, t];4292 }),4293 (r.range = function (n) {4294 return arguments.length ? ((e = n), i()) : e;4295 }),4296 (r.invertExtent = function (t) {4297 return (4298 (t = e.indexOf(t)), (t = 0 > t ? NaN : t / u + n), [t, t + 1 / u]4299 );4300 }),4301 (r.copy = function () {4302 return lu(n, t, e);4303 }),4304 i()4305 );4306 }4307 function cu(n, t) {4308 function e(e) {4309 return e >= e ? t[ao.bisect(n, e)] : void 0;4310 }4311 return (4312 (e.domain = function (t) {4313 return arguments.length ? ((n = t), e) : n;4314 }),4315 (e.range = function (n) {4316 return arguments.length ? ((t = n), e) : t;4317 }),4318 (e.invertExtent = function (e) {4319 return (e = t.indexOf(e)), [n[e - 1], n[e]];4320 }),4321 (e.copy = function () {4322 return cu(n, t);4323 }),4324 e4325 );4326 }4327 function fu(n) {4328 function t(n) {4329 return +n;4330 }4331 return (4332 (t.invert = t),4333 (t.domain = t.range = function (e) {4334 return arguments.length ? ((n = e.map(t)), t) : n;4335 }),4336 (t.ticks = function (t) {4337 return Qi(n, t);4338 }),4339 (t.tickFormat = function (t, e) {4340 return nu(n, t, e);4341 }),4342 (t.copy = function () {4343 return fu(n);4344 }),4345 t4346 );4347 }4348 function su() {4349 return 0;4350 }4351 function hu(n) {4352 return n.innerRadius;4353 }4354 function pu(n) {4355 return n.outerRadius;4356 }4357 function gu(n) {4358 return n.startAngle;4359 }4360 function vu(n) {4361 return n.endAngle;4362 }4363 function du(n) {4364 return n && n.padAngle;4365 }4366 function yu(n, t, e, r) {4367 return (n - e) * t - (t - r) * n > 0 ? 0 : 1;4368 }4369 function mu(n, t, e, r, i) {4370 var u = n[0] - t[0],4371 o = n[1] - t[1],4372 a = (i ? r : -r) / Math.sqrt(u * u + o * o),4373 l = a * o,4374 c = -a * u,4375 f = n[0] + l,4376 s = n[1] + c,4377 h = t[0] + l,4378 p = t[1] + c,4379 g = (f + h) / 2,4380 v = (s + p) / 2,4381 d = h - f,4382 y = p - s,4383 m = d * d + y * y,4384 M = e - r,4385 x = f * p - h * s,4386 b = (0 > y ? -1 : 1) * Math.sqrt(Math.max(0, M * M * m - x * x)),4387 _ = (x * y - d * b) / m,4388 w = (-x * d - y * b) / m,4389 S = (x * y + d * b) / m,4390 k = (-x * d + y * b) / m,4391 N = _ - g,4392 E = w - v,4393 A = S - g,4394 C = k - v;4395 return (4396 N * N + E * E > A * A + C * C && ((_ = S), (w = k)),4397 [4398 [_ - l, w - c],4399 [(_ * e) / M, (w * e) / M],4400 ]4401 );4402 }4403 function Mu(n) {4404 function t(t) {4405 function o() {4406 c.push("M", u(n(f), a));4407 }4408 for (4409 var l, c = [], f = [], s = -1, h = t.length, p = En(e), g = En(r);4410 ++s < h;4411 )4412 i.call(this, (l = t[s]), s)4413 ? f.push([+p.call(this, l, s), +g.call(this, l, s)])4414 : f.length && (o(), (f = []));4415 return f.length && o(), c.length ? c.join("") : null;4416 }4417 var e = Ce,4418 r = ze,4419 i = zt,4420 u = xu,4421 o = u.key,4422 a = 0.7;4423 return (4424 (t.x = function (n) {4425 return arguments.length ? ((e = n), t) : e;4426 }),4427 (t.y = function (n) {4428 return arguments.length ? ((r = n), t) : r;4429 }),4430 (t.defined = function (n) {4431 return arguments.length ? ((i = n), t) : i;4432 }),4433 (t.interpolate = function (n) {4434 return arguments.length4435 ? ((o = "function" == typeof n ? (u = n) : (u = Tl.get(n) || xu).key),4436 t)4437 : o;4438 }),4439 (t.tension = function (n) {4440 return arguments.length ? ((a = n), t) : a;4441 }),4442 t4443 );4444 }4445 function xu(n) {4446 return n.length > 1 ? n.join("L") : n + "Z";4447 }4448 function bu(n) {4449 return n.join("L") + "Z";4450 }4451 function _u(n) {4452 for (var t = 0, e = n.length, r = n[0], i = [r[0], ",", r[1]]; ++t < e; )4453 i.push("H", (r[0] + (r = n[t])[0]) / 2, "V", r[1]);4454 return e > 1 && i.push("H", r[0]), i.join("");4455 }4456 function wu(n) {4457 for (var t = 0, e = n.length, r = n[0], i = [r[0], ",", r[1]]; ++t < e; )4458 i.push("V", (r = n[t])[1], "H", r[0]);4459 return i.join("");4460 }4461 function Su(n) {4462 for (var t = 0, e = n.length, r = n[0], i = [r[0], ",", r[1]]; ++t < e; )4463 i.push("H", (r = n[t])[0], "V", r[1]);4464 return i.join("");4465 }4466 function ku(n, t) {4467 return n.length < 4 ? xu(n) : n[1] + Au(n.slice(1, -1), Cu(n, t));4468 }4469 function Nu(n, t) {4470 return n.length < 34471 ? bu(n)4472 : n[0] +4473 Au((n.push(n[0]), n), Cu([n[n.length - 2]].concat(n, [n[1]]), t));4474 }4475 function Eu(n, t) {4476 return n.length < 3 ? xu(n) : n[0] + Au(n, Cu(n, t));4477 }4478 function Au(n, t) {4479 if (t.length < 1 || (n.length != t.length && n.length != t.length + 2))4480 return xu(n);4481 var e = n.length != t.length,4482 r = "",4483 i = n[0],4484 u = n[1],4485 o = t[0],4486 a = o,4487 l = 1;4488 if (4489 (e &&4490 ((r +=4491 "Q" +4492 (u[0] - (2 * o[0]) / 3) +4493 "," +4494 (u[1] - (2 * o[1]) / 3) +4495 "," +4496 u[0] +4497 "," +4498 u[1]),4499 (i = n[1]),4500 (l = 2)),4501 t.length > 1)4502 ) {4503 (a = t[1]),4504 (u = n[l]),4505 l++,4506 (r +=4507 "C" +4508 (i[0] + o[0]) +4509 "," +4510 (i[1] + o[1]) +4511 "," +4512 (u[0] - a[0]) +4513 "," +4514 (u[1] - a[1]) +4515 "," +4516 u[0] +4517 "," +4518 u[1]);4519 for (var c = 2; c < t.length; c++, l++)4520 (u = n[l]),4521 (a = t[c]),4522 (r +=4523 "S" +4524 (u[0] - a[0]) +4525 "," +4526 (u[1] - a[1]) +4527 "," +4528 u[0] +4529 "," +4530 u[1]);4531 }4532 if (e) {4533 var f = n[l];4534 r +=4535 "Q" +4536 (u[0] + (2 * a[0]) / 3) +4537 "," +4538 (u[1] + (2 * a[1]) / 3) +4539 "," +4540 f[0] +4541 "," +4542 f[1];4543 }4544 return r;4545 }4546 function Cu(n, t) {4547 for (4548 var e, r = [], i = (1 - t) / 2, u = n[0], o = n[1], a = 1, l = n.length;4549 ++a < l;4550 )4551 (e = u),4552 (u = o),4553 (o = n[a]),4554 r.push([i * (o[0] - e[0]), i * (o[1] - e[1])]);4555 return r;4556 }4557 function zu(n) {4558 if (n.length < 3) return xu(n);4559 var t = 1,4560 e = n.length,4561 r = n[0],4562 i = r[0],4563 u = r[1],4564 o = [i, i, i, (r = n[1])[0]],4565 a = [u, u, u, r[1]],4566 l = [i, ",", u, "L", Ru(Pl, o), ",", Ru(Pl, a)];4567 for (n.push(n[e - 1]); ++t <= e; )4568 (r = n[t]), o.shift(), o.push(r[0]), a.shift(), a.push(r[1]), Du(l, o, a);4569 return n.pop(), l.push("L", r), l.join("");4570 }4571 function Lu(n) {4572 if (n.length < 4) return xu(n);4573 for (var t, e = [], r = -1, i = n.length, u = [0], o = [0]; ++r < 3; )4574 (t = n[r]), u.push(t[0]), o.push(t[1]);4575 for (e.push(Ru(Pl, u) + "," + Ru(Pl, o)), --r; ++r < i; )4576 (t = n[r]), u.shift(), u.push(t[0]), o.shift(), o.push(t[1]), Du(e, u, o);4577 return e.join("");4578 }4579 function qu(n) {4580 for (var t, e, r = -1, i = n.length, u = i + 4, o = [], a = []; ++r < 4; )4581 (e = n[r % i]), o.push(e[0]), a.push(e[1]);4582 for (t = [Ru(Pl, o), ",", Ru(Pl, a)], --r; ++r < u; )4583 (e = n[r % i]),4584 o.shift(),4585 o.push(e[0]),4586 a.shift(),4587 a.push(e[1]),4588 Du(t, o, a);4589 return t.join("");4590 }4591 function Tu(n, t) {4592 var e = n.length - 1;4593 if (e)4594 for (4595 var r,4596 i,4597 u = n[0][0],4598 o = n[0][1],4599 a = n[e][0] - u,4600 l = n[e][1] - o,4601 c = -1;4602 ++c <= e;4603 )4604 (r = n[c]),4605 (i = c / e),4606 (r[0] = t * r[0] + (1 - t) * (u + i * a)),4607 (r[1] = t * r[1] + (1 - t) * (o + i * l));4608 return zu(n);4609 }4610 function Ru(n, t) {4611 return n[0] * t[0] + n[1] * t[1] + n[2] * t[2] + n[3] * t[3];4612 }4613 function Du(n, t, e) {4614 n.push(4615 "C",4616 Ru(Rl, t),4617 ",",4618 Ru(Rl, e),4619 ",",4620 Ru(Dl, t),4621 ",",4622 Ru(Dl, e),4623 ",",4624 Ru(Pl, t),4625 ",",4626 Ru(Pl, e)4627 );4628 }4629 function Pu(n, t) {4630 return (t[1] - n[1]) / (t[0] - n[0]);4631 }4632 function Uu(n) {4633 for (4634 var t = 0,4635 e = n.length - 1,4636 r = [],4637 i = n[0],4638 u = n[1],4639 o = (r[0] = Pu(i, u));4640 ++t < e;4641 )4642 r[t] = (o + (o = Pu((i = u), (u = n[t + 1])))) / 2;4643 return (r[t] = o), r;4644 }4645 function ju(n) {4646 for (var t, e, r, i, u = [], o = Uu(n), a = -1, l = n.length - 1; ++a < l; )4647 (t = Pu(n[a], n[a + 1])),4648 xo(t) < Uo4649 ? (o[a] = o[a + 1] = 0)4650 : ((e = o[a] / t),4651 (r = o[a + 1] / t),4652 (i = e * e + r * r),4653 i > 9 &&4654 ((i = (3 * t) / Math.sqrt(i)),4655 (o[a] = i * e),4656 (o[a + 1] = i * r)));4657 for (a = -1; ++a <= l; )4658 (i =4659 (n[Math.min(l, a + 1)][0] - n[Math.max(0, a - 1)][0]) /4660 (6 * (1 + o[a] * o[a]))),4661 u.push([i || 0, o[a] * i || 0]);4662 return u;4663 }4664 function Fu(n) {4665 return n.length < 3 ? xu(n) : n[0] + Au(n, ju(n));4666 }4667 function Hu(n) {4668 for (var t, e, r, i = -1, u = n.length; ++i < u; )4669 (t = n[i]),4670 (e = t[0]),4671 (r = t[1] - Io),4672 (t[0] = e * Math.cos(r)),4673 (t[1] = e * Math.sin(r));4674 return n;4675 }4676 function Ou(n) {4677 function t(t) {4678 function l() {4679 v.push("M", a(n(y), s), f, c(n(d.reverse()), s), "Z");4680 }4681 for (4682 var h,4683 p,4684 g,4685 v = [],4686 d = [],4687 y = [],4688 m = -1,4689 M = t.length,4690 x = En(e),4691 b = En(i),4692 _ =4693 e === r4694 ? function () {4695 return p;4696 }4697 : En(r),4698 w =4699 i === u4700 ? function () {4701 return g;4702 }4703 : En(u);4704 ++m < M;4705 )4706 o.call(this, (h = t[m]), m)4707 ? (d.push([(p = +x.call(this, h, m)), (g = +b.call(this, h, m))]),4708 y.push([+_.call(this, h, m), +w.call(this, h, m)]))4709 : d.length && (l(), (d = []), (y = []));4710 return d.length && l(), v.length ? v.join("") : null;4711 }4712 var e = Ce,4713 r = Ce,4714 i = 0,4715 u = ze,4716 o = zt,4717 a = xu,4718 l = a.key,4719 c = a,4720 f = "L",4721 s = 0.7;4722 return (4723 (t.x = function (n) {4724 return arguments.length ? ((e = r = n), t) : r;4725 }),4726 (t.x0 = function (n) {4727 return arguments.length ? ((e = n), t) : e;4728 }),4729 (t.x1 = function (n) {4730 return arguments.length ? ((r = n), t) : r;4731 }),4732 (t.y = function (n) {4733 return arguments.length ? ((i = u = n), t) : u;4734 }),4735 (t.y0 = function (n) {4736 return arguments.length ? ((i = n), t) : i;4737 }),4738 (t.y1 = function (n) {4739 return arguments.length ? ((u = n), t) : u;4740 }),4741 (t.defined = function (n) {4742 return arguments.length ? ((o = n), t) : o;4743 }),4744 (t.interpolate = function (n) {4745 return arguments.length4746 ? ((l = "function" == typeof n ? (a = n) : (a = Tl.get(n) || xu).key),4747 (c = a.reverse || a),4748 (f = a.closed ? "M" : "L"),4749 t)4750 : l;4751 }),4752 (t.tension = function (n) {4753 return arguments.length ? ((s = n), t) : s;4754 }),4755 t4756 );4757 }4758 function Iu(n) {4759 return n.radius;4760 }4761 function Yu(n) {4762 return [n.x, n.y];4763 }4764 function Zu(n) {4765 return function () {4766 var t = n.apply(this, arguments),4767 e = t[0],4768 r = t[1] - Io;4769 return [e * Math.cos(r), e * Math.sin(r)];4770 };4771 }4772 function Vu() {4773 return 64;4774 }4775 function Xu() {4776 return "circle";4777 }4778 function $u(n) {4779 var t = Math.sqrt(n / Fo);4780 return (4781 "M0," +4782 t +4783 "A" +4784 t +4785 "," +4786 t +4787 " 0 1,1 0," +4788 -t +4789 "A" +4790 t +4791 "," +4792 t +4793 " 0 1,1 0," +4794 t +4795 "Z"4796 );4797 }4798 function Bu(n) {4799 return function () {4800 var t, e, r;4801 (t = this[n]) &&4802 (r = t[(e = t.active)]) &&4803 ((r.timer.c = null),4804 (r.timer.t = NaN),4805 --t.count ? delete t[e] : delete this[n],4806 (t.active += 0.5),4807 r.event && r.event.interrupt.call(this, this.__data__, r.index));4808 };4809 }4810 function Wu(n, t, e) {4811 return ko(n, Yl), (n.namespace = t), (n.id = e), n;4812 }4813 function Ju(n, t, e, r) {4814 var i = n.id,4815 u = n.namespace;4816 return Y(4817 n,4818 "function" == typeof e4819 ? function (n, o, a) {4820 n[u][i].tween.set(t, r(e.call(n, n.__data__, o, a)));4821 }4822 : ((e = r(e)),4823 function (n) {4824 n[u][i].tween.set(t, e);4825 })4826 );4827 }4828 function Gu(n) {4829 return (4830 null == n && (n = ""),4831 function () {4832 this.textContent = n;4833 }4834 );4835 }4836 function Ku(n) {4837 return null == n ? "__transition__" : "__transition_" + n + "__";4838 }4839 function Qu(n, t, e, r, i) {4840 function u(n) {4841 var t = v.delay;4842 return (f.t = t + l), n >= t ? o(n - t) : void (f.c = o);4843 }4844 function o(e) {4845 var i = g.active,4846 u = g[i];4847 u &&4848 ((u.timer.c = null),4849 (u.timer.t = NaN),4850 --g.count,4851 delete g[i],4852 u.event && u.event.interrupt.call(n, n.__data__, u.index));4853 for (var o in g)4854 if (r > +o) {4855 var c = g[o];4856 (c.timer.c = null), (c.timer.t = NaN), --g.count, delete g[o];4857 }4858 (f.c = a),4859 qn(4860 function () {4861 return f.c && a(e || 1) && ((f.c = null), (f.t = NaN)), 1;4862 },4863 0,4864 l4865 ),4866 (g.active = r),4867 v.event && v.event.start.call(n, n.__data__, t),4868 (p = []),4869 v.tween.forEach(function (e, r) {4870 (r = r.call(n, n.__data__, t)) && p.push(r);4871 }),4872 (h = v.ease),4873 (s = v.duration);4874 }4875 function a(i) {4876 for (var u = i / s, o = h(u), a = p.length; a > 0; ) p[--a].call(n, o);4877 return u >= 14878 ? (v.event && v.event.end.call(n, n.__data__, t),4879 --g.count ? delete g[r] : delete n[e],4880 1)4881 : void 0;4882 }4883 var l,4884 f,4885 s,4886 h,4887 p,4888 g = n[e] || (n[e] = { active: 0, count: 0 }),4889 v = g[r];4890 v ||4891 ((l = i.time),4892 (f = qn(u, 0, l)),4893 (v = g[r] = {4894 tween: new c(),4895 time: l,4896 timer: f,4897 delay: i.delay,4898 duration: i.duration,4899 ease: i.ease,4900 index: t,4901 }),4902 (i = null),4903 ++g.count);4904 }4905 function no(n, t, e) {4906 n.attr("transform", function (n) {4907 var r = t(n);4908 return "translate(" + (isFinite(r) ? r : e(n)) + ",0)";4909 });4910 }4911 function to(n, t, e) {4912 n.attr("transform", function (n) {4913 var r = t(n);4914 return "translate(0," + (isFinite(r) ? r : e(n)) + ")";4915 });4916 }4917 function eo(n) {4918 return n.toISOString();4919 }4920 function ro(n, t, e) {4921 function r(t) {4922 return n(t);4923 }4924 function i(n, e) {4925 var r = n[1] - n[0],4926 i = r / e,4927 u = ao.bisect(Kl, i);4928 return u == Kl.length4929 ? [4930 t.year,4931 Ki(4932 n.map(function (n) {4933 return n / 31536e6;4934 }),4935 e4936 )[2],4937 ]4938 : u4939 ? t[i / Kl[u - 1] < Kl[u] / i ? u - 1 : u]4940 : [tc, Ki(n, e)[2]];4941 }4942 return (4943 (r.invert = function (t) {4944 return io(n.invert(t));4945 }),4946 (r.domain = function (t) {4947 return arguments.length ? (n.domain(t), r) : n.domain().map(io);4948 }),4949 (r.nice = function (n, t) {4950 function e(e) {4951 return !isNaN(e) && !n.range(e, io(+e + 1), t).length;4952 }4953 var u = r.domain(),4954 o = Yi(u),4955 a = null == n ? i(o, 10) : "number" == typeof n && i(o, n);4956 return (4957 a && ((n = a[0]), (t = a[1])),4958 r.domain(4959 Xi(4960 u,4961 t > 14962 ? {4963 floor: function (t) {4964 for (; e((t = n.floor(t))); ) t = io(t - 1);4965 return t;4966 },4967 ceil: function (t) {4968 for (; e((t = n.ceil(t))); ) t = io(+t + 1);4969 return t;4970 },4971 }4972 : n4973 )4974 )4975 );4976 }),4977 (r.ticks = function (n, t) {4978 var e = Yi(r.domain()),4979 u =4980 null == n4981 ? i(e, 10)4982 : "number" == typeof n4983 ? i(e, n)4984 : !n.range && [{ range: n }, t];4985 return (4986 u && ((n = u[0]), (t = u[1])),4987 n.range(e[0], io(+e[1] + 1), 1 > t ? 1 : t)4988 );4989 }),4990 (r.tickFormat = function () {4991 return e;4992 }),4993 (r.copy = function () {4994 return ro(n.copy(), t, e);4995 }),4996 Ji(r, n)4997 );4998 }4999 function io(n) {5000 return new Date(n);5001 }5002 function uo(n) {5003 return JSON.parse(n.responseText);5004 }5005 function oo(n) {5006 var t = fo.createRange();5007 return t.selectNode(fo.body), t.createContextualFragment(n.responseText);5008 }5009 var ao = { version: "3.5.17" },5010 lo = [].slice,5011 co = function (n) {5012 return lo.call(n);5013 },5014 fo = this.document;5015 if (fo)5016 try {5017 co(fo.documentElement.childNodes)[0].nodeType;5018 } catch (so) {5019 co = function (n) {5020 for (var t = n.length, e = new Array(t); t--; ) e[t] = n[t];5021 return e;5022 };5023 }5024 if (5025 (Date.now ||5026 (Date.now = function () {5027 return +new Date();5028 }),5029 fo)5030 )5031 try {5032 fo.createElement("DIV").style.setProperty("opacity", 0, "");5033 } catch (ho) {5034 var po = this.Element.prototype,5035 go = po.setAttribute,5036 vo = po.setAttributeNS,5037 yo = this.CSSStyleDeclaration.prototype,5038 mo = yo.setProperty;5039 (po.setAttribute = function (n, t) {5040 go.call(this, n, t + "");5041 }),5042 (po.setAttributeNS = function (n, t, e) {5043 vo.call(this, n, t, e + "");5044 }),5045 (yo.setProperty = function (n, t, e) {5046 mo.call(this, n, t + "", e);5047 });5048 }5049 (ao.ascending = e),5050 (ao.descending = function (n, t) {5051 return n > t ? -1 : t > n ? 1 : t >= n ? 0 : NaN;5052 }),5053 (ao.min = function (n, t) {5054 var e,5055 r,5056 i = -1,5057 u = n.length;5058 if (1 === arguments.length) {5059 for (; ++i < u; )5060 if (null != (r = n[i]) && r >= r) {5061 e = r;5062 break;5063 }5064 for (; ++i < u; ) null != (r = n[i]) && e > r && (e = r);5065 } else {5066 for (; ++i < u; )5067 if (null != (r = t.call(n, n[i], i)) && r >= r) {5068 e = r;5069 break;5070 }5071 for (; ++i < u; ) null != (r = t.call(n, n[i], i)) && e > r && (e = r);5072 }5073 return e;5074 }),5075 (ao.max = function (n, t) {5076 var e,5077 r,5078 i = -1,5079 u = n.length;5080 if (1 === arguments.length) {5081 for (; ++i < u; )5082 if (null != (r = n[i]) && r >= r) {5083 e = r;5084 break;5085 }5086 for (; ++i < u; ) null != (r = n[i]) && r > e && (e = r);5087 } else {5088 for (; ++i < u; )5089 if (null != (r = t.call(n, n[i], i)) && r >= r) {5090 e = r;5091 break;5092 }5093 for (; ++i < u; ) null != (r = t.call(n, n[i], i)) && r > e && (e = r);5094 }5095 return e;5096 }),5097 (ao.extent = function (n, t) {5098 var e,5099 r,5100 i,5101 u = -1,5102 o = n.length;5103 if (1 === arguments.length) {5104 for (; ++u < o; )5105 if (null != (r = n[u]) && r >= r) {5106 e = i = r;5107 break;5108 }5109 for (; ++u < o; )5110 null != (r = n[u]) && (e > r && (e = r), r > i && (i = r));5111 } else {5112 for (; ++u < o; )5113 if (null != (r = t.call(n, n[u], u)) && r >= r) {5114 e = i = r;5115 break;5116 }5117 for (; ++u < o; )5118 null != (r = t.call(n, n[u], u)) &&5119 (e > r && (e = r), r > i && (i = r));5120 }5121 return [e, i];5122 }),5123 (ao.sum = function (n, t) {5124 var e,5125 r = 0,5126 u = n.length,5127 o = -1;5128 if (1 === arguments.length) for (; ++o < u; ) i((e = +n[o])) && (r += e);5129 else for (; ++o < u; ) i((e = +t.call(n, n[o], o))) && (r += e);5130 return r;5131 }),5132 (ao.mean = function (n, t) {5133 var e,5134 u = 0,5135 o = n.length,5136 a = -1,5137 l = o;5138 if (1 === arguments.length)5139 for (; ++a < o; ) i((e = r(n[a]))) ? (u += e) : --l;5140 else for (; ++a < o; ) i((e = r(t.call(n, n[a], a)))) ? (u += e) : --l;5141 return l ? u / l : void 0;5142 }),5143 (ao.quantile = function (n, t) {5144 var e = (n.length - 1) * t + 1,5145 r = Math.floor(e),5146 i = +n[r - 1],5147 u = e - r;5148 return u ? i + u * (n[r] - i) : i;5149 }),5150 (ao.median = function (n, t) {5151 var u,5152 o = [],5153 a = n.length,5154 l = -1;5155 if (1 === arguments.length)5156 for (; ++l < a; ) i((u = r(n[l]))) && o.push(u);5157 else for (; ++l < a; ) i((u = r(t.call(n, n[l], l)))) && o.push(u);5158 return o.length ? ao.quantile(o.sort(e), 0.5) : void 0;5159 }),5160 (ao.variance = function (n, t) {5161 var e,5162 u,5163 o = n.length,5164 a = 0,5165 l = 0,5166 c = -1,5167 f = 0;5168 if (1 === arguments.length)5169 for (; ++c < o; )5170 i((e = r(n[c]))) && ((u = e - a), (a += u / ++f), (l += u * (e - a)));5171 else5172 for (; ++c < o; )5173 i((e = r(t.call(n, n[c], c)))) &&5174 ((u = e - a), (a += u / ++f), (l += u * (e - a)));5175 return f > 1 ? l / (f - 1) : void 0;5176 }),5177 (ao.deviation = function () {5178 var n = ao.variance.apply(this, arguments);5179 return n ? Math.sqrt(n) : n;5180 });5181 var Mo = u(e);5182 (ao.bisectLeft = Mo.left),5183 (ao.bisect = ao.bisectRight = Mo.right),5184 (ao.bisector = function (n) {5185 return u(5186 1 === n.length5187 ? function (t, r) {5188 return e(n(t), r);5189 }5190 : n5191 );5192 }),5193 (ao.shuffle = function (n, t, e) {5194 (u = arguments.length) < 3 && ((e = n.length), 2 > u && (t = 0));5195 for (var r, i, u = e - t; u; )5196 (i = (Math.random() * u--) | 0),5197 (r = n[u + t]),5198 (n[u + t] = n[i + t]),5199 (n[i + t] = r);5200 return n;5201 }),5202 (ao.permute = function (n, t) {5203 for (var e = t.length, r = new Array(e); e--; ) r[e] = n[t[e]];5204 return r;5205 }),5206 (ao.pairs = function (n) {5207 for (5208 var t, e = 0, r = n.length - 1, i = n[0], u = new Array(0 > r ? 0 : r);5209 r > e;5210 )5211 u[e] = [(t = i), (i = n[++e])];5212 return u;5213 }),5214 (ao.transpose = function (n) {5215 if (!(i = n.length)) return [];5216 for (var t = -1, e = ao.min(n, o), r = new Array(e); ++t < e; )5217 for (var i, u = -1, a = (r[t] = new Array(i)); ++u < i; )5218 a[u] = n[u][t];5219 return r;5220 }),5221 (ao.zip = function () {5222 return ao.transpose(arguments);5223 }),5224 (ao.keys = function (n) {5225 var t = [];5226 for (var e in n) t.push(e);5227 return t;5228 }),5229 (ao.values = function (n) {5230 var t = [];5231 for (var e in n) t.push(n[e]);5232 return t;5233 }),5234 (ao.entries = function (n) {5235 var t = [];5236 for (var e in n) t.push({ key: e, value: n[e] });5237 return t;5238 }),5239 (ao.merge = function (n) {5240 for (var t, e, r, i = n.length, u = -1, o = 0; ++u < i; )5241 o += n[u].length;5242 for (e = new Array(o); --i >= 0; )5243 for (r = n[i], t = r.length; --t >= 0; ) e[--o] = r[t];5244 return e;5245 });5246 var xo = Math.abs;5247 (ao.range = function (n, t, e) {5248 if (5249 (arguments.length < 3 &&5250 ((e = 1), arguments.length < 2 && ((t = n), (n = 0))),5251 (t - n) / e === 1 / 0)5252 )5253 throw new Error("infinite range");5254 var r,5255 i = [],5256 u = a(xo(e)),5257 o = -1;5258 if (((n *= u), (t *= u), (e *= u), 0 > e))5259 for (; (r = n + e * ++o) > t; ) i.push(r / u);5260 else for (; (r = n + e * ++o) < t; ) i.push(r / u);5261 return i;5262 }),5263 (ao.map = function (n, t) {5264 var e = new c();5265 if (n instanceof c)5266 n.forEach(function (n, t) {5267 e.set(n, t);5268 });5269 else if (Array.isArray(n)) {5270 var r,5271 i = -1,5272 u = n.length;5273 if (1 === arguments.length) for (; ++i < u; ) e.set(i, n[i]);5274 else for (; ++i < u; ) e.set(t.call(n, (r = n[i]), i), r);5275 } else for (var o in n) e.set(o, n[o]);5276 return e;5277 });5278 var bo = "__proto__",5279 _o = "\x00";5280 l(c, {5281 has: h,5282 get: function (n) {5283 return this._[f(n)];5284 },5285 set: function (n, t) {5286 return (this._[f(n)] = t);5287 },5288 remove: p,5289 keys: g,5290 values: function () {5291 var n = [];5292 for (var t in this._) n.push(this._[t]);5293 return n;5294 },5295 entries: function () {5296 var n = [];5297 for (var t in this._) n.push({ key: s(t), value: this._[t] });5298 return n;5299 },5300 size: v,5301 empty: d,5302 forEach: function (n) {5303 for (var t in this._) n.call(this, s(t), this._[t]);5304 },5305 }),5306 (ao.nest = function () {5307 function n(t, o, a) {5308 if (a >= u.length) return r ? r.call(i, o) : e ? o.sort(e) : o;5309 for (5310 var l, f, s, h, p = -1, g = o.length, v = u[a++], d = new c();5311 ++p < g;5312 )5313 (h = d.get((l = v((f = o[p]))))) ? h.push(f) : d.set(l, [f]);5314 return (5315 t5316 ? ((f = t()),5317 (s = function (e, r) {5318 f.set(e, n(t, r, a));5319 }))5320 : ((f = {}),5321 (s = function (e, r) {5322 f[e] = n(t, r, a);5323 })),5324 d.forEach(s),5325 f5326 );5327 }5328 function t(n, e) {5329 if (e >= u.length) return n;5330 var r = [],5331 i = o[e++];5332 return (5333 n.forEach(function (n, i) {5334 r.push({ key: n, values: t(i, e) });5335 }),5336 i5337 ? r.sort(function (n, t) {5338 return i(n.key, t.key);5339 })5340 : r5341 );5342 }5343 var e,5344 r,5345 i = {},5346 u = [],5347 o = [];5348 return (5349 (i.map = function (t, e) {5350 return n(e, t, 0);5351 }),5352 (i.entries = function (e) {5353 return t(n(ao.map, e, 0), 0);5354 }),5355 (i.key = function (n) {5356 return u.push(n), i;5357 }),5358 (i.sortKeys = function (n) {5359 return (o[u.length - 1] = n), i;5360 }),5361 (i.sortValues = function (n) {5362 return (e = n), i;5363 }),5364 (i.rollup = function (n) {5365 return (r = n), i;5366 }),5367 i5368 );5369 }),5370 (ao.set = function (n) {5371 var t = new y();5372 if (n) for (var e = 0, r = n.length; r > e; ++e) t.add(n[e]);5373 return t;5374 }),5375 l(y, {5376 has: h,5377 add: function (n) {5378 return (this._[f((n += ""))] = !0), n;5379 },5380 remove: p,5381 values: g,5382 size: v,5383 empty: d,5384 forEach: function (n) {5385 for (var t in this._) n.call(this, s(t));5386 },5387 }),5388 (ao.behavior = {}),5389 (ao.rebind = function (n, t) {5390 for (var e, r = 1, i = arguments.length; ++r < i; )5391 n[(e = arguments[r])] = M(n, t, t[e]);5392 return n;5393 });5394 var wo = ["webkit", "ms", "moz", "Moz", "o", "O"];5395 (ao.dispatch = function () {5396 for (var n = new _(), t = -1, e = arguments.length; ++t < e; )5397 n[arguments[t]] = w(n);5398 return n;5399 }),5400 (_.prototype.on = function (n, t) {5401 var e = n.indexOf("."),5402 r = "";5403 if ((e >= 0 && ((r = n.slice(e + 1)), (n = n.slice(0, e))), n))5404 return arguments.length < 2 ? this[n].on(r) : this[n].on(r, t);5405 if (2 === arguments.length) {5406 if (null == t)5407 for (n in this) this.hasOwnProperty(n) && this[n].on(r, null);5408 return this;5409 }5410 }),5411 (ao.event = null),5412 (ao.requote = function (n) {5413 return n.replace(So, "\\$&");5414 });5415 var So = /[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,5416 ko = {}.__proto__5417 ? function (n, t) {5418 n.__proto__ = t;5419 }5420 : function (n, t) {5421 for (var e in t) n[e] = t[e];5422 },5423 No = function (n, t) {5424 return t.querySelector(n);5425 },5426 Eo = function (n, t) {5427 return t.querySelectorAll(n);5428 },5429 Ao = function (n, t) {5430 var e = n.matches || n[x(n, "matchesSelector")];5431 return (Ao = function (n, t) {5432 return e.call(n, t);5433 })(n, t);5434 };5435 "function" == typeof Sizzle &&5436 ((No = function (n, t) {5437 return Sizzle(n, t)[0] || null;5438 }),5439 (Eo = Sizzle),5440 (Ao = Sizzle.matchesSelector)),5441 (ao.selection = function () {5442 return ao.select(fo.documentElement);5443 });5444 var Co = (ao.selection.prototype = []);5445 (Co.select = function (n) {5446 var t,5447 e,5448 r,5449 i,5450 u = [];5451 n = A(n);5452 for (var o = -1, a = this.length; ++o < a; ) {5453 u.push((t = [])), (t.parentNode = (r = this[o]).parentNode);5454 for (var l = -1, c = r.length; ++l < c; )5455 (i = r[l])5456 ? (t.push((e = n.call(i, i.__data__, l, o))),5457 e && "__data__" in i && (e.__data__ = i.__data__))5458 : t.push(null);5459 }5460 return E(u);5461 }),5462 (Co.selectAll = function (n) {5463 var t,5464 e,5465 r = [];5466 n = C(n);5467 for (var i = -1, u = this.length; ++i < u; )5468 for (var o = this[i], a = -1, l = o.length; ++a < l; )5469 (e = o[a]) &&5470 (r.push((t = co(n.call(e, e.__data__, a, i)))), (t.parentNode = e));5471 return E(r);5472 });5473 var zo = "http://www.w3.org/1999/xhtml",5474 Lo = {5475 svg: "http://www.w3.org/2000/svg",5476 xhtml: zo,5477 xlink: "http://www.w3.org/1999/xlink",5478 xml: "http://www.w3.org/XML/1998/namespace",5479 xmlns: "http://www.w3.org/2000/xmlns/",5480 };5481 (ao.ns = {5482 prefix: Lo,5483 qualify: function (n) {5484 var t = n.indexOf(":"),5485 e = n;5486 return (5487 t >= 0 && "xmlns" !== (e = n.slice(0, t)) && (n = n.slice(t + 1)),5488 Lo.hasOwnProperty(e) ? { space: Lo[e], local: n } : n5489 );5490 },5491 }),5492 (Co.attr = function (n, t) {5493 if (arguments.length < 2) {5494 if ("string" == typeof n) {5495 var e = this.node();5496 return (5497 (n = ao.ns.qualify(n)),5498 n.local ? e.getAttributeNS(n.space, n.local) : e.getAttribute(n)5499 );5500 }5501 for (t in n) this.each(z(t, n[t]));5502 return this;5503 }5504 return this.each(z(n, t));5505 }),5506 (Co.classed = function (n, t) {5507 if (arguments.length < 2) {5508 if ("string" == typeof n) {5509 var e = this.node(),5510 r = (n = T(n)).length,5511 i = -1;5512 if ((t = e.classList)) {5513 for (; ++i < r; ) if (!t.contains(n[i])) return !1;5514 } else5515 for (t = e.getAttribute("class"); ++i < r; )5516 if (!q(n[i]).test(t)) return !1;5517 return !0;5518 }5519 for (t in n) this.each(R(t, n[t]));5520 return this;5521 }5522 return this.each(R(n, t));5523 }),5524 (Co.style = function (n, e, r) {5525 var i = arguments.length;5526 if (3 > i) {5527 if ("string" != typeof n) {5528 2 > i && (e = "");5529 for (r in n) this.each(P(r, n[r], e));5530 return this;5531 }5532 if (2 > i) {5533 var u = this.node();5534 return t(u).getComputedStyle(u, null).getPropertyValue(n);5535 }5536 r = "";5537 }5538 return this.each(P(n, e, r));5539 }),5540 (Co.property = function (n, t) {5541 if (arguments.length < 2) {5542 if ("string" == typeof n) return this.node()[n];5543 for (t in n) this.each(U(t, n[t]));5544 return this;5545 }5546 return this.each(U(n, t));5547 }),5548 (Co.text = function (n) {5549 return arguments.length5550 ? this.each(5551 "function" == typeof n5552 ? function () {5553 var t = n.apply(this, arguments);5554 this.textContent = null == t ? "" : t;5555 }5556 : null == n5557 ? function () {5558 this.textContent = "";5559 }5560 : function () {5561 this.textContent = n;5562 }5563 )5564 : this.node().textContent;5565 }),5566 (Co.html = function (n) {5567 return arguments.length5568 ? this.each(5569 "function" == typeof n5570 ? function () {5571 var t = n.apply(this, arguments);5572 this.innerHTML = null == t ? "" : t;5573 }5574 : null == n5575 ? function () {5576 this.innerHTML = "";5577 }5578 : function () {5579 this.innerHTML = n;5580 }5581 )5582 : this.node().innerHTML;5583 }),5584 (Co.append = function (n) {5585 return (5586 (n = j(n)),5587 this.select(function () {5588 return this.appendChild(n.apply(this, arguments));5589 })5590 );5591 }),5592 (Co.insert = function (n, t) {5593 return (5594 (n = j(n)),5595 (t = A(t)),5596 this.select(function () {5597 return this.insertBefore(5598 n.apply(this, arguments),5599 t.apply(this, arguments) || null5600 );5601 })5602 );5603 }),5604 (Co.remove = function () {5605 return this.each(F);5606 }),5607 (Co.data = function (n, t) {5608 function e(n, e) {5609 var r,5610 i,5611 u,5612 o = n.length,5613 s = e.length,5614 h = Math.min(o, s),5615 p = new Array(s),5616 g = new Array(s),5617 v = new Array(o);5618 if (t) {5619 var d,5620 y = new c(),5621 m = new Array(o);5622 for (r = -1; ++r < o; )5623 (i = n[r]) &&5624 (y.has((d = t.call(i, i.__data__, r))) ? (v[r] = i) : y.set(d, i),5625 (m[r] = d));5626 for (r = -1; ++r < s; )5627 (i = y.get((d = t.call(e, (u = e[r]), r))))5628 ? i !== !0 && ((p[r] = i), (i.__data__ = u))5629 : (g[r] = H(u)),5630 y.set(d, !0);5631 for (r = -1; ++r < o; ) r in m && y.get(m[r]) !== !0 && (v[r] = n[r]);5632 } else {5633 for (r = -1; ++r < h; )5634 (i = n[r]),5635 (u = e[r]),5636 i ? ((i.__data__ = u), (p[r] = i)) : (g[r] = H(u));5637 for (; s > r; ++r) g[r] = H(e[r]);5638 for (; o > r; ++r) v[r] = n[r];5639 }5640 (g.update = p),5641 (g.parentNode = p.parentNode = v.parentNode = n.parentNode),5642 a.push(g),5643 l.push(p),5644 f.push(v);5645 }5646 var r,5647 i,5648 u = -1,5649 o = this.length;5650 if (!arguments.length) {5651 for (n = new Array((o = (r = this[0]).length)); ++u < o; )5652 (i = r[u]) && (n[u] = i.__data__);5653 return n;5654 }5655 var a = Z([]),5656 l = E([]),5657 f = E([]);5658 if ("function" == typeof n)5659 for (; ++u < o; ) e((r = this[u]), n.call(r, r.parentNode.__data__, u));5660 else for (; ++u < o; ) e((r = this[u]), n);5661 return (5662 (l.enter = function () {5663 return a;5664 }),5665 (l.exit = function () {5666 return f;5667 }),5668 l5669 );5670 }),5671 (Co.datum = function (n) {5672 return arguments.length5673 ? this.property("__data__", n)5674 : this.property("__data__");5675 }),5676 (Co.filter = function (n) {5677 var t,5678 e,5679 r,5680 i = [];5681 "function" != typeof n && (n = O(n));5682 for (var u = 0, o = this.length; o > u; u++) {5683 i.push((t = [])), (t.parentNode = (e = this[u]).parentNode);5684 for (var a = 0, l = e.length; l > a; a++)5685 (r = e[a]) && n.call(r, r.__data__, a, u) && t.push(r);5686 }5687 return E(i);5688 }),5689 (Co.order = function () {5690 for (var n = -1, t = this.length; ++n < t; )5691 for (var e, r = this[n], i = r.length - 1, u = r[i]; --i >= 0; )5692 (e = r[i]) &&5693 (u && u !== e.nextSibling && u.parentNode.insertBefore(e, u),5694 (u = e));5695 return this;5696 }),5697 (Co.sort = function (n) {5698 n = I.apply(this, arguments);5699 for (var t = -1, e = this.length; ++t < e; ) this[t].sort(n);5700 return this.order();5701 }),5702 (Co.each = function (n) {5703 return Y(this, function (t, e, r) {5704 n.call(t, t.__data__, e, r);5705 });5706 }),5707 (Co.call = function (n) {5708 var t = co(arguments);5709 return n.apply((t[0] = this), t), this;5710 }),5711 (Co.empty = function () {5712 return !this.node();5713 }),5714 (Co.node = function () {5715 for (var n = 0, t = this.length; t > n; n++)5716 for (var e = this[n], r = 0, i = e.length; i > r; r++) {5717 var u = e[r];5718 if (u) return u;5719 }5720 return null;5721 }),5722 (Co.size = function () {5723 var n = 0;5724 return (5725 Y(this, function () {5726 ++n;5727 }),5728 n5729 );5730 });5731 var qo = [];5732 (ao.selection.enter = Z),5733 (ao.selection.enter.prototype = qo),5734 (qo.append = Co.append),5735 (qo.empty = Co.empty),5736 (qo.node = Co.node),5737 (qo.call = Co.call),5738 (qo.size = Co.size),5739 (qo.select = function (n) {5740 for (var t, e, r, i, u, o = [], a = -1, l = this.length; ++a < l; ) {5741 (r = (i = this[a]).update),5742 o.push((t = [])),5743 (t.parentNode = i.parentNode);5744 for (var c = -1, f = i.length; ++c < f; )5745 (u = i[c])5746 ? (t.push((r[c] = e = n.call(i.parentNode, u.__data__, c, a))),5747 (e.__data__ = u.__data__))5748 : t.push(null);5749 }5750 return E(o);5751 }),5752 (qo.insert = function (n, t) {5753 return arguments.length < 2 && (t = V(this)), Co.insert.call(this, n, t);5754 }),5755 (ao.select = function (t) {5756 var e;5757 return (5758 "string" == typeof t5759 ? ((e = [No(t, fo)]), (e.parentNode = fo.documentElement))5760 : ((e = [t]), (e.parentNode = n(t))),5761 E([e])5762 );5763 }),5764 (ao.selectAll = function (n) {5765 var t;5766 return (5767 "string" == typeof n5768 ? ((t = co(Eo(n, fo))), (t.parentNode = fo.documentElement))5769 : ((t = co(n)), (t.parentNode = null)),5770 E([t])5771 );5772 }),5773 (Co.on = function (n, t, e) {5774 var r = arguments.length;5775 if (3 > r) {5776 if ("string" != typeof n) {5777 2 > r && (t = !1);5778 for (e in n) this.each(X(e, n[e], t));5779 return this;5780 }5781 if (2 > r) return (r = this.node()["__on" + n]) && r._;5782 e = !1;5783 }5784 return this.each(X(n, t, e));5785 });5786 var To = ao.map({ mouseenter: "mouseover", mouseleave: "mouseout" });5787 fo &&5788 To.forEach(function (n) {5789 "on" + n in fo && To.remove(n);5790 });5791 var Ro,5792 Do = 0;5793 ao.mouse = function (n) {5794 return J(n, k());5795 };5796 var Po = this.navigator && /WebKit/.test(this.navigator.userAgent) ? -1 : 0;5797 (ao.touch = function (n, t, e) {5798 if ((arguments.length < 3 && ((e = t), (t = k().changedTouches)), t))5799 for (var r, i = 0, u = t.length; u > i; ++i)5800 if ((r = t[i]).identifier === e) return J(n, r);5801 }),5802 (ao.behavior.drag = function () {5803 function n() {5804 this.on("mousedown.drag", u).on("touchstart.drag", o);5805 }5806 function e(n, t, e, u, o) {5807 return function () {5808 function a() {5809 var n,5810 e,5811 r = t(h, v);5812 r &&5813 ((n = r[0] - M[0]),5814 (e = r[1] - M[1]),5815 (g |= n | e),5816 (M = r),5817 p({5818 type: "drag",5819 x: r[0] + c[0],5820 y: r[1] + c[1],5821 dx: n,5822 dy: e,5823 }));5824 }5825 function l() {5826 t(h, v) &&5827 (y.on(u + d, null).on(o + d, null), m(g), p({ type: "dragend" }));5828 }5829 var c,5830 f = this,5831 s = ao.event.target.correspondingElement || ao.event.target,5832 h = f.parentNode,5833 p = r.of(f, arguments),5834 g = 0,5835 v = n(),5836 d = ".drag" + (null == v ? "" : "-" + v),5837 y = ao5838 .select(e(s))5839 .on(u + d, a)5840 .on(o + d, l),5841 m = W(s),5842 M = t(h, v);5843 i5844 ? ((c = i.apply(f, arguments)), (c = [c.x - M[0], c.y - M[1]]))5845 : (c = [0, 0]),5846 p({ type: "dragstart" });5847 };5848 }5849 var r = N(n, "drag", "dragstart", "dragend"),5850 i = null,5851 u = e(b, ao.mouse, t, "mousemove", "mouseup"),5852 o = e(G, ao.touch, m, "touchmove", "touchend");5853 return (5854 (n.origin = function (t) {5855 return arguments.length ? ((i = t), n) : i;5856 }),5857 ao.rebind(n, r, "on")5858 );5859 }),5860 (ao.touches = function (n, t) {5861 return (5862 arguments.length < 2 && (t = k().touches),5863 t5864 ? co(t).map(function (t) {5865 var e = J(n, t);5866 return (e.identifier = t.identifier), e;5867 })5868 : []5869 );5870 });5871 var Uo = 1e-6,5872 jo = Uo * Uo,5873 Fo = Math.PI,5874 Ho = 2 * Fo,5875 Oo = Ho - Uo,5876 Io = Fo / 2,5877 Yo = Fo / 180,5878 Zo = 180 / Fo,5879 Vo = Math.SQRT2,5880 Xo = 2,5881 $o = 4;5882 (ao.interpolateZoom = function (n, t) {5883 var e,5884 r,5885 i = n[0],5886 u = n[1],5887 o = n[2],5888 a = t[0],5889 l = t[1],5890 c = t[2],5891 f = a - i,5892 s = l - u,5893 h = f * f + s * s;5894 if (jo > h)5895 (r = Math.log(c / o) / Vo),5896 (e = function (n) {5897 return [i + n * f, u + n * s, o * Math.exp(Vo * n * r)];5898 });5899 else {5900 var p = Math.sqrt(h),5901 g = (c * c - o * o + $o * h) / (2 * o * Xo * p),5902 v = (c * c - o * o - $o * h) / (2 * c * Xo * p),5903 d = Math.log(Math.sqrt(g * g + 1) - g),5904 y = Math.log(Math.sqrt(v * v + 1) - v);5905 (r = (y - d) / Vo),5906 (e = function (n) {5907 var t = n * r,5908 e = rn(d),5909 a = (o / (Xo * p)) * (e * un(Vo * t + d) - en(d));5910 return [i + a * f, u + a * s, (o * e) / rn(Vo * t + d)];5911 });5912 }5913 return (e.duration = 1e3 * r), e;5914 }),5915 (ao.behavior.zoom = function () {5916 function n(n) {5917 n.on(L, s)5918 .on(Wo + ".zoom", p)5919 .on("dblclick.zoom", g)5920 .on(R, h);5921 }5922 function e(n) {5923 return [(n[0] - k.x) / k.k, (n[1] - k.y) / k.k];5924 }5925 function r(n) {5926 return [n[0] * k.k + k.x, n[1] * k.k + k.y];5927 }5928 function i(n) {5929 k.k = Math.max(A[0], Math.min(A[1], n));5930 }5931 function u(n, t) {5932 (t = r(t)), (k.x += n[0] - t[0]), (k.y += n[1] - t[1]);5933 }5934 function o(t, e, r, o) {5935 (t.__chart__ = { x: k.x, y: k.y, k: k.k }),5936 i(Math.pow(2, o)),5937 u((d = e), r),5938 (t = ao.select(t)),5939 C > 0 && (t = t.transition().duration(C)),5940 t.call(n.event);5941 }5942 function a() {5943 b &&5944 b.domain(5945 x5946 .range()5947 .map(function (n) {5948 return (n - k.x) / k.k;5949 })5950 .map(x.invert)5951 ),5952 w &&5953 w.domain(5954 _.range()5955 .map(function (n) {5956 return (n - k.y) / k.k;5957 })5958 .map(_.invert)5959 );5960 }5961 function l(n) {5962 z++ || n({ type: "zoomstart" });5963 }5964 function c(n) {5965 a(), n({ type: "zoom", scale: k.k, translate: [k.x, k.y] });5966 }5967 function f(n) {5968 --z || (n({ type: "zoomend" }), (d = null));5969 }5970 function s() {5971 function n() {5972 (a = 1), u(ao.mouse(i), h), c(o);5973 }5974 function r() {5975 s.on(q, null).on(T, null), p(a), f(o);5976 }5977 var i = this,5978 o = D.of(i, arguments),5979 a = 0,5980 s = ao.select(t(i)).on(q, n).on(T, r),5981 h = e(ao.mouse(i)),5982 p = W(i);5983 Il.call(i), l(o);5984 }5985 function h() {5986 function n() {5987 var n = ao.touches(g);5988 return (5989 (p = k.k),5990 n.forEach(function (n) {5991 n.identifier in d && (d[n.identifier] = e(n));5992 }),5993 n5994 );5995 }5996 function t() {5997 var t = ao.event.target;5998 ao.select(t).on(x, r).on(b, a), _.push(t);5999 for (var e = ao.event.changedTouches, i = 0, u = e.length; u > i; ++i)6000 d[e[i].identifier] = null;6001 var l = n(),6002 c = Date.now();6003 if (1 === l.length) {6004 if (500 > c - M) {6005 var f = l[0];6006 o(6007 g,6008 f,6009 d[f.identifier],6010 Math.floor(Math.log(k.k) / Math.LN2) + 16011 ),6012 S();6013 }6014 M = c;6015 } else if (l.length > 1) {6016 var f = l[0],6017 s = l[1],6018 h = f[0] - s[0],6019 p = f[1] - s[1];6020 y = h * h + p * p;6021 }6022 }6023 function r() {6024 var n,6025 t,6026 e,6027 r,6028 o = ao.touches(g);6029 Il.call(g);6030 for (var a = 0, l = o.length; l > a; ++a, r = null)6031 if (((e = o[a]), (r = d[e.identifier]))) {6032 if (t) break;6033 (n = e), (t = r);6034 }6035 if (r) {6036 var f = (f = e[0] - n[0]) * f + (f = e[1] - n[1]) * f,6037 s = y && Math.sqrt(f / y);6038 (n = [(n[0] + e[0]) / 2, (n[1] + e[1]) / 2]),6039 (t = [(t[0] + r[0]) / 2, (t[1] + r[1]) / 2]),6040 i(s * p);6041 }6042 (M = null), u(n, t), c(v);6043 }6044 function a() {6045 if (ao.event.touches.length) {6046 for (6047 var t = ao.event.changedTouches, e = 0, r = t.length;6048 r > e;6049 ++e6050 )6051 delete d[t[e].identifier];6052 for (var i in d) return void n();6053 }6054 ao.selectAll(_).on(m, null), w.on(L, s).on(R, h), N(), f(v);6055 }6056 var p,6057 g = this,6058 v = D.of(g, arguments),6059 d = {},6060 y = 0,6061 m = ".zoom-" + ao.event.changedTouches[0].identifier,6062 x = "touchmove" + m,6063 b = "touchend" + m,6064 _ = [],6065 w = ao.select(g),6066 N = W(g);6067 t(), l(v), w.on(L, null).on(R, t);6068 }6069 function p() {6070 var n = D.of(this, arguments);6071 m6072 ? clearTimeout(m)6073 : (Il.call(this), (v = e((d = y || ao.mouse(this)))), l(n)),6074 (m = setTimeout(function () {6075 (m = null), f(n);6076 }, 50)),6077 S(),6078 i(Math.pow(2, 0.002 * Bo()) * k.k),6079 u(d, v),6080 c(n);6081 }6082 function g() {6083 var n = ao.mouse(this),6084 t = Math.log(k.k) / Math.LN2;6085 o(6086 this,6087 n,6088 e(n),6089 ao.event.shiftKey ? Math.ceil(t) - 1 : Math.floor(t) + 16090 );6091 }6092 var v,6093 d,6094 y,6095 m,6096 M,6097 x,6098 b,6099 _,6100 w,6101 k = { x: 0, y: 0, k: 1 },6102 E = [960, 500],6103 A = Jo,6104 C = 250,6105 z = 0,6106 L = "mousedown.zoom",6107 q = "mousemove.zoom",6108 T = "mouseup.zoom",6109 R = "touchstart.zoom",6110 D = N(n, "zoomstart", "zoom", "zoomend");6111 return (6112 Wo ||6113 (Wo =6114 "onwheel" in fo6115 ? ((Bo = function () {6116 return -ao.event.deltaY * (ao.event.deltaMode ? 120 : 1);6117 }),6118 "wheel")6119 : "onmousewheel" in fo6120 ? ((Bo = function () {6121 return ao.event.wheelDelta;6122 }),6123 "mousewheel")6124 : ((Bo = function () {6125 return -ao.event.detail;6126 }),6127 "MozMousePixelScroll")),6128 (n.event = function (n) {6129 n.each(function () {6130 var n = D.of(this, arguments),6131 t = k;6132 Hl6133 ? ao6134 .select(this)6135 .transition()6136 .each("start.zoom", function () {6137 (k = this.__chart__ || { x: 0, y: 0, k: 1 }), l(n);6138 })6139 .tween("zoom:zoom", function () {6140 var e = E[0],6141 r = E[1],6142 i = d ? d[0] : e / 2,6143 u = d ? d[1] : r / 2,6144 o = ao.interpolateZoom(6145 [(i - k.x) / k.k, (u - k.y) / k.k, e / k.k],6146 [(i - t.x) / t.k, (u - t.y) / t.k, e / t.k]6147 );6148 return function (t) {6149 var r = o(t),6150 a = e / r[2];6151 (this.__chart__ = k = {6152 x: i - r[0] * a,6153 y: u - r[1] * a,6154 k: a,6155 }),6156 c(n);6157 };6158 })6159 .each("interrupt.zoom", function () {6160 f(n);6161 })6162 .each("end.zoom", function () {6163 f(n);6164 })6165 : ((this.__chart__ = k), l(n), c(n), f(n));6166 });6167 }),6168 (n.translate = function (t) {6169 return arguments.length6170 ? ((k = { x: +t[0], y: +t[1], k: k.k }), a(), n)6171 : [k.x, k.y];6172 }),6173 (n.scale = function (t) {6174 return arguments.length6175 ? ((k = { x: k.x, y: k.y, k: null }), i(+t), a(), n)6176 : k.k;6177 }),6178 (n.scaleExtent = function (t) {6179 return arguments.length6180 ? ((A = null == t ? Jo : [+t[0], +t[1]]), n)6181 : A;6182 }),6183 (n.center = function (t) {6184 return arguments.length ? ((y = t && [+t[0], +t[1]]), n) : y;6185 }),6186 (n.size = function (t) {6187 return arguments.length ? ((E = t && [+t[0], +t[1]]), n) : E;6188 }),6189 (n.duration = function (t) {6190 return arguments.length ? ((C = +t), n) : C;6191 }),6192 (n.x = function (t) {6193 return arguments.length6194 ? ((b = t), (x = t.copy()), (k = { x: 0, y: 0, k: 1 }), n)6195 : b;6196 }),6197 (n.y = function (t) {6198 return arguments.length6199 ? ((w = t), (_ = t.copy()), (k = { x: 0, y: 0, k: 1 }), n)6200 : w;6201 }),6202 ao.rebind(n, D, "on")6203 );6204 });6205 var Bo,6206 Wo,6207 Jo = [0, 1 / 0];6208 (ao.color = an),6209 (an.prototype.toString = function () {6210 return this.rgb() + "";6211 }),6212 (ao.hsl = ln);6213 var Go = (ln.prototype = new an());6214 (Go.brighter = function (n) {6215 return (6216 (n = Math.pow(0.7, arguments.length ? n : 1)),6217 new ln(this.h, this.s, this.l / n)6218 );6219 }),6220 (Go.darker = function (n) {6221 return (6222 (n = Math.pow(0.7, arguments.length ? n : 1)),6223 new ln(this.h, this.s, n * this.l)6224 );6225 }),6226 (Go.rgb = function () {6227 return cn(this.h, this.s, this.l);6228