Template:AFCM-Egypt/JSvendor2

/**

  • plotly.js (basic - minified) v1.31.2
  • Copyright 2012-2017, Plotly, Inc.
  • All rights reserved.
  • Licensed under the MIT license
  • /

!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Plotly=t()}}(function(){var t;return function t(e,r,n){function a(o,l){if(!r[o]){if(!e[o]){var s="function"==typeof require&&require;if(!l&&s)return s(o,!0);if(i)return i(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[o]={exports:{}};e[o][0].call(u.exports,function(t){var r=e[o][1][t];return a(r||t)},u,u.exports,t,e,r,n)}return r[o].exports}for(var i="function"==typeof require&&require,o=0;o<n.length;o++)a(n[o]);return a}({1:[function(t,e,r){"use strict";var n=t("../src/lib"),a={"X,X div":"font-family:'Open Sans', verdana, arial, sans-serif;margin:0;padding:0;","X input,X button":"font-family:'Open Sans', verdana, arial, sans-serif;","X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .modebar":"position:absolute;top:2px;right:2px;z-index:1001;background:rgba(255,255,255,0.7);","X .modebar--hover":"opacity:0;-webkit-transition:opacity 0.3s ease 0s;-moz-transition:opacity 0.3s ease 0s;-ms-transition:opacity 0.3s ease 0s;-o-transition:opacity 0.3s ease 0s;transition:opacity 0.3s ease 0s;","X:hover .modebar--hover":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;margin-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group:first-child":"margin-left:0px;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar-btn path":"fill:rgba(0,31,95,0.3);","X .modebar-btn.active path,X .modebar-btn:hover path":"fill:rgba(0,22,72,0.5);","X .modebar-btn.modebar-btn--logo":"padding:3px 1px;","X .modebar-btn.modebar-btn--logo path":"fill:#447adb !important;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":"content:;position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;","X [data-title]:after":"content:attr(data-title);background:#69738a;color:white;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .select-outline":"fill:none;stroke-width:1;shape-rendering:crispEdges;","X .select-outline-1":"stroke:white;","X .select-outline-2":"stroke:black;stroke-dasharray:2px 2px;",Y:"font-family:'Open Sans';position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;","Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,0.9);color:#fff;padding:10px;","Y .notifier-close":"color:#fff;opacity:0.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var i in a){var o=i.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");n.addStyleRule(o,a[i])}},{"../src/lib":149}],2:[function(t,e,r){"use strict";e.exports={undo:{width:857.1,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",ascent:850,descent:-150},home:{width:928.6,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",ascent:850,descent:-150},"camera-retro":{width:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",ascent:850,descent:-150},zoombox:{width:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",ascent:850,descent:-150},pan:{width:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",ascent:850,descent:-150},zoom_plus:{width:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",ascent:850,descent:-150},zoom_minus:{width:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",ascent:850,descent:-150},autoscale:{width:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",ascent:850,descent:-150},tooltip_basic:{width:1500,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",ascent:850,descent:-150},tooltip_compare:{width:1125,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",ascent:850,descent:-150},plotlylogo:{width:1542,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",ascent:850,descent:-150},"z-axis":{width:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",ascent:850,descent:-150},"3d_rotate":{width:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",ascent:850,descent:-150},camera:{width:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",ascent:850,descent:-150},movie:{width:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",ascent:850,descent:-150},question:{width:857.1,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",ascent:850,descent:-150},disk:{width:857.1,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",ascent:850,descent:-150},lasso:{width:1031,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",ascent:850,descent:-150},selectbox:{width:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",ascent:850,descent:-150},spikeline:{width:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",ascent:850,descent:-150}}},{}],3:[function(t,e,r){"use strict";e.exports=t("../src/traces/bar")},{"../src/traces/bar":239}],4:[function(t,e,r){"use strict";e.exports=t("../src/core")},{"../src/core":136}],5:[function(t,e,r){"use strict";var n=t("./core");n.register([t("./bar"),t("./pie")]),e.exports=n},{"./bar":3,"./core":4,"./pie":6}],6:[function(t,e,r){"use strict";e.exports=t("../src/traces/pie")},{"../src/traces/pie":253}],7:[function(e,r,n){!function(){function e(t){return t&&(t.ownerDocument||t.document||t).documentElement}function n(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}function a(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function i(t){return null===t?NaN:+t}function o(t){return!isNaN(t)}function l(t){return{left:function(e,r,n,a){for(arguments.length<3&&(n=0),arguments.length<4&&(a=e.length);n<a;){var i=n+a>>>1;t(e[i],r)<0?n=i+1:a=i}return n},right:function(e,r,n,a){for(arguments.length<3&&(n=0),arguments.length<4&&(a=e.length);n<a;){var i=n+a>>>1;t(e[i],r)>0?a=i:n=i+1}return n}}}function s(t){return t.length}function c(t){for(var e=1;t*e%1;)e*=10;return e}function u(t,e){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],enumerable:!1})}function f(){this._=Object.create(null)}function d(t){return(t+="")===_o||t[0]===wo?wo+t:t}function p(t){return(t+="")[0]===wo?t.slice(1):t}function h(t){return d(t)in this._}function g(t){return(t=d(t))in this._&&delete this._[t]}function v(){var t=[];for(var e in this._)t.push(p(e));return t}function y(){var t=0;for(var e in this._)++t;return t}function m(){for(var t in this._)return!1;return!0}function x(){this._=Object.create(null)}function b(t){return t}function _(t,e,r){return function(){var n=r.apply(e,arguments);return n===e?t:n}}function w(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var r=0,n=ko.length;r<n;++r){var a=ko[r]+e;if(a in t)return a}}function k(){}function M(){}function A(t){function e(){for(var e,n=r,a=-1,i=n.length;++a<i;)(e=n[a].on)&&e.apply(this,arguments);return t}var r=[],n=new f;return e.on=function(e,a){var i,o=n.get(e);return arguments.length<2?o&&o.on:(o&&(o.on=null,r=r.slice(0,i=r.indexOf(o)).concat(r.slice(i+1)),n.remove(e)),a&&r.push(n.set(e,{on:a})),t)},e}function T(){co.event.preventDefault()}function L(){for(var t,e=co.event;t=e.sourceEvent;)e=t;return e}function C(t){for(var e=new M,r=0,n=arguments.length;++r<n;)e[arguments[r]]=A(e);return e.of=function(r,n){return function(a){try{var i=a.sourceEvent=co.event;a.target=t,co.event=a,e[a.type].apply(r,n)}finally{co.event=i}}},e}function S(t){return Ao(t,So),t}function O(t){return"function"==typeof t?t:function(){return To(t,this)}}function z(t){return"function"==typeof t?t:function(){return Lo(t,this)}}function D(t,e){function r(){this.removeAttribute(t)}function n(){this.removeAttributeNS(t.space,t.local)}function a(){this.setAttribute(t,e)}function i(){this.setAttributeNS(t.space,t.local,e)}function o(){var r=e.apply(this,arguments);null==r?this.removeAttribute(t):this.setAttribute(t,r)}function l(){var r=e.apply(this,arguments);null==r?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}return t=co.ns.qualify(t),null==e?t.local?n:r:"function"==typeof e?t.local?l:o:t.local?i:a}function P(t){return t.trim().replace(/\s+/g," ")}function E(t){return new RegExp("(?:^|\\s+)"+co.requote(t)+"(?:\\s+|$)","g")}function N(t){return(t+"").trim().split(/^|\s+/)}function I(t,e){function r(){for(var r=-1;++r<a;)t[r](this,e)}function n(){for(var r=-1,n=e.apply(this,arguments);++r<a;)t[r](this,n)}t=N(t).map(R);var a=t.length;return"function"==typeof e?n:r}function R(t){var e=E(t);return function(r,n){if(a=r.classList)return n?a.add(t):a.remove(t);var a=r.getAttribute("class")||"";n?(e.lastIndex=0,e.test(a)||r.setAttribute("class",P(a+" "+t))):r.setAttribute("class",P(a.replace(e," ")))}}function F(t,e,r){function n(){this.style.removeProperty(t)}function a(){this.style.setProperty(t,e,r)}function i(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,r)}return null==e?n:"function"==typeof e?i:a}function j(t,e){function r(){delete this[t]}function n(){this[t]=e}function a(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}return null==e?r:"function"==typeof e?a:n}function B(t){function e(){var e=this.ownerDocument,r=this.namespaceURI;return r===Oo&&e.documentElement.namespaceURI===Oo?e.createElement(t):e.createElementNS(r,t)}function r(){return this.ownerDocument.createElementNS(t.space,t.local)}return"function"==typeof t?t:(t=co.ns.qualify(t)).local?r:e}function q(){var t=this.parentNode;t&&t.removeChild(this)}function H(t){return{__data__:t}}function V(t){return function(){return Co(this,t)}}function U(t){return arguments.length||(t=a),function(e,r){return e&&r?t(e.__data__,r.__data__):!e-!r}}function G(t,e){for(var r=0,n=t.length;r<n;r++)for(var a,i=t[r],o=0,l=i.length;o<l;o++)(a=i[o])&&e(a,o,r);return t}function X(t){return Ao(t,Do),t}function Y(t){var e,r;return function(n,a,i){var o,l=t[i].update,s=l.length;for(i!=r&&(r=i,e=0),a>=e&&(e=a+1);!(o=l[e])&&++e<s;);return o}}function Z(t,e,r){function n(){var e=this[o];e&&(this.removeEventListener(t,e,e.$),delete this[o])}function a(){var a=s(e,fo(arguments));n.call(this),this.addEventListener(t,this[o]=a,a.$=r),a._=e}function i(){var e,r=new RegExp("^__on([^.]+)"+co.requote(t)+"$");for(var n in this)if(e=n.match(r)){var a=this[n];this.removeEventListener(e[1],a,a.$),delete this[n]}}var o="__on"+t,l=t.indexOf("."),s=W;l>0&&(t=t.slice(0,l));var c=Po.get(t);return c&&(t=c,s=Q),l?e?a:n:e?k:i}function W(t,e){return function(r){var n=co.event;co.event=r,e[0]=this.__data__;try{t.apply(this,e)}finally{co.event=n}}}function Q(t,e){var r=W(t,e);return function(t){var e=this,n=t.relatedTarget;n&&(n===e||8&n.compareDocumentPosition(e))||r.call(e,t)}}function $(t){var r=".dragsuppress-"+ ++No,a="click"+r,i=co.select(n(t)).on("touchmove"+r,T).on("dragstart"+r,T).on("selectstart"+r,T);if(null==Eo&&(Eo=!("onselectstart"in t)&&w(t.style,"userSelect")),Eo){var o=e(t).style,l=o[Eo];o[Eo]="none"}return function(t){if(i.on(r,null),Eo&&(o[Eo]=l),t){var e=function(){i.on(a,null)};i.on(a,function(){T(),e()},!0),setTimeout(e,0)}}}function J(t,e){e.changedTouches&&(e=e.changedTouches[0]);var r=t.ownerSVGElement||t;if(r.createSVGPoint){var a=r.createSVGPoint();if(Io<0){var i=n(t);if(i.scrollX||i.scrollY){r=co.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var o=r[0][0].getScreenCTM();Io=!(o.f||o.e),r.remove()}}return Io?(a.x=e.pageX,a.y=e.pageY):(a.x=e.clientX,a.y=e.clientY),a=a.matrixTransform(t.getScreenCTM().inverse()),[a.x,a.y]}var l=t.getBoundingClientRect();return[e.clientX-l.left-t.clientLeft,e.clientY-l.top-t.clientTop]}function K(){return co.event.changedTouches[0].identifier}function tt(t){return t>0?1:t<0?-1:0}function et(t,e,r){return(e[0]-t[0])*(r[1]-t[1])-(e[1]-t[1])*(r[0]-t[0])}function rt(t){return t>1?0:t<-1?jo:Math.acos(t)}function nt(t){return t>1?Ho:t<-1?-Ho:Math.asin(t)}function at(t){return((t=Math.exp(t))-1/t)/2}function it(t){return((t=Math.exp(t))+1/t)/2}function ot(t){return((t=Math.exp(2*t))-1)/(t+1)}function lt(t){return(t=Math.sin(t/2))*t}function st(){}function ct(t,e,r){return this instanceof ct?(this.h=+t,this.s=+e,void(this.l=+r)):arguments.length<2?t instanceof ct?new ct(t.h,t.s,t.l):kt(""+t,Mt,ct):new ct(t,e,r)}function ut(t,e,r){function n(t){return t>360?t-=360:t<0&&(t+=360),t<60?i+(o-i)*t/60:t<180?o:t<240?i+(o-i)*(240-t)/60:i}function a(t){return Math.round(255*n(t))}var i,o;return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)?0:e<0?0:e>1?1:e,r=r<0?0:r>1?1:r,o=r<=.5?r*(1+e):r+e-r*e,i=2*r-o,new xt(a(t+120),a(t),a(t-120))}function ft(t,e,r){return this instanceof ft?(this.h=+t,this.c=+e,void(this.l=+r)):arguments.length<2?t instanceof ft?new ft(t.h,t.c,t.l):t instanceof pt?gt(t.l,t.a,t.b):gt((t=At((t=co.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new ft(t,e,r)}function dt(t,e,r){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new pt(r,Math.cos(t*=Vo)*e,Math.sin(t)*e)}function pt(t,e,r){return this instanceof pt?(this.l=+t,this.a=+e,void(this.b=+r)):arguments.length<2?t instanceof pt?new pt(t.l,t.a,t.b):t instanceof ft?dt(t.h,t.c,t.l):At((t=xt(t)).r,t.g,t.b):new pt(t,e,r)}function ht(t,e,r){var n=(t+16)/116,a=n+e/500,i=n-r/200;return a=vt(a)*Jo,n=vt(n)*Ko,i=vt(i)*tl,new xt(mt(3.2404542*a-1.5371385*n-.4985314*i),mt(-.969266*a+1.8760108*n+.041556*i),mt(.0556434*a-.2040259*n+1.0572252*i))}function gt(t,e,r){return t>0?new ft(Math.atan2(r,e)*Uo,Math.sqrt(e*e+r*r),t):new ft(NaN,NaN,t)}function vt(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function yt(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function mt(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function xt(t,e,r){return this instanceof xt?(this.r=~~t,this.g=~~e,void(this.b=~~r)):arguments.length<2?t instanceof xt?new xt(t.r,t.g,t.b):kt(""+t,xt,ut):new xt(t,e,r)}function bt(t){return new xt(t>>16,t>>8&255,255&t)}function _t(t){return bt(t)+""}function wt(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function kt(t,e,r){var n,a,i,o=0,l=0,s=0;if(n=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(a=n[2].split(","),n[1]){case"hsl":return r(parseFloat(a[0]),parseFloat(a[1])/100,parseFloat(a[2])/100);case"rgb":return e(Lt(a[0]),Lt(a[1]),Lt(a[2]))}return(i=nl.get(t))?e(i.r,i.g,i.b):(null==t||"#"!==t.charAt(0)||isNaN(i=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&i)>>4,o|=o>>4,l=240&i,l|=l>>4,s=15&i,s|=s<<4):7===t.length&&(o=(16711680&i)>>16,l=(65280&i)>>8,s=255&i)),e(o,l,s))}function Mt(t,e,r){var n,a,i=Math.min(t/=255,e/=255,r/=255),o=Math.max(t,e,r),l=o-i,s=(o+i)/2;return l?(a=s<.5?l/(o+i):l/(2-o-i),n=t==o?(e-r)/l+(e<r?6:0):e==o?(r-t)/l+2:(t-e)/l+4,n*=60):(n=NaN,a=s>0&&s<1?0:n),new ct(n,a,s)}function At(t,e,r){t=Tt(t),e=Tt(e),r=Tt(r);var n=yt((.4124564*t+.3575761*e+.1804375*r)/Jo),a=yt((.2126729*t+.7151522*e+.072175*r)/Ko);return pt(116*a-16,500*(n-a),200*(a-yt((.0193339*t+.119192*e+.9503041*r)/tl)))}function Tt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Lt(t){var e=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*e):e}function Ct(t){return"function"==typeof t?t:function(){return t}}function St(t){return function(e,r,n){return 2===arguments.length&&"function"==typeof r&&(n=r,r=null),Ot(e,r,t,n)}}function Ot(t,e,r,n){function a(){var t,e=s.status;if(!e&&Dt(s)||e>=200&&e<300||304===e){try{t=r.call(i,s)}catch(t){return void o.error.call(i,t)}o.load.call(i,t)}else o.error.call(i,s)}var i={},o=co.dispatch("beforesend","progress","load","error"),l={},s=new XMLHttpRequest,c=null;return!this.XDomainRequest||"withCredentials"in s||!/^(http(s)?:)?\/\//.test(t)||(s=new XDomainRequest),"onload"in s?s.onload=s.onerror=a:s.onreadystatechange=function(){s.readyState>3&&a()},s.onprogress=function(t){var e=co.event;co.event=t;try{o.progress.call(i,s)}finally{co.event=e}},i.header=function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?l[t]:(null==e?delete l[t]:l[t]=e+"",i)},i.mimeType=function(t){return arguments.length?(e=null==t?null:t+"",i):e},i.responseType=function(t){return arguments.length?(c=t,i):c},i.response=function(t){return r=t,i},["get","post"].forEach(function(t){i[t]=function(){return i.send.apply(i,[t].concat(fo(arguments)))}}),i.send=function(r,n,a){if(2===arguments.length&&"function"==typeof n&&(a=n,n=null),s.open(r,t,!0),null==e||"accept"in l||(l.accept=e+",*/*"),s.setRequestHeader)for(var u in l)s.setRequestHeader(u,l[u]);return null!=e&&s.overrideMimeType&&s.overrideMimeType(e),null!=c&&(s.responseType=c),null!=a&&i.on("error",a).on("load",function(t){a(null,t)}),o.beforesend.call(i,s),s.send(null==n?null:n),i},i.abort=function(){return s.abort(),i},co.rebind(i,o,"on"),null==n?i:i.get(zt(n))}function zt(t){return 1===t.length?function(e,r){t(null==e?r:null)}:t}function Dt(t){var e=t.responseType;return e&&"text"!==e?t.response:t.responseText}function Pt(t,e,r){var n=arguments.length;n<2&&(e=0),n<3&&(r=Date.now());var a=r+e,i={c:t,t:a,n:null};return il?il.n=i:al=i,il=i,ol||(ll=clearTimeout(ll),ol=1,sl(Et)),i}function Et(){var t=Nt(),e=It()-t;e>24?(isFinite(e)&&(clearTimeout(ll),ll=setTimeout(Et,e)),ol=0):(ol=1,sl(Et))}function Nt(){for(var t=Date.now(),e=al;e;)t>=e.t&&e.c(t-e.t)&&(e.c=null),e=e.n;return t}function It(){for(var t,e=al,r=1/0;e;)e.c?(e.t<r&&(r=e.t),e=(t=e).n):e=t?t.n=e.n:al=e.n;return il=t,r}function Rt(t,e){return e-(t?Math.ceil(Math.log(t)/Math.LN10):1)}function Ft(t,e){var r=Math.pow(10,3*bo(8-e));return{scale:e>8?function(t){return t/r}:function(t){return t*r},symbol:t}}function jt(t){var e=t.decimal,r=t.thousands,n=t.grouping,a=t.currency,i=n&&r?function(t,e){for(var a=t.length,i=[],o=0,l=n[0],s=0;a>0&&l>0&&(s+l+1>e&&(l=Math.max(1,e-s)),i.push(t.substring(a-=l,a+l)),!((s+=l+1)>e));)l=n[o=(o+1)%n.length];return i.reverse().join(r)}:b;return function(t){var r=ul.exec(t),n=r[1]||" ",o=r[2]||">",l=r[3]||"-",s=r[4]||"",c=r[5],u=+r[6],f=r[7],d=r[8],p=r[9],h=1,g="",v="",y=!1,m=!0;switch(d&&(d=+d.substring(1)),(c||"0"===n&&"="===o)&&(c=n="0",o="="),p){case"n":f=!0,p="g";break;case"%":h=100,v="%",p="f";break;case"p":h=100,v="%",p="r";break;case"b":case"o":case"x":case"X":"#"===s&&(g="0"+p.toLowerCase());case"c":m=!1;case"d":y=!0,d=0;break;case"s":h=-1,p="r"}"$"===s&&(g=a[0],v=a[1]),"r"!=p||d||(p="g"),null!=d&&("g"==p?d=Math.max(1,Math.min(21,d)):"e"!=p&&"f"!=p||(d=Math.max(0,Math.min(20,d)))),p=fl.get(p)||Bt;var x=c&&f;return function(t){var r=v;if(y&&t%1)return"";var a=t<0||0===t&&1/t<0?(t=-t,"-"):"-"===l?"":l;if(h<0){var s=co.formatPrefix(t,d);t=s.scale(t),r=s.symbol+v}else t*=h;t=p(t,d);var b,_,w=t.lastIndexOf(".");if(w<0){var k=m?t.lastIndexOf("e"):-1;k<0?(b=t,_=""):(b=t.substring(0,k),_=t.substring(k))}else b=t.substring(0,w),_=e+t.substring(w+1);!c&&f&&(b=i(b,1/0));var M=g.length+b.length+_.length+(x?0:a.length),A=M<u?new Array(M=u-M+1).join(n):"";return x&&(b=i(A+b,A.length?u-_.length:1/0)),a+=g,t=b+_,("<"===o?a+t+A:">"===o?A+a+t:"^"===o?A.substring(0,M>>=1)+a+t+A.substring(M):a+(x?t:A+t))+r}}}function Bt(t){return t+""}function qt(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Ht(t,e,r){function n(e){var r=t(e),n=i(r,1);return e-r<n-e?r:n}function a(r){return e(r=t(new pl(r-1)),1),r}function i(t,r){return e(t=new pl(+t),r),t}function o(t,n,i){var o=a(t),l=[];if(i>1)for(;o<n;)r(o)%i||l.push(new Date(+o)),e(o,1);else for(;o<n;)l.push(new Date(+o)),e(o,1);return l}function l(t,e,r){try{pl=qt;var n=new qt;return n._=t,o(n,e,r)}finally{pl=Date}}t.floor=t,t.round=n,t.ceil=a,t.offset=i,t.range=o;var s=t.utc=Vt(t);return s.floor=s,s.round=Vt(n),s.ceil=Vt(a),s.offset=Vt(i),s.range=l,t}function Vt(t){return function(e,r){try{pl=qt;var n=new qt;return n._=e,t(n,r)._}finally{pl=Date}}}function Ut(t){function e(t){function e(e){for(var r,a,i,o=[],l=-1,s=0;++l<n;)37===t.charCodeAt(l)&&(o.push(t.slice(s,l)),null!=(a=gl[r=t.charAt(++l)])&&(r=t.charAt(++l)),(i=C[r])&&(r=i(e,null==a?"e"===r?" ":"0":a)),o.push(r),s=l+1);return o.push(t.slice(s,l)),o.join("")}var n=t.length;return e.parse=function(e){var n={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null};if(r(n,t,e,0)!=e.length)return null;"p"in n&&(n.H=n.H%12+12*n.p);var a=null!=n.Z&&pl!==qt,i=new(a?qt:pl);return"j"in n?i.setFullYear(n.y,0,n.j):"W"in n||"U"in n?("w"in n||(n.w="W"in n?1:0),i.setFullYear(n.y,0,1),i.setFullYear(n.y,0,"W"in n?(n.w+6)%7+7*n.W-(i.getDay()+5)%7:n.w+7*n.U-(i.getDay()+6)%7)):i.setFullYear(n.y,n.m,n.d),i.setHours(n.H+(n.Z/100|0),n.M+n.Z%100,n.S,n.L),a?i._:i},e.toString=function(){return t},e}function r(t,e,r,n){for(var a,i,o,l=0,s=e.length,c=r.length;l<s;){if(n>=c)return-1;if(37===(a=e.charCodeAt(l++))){if(o=e.charAt(l++),!(i=S[o in gl?e.charAt(l++):o])||(n=i(t,r,n))<0)return-1}else if(a!=r.charCodeAt(n++))return-1}return n}function n(t,e,r){w.lastIndex=0;var n=w.exec(e.slice(r));return n?(t.w=k.get(n[0].toLowerCase()),r+n[0].length):-1}function a(t,e,r){b.lastIndex=0;var n=b.exec(e.slice(r));return n?(t.w=_.get(n[0].toLowerCase()),r+n[0].length):-1}function i(t,e,r){T.lastIndex=0;var n=T.exec(e.slice(r));return n?(t.m=L.get(n[0].toLowerCase()),r+n[0].length):-1}function o(t,e,r){M.lastIndex=0;var n=M.exec(e.slice(r));return n?(t.m=A.get(n[0].toLowerCase()),r+n[0].length):-1}function l(t,e,n){return r(t,C.c.toString(),e,n)}function s(t,e,n){return r(t,C.x.toString(),e,n)}function c(t,e,n){return r(t,C.X.toString(),e,n)}function u(t,e,r){var n=x.get(e.slice(r,r+=2).toLowerCase());return null==n?-1:(t.p=n,r)}var f=t.dateTime,d=t.date,p=t.time,h=t.periods,g=t.days,v=t.shortDays,y=t.months,m=t.shortMonths;e.utc=function(t){function r(t){try{pl=qt;var e=new pl;return e._=t,n(e)}finally{pl=Date}}var n=e(t);return r.parse=function(t){try{pl=qt;var e=n.parse(t);return e&&e._}finally{pl=Date}},r.toString=n.toString,r},e.multi=e.utc.multi=ue;var x=co.map(),b=Xt(g),_=Yt(g),w=Xt(v),k=Yt(v),M=Xt(y),A=Yt(y),T=Xt(m),L=Yt(m);h.forEach(function(t,e){x.set(t.toLowerCase(),e)});var C={a:function(t){return v[t.getDay()]},A:function(t){return g[t.getDay()]},b:function(t){return m[t.getMonth()]},B:function(t){return y[t.getMonth()]},c:e(f),d:function(t,e){return Gt(t.getDate(),e,2)},e:function(t,e){return Gt(t.getDate(),e,2)},H:function(t,e){return Gt(t.getHours(),e,2)},I:function(t,e){return Gt(t.getHours()%12||12,e,2)},j:function(t,e){return Gt(1+dl.dayOfYear(t),e,3)},L:function(t,e){return Gt(t.getMilliseconds(),e,3)},m:function(t,e){return Gt(t.getMonth()+1,e,2)},M:function(t,e){return Gt(t.getMinutes(),e,2)},p:function(t){return h[+(t.getHours()>=12)]},S:function(t,e){return Gt(t.getSeconds(),e,2)},U:function(t,e){return Gt(dl.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Gt(dl.mondayOfYear(t),e,2)},x:e(d),X:e(p),y:function(t,e){return Gt(t.getFullYear()%100,e,2)},Y:function(t,e){return Gt(t.getFullYear()%1e4,e,4)},Z:se,"%":function(){return"%"}},S={a:n,A:a,b:i,B:o,c:l,d:re,e:re,H:ae,I:ae,j:ne,L:le,m:ee,M:ie,p:u,S:oe,U:Wt,w:Zt,W:Qt,x:s,X:c,y:Jt,Y:$t,Z:Kt,"%":ce};return e}function Gt(t,e,r){var n=t<0?"-":"",a=(n?-t:t)+"",i=a.length;return n+(i<r?new Array(r-i+1).join(e)+a:a)}function Xt(t){return new RegExp("^(?:"+t.map(co.requote).join("|")+")","i")}function Yt(t){for(var e=new f,r=-1,n=t.length;++r<n;)e.set(t[r].toLowerCase(),r);return e}function Zt(t,e,r){vl.lastIndex=0;var n=vl.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function Wt(t,e,r){vl.lastIndex=0;var n=vl.exec(e.slice(r));return n?(t.U=+n[0],r+n[0].length):-1}function Qt(t,e,r){vl.lastIndex=0;var n=vl.exec(e.slice(r));return n?(t.W=+n[0],r+n[0].length):-1}function $t(t,e,r){vl.lastIndex=0;var n=vl.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Jt(t,e,r){vl.lastIndex=0;var n=vl.exec(e.slice(r,r+2));return n?(t.y=te(+n[0]),r+n[0].length):-1}function Kt(t,e,r){return/^[+-]\d{4}$/.test(e=e.slice(r,r+5))?(t.Z=-e,r+5):-1}function te(t){return t+(t>68?1900:2e3)}function ee(t,e,r){vl.lastIndex=0;var n=vl.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function re(t,e,r){vl.lastIndex=0;var n=vl.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function ne(t,e,r){vl.lastIndex=0;var n=vl.exec(e.slice(r,r+3));return n?(t.j=+n[0],r+n[0].length):-1}function ae(t,e,r){vl.lastIndex=0;var n=vl.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function ie(t,e,r){vl.lastIndex=0;var n=vl.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function oe(t,e,r){vl.lastIndex=0;var n=vl.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function le(t,e,r){vl.lastIndex=0;var n=vl.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function se(t){var e=t.getTimezoneOffset(),r=e>0?"-":"+",n=bo(e)/60|0,a=bo(e)%60;return r+Gt(n,"0",2)+Gt(a,"0",2)}function ce(t,e,r){yl.lastIndex=0;var n=yl.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function ue(t){ for(var e=t.length,r=-1;++r<e;)t[r][0]=this(t[r][0]);return function(e){for(var r=0,n=t[r];!n[1](e);)n=t[++r];return n[0](e)}}function fe(){}function de(t,e,r){var n=r.s=t+e,a=n-t,i=n-a;r.t=t-i+(e-a)}function pe(t,e){t&&_l.hasOwnProperty(t.type)&&_l[t.type](t,e)}function he(t,e,r){var n,a=-1,i=t.length-r;for(e.lineStart();++a<i;)n=t[a],e.point(n[0],n[1],n[2]);e.lineEnd()}function ge(t,e){var r=-1,n=t.length;for(e.polygonStart();++r<n;)he(t[r],e,1);e.polygonEnd()}function ve(){function t(t,e){t*=Vo,e=e*Vo/2+jo/4;var r=t-n,o=r>=0?1:-1,l=o*r,s=Math.cos(e),c=Math.sin(e),u=i*c,f=a*s+u*Math.cos(l),d=u*o*Math.sin(l);kl.add(Math.atan2(d,f)),n=t,a=s,i=c}var e,r,n,a,i;Ml.point=function(o,l){Ml.point=t,n=(e=o)*Vo,a=Math.cos(l=(r=l)*Vo/2+jo/4),i=Math.sin(l)},Ml.lineEnd=function(){t(e,r)}}function ye(t){var e=t[0],r=t[1],n=Math.cos(r);return[n*Math.cos(e),n*Math.sin(e),Math.sin(r)]}function me(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function xe(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function be(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function _e(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function we(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function ke(t){return[Math.atan2(t[1],t[0]),nt(t[2])]}function Me(t,e){return bo(t[0]-e[0])<Ro&&bo(t[1]-e[1])<Ro}function Ae(t,e){t*=Vo;var r=Math.cos(e*=Vo);Te(r*Math.cos(t),r*Math.sin(t),Math.sin(e))}function Te(t,e,r){++Al,Ll+=(t-Ll)/Al,Cl+=(e-Cl)/Al,Sl+=(r-Sl)/Al}function Le(){function t(t,a){t*=Vo;var i=Math.cos(a*=Vo),o=i*Math.cos(t),l=i*Math.sin(t),s=Math.sin(a),c=Math.atan2(Math.sqrt((c=r*s-n*l)*c+(c=n*o-e*s)*c+(c=e*l-r*o)*c),e*o+r*l+n*s);Tl+=c,Ol+=c*(e+(e=o)),zl+=c*(r+(r=l)),Dl+=c*(n+(n=s)),Te(e,r,n)}var e,r,n;Il.point=function(a,i){a*=Vo;var o=Math.cos(i*=Vo);e=o*Math.cos(a),r=o*Math.sin(a),n=Math.sin(i),Il.point=t,Te(e,r,n)}}function Ce(){Il.point=Ae}function Se(){function t(t,e){t*=Vo;var r=Math.cos(e*=Vo),o=r*Math.cos(t),l=r*Math.sin(t),s=Math.sin(e),c=a*s-i*l,u=i*o-n*s,f=n*l-a*o,d=Math.sqrt(c*c+u*u+f*f),p=n*o+a*l+i*s,h=d&&-rt(p)/d,g=Math.atan2(d,p);Pl+=h*c,El+=h*u,Nl+=h*f,Tl+=g,Ol+=g*(n+(n=o)),zl+=g*(a+(a=l)),Dl+=g*(i+(i=s)),Te(n,a,i)}var e,r,n,a,i;Il.point=function(o,l){e=o,r=l,Il.point=t,o*=Vo;var s=Math.cos(l*=Vo);n=s*Math.cos(o),a=s*Math.sin(o),i=Math.sin(l),Te(n,a,i)},Il.lineEnd=function(){t(e,r),Il.lineEnd=Ce,Il.point=Ae}}function Oe(t,e){function r(r,n){return r=t(r,n),e(r[0],r[1])}return t.invert&&e.invert&&(r.invert=function(r,n){return(r=e.invert(r,n))&&t.invert(r[0],r[1])}),r}function ze(){return!0}function De(t,e,r,n,a){var i=[],o=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,r=t[0],n=t[e];if(Me(r,n)){a.lineStart();for(var l=0;l<e;++l)a.point((r=t[l])[0],r[1]);return void a.lineEnd()}var s=new Ee(r,t,null,!0),c=new Ee(r,null,s,!1);s.o=c,i.push(s),o.push(c),s=new Ee(n,t,null,!1),c=new Ee(n,null,s,!0),s.o=c,i.push(s),o.push(c)}}),o.sort(e),Pe(i),Pe(o),i.length){for(var l=0,s=r,c=o.length;l<c;++l)o[l].e=s=!s;for(var u,f,d=i[0];;){for(var p=d,h=!0;p.v;)if((p=p.n)===d)return;u=p.z,a.lineStart();do{if(p.v=p.o.v=!0,p.e){if(h)for(var l=0,c=u.length;l<c;++l)a.point((f=u[l])[0],f[1]);else n(p.x,p.n.x,1,a);p=p.n}else{if(h){u=p.p.z;for(var l=u.length-1;l>=0;--l)a.point((f=u[l])[0],f[1])}else n(p.x,p.p.x,-1,a);p=p.p}p=p.o,u=p.z,h=!h}while(!p.v);a.lineEnd()}}}function Pe(t){if(e=t.length){for(var e,r,n=0,a=t[0];++n<e;)a.n=r=t[n],r.p=a,a=r;a.n=r=t[0],r.p=a}}function Ee(t,e,r,n){this.x=t,this.z=e,this.o=r,this.e=n,this.v=!1,this.n=this.p=null}function Ne(t,e,r,n){return function(a,i){function o(e,r){var n=a(e,r);t(e=n[0],r=n[1])&&i.point(e,r)}function l(t,e){var r=a(t,e);v.point(r[0],r[1])}function s(){m.point=l,v.lineStart()}function c(){m.point=o,v.lineEnd()}function u(t,e){g.push([t,e]);var r=a(t,e);b.point(r[0],r[1])}function f(){b.lineStart(),g=[]}function d(){u(g[0][0],g[0][1]),b.lineEnd();var t,e=b.clean(),r=x.buffer(),n=r.length;if(g.pop(),h.push(g),g=null,n)if(1&e){t=r[0];var a,n=t.length-1,o=-1;if(n>0){for(_||(i.polygonStart(),_=!0),i.lineStart();++o<n;)i.point((a=t[o])[0],a[1]);i.lineEnd()}}else n>1&&2&e&&r.push(r.pop().concat(r.shift())),p.push(r.filter(Ie))}var p,h,g,v=e(i),y=a.invert(n[0],n[1]),m={point:o,lineStart:s,lineEnd:c,polygonStart:function(){m.point=u,m.lineStart=f,m.lineEnd=d,p=[],h=[]},polygonEnd:function(){m.point=o,m.lineStart=s,m.lineEnd=c,p=co.merge(p);var t=He(y,h);p.length?(_||(i.polygonStart(),_=!0),De(p,Fe,t,r,i)):t&&(_||(i.polygonStart(),_=!0),i.lineStart(),r(null,null,1,i),i.lineEnd()),_&&(i.polygonEnd(),_=!1),p=h=null},sphere:function(){i.polygonStart(),i.lineStart(),r(null,null,1,i),i.lineEnd(),i.polygonEnd()}},x=Re(),b=e(x),_=!1;return m}}function Ie(t){return t.length>1}function Re(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,r){t.push([e,r])},lineEnd:k,buffer:function(){var r=e;return e=[],t=null,r},rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))}}}function Fe(t,e){return((t=t.x)[0]<0?t[1]-Ho-Ro:Ho-t[1])-((e=e.x)[0]<0?e[1]-Ho-Ro:Ho-e[1])}function je(t){var e,r=NaN,n=NaN,a=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(i,o){var l=i>0?jo:-jo,s=bo(i-r);bo(s-jo)<Ro?(t.point(r,n=(n+o)/2>0?Ho:-Ho),t.point(a,n),t.lineEnd(),t.lineStart(),t.point(l,n),t.point(i,n),e=0):a!==l&&s>=jo&&(bo(r-a)<Ro&&(r-=a*Ro),bo(i-l)<Ro&&(i-=l*Ro),n=Be(r,n,i,o),t.point(a,n),t.lineEnd(),t.lineStart(),t.point(l,n),e=0),t.point(r=i,n=o),a=l},lineEnd:function(){t.lineEnd(),r=n=NaN},clean:function(){return 2-e}}}function Be(t,e,r,n){var a,i,o=Math.sin(t-r);return bo(o)>Ro?Math.atan((Math.sin(e)*(i=Math.cos(n))*Math.sin(r)-Math.sin(n)*(a=Math.cos(e))*Math.sin(t))/(a*i*o)):(e+n)/2}function qe(t,e,r,n){var a;if(null==t)a=r*Ho,n.point(-jo,a),n.point(0,a),n.point(jo,a),n.point(jo,0),n.point(jo,-a),n.point(0,-a),n.point(-jo,-a),n.point(-jo,0),n.point(-jo,a);else if(bo(t[0]-e[0])>Ro){var i=t[0]<e[0]?jo:-jo;a=r*i/2,n.point(-i,a),n.point(0,a),n.point(i,a)}else n.point(e[0],e[1])}function He(t,e){var r=t[0],n=t[1],a=[Math.sin(r),-Math.cos(r),0],i=0,o=0;kl.reset();for(var l=0,s=e.length;l<s;++l){var c=e[l],u=c.length;if(u)for(var f=c[0],d=f[0],p=f[1]/2+jo/4,h=Math.sin(p),g=Math.cos(p),v=1;;){v===u&&(v=0),t=c[v];var y=t[0],m=t[1]/2+jo/4,x=Math.sin(m),b=Math.cos(m),_=y-d,w=_>=0?1:-1,k=w*_,M=k>jo,A=h*x;if(kl.add(Math.atan2(A*w*Math.sin(k),g*b+A*Math.cos(k))),i+=M?_+w*Bo:_,M^d>=r^y>=r){var T=xe(ye(f),ye(t));we(T);var L=xe(a,T);we(L);var C=(M^_>=0?-1:1)*nt(L[2]);(n>C||n===C&&(T[0]||T[1]))&&(o+=M^_>=0?1:-1)}if(!v++)break;d=y,h=x,g=b,f=t}}return(i<-Ro||i<Ro&&kl<-Ro)^1&o}function Ve(t){function e(t,e){return Math.cos(t)*Math.cos(e)>i}function r(t){var r,i,s,c,u;return{lineStart:function(){c=s=!1,u=1},point:function(f,d){var p,h=[f,d],g=e(f,d),v=o?g?0:a(f,d):g?a(f+(f<0?jo:-jo),d):0;if(!r&&(c=s=g)&&t.lineStart(),g!==s&&(p=n(r,h),(Me(r,p)||Me(h,p))&&(h[0]+=Ro,h[1]+=Ro,g=e(h[0],h[1]))),g!==s)u=0,g?(t.lineStart(),p=n(h,r),t.point(p[0],p[1])):(p=n(r,h),t.point(p[0],p[1]),t.lineEnd()),r=p;else if(l&&r&&o^g){var y;v&i||!(y=n(h,r,!0))||(u=0,o?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!g||r&&Me(r,h)||t.point(h[0],h[1]),r=h,s=g,i=v},lineEnd:function(){s&&t.lineEnd(),r=null},clean:function(){return u|(c&&s)<<1}}}function n(t,e,r){var n=ye(t),a=ye(e),o=[1,0,0],l=xe(n,a),s=me(l,l),c=l[0],u=s-c*c;if(!u)return!r&&t;var f=i*s/u,d=-i*c/u,p=xe(o,l),h=_e(o,f);be(h,_e(l,d));var g=p,v=me(h,g),y=me(g,g),m=v*v-y*(me(h,h)-1);if(!(m<0)){var x=Math.sqrt(m),b=_e(g,(-v-x)/y);if(be(b,h),b=ke(b),!r)return b;var _,w=t[0],k=e[0],M=t[1],A=e[1];k<w&&(_=w,w=k,k=_);var T=k-w,L=bo(T-jo)<Ro,C=L||T<Ro;if(!L&&A<M&&(_=M,M=A,A=_),C?L?M+A>0^b[1]<(bo(b[0]-w)<Ro?M:A):M<=b[1]&&b[1]<=A:T>jo^(w<=b[0]&&b[0]<=k)){var S=_e(g,(-v+x)/y);return be(S,h),[b,ke(S)]}}}function a(e,r){var n=o?t:jo-t,a=0;return e<-n?a|=1:e>n&&(a|=2),r<-n?a|=4:r>n&&(a|=8),a}var i=Math.cos(t),o=i>0,l=bo(i)>Ro;return Ne(e,r,vr(t,6*Vo),o?[0,-t]:[-jo,t-jo])}function Ue(t,e,r,n){return function(a){var i,o=a.a,l=a.b,s=o.x,c=o.y,u=l.x,f=l.y,d=0,p=1,h=u-s,g=f-c;if(i=t-s,h||!(i>0)){if(i/=h,h<0){if(i<d)return;i<p&&(p=i)}else if(h>0){if(i>p)return;i>d&&(d=i)}if(i=r-s,h||!(i<0)){if(i/=h,h<0){if(i>p)return;i>d&&(d=i)}else if(h>0){if(i<d)return;i<p&&(p=i)}if(i=e-c,g||!(i>0)){if(i/=g,g<0){if(i<d)return;i<p&&(p=i)}else if(g>0){if(i>p)return;i>d&&(d=i)}if(i=n-c,g||!(i<0)){if(i/=g,g<0){if(i>p)return;i>d&&(d=i)}else if(g>0){if(i<d)return;i<p&&(p=i)}return d>0&&(a.a={x:s+d*h,y:c+d*g}),p<1&&(a.b={x:s+p*h,y:c+p*g}),a}}}}}}function Ge(t,e,r,n){function a(n,a){return bo(n[0]-t)<Ro?a>0?0:3:bo(n[0]-r)<Ro?a>0?2:1:bo(n[1]-e)<Ro?a>0?1:0:a>0?3:2}function i(t,e){return o(t.x,e.x)}function o(t,e){var r=a(t,1),n=a(e,1);return r!==n?r-n:0===r?e[1]-t[1]:1===r?t[0]-e[0]:2===r?t[1]-e[1]:e[0]-t[0]}return function(l){function s(t){for(var e=0,r=v.length,n=t[1],a=0;a<r;++a)for(var i,o=1,l=v[a],s=l.length,c=l[0];o<s;++o)i=l[o],c[1]<=n?i[1]>n&&et(c,i,t)>0&&++e:i[1]<=n&&et(c,i,t)<0&&--e,c=i;return 0!==e}function c(i,l,s,c){var u=0,f=0;if(null==i||(u=a(i,s))!==(f=a(l,s))||o(i,l)<0^s>0)do{c.point(0===u||3===u?t:r,u>1?n:e)}while((u=(u+s+4)%4)!==f);else c.point(l[0],l[1])}function u(a,i){return t<=a&&a<=r&&e<=i&&i<=n}function f(t,e){u(t,e)&&l.point(t,e)}function d(){S.point=h,v&&v.push(y=[]),M=!0,k=!1,_=w=NaN}function p(){g&&(h(m,x),b&&k&&L.rejoin(),g.push(L.buffer())),S.point=f,k&&l.lineEnd()}function h(t,e){t=Math.max(-Fl,Math.min(Fl,t)),e=Math.max(-Fl,Math.min(Fl,e));var r=u(t,e);if(v&&y.push([t,e]),M)m=t,x=e,b=r,M=!1,r&&(l.lineStart(),l.point(t,e));else if(r&&k)l.point(t,e);else{var n={a:{x:_,y:w},b:{x:t,y:e}};C(n)?(k||(l.lineStart(),l.point(n.a.x,n.a.y)),l.point(n.b.x,n.b.y),r||l.lineEnd(),A=!1):r&&(l.lineStart(),l.point(t,e),A=!1)}_=t,w=e,k=r}var g,v,y,m,x,b,_,w,k,M,A,T=l,L=Re(),C=Ue(t,e,r,n),S={point:f,lineStart:d,lineEnd:p,polygonStart:function(){l=L,g=[],v=[],A=!0},polygonEnd:function(){l=T,g=co.merge(g);var e=s([t,n]),r=A&&e,a=g.length;(r||a)&&(l.polygonStart(),r&&(l.lineStart(),c(null,null,1,l),l.lineEnd()),a&&De(g,i,e,c,l),l.polygonEnd()),g=v=y=null}};return S}}function Xe(t){var e=0,r=jo/3,n=sr(t),a=n(e,r);return a.parallels=function(t){return arguments.length?n(e=t[0]*jo/180,r=t[1]*jo/180):[e/jo*180,r/jo*180]},a}function Ye(t,e){function r(t,e){var r=Math.sqrt(i-2*a*Math.sin(e))/a;return[r*Math.sin(t*=a),o-r*Math.cos(t)]}var n=Math.sin(t),a=(n+Math.sin(e))/2,i=1+n*(2*a-n),o=Math.sqrt(i)/a;return r.invert=function(t,e){var r=o-e;return[Math.atan2(t,r)/a,nt((i-(t*t+r*r)*a*a)/(2*a))]},r}function Ze(){function t(t,e){Bl+=a*t-n*e,n=t,a=e}var e,r,n,a;Gl.point=function(i,o){Gl.point=t,e=n=i,r=a=o},Gl.lineEnd=function(){t(e,r)}}function We(t,e){t<ql&&(ql=t),t>Vl&&(Vl=t),e<Hl&&(Hl=e),e>Ul&&(Ul=e)}function Qe(){function t(t,e){o.push("M",t,",",e,i)}function e(t,e){o.push("M",t,",",e),l.point=r}function r(t,e){o.push("L",t,",",e)}function n(){l.point=t}function a(){o.push("Z")}var i=$e(4.5),o=[],l={point:t,lineStart:function(){l.point=e},lineEnd:n,polygonStart:function(){l.lineEnd=a},polygonEnd:function(){l.lineEnd=n,l.point=t},pointRadius:function(t){return i=$e(t),l},result:function(){if(o.length){var t=o.join("");return o=[],t}}};return l}function $e(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Je(t,e){Ll+=t,Cl+=e,++Sl}function Ke(){function t(t,n){var a=t-e,i=n-r,o=Math.sqrt(a*a+i*i);Ol+=o*(e+t)/2,zl+=o*(r+n)/2,Dl+=o,Je(e=t,r=n)}var e,r;Yl.point=function(n,a){Yl.point=t,Je(e=n,r=a)}}function tr(){Yl.point=Je}function er(){function t(t,e){var r=t-n,i=e-a,o=Math.sqrt(r*r+i*i);Ol+=o*(n+t)/2,zl+=o*(a+e)/2,Dl+=o,o=a*t-n*e,Pl+=o*(n+t),El+=o*(a+e),Nl+=3*o,Je(n=t,a=e)}var e,r,n,a;Yl.point=function(i,o){Yl.point=t,Je(e=n=i,r=a=o)},Yl.lineEnd=function(){t(e,r)}}function rr(t){function e(e,r){t.moveTo(e+o,r),t.arc(e,r,o,0,Bo)}function r(e,r){t.moveTo(e,r),l.point=n}function n(e,r){t.lineTo(e,r)}function a(){l.point=e}function i(){t.closePath()}var o=4.5,l={point:e,lineStart:function(){l.point=r},lineEnd:a,polygonStart:function(){l.lineEnd=i},polygonEnd:function(){l.lineEnd=a,l.point=e},pointRadius:function(t){return o=t,l},result:k};return l}function nr(t){function e(t){return(l?n:r)(t)}function r(e){return or(e,function(r,n){r=t(r,n),e.point(r[0],r[1])})}function n(e){function r(r,n){r=t(r,n),e.point(r[0],r[1])}function n(){x=NaN,M.point=i,e.lineStart()}function i(r,n){var i=ye([r,n]),o=t(r,n);a(x,b,m,_,w,k,x=o[0],b=o[1],m=r,_=i[0],w=i[1],k=i[2],l,e),e.point(x,b)}function o(){M.point=r,e.lineEnd()}function s(){n(),M.point=c,M.lineEnd=u}function c(t,e){i(f=t,d=e),p=x,h=b,g=_,v=w,y=k,M.point=i}function u(){a(x,b,m,_,w,k,p,h,f,g,v,y,l,e),M.lineEnd=o,o()}var f,d,p,h,g,v,y,m,x,b,_,w,k,M={point:r,lineStart:n,lineEnd:o,polygonStart:function(){e.polygonStart(),M.lineStart=s},polygonEnd:function(){e.polygonEnd(),M.lineStart=n}};return M}function a(e,r,n,l,s,c,u,f,d,p,h,g,v,y){var m=u-e,x=f-r,b=m*m+x*x;if(b>4*i&&v--){var _=l+p,w=s+h,k=c+g,M=Math.sqrt(_*_+w*w+k*k),A=Math.asin(k/=M),T=bo(bo(k)-1)<Ro||bo(n-d)<Ro?(n+d)/2:Math.atan2(w,_),L=t(T,A),C=L[0],S=L[1],O=C-e,z=S-r,D=x*O-m*z;(D*D/b>i||bo((m*O+x*z)/b-.5)>.3||l*p+s*h+c*g<o)&&(a(e,r,n,l,s,c,C,S,T,_/=M,w/=M,k,v,y),y.point(C,S),a(C,S,T,_,w,k,u,f,d,p,h,g,v,y))}}var i=.5,o=Math.cos(30*Vo),l=16;return e.precision=function(t){return arguments.length?(l=(i=t*t)>0&&16,e):Math.sqrt(i)},e}function ar(t){var e=nr(function(e,r){return t([e*Uo,r*Uo])});return function(t){return cr(e(t))}}function ir(t){this.stream=t}function or(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function lr(t){return sr(function(){return t})()}function sr(t){function e(t){return t=l(t[0]*Vo,t[1]*Vo),[t[0]*d+s,c-t[1]*d]}function r(t){return(t=l.invert((t[0]-s)/d,(c-t[1])/d))&&[t[0]*Uo,t[1]*Uo]}function n(){l=Oe(o=dr(y,m,x),i);var t=i(g,v);return s=p-t[0]*d,c=h+t[1]*d,a()}function a(){return u&&(u.valid=!1,u=null),e}var i,o,l,s,c,u,f=nr(function(t,e){return t=i(t,e),[t[0]*d+s,c-t[1]*d]}),d=150,p=480,h=250,g=0,v=0,y=0,m=0,x=0,_=Rl,w=b,k=null,M=null;return e.stream=function(t){return u&&(u.valid=!1),u=cr(_(o,f(w(t)))),u.valid=!0,u},e.clipAngle=function(t){return arguments.length?(_=null==t?(k=t,Rl):Ve((k=+t)*Vo),a()):k},e.clipExtent=function(t){return arguments.length?(M=t,w=t?Ge(t[0][0],t[0][1],t[1][0],t[1][1]):b,a()):M},e.scale=function(t){return arguments.length?(d=+t,n()):d},e.translate=function(t){return arguments.length?(p=+t[0],h=+t[1],n()):[p,h]},e.center=function(t){return arguments.length?(g=t[0]%360*Vo,v=t[1]%360*Vo,n()):[g*Uo,v*Uo]},e.rotate=function(t){return arguments.length?(y=t[0]%360*Vo,m=t[1]%360*Vo,x=t.length>2?t[2]%360*Vo:0,n()):[y*Uo,m*Uo,x*Uo]},co.rebind(e,f,"precision"),function(){return i=t.apply(this,arguments),e.invert=i.invert&&r,n()}}function cr(t){return or(t,function(e,r){t.point(e*Vo,r*Vo)})}function ur(t,e){return[t,e]}function fr(t,e){return[t>jo?t-Bo:t<-jo?t+Bo:t,e]}function dr(t,e,r){return t?e||r?Oe(hr(t),gr(e,r)):hr(t):e||r?gr(e,r):fr}function pr(t){return function(e,r){return e+=t,[e>jo?e-Bo:e<-jo?e+Bo:e,r]}}function hr(t){var e=pr(t);return e.invert=pr(-t),e}function gr(t,e){function r(t,e){var r=Math.cos(e),l=Math.cos(t)*r,s=Math.sin(t)*r,c=Math.sin(e),u=c*n+l*a;return[Math.atan2(s*i-u*o,l*n-c*a),nt(u*i+s*o)]}var n=Math.cos(t),a=Math.sin(t),i=Math.cos(e),o=Math.sin(e);return r.invert=function(t,e){var r=Math.cos(e),l=Math.cos(t)*r,s=Math.sin(t)*r,c=Math.sin(e),u=c*i-s*o;return[Math.atan2(s*i+c*o,l*n+u*a),nt(u*n-l*a)]},r}function vr(t,e){var r=Math.cos(t),n=Math.sin(t);return function(a,i,o,l){var s=o*e;null!=a?(a=yr(r,a),i=yr(r,i),(o>0?a<i:a>i)&&(a+=o*Bo)):(a=t+o*Bo,i=t-.5*s);for(var c,u=a;o>0?u>i:u<i;u-=s)l.point((c=ke([r,-n*Math.cos(u),-n*Math.sin(u)]))[0],c[1])}}function yr(t,e){var r=ye(e);r[0]-=t,we(r);var n=rt(-r[1]);return((-r[2]<0?-n:n)+2*Math.PI-Ro)%(2*Math.PI)}function mr(t,e,r){var n=co.range(t,e-Ro,r).concat(e);return function(t){return n.map(function(e){return[t,e]})}}function xr(t,e,r){var n=co.range(t,e-Ro,r).concat(e);return function(t){return n.map(function(e){return[e,t]})}}function br(t){return t.source}function _r(t){return t.target}function wr(t,e,r,n){var a=Math.cos(e),i=Math.sin(e),o=Math.cos(n),l=Math.sin(n),s=a*Math.cos(t),c=a*Math.sin(t),u=o*Math.cos(r),f=o*Math.sin(r),d=2*Math.asin(Math.sqrt(lt(n-e)+a*o*lt(r-t))),p=1/Math.sin(d),h=d?function(t){var e=Math.sin(t*=d)*p,r=Math.sin(d-t)*p,n=r*s+e*u,a=r*c+e*f,o=r*i+e*l;return[Math.atan2(a,n)*Uo,Math.atan2(o,Math.sqrt(n*n+a*a))*Uo]}:function(){return[t*Uo,e*Uo]};return h.distance=d,h}function kr(){function t(t,a){var i=Math.sin(a*=Vo),o=Math.cos(a),l=bo((t*=Vo)-e),s=Math.cos(l);Zl+=Math.atan2(Math.sqrt((l=o*Math.sin(l))*l+(l=n*i-r*o*s)*l),r*i+n*o*s),e=t,r=i,n=o}var e,r,n;Wl.point=function(a,i){e=a*Vo,r=Math.sin(i*=Vo),n=Math.cos(i),Wl.point=t},Wl.lineEnd=function(){Wl.point=Wl.lineEnd=k}}function Mr(t,e){function r(e,r){var n=Math.cos(e),a=Math.cos(r),i=t(n*a);return[i*a*Math.sin(e),i*Math.sin(r)]}return r.invert=function(t,r){var n=Math.sqrt(t*t+r*r),a=e(n),i=Math.sin(a),o=Math.cos(a);return[Math.atan2(t*i,n*o),Math.asin(n&&r*i/n)]},r}function Ar(t,e){function r(t,e){o>0?e<-Ho+Ro&&(e=-Ho+Ro):e>Ho-Ro&&(e=Ho-Ro);var r=o/Math.pow(a(e),i);return[r*Math.sin(i*t),o-r*Math.cos(i*t)]}var n=Math.cos(t),a=function(t){return Math.tan(jo/4+t/2)},i=t===e?Math.sin(t):Math.log(n/Math.cos(e))/Math.log(a(e)/a(t)),o=n*Math.pow(a(t),i)/i;return i?(r.invert=function(t,e){var r=o-e,n=tt(i)*Math.sqrt(t*t+r*r);return[Math.atan2(t,r)/i,2*Math.atan(Math.pow(o/n,1/i))-Ho]},r):Lr}function Tr(t,e){function r(t,e){var r=i-e;return[r*Math.sin(a*t),i-r*Math.cos(a*t)]}var n=Math.cos(t),a=t===e?Math.sin(t):(n-Math.cos(e))/(e-t),i=n/a+t;return bo(a)<Ro?ur:(r.invert=function(t,e){var r=i-e;return[Math.atan2(t,r)/a,i-tt(a)*Math.sqrt(t*t+r*r)]},r)}function Lr(t,e){return[t,Math.log(Math.tan(jo/4+e/2))]}function Cr(t){var e,r=lr(t),n=r.scale,a=r.translate,i=r.clipExtent;return r.scale=function(){var t=n.apply(r,arguments);return t===r?e?r.clipExtent(null):r:t},r.translate=function(){var t=a.apply(r,arguments);return t===r?e?r.clipExtent(null):r:t},r.clipExtent=function(t){var o=i.apply(r,arguments);if(o===r){if(e=null==t){var l=jo*n(),s=a();i([[s[0]-l,s[1]-l],[s[0]+l,s[1]+l]])}}else e&&(o=null);return o},r.clipExtent(null)}function Sr(t,e){return[Math.log(Math.tan(jo/4+e/2)),-t]}function Or(t){return t[0]}function zr(t){return t[1]}function Dr(t){for(var e=t.length,r=[0,1],n=2,a=2;a<e;a++){for(;n>1&&et(t[r[n-2]],t[r[n-1]],t[a])<=0;)--n;r[n++]=a}return r.slice(0,n)}function Pr(t,e){return t[0]-e[0]||t[1]-e[1]}function Er(t,e,r){return(r[0]-e[0])*(t[1]-e[1])<(r[1]-e[1])*(t[0]-e[0])}function Nr(t,e,r,n){var a=t[0],i=r[0],o=e[0]-a,l=n[0]-i,s=t[1],c=r[1],u=e[1]-s,f=n[1]-c,d=(l*(s-c)-f*(a-i))/(f*o-l*u);return[a+d*o,s+d*u]}function Ir(t){var e=t[0],r=t[t.length-1];return!(e[0]-r[0]||e[1]-r[1])}function Rr(){an(this),this.edge=this.site=this.circle=null}function Fr(t){var e=ls.pop()||new Rr;return e.site=t,e}function jr(t){Wr(t),as.remove(t),ls.push(t),an(t)}function Br(t){var e=t.circle,r=e.x,n=e.cy,a={x:r,y:n},i=t.P,o=t.N,l=[t];jr(t);for(var s=i;s.circle&&bo(r-s.circle.x)<Ro&&bo(n-s.circle.cy)<Ro;)i=s.P,l.unshift(s),jr(s),s=i;l.unshift(s),Wr(s);for(var c=o;c.circle&&bo(r-c.circle.x)<Ro&&bo(n-c.circle.cy)<Ro;)o=c.N,l.push(c),jr(c),c=o;l.push(c),Wr(c);var u,f=l.length;for(u=1;u<f;++u)c=l[u],s=l[u-1],en(c.edge,s.site,c.site,a);s=l[0],c=l[f-1],c.edge=Kr(s.site,c.site,null,a),Zr(s),Zr(c)}function qr(t){for(var e,r,n,a,i=t.x,o=t.y,l=as._;l;)if((n=Hr(l,o)-i)>Ro)l=l.L;else{if(!((a=i-Vr(l,o))>Ro)){n>-Ro?(e=l.P,r=l):a>-Ro?(e=l,r=l.N):e=r=l;break}if(!l.R){e=l;break}l=l.R}var s=Fr(t);if(as.insert(e,s),e||r){if(e===r)return Wr(e),r=Fr(e.site),as.insert(s,r),s.edge=r.edge=Kr(e.site,s.site),Zr(e),void Zr(r);if(!r)return void(s.edge=Kr(e.site,s.site));Wr(e),Wr(r);var c=e.site,u=c.x,f=c.y,d=t.x-u,p=t.y-f,h=r.site,g=h.x-u,v=h.y-f,y=2*(d*v-p*g),m=d*d+p*p,x=g*g+v*v,b={x:(v*m-p*x)/y+u,y:(d*x-g*m)/y+f};en(r.edge,c,h,b),s.edge=Kr(c,t,null,b),r.edge=Kr(t,h,null,b),Zr(e),Zr(r)}}function Hr(t,e){var r=t.site,n=r.x,a=r.y,i=a-e;if(!i)return n;var o=t.P;if(!o)return-1/0;r=o.site;var l=r.x,s=r.y,c=s-e;if(!c)return l;var u=l-n,f=1/i-1/c,d=u/c;return f?(-d+Math.sqrt(d*d-2*f*(u*u/(-2*c)-s+c/2+a-i/2)))/f+n:(n+l)/2}function Vr(t,e){var r=t.N;if(r)return Hr(r,e);var n=t.site;return n.y===e?n.x:1/0}function Ur(t){this.site=t,this.edges=[]}function Gr(t){for(var e,r,n,a,i,o,l,s,c,u,f=t[0][0],d=t[1][0],p=t[0][1],h=t[1][1],g=ns,v=g.length;v--;)if((i=g[v])&&i.prepare())for(l=i.edges,s=l.length,o=0;o<s;)u=l[o].end(),n=u.x,a=u.y,c=l[++o%s].start(),e=c.x,r=c.y,(bo(n-e)>Ro||bo(a-r)>Ro)&&(l.splice(o,0,new rn(tn(i.site,u,bo(n-f)<Ro&&h-a>Ro?{x:f,y:bo(e-f)<Ro?r:h}:bo(a-h)<Ro&&d-n>Ro?{x:bo(r-h)<Ro?e:d,y:h}:bo(n-d)<Ro&&a-p>Ro?{x:d,y:bo(e-d)<Ro?r:p}:bo(a-p)<Ro&&n-f>Ro?{x:bo(r-p)<Ro?e:f,y:p}:null),i.site,null)),++s)}function Xr(t,e){return e.angle-t.angle}function Yr(){an(this),this.x=this.y=this.arc=this.site=this.cy=null}function Zr(t){var e=t.P,r=t.N;if(e&&r){var n=e.site,a=t.site,i=r.site;if(n!==i){var o=a.x,l=a.y,s=n.x-o,c=n.y-l,u=i.x-o,f=i.y-l,d=2*(s*f-c*u);if(!(d>=-Fo)){var p=s*s+c*c,h=u*u+f*f,g=(f*p-c*h)/d,v=(s*h-u*p)/d,f=v+l,y=ss.pop()||new Yr;y.arc=t,y.site=a,y.x=g+o,y.y=f+Math.sqrt(g*g+v*v),y.cy=f,t.circle=y;for(var m=null,x=os._;x;)if(y.y<x.y||y.y===x.y&&y.x<=x.x){if(!x.L){m=x.P;break}x=x.L}else{if(!x.R){m=x;break}x=x.R}os.insert(m,y),m||(is=y)}}}}function Wr(t){var e=t.circle;e&&(e.P||(is=e.N),os.remove(e),ss.push(e),an(e),t.circle=null)}function Qr(t){for(var e,r=rs,n=Ue(t[0][0],t[0][1],t[1][0],t[1][1]),a=r.length;a--;)e=r[a],(!$r(e,t)||!n(e)||bo(e.a.x-e.b.x)<Ro&&bo(e.a.y-e.b.y)<Ro)&&(e.a=e.b=null,r.splice(a,1))}function $r(t,e){var r=t.b;if(r)return!0;var n,a,i=t.a,o=e[0][0],l=e[1][0],s=e[0][1],c=e[1][1],u=t.l,f=t.r,d=u.x,p=u.y,h=f.x,g=f.y,v=(d+h)/2,y=(p+g)/2;if(g===p){if(v<o||v>=l)return;if(d>h){if(i){if(i.y>=c)return}else i={x:v,y:s};r={x:v,y:c}}else{if(i){if(i.y<s)return}else i={x:v,y:c};r={x:v,y:s}}}else if(n=(d-h)/(g-p),a=y-n*v,n<-1||n>1)if(d>h){if(i){if(i.y>=c)return}else i={x:(s-a)/n,y:s};r={x:(c-a)/n,y:c}}else{if(i){if(i.y<s)return}else i={x:(c-a)/n,y:c};r={x:(s-a)/n,y:s}}else if(p<g){if(i){if(i.x>=l)return}else i={x:o,y:n*o+a};r={x:l,y:n*l+a}}else{if(i){if(i.x<o)return}else i={x:l,y:n*l+a};r={x:o,y:n*o+a}}return t.a=i,t.b=r,!0}function Jr(t,e){this.l=t,this.r=e,this.a=this.b=null}function Kr(t,e,r,n){var a=new Jr(t,e);return rs.push(a),r&&en(a,t,e,r),n&&en(a,e,t,n),ns[t.i].edges.push(new rn(a,t,e)),ns[e.i].edges.push(new rn(a,e,t)),a}function tn(t,e,r){var n=new Jr(t,null);return n.a=e,n.b=r,rs.push(n),n}function en(t,e,r,n){t.a||t.b?t.l===r?t.b=n:t.a=n:(t.a=n,t.l=e,t.r=r)}function rn(t,e,r){var n=t.a,a=t.b;this.edge=t,this.site=e,this.angle=r?Math.atan2(r.y-e.y,r.x-e.x):t.l===e?Math.atan2(a.x-n.x,n.y-a.y):Math.atan2(n.x-a.x,a.y-n.y)}function nn(){this._=null}function an(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function on(t,e){var r=e,n=e.R,a=r.U;a?a.L===r?a.L=n:a.R=n:t._=n,n.U=a,r.U=n,r.R=n.L,r.R&&(r.R.U=r),n.L=r}function ln(t,e){var r=e,n=e.L,a=r.U;a?a.L===r?a.L=n:a.R=n:t._=n,n.U=a,r.U=n,r.L=n.R,r.L&&(r.L.U=r),n.R=r}function sn(t){for(;t.L;)t=t.L;return t}function cn(t,e){var r,n,a,i=t.sort(un).pop();for(rs=[],ns=new Array(t.length),as=new nn,os=new nn;;)if(a=is,i&&(!a||i.y<a.y||i.y===a.y&&i.x<a.x))i.x===r&&i.y===n||(ns[i.i]=new Ur(i),qr(i),r=i.x,n=i.y),i=t.pop();else{if(!a)break;Br(a.arc)}e&&(Qr(e),Gr(e));var o={cells:ns,edges:rs};return as=os=rs=ns=null,o}function un(t,e){return e.y-t.y||e.x-t.x}function fn(t,e,r){return(t.x-r.x)*(e.y-t.y)-(t.x-e.x)*(r.y-t.y)}function dn(t){return t.x}function pn(t){return t.y}function hn(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function gn(t,e,r,n,a,i){if(!t(e,r,n,a,i)){var o=.5*(r+a),l=.5*(n+i),s=e.nodes;s[0]&&gn(t,s[0],r,n,o,l),s[1]&&gn(t,s[1],o,n,a,l),s[2]&&gn(t,s[2],r,l,o,i),s[3]&&gn(t,s[3],o,l,a,i)}}function vn(t,e,r,n,a,i,o){var l,s=1/0;return function t(c,u,f,d,p){if(!(u>i||f>o||d<n||p<a)){if(h=c.point){var h,g=e-c.x,v=r-c.y,y=g*g+v*v;if(y<s){var m=Math.sqrt(s=y);n=e-m,a=r-m,i=e+m,o=r+m,l=h}}for(var x=c.nodes,b=.5*(u+d),_=.5*(f+p),w=e>=b,k=r>=_,M=k<<1|w,A=M+4;M<A;++M)if(c=x[3&M])switch(3&M){case 0:t(c,u,f,b,_);break;case 1:t(c,b,f,d,_);break;case 2:t(c,u,_,b,p);break;case 3:t(c,b,_,d,p)}}}(t,n,a,i,o),l}function yn(t,e){t=co.rgb(t),e=co.rgb(e);var r=t.r,n=t.g,a=t.b,i=e.r-r,o=e.g-n,l=e.b-a;return function(t){return"#"+wt(Math.round(r+i*t))+wt(Math.round(n+o*t))+wt(Math.round(a+l*t))}}function mn(t,e){var r,n={},a={};for(r in t)r in e?n[r]=_n(t[r],e[r]):a[r]=t[r];for(r in e)r in t||(a[r]=e[r]);return function(t){for(r in n)a[r]=n[r](t);return a}}function xn(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function bn(t,e){var r,n,a,i=us.lastIndex=fs.lastIndex=0,o=-1,l=[],s=[];for(t+="",e+="";(r=us.exec(t))&&(n=fs.exec(e));)(a=n.index)>i&&(a=e.slice(i,a),l[o]?l[o]+=a:l[++o]=a),(r=r[0])===(n=n[0])?l[o]?l[o]+=n:l[++o]=n:(l[++o]=null,s.push({i:o,x:xn(r,n)})),i=fs.lastIndex;return i<e.length&&(a=e.slice(i),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?(e=s[0].x,function(t){return e(t)+""}):function(){return e}:(e=s.length,function(t){for(var r,n=0;n<e;++n)l[(r=s[n]).i]=r.x(t);return l.join("")})}function _n(t,e){for(var r,n=co.interpolators.length;--n>=0&&!(r=co.interpolators[n](t,e)););return r}function wn(t,e){var r,n=[],a=[],i=t.length,o=e.length,l=Math.min(t.length,e.length);for(r=0;r<l;++r)n.push(_n(t[r],e[r]));for(;r<i;++r)a[r]=t[r];for(;r<o;++r)a[r]=e[r];return function(t){for(r=0;r<l;++r)a[r]=n[r](t);return a}}function kn(t){return function(e){return e<=0?0:e>=1?1:t(e)}}function Mn(t){return function(e){return 1-t(1-e)}}function An(t){return function(e){return.5*(e<.5?t(2*e):2-t(2-2*e))}}function Tn(t){return t*t}function Ln(t){return t*t*t}function Cn(t){if(t<=0)return 0;if(t>=1)return 1;var e=t*t,r=e*t;return 4*(t<.5?r:3*(t-e)+r-.75)}function Sn(t){return function(e){return Math.pow(e,t)}}function On(t){return 1-Math.cos(t*Ho)}function zn(t){return Math.pow(2,10*(t-1))}function Dn(t){return 1-Math.sqrt(1-t*t)}function Pn(t,e){var r;return arguments.length<2&&(e=.45),arguments.length?r=e/Bo*Math.asin(1/t):(t=1,r=e/4),function(n){return 1+t*Math.pow(2,-10*n)*Math.sin((n-r)*Bo/e)}}function En(t){return t||(t=1.70158),function(e){return e*e*((t+1)*e-t)}}function Nn(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function In(t,e){t=co.hcl(t),e=co.hcl(e);var r=t.h,n=t.c,a=t.l,i=e.h-r,o=e.c-n,l=e.l-a;return isNaN(o)&&(o=0,n=isNaN(n)?e.c:n),isNaN(i)?(i=0,r=isNaN(r)?e.h:r):i>180?i-=360:i<-180&&(i+=360),function(t){return dt(r+i*t,n+o*t,a+l*t)+""}}function Rn(t,e){t=co.hsl(t),e=co.hsl(e);var r=t.h,n=t.s,a=t.l,i=e.h-r,o=e.s-n,l=e.l-a;return isNaN(o)&&(o=0,n=isNaN(n)?e.s:n),isNaN(i)?(i=0,r=isNaN(r)?e.h:r):i>180?i-=360:i<-180&&(i+=360),function(t){return ut(r+i*t,n+o*t,a+l*t)+""}}function Fn(t,e){t=co.lab(t),e=co.lab(e);var r=t.l,n=t.a,a=t.b,i=e.l-r,o=e.a-n,l=e.b-a;return function(t){return ht(r+i*t,n+o*t,a+l*t)+""}}function jn(t,e){return e-=t,function(r){return Math.round(t+e*r)}}function Bn(t){var e=[t.a,t.b],r=[t.c,t.d],n=Hn(e),a=qn(e,r),i=Hn(Vn(r,e,-a))||0;e[0]*r[1]<r[0]*e[1]&&(e[0]*=-1,e[1]*=-1,n*=-1,a*=-1),this.rotate=(n?Math.atan2(e[1],e[0]):Math.atan2(-r[0],r[1]))*Uo,this.translate=[t.e,t.f],this.scale=[n,i],this.skew=i?Math.atan2(a,i)*Uo:0}function qn(t,e){return t[0]*e[0]+t[1]*e[1]}function Hn(t){var e=Math.sqrt(qn(t,t));return e&&(t[0]/=e,t[1]/=e),e}function Vn(t,e,r){return t[0]+=r*e[0],t[1]+=r*e[1],t}function Un(t){return t.length?t.pop()+",":""}function Gn(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var a=r.push("translate(",null,",",null,")");n.push({i:a-4,x:xn(t[0],e[0])},{i:a-2,x:xn(t[1],e[1])})}else(e[0]||e[1])&&r.push("translate("+e+")")}function Xn(t,e,r,n){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),n.push({i:r.push(Un(r)+"rotate(",null,")")-2,x:xn(t,e)})):e&&r.push(Un(r)+"rotate("+e+")")}function Yn(t,e,r,n){t!==e?n.push({i:r.push(Un(r)+"skewX(",null,")")-2,x:xn(t,e)}):e&&r.push(Un(r)+"skewX("+e+")")}function Zn(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var a=r.push(Un(r)+"scale(",null,",",null,")");n.push({i:a-4,x:xn(t[0],e[0])},{i:a-2,x:xn(t[1],e[1])})}else 1===e[0]&&1===e[1]||r.push(Un(r)+"scale("+e+")")}function Wn(t,e){var r=[],n=[];return t=co.transform(t),e=co.transform(e),Gn(t.translate,e.translate,r,n),Xn(t.rotate,e.rotate,r,n),Yn(t.skew,e.skew,r,n),Zn(t.scale,e.scale,r,n),t=e=null,function(t){for(var e,a=-1,i=n.length;++a<i;)r[(e=n[a]).i]=e.x(t);return r.join("")}}function Qn(t,e){return e=(e-=t=+t)||1/e,function(r){return(r-t)/e}}function $n(t,e){return e=(e-=t=+t)||1/e,function(r){return Math.max(0,Math.min(1,(r-t)/e))}}function Jn(t){for(var e=t.source,r=t.target,n=ta(e,r),a=[e];e!==n;)e=e.parent,a.push(e);for(var i=a.length;r!==n;)a.splice(i,0,r),r=r.parent;return a}function Kn(t){for(var e=[],r=t.parent;null!=r;)e.push(t),t=r,r=r.parent;return e.push(t),e}function ta(t,e){if(t===e)return t;for(var r=Kn(t),n=Kn(e),a=r.pop(),i=n.pop(),o=null;a===i;)o=a,a=r.pop(),i=n.pop();return o}function ea(t){t.fixed|=2}function ra(t){t.fixed&=-7}function na(t){t.fixed|=4,t.px=t.x,t.py=t.y}function aa(t){t.fixed&=-5}function ia(t,e,r){var n=0,a=0;if(t.charge=0,!t.leaf)for(var i,o=t.nodes,l=o.length,s=-1;++s<l;)null!=(i=o[s])&&(ia(i,e,r),t.charge+=i.charge,n+=i.charge*i.cx,a+=i.charge*i.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var c=e*r[t.point.index];t.charge+=t.pointCharge=c,n+=c*t.point.x,a+=c*t.point.y}t.cx=n/t.charge,t.cy=a/t.charge}function oa(t,e){return co.rebind(t,e,"sort","children","value"),t.nodes=t,t.links=da,t}function la(t,e){for(var r=[t];null!=(t=r.pop());)if(e(t),(a=t.children)&&(n=a.length))for(var n,a;--n>=0;)r.push(a[n])}function sa(t,e){for(var r=[t],n=[];null!=(t=r.pop());)if(n.push(t),(i=t.children)&&(a=i.length))for(var a,i,o=-1;++o<a;)r.push(i[o]);for(;null!=(t=n.pop());)e(t)}function ca(t){return t.children}function ua(t){return t.value}function fa(t,e){return e.value-t.value}function da(t){return co.merge(t.map(function(t){return(t.children||[]).map(function(e){return{source:t,target:e}})}))}function pa(t){return t.x}function ha(t){return t.y}function ga(t,e,r){t.y0=e,t.y=r}function va(t){return co.range(t.length)}function ya(t){for(var e=-1,r=t[0].length,n=[];++e<r;)n[e]=0;return n}function ma(t){for(var e,r=1,n=0,a=t[0][1],i=t.length;r<i;++r)(e=t[r][1])>a&&(n=r,a=e);return n}function xa(t){return t.reduce(ba,0)}function ba(t,e){return t+e[1]}function _a(t,e){return wa(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function wa(t,e){for(var r=-1,n=+t[0],a=(t[1]-n)/e,i=[];++r<=e;)i[r]=a*r+n;return i}function ka(t){return[co.min(t),co.max(t)]}function Ma(t,e){return t.value-e.value}function Aa(t,e){var r=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=r,r._pack_prev=e}function Ta(t,e){t._pack_next=e,e._pack_prev=t}function La(t,e){var r=e.x-t.x,n=e.y-t.y,a=t.r+e.r;return.999*a*a>r*r+n*n}function Ca(t){function e(t){u=Math.min(t.x-t.r,u),f=Math.max(t.x+t.r,f),d=Math.min(t.y-t.r,d),p=Math.max(t.y+t.r,p)}if((r=t.children)&&(c=r.length)){var r,n,a,i,o,l,s,c,u=1/0,f=-1/0,d=1/0,p=-1/0;if(r.forEach(Sa),n=r[0],n.x=-n.r,n.y=0,e(n),c>1&&(a=r[1],a.x=a.r,a.y=0,e(a),c>2))for(i=r[2],Da(n,a,i),e(i),Aa(n,i),n._pack_prev=i,Aa(i,a),a=n._pack_next,o=3;o<c;o++){Da(n,a,i=r[o]);var h=0,g=1,v=1;for(l=a._pack_next;l!==a;l=l._pack_next,g++)if(La(l,i)){h=1;break}if(1==h)for(s=n._pack_prev;s!==l._pack_prev&&!La(s,i);s=s._pack_prev,v++);h?(g<v||g==v&&a.r<n.r?Ta(n,a=l):Ta(n=s,a),o--):(Aa(n,i),a=i,e(i))}var y=(u+f)/2,m=(d+p)/2,x=0;for(o=0;o<c;o++)i=r[o],i.x-=y,i.y-=m,x=Math.max(x,i.r+Math.sqrt(i.x*i.x+i.y*i.y));t.r=x,r.forEach(Oa)}}function Sa(t){t._pack_next=t._pack_prev=t}function Oa(t){delete t._pack_next,delete t._pack_prev}function za(t,e,r,n){var a=t.children;if(t.x=e+=n*t.x,t.y=r+=n*t.y,t.r*=n, a)for(var i=-1,o=a.length;++i<o;)za(a[i],e,r,n)}function Da(t,e,r){var n=t.r+r.r,a=e.x-t.x,i=e.y-t.y;if(n&&(a||i)){var o=e.r+r.r,l=a*a+i*i;o*=o,n*=n;var s=.5+(n-o)/(2*l),c=Math.sqrt(Math.max(0,2*o*(n+l)-(n-=l)*n-o*o))/(2*l);r.x=t.x+s*a+c*i,r.y=t.y+s*i-c*a}else r.x=t.x+n,r.y=t.y}function Pa(t,e){return t.parent==e.parent?1:2}function Ea(t){var e=t.children;return e.length?e[0]:t.t}function Na(t){var e,r=t.children;return(e=r.length)?r[e-1]:t.t}function Ia(t,e,r){var n=r/(e.i-t.i);e.c-=n,e.s+=r,t.c+=n,e.z+=r,e.m+=r}function Ra(t){for(var e,r=0,n=0,a=t.children,i=a.length;--i>=0;)e=a[i],e.z+=r,e.m+=r,r+=e.s+(n+=e.c)}function Fa(t,e,r){return t.a.parent===e.parent?t.a:r}function ja(t){return 1+co.max(t,function(t){return t.y})}function Ba(t){return t.reduce(function(t,e){return t+e.x},0)/t.length}function qa(t){var e=t.children;return e&&e.length?qa(e[0]):t}function Ha(t){var e,r=t.children;return r&&(e=r.length)?Ha(r[e-1]):t}function Va(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function Ua(t,e){var r=t.x+e[3],n=t.y+e[0],a=t.dx-e[1]-e[3],i=t.dy-e[0]-e[2];return a<0&&(r+=a/2,a=0),i<0&&(n+=i/2,i=0),{x:r,y:n,dx:a,dy:i}}function Ga(t){var e=t[0],r=t[t.length-1];return e<r?[e,r]:[r,e]}function Xa(t){return t.rangeExtent?t.rangeExtent():Ga(t.range())}function Ya(t,e,r,n){var a=r(t[0],t[1]),i=n(e[0],e[1]);return function(t){return i(a(t))}}function Za(t,e){var r,n=0,a=t.length-1,i=t[n],o=t[a];return o<i&&(r=n,n=a,a=r,r=i,i=o,o=r),t[n]=e.floor(i),t[a]=e.ceil(o),t}function Wa(t){return t?{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}:ws}function Qa(t,e,r,n){var a=[],i=[],o=0,l=Math.min(t.length,e.length)-1;for(t[l]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<=l;)a.push(r(t[o-1],t[o])),i.push(n(e[o-1],e[o]));return function(e){var r=co.bisect(t,e,1,l)-1;return i[r](a[r](e))}}function $a(t,e,r,n){function a(){var a=Math.min(t.length,e.length)>2?Qa:Ya,s=n?$n:Qn;return o=a(t,e,s,r),l=a(e,t,s,_n),i}function i(t){return o(t)}var o,l;return i.invert=function(t){return l(t)},i.domain=function(e){return arguments.length?(t=e.map(Number),a()):t},i.range=function(t){return arguments.length?(e=t,a()):e},i.rangeRound=function(t){return i.range(t).interpolate(jn)},i.clamp=function(t){return arguments.length?(n=t,a()):n},i.interpolate=function(t){return arguments.length?(r=t,a()):r},i.ticks=function(e){return ei(t,e)},i.tickFormat=function(e,r){return ri(t,e,r)},i.nice=function(e){return Ka(t,e),a()},i.copy=function(){return $a(t,e,r,n)},a()}function Ja(t,e){return co.rebind(t,e,"range","rangeRound","interpolate","clamp")}function Ka(t,e){return Za(t,Wa(ti(t,e)[2])),Za(t,Wa(ti(t,e)[2])),t}function ti(t,e){null==e&&(e=10);var r=Ga(t),n=r[1]-r[0],a=Math.pow(10,Math.floor(Math.log(n/e)/Math.LN10)),i=e/n*a;return i<=.15?a*=10:i<=.35?a*=5:i<=.75&&(a*=2),r[0]=Math.ceil(r[0]/a)*a,r[1]=Math.floor(r[1]/a)*a+.5*a,r[2]=a,r}function ei(t,e){return co.range.apply(co,ti(t,e))}function ri(t,e,r){var n=ti(t,e);if(r){var a=ul.exec(r);if(a.shift(),"s"===a[8]){var i=co.formatPrefix(Math.max(bo(n[0]),bo(n[1])));return a[7]||(a[7]="."+ni(i.scale(n[2]))),a[8]="f",r=co.format(a.join("")),function(t){return r(i.scale(t))+i.symbol}}a[7]||(a[7]="."+ai(a[8],n)),r=a.join("")}else r=",."+ni(n[2])+"f";return co.format(r)}function ni(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function ai(t,e){var r=ni(e[2]);return t in ks?Math.abs(r-ni(Math.max(bo(e[0]),bo(e[1]))))+ +("e"!==t):r-2*("%"===t)}function ii(t,e,r,n){function a(t){return(r?Math.log(t<0?0:t):-Math.log(t>0?0:-t))/Math.log(e)}function i(t){return r?Math.pow(e,t):-Math.pow(e,-t)}function o(e){return t(a(e))}return o.invert=function(e){return i(t.invert(e))},o.domain=function(e){return arguments.length?(r=e[0]>=0,t.domain((n=e.map(Number)).map(a)),o):n},o.base=function(r){return arguments.length?(e=+r,t.domain(n.map(a)),o):e},o.nice=function(){var e=Za(n.map(a),r?Math:As);return t.domain(e),n=e.map(i),o},o.ticks=function(){var t=Ga(n),o=[],l=t[0],s=t[1],c=Math.floor(a(l)),u=Math.ceil(a(s)),f=e%1?2:e;if(isFinite(u-c)){if(r){for(;c<u;c++)for(var d=1;d<f;d++)o.push(i(c)*d);o.push(i(c))}else for(o.push(i(c));c++<u;)for(var d=f-1;d>0;d--)o.push(i(c)*d);for(c=0;o[c]<l;c++);for(u=o.length;o[u-1]>s;u--);o=o.slice(c,u)}return o},o.tickFormat=function(t,r){if(!arguments.length)return Ms;arguments.length<2?r=Ms:"function"!=typeof r&&(r=co.format(r));var n=Math.max(1,e*t/o.ticks().length);return function(t){var o=t/i(Math.round(a(t)));return o*e<e-.5&&(o*=e),o<=n?r(t):""}},o.copy=function(){return ii(t.copy(),e,r,n)},Ja(o,t)}function oi(t,e,r){function n(e){return t(a(e))}var a=li(e),i=li(1/e);return n.invert=function(e){return i(t.invert(e))},n.domain=function(e){return arguments.length?(t.domain((r=e.map(Number)).map(a)),n):r},n.ticks=function(t){return ei(r,t)},n.tickFormat=function(t,e){return ri(r,t,e)},n.nice=function(t){return n.domain(Ka(r,t))},n.exponent=function(o){return arguments.length?(a=li(e=o),i=li(1/e),t.domain(r.map(a)),n):e},n.copy=function(){return oi(t.copy(),e,r)},Ja(n,t)}function li(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function si(t,e){function r(r){return i[((a.get(r)||("range"===e.t?a.set(r,t.push(r)):NaN))-1)%i.length]}function n(e,r){return co.range(t.length).map(function(t){return e+r*t})}var a,i,o;return r.domain=function(n){if(!arguments.length)return t;t=[],a=new f;for(var i,o=-1,l=n.length;++o<l;)a.has(i=n[o])||a.set(i,t.push(i));return r[e.t].apply(r,e.a)},r.range=function(t){return arguments.length?(i=t,o=0,e={t:"range",a:arguments},r):i},r.rangePoints=function(a,l){arguments.length<2&&(l=0);var s=a[0],c=a[1],u=t.length<2?(s=(s+c)/2,0):(c-s)/(t.length-1+l);return i=n(s+u*l/2,u),o=0,e={t:"rangePoints",a:arguments},r},r.rangeRoundPoints=function(a,l){arguments.length<2&&(l=0);var s=a[0],c=a[1],u=t.length<2?(s=c=Math.round((s+c)/2),0):(c-s)/(t.length-1+l)|0;return i=n(s+Math.round(u*l/2+(c-s-(t.length-1+l)*u)/2),u),o=0,e={t:"rangeRoundPoints",a:arguments},r},r.rangeBands=function(a,l,s){arguments.length<2&&(l=0),arguments.length<3&&(s=l);var c=a[1]<a[0],u=a[c-0],f=a[1-c],d=(f-u)/(t.length-l+2*s);return i=n(u+d*s,d),c&&i.reverse(),o=d*(1-l),e={t:"rangeBands",a:arguments},r},r.rangeRoundBands=function(a,l,s){arguments.length<2&&(l=0),arguments.length<3&&(s=l);var c=a[1]<a[0],u=a[c-0],f=a[1-c],d=Math.floor((f-u)/(t.length-l+2*s));return i=n(u+Math.round((f-u-(t.length-l)*d)/2),d),c&&i.reverse(),o=Math.round(d*(1-l)),e={t:"rangeRoundBands",a:arguments},r},r.rangeBand=function(){return o},r.rangeExtent=function(){return Ga(e.a[0])},r.copy=function(){return si(t,e)},r.domain(t)}function ci(t,e){function r(){var r=0,a=e.length;for(l=[];++r<a;)l[r-1]=co.quantile(t,r/a);return n}function n(t){if(!isNaN(t=+t))return e[co.bisect(l,t)]}var l;return n.domain=function(e){return arguments.length?(t=e.map(i).filter(o).sort(a),r()):t},n.range=function(t){return arguments.length?(e=t,r()):e},n.quantiles=function(){return l},n.invertExtent=function(r){return r=e.indexOf(r),r<0?[NaN,NaN]:[r>0?l[r-1]:t[0],r<l.length?l[r]:t[t.length-1]]},n.copy=function(){return ci(t,e)},r()}function ui(t,e,r){function n(e){return r[Math.max(0,Math.min(o,Math.floor(i*(e-t))))]}function a(){return i=r.length/(e-t),o=r.length-1,n}var i,o;return n.domain=function(r){return arguments.length?(t=+r[0],e=+r[r.length-1],a()):[t,e]},n.range=function(t){return arguments.length?(r=t,a()):r},n.invertExtent=function(e){return e=r.indexOf(e),e=e<0?NaN:e/i+t,[e,e+1/i]},n.copy=function(){return ui(t,e,r)},a()}function fi(t,e){function r(r){if(r<=r)return e[co.bisect(t,r)]}return r.domain=function(e){return arguments.length?(t=e,r):t},r.range=function(t){return arguments.length?(e=t,r):e},r.invertExtent=function(r){return r=e.indexOf(r),[t[r-1],t[r]]},r.copy=function(){return fi(t,e)},r}function di(t){function e(t){return+t}return e.invert=e,e.domain=e.range=function(r){return arguments.length?(t=r.map(e),e):t},e.ticks=function(e){return ei(t,e)},e.tickFormat=function(e,r){return ri(t,e,r)},e.copy=function(){return di(t)},e}function pi(){return 0}function hi(t){return t.innerRadius}function gi(t){return t.outerRadius}function vi(t){return t.startAngle}function yi(t){return t.endAngle}function mi(t){return t&&t.padAngle}function xi(t,e,r,n){return(t-r)*e-(e-n)*t>0?0:1}function bi(t,e,r,n,a){var i=t[0]-e[0],o=t[1]-e[1],l=(a?n:-n)/Math.sqrt(i*i+o*o),s=l*o,c=-l*i,u=t[0]+s,f=t[1]+c,d=e[0]+s,p=e[1]+c,h=(u+d)/2,g=(f+p)/2,v=d-u,y=p-f,m=v*v+y*y,x=r-n,b=u*p-d*f,_=(y<0?-1:1)*Math.sqrt(Math.max(0,x*x*m-b*b)),w=(b*y-v*_)/m,k=(-b*v-y*_)/m,M=(b*y+v*_)/m,A=(-b*v+y*_)/m,T=w-h,L=k-g,C=M-h,S=A-g;return T*T+L*L>C*C+S*S&&(w=M,k=A),[[w-s,k-c],[w*r/x,k*r/x]]}function _i(t){function e(e){function o(){c.push("M",i(t(u),l))}for(var s,c=[],u=[],f=-1,d=e.length,p=Ct(r),h=Ct(n);++f<d;)a.call(this,s=e[f],f)?u.push([+p.call(this,s,f),+h.call(this,s,f)]):u.length&&(o(),u=[]);return u.length&&o(),c.length?c.join(""):null}var r=Or,n=zr,a=ze,i=wi,o=i.key,l=.7;return e.x=function(t){return arguments.length?(r=t,e):r},e.y=function(t){return arguments.length?(n=t,e):n},e.defined=function(t){return arguments.length?(a=t,e):a},e.interpolate=function(t){return arguments.length?(o="function"==typeof t?i=t:(i=zs.get(t)||wi).key,e):o},e.tension=function(t){return arguments.length?(l=t,e):l},e}function wi(t){return t.length>1?t.join("L"):t+"Z"}function ki(t){return t.join("L")+"Z"}function Mi(t){for(var e=0,r=t.length,n=t[0],a=[n[0],",",n[1]];++e<r;)a.push("H",(n[0]+(n=t[e])[0])/2,"V",n[1]);return r>1&&a.push("H",n[0]),a.join("")}function Ai(t){for(var e=0,r=t.length,n=t[0],a=[n[0],",",n[1]];++e<r;)a.push("V",(n=t[e])[1],"H",n[0]);return a.join("")}function Ti(t){for(var e=0,r=t.length,n=t[0],a=[n[0],",",n[1]];++e<r;)a.push("H",(n=t[e])[0],"V",n[1]);return a.join("")}function Li(t,e){return t.length<4?wi(t):t[1]+Oi(t.slice(1,-1),zi(t,e))}function Ci(t,e){return t.length<3?ki(t):t[0]+Oi((t.push(t[0]),t),zi([t[t.length-2]].concat(t,[t[1]]),e))}function Si(t,e){return t.length<3?wi(t):t[0]+Oi(t,zi(t,e))}function Oi(t,e){if(e.length<1||t.length!=e.length&&t.length!=e.length+2)return wi(t);var r=t.length!=e.length,n="",a=t[0],i=t[1],o=e[0],l=o,s=1;if(r&&(n+="Q"+(i[0]-2*o[0]/3)+","+(i[1]-2*o[1]/3)+","+i[0]+","+i[1],a=t[1],s=2),e.length>1){l=e[1],i=t[s],s++,n+="C"+(a[0]+o[0])+","+(a[1]+o[1])+","+(i[0]-l[0])+","+(i[1]-l[1])+","+i[0]+","+i[1];for(var c=2;c<e.length;c++,s++)i=t[s],l=e[c],n+="S"+(i[0]-l[0])+","+(i[1]-l[1])+","+i[0]+","+i[1]}if(r){var u=t[s];n+="Q"+(i[0]+2*l[0]/3)+","+(i[1]+2*l[1]/3)+","+u[0]+","+u[1]}return n}function zi(t,e){for(var r,n=[],a=(1-e)/2,i=t[0],o=t[1],l=1,s=t.length;++l<s;)r=i,i=o,o=t[l],n.push([a*(o[0]-r[0]),a*(o[1]-r[1])]);return n}function Di(t){if(t.length<3)return wi(t);var e=1,r=t.length,n=t[0],a=n[0],i=n[1],o=[a,a,a,(n=t[1])[0]],l=[i,i,i,n[1]],s=[a,",",i,"L",Ii(Es,o),",",Ii(Es,l)];for(t.push(t[r-1]);++e<=r;)n=t[e],o.shift(),o.push(n[0]),l.shift(),l.push(n[1]),Ri(s,o,l);return t.pop(),s.push("L",n),s.join("")}function Pi(t){if(t.length<4)return wi(t);for(var e,r=[],n=-1,a=t.length,i=[0],o=[0];++n<3;)e=t[n],i.push(e[0]),o.push(e[1]);for(r.push(Ii(Es,i)+","+Ii(Es,o)),--n;++n<a;)e=t[n],i.shift(),i.push(e[0]),o.shift(),o.push(e[1]),Ri(r,i,o);return r.join("")}function Ei(t){for(var e,r,n=-1,a=t.length,i=a+4,o=[],l=[];++n<4;)r=t[n%a],o.push(r[0]),l.push(r[1]);for(e=[Ii(Es,o),",",Ii(Es,l)],--n;++n<i;)r=t[n%a],o.shift(),o.push(r[0]),l.shift(),l.push(r[1]),Ri(e,o,l);return e.join("")}function Ni(t,e){var r=t.length-1;if(r)for(var n,a,i=t[0][0],o=t[0][1],l=t[r][0]-i,s=t[r][1]-o,c=-1;++c<=r;)n=t[c],a=c/r,n[0]=e*n[0]+(1-e)*(i+a*l),n[1]=e*n[1]+(1-e)*(o+a*s);return Di(t)}function Ii(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function Ri(t,e,r){t.push("C",Ii(Ds,e),",",Ii(Ds,r),",",Ii(Ps,e),",",Ii(Ps,r),",",Ii(Es,e),",",Ii(Es,r))}function Fi(t,e){return(e[1]-t[1])/(e[0]-t[0])}function ji(t){for(var e=0,r=t.length-1,n=[],a=t[0],i=t[1],o=n[0]=Fi(a,i);++e<r;)n[e]=(o+(o=Fi(a=i,i=t[e+1])))/2;return n[e]=o,n}function Bi(t){for(var e,r,n,a,i=[],o=ji(t),l=-1,s=t.length-1;++l<s;)e=Fi(t[l],t[l+1]),bo(e)<Ro?o[l]=o[l+1]=0:(r=o[l]/e,n=o[l+1]/e,(a=r*r+n*n)>9&&(a=3*e/Math.sqrt(a),o[l]=a*r,o[l+1]=a*n));for(l=-1;++l<=s;)a=(t[Math.min(s,l+1)][0]-t[Math.max(0,l-1)][0])/(6*(1+o[l]*o[l])),i.push([a||0,o[l]*a||0]);return i}function qi(t){return t.length<3?wi(t):t[0]+Oi(t,Bi(t))}function Hi(t){for(var e,r,n,a=-1,i=t.length;++a<i;)e=t[a],r=e[0],n=e[1]-Ho,e[0]=r*Math.cos(n),e[1]=r*Math.sin(n);return t}function Vi(t){function e(e){function s(){g.push("M",l(t(y),f),u,c(t(v.reverse()),f),"Z")}for(var d,p,h,g=[],v=[],y=[],m=-1,x=e.length,b=Ct(r),_=Ct(a),w=r===n?function(){return p}:Ct(n),k=a===i?function(){return h}:Ct(i);++m<x;)o.call(this,d=e[m],m)?(v.push([p=+b.call(this,d,m),h=+_.call(this,d,m)]),y.push([+w.call(this,d,m),+k.call(this,d,m)])):v.length&&(s(),v=[],y=[]);return v.length&&s(),g.length?g.join(""):null}var r=Or,n=Or,a=0,i=zr,o=ze,l=wi,s=l.key,c=l,u="L",f=.7;return e.x=function(t){return arguments.length?(r=n=t,e):n},e.x0=function(t){return arguments.length?(r=t,e):r},e.x1=function(t){return arguments.length?(n=t,e):n},e.y=function(t){return arguments.length?(a=i=t,e):i},e.y0=function(t){return arguments.length?(a=t,e):a},e.y1=function(t){return arguments.length?(i=t,e):i},e.defined=function(t){return arguments.length?(o=t,e):o},e.interpolate=function(t){return arguments.length?(s="function"==typeof t?l=t:(l=zs.get(t)||wi).key,c=l.reverse||l,u=l.closed?"M":"L",e):s},e.tension=function(t){return arguments.length?(f=t,e):f},e}function Ui(t){return t.radius}function Gi(t){return[t.x,t.y]}function Xi(t){return function(){var e=t.apply(this,arguments),r=e[0],n=e[1]-Ho;return[r*Math.cos(n),r*Math.sin(n)]}}function Yi(){return 64}function Zi(){return"circle"}function Wi(t){var e=Math.sqrt(t/jo);return"M0,"+e+"A"+e+","+e+" 0 1,1 0,"+-e+"A"+e+","+e+" 0 1,1 0,"+e+"Z"}function Qi(t){return function(){var e,r,n;(e=this[t])&&(n=e[r=e.active])&&(n.timer.c=null,n.timer.t=NaN,--e.count?delete e[r]:delete this[t],e.active+=.5,n.event&&n.event.interrupt.call(this,this.__data__,n.index))}}function $i(t,e,r){return Ao(t,qs),t.namespace=e,t.id=r,t}function Ji(t,e,r,n){var a=t.id,i=t.namespace;return G(t,"function"==typeof r?function(t,o,l){t[i][a].tween.set(e,n(r.call(t,t.__data__,o,l)))}:(r=n(r),function(t){t[i][a].tween.set(e,r)}))}function Ki(t){return null==t&&(t=""),function(){this.textContent=t}}function to(t){return null==t?"__transition__":"__transition_"+t+"__"}function eo(t,e,r,n,a){function i(t){var e=g.delay;if(c.t=e+s,e<=t)return o(t-e);c.c=o}function o(r){var a=h.active,i=h[a];i&&(i.timer.c=null,i.timer.t=NaN,--h.count,delete h[a],i.event&&i.event.interrupt.call(t,t.__data__,i.index));for(var o in h)if(+o<n){var f=h[o];f.timer.c=null,f.timer.t=NaN,--h.count,delete h[o]}c.c=l,Pt(function(){return c.c&&l(r||1)&&(c.c=null,c.t=NaN),1},0,s),h.active=n,g.event&&g.event.start.call(t,t.__data__,e),p=[],g.tween.forEach(function(r,n){(n=n.call(t,t.__data__,e))&&p.push(n)}),d=g.ease,u=g.duration}function l(a){for(var i=a/u,o=d(i),l=p.length;l>0;)p[--l].call(t,o);if(i>=1)return g.event&&g.event.end.call(t,t.__data__,e),--h.count?delete h[n]:delete t[r],1}var s,c,u,d,p,h=t[r]||(t[r]={active:0,count:0}),g=h[n];g||(s=a.time,c=Pt(i,0,s),g=h[n]={tween:new f,time:s,timer:c,delay:a.delay,duration:a.duration,ease:a.ease,index:e},a=null,++h.count)}function ro(t,e,r){t.attr("transform",function(t){var n=e(t);return"translate("+(isFinite(n)?n:r(t))+",0)"})}function no(t,e,r){t.attr("transform",function(t){var n=e(t);return"translate(0,"+(isFinite(n)?n:r(t))+")"})}function ao(t){return t.toISOString()}function io(t,e,r){function n(e){return t(e)}function a(t,r){var n=t[1]-t[0],a=n/r,i=co.bisect(Qs,a);return i==Qs.length?[e.year,ti(t.map(function(t){return t/31536e6}),r)[2]]:i?e[a/Qs[i-1]<Qs[i]/a?i-1:i]:[Ks,ti(t,r)[2]]}return n.invert=function(e){return oo(t.invert(e))},n.domain=function(e){return arguments.length?(t.domain(e),n):t.domain().map(oo)},n.nice=function(t,e){function r(r){return!isNaN(r)&&!t.range(r,oo(+r+1),e).length}var i=n.domain(),o=Ga(i),l=null==t?a(o,10):"number"==typeof t&&a(o,t);return l&&(t=l[0],e=l[1]),n.domain(Za(i,e>1?{floor:function(e){for(;r(e=t.floor(e));)e=oo(e-1);return e},ceil:function(e){for(;r(e=t.ceil(e));)e=oo(+e+1);return e}}:t))},n.ticks=function(t,e){var r=Ga(n.domain()),i=null==t?a(r,10):"number"==typeof t?a(r,t):!t.range&&[{range:t},e];return i&&(t=i[0],e=i[1]),t.range(r[0],oo(+r[1]+1),e<1?1:e)},n.tickFormat=function(){return r},n.copy=function(){return io(t.copy(),e,r)},Ja(n,t)}function oo(t){return new Date(t)}function lo(t){return JSON.parse(t.responseText)}function so(t){var e=po.createRange();return e.selectNode(po.body),e.createContextualFragment(t.responseText)}var co={version:"3.5.17"},uo=[].slice,fo=function(t){return uo.call(t)},po=this.document;if(po)try{fo(po.documentElement.childNodes)[0].nodeType}catch(t){fo=function(t){for(var e=t.length,r=new Array(e);e--;)r[e]=t[e];return r}}if(Date.now||(Date.now=function(){return+new Date}),po)try{po.createElement("DIV").style.setProperty("opacity",0,"")}catch(t){var ho=this.Element.prototype,go=ho.setAttribute,vo=ho.setAttributeNS,yo=this.CSSStyleDeclaration.prototype,mo=yo.setProperty;ho.setAttribute=function(t,e){go.call(this,t,e+"")},ho.setAttributeNS=function(t,e,r){vo.call(this,t,e,r+"")},yo.setProperty=function(t,e,r){mo.call(this,t,e+"",r)}}co.ascending=a,co.descending=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},co.min=function(t,e){var r,n,a=-1,i=t.length;if(1===arguments.length){for(;++a<i;)if(null!=(n=t[a])&&n>=n){r=n;break}for(;++a<i;)null!=(n=t[a])&&r>n&&(r=n)}else{for(;++a<i;)if(null!=(n=e.call(t,t[a],a))&&n>=n){r=n;break}for(;++a<i;)null!=(n=e.call(t,t[a],a))&&r>n&&(r=n)}return r},co.max=function(t,e){var r,n,a=-1,i=t.length;if(1===arguments.length){for(;++a<i;)if(null!=(n=t[a])&&n>=n){r=n;break}for(;++a<i;)null!=(n=t[a])&&n>r&&(r=n)}else{for(;++a<i;)if(null!=(n=e.call(t,t[a],a))&&n>=n){r=n;break}for(;++a<i;)null!=(n=e.call(t,t[a],a))&&n>r&&(r=n)}return r},co.extent=function(t,e){var r,n,a,i=-1,o=t.length;if(1===arguments.length){for(;++i<o;)if(null!=(n=t[i])&&n>=n){r=a=n;break}for(;++i<o;)null!=(n=t[i])&&(r>n&&(r=n),a<n&&(a=n))}else{for(;++i<o;)if(null!=(n=e.call(t,t[i],i))&&n>=n){r=a=n;break}for(;++i<o;)null!=(n=e.call(t,t[i],i))&&(r>n&&(r=n),a<n&&(a=n))}return[r,a]},co.sum=function(t,e){var r,n=0,a=t.length,i=-1;if(1===arguments.length)for(;++i<a;)o(r=+t[i])&&(n+=r);else for(;++i<a;)o(r=+e.call(t,t[i],i))&&(n+=r);return n},co.mean=function(t,e){var r,n=0,a=t.length,l=-1,s=a;if(1===arguments.length)for(;++l<a;)o(r=i(t[l]))?n+=r:--s;else for(;++l<a;)o(r=i(e.call(t,t[l],l)))?n+=r:--s;if(s)return n/s},co.quantile=function(t,e){var r=(t.length-1)*e+1,n=Math.floor(r),a=+t[n-1],i=r-n;return i?a+i*(t[n]-a):a},co.median=function(t,e){var r,n=[],l=t.length,s=-1;if(1===arguments.length)for(;++s<l;)o(r=i(t[s]))&&n.push(r);else for(;++s<l;)o(r=i(e.call(t,t[s],s)))&&n.push(r);if(n.length)return co.quantile(n.sort(a),.5)},co.variance=function(t,e){var r,n,a=t.length,l=0,s=0,c=-1,u=0;if(1===arguments.length)for(;++c<a;)o(r=i(t[c]))&&(n=r-l,l+=n/++u,s+=n*(r-l));else for(;++c<a;)o(r=i(e.call(t,t[c],c)))&&(n=r-l,l+=n/++u,s+=n*(r-l));if(u>1)return s/(u-1)},co.deviation=function(){var t=co.variance.apply(this,arguments);return t?Math.sqrt(t):t};var xo=l(a);co.bisectLeft=xo.left,co.bisect=co.bisectRight=xo.right,co.bisector=function(t){return l(1===t.length?function(e,r){return a(t(e),r)}:t)},co.shuffle=function(t,e,r){(i=arguments.length)<3&&(r=t.length,i<2&&(e=0));for(var n,a,i=r-e;i;)a=Math.random()*i--|0,n=t[i+e],t[i+e]=t[a+e],t[a+e]=n;return t},co.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},co.pairs=function(t){for(var e=0,r=t.length-1,n=t[0],a=new Array(r<0?0:r);e<r;)a[e]=[n,n=t[++e]];return a},co.transpose=function(t){if(!(a=t.length))return[];for(var e=-1,r=co.min(t,s),n=new Array(r);++e<r;)for(var a,i=-1,o=n[e]=new Array(a);++i<a;)o[i]=t[i][e];return n},co.zip=function(){return co.transpose(arguments)},co.keys=function(t){var e=[];for(var r in t)e.push(r);return e},co.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},co.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},co.merge=function(t){for(var e,r,n,a=t.length,i=-1,o=0;++i<a;)o+=t[i].length;for(r=new Array(o);--a>=0;)for(n=t[a],e=n.length;--e>=0;)r[--o]=n[e];return r};var bo=Math.abs;co.range=function(t,e,r){if(arguments.length<3&&(r=1,arguments.length<2&&(e=t,t=0)),(e-t)/r==1/0)throw new Error("infinite range");var n,a=[],i=c(bo(r)),o=-1;if(t*=i,e*=i,r*=i,r<0)for(;(n=t+r*++o)>e;)a.push(n/i);else for(;(n=t+r*++o)<e;)a.push(n/i);return a},co.map=function(t,e){var r=new f;if(t instanceof f)t.forEach(function(t,e){r.set(t,e)});else if(Array.isArray(t)){var n,a=-1,i=t.length;if(1===arguments.length)for(;++a<i;)r.set(a,t[a]);else for(;++a<i;)r.set(e.call(t,n=t[a],a),n)}else for(var o in t)r.set(o,t[o]);return r};var _o="__proto__",wo="\0";u(f,{has:h,get:function(t){return this._[d(t)]},set:function(t,e){return this._[d(t)]=e},remove:g,keys:v,values:function(){var t=[];for(var e in this._)t.push(this._[e]);return t},entries:function(){var t=[];for(var e in this._)t.push({key:p(e),value:this._[e]});return t},size:y,empty:m,forEach:function(t){for(var e in this._)t.call(this,p(e),this._[e])}}),co.nest=function(){function t(e,o,l){if(l>=i.length)return n?n.call(a,o):r?o.sort(r):o;for(var s,c,u,d,p=-1,h=o.length,g=i[l++],v=new f;++p<h;)(d=v.get(s=g(c=o[p])))?d.push(c):v.set(s,[c]);return e?(c=e(),u=function(r,n){c.set(r,t(e,n,l))}):(c={},u=function(r,n){c[r]=t(e,n,l)}),v.forEach(u),c}function e(t,r){if(r>=i.length)return t;var n=[],a=o[r++];return t.forEach(function(t,a){n.push({key:t,values:e(a,r)})}),a?n.sort(function(t,e){return a(t.key,e.key)}):n}var r,n,a={},i=[],o=[];return a.map=function(e,r){return t(r,e,0)},a.entries=function(r){return e(t(co.map,r,0),0)},a.key=function(t){return i.push(t),a},a.sortKeys=function(t){return o[i.length-1]=t,a},a.sortValues=function(t){return r=t,a},a.rollup=function(t){return n=t,a},a},co.set=function(t){var e=new x;if(t)for(var r=0,n=t.length;r<n;++r)e.add(t[r]);return e},u(x,{has:h,add:function(t){return this._[d(t+="")]=!0,t},remove:g,values:v,size:y,empty:m,forEach:function(t){for(var e in this._)t.call(this,p(e))}}),co.behavior={},co.rebind=function(t,e){for(var r,n=1,a=arguments.length;++n<a;)t[r=arguments[n]]=_(t,e,e[r]);return t};var ko=["webkit","ms","moz","Moz","o","O"];co.dispatch=function(){for(var t=new M,e=-1,r=arguments.length;++e<r;)t[arguments[e]]=A(t);return t},M.prototype.on=function(t,e){var r=t.indexOf("."),n="";if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t)return arguments.length<2?this[t].on(n):this[t].on(n,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(n,null);return this}},co.event=null,co.requote=function(t){return t.replace(Mo,"\\$&")};var Mo=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Ao={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var r in e)t[r]=e[r]},To=function(t,e){return e.querySelector(t)},Lo=function(t,e){return e.querySelectorAll(t)},Co=function(t,e){var r=t.matches||t[w(t,"matchesSelector")];return(Co=function(t,e){return r.call(t,e)})(t,e)};"function"==typeof Sizzle&&(To=function(t,e){return Sizzle(t,e)[0]||null},Lo=Sizzle,Co=Sizzle.matchesSelector),co.selection=function(){return co.select(po.documentElement)};var So=co.selection.prototype=[];So.select=function(t){var e,r,n,a,i=[];t=O(t);for(var o=-1,l=this.length;++o<l;){i.push(e=[]),e.parentNode=(n=this[o]).parentNode;for(var s=-1,c=n.length;++s<c;)(a=n[s])?(e.push(r=t.call(a,a.__data__,s,o)),r&&"__data__"in a&&(r.__data__=a.__data__)):e.push(null)}return S(i)},So.selectAll=function(t){var e,r,n=[];t=z(t);for(var a=-1,i=this.length;++a<i;)for(var o=this[a],l=-1,s=o.length;++l<s;)(r=o[l])&&(n.push(e=fo(t.call(r,r.__data__,l,a))),e.parentNode=r);return S(n)};var Oo="http://www.w3.org/1999/xhtml",zo={svg:"http://www.w3.org/2000/svg",xhtml:Oo,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};co.ns={prefix:zo,qualify:function(t){var e=t.indexOf(":"),r=t;return e>=0&&"xmlns"!==(r=t.slice(0,e))&&(t=t.slice(e+1)),zo.hasOwnProperty(r)?{space:zo[r],local:t}:t}},So.attr=function(t,e){if(arguments.length<2){if("string"==typeof t){var r=this.node();return t=co.ns.qualify(t),t.local?r.getAttributeNS(t.space,t.local):r.getAttribute(t)}for(e in t)this.each(D(e,t[e]));return this}return this.each(D(t,e))},So.classed=function(t,e){if(arguments.length<2){if("string"==typeof t){var r=this.node(),n=(t=N(t)).length,a=-1;if(e=r.classList){for(;++a<n;)if(!e.contains(t[a]))return!1}else for(e=r.getAttribute("class");++a<n;)if(!E(t[a]).test(e))return!1;return!0}for(e in t)this.each(I(e,t[e]));return this}return this.each(I(t,e))},So.style=function(t,e,r){var a=arguments.length;if(a<3){if("string"!=typeof t){a<2&&(e="");for(r in t)this.each(F(r,t[r],e));return this}if(a<2){var i=this.node();return n(i).getComputedStyle(i,null).getPropertyValue(t)}r=""}return this.each(F(t,e,r))},So.property=function(t,e){if(arguments.length<2){if("string"==typeof t)return this.node()[t];for(e in t)this.each(j(e,t[e]));return this}return this.each(j(t,e))},So.text=function(t){return arguments.length?this.each("function"==typeof t?function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}:null==t?function(){this.textContent=""}:function(){this.textContent=t}):this.node().textContent},So.html=function(t){return arguments.length?this.each("function"==typeof t?function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}:null==t?function(){this.innerHTML=""}:function(){this.innerHTML=t}):this.node().innerHTML},So.append=function(t){return t=B(t),this.select(function(){return this.appendChild(t.apply(this,arguments))})},So.insert=function(t,e){return t=B(t),e=O(e),this.select(function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)})},So.remove=function(){return this.each(q)},So.data=function(t,e){function r(t,r){var n,a,i,o=t.length,u=r.length,d=Math.min(o,u),p=new Array(u),h=new Array(u),g=new Array(o);if(e){var v,y=new f,m=new Array(o);for(n=-1;++n<o;)(a=t[n])&&(y.has(v=e.call(a,a.__data__,n))?g[n]=a:y.set(v,a),m[n]=v);for(n=-1;++n<u;)(a=y.get(v=e.call(r,i=r[n],n)))?!0!==a&&(p[n]=a,a.__data__=i):h[n]=H(i),y.set(v,!0);for(n=-1;++n<o;)n in m&&!0!==y.get(m[n])&&(g[n]=t[n])}else{for(n=-1;++n<d;)a=t[n],i=r[n],a?(a.__data__=i,p[n]=a):h[n]=H(i);for(;n<u;++n)h[n]=H(r[n]);for(;n<o;++n)g[n]=t[n]}h.update=p,h.parentNode=p.parentNode=g.parentNode=t.parentNode,l.push(h),s.push(p),c.push(g)}var n,a,i=-1,o=this.length;if(!arguments.length){for(t=new Array(o=(n=this[0]).length);++i<o;)(a=n[i])&&(t[i]=a.__data__);return t}var l=X([]),s=S([]),c=S([]);if("function"==typeof t)for(;++i<o;)r(n=this[i],t.call(n,n.parentNode.__data__,i));else for(;++i<o;)r(n=this[i],t);return s.enter=function(){return l},s.exit=function(){return c},s},So.datum=function(t){return arguments.length?this.property("__data__",t):this.property("__data__")},So.filter=function(t){var e,r,n,a=[];"function"!=typeof t&&(t=V(t));for(var i=0,o=this.length;i<o;i++){a.push(e=[]),e.parentNode=(r=this[i]).parentNode;for(var l=0,s=r.length;l<s;l++)(n=r[l])&&t.call(n,n.__data__,l,i)&&e.push(n)}return S(a)},So.order=function(){for(var t=-1,e=this.length;++t<e;)for(var r,n=this[t],a=n.length-1,i=n[a];--a>=0;)(r=n[a])&&(i&&i!==r.nextSibling&&i.parentNode.insertBefore(r,i),i=r);return this},So.sort=function(t){t=U.apply(this,arguments);for(var e=-1,r=this.length;++e<r;)this[e].sort(t);return this.order()},So.each=function(t){return G(this,function(e,r,n){t.call(e,e.__data__,r,n)})},So.call=function(t){var e=fo(arguments);return t.apply(e[0]=this,e),this},So.empty=function(){return!this.node()},So.node=function(){for(var t=0,e=this.length;t<e;t++)for(var r=this[t],n=0,a=r.length;n<a;n++){var i=r[n];if(i)return i}return null},So.size=function(){var t=0;return G(this,function(){++t}),t};var Do=[];co.selection.enter=X,co.selection.enter.prototype=Do,Do.append=So.append,Do.empty=So.empty,Do.node=So.node,Do.call=So.call,Do.size=So.size,Do.select=function(t){for(var e,r,n,a,i,o=[],l=-1,s=this.length;++l<s;){n=(a=this[l]).update,o.push(e=[]),e.parentNode=a.parentNode;for(var c=-1,u=a.length;++c<u;)(i=a[c])?(e.push(n[c]=r=t.call(a.parentNode,i.__data__,c,l)),r.__data__=i.__data__):e.push(null)}return S(o)},Do.insert=function(t,e){return arguments.length<2&&(e=Y(this)),So.insert.call(this,t,e)},co.select=function(t){var r;return"string"==typeof t?(r=[To(t,po)],r.parentNode=po.documentElement):(r=[t],r.parentNode=e(t)),S([r])},co.selectAll=function(t){var e;return"string"==typeof t?(e=fo(Lo(t,po)),e.parentNode=po.documentElement):(e=fo(t),e.parentNode=null),S([e])},So.on=function(t,e,r){var n=arguments.length;if(n<3){if("string"!=typeof t){n<2&&(e=!1);for(r in t)this.each(Z(r,t[r],e));return this}if(n<2)return(n=this.node()["__on"+t])&&n._;r=!1}return this.each(Z(t,e,r))};var Po=co.map({mouseenter:"mouseover",mouseleave:"mouseout"});po&&Po.forEach(function(t){"on"+t in po&&Po.remove(t)});var Eo,No=0;co.mouse=function(t){return J(t,L())};var Io=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;co.touch=function(t,e,r){if(arguments.length<3&&(r=e,e=L().changedTouches),e)for(var n,a=0,i=e.length;a<i;++a)if((n=e[a]).identifier===r)return J(t,n)},co.behavior.drag=function(){function t(){this.on("mousedown.drag",i).on("touchstart.drag",o)}function e(t,e,n,i,o){return function(){function l(){var t,r,n=e(d,g);n&&(t=n[0]-x[0],r=n[1]-x[1],h|=t|r,x=n,p({type:"drag",x:n[0]+c[0],y:n[1]+c[1],dx:t,dy:r}))}function s(){e(d,g)&&(y.on(i+v,null).on(o+v,null),m(h),p({type:"dragend"}))}var c,u=this,f=co.event.target.correspondingElement||co.event.target,d=u.parentNode,p=r.of(u,arguments),h=0,g=t(),v=".drag"+(null==g?"":"-"+g),y=co.select(n(f)).on(i+v,l).on(o+v,s),m=$(f),x=e(d,g);a?(c=a.apply(u,arguments),c=[c.x-x[0],c.y-x[1]]):c=[0,0],p({type:"dragstart"})}}var r=C(t,"drag","dragstart","dragend"),a=null,i=e(k,co.mouse,n,"mousemove","mouseup"),o=e(K,co.touch,b,"touchmove","touchend");return t.origin=function(e){return arguments.length?(a=e,t):a},co.rebind(t,r,"on")},co.touches=function(t,e){return arguments.length<2&&(e=L().touches),e?fo(e).map(function(e){var r=J(t,e);return r.identifier=e.identifier,r}):[]};var Ro=1e-6,Fo=Ro*Ro,jo=Math.PI,Bo=2*jo,qo=Bo-Ro,Ho=jo/2,Vo=jo/180,Uo=180/jo,Go=Math.SQRT2;co.interpolateZoom=function(t,e){var r,n,a=t[0],i=t[1],o=t[2],l=e[0],s=e[1],c=e[2],u=l-a,f=s-i,d=u*u+f*f;if(d<Fo)n=Math.log(c/o)/Go,r=function(t){return[a+t*u,i+t*f,o*Math.exp(Go*t*n)]};else{var p=Math.sqrt(d),h=(c*c-o*o+4*d)/(2*o*2*p),g=(c*c-o*o-4*d)/(2*c*2*p),v=Math.log(Math.sqrt(h*h+1)-h),y=Math.log(Math.sqrt(g*g+1)-g);n=(y-v)/Go,r=function(t){var e=t*n,r=it(v),l=o/(2*p)*(r*ot(Go*e+v)-at(v));return[a+l*u,i+l*f,o*r/it(Go*e+v)]}}return r.duration=1e3*n,r},co.behavior.zoom=function(){function t(t){t.on(z,f).on(Yo+".zoom",p).on("dblclick.zoom",h).on(E,d)}function e(t){return[(t[0]-M.x)/M.k,(t[1]-M.y)/M.k]}function r(t){return[t[0]*M.k+M.x,t[1]*M.k+M.y]}function a(t){M.k=Math.max(L[0],Math.min(L[1],t))}function i(t,e){e=r(e),M.x+=t[0]-e[0],M.y+=t[1]-e[1]}function o(e,r,n,o){e.__chart__={x:M.x,y:M.y,k:M.k},a(Math.pow(2,o)),i(v=r,n),e=co.select(e),S>0&&(e=e.transition().duration(S)),e.call(t.event)}function l(){_&&_.domain(b.range().map(function(t){return(t-M.x)/M.k}).map(b.invert)),k&&k.domain(w.range().map(function(t){return(t-M.y)/M.k}).map(w.invert))}function s(t){O++||t({type:"zoomstart"})}function c(t){l(),t({type:"zoom",scale:M.k,translate:[M.x,M.y]})}function u(t){--O||(t({type:"zoomend"}),v=null)}function f(){function t(){l=1,i(co.mouse(a),d),c(o)}function r(){f.on(D,null).on(P,null),p(l),u(o)}var a=this,o=N.of(a,arguments),l=0,f=co.select(n(a)).on(D,t).on(P,r),d=e(co.mouse(a)),p=$(a);Bs.call(a),s(o)}function d(){function t(){var t=co.touches(h);return p=M.k,t.forEach(function(t){ t.identifier in v&&(v[t.identifier]=e(t))}),t}function r(){var e=co.event.target;co.select(e).on(b,n).on(_,l),w.push(e);for(var r=co.event.changedTouches,a=0,i=r.length;a<i;++a)v[r[a].identifier]=null;var s=t(),c=Date.now();if(1===s.length){if(c-x<500){var u=s[0];o(h,u,v[u.identifier],Math.floor(Math.log(M.k)/Math.LN2)+1),T()}x=c}else if(s.length>1){var u=s[0],f=s[1],d=u[0]-f[0],p=u[1]-f[1];y=d*d+p*p}}function n(){var t,e,r,n,o=co.touches(h);Bs.call(h);for(var l=0,s=o.length;l<s;++l,n=null)if(r=o[l],n=v[r.identifier]){if(e)break;t=r,e=n}if(n){var u=(u=r[0]-t[0])*u+(u=r[1]-t[1])*u,f=y&&Math.sqrt(u/y);t=[(t[0]+r[0])/2,(t[1]+r[1])/2],e=[(e[0]+n[0])/2,(e[1]+n[1])/2],a(f*p)}x=null,i(t,e),c(g)}function l(){if(co.event.touches.length){for(var e=co.event.changedTouches,r=0,n=e.length;r<n;++r)delete v[e[r].identifier];for(var a in v)return void t()}co.selectAll(w).on(m,null),k.on(z,f).on(E,d),A(),u(g)}var p,h=this,g=N.of(h,arguments),v={},y=0,m=".zoom-"+co.event.changedTouches[0].identifier,b="touchmove"+m,_="touchend"+m,w=[],k=co.select(h),A=$(h);r(),s(g),k.on(z,null).on(E,r)}function p(){var t=N.of(this,arguments);m?clearTimeout(m):(Bs.call(this),g=e(v=y||co.mouse(this)),s(t)),m=setTimeout(function(){m=null,u(t)},50),T(),a(Math.pow(2,.002*Xo())*M.k),i(v,g),c(t)}function h(){var t=co.mouse(this),r=Math.log(M.k)/Math.LN2;o(this,t,e(t),co.event.shiftKey?Math.ceil(r)-1:Math.floor(r)+1)}var g,v,y,m,x,b,_,w,k,M={x:0,y:0,k:1},A=[960,500],L=Zo,S=250,O=0,z="mousedown.zoom",D="mousemove.zoom",P="mouseup.zoom",E="touchstart.zoom",N=C(t,"zoomstart","zoom","zoomend");return Yo||(Yo="onwheel"in po?(Xo=function(){return-co.event.deltaY*(co.event.deltaMode?120:1)},"wheel"):"onmousewheel"in po?(Xo=function(){return co.event.wheelDelta},"mousewheel"):(Xo=function(){return-co.event.detail},"MozMousePixelScroll")),t.event=function(t){t.each(function(){var t=N.of(this,arguments),e=M;Fs?co.select(this).transition().each("start.zoom",function(){M=this.__chart__||{x:0,y:0,k:1},s(t)}).tween("zoom:zoom",function(){var r=A[0],n=A[1],a=v?v[0]:r/2,i=v?v[1]:n/2,o=co.interpolateZoom([(a-M.x)/M.k,(i-M.y)/M.k,r/M.k],[(a-e.x)/e.k,(i-e.y)/e.k,r/e.k]);return function(e){var n=o(e),l=r/n[2];this.__chart__=M={x:a-n[0]*l,y:i-n[1]*l,k:l},c(t)}}).each("interrupt.zoom",function(){u(t)}).each("end.zoom",function(){u(t)}):(this.__chart__=M,s(t),c(t),u(t))})},t.translate=function(e){return arguments.length?(M={x:+e[0],y:+e[1],k:M.k},l(),t):[M.x,M.y]},t.scale=function(e){return arguments.length?(M={x:M.x,y:M.y,k:null},a(+e),l(),t):M.k},t.scaleExtent=function(e){return arguments.length?(L=null==e?Zo:[+e[0],+e[1]],t):L},t.center=function(e){return arguments.length?(y=e&&[+e[0],+e[1]],t):y},t.size=function(e){return arguments.length?(A=e&&[+e[0],+e[1]],t):A},t.duration=function(e){return arguments.length?(S=+e,t):S},t.x=function(e){return arguments.length?(_=e,b=e.copy(),M={x:0,y:0,k:1},t):_},t.y=function(e){return arguments.length?(k=e,w=e.copy(),M={x:0,y:0,k:1},t):k},co.rebind(t,N,"on")};var Xo,Yo,Zo=[0,1/0];co.color=st,st.prototype.toString=function(){return this.rgb()+""},co.hsl=ct;var Wo=ct.prototype=new st;Wo.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new ct(this.h,this.s,this.l/t)},Wo.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new ct(this.h,this.s,t*this.l)},Wo.rgb=function(){return ut(this.h,this.s,this.l)},co.hcl=ft;var Qo=ft.prototype=new st;Qo.brighter=function(t){return new ft(this.h,this.c,Math.min(100,this.l+$o*(arguments.length?t:1)))},Qo.darker=function(t){return new ft(this.h,this.c,Math.max(0,this.l-$o*(arguments.length?t:1)))},Qo.rgb=function(){return dt(this.h,this.c,this.l).rgb()},co.lab=pt;var $o=18,Jo=.95047,Ko=1,tl=1.08883,el=pt.prototype=new st;el.brighter=function(t){return new pt(Math.min(100,this.l+$o*(arguments.length?t:1)),this.a,this.b)},el.darker=function(t){return new pt(Math.max(0,this.l-$o*(arguments.length?t:1)),this.a,this.b)},el.rgb=function(){return ht(this.l,this.a,this.b)},co.rgb=xt;var rl=xt.prototype=new st;rl.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,r=this.g,n=this.b,a=30;return e||r||n?(e&&e<a&&(e=a),r&&r<a&&(r=a),n&&n<a&&(n=a),new xt(Math.min(255,e/t),Math.min(255,r/t),Math.min(255,n/t))):new xt(a,a,a)},rl.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new xt(t*this.r,t*this.g,t*this.b)},rl.hsl=function(){return Mt(this.r,this.g,this.b)},rl.toString=function(){return"#"+wt(this.r)+wt(this.g)+wt(this.b)};var nl=co.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});nl.forEach(function(t,e){nl.set(t,bt(e))}),co.functor=Ct,co.xhr=St(b),co.dsv=function(t,e){function r(t,r,i){arguments.length<3&&(i=r,r=null);var o=Ot(t,e,null==r?n:a(r),i);return o.row=function(t){return arguments.length?o.response(null==(r=t)?n:a(t)):r},o}function n(t){return r.parse(t.responseText)}function a(t){return function(e){return r.parse(e.responseText,t)}}function i(e){return e.map(o).join(t)}function o(t){return l.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}var l=new RegExp('["'+t+"\n]"),s=t.charCodeAt(0);return r.parse=function(t,e){var n;return r.parseRows(t,function(t,r){if(n)return n(t,r-1);var a=new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+"]"}).join(",")+"}");n=e?function(t,r){return e(a(t),r)}:a})},r.parseRows=function(t,e){function r(){if(u>=c)return o;if(a)return a=!1,i;var e=u;if(34===t.charCodeAt(e)){for(var r=e;r++<c;)if(34===t.charCodeAt(r)){if(34!==t.charCodeAt(r+1))break;++r}u=r+2;var n=t.charCodeAt(r+1);return 13===n?(a=!0,10===t.charCodeAt(r+2)&&++u):10===n&&(a=!0),t.slice(e+1,r).replace(/""/g,'"')}for(;u<c;){var n=t.charCodeAt(u++),l=1;if(10===n)a=!0;else if(13===n)a=!0,10===t.charCodeAt(u)&&(++u,++l);else if(n!==s)continue;return t.slice(e,u-l)}return t.slice(e)}for(var n,a,i={},o={},l=[],c=t.length,u=0,f=0;(n=r())!==o;){for(var d=[];n!==i&&n!==o;)d.push(n),n=r();e&&null==(d=e(d,f++))||l.push(d)}return l},r.format=function(e){if(Array.isArray(e[0]))return r.formatRows(e);var n=new x,a=[];return e.forEach(function(t){for(var e in t)n.has(e)||a.push(n.add(e))}),[a.map(o).join(t)].concat(e.map(function(e){return a.map(function(t){return o(e[t])}).join(t)})).join("\n")},r.formatRows=function(t){return t.map(i).join("\n")},r},co.csv=co.dsv(",","text/csv"),co.tsv=co.dsv("\t","text/tab-separated-values");var al,il,ol,ll,sl=this[w(this,"requestAnimationFrame")]||function(t){setTimeout(t,17)};co.timer=function(){Pt.apply(this,arguments)},co.timer.flush=function(){Nt(),It()},co.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)};var cl=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"].map(Ft);co.formatPrefix=function(t,e){var r=0;return(t=+t)&&(t<0&&(t*=-1),e&&(t=co.round(t,Rt(t,e))),r=1+Math.floor(1e-12+Math.log(t)/Math.LN10),r=Math.max(-24,Math.min(24,3*Math.floor((r-1)/3)))),cl[8+r/3]};var ul=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,fl=co.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return(t=co.round(t,Rt(t,e))).toFixed(Math.max(0,Math.min(20,Rt(t*(1+1e-15),e))))}}),dl=co.time={},pl=Date;qt.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){hl.setUTCDate.apply(this._,arguments)},setDay:function(){hl.setUTCDay.apply(this._,arguments)},setFullYear:function(){hl.setUTCFullYear.apply(this._,arguments)},setHours:function(){hl.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){hl.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){hl.setUTCMinutes.apply(this._,arguments)},setMonth:function(){hl.setUTCMonth.apply(this._,arguments)},setSeconds:function(){hl.setUTCSeconds.apply(this._,arguments)},setTime:function(){hl.setTime.apply(this._,arguments)}};var hl=Date.prototype;dl.year=Ht(function(t){return t=dl.day(t),t.setMonth(0,1),t},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t){return t.getFullYear()}),dl.years=dl.year.range,dl.years.utc=dl.year.utc.range,dl.day=Ht(function(t){var e=new pl(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e},function(t,e){t.setDate(t.getDate()+e)},function(t){return t.getDate()-1}),dl.days=dl.day.range,dl.days.utc=dl.day.utc.range,dl.dayOfYear=function(t){var e=dl.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(t,e){e=7-e;var r=dl[t]=Ht(function(t){return(t=dl.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t},function(t,e){t.setDate(t.getDate()+7*Math.floor(e))},function(t){var r=dl.year(t).getDay();return Math.floor((dl.dayOfYear(t)+(r+e)%7)/7)-(r!==e)});dl[t+"s"]=r.range,dl[t+"s"].utc=r.utc.range,dl[t+"OfYear"]=function(t){var r=dl.year(t).getDay();return Math.floor((dl.dayOfYear(t)+(r+e)%7)/7)}}),dl.week=dl.sunday,dl.weeks=dl.sunday.range,dl.weeks.utc=dl.sunday.utc.range,dl.weekOfYear=dl.sundayOfYear;var gl={"-":"",_:" ",0:"0"},vl=/^\s*\d+/,yl=/^%/;co.locale=function(t){return{numberFormat:jt(t),timeFormat:Ut(t)}};var ml=co.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});co.format=ml.numberFormat,co.geo={},fe.prototype={s:0,t:0,add:function(t){de(t,this.t,xl),de(xl.s,this.s,this),this.s?this.t+=xl.t:this.s=xl.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var xl=new fe;co.geo.stream=function(t,e){t&&bl.hasOwnProperty(t.type)?bl[t.type](t,e):pe(t,e)};var bl={Feature:function(t,e){pe(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,n=-1,a=r.length;++n<a;)pe(r[n].geometry,e)}},_l={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var r=t.coordinates,n=-1,a=r.length;++n<a;)t=r[n],e.point(t[0],t[1],t[2])},LineString:function(t,e){he(t.coordinates,e,0)},MultiLineString:function(t,e){for(var r=t.coordinates,n=-1,a=r.length;++n<a;)he(r[n],e,0)},Polygon:function(t,e){ge(t.coordinates,e)},MultiPolygon:function(t,e){for(var r=t.coordinates,n=-1,a=r.length;++n<a;)ge(r[n],e)},GeometryCollection:function(t,e){for(var r=t.geometries,n=-1,a=r.length;++n<a;)pe(r[n],e)}};co.geo.area=function(t){return wl=0,co.geo.stream(t,Ml),wl};var wl,kl=new fe,Ml={sphere:function(){wl+=4*jo},point:k,lineStart:k,lineEnd:k,polygonStart:function(){kl.reset(),Ml.lineStart=ve},polygonEnd:function(){var t=2*kl;wl+=t<0?4*jo+t:t,Ml.lineStart=Ml.lineEnd=Ml.point=k}};co.geo.bounds=function(){function t(t,e){x.push(b=[u=t,d=t]),e<f&&(f=e),e>p&&(p=e)}function e(e,r){var n=ye([e*Vo,r*Vo]);if(y){var a=xe(y,n),i=[a[1],-a[0],0],o=xe(i,a);we(o),o=ke(o);var s=e-h,c=s>0?1:-1,g=o[0]*Uo*c,v=bo(s)>180;if(v^(c*h<g&&g<c*e)){var m=o[1]*Uo;m>p&&(p=m)}else if(g=(g+360)%360-180,v^(c*h<g&&g<c*e)){var m=-o[1]*Uo;m<f&&(f=m)}else r<f&&(f=r),r>p&&(p=r);v?e<h?l(u,e)>l(u,d)&&(d=e):l(e,d)>l(u,d)&&(u=e):d>=u?(e<u&&(u=e),e>d&&(d=e)):e>h?l(u,e)>l(u,d)&&(d=e):l(e,d)>l(u,d)&&(u=e)}else t(e,r);y=n,h=e}function r(){_.point=e}function n(){b[0]=u,b[1]=d,_.point=t,y=null}function a(t,r){if(y){var n=t-h;m+=bo(n)>180?n+(n>0?360:-360):n}else g=t,v=r;Ml.point(t,r),e(t,r)}function i(){Ml.lineStart()}function o(){a(g,v),Ml.lineEnd(),bo(m)>Ro&&(u=-(d=180)),b[0]=u,b[1]=d,y=null}function l(t,e){return(e-=t)<0?e+360:e}function s(t,e){return t[0]-e[0]}function c(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}var u,f,d,p,h,g,v,y,m,x,b,_={point:t,lineStart:r,lineEnd:n,polygonStart:function(){_.point=a,_.lineStart=i,_.lineEnd=o,m=0,Ml.polygonStart()},polygonEnd:function(){Ml.polygonEnd(),_.point=t,_.lineStart=r,_.lineEnd=n,kl<0?(u=-(d=180),f=-(p=90)):m>Ro?p=90:m<-Ro&&(f=-90),b[0]=u,b[1]=d}};return function(t){p=d=-(u=f=1/0),x=[],co.geo.stream(t,_);var e=x.length;if(e){x.sort(s);for(var r,n=1,a=x[0],i=[a];n<e;++n)r=x[n],c(r[0],a)||c(r[1],a)?(l(a[0],r[1])>l(a[0],a[1])&&(a[1]=r[1]),l(r[0],a[1])>l(a[0],a[1])&&(a[0]=r[0])):i.push(a=r);for(var o,r,h=-1/0,e=i.length-1,n=0,a=i[e];n<=e;a=r,++n)r=i[n],(o=l(a[1],r[0]))>h&&(h=o,u=r[0],d=a[1])}return x=b=null,u===1/0||f===1/0?[[NaN,NaN],[NaN,NaN]]:[[u,f],[d,p]]}}(),co.geo.centroid=function(t){Al=Tl=Ll=Cl=Sl=Ol=zl=Dl=Pl=El=Nl=0,co.geo.stream(t,Il);var e=Pl,r=El,n=Nl,a=e*e+r*r+n*n;return a<Fo&&(e=Ol,r=zl,n=Dl,Tl<Ro&&(e=Ll,r=Cl,n=Sl),(a=e*e+r*r+n*n)<Fo)?[NaN,NaN]:[Math.atan2(r,e)*Uo,nt(n/Math.sqrt(a))*Uo]};var Al,Tl,Ll,Cl,Sl,Ol,zl,Dl,Pl,El,Nl,Il={sphere:k,point:Ae,lineStart:Le,lineEnd:Ce,polygonStart:function(){Il.lineStart=Se},polygonEnd:function(){Il.lineStart=Le}},Rl=Ne(ze,je,qe,[-jo,-jo/2]),Fl=1e9;co.geo.clipExtent=function(){var t,e,r,n,a,i,o={stream:function(t){return a&&(a.valid=!1),a=i(t),a.valid=!0,a},extent:function(l){return arguments.length?(i=Ge(t=+l[0][0],e=+l[0][1],r=+l[1][0],n=+l[1][1]),a&&(a.valid=!1,a=null),o):[[t,e],[r,n]]}};return o.extent([[0,0],[960,500]])},(co.geo.conicEqualArea=function(){return Xe(Ye)}).raw=Ye,co.geo.albers=function(){return co.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},co.geo.albersUsa=function(){function t(t){var i=t[0],o=t[1];return e=null,r(i,o),e||(n(i,o),e)||a(i,o),e}var e,r,n,a,i=co.geo.albers(),o=co.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=co.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(t,r){e=[t,r]}};return t.invert=function(t){var e=i.scale(),r=i.translate(),n=(t[0]-r[0])/e,a=(t[1]-r[1])/e;return(a>=.12&&a<.234&&n>=-.425&&n<-.214?o:a>=.166&&a<.234&&n>=-.214&&n<-.115?l:i).invert(t)},t.stream=function(t){var e=i.stream(t),r=o.stream(t),n=l.stream(t);return{point:function(t,a){e.point(t,a),r.point(t,a),n.point(t,a)},sphere:function(){e.sphere(),r.sphere(),n.sphere()},lineStart:function(){e.lineStart(),r.lineStart(),n.lineStart()},lineEnd:function(){e.lineEnd(),r.lineEnd(),n.lineEnd()},polygonStart:function(){e.polygonStart(),r.polygonStart(),n.polygonStart()},polygonEnd:function(){e.polygonEnd(),r.polygonEnd(),n.polygonEnd()}}},t.precision=function(e){return arguments.length?(i.precision(e),o.precision(e),l.precision(e),t):i.precision()},t.scale=function(e){return arguments.length?(i.scale(e),o.scale(.35*e),l.scale(e),t.translate(i.translate())):i.scale()},t.translate=function(e){if(!arguments.length)return i.translate();var c=i.scale(),u=+e[0],f=+e[1];return r=i.translate(e).clipExtent([[u-.455*c,f-.238*c],[u+.455*c,f+.238*c]]).stream(s).point,n=o.translate([u-.307*c,f+.201*c]).clipExtent([[u-.425*c+Ro,f+.12*c+Ro],[u-.214*c-Ro,f+.234*c-Ro]]).stream(s).point,a=l.translate([u-.205*c,f+.212*c]).clipExtent([[u-.214*c+Ro,f+.166*c+Ro],[u-.115*c-Ro,f+.234*c-Ro]]).stream(s).point,t},t.scale(1070)};var jl,Bl,ql,Hl,Vl,Ul,Gl={point:k,lineStart:k,lineEnd:k,polygonStart:function(){Bl=0,Gl.lineStart=Ze},polygonEnd:function(){Gl.lineStart=Gl.lineEnd=Gl.point=k,jl+=bo(Bl/2)}},Xl={point:We,lineStart:k,lineEnd:k,polygonStart:k,polygonEnd:k},Yl={point:Je,lineStart:Ke,lineEnd:tr,polygonStart:function(){Yl.lineStart=er},polygonEnd:function(){Yl.point=Je,Yl.lineStart=Ke,Yl.lineEnd=tr}};co.geo.path=function(){function t(t){return t&&("function"==typeof l&&i.pointRadius(+l.apply(this,arguments)),o&&o.valid||(o=a(i)),co.geo.stream(t,o)),i.result()}function e(){return o=null,t}var r,n,a,i,o,l=4.5;return t.area=function(t){return jl=0,co.geo.stream(t,a(Gl)),jl},t.centroid=function(t){return Ll=Cl=Sl=Ol=zl=Dl=Pl=El=Nl=0,co.geo.stream(t,a(Yl)),Nl?[Pl/Nl,El/Nl]:Dl?[Ol/Dl,zl/Dl]:Sl?[Ll/Sl,Cl/Sl]:[NaN,NaN]},t.bounds=function(t){return Vl=Ul=-(ql=Hl=1/0),co.geo.stream(t,a(Xl)),[[ql,Hl],[Vl,Ul]]},t.projection=function(t){return arguments.length?(a=(r=t)?t.stream||ar(t):b,e()):r},t.context=function(t){return arguments.length?(i=null==(n=t)?new Qe:new rr(t),"function"!=typeof l&&i.pointRadius(l),e()):n},t.pointRadius=function(e){return arguments.length?(l="function"==typeof e?e:(i.pointRadius(+e),+e),t):l},t.projection(co.geo.albersUsa()).context(null)},co.geo.transform=function(t){return{stream:function(e){var r=new ir(e);for(var n in t)r[n]=t[n];return r}}},ir.prototype={point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},co.geo.projection=lr,co.geo.projectionMutator=sr,(co.geo.equirectangular=function(){return lr(ur)}).raw=ur.invert=ur,co.geo.rotation=function(t){function e(e){return e=t(e[0]*Vo,e[1]*Vo),e[0]*=Uo,e[1]*=Uo,e}return t=dr(t[0]%360*Vo,t[1]*Vo,t.length>2?t[2]*Vo:0),e.invert=function(e){return e=t.invert(e[0]*Vo,e[1]*Vo),e[0]*=Uo,e[1]*=Uo,e},e},fr.invert=ur,co.geo.circle=function(){function t(){var t="function"==typeof n?n.apply(this,arguments):n,e=dr(-t[0]*Vo,-t[1]*Vo,0).invert,a=[];return r(null,null,1,{point:function(t,r){a.push(t=e(t,r)),t[0]*=Uo,t[1]*=Uo}}),{type:"Polygon",coordinates:[a]}}var e,r,n=[0,0],a=6;return t.origin=function(e){return arguments.length?(n=e,t):n},t.angle=function(n){return arguments.length?(r=vr((e=+n)*Vo,a*Vo),t):e},t.precision=function(n){return arguments.length?(r=vr(e*Vo,(a=+n)*Vo),t):a},t.angle(90)},co.geo.distance=function(t,e){var r,n=(e[0]-t[0])*Vo,a=t[1]*Vo,i=e[1]*Vo,o=Math.sin(n),l=Math.cos(n),s=Math.sin(a),c=Math.cos(a),u=Math.sin(i),f=Math.cos(i);return Math.atan2(Math.sqrt((r=f*o)*r+(r=c*u-s*f*l)*r),s*u+c*f*l)},co.geo.graticule=function(){function t(){return{type:"MultiLineString",coordinates:e()}}function e(){return co.range(Math.ceil(i/v)*v,a,v).map(d).concat(co.range(Math.ceil(c/y)*y,s,y).map(p)).concat(co.range(Math.ceil(n/h)*h,r,h).filter(function(t){return bo(t%v)>Ro}).map(u)).concat(co.range(Math.ceil(l/g)*g,o,g).filter(function(t){return bo(t%y)>Ro}).map(f))}var r,n,a,i,o,l,s,c,u,f,d,p,h=10,g=h,v=90,y=360,m=2.5;return t.lines=function(){return e().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[d(i).concat(p(s).slice(1),d(a).reverse().slice(1),p(c).reverse().slice(1))]}},t.extent=function(e){return arguments.length?t.majorExtent(e).minorExtent(e):t.minorExtent()},t.majorExtent=function(e){return arguments.length?(i=+e[0][0],a=+e[1][0],c=+e[0][1],s=+e[1][1],i>a&&(e=i,i=a,a=e),c>s&&(e=c,c=s,s=e),t.precision(m)):[[i,c],[a,s]]},t.minorExtent=function(e){return arguments.length?(n=+e[0][0],r=+e[1][0],l=+e[0][1],o=+e[1][1],n>r&&(e=n,n=r,r=e),l>o&&(e=l,l=o,o=e),t.precision(m)):[[n,l],[r,o]]},t.step=function(e){return arguments.length?t.majorStep(e).minorStep(e):t.minorStep()},t.majorStep=function(e){return arguments.length?(v=+e[0],y=+e[1],t):[v,y]},t.minorStep=function(e){return arguments.length?(h=+e[0],g=+e[1],t):[h,g]},t.precision=function(e){return arguments.length?(m=+e,u=mr(l,o,90),f=xr(n,r,m),d=mr(c,s,90),p=xr(i,a,m),t):m},t.majorExtent([[-180,-90+Ro],[180,90-Ro]]).minorExtent([[-180,-80-Ro],[180,80+Ro]])},co.geo.greatArc=function(){function t(){return{type:"LineString",coordinates:[e||n.apply(this,arguments),r||a.apply(this,arguments)]}}var e,r,n=br,a=_r;return t.distance=function(){return co.geo.distance(e||n.apply(this,arguments),r||a.apply(this,arguments))},t.source=function(r){return arguments.length?(n=r,e="function"==typeof r?null:r,t):n},t.target=function(e){return arguments.length?(a=e,r="function"==typeof e?null:e,t):a},t.precision=function(){return arguments.length?t:0},t},co.geo.interpolate=function(t,e){return wr(t[0]*Vo,t[1]*Vo,e[0]*Vo,e[1]*Vo)},co.geo.length=function(t){return Zl=0,co.geo.stream(t,Wl),Zl};var Zl,Wl={sphere:k,point:k,lineStart:kr,lineEnd:k,polygonStart:k,polygonEnd:k},Ql=Mr(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(co.geo.azimuthalEqualArea=function(){return lr(Ql)}).raw=Ql;var $l=Mr(function(t){var e=Math.acos(t);return e&&e/Math.sin(e)},b);(co.geo.azimuthalEquidistant=function(){return lr($l)}).raw=$l,(co.geo.conicConformal=function(){return Xe(Ar)}).raw=Ar,(co.geo.conicEquidistant=function(){return Xe(Tr)}).raw=Tr;var Jl=Mr(function(t){return 1/t},Math.atan);(co.geo.gnomonic=function(){return lr(Jl)}).raw=Jl,Lr.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-Ho]},(co.geo.mercator=function(){return Cr(Lr)}).raw=Lr;var Kl=Mr(function(){return 1},Math.asin);(co.geo.orthographic=function(){return lr(Kl)}).raw=Kl;var ts=Mr(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(co.geo.stereographic=function(){return lr(ts)}).raw=ts,Sr.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-Ho]},(co.geo.transverseMercator=function(){var t=Cr(Sr),e=t.center,r=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])},t.rotate=function(t){return t?r([t[0],t[1],t.length>2?t[2]+90:90]):(t=r(),[t[0],t[1],t[2]-90])},r([0,0,90])}).raw=Sr,co.geom={},co.geom.hull=function(t){function e(t){if(t.length<3)return[];var e,a=Ct(r),i=Ct(n),o=t.length,l=[],s=[];for(e=0;e<o;e++)l.push([+a.call(this,t[e],e),+i.call(this,t[e],e),e]);for(l.sort(Pr),e=0;e<o;e++)s.push([l[e][0],-l[e][1]]);var c=Dr(l),u=Dr(s),f=u[0]===c[0],d=u[u.length-1]===c[c.length-1],p=[];for(e=c.length-1;e>=0;--e)p.push(t[l[c[e]][2]]);for(e=+f;e<u.length-d;++e)p.push(t[l[u[e]][2]]);return p}var r=Or,n=zr;return arguments.length?e(t):(e.x=function(t){return arguments.length?(r=t,e):r},e.y=function(t){return arguments.length?(n=t,e):n},e)},co.geom.polygon=function(t){return Ao(t,es),t};var es=co.geom.polygon.prototype=[];es.area=function(){for(var t,e=-1,r=this.length,n=this[r-1],a=0;++e<r;)t=n,n=this[e],a+=t[1]*n[0]-t[0]*n[1];return.5*a},es.centroid=function(t){var e,r,n=-1,a=this.length,i=0,o=0,l=this[a-1];for(arguments.length||(t=-1/(6*this.area()));++n<a;)e=l,l=this[n],r=e[0]*l[1]-l[0]*e[1],i+=(e[0]+l[0])*r,o+=(e[1]+l[1])*r;return[i*t,o*t]},es.clip=function(t){for(var e,r,n,a,i,o,l=Ir(t),s=-1,c=this.length-Ir(this),u=this[c-1];++s<c;){for(e=t.slice(),t.length=0,a=this[s],i=e[(n=e.length-l)-1],r=-1;++r<n;)o=e[r],Er(o,u,a)?(Er(i,u,a)||t.push(Nr(i,o,u,a)),t.push(o)):Er(i,u,a)&&t.push(Nr(i,o,u,a)),i=o;l&&t.push(t[0]),u=a}return t};var rs,ns,as,is,os,ls=[],ss=[];Ur.prototype.prepare=function(){for(var t,e=this.edges,r=e.length;r--;)t=e[r].edge,t.b&&t.a||e.splice(r,1);return e.sort(Xr),e.length},rn.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},nn.prototype={insert:function(t,e){var r,n,a;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;r=t}else this._?(t=sn(this._),e.P=null,e.N=t,t.P=t.L=e,r=t):(e.P=e.N=null,this._=e,r=null);for(e.L=e.R=null,e.U=r,e.C=!0,t=e;r&&r.C;)n=r.U,r===n.L?(a=n.R,a&&a.C?(r.C=a.C=!1,n.C=!0,t=n):(t===r.R&&(on(this,r),t=r,r=t.U),r.C=!1,n.C=!0,ln(this,n))):(a=n.L,a&&a.C?(r.C=a.C=!1,n.C=!0,t=n):(t===r.L&&(ln(this,r),t=r,r=t.U),r.C=!1,n.C=!0,on(this,n))),r=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,r,n,a=t.U,i=t.L,o=t.R;if(r=i?o?sn(o):i:o,a?a.L===t?a.L=r:a.R=r:this._=r,i&&o?(n=r.C,r.C=t.C,r.L=i,i.U=r,r!==o?(a=r.U,r.U=t.U,t=r.R,a.L=t,r.R=o,o.U=r):(r.U=a,a=r,t=r.R)):(n=t.C,t=r),t&&(t.U=a),!n){if(t&&t.C)return void(t.C=!1);do{if(t===this._)break;if(t===a.L){if(e=a.R,e.C&&(e.C=!1,a.C=!0,on(this,a),e=a.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,ln(this,e),e=a.R),e.C=a.C,a.C=e.R.C=!1,on(this,a),t=this._;break}}else if(e=a.L,e.C&&(e.C=!1,a.C=!0,ln(this,a),e=a.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,on(this,e),e=a.L),e.C=a.C,a.C=e.L.C=!1,ln(this,a),t=this._;break}e.C=!0,t=a,a=a.U}while(!t.C);t&&(t.C=!1)}}},co.geom.voronoi=function(t){function e(t){var e=new Array(t.length),n=l[0][0],a=l[0][1],i=l[1][0],o=l[1][1];return cn(r(t),l).cells.forEach(function(r,l){var s=r.edges,c=r.site;(e[l]=s.length?s.map(function(t){var e=t.start();return[e.x,e.y]}):c.x>=n&&c.x<=i&&c.y>=a&&c.y<=o?[[n,o],[i,o],[i,a],[n,a]]:[]).point=t[l]}),e}function r(t){return t.map(function(t,e){return{x:Math.round(i(t,e)/Ro)*Ro,y:Math.round(o(t,e)/Ro)*Ro,i:e}})}var n=Or,a=zr,i=n,o=a,l=cs;return t?e(t):(e.links=function(t){return cn(r(t)).edges.filter(function(t){return t.l&&t.r}).map(function(e){return{source:t[e.l.i],target:t[e.r.i]}})},e.triangles=function(t){var e=[];return cn(r(t)).cells.forEach(function(r,n){for(var a,i=r.site,o=r.edges.sort(Xr),l=-1,s=o.length,c=o[s-1].edge,u=c.l===i?c.r:c.l;++l<s;)c,a=u,c=o[l].edge,u=c.l===i?c.r:c.l,n<a.i&&n<u.i&&fn(i,a,u)<0&&e.push([t[n],t[a.i],t[u.i]])}),e},e.x=function(t){return arguments.length?(i=Ct(n=t),e):n},e.y=function(t){return arguments.length?(o=Ct(a=t),e):a},e.clipExtent=function(t){return arguments.length?(l=null==t?cs:t,e):l===cs?null:l},e.size=function(t){return arguments.length?e.clipExtent(t&&[[0,0],t]):l===cs?null:l&&l[1]},e)};var cs=[[-1e6,-1e6],[1e6,1e6]];co.geom.delaunay=function(t){return co.geom.voronoi().triangles(t)},co.geom.quadtree=function(t,e,r,n,a){function i(t){function i(t,e,r,n,a,i,o,l){if(!isNaN(r)&&!isNaN(n))if(t.leaf){var s=t.x,u=t.y;if(null!=s)if(bo(s-r)+bo(u-n)<.01)c(t,e,r,n,a,i,o,l);else{var f=t.point;t.x=t.y=t.point=null,c(t,f,s,u,a,i,o,l),c(t,e,r,n,a,i,o,l)}else t.x=r,t.y=n,t.point=e}else c(t,e,r,n,a,i,o,l)}function c(t,e,r,n,a,o,l,s){var c=.5*(a+l),u=.5*(o+s),f=r>=c,d=n>=u,p=d<<1|f;t.leaf=!1,t=t.nodes[p]||(t.nodes[p]=hn()),f?a=c:l=c,d?o=u:s=u,i(t,e,r,n,a,o,l,s)}var u,f,d,p,h,g,v,y,m,x=Ct(l),b=Ct(s);if(null!=e)g=e,v=r,y=n,m=a;else if(y=m=-(g=v=1/0),f=[],d=[],h=t.length,o)for(p=0;p<h;++p)u=t[p],u.x<g&&(g=u.x),u.y<v&&(v=u.y),u.x>y&&(y=u.x),u.y>m&&(m=u.y),f.push(u.x),d.push(u.y);else for(p=0;p<h;++p){var _=+x(u=t[p],p),w=+b(u,p);_<g&&(g=_),w<v&&(v=w),_>y&&(y=_),w>m&&(m=w),f.push(_),d.push(w)}var k=y-g,M=m-v;k>M?m=v+k:y=g+M;var A=hn();if(A.add=function(t){i(A,t,+x(t,++p),+b(t,p),g,v,y,m)},A.visit=function(t){gn(t,A,g,v,y,m)},A.find=function(t){return vn(A,t[0],t[1],g,v,y,m)},p=-1,null==e){for(;++p<h;)i(A,t[p],f[p],d[p],g,v,y,m);--p}else t.forEach(A.add);return f=d=t=u=null,A}var o,l=Or,s=zr;return(o=arguments.length)?(l=dn,s=pn,3===o&&(a=r,n=e,r=e=0),i(t)):(i.x=function(t){return arguments.length?(l=t,i):l},i.y=function(t){return arguments.length?(s=t,i):s},i.extent=function(t){return arguments.length?(null==t?e=r=n=a=null:(e=+t[0][0],r=+t[0][1],n=+t[1][0],a=+t[1][1]),i):null==e?null:[[e,r],[n,a]]},i.size=function(t){return arguments.length?(null==t?e=r=n=a=null:(e=r=0,n=+t[0],a=+t[1]),i):null==e?null:[n-e,a-r]},i)},co.interpolateRgb=yn,co.interpolateObject=mn,co.interpolateNumber=xn,co.interpolateString=bn;var us=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,fs=new RegExp(us.source,"g");co.interpolate=_n,co.interpolators=[function(t,e){var r=typeof e;return("string"===r?nl.has(e.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(e)?yn:bn:e instanceof st?yn:Array.isArray(e)?wn:"object"===r&&isNaN(e)?mn:xn)(t,e)}],co.interpolateArray=wn;var ds=function(){return b},ps=co.map({linear:ds,poly:Sn,quad:function(){return Tn},cubic:function(){return Ln},sin:function(){return On},exp:function(){return zn},circle:function(){return Dn},elastic:Pn,back:En,bounce:function(){return Nn}}),hs=co.map({in:b,out:Mn,"in-out":An,"out-in":function(t){return An(Mn(t))}});co.ease=function(t){var e=t.indexOf("-"),r=e>=0?t.slice(0,e):t,n=e>=0?t.slice(e+1):"in";return r=ps.get(r)||ds,n=hs.get(n)||b,kn(n(r.apply(null,uo.call(arguments,1))))},co.interpolateHcl=In,co.interpolateHsl=Rn,co.interpolateLab=Fn,co.interpolateRound=jn,co.transform=function(t){var e=po.createElementNS(co.ns.prefix.svg,"g");return(co.transform=function(t){if(null!=t){e.setAttribute("transform",t);var r=e.transform.baseVal.consolidate()}return new Bn(r?r.matrix:gs)})(t)},Bn.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var gs={a:1,b:0,c:0,d:1,e:0,f:0};co.interpolateTransform=Wn,co.layout={},co.layout.bundle=function(){return function(t){for(var e=[],r=-1,n=t.length;++r<n;)e.push(Jn(t[r]));return e}},co.layout.chord=function(){function t(){var t,c,f,d,p,h={},g=[],v=co.range(i),y=[];for(r=[],n=[],t=0,d=-1;++d<i;){for(c=0,p=-1;++p<i;)c+=a[d][p];g.push(c),y.push(co.range(i)),t+=c}for(o&&v.sort(function(t,e){return o(g[t],g[e])}),l&&y.forEach(function(t,e){t.sort(function(t,r){return l(a[e][t],a[e][r])})}),t=(Bo-u*i)/t,c=0,d=-1;++d<i;){for(f=c,p=-1;++p<i;){ var m=v[d],x=y[m][p],b=a[m][x],_=c,w=c+=b*t;h[m+"-"+x]={index:m,subindex:x,startAngle:_,endAngle:w,value:b}}n[m]={index:m,startAngle:f,endAngle:c,value:g[m]},c+=u}for(d=-1;++d<i;)for(p=d-1;++p<i;){var k=h[d+"-"+p],M=h[p+"-"+d];(k.value||M.value)&&r.push(k.value<M.value?{source:M,target:k}:{source:k,target:M})}s&&e()}function e(){r.sort(function(t,e){return s((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)})}var r,n,a,i,o,l,s,c={},u=0;return c.matrix=function(t){return arguments.length?(i=(a=t)&&a.length,r=n=null,c):a},c.padding=function(t){return arguments.length?(u=t,r=n=null,c):u},c.sortGroups=function(t){return arguments.length?(o=t,r=n=null,c):o},c.sortSubgroups=function(t){return arguments.length?(l=t,r=null,c):l},c.sortChords=function(t){return arguments.length?(s=t,r&&e(),c):s},c.chords=function(){return r||t(),r},c.groups=function(){return n||t(),n},c},co.layout.force=function(){function t(t){return function(e,r,n,a){if(e.point!==t){var i=e.cx-t.x,o=e.cy-t.y,l=a-r,s=i*i+o*o;if(l*l/y<s){if(s<g){var c=e.charge/s;t.px-=i*c,t.py-=o*c}return!0}if(e.point&&s&&s<g){var c=e.pointCharge/s;t.px-=i*c,t.py-=o*c}}return!e.charge}}function e(t){t.px=co.event.x,t.py=co.event.y,s.resume()}var r,n,a,i,o,l,s={},c=co.dispatch("start","tick","end"),u=[1,1],f=.9,d=vs,p=ys,h=-30,g=ms,v=.1,y=.64,m=[],x=[];return s.tick=function(){if((a*=.99)<.005)return r=null,c.end({type:"end",alpha:a=0}),!0;var e,n,s,d,p,g,y,b,_,w=m.length,k=x.length;for(n=0;n<k;++n)s=x[n],d=s.source,p=s.target,b=p.x-d.x,_=p.y-d.y,(g=b*b+_*_)&&(g=a*o[n]*((g=Math.sqrt(g))-i[n])/g,b*=g,_*=g,p.x-=b*(y=d.weight+p.weight?d.weight/(d.weight+p.weight):.5),p.y-=_*y,d.x+=b*(y=1-y),d.y+=_*y);if((y=a*v)&&(b=u[0]/2,_=u[1]/2,n=-1,y))for(;++n<w;)s=m[n],s.x+=(b-s.x)*y,s.y+=(_-s.y)*y;if(h)for(ia(e=co.geom.quadtree(m),a,l),n=-1;++n<w;)(s=m[n]).fixed||e.visit(t(s));for(n=-1;++n<w;)s=m[n],s.fixed?(s.x=s.px,s.y=s.py):(s.x-=(s.px-(s.px=s.x))*f,s.y-=(s.py-(s.py=s.y))*f);c.tick({type:"tick",alpha:a})},s.nodes=function(t){return arguments.length?(m=t,s):m},s.links=function(t){return arguments.length?(x=t,s):x},s.size=function(t){return arguments.length?(u=t,s):u},s.linkDistance=function(t){return arguments.length?(d="function"==typeof t?t:+t,s):d},s.distance=s.linkDistance,s.linkStrength=function(t){return arguments.length?(p="function"==typeof t?t:+t,s):p},s.friction=function(t){return arguments.length?(f=+t,s):f},s.charge=function(t){return arguments.length?(h="function"==typeof t?t:+t,s):h},s.chargeDistance=function(t){return arguments.length?(g=t*t,s):Math.sqrt(g)},s.gravity=function(t){return arguments.length?(v=+t,s):v},s.theta=function(t){return arguments.length?(y=t*t,s):Math.sqrt(y)},s.alpha=function(t){return arguments.length?(t=+t,a?t>0?a=t:(r.c=null,r.t=NaN,r=null,c.end({type:"end",alpha:a=0})):t>0&&(c.start({type:"start",alpha:a=t}),r=Pt(s.tick)),s):a},s.start=function(){function t(t,n){if(!r){for(r=new Array(a),s=0;s<a;++s)r[s]=[];for(s=0;s<c;++s){var i=x[s];r[i.source.index].push(i.target),r[i.target.index].push(i.source)}}for(var o,l=r[e],s=-1,u=l.length;++s<u;)if(!isNaN(o=l[s][t]))return o;return Math.random()*n}var e,r,n,a=m.length,c=x.length,f=u[0],g=u[1];for(e=0;e<a;++e)(n=m[e]).index=e,n.weight=0;for(e=0;e<c;++e)n=x[e],"number"==typeof n.source&&(n.source=m[n.source]),"number"==typeof n.target&&(n.target=m[n.target]),++n.source.weight,++n.target.weight;for(e=0;e<a;++e)n=m[e],isNaN(n.x)&&(n.x=t("x",f)),isNaN(n.y)&&(n.y=t("y",g)),isNaN(n.px)&&(n.px=n.x),isNaN(n.py)&&(n.py=n.y);if(i=[],"function"==typeof d)for(e=0;e<c;++e)i[e]=+d.call(this,x[e],e);else for(e=0;e<c;++e)i[e]=d;if(o=[],"function"==typeof p)for(e=0;e<c;++e)o[e]=+p.call(this,x[e],e);else for(e=0;e<c;++e)o[e]=p;if(l=[],"function"==typeof h)for(e=0;e<a;++e)l[e]=+h.call(this,m[e],e);else for(e=0;e<a;++e)l[e]=h;return s.resume()},s.resume=function(){return s.alpha(.1)},s.stop=function(){return s.alpha(0)},s.drag=function(){if(n||(n=co.behavior.drag().origin(b).on("dragstart.force",ea).on("drag.force",e).on("dragend.force",ra)),!arguments.length)return n;this.on("mouseover.force",na).on("mouseout.force",aa).call(n)},co.rebind(s,c,"on")};var vs=20,ys=1,ms=1/0;co.layout.hierarchy=function(){function t(a){var i,o=[a],l=[];for(a.depth=0;null!=(i=o.pop());)if(l.push(i),(c=r.call(t,i,i.depth))&&(s=c.length)){for(var s,c,u;--s>=0;)o.push(u=c[s]),u.parent=i,u.depth=i.depth+1;n&&(i.value=0),i.children=c}else n&&(i.value=+n.call(t,i,i.depth)||0),delete i.children;return sa(a,function(t){var r,a;e&&(r=t.children)&&r.sort(e),n&&(a=t.parent)&&(a.value+=t.value)}),l}var e=fa,r=ca,n=ua;return t.sort=function(r){return arguments.length?(e=r,t):e},t.children=function(e){return arguments.length?(r=e,t):r},t.value=function(e){return arguments.length?(n=e,t):n},t.revalue=function(e){return n&&(la(e,function(t){t.children&&(t.value=0)}),sa(e,function(e){var r;e.children||(e.value=+n.call(t,e,e.depth)||0),(r=e.parent)&&(r.value+=e.value)})),e},t},co.layout.partition=function(){function t(e,r,n,a){var i=e.children;if(e.x=r,e.y=e.depth*a,e.dx=n,e.dy=a,i&