{"id":17679366,"url":"https://github.com/tmck-code/pokesay-bash","last_synced_at":"2025-06-28T02:04:35.921Z","repository":{"id":88833254,"uuid":"228398561","full_name":"tmck-code/pokesay-bash","owner":"tmck-code","description":"Cowsay, but with Pokémon!","archived":false,"fork":false,"pushed_at":"2021-09-22T07:24:19.000Z","size":7458,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T18:32:59.490Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tmck-code.png","metadata":{"files":{"readme":"README.html","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-16T13:55:30.000Z","updated_at":"2022-04-16T04:09:43.000Z","dependencies_parsed_at":"2023-06-12T20:15:33.827Z","dependency_job_id":null,"html_url":"https://github.com/tmck-code/pokesay-bash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tmck-code/pokesay-bash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmck-code%2Fpokesay-bash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmck-code%2Fpokesay-bash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmck-code%2Fpokesay-bash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmck-code%2Fpokesay-bash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmck-code","download_url":"https://codeload.github.com/tmck-code/pokesay-bash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmck-code%2Fpokesay-bash/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262362063,"owners_count":23299122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-24T08:22:12.822Z","updated_at":"2025-06-28T02:04:35.883Z","avatar_url":"https://github.com/tmck-code.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!DOCTYPE html\u003e\r\n\u003chtml\u003e\r\n\u003chead\u003e\r\n\u003ctitle\u003eREADME.md\u003c/title\u003e\r\n\u003cmeta http-equiv=\"Content-type\" content=\"text/html;charset=UTF-8\"\u003e\r\n\n\u003cstyle\u003e\n/*---------------------------------------------------------------------------------------------\r\n *  Copyright (c) Microsoft Corporation. All rights reserved.\r\n *  Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\nbody {\r\n\tfont-family: \"Segoe WPC\", \"Segoe UI\", \"SFUIText-Light\", \"HelveticaNeue-Light\", sans-serif, \"Droid Sans Fallback\";\r\n\tfont-size: 14px;\r\n\tpadding: 0 12px;\r\n\tline-height: 22px;\r\n\tword-wrap: break-word;\r\n}\r\n\r\n#code-csp-warning {\r\n\tposition: fixed;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tcolor: white;\r\n\tmargin: 16px;\r\n\ttext-align: center;\r\n\tfont-size: 12px;\r\n\tfont-family: sans-serif;\r\n\tbackground-color:#444444;\r\n\tcursor: pointer;\r\n\tpadding: 6px;\r\n\tbox-shadow: 1px 1px 1px rgba(0,0,0,.25);\r\n}\r\n\r\n#code-csp-warning:hover {\r\n\ttext-decoration: none;\r\n\tbackground-color:#007acc;\r\n\tbox-shadow: 2px 2px 2px rgba(0,0,0,.25);\r\n}\r\n\r\n\r\nbody.scrollBeyondLastLine {\r\n\tmargin-bottom: calc(100vh - 22px);\r\n}\r\n\r\nbody.showEditorSelection .code-line {\r\n\tposition: relative;\r\n}\r\n\r\nbody.showEditorSelection .code-active-line:before,\r\nbody.showEditorSelection .code-line:hover:before {\r\n\tcontent: \"\";\r\n\tdisplay: block;\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft: -12px;\r\n\theight: 100%;\r\n}\r\n\r\nbody.showEditorSelection li.code-active-line:before,\r\nbody.showEditorSelection li.code-line:hover:before {\r\n\tleft: -30px;\r\n}\r\n\r\n.vscode-light.showEditorSelection .code-active-line:before {\r\n\tborder-left: 3px solid rgba(0, 0, 0, 0.15);\r\n}\r\n\r\n.vscode-light.showEditorSelection .code-line:hover:before {\r\n\tborder-left: 3px solid rgba(0, 0, 0, 0.40);\r\n}\r\n\r\n.vscode-dark.showEditorSelection .code-active-line:before {\r\n\tborder-left: 3px solid rgba(255, 255, 255, 0.4);\r\n}\r\n\r\n.vscode-dark.showEditorSelection .code-line:hover:before {\r\n\tborder-left: 3px solid rgba(255, 255, 255, 0.60);\r\n}\r\n\r\n.vscode-high-contrast.showEditorSelection .code-active-line:before {\r\n\tborder-left: 3px solid rgba(255, 160, 0, 0.7);\r\n}\r\n\r\n.vscode-high-contrast.showEditorSelection .code-line:hover:before {\r\n\tborder-left: 3px solid rgba(255, 160, 0, 1);\r\n}\r\n\r\nimg {\r\n\tmax-width: 100%;\r\n\tmax-height: 100%;\r\n}\r\n\r\na {\r\n\tcolor: #4080D0;\r\n\ttext-decoration: none;\r\n}\r\n\r\na:focus,\r\ninput:focus,\r\nselect:focus,\r\ntextarea:focus {\r\n\toutline: 1px solid -webkit-focus-ring-color;\r\n\toutline-offset: -1px;\r\n}\r\n\r\nhr {\r\n\tborder: 0;\r\n\theight: 2px;\r\n\tborder-bottom: 2px solid;\r\n}\r\n\r\nh1 {\r\n\tpadding-bottom: 0.3em;\r\n\tline-height: 1.2;\r\n\tborder-bottom-width: 1px;\r\n\tborder-bottom-style: solid;\r\n}\r\n\r\nh1, h2, h3 {\r\n\tfont-weight: normal;\r\n}\r\n\r\nh1 code,\r\nh2 code,\r\nh3 code,\r\nh4 code,\r\nh5 code,\r\nh6 code {\r\n\tfont-size: inherit;\r\n\tline-height: auto;\r\n}\r\n\r\na:hover {\r\n\tcolor: #4080D0;\r\n\ttext-decoration: underline;\r\n}\r\n\r\ntable {\r\n\tborder-collapse: collapse;\r\n}\r\n\r\ntable \u003e thead \u003e tr \u003e th {\r\n\ttext-align: left;\r\n\tborder-bottom: 1px solid;\r\n}\r\n\r\ntable \u003e thead \u003e tr \u003e th,\r\ntable \u003e thead \u003e tr \u003e td,\r\ntable \u003e tbody \u003e tr \u003e th,\r\ntable \u003e tbody \u003e tr \u003e td {\r\n\tpadding: 5px 10px;\r\n}\r\n\r\ntable \u003e tbody \u003e tr + tr \u003e td {\r\n\tborder-top: 1px solid;\r\n}\r\n\r\nblockquote {\r\n\tmargin: 0 7px 0 5px;\r\n\tpadding: 0 16px 0 10px;\r\n\tborder-left: 5px solid;\r\n}\r\n\r\ncode {\r\n\tfont-family: Menlo, Monaco, Consolas, \"Droid Sans Mono\", \"Courier New\", monospace, \"Droid Sans Fallback\";\r\n\tfont-size: 14px;\r\n\tline-height: 19px;\r\n}\r\n\r\nbody.wordWrap pre {\r\n\twhite-space: pre-wrap;\r\n}\r\n\r\n.mac code {\r\n\tfont-size: 12px;\r\n\tline-height: 18px;\r\n}\r\n\r\npre:not(.hljs),\r\npre.hljs code \u003e div {\r\n\tpadding: 16px;\r\n\tborder-radius: 3px;\r\n\toverflow: auto;\r\n}\r\n\r\n/** Theming */\r\n\r\n.vscode-light,\r\n.vscode-light pre code {\r\n\tcolor: rgb(30, 30, 30);\r\n}\r\n\r\n.vscode-dark,\r\n.vscode-dark pre code {\r\n\tcolor: #DDD;\r\n}\r\n\r\n.vscode-high-contrast,\r\n.vscode-high-contrast pre code {\r\n\tcolor: white;\r\n}\r\n\r\n.vscode-light code {\r\n\tcolor: #A31515;\r\n}\r\n\r\n.vscode-dark code {\r\n\tcolor: #D7BA7D;\r\n}\r\n\r\n.vscode-light pre:not(.hljs),\r\n.vscode-light code \u003e div {\r\n\tbackground-color: rgba(220, 220, 220, 0.4);\r\n}\r\n\r\n.vscode-dark pre:not(.hljs),\r\n.vscode-dark code \u003e div {\r\n\tbackground-color: rgba(10, 10, 10, 0.4);\r\n}\r\n\r\n.vscode-high-contrast pre:not(.hljs),\r\n.vscode-high-contrast code \u003e div {\r\n\tbackground-color: rgb(0, 0, 0);\r\n}\r\n\r\n.vscode-high-contrast h1 {\r\n\tborder-color: rgb(0, 0, 0);\r\n}\r\n\r\n.vscode-light table \u003e thead \u003e tr \u003e th {\r\n\tborder-color: rgba(0, 0, 0, 0.69);\r\n}\r\n\r\n.vscode-dark table \u003e thead \u003e tr \u003e th {\r\n\tborder-color: rgba(255, 255, 255, 0.69);\r\n}\r\n\r\n.vscode-light h1,\r\n.vscode-light hr,\r\n.vscode-light table \u003e tbody \u003e tr + tr \u003e td {\r\n\tborder-color: rgba(0, 0, 0, 0.18);\r\n}\r\n\r\n.vscode-dark h1,\r\n.vscode-dark hr,\r\n.vscode-dark table \u003e tbody \u003e tr + tr \u003e td {\r\n\tborder-color: rgba(255, 255, 255, 0.18);\r\n}\r\n\r\n.vscode-light blockquote,\r\n.vscode-dark blockquote {\r\n\tbackground: rgba(127, 127, 127, 0.1);\r\n\tborder-color: rgba(0, 122, 204, 0.5);\r\n}\r\n\r\n.vscode-high-contrast blockquote {\r\n\tbackground: transparent;\r\n\tborder-color: #fff;\r\n}\n\u003c/style\u003e\n\n\u003cstyle\u003e\n/**\n * GitHub Gist Theme\n * Author : Anthony Attard - https://github.com/AnthonyAttard\n * Author : Louis Barranqueiro - https://github.com/LouisBarranqueiro\n */\n\n.hljs {\n  display: block;\n  background: white;\n  padding: 0.5em;\n  color: #333333;\n  overflow-x: auto;\n}\n\n.hljs-comment,\n.hljs-meta {\n  color: #969896;\n}\n\n.hljs-variable,\n.hljs-template-variable,\n.hljs-strong,\n.hljs-emphasis,\n.hljs-quote {\n  color: #df5000;\n}\n\n.hljs-keyword,\n.hljs-selector-tag,\n.hljs-type {\n  color: #d73a49;\n}\n\n.hljs-literal,\n.hljs-symbol,\n.hljs-bullet,\n.hljs-attribute {\n  color: #0086b3;\n}\n\n.hljs-section,\n.hljs-name {\n  color: #63a35c;\n}\n\n.hljs-tag {\n  color: #333333;\n}\n\n.hljs-title,\n.hljs-attr,\n.hljs-selector-id,\n.hljs-selector-class,\n.hljs-selector-attr,\n.hljs-selector-pseudo {\n  color: #6f42c1;\n}\n\n.hljs-addition {\n  color: #55a532;\n  background-color: #eaffea;\n}\n\n.hljs-deletion {\n  color: #bd2c00;\n  background-color: #ffecec;\n}\n\n.hljs-link {\n  text-decoration: underline;\n}\n\n.hljs-number {\n  color: #005cc5;\n}\n\n.hljs-string {\n  color: #032f62;\n}\n\n\u003c/style\u003e\n\n\u003cstyle\u003e\n/*\r\n * Markdown PDF CSS\r\n */\r\n\r\n body {\r\n\tfont-family:  \"Meiryo\", \"Segoe WPC\", \"Segoe UI\", \"SFUIText-Light\", \"HelveticaNeue-Light\", sans-serif, \"Droid Sans Fallback\";\r\n}\r\n\r\npre {\r\n\tbackground-color: #f8f8f8;\r\n\tborder: 1px solid #cccccc;\r\n\tborder-radius: 3px;\r\n\toverflow-x: auto;\r\n\twhite-space: pre-wrap;\r\n\toverflow-wrap: break-word;\r\n}\r\n\r\npre:not(.hljs) {\r\n\tpadding: 23px;\r\n\tline-height: 19px;\r\n}\r\n\r\nblockquote {\r\n\tbackground: rgba(127, 127, 127, 0.1);\r\n\tborder-color: rgba(0, 122, 204, 0.5);\r\n}\r\n\r\n.emoji {\r\n\theight: 1.4em;\r\n}\r\n\r\n/* for inline code */\r\n:not(pre):not(.hljs) \u003e code {\r\n\tcolor: #C9AE75; /* Change the old color so it seems less like an error */\r\n\tfont-size: inherit;\r\n}\r\n\r\n/* Page Break : use \u003cdiv class=\"page\"/\u003e to insert page break\r\n-------------------------------------------------------- */\r\n.page {\r\n\tpage-break-after: always;\r\n}\r\n\n\u003c/style\u003e\n\u003clink rel=\"stylesheet\" href=\"file:///Users/freman/Documents/Documents/markdown/github.css\" type=\"text/css\"\u003e\r\n\u003cscript\u003e\r\n  !function(t,e){\"object\"==typeof exports\u0026\u0026\"object\"==typeof module?module.exports=e():\"function\"==typeof define\u0026\u0026define.amd?define([],e):\"object\"==typeof exports?exports.mermaid=e():t.mermaid=e()}(\"undefined\"!=typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){\"undefined\"!=typeof Symbol\u0026\u0026Symbol.toStringTag\u0026\u0026Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},n.t=function(t,e){if(1\u0026e\u0026\u0026(t=n(t)),8\u0026e)return t;if(4\u0026e\u0026\u0026\"object\"==typeof t\u0026\u0026t\u0026\u0026t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,\"default\",{enumerable:!0,value:t}),2\u0026e\u0026\u0026\"string\"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t\u0026\u0026t.__esModule?function(){return t.default}:function(){return t};return n.d(e,\"a\",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=\"\",n(n.s=509)}([function(t,e,n){\"use strict\";n.r(e);var r=function(t,e){return t\u003ce?-1:t\u003ee?1:t\u003e=e?0:NaN},i=function(t){var e;return 1===t.length\u0026\u0026(e=t,t=function(t,n){return r(e(t),n)}),{left:function(e,n,r,i){for(null==r\u0026\u0026(r=0),null==i\u0026\u0026(i=e.length);r\u003ci;){var a=r+i\u003e\u003e\u003e1;t(e[a],n)\u003c0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r\u0026\u0026(r=0),null==i\u0026\u0026(i=e.length);r\u003ci;){var a=r+i\u003e\u003e\u003e1;t(e[a],n)\u003e0?i=a:r=a+1}return r}}};var a=i(r),o=a.right,s=a.left,u=o,c=function(t,e){null==e\u0026\u0026(e=f);for(var n=0,r=t.length-1,i=t[0],a=new Array(r\u003c0?0:r);n\u003cr;)a[n]=e(i,i=t[++n]);return a};function f(t,e){return[t,e]}var l=function(t,e,n){var r,i,a,o,s=t.length,u=e.length,c=new Array(s*u);for(null==n\u0026\u0026(n=f),r=a=0;r\u003cs;++r)for(o=t[r],i=0;i\u003cu;++i,++a)c[a]=n(o,e[i]);return c},h=function(t,e){return e\u003ct?-1:e\u003et?1:e\u003e=t?0:NaN},d=function(t){return null===t?NaN:+t},p=function(t,e){var n,r,i=t.length,a=0,o=-1,s=0,u=0;if(null==e)for(;++o\u003ci;)isNaN(n=d(t[o]))||(u+=(r=n-s)*(n-(s+=r/++a)));else for(;++o\u003ci;)isNaN(n=d(e(t[o],o,t)))||(u+=(r=n-s)*(n-(s+=r/++a)));if(a\u003e1)return u/(a-1)},g=function(t,e){var n=p(t,e);return n?Math.sqrt(n):n},y=function(t,e){var n,r,i,a=t.length,o=-1;if(null==e){for(;++o\u003ca;)if(null!=(n=t[o])\u0026\u0026n\u003e=n)for(r=i=n;++o\u003ca;)null!=(n=t[o])\u0026\u0026(r\u003en\u0026\u0026(r=n),i\u003cn\u0026\u0026(i=n))}else for(;++o\u003ca;)if(null!=(n=e(t[o],o,t))\u0026\u0026n\u003e=n)for(r=i=n;++o\u003ca;)null!=(n=e(t[o],o,t))\u0026\u0026(r\u003en\u0026\u0026(r=n),i\u003cn\u0026\u0026(i=n));return[r,i]},b=Array.prototype,v=b.slice,m=b.map,_=function(t){return function(){return t}},w=function(t){return t},x=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)\u003c2?(e=t,t=0,1):i\u003c3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),a=new Array(i);++r\u003ci;)a[r]=t+r*n;return a},k=Math.sqrt(50),E=Math.sqrt(10),A=Math.sqrt(2),S=function(t,e,n){var r,i,a,o,s=-1;if(n=+n,(t=+t)===(e=+e)\u0026\u0026n\u003e0)return[t];if((r=e\u003ct)\u0026\u0026(i=t,t=e,e=i),0===(o=M(t,e,n))||!isFinite(o))return[];if(o\u003e0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++s\u003ci;)a[s]=(t+s)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(i=Math.ceil(t-e+1));++s\u003ci;)a[s]=(t-s)/o;return r\u0026\u0026a.reverse(),a};function M(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i\u003e=0?(a\u003e=k?10:a\u003e=E?5:a\u003e=A?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a\u003e=k?10:a\u003e=E?5:a\u003e=A?2:1)}function T(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a\u003e=k?i*=10:a\u003e=E?i*=5:a\u003e=A\u0026\u0026(i*=2),e\u003ct?-i:i}var D=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1},C=function(){var t=w,e=y,n=D;function r(r){var i,a,o=r.length,s=new Array(o);for(i=0;i\u003co;++i)s[i]=t(r[i],i,r);var c=e(s),f=c[0],l=c[1],h=n(s,f,l);Array.isArray(h)||(h=T(f,l,h),h=x(Math.ceil(f/h)*h,l,h));for(var d=h.length;h[0]\u003c=f;)h.shift(),--d;for(;h[d-1]\u003el;)h.pop(),--d;var p,g=new Array(d+1);for(i=0;i\u003c=d;++i)(p=g[i]=[]).x0=i\u003e0?h[i-1]:f,p.x1=i\u003cd?h[i]:l;for(i=0;i\u003co;++i)f\u003c=(a=s[i])\u0026\u0026a\u003c=l\u0026\u0026g[u(h,a,0,d)].push(r[i]);return g}return r.value=function(e){return arguments.length?(t=\"function\"==typeof e?e:_(e),r):t},r.domain=function(t){return arguments.length?(e=\"function\"==typeof t?t:_([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n=\"function\"==typeof t?t:Array.isArray(t)?_(v.call(t)):_(t),r):n},r},N=function(t,e,n){if(null==n\u0026\u0026(n=d),r=t.length){if((e=+e)\u003c=0||r\u003c2)return+n(t[0],0,t);if(e\u003e=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,a=Math.floor(i),o=+n(t[a],a,t);return o+(+n(t[a+1],a+1,t)-o)*(i-a)}},I=function(t,e,n){return t=m.call(t,d).sort(r),Math.ceil((n-e)/(2*(N(t,.75)-N(t,.25))*Math.pow(t.length,-1/3)))},L=function(t,e,n){return Math.ceil((n-e)/(3.5*g(t)*Math.pow(t.length,-1/3)))},B=function(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a\u003ci;)if(null!=(n=t[a])\u0026\u0026n\u003e=n)for(r=n;++a\u003ci;)null!=(n=t[a])\u0026\u0026n\u003er\u0026\u0026(r=n)}else for(;++a\u003ci;)if(null!=(n=e(t[a],a,t))\u0026\u0026n\u003e=n)for(r=n;++a\u003ci;)null!=(n=e(t[a],a,t))\u0026\u0026n\u003er\u0026\u0026(r=n);return r},O=function(t,e){var n,r=t.length,i=r,a=-1,o=0;if(null==e)for(;++a\u003cr;)isNaN(n=d(t[a]))?--i:o+=n;else for(;++a\u003cr;)isNaN(n=d(e(t[a],a,t)))?--i:o+=n;if(i)return o/i},R=function(t,e){var n,i=t.length,a=-1,o=[];if(null==e)for(;++a\u003ci;)isNaN(n=d(t[a]))||o.push(n);else for(;++a\u003ci;)isNaN(n=d(e(t[a],a,t)))||o.push(n);return N(o.sort(r),.5)},P=function(t){for(var e,n,r,i=t.length,a=-1,o=0;++a\u003ci;)o+=t[a].length;for(n=new Array(o);--i\u003e=0;)for(e=(r=t[i]).length;--e\u003e=0;)n[--o]=r[e];return n},F=function(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a\u003ci;)if(null!=(n=t[a])\u0026\u0026n\u003e=n)for(r=n;++a\u003ci;)null!=(n=t[a])\u0026\u0026r\u003en\u0026\u0026(r=n)}else for(;++a\u003ci;)if(null!=(n=e(t[a],a,t))\u0026\u0026n\u003e=n)for(r=n;++a\u003ci;)null!=(n=e(t[a],a,t))\u0026\u0026r\u003en\u0026\u0026(r=n);return r},q=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},j=function(t,e){if(n=t.length){var n,i,a=0,o=0,s=t[o];for(null==e\u0026\u0026(e=r);++a\u003cn;)(e(i=t[a],s)\u003c0||0!==e(s,s))\u0026\u0026(s=i,o=a);return 0===e(s,s)?o:void 0}},U=function(t,e,n){for(var r,i,a=(null==n?t.length:n)-(e=null==e?0:+e);a;)i=Math.random()*a--|0,r=t[a+e],t[a+e]=t[i+e],t[i+e]=r;return t},z=function(t,e){var n,r=t.length,i=-1,a=0;if(null==e)for(;++i\u003cr;)(n=+t[i])\u0026\u0026(a+=n);else for(;++i\u003cr;)(n=+e(t[i],i,t))\u0026\u0026(a+=n);return a},Y=function(t){if(!(i=t.length))return[];for(var e=-1,n=F(t,V),r=new Array(n);++e\u003cn;)for(var i,a=-1,o=r[e]=new Array(i);++a\u003ci;)o[a]=t[a][e];return r};function V(t){return t.length}var H=function(){return Y(arguments)},G=Array.prototype.slice,$=function(t){return t};function W(t){return\"translate(\"+(t+.5)+\",0)\"}function K(t){return\"translate(0,\"+(t+.5)+\")\"}function X(t){return function(e){return+t(e)}}function Z(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()\u0026\u0026(e=Math.round(e)),function(n){return+t(n)+e}}function J(){return!this.__axis}function Q(t,e){var n=[],r=null,i=null,a=6,o=6,s=3,u=1===t||4===t?-1:1,c=4===t||2===t?\"x\":\"y\",f=1===t||3===t?W:K;function l(l){var h=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,d=null==i?e.tickFormat?e.tickFormat.apply(e,n):$:i,p=Math.max(a,0)+s,g=e.range(),y=+g[0]+.5,b=+g[g.length-1]+.5,v=(e.bandwidth?Z:X)(e.copy()),m=l.selection?l.selection():l,_=m.selectAll(\".domain\").data([null]),w=m.selectAll(\".tick\").data(h,e).order(),x=w.exit(),k=w.enter().append(\"g\").attr(\"class\",\"tick\"),E=w.select(\"line\"),A=w.select(\"text\");_=_.merge(_.enter().insert(\"path\",\".tick\").attr(\"class\",\"domain\").attr(\"stroke\",\"currentColor\")),w=w.merge(k),E=E.merge(k.append(\"line\").attr(\"stroke\",\"currentColor\").attr(c+\"2\",u*a)),A=A.merge(k.append(\"text\").attr(\"fill\",\"currentColor\").attr(c,u*p).attr(\"dy\",1===t?\"0em\":3===t?\"0.71em\":\"0.32em\")),l!==m\u0026\u0026(_=_.transition(l),w=w.transition(l),E=E.transition(l),A=A.transition(l),x=x.transition(l).attr(\"opacity\",1e-6).attr(\"transform\",(function(t){return isFinite(t=v(t))?f(t):this.getAttribute(\"transform\")})),k.attr(\"opacity\",1e-6).attr(\"transform\",(function(t){var e=this.parentNode.__axis;return f(e\u0026\u0026isFinite(e=e(t))?e:v(t))}))),x.remove(),_.attr(\"d\",4===t||2==t?o?\"M\"+u*o+\",\"+y+\"H0.5V\"+b+\"H\"+u*o:\"M0.5,\"+y+\"V\"+b:o?\"M\"+y+\",\"+u*o+\"V0.5H\"+b+\"V\"+u*o:\"M\"+y+\",0.5H\"+b),w.attr(\"opacity\",1).attr(\"transform\",(function(t){return f(v(t))})),E.attr(c+\"2\",u*a),A.attr(c,u*p).text(d),m.filter(J).attr(\"fill\",\"none\").attr(\"font-size\",10).attr(\"font-family\",\"sans-serif\").attr(\"text-anchor\",2===t?\"start\":4===t?\"end\":\"middle\"),m.each((function(){this.__axis=v}))}return l.scale=function(t){return arguments.length?(e=t,l):e},l.ticks=function(){return n=G.call(arguments),l},l.tickArguments=function(t){return arguments.length?(n=null==t?[]:G.call(t),l):n.slice()},l.tickValues=function(t){return arguments.length?(r=null==t?null:G.call(t),l):r\u0026\u0026r.slice()},l.tickFormat=function(t){return arguments.length?(i=t,l):i},l.tickSize=function(t){return arguments.length?(a=o=+t,l):a},l.tickSizeInner=function(t){return arguments.length?(a=+t,l):a},l.tickSizeOuter=function(t){return arguments.length?(o=+t,l):o},l.tickPadding=function(t){return arguments.length?(s=+t,l):s},l}function tt(t){return Q(1,t)}function et(t){return Q(2,t)}function nt(t){return Q(3,t)}function rt(t){return Q(4,t)}var it={value:function(){}};function at(){for(var t,e=0,n=arguments.length,r={};e\u003cn;++e){if(!(t=arguments[e]+\"\")||t in r||/[\\s.]/.test(t))throw new Error(\"illegal type: \"+t);r[t]=[]}return new ot(r)}function ot(t){this._=t}function st(t,e){return t.trim().split(/^|\\s+/).map((function(t){var n=\"\",r=t.indexOf(\".\");if(r\u003e=0\u0026\u0026(n=t.slice(r+1),t=t.slice(0,r)),t\u0026\u0026!e.hasOwnProperty(t))throw new Error(\"unknown type: \"+t);return{type:t,name:n}}))}function ut(t,e){for(var n,r=0,i=t.length;r\u003ci;++r)if((n=t[r]).name===e)return n.value}function ct(t,e,n){for(var r=0,i=t.length;r\u003ci;++r)if(t[r].name===e){t[r]=it,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n\u0026\u0026t.push({name:e,value:n}),t}ot.prototype=at.prototype={constructor:ot,on:function(t,e){var n,r=this._,i=st(t+\"\",r),a=-1,o=i.length;if(!(arguments.length\u003c2)){if(null!=e\u0026\u0026\"function\"!=typeof e)throw new Error(\"invalid callback: \"+e);for(;++a\u003co;)if(n=(t=i[a]).type)r[n]=ct(r[n],t.name,e);else if(null==e)for(n in r)r[n]=ct(r[n],t.name,null);return this}for(;++a\u003co;)if((n=(t=i[a]).type)\u0026\u0026(n=ut(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new ot(t)},call:function(t,e){if((n=arguments.length-2)\u003e0)for(var n,r,i=new Array(n),a=0;a\u003cn;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error(\"unknown type: \"+t);for(a=0,n=(r=this._[t]).length;a\u003cn;++a)r[a].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error(\"unknown type: \"+t);for(var r=this._[t],i=0,a=r.length;i\u003ca;++i)r[i].value.apply(e,n)}};var ft=at;function lt(){}var ht=function(t){return null==t?lt:function(){return this.querySelector(t)}};function dt(){return[]}var pt=function(t){return null==t?dt:function(){return this.querySelectorAll(t)}},gt=function(t){return function(){return this.matches(t)}},yt=function(t){return new Array(t.length)};function bt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}bt.prototype={constructor:bt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function vt(t,e,n,r,i,a){for(var o,s=0,u=e.length,c=a.length;s\u003cc;++s)(o=e[s])?(o.__data__=a[s],r[s]=o):n[s]=new bt(t,a[s]);for(;s\u003cu;++s)(o=e[s])\u0026\u0026(i[s]=o)}function mt(t,e,n,r,i,a,o){var s,u,c,f={},l=e.length,h=a.length,d=new Array(l);for(s=0;s\u003cl;++s)(u=e[s])\u0026\u0026(d[s]=c=\"$\"+o.call(u,u.__data__,s,e),c in f?i[s]=u:f[c]=u);for(s=0;s\u003ch;++s)(u=f[c=\"$\"+o.call(t,a[s],s,a)])?(r[s]=u,u.__data__=a[s],f[c]=null):n[s]=new bt(t,a[s]);for(s=0;s\u003cl;++s)(u=e[s])\u0026\u0026f[d[s]]===u\u0026\u0026(i[s]=u)}function _t(t,e){return t\u003ce?-1:t\u003ee?1:t\u003e=e?0:NaN}var wt=\"http://www.w3.org/1999/xhtml\",xt={svg:\"http://www.w3.org/2000/svg\",xhtml:wt,xlink:\"http://www.w3.org/1999/xlink\",xml:\"http://www.w3.org/XML/1998/namespace\",xmlns:\"http://www.w3.org/2000/xmlns/\"},kt=function(t){var e=t+=\"\",n=e.indexOf(\":\");return n\u003e=0\u0026\u0026\"xmlns\"!==(e=t.slice(0,n))\u0026\u0026(t=t.slice(n+1)),xt.hasOwnProperty(e)?{space:xt[e],local:t}:t};function Et(t){return function(){this.removeAttribute(t)}}function At(t){return function(){this.removeAttributeNS(t.space,t.local)}}function St(t,e){return function(){this.setAttribute(t,e)}}function Mt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Tt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Dt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var Ct=function(t){return t.ownerDocument\u0026\u0026t.ownerDocument.defaultView||t.document\u0026\u0026t||t.defaultView};function Nt(t){return function(){this.style.removeProperty(t)}}function It(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Lt(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Bt(t,e){return t.style.getPropertyValue(e)||Ct(t).getComputedStyle(t,null).getPropertyValue(e)}function Ot(t){return function(){delete this[t]}}function Rt(t,e){return function(){this[t]=e}}function Pt(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Ft(t){return t.trim().split(/^|\\s+/)}function qt(t){return t.classList||new jt(t)}function jt(t){this._node=t,this._names=Ft(t.getAttribute(\"class\")||\"\")}function Ut(t,e){for(var n=qt(t),r=-1,i=e.length;++r\u003ci;)n.add(e[r])}function zt(t,e){for(var n=qt(t),r=-1,i=e.length;++r\u003ci;)n.remove(e[r])}function Yt(t){return function(){Ut(this,t)}}function Vt(t){return function(){zt(this,t)}}function Ht(t,e){return function(){(e.apply(this,arguments)?Ut:zt)(this,t)}}jt.prototype={add:function(t){this._names.indexOf(t)\u003c0\u0026\u0026(this._names.push(t),this._node.setAttribute(\"class\",this._names.join(\" \")))},remove:function(t){var e=this._names.indexOf(t);e\u003e=0\u0026\u0026(this._names.splice(e,1),this._node.setAttribute(\"class\",this._names.join(\" \")))},contains:function(t){return this._names.indexOf(t)\u003e=0}};function Gt(){this.textContent=\"\"}function $t(t){return function(){this.textContent=t}}function Wt(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?\"\":e}}function Kt(){this.innerHTML=\"\"}function Xt(t){return function(){this.innerHTML=t}}function Zt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?\"\":e}}function Jt(){this.nextSibling\u0026\u0026this.parentNode.appendChild(this)}function Qt(){this.previousSibling\u0026\u0026this.parentNode.insertBefore(this,this.parentNode.firstChild)}function te(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===wt\u0026\u0026e.documentElement.namespaceURI===wt?e.createElement(t):e.createElementNS(n,t)}}function ee(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var ne=function(t){var e=kt(t);return(e.local?ee:te)(e)};function re(){return null}function ie(){var t=this.parentNode;t\u0026\u0026t.removeChild(this)}function ae(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function oe(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var se={},ue=null;\"undefined\"!=typeof document\u0026\u0026(\"onmouseenter\"in document.documentElement||(se={mouseenter:\"mouseover\",mouseleave:\"mouseout\"}));function ce(t,e,n){return t=fe(t,e,n),function(e){var n=e.relatedTarget;n\u0026\u0026(n===this||8\u0026n.compareDocumentPosition(this))||t.call(this,e)}}function fe(t,e,n){return function(r){var i=ue;ue=r;try{t.call(this,this.__data__,e,n)}finally{ue=i}}}function le(t){return t.trim().split(/^|\\s+/).map((function(t){var e=\"\",n=t.indexOf(\".\");return n\u003e=0\u0026\u0026(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function he(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r\u003ca;++r)n=e[r],t.type\u0026\u0026n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}}function de(t,e,n){var r=se.hasOwnProperty(t.type)?ce:fe;return function(i,a,o){var s,u=this.__on,c=r(e,a,o);if(u)for(var f=0,l=u.length;f\u003cl;++f)if((s=u[f]).type===t.type\u0026\u0026s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=e);this.addEventListener(t.type,c,n),s={type:t.type,name:t.name,value:e,listener:c,capture:n},u?u.push(s):this.__on=[s]}}function pe(t,e,n,r){var i=ue;t.sourceEvent=ue,ue=t;try{return e.apply(n,r)}finally{ue=i}}function ge(t,e,n){var r=Ct(t),i=r.CustomEvent;\"function\"==typeof i?i=new i(e,n):(i=r.document.createEvent(\"Event\"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function ye(t,e){return function(){return ge(this,t,e)}}function be(t,e){return function(){return ge(this,t,e.apply(this,arguments))}}var ve=[null];function me(t,e){this._groups=t,this._parents=e}function _e(){return new me([[document.documentElement]],ve)}me.prototype=_e.prototype={constructor:me,select:function(t){\"function\"!=typeof t\u0026\u0026(t=ht(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i\u003cn;++i)for(var a,o,s=e[i],u=s.length,c=r[i]=new Array(u),f=0;f\u003cu;++f)(a=s[f])\u0026\u0026(o=t.call(a,a.__data__,f,s))\u0026\u0026(\"__data__\"in a\u0026\u0026(o.__data__=a.__data__),c[f]=o);return new me(r,this._parents)},selectAll:function(t){\"function\"!=typeof t\u0026\u0026(t=pt(t));for(var e=this._groups,n=e.length,r=[],i=[],a=0;a\u003cn;++a)for(var o,s=e[a],u=s.length,c=0;c\u003cu;++c)(o=s[c])\u0026\u0026(r.push(t.call(o,o.__data__,c,s)),i.push(o));return new me(r,i)},filter:function(t){\"function\"!=typeof t\u0026\u0026(t=gt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i\u003cn;++i)for(var a,o=e[i],s=o.length,u=r[i]=[],c=0;c\u003cs;++c)(a=o[c])\u0026\u0026t.call(a,a.__data__,c,o)\u0026\u0026u.push(a);return new me(r,this._parents)},data:function(t,e){if(!t)return p=new Array(this.size()),f=-1,this.each((function(t){p[++f]=t})),p;var n,r=e?mt:vt,i=this._parents,a=this._groups;\"function\"!=typeof t\u0026\u0026(n=t,t=function(){return n});for(var o=a.length,s=new Array(o),u=new Array(o),c=new Array(o),f=0;f\u003co;++f){var l=i[f],h=a[f],d=h.length,p=t.call(l,l\u0026\u0026l.__data__,f,i),g=p.length,y=u[f]=new Array(g),b=s[f]=new Array(g);r(l,h,y,b,c[f]=new Array(d),p,e);for(var v,m,_=0,w=0;_\u003cg;++_)if(v=y[_]){for(_\u003e=w\u0026\u0026(w=_+1);!(m=b[w])\u0026\u0026++w\u003cg;);v._next=m||null}}return(s=new me(s,i))._enter=u,s._exit=c,s},enter:function(){return new me(this._enter||this._groups.map(yt),this._parents)},exit:function(){return new me(this._exit||this._groups.map(yt),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,a=this.exit();return r=\"function\"==typeof t?t(r):r.append(t+\"\"),null!=e\u0026\u0026(i=e(i)),null==n?a.remove():n(a),r\u0026\u0026i?r.merge(i).order():i},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s\u003ca;++s)for(var u,c=e[s],f=n[s],l=c.length,h=o[s]=new Array(l),d=0;d\u003cl;++d)(u=c[d]||f[d])\u0026\u0026(h[d]=u);for(;s\u003cr;++s)o[s]=e[s];return new me(o,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e\u003cn;)for(var r,i=t[e],a=i.length-1,o=i[a];--a\u003e=0;)(r=i[a])\u0026\u0026(o\u0026\u00264^r.compareDocumentPosition(o)\u0026\u0026o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e\u0026\u0026n?t(e.__data__,n.__data__):!e-!n}t||(t=_t);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a\u003cr;++a){for(var o,s=n[a],u=s.length,c=i[a]=new Array(u),f=0;f\u003cu;++f)(o=s[f])\u0026\u0026(c[f]=o);c.sort(e)}return new me(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},node:function(){for(var t=this._groups,e=0,n=t.length;e\u003cn;++e)for(var r=t[e],i=0,a=r.length;i\u003ca;++i){var o=r[i];if(o)return o}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n\u003cr;++n)for(var i,a=e[n],o=0,s=a.length;o\u003cs;++o)(i=a[o])\u0026\u0026t.call(i,i.__data__,o,a);return this},attr:function(t,e){var n=kt(t);if(arguments.length\u003c2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?At:Et:\"function\"==typeof e?n.local?Dt:Tt:n.local?Mt:St)(n,e))},style:function(t,e,n){return arguments.length\u003e1?this.each((null==e?Nt:\"function\"==typeof e?Lt:It)(t,e,null==n?\"\":n)):Bt(this.node(),t)},property:function(t,e){return arguments.length\u003e1?this.each((null==e?Ot:\"function\"==typeof e?Pt:Rt)(t,e)):this.node()[t]},classed:function(t,e){var n=Ft(t+\"\");if(arguments.length\u003c2){for(var r=qt(this.node()),i=-1,a=n.length;++i\u003ca;)if(!r.contains(n[i]))return!1;return!0}return this.each((\"function\"==typeof e?Ht:e?Yt:Vt)(n,e))},text:function(t){return arguments.length?this.each(null==t?Gt:(\"function\"==typeof t?Wt:$t)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Kt:(\"function\"==typeof t?Zt:Xt)(t)):this.node().innerHTML},raise:function(){return this.each(Jt)},lower:function(){return this.each(Qt)},append:function(t){var e=\"function\"==typeof t?t:ne(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n=\"function\"==typeof t?t:ne(t),r=null==e?re:\"function\"==typeof e?e:ht(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(ie)},clone:function(t){return this.select(t?oe:ae)},datum:function(t){return arguments.length?this.property(\"__data__\",t):this.node().__data__},on:function(t,e,n){var r,i,a=le(t+\"\"),o=a.length;if(!(arguments.length\u003c2)){for(s=e?de:he,null==n\u0026\u0026(n=!1),r=0;r\u003co;++r)this.each(s(a[r],e,n));return this}var s=this.node().__on;if(s)for(var u,c=0,f=s.length;c\u003cf;++c)for(r=0,u=s[c];r\u003co;++r)if((i=a[r]).type===u.type\u0026\u0026i.name===u.name)return u.value},dispatch:function(t,e){return this.each((\"function\"==typeof e?be:ye)(t,e))}};var we=_e,xe=function(t){return\"string\"==typeof t?new me([[document.querySelector(t)]],[document.documentElement]):new me([[t]],ve)};function ke(){ue.stopImmediatePropagation()}var Ee=function(){ue.preventDefault(),ue.stopImmediatePropagation()},Ae=function(t){var e=t.document.documentElement,n=xe(t).on(\"dragstart.drag\",Ee,!0);\"onselectstart\"in e?n.on(\"selectstart.drag\",Ee,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect=\"none\")};function Se(t,e){var n=t.document.documentElement,r=xe(t).on(\"dragstart.drag\",null);e\u0026\u0026(r.on(\"click.drag\",Ee,!0),setTimeout((function(){r.on(\"click.drag\",null)}),0)),\"onselectstart\"in n?r.on(\"selectstart.drag\",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var Me=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function Te(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function De(){}var Ce=\"\\\\s*([+-]?\\\\d+)\\\\s*\",Ne=\"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)\\\\s*\",Ie=\"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)%\\\\s*\",Le=/^#([0-9a-f]{3,8})$/,Be=new RegExp(\"^rgb\\\\(\"+[Ce,Ce,Ce]+\"\\\\)$\"),Oe=new RegExp(\"^rgb\\\\(\"+[Ie,Ie,Ie]+\"\\\\)$\"),Re=new RegExp(\"^rgba\\\\(\"+[Ce,Ce,Ce,Ne]+\"\\\\)$\"),Pe=new RegExp(\"^rgba\\\\(\"+[Ie,Ie,Ie,Ne]+\"\\\\)$\"),Fe=new RegExp(\"^hsl\\\\(\"+[Ne,Ie,Ie]+\"\\\\)$\"),qe=new RegExp(\"^hsla\\\\(\"+[Ne,Ie,Ie,Ne]+\"\\\\)$\"),je={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ue(){return this.rgb().formatHex()}function ze(){return this.rgb().formatRgb()}function Ye(t){var e,n;return t=(t+\"\").trim().toLowerCase(),(e=Le.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Ve(e):3===n?new We(e\u003e\u003e8\u002615|e\u003e\u003e4\u0026240,e\u003e\u003e4\u002615|240\u0026e,(15\u0026e)\u003c\u003c4|15\u0026e,1):8===n?new We(e\u003e\u003e24\u0026255,e\u003e\u003e16\u0026255,e\u003e\u003e8\u0026255,(255\u0026e)/255):4===n?new We(e\u003e\u003e12\u002615|e\u003e\u003e8\u0026240,e\u003e\u003e8\u002615|e\u003e\u003e4\u0026240,e\u003e\u003e4\u002615|240\u0026e,((15\u0026e)\u003c\u003c4|15\u0026e)/255):null):(e=Be.exec(t))?new We(e[1],e[2],e[3],1):(e=Oe.exec(t))?new We(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Re.exec(t))?He(e[1],e[2],e[3],e[4]):(e=Pe.exec(t))?He(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Fe.exec(t))?Je(e[1],e[2]/100,e[3]/100,1):(e=qe.exec(t))?Je(e[1],e[2]/100,e[3]/100,e[4]):je.hasOwnProperty(t)?Ve(je[t]):\"transparent\"===t?new We(NaN,NaN,NaN,0):null}function Ve(t){return new We(t\u003e\u003e16\u0026255,t\u003e\u003e8\u0026255,255\u0026t,1)}function He(t,e,n,r){return r\u003c=0\u0026\u0026(t=e=n=NaN),new We(t,e,n,r)}function Ge(t){return t instanceof De||(t=Ye(t)),t?new We((t=t.rgb()).r,t.g,t.b,t.opacity):new We}function $e(t,e,n,r){return 1===arguments.length?Ge(t):new We(t,e,n,null==r?1:r)}function We(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Ke(){return\"#\"+Ze(this.r)+Ze(this.g)+Ze(this.b)}function Xe(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?\"rgb(\":\"rgba(\")+Math.max(0,Math.min(255,Math.round(this.r)||0))+\", \"+Math.max(0,Math.min(255,Math.round(this.g)||0))+\", \"+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?\")\":\", \"+t+\")\")}function Ze(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))\u003c16?\"0\":\"\")+t.toString(16)}function Je(t,e,n,r){return r\u003c=0?t=e=n=NaN:n\u003c=0||n\u003e=1?t=e=NaN:e\u003c=0\u0026\u0026(t=NaN),new en(t,e,n,r)}function Qe(t){if(t instanceof en)return new en(t.h,t.s,t.l,t.opacity);if(t instanceof De||(t=Ye(t)),!t)return new en;if(t instanceof en)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,u=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n\u003cr):n===a?(r-e)/s+2:(e-n)/s+4,s/=u\u003c.5?a+i:2-a-i,o*=60):s=u\u003e0\u0026\u0026u\u003c1?0:o,new en(o,s,u,t.opacity)}function tn(t,e,n,r){return 1===arguments.length?Qe(t):new en(t,e,n,null==r?1:r)}function en(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function nn(t,e,n){return 255*(t\u003c60?e+(n-e)*t/60:t\u003c180?n:t\u003c240?e+(n-e)*(240-t)/60:e)}function rn(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}Me(De,Ye,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Ue,formatHex:Ue,formatHsl:function(){return Qe(this).formatHsl()},formatRgb:ze,toString:ze}),Me(We,$e,Te(De,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new We(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new We(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5\u003c=this.r\u0026\u0026this.r\u003c255.5\u0026\u0026-.5\u003c=this.g\u0026\u0026this.g\u003c255.5\u0026\u0026-.5\u003c=this.b\u0026\u0026this.b\u003c255.5\u0026\u00260\u003c=this.opacity\u0026\u0026this.opacity\u003c=1},hex:Ke,formatHex:Ke,formatRgb:Xe,toString:Xe})),Me(en,tn,Te(De,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new en(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new en(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h\u003c0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n\u003c.5?n:1-n)*e,i=2*n-r;return new We(nn(t\u003e=240?t-240:t+120,i,r),nn(t,i,r),nn(t\u003c120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0\u003c=this.s\u0026\u0026this.s\u003c=1||isNaN(this.s))\u0026\u00260\u003c=this.l\u0026\u0026this.l\u003c=1\u0026\u00260\u003c=this.opacity\u0026\u0026this.opacity\u003c=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?\"hsl(\":\"hsla(\")+(this.h||0)+\", \"+100*(this.s||0)+\"%, \"+100*(this.l||0)+\"%\"+(1===t?\")\":\", \"+t+\")\")}}));var an=function(t){var e=t.length-1;return function(n){var r=n\u003c=0?n=0:n\u003e=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r\u003e0?t[r-1]:2*i-a,s=r\u003ce-1?t[r+2]:2*a-i;return rn((n-r/e)*e,o,i,a,s)}},on=function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)\u003c0?++n:n)*e),i=t[(r+e-1)%e],a=t[r%e],o=t[(r+1)%e],s=t[(r+2)%e];return rn((n-r/e)*e,i,a,o,s)}},sn=function(t){return function(){return t}};function un(t,e){return function(n){return t+n*e}}function cn(t,e){var n=e-t;return n?un(t,n\u003e180||n\u003c-180?n-360*Math.round(n/360):n):sn(isNaN(t)?e:t)}function fn(t){return 1==(t=+t)?ln:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):sn(isNaN(e)?n:e)}}function ln(t,e){var n=e-t;return n?un(t,n):sn(isNaN(t)?e:t)}var hn=function t(e){var n=fn(e);function r(t,e){var r=n((t=$e(t)).r,(e=$e(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=ln(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+\"\"}}return r.gamma=t,r}(1);function dn(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),s=new Array(i);for(n=0;n\u003ci;++n)r=$e(e[n]),a[n]=r.r||0,o[n]=r.g||0,s[n]=r.b||0;return a=t(a),o=t(o),s=t(s),r.opacity=1,function(t){return r.r=a(t),r.g=o(t),r.b=s(t),r+\"\"}}}var pn=dn(an),gn=dn(on),yn=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(n=0;n\u003cr;++n)i[n]=t[n]*(1-a)+e[n]*a;return i}};function bn(t){return ArrayBuffer.isView(t)\u0026\u0026!(t instanceof DataView)}var vn=function(t,e){return(bn(e)?yn:mn)(t,e)};function mn(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,a=new Array(i),o=new Array(r);for(n=0;n\u003ci;++n)a[n]=Tn(t[n],e[n]);for(;n\u003cr;++n)o[n]=e[n];return function(t){for(n=0;n\u003ci;++n)o[n]=a[n](t);return o}}var _n=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}},wn=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},xn=function(t,e){var n,r={},i={};for(n in null!==t\u0026\u0026\"object\"==typeof t||(t={}),null!==e\u0026\u0026\"object\"==typeof e||(e={}),e)n in t?r[n]=Tn(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},kn=/[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g,En=new RegExp(kn.source,\"g\");var An,Sn,Mn=function(t,e){var n,r,i,a=kn.lastIndex=En.lastIndex=0,o=-1,s=[],u=[];for(t+=\"\",e+=\"\";(n=kn.exec(t))\u0026\u0026(r=En.exec(e));)(i=r.index)\u003ea\u0026\u0026(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,u.push({i:o,x:wn(n,r)})),a=En.lastIndex;return a\u003ce.length\u0026\u0026(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length\u003c2?u[0]?function(t){return function(e){return t(e)+\"\"}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var n,r=0;r\u003ce;++r)s[(n=u[r]).i]=n.x(t);return s.join(\"\")})},Tn=function(t,e){var n,r=typeof e;return null==e||\"boolean\"===r?sn(e):(\"number\"===r?wn:\"string\"===r?(n=Ye(e))?(e=n,hn):Mn:e instanceof Ye?hn:e instanceof Date?_n:bn(e)?yn:Array.isArray(e)?mn:\"function\"!=typeof e.valueOf\u0026\u0026\"function\"!=typeof e.toString||isNaN(e)?xn:wn)(t,e)},Dn=function(){for(var t,e=ue;t=e.sourceEvent;)e=t;return e},Cn=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]},Nn=function(t,e,n){arguments.length\u003c3\u0026\u0026(n=e,e=Dn().changedTouches);for(var r,i=0,a=e?e.length:0;i\u003ca;++i)if((r=e[i]).identifier===n)return Cn(t,r);return null},In=function(t){var e=Dn();return e.changedTouches\u0026\u0026(e=e.changedTouches[0]),Cn(t,e)},Ln=0,Bn=0,On=0,Rn=0,Pn=0,Fn=0,qn=\"object\"==typeof performance\u0026\u0026performance.now?performance:Date,jn=\"object\"==typeof window\u0026\u0026window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Un(){return Pn||(jn(zn),Pn=qn.now()+Fn)}function zn(){Pn=0}function Yn(){this._call=this._time=this._next=null}function Vn(t,e,n){var r=new Yn;return r.restart(t,e,n),r}function Hn(){Un(),++Ln;for(var t,e=An;e;)(t=Pn-e._time)\u003e=0\u0026\u0026e._call.call(null,t),e=e._next;--Ln}function Gn(){Pn=(Rn=qn.now())+Fn,Ln=Bn=0;try{Hn()}finally{Ln=0,function(){var t,e,n=An,r=1/0;for(;n;)n._call?(r\u003en._time\u0026\u0026(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:An=e);Sn=t,Wn(r)}(),Pn=0}}function $n(){var t=qn.now(),e=t-Rn;e\u003e1e3\u0026\u0026(Fn-=e,Rn=t)}function Wn(t){Ln||(Bn\u0026\u0026(Bn=clearTimeout(Bn)),t-Pn\u003e24?(t\u003c1/0\u0026\u0026(Bn=setTimeout(Gn,t-qn.now()-Fn)),On\u0026\u0026(On=clearInterval(On))):(On||(Rn=qn.now(),On=setInterval($n,1e3)),Ln=1,jn(Gn)))}Yn.prototype=Vn.prototype={constructor:Yn,restart:function(t,e,n){if(\"function\"!=typeof t)throw new TypeError(\"callback is not a function\");n=(null==n?Un():+n)+(null==e?0:+e),this._next||Sn===this||(Sn?Sn._next=this:An=this,Sn=this),this._call=t,this._time=n,Wn()},stop:function(){this._call\u0026\u0026(this._call=null,this._time=1/0,Wn())}};var Kn=function(t,e,n){var r=new Yn;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r},Xn=ft(\"start\",\"end\",\"cancel\",\"interrupt\"),Zn=[],Jn=function(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(u){var c,f,l,h;if(1!==n.state)return s();for(c in i)if((h=i[c]).name===n.name){if(3===h.state)return Kn(a);4===h.state?(h.state=6,h.timer.stop(),h.on.call(\"interrupt\",t,t.__data__,h.index,h.group),delete i[c]):+c\u003ce\u0026\u0026(h.state=6,h.timer.stop(),h.on.call(\"cancel\",t,t.__data__,h.index,h.group),delete i[c])}if(Kn((function(){3===n.state\u0026\u0026(n.state=4,n.timer.restart(o,n.delay,n.time),o(u))})),n.state=2,n.on.call(\"start\",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(l=n.tween.length),c=0,f=-1;c\u003cl;++c)(h=n.tween[c].value.call(t,t.__data__,n.index,n.group))\u0026\u0026(r[++f]=h);r.length=f+1}}function o(e){for(var i=e\u003cn.duration?n.ease.call(null,e/n.duration):(n.timer.restart(s),n.state=5,1),a=-1,o=r.length;++a\u003co;)r[a].call(t,i);5===n.state\u0026\u0026(n.on.call(\"end\",t,t.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=Vn((function(t){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay\u003c=t\u0026\u0026a(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:i,on:Xn,tween:Zn,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})};function Qn(t,e){var n=er(t,e);if(n.state\u003e0)throw new Error(\"too late; already scheduled\");return n}function tr(t,e){var n=er(t,e);if(n.state\u003e3)throw new Error(\"too late; already running\");return n}function er(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error(\"transition not found\");return n}var nr,rr,ir,ar,or=function(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+\"\",a)(n=a[i]).name===e?(r=n.state\u003e2\u0026\u0026n.state\u003c5,n.state=6,n.timer.stop(),n.on.call(r?\"interrupt\":\"cancel\",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o\u0026\u0026delete t.__transition}},sr=180/Math.PI,ur={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},cr=function(t,e,n,r,i,a){var o,s,u;return(o=Math.sqrt(t*t+e*e))\u0026\u0026(t/=o,e/=o),(u=t*n+e*r)\u0026\u0026(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))\u0026\u0026(n/=s,r/=s,u/=s),t*r\u003ce*n\u0026\u0026(t=-t,e=-e,u=-u,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*sr,skewX:Math.atan(u)*sr,scaleX:o,scaleY:s}};function fr(t,e,n,r){function i(t){return t.length?t.pop()+\" \":\"\"}return function(a,o){var s=[],u=[];return a=t(a),o=t(o),function(t,r,i,a,o,s){if(t!==i||r!==a){var u=o.push(\"translate(\",null,e,null,n);s.push({i:u-4,x:wn(t,i)},{i:u-2,x:wn(r,a)})}else(i||a)\u0026\u0026o.push(\"translate(\"+i+e+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,s,u),function(t,e,n,a){t!==e?(t-e\u003e180?e+=360:e-t\u003e180\u0026\u0026(t+=360),a.push({i:n.push(i(n)+\"rotate(\",null,r)-2,x:wn(t,e)})):e\u0026\u0026n.push(i(n)+\"rotate(\"+e+r)}(a.rotate,o.rotate,s,u),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+\"skewX(\",null,r)-2,x:wn(t,e)}):e\u0026\u0026n.push(i(n)+\"skewX(\"+e+r)}(a.skewX,o.skewX,s,u),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+\"scale(\",null,\",\",null,\")\");o.push({i:s-4,x:wn(t,n)},{i:s-2,x:wn(e,r)})}else 1===n\u0026\u00261===r||a.push(i(a)+\"scale(\"+n+\",\"+r+\")\")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,u),a=o=null,function(t){for(var e,n=-1,r=u.length;++n\u003cr;)s[(e=u[n]).i]=e.x(t);return s.join(\"\")}}}var lr=fr((function(t){return\"none\"===t?ur:(nr||(nr=document.createElement(\"DIV\"),rr=document.documentElement,ir=document.defaultView),nr.style.transform=t,t=ir.getComputedStyle(rr.appendChild(nr),null).getPropertyValue(\"transform\"),rr.removeChild(nr),t=t.slice(7,-1).split(\",\"),cr(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),\"px, \",\"px)\",\"deg)\"),hr=fr((function(t){return null==t?ur:(ar||(ar=document.createElementNS(\"http://www.w3.org/2000/svg\",\"g\")),ar.setAttribute(\"transform\",t),(t=ar.transform.baseVal.consolidate())?(t=t.matrix,cr(t.a,t.b,t.c,t.d,t.e,t.f)):ur)}),\", \",\")\",\")\");function dr(t,e){var n,r;return function(){var i=tr(this,t),a=i.tween;if(a!==n)for(var o=0,s=(r=n=a).length;o\u003cs;++o)if(r[o].name===e){(r=r.slice()).splice(o,1);break}i.tween=r}}function pr(t,e,n){var r,i;if(\"function\"!=typeof n)throw new Error;return function(){var a=tr(this,t),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:e,value:n},u=0,c=i.length;u\u003cc;++u)if(i[u].name===e){i[u]=s;break}u===c\u0026\u0026i.push(s)}a.tween=i}}function gr(t,e,n){var r=t._id;return t.each((function(){var t=tr(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return er(t,r).value[e]}}var yr=function(t,e){var n;return(\"number\"==typeof e?wn:e instanceof Ye?hn:(n=Ye(e))?(e=n,hn):Mn)(t,e)};function br(t){return function(){this.removeAttribute(t)}}function vr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function mr(t,e,n){var r,i,a=n+\"\";return function(){var o=this.getAttribute(t);return o===a?null:o===r?i:i=e(r=o,n)}}function _r(t,e,n){var r,i,a=n+\"\";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===r?i:i=e(r=o,n)}}function wr(t,e,n){var r,i,a;return function(){var o,s,u=n(this);if(null!=u)return(o=this.getAttribute(t))===(s=u+\"\")?null:o===r\u0026\u0026s===i?a:(i=s,a=e(r=o,u));this.removeAttribute(t)}}function xr(t,e,n){var r,i,a;return function(){var o,s,u=n(this);if(null!=u)return(o=this.getAttributeNS(t.space,t.local))===(s=u+\"\")?null:o===r\u0026\u0026s===i?a:(i=s,a=e(r=o,u));this.removeAttributeNS(t.space,t.local)}}function kr(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Er(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Ar(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r\u0026\u0026(n=(r=i)\u0026\u0026Er(t,i)),n}return i._value=e,i}function Sr(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r\u0026\u0026(n=(r=i)\u0026\u0026kr(t,i)),n}return i._value=e,i}function Mr(t,e){return function(){Qn(this,t).delay=+e.apply(this,arguments)}}function Tr(t,e){return e=+e,function(){Qn(this,t).delay=e}}function Dr(t,e){return function(){tr(this,t).duration=+e.apply(this,arguments)}}function Cr(t,e){return e=+e,function(){tr(this,t).duration=e}}function Nr(t,e){if(\"function\"!=typeof e)throw new Error;return function(){tr(this,t).ease=e}}function Ir(t,e,n){var r,i,a=function(t){return(t+\"\").trim().split(/^|\\s+/).every((function(t){var e=t.indexOf(\".\");return e\u003e=0\u0026\u0026(t=t.slice(0,e)),!t||\"start\"===t}))}(e)?Qn:tr;return function(){var o=a(this,t),s=o.on;s!==r\u0026\u0026(i=(r=s).copy()).on(e,n),o.on=i}}var Lr=we.prototype.constructor;function Br(t){return function(){this.style.removeProperty(t)}}function Or(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Rr(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i\u0026\u0026(r=(i=a)\u0026\u0026Or(t,a,n)),r}return a._value=e,a}function Pr(t){return function(e){this.textContent=t.call(this,e)}}function Fr(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n\u0026\u0026(e=(n=r)\u0026\u0026Pr(r)),e}return r._value=t,r}var qr=0;function jr(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Ur(t){return we().transition(t)}function zr(){return++qr}var Yr=we.prototype;function Vr(t){return t*t*t}function Hr(t){return--t*t*t+1}function Gr(t){return((t*=2)\u003c=1?t*t*t:(t-=2)*t*t+2)/2}jr.prototype=Ur.prototype={constructor:jr,select:function(t){var e=this._name,n=this._id;\"function\"!=typeof t\u0026\u0026(t=ht(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o\u003ci;++o)for(var s,u,c=r[o],f=c.length,l=a[o]=new Array(f),h=0;h\u003cf;++h)(s=c[h])\u0026\u0026(u=t.call(s,s.__data__,h,c))\u0026\u0026(\"__data__\"in s\u0026\u0026(u.__data__=s.__data__),l[h]=u,Jn(l[h],e,n,h,l,er(s,n)));return new jr(a,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;\"function\"!=typeof t\u0026\u0026(t=pt(t));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s\u003ci;++s)for(var u,c=r[s],f=c.length,l=0;l\u003cf;++l)if(u=c[l]){for(var h,d=t.call(u,u.__data__,l,c),p=er(u,n),g=0,y=d.length;g\u003cy;++g)(h=d[g])\u0026\u0026Jn(h,e,n,g,d,p);a.push(d),o.push(u)}return new jr(a,o,e,n)},filter:function(t){\"function\"!=typeof t\u0026\u0026(t=gt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i\u003cn;++i)for(var a,o=e[i],s=o.length,u=r[i]=[],c=0;c\u003cs;++c)(a=o[c])\u0026\u0026t.call(a,a.__data__,c,o)\u0026\u0026u.push(a);return new jr(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s\u003ca;++s)for(var u,c=e[s],f=n[s],l=c.length,h=o[s]=new Array(l),d=0;d\u003cl;++d)(u=c[d]||f[d])\u0026\u0026(h[d]=u);for(;s\u003cr;++s)o[s]=e[s];return new jr(o,this._parents,this._name,this._id)},selection:function(){return new Lr(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=zr(),r=this._groups,i=r.length,a=0;a\u003ci;++a)for(var o,s=r[a],u=s.length,c=0;c\u003cu;++c)if(o=s[c]){var f=er(o,e);Jn(o,t,n,c,s,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new jr(r,this._parents,t,n)},call:Yr.call,nodes:Yr.nodes,node:Yr.node,size:Yr.size,empty:Yr.empty,each:Yr.each,on:function(t,e){var n=this._id;return arguments.length\u003c2?er(this.node(),n).on.on(t):this.each(Ir(n,t,e))},attr:function(t,e){var n=kt(t),r=\"transform\"===n?hr:yr;return this.attrTween(t,\"function\"==typeof e?(n.local?xr:wr)(n,r,gr(this,\"attr.\"+t,e)):null==e?(n.local?vr:br)(n):(n.local?_r:mr)(n,r,e))},attrTween:function(t,e){var n=\"attr.\"+t;if(arguments.length\u003c2)return(n=this.tween(n))\u0026\u0026n._value;if(null==e)return this.tween(n,null);if(\"function\"!=typeof e)throw new Error;var r=kt(t);return this.tween(n,(r.local?Ar:Sr)(r,e))},style:function(t,e,n){var r=\"transform\"==(t+=\"\")?lr:yr;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var a=Bt(this,t),o=(this.style.removeProperty(t),Bt(this,t));return a===o?null:a===n\u0026\u0026o===r?i:i=e(n=a,r=o)}}(t,r)).on(\"end.style.\"+t,Br(t)):\"function\"==typeof e?this.styleTween(t,function(t,e,n){var r,i,a;return function(){var o=Bt(this,t),s=n(this),u=s+\"\";return null==s\u0026\u0026(this.style.removeProperty(t),u=s=Bt(this,t)),o===u?null:o===r\u0026\u0026u===i?a:(i=u,a=e(r=o,s))}}(t,r,gr(this,\"style.\"+t,e))).each(function(t,e){var n,r,i,a,o=\"style.\"+e,s=\"end.\"+o;return function(){var u=tr(this,t),c=u.on,f=null==u.value[o]?a||(a=Br(e)):void 0;c===n\u0026\u0026i===f||(r=(n=c).copy()).on(s,i=f),u.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,a=n+\"\";return function(){var o=Bt(this,t);return o===a?null:o===r?i:i=e(r=o,n)}}(t,r,e),n).on(\"end.style.\"+t,null)},styleTween:function(t,e,n){var r=\"style.\"+(t+=\"\");if(arguments.length\u003c2)return(r=this.tween(r))\u0026\u0026r._value;if(null==e)return this.tween(r,null);if(\"function\"!=typeof e)throw new Error;return this.tween(r,Rr(t,e,null==n?\"\":n))},text:function(t){return this.tween(\"text\",\"function\"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?\"\":e}}(gr(this,\"text\",t)):function(t){return function(){this.textContent=t}}(null==t?\"\":t+\"\"))},textTween:function(t){var e=\"text\";if(arguments.length\u003c1)return(e=this.tween(e))\u0026\u0026e._value;if(null==t)return this.tween(e,null);if(\"function\"!=typeof t)throw new Error;return this.tween(e,Fr(t))},remove:function(){return this.on(\"end.remove\",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e\u0026\u0026e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+=\"\",arguments.length\u003c2){for(var r,i=er(this.node(),n).tween,a=0,o=i.length;a\u003co;++a)if((r=i[a]).name===t)return r.value;return null}return this.each((null==e?dr:pr)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((\"function\"==typeof t?Mr:Tr)(e,t)):er(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((\"function\"==typeof t?Dr:Cr)(e,t)):er(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Nr(e,t)):er(this.node(),e).ease},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(a,o){var s={value:o},u={value:function(){0==--i\u0026\u0026a()}};n.each((function(){var n=tr(this,r),i=n.on;i!==t\u0026\u0026((e=(t=i).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(u)),n.on=e}))}))}};var $r={time:null,delay:0,duration:250,ease:Gr};function Wr(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return $r.time=Un(),$r;return n}we.prototype.interrupt=function(t){return this.each((function(){or(this,t)}))},we.prototype.transition=function(t){var e,n;t instanceof jr?(e=t._id,t=t._name):(e=zr(),(n=$r).time=Un(),t=null==t?null:t+\"\");for(var r=this._groups,i=r.length,a=0;a\u003ci;++a)for(var o,s=r[a],u=s.length,c=0;c\u003cu;++c)(o=s[c])\u0026\u0026Jn(o,t,e,c,s,n||Wr(o,e));return new jr(r,this._parents,t,e)};var Kr=[null],Xr=function(t,e){var n,r,i=t.__transition;if(i)for(r in e=null==e?null:e+\"\",i)if((n=i[r]).state\u003e1\u0026\u0026n.name===e)return new jr([[t]],Kr,e,+r);return null},Zr=function(t){return function(){return t}},Jr=function(t,e,n){this.target=t,this.type=e,this.selection=n};function Qr(){ue.stopImmediatePropagation()}var ti=function(){ue.preventDefault(),ue.stopImmediatePropagation()},ei={name:\"drag\"},ni={name:\"space\"},ri={name:\"handle\"},ii={name:\"center\"};function ai(t){return[+t[0],+t[1]]}function oi(t){return[ai(t[0]),ai(t[1])]}function si(t){return function(e){return Nn(e,ue.touches,t)}}var ui={name:\"x\",handles:[\"w\",\"e\"].map(yi),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t\u0026\u0026[t[0][0],t[1][0]]}},ci={name:\"y\",handles:[\"n\",\"s\"].map(yi),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t\u0026\u0026[t[0][1],t[1][1]]}},fi={name:\"xy\",handles:[\"n\",\"w\",\"e\",\"s\",\"nw\",\"ne\",\"sw\",\"se\"].map(yi),input:function(t){return null==t?null:oi(t)},output:function(t){return t}},li={overlay:\"crosshair\",selection:\"move\",n:\"ns-resize\",e:\"ew-resize\",s:\"ns-resize\",w:\"ew-resize\",nw:\"nwse-resize\",ne:\"nesw-resize\",se:\"nwse-resize\",sw:\"nesw-resize\"},hi={e:\"w\",w:\"e\",nw:\"ne\",ne:\"nw\",se:\"sw\",sw:\"se\"},di={n:\"s\",s:\"n\",nw:\"sw\",ne:\"se\",se:\"ne\",sw:\"nw\"},pi={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},gi={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function yi(t){return{type:t}}function bi(){return!ue.ctrlKey\u0026\u0026!ue.button}function vi(){var t=this.ownerSVGElement||this;return t.hasAttribute(\"viewBox\")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function mi(){return navigator.maxTouchPoints||\"ontouchstart\"in this}function _i(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function wi(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function xi(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function ki(){return Si(ui)}function Ei(){return Si(ci)}var Ai=function(){return Si(fi)};function Si(t){var e,n=vi,r=bi,i=mi,a=!0,o=ft(\"start\",\"brush\",\"end\"),s=6;function u(e){var n=e.property(\"__brush\",g).selectAll(\".overlay\").data([yi(\"overlay\")]);n.enter().append(\"rect\").attr(\"class\",\"overlay\").attr(\"pointer-events\",\"all\").attr(\"cursor\",li.overlay).merge(n).each((function(){var t=_i(this).extent;xe(this).attr(\"x\",t[0][0]).attr(\"y\",t[0][1]).attr(\"width\",t[1][0]-t[0][0]).attr(\"height\",t[1][1]-t[0][1])})),e.selectAll(\".selection\").data([yi(\"selection\")]).enter().append(\"rect\").attr(\"class\",\"selection\").attr(\"cursor\",li.selection).attr(\"fill\",\"#777\").attr(\"fill-opacity\",.3).attr(\"stroke\",\"#fff\").attr(\"shape-rendering\",\"crispEdges\");var r=e.selectAll(\".handle\").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append(\"rect\").attr(\"class\",(function(t){return\"handle handle--\"+t.type})).attr(\"cursor\",(function(t){return li[t.type]})),e.each(c).attr(\"fill\",\"none\").attr(\"pointer-events\",\"all\").on(\"mousedown.brush\",h).filter(i).on(\"touchstart.brush\",h).on(\"touchmove.brush\",d).on(\"touchend.brush touchcancel.brush\",p).style(\"touch-action\",\"none\").style(\"-webkit-tap-highlight-color\",\"rgba(0,0,0,0)\")}function c(){var t=xe(this),e=_i(this).selection;e?(t.selectAll(\".selection\").style(\"display\",null).attr(\"x\",e[0][0]).attr(\"y\",e[0][1]).attr(\"width\",e[1][0]-e[0][0]).attr(\"height\",e[1][1]-e[0][1]),t.selectAll(\".handle\").style(\"display\",null).attr(\"x\",(function(t){return\"e\"===t.type[t.type.length-1]?e[1][0]-s/2:e[0][0]-s/2})).attr(\"y\",(function(t){return\"s\"===t.type[0]?e[1][1]-s/2:e[0][1]-s/2})).attr(\"width\",(function(t){return\"n\"===t.type||\"s\"===t.type?e[1][0]-e[0][0]+s:s})).attr(\"height\",(function(t){return\"e\"===t.type||\"w\"===t.type?e[1][1]-e[0][1]+s:s}))):t.selectAll(\".selection,.handle\").style(\"display\",\"none\").attr(\"x\",null).attr(\"y\",null).attr(\"width\",null).attr(\"height\",null)}function f(t,e,n){return!n\u0026\u0026t.__brush.emitter||new l(t,e)}function l(t,e){this.that=t,this.args=e,this.state=t.__brush,this.active=0}function h(){if((!e||ue.touches)\u0026\u0026r.apply(this,arguments)){var n,i,o,s,u,l,h,d,p,g,y,b=this,v=ue.target.__data__.type,m=\"selection\"===(a\u0026\u0026ue.metaKey?v=\"overlay\":v)?ei:a\u0026\u0026ue.altKey?ii:ri,_=t===ci?null:pi[v],w=t===ui?null:gi[v],x=_i(b),k=x.extent,E=x.selection,A=k[0][0],S=k[0][1],M=k[1][0],T=k[1][1],D=0,C=0,N=_\u0026\u0026w\u0026\u0026a\u0026\u0026ue.shiftKey,I=ue.touches?si(ue.changedTouches[0].identifier):In,L=I(b),B=L,O=f(b,arguments,!0).beforestart();\"overlay\"===v?(E\u0026\u0026(p=!0),x.selection=E=[[n=t===ci?A:L[0],o=t===ui?S:L[1]],[u=t===ci?M:n,h=t===ui?T:o]]):(n=E[0][0],o=E[0][1],u=E[1][0],h=E[1][1]),i=n,s=o,l=u,d=h;var R=xe(b).attr(\"pointer-events\",\"none\"),P=R.selectAll(\".overlay\").attr(\"cursor\",li[v]);if(ue.touches)O.moved=q,O.ended=U;else{var F=xe(ue.view).on(\"mousemove.brush\",q,!0).on(\"mouseup.brush\",U,!0);a\u0026\u0026F.on(\"keydown.brush\",z,!0).on(\"keyup.brush\",Y,!0),Ae(ue.view)}Qr(),or(b),c.call(b),O.start()}function q(){var t=I(b);!N||g||y||(Math.abs(t[0]-B[0])\u003eMath.abs(t[1]-B[1])?y=!0:g=!0),B=t,p=!0,ti(),j()}function j(){var t;switch(D=B[0]-L[0],C=B[1]-L[1],m){case ni:case ei:_\u0026\u0026(D=Math.max(A-n,Math.min(M-u,D)),i=n+D,l=u+D),w\u0026\u0026(C=Math.max(S-o,Math.min(T-h,C)),s=o+C,d=h+C);break;case ri:_\u003c0?(D=Math.max(A-n,Math.min(M-n,D)),i=n+D,l=u):_\u003e0\u0026\u0026(D=Math.max(A-u,Math.min(M-u,D)),i=n,l=u+D),w\u003c0?(C=Math.max(S-o,Math.min(T-o,C)),s=o+C,d=h):w\u003e0\u0026\u0026(C=Math.max(S-h,Math.min(T-h,C)),s=o,d=h+C);break;case ii:_\u0026\u0026(i=Math.max(A,Math.min(M,n-D*_)),l=Math.max(A,Math.min(M,u+D*_))),w\u0026\u0026(s=Math.max(S,Math.min(T,o-C*w)),d=Math.max(S,Math.min(T,h+C*w)))}l\u003ci\u0026\u0026(_*=-1,t=n,n=u,u=t,t=i,i=l,l=t,v in hi\u0026\u0026P.attr(\"cursor\",li[v=hi[v]])),d\u003cs\u0026\u0026(w*=-1,t=o,o=h,h=t,t=s,s=d,d=t,v in di\u0026\u0026P.attr(\"cursor\",li[v=di[v]])),x.selection\u0026\u0026(E=x.selection),g\u0026\u0026(i=E[0][0],l=E[1][0]),y\u0026\u0026(s=E[0][1],d=E[1][1]),E[0][0]===i\u0026\u0026E[0][1]===s\u0026\u0026E[1][0]===l\u0026\u0026E[1][1]===d||(x.selection=[[i,s],[l,d]],c.call(b),O.brush())}function U(){if(Qr(),ue.touches){if(ue.touches.length)return;e\u0026\u0026clearTimeout(e),e=setTimeout((function(){e=null}),500)}else Se(ue.view,p),F.on(\"keydown.brush keyup.brush mousemove.brush mouseup.brush\",null);R.attr(\"pointer-events\",\"all\"),P.attr(\"cursor\",li.overlay),x.selection\u0026\u0026(E=x.selection),wi(E)\u0026\u0026(x.selection=null,c.call(b)),O.end()}function z(){switch(ue.keyCode){case 16:N=_\u0026\u0026w;break;case 18:m===ri\u0026\u0026(_\u0026\u0026(u=l-D*_,n=i+D*_),w\u0026\u0026(h=d-C*w,o=s+C*w),m=ii,j());break;case 32:m!==ri\u0026\u0026m!==ii||(_\u003c0?u=l-D:_\u003e0\u0026\u0026(n=i-D),w\u003c0?h=d-C:w\u003e0\u0026\u0026(o=s-C),m=ni,P.attr(\"cursor\",li.selection),j());break;default:return}ti()}function Y(){switch(ue.keyCode){case 16:N\u0026\u0026(g=y=N=!1,j());break;case 18:m===ii\u0026\u0026(_\u003c0?u=l:_\u003e0\u0026\u0026(n=i),w\u003c0?h=d:w\u003e0\u0026\u0026(o=s),m=ri,j());break;case 32:m===ni\u0026\u0026(ue.altKey?(_\u0026\u0026(u=l-D*_,n=i+D*_),w\u0026\u0026(h=d-C*w,o=s+C*w),m=ii):(_\u003c0?u=l:_\u003e0\u0026\u0026(n=i),w\u003c0?h=d:w\u003e0\u0026\u0026(o=s),m=ri),P.attr(\"cursor\",li[v]),j());break;default:return}ti()}}function d(){f(this,arguments).moved()}function p(){f(this,arguments).ended()}function g(){var e=this.__brush||{selection:null};return e.extent=oi(n.apply(this,arguments)),e.dim=t,e}return u.move=function(e,n){e.selection?e.on(\"start.brush\",(function(){f(this,arguments).beforestart().start()})).on(\"interrupt.brush end.brush\",(function(){f(this,arguments).end()})).tween(\"brush\",(function(){var e=this,r=e.__brush,i=f(e,arguments),a=r.selection,o=t.input(\"function\"==typeof n?n.apply(this,arguments):n,r.extent),s=Tn(a,o);function u(t){r.selection=1===t\u0026\u0026null===o?null:s(t),c.call(e),i.brush()}return null!==a\u0026\u0026null!==o?u:u(1)})):e.each((function(){var e=this,r=arguments,i=e.__brush,a=t.input(\"function\"==typeof n?n.apply(e,r):n,i.extent),o=f(e,r).beforestart();or(e),i.selection=null===a?null:a,c.call(e),o.start().brush().end()}))},u.clear=function(t){u.move(t,null)},l.prototype={beforestart:function(){return 1==++this.active\u0026\u0026(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit(\"start\")):this.emit(\"brush\"),this},brush:function(){return this.emit(\"brush\"),this},end:function(){return 0==--this.active\u0026\u0026(delete this.state.emitter,this.emit(\"end\")),this},emit:function(e){pe(new Jr(u,e,t.output(this.state.selection)),o.apply,o,[e,this.that,this.args])}},u.extent=function(t){return arguments.length?(n=\"function\"==typeof t?t:Zr(oi(t)),u):n},u.filter=function(t){return arguments.length?(r=\"function\"==typeof t?t:Zr(!!t),u):r},u.touchable=function(t){return arguments.length?(i=\"function\"==typeof t?t:Zr(!!t),u):i},u.handleSize=function(t){return arguments.length?(s=+t,u):s},u.keyModifiers=function(t){return arguments.length?(a=!!t,u):a},u.on=function(){var t=o.on.apply(o,arguments);return t===o?u:t},u}var Mi=Math.cos,Ti=Math.sin,Di=Math.PI,Ci=Di/2,Ni=2*Di,Ii=Math.max;function Li(t){return function(e,n){return t(e.source.value+e.target.value,n.source.value+n.target.value)}}var Bi=function(){var t=0,e=null,n=null,r=null;function i(i){var a,o,s,u,c,f,l=i.length,h=[],d=x(l),p=[],g=[],y=g.groups=new Array(l),b=new Array(l*l);for(a=0,c=-1;++c\u003cl;){for(o=0,f=-1;++f\u003cl;)o+=i[c][f];h.push(o),p.push(x(l)),a+=o}for(e\u0026\u0026d.sort((function(t,n){return e(h[t],h[n])})),n\u0026\u0026p.forEach((function(t,e){t.sort((function(t,r){return n(i[e][t],i[e][r])}))})),u=(a=Ii(0,Ni-t*l)/a)?t:Ni/l,o=0,c=-1;++c\u003cl;){for(s=o,f=-1;++f\u003cl;){var v=d[c],m=p[v][f],_=i[v][m],w=o,k=o+=_*a;b[m*l+v]={index:v,subindex:m,startAngle:w,endAngle:k,value:_}}y[v]={index:v,startAngle:s,endAngle:o,value:h[v]},o+=u}for(c=-1;++c\u003cl;)for(f=c-1;++f\u003cl;){var E=b[f*l+c],A=b[c*l+f];(E.value||A.value)\u0026\u0026g.push(E.value\u003cA.value?{source:A,target:E}:{source:E,target:A})}return r?g.sort(r):g}return i.padAngle=function(e){return arguments.length?(t=Ii(0,e),i):t},i.sortGroups=function(t){return arguments.length?(e=t,i):e},i.sortSubgroups=function(t){return arguments.length?(n=t,i):n},i.sortChords=function(t){return arguments.length?(null==t?r=null:(r=Li(t))._=t,i):r\u0026\u0026r._},i},Oi=Array.prototype.slice,Ri=function(t){return function(){return t}},Pi=Math.PI,Fi=2*Pi,qi=Fi-1e-6;function ji(){this._x0=this._y0=this._x1=this._y1=null,this._=\"\"}function Ui(){return new ji}ji.prototype=Ui.prototype={constructor:ji,moveTo:function(t,e){this._+=\"M\"+(this._x0=this._x1=+t)+\",\"+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1\u0026\u0026(this._x1=this._x0,this._y1=this._y0,this._+=\"Z\")},lineTo:function(t,e){this._+=\"L\"+(this._x1=+t)+\",\"+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+=\"Q\"+ +t+\",\"+ +e+\",\"+(this._x1=+n)+\",\"+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,a){this._+=\"C\"+ +t+\",\"+ +e+\",\"+ +n+\",\"+ +r+\",\"+(this._x1=+i)+\",\"+(this._y1=+a)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-t,u=r-e,c=a-t,f=o-e,l=c*c+f*f;if(i\u003c0)throw new Error(\"negative radius: \"+i);if(null===this._x1)this._+=\"M\"+(this._x1=t)+\",\"+(this._y1=e);else if(l\u003e1e-6)if(Math.abs(f*s-u*c)\u003e1e-6\u0026\u0026i){var h=n-a,d=r-o,p=s*s+u*u,g=h*h+d*d,y=Math.sqrt(p),b=Math.sqrt(l),v=i*Math.tan((Pi-Math.acos((p+l-g)/(2*y*b)))/2),m=v/b,_=v/y;Math.abs(m-1)\u003e1e-6\u0026\u0026(this._+=\"L\"+(t+m*c)+\",\"+(e+m*f)),this._+=\"A\"+i+\",\"+i+\",0,0,\"+ +(f*h\u003ec*d)+\",\"+(this._x1=t+_*s)+\",\"+(this._y1=e+_*u)}else this._+=\"L\"+(this._x1=t)+\",\"+(this._y1=e);else;},arc:function(t,e,n,r,i,a){t=+t,e=+e,a=!!a;var o=(n=+n)*Math.cos(r),s=n*Math.sin(r),u=t+o,c=e+s,f=1^a,l=a?r-i:i-r;if(n\u003c0)throw new Error(\"negative radius: \"+n);null===this._x1?this._+=\"M\"+u+\",\"+c:(Math.abs(this._x1-u)\u003e1e-6||Math.abs(this._y1-c)\u003e1e-6)\u0026\u0026(this._+=\"L\"+u+\",\"+c),n\u0026\u0026(l\u003c0\u0026\u0026(l=l%Fi+Fi),l\u003eqi?this._+=\"A\"+n+\",\"+n+\",0,1,\"+f+\",\"+(t-o)+\",\"+(e-s)+\"A\"+n+\",\"+n+\",0,1,\"+f+\",\"+(this._x1=u)+\",\"+(this._y1=c):l\u003e1e-6\u0026\u0026(this._+=\"A\"+n+\",\"+n+\",0,\"+ +(l\u003e=Pi)+\",\"+f+\",\"+(this._x1=t+n*Math.cos(i))+\",\"+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+=\"M\"+(this._x0=this._x1=+t)+\",\"+(this._y0=this._y1=+e)+\"h\"+ +n+\"v\"+ +r+\"h\"+-n+\"Z\"},toString:function(){return this._}};var zi=Ui;function Yi(t){return t.source}function Vi(t){return t.target}function Hi(t){return t.radius}function Gi(t){return t.startAngle}function $i(t){return t.endAngle}var Wi=function(){var t=Yi,e=Vi,n=Hi,r=Gi,i=$i,a=null;function o(){var o,s=Oi.call(arguments),u=t.apply(this,s),c=e.apply(this,s),f=+n.apply(this,(s[0]=u,s)),l=r.apply(this,s)-Ci,h=i.apply(this,s)-Ci,d=f*Mi(l),p=f*Ti(l),g=+n.apply(this,(s[0]=c,s)),y=r.apply(this,s)-Ci,b=i.apply(this,s)-Ci;if(a||(a=o=zi()),a.moveTo(d,p),a.arc(0,0,f,l,h),l===y\u0026\u0026h===b||(a.quadraticCurveTo(0,0,g*Mi(y),g*Ti(y)),a.arc(0,0,g,y,b)),a.quadraticCurveTo(0,0,d,p),a.closePath(),o)return a=null,o+\"\"||null}return o.radius=function(t){return arguments.length?(n=\"function\"==typeof t?t:Ri(+t),o):n},o.startAngle=function(t){return arguments.length?(r=\"function\"==typeof t?t:Ri(+t),o):r},o.endAngle=function(t){return arguments.length?(i=\"function\"==typeof t?t:Ri(+t),o):i},o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(t){return arguments.length?(e=t,o):e},o.context=function(t){return arguments.length?(a=null==t?null:t,o):a},o};function Ki(){}function Xi(t,e){var n=new Ki;if(t instanceof Ki)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,a=t.length;if(null==e)for(;++i\u003ca;)n.set(i,t[i]);else for(;++i\u003ca;)n.set(e(r=t[i],i,t),r)}else if(t)for(var o in t)n.set(o,t[o]);return n}Ki.prototype=Xi.prototype={constructor:Ki,has:function(t){return\"$\"+t in this},get:function(t){return this[\"$\"+t]},set:function(t,e){return this[\"$\"+t]=e,this},remove:function(t){var e=\"$\"+t;return e in this\u0026\u0026delete this[e]},clear:function(){for(var t in this)\"$\"===t[0]\u0026\u0026delete this[t]},keys:function(){var t=[];for(var e in this)\"$\"===e[0]\u0026\u0026t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)\"$\"===e[0]\u0026\u0026t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)\"$\"===e[0]\u0026\u0026t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)\"$\"===e[0]\u0026\u0026++t;return t},empty:function(){for(var t in this)if(\"$\"===t[0])return!1;return!0},each:function(t){for(var e in this)\"$\"===e[0]\u0026\u0026t(this[e],e.slice(1),this)}};var Zi=Xi,Ji=function(){var t,e,n,r=[],i=[];function a(n,i,o,s){if(i\u003e=r.length)return null!=t\u0026\u0026n.sort(t),null!=e?e(n):n;for(var u,c,f,l=-1,h=n.length,d=r[i++],p=Zi(),g=o();++l\u003ch;)(f=p.get(u=d(c=n[l])+\"\"))?f.push(c):p.set(u,[c]);return p.each((function(t,e){s(g,e,a(t,i,o,s))})),g}return n={object:function(t){return a(t,0,Qi,ta)},map:function(t){return a(t,0,ea,na)},entries:function(t){return function t(n,a){if(++a\u003er.length)return n;var o,s=i[a-1];return null!=e\u0026\u0026a\u003e=r.length?o=n.entries():(o=[],n.each((function(e,n){o.push({key:n,values:t(e,a)})}))),null!=s?o.sort((function(t,e){return s(t.key,e.key)})):o}(a(t,0,ea,na),0)},key:function(t){return r.push(t),n},sortKeys:function(t){return i[r.length-1]=t,n},sortValues:function(e){return t=e,n},rollup:function(t){return e=t,n}}};function Qi(){return{}}function ta(t,e,n){t[e]=n}function ea(){return Zi()}function na(t,e,n){t.set(e,n)}function ra(){}var ia=Zi.prototype;function aa(t,e){var n=new ra;if(t instanceof ra)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)for(;++r\u003ci;)n.add(t[r]);else for(;++r\u003ci;)n.add(e(t[r],r,t))}return n}ra.prototype=aa.prototype={constructor:ra,has:ia.has,add:function(t){return this[\"$\"+(t+=\"\")]=t,this},remove:ia.remove,clear:ia.clear,values:ia.keys,size:ia.size,empty:ia.empty,each:ia.each};var oa=aa,sa=function(t){var e=[];for(var n in t)e.push(n);return e},ua=function(t){var e=[];for(var n in t)e.push(t[n]);return e},ca=function(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e},fa=Math.PI/180,la=180/Math.PI;function ha(t){if(t instanceof ga)return new ga(t.l,t.a,t.b,t.opacity);if(t instanceof ka)return Ea(t);t instanceof We||(t=Ge(t));var e,n,r=ma(t.r),i=ma(t.g),a=ma(t.b),o=ya((.2225045*r+.7168786*i+.0606169*a)/1);return r===i\u0026\u0026i===a?e=n=o:(e=ya((.4360747*r+.3850649*i+.1430804*a)/.96422),n=ya((.0139322*r+.0971045*i+.7141733*a)/.82521)),new ga(116*o-16,500*(e-o),200*(o-n),t.opacity)}function da(t,e){return new ga(t,0,0,null==e?1:e)}function pa(t,e,n,r){return 1===arguments.length?ha(t):new ga(t,e,n,null==r?1:r)}function ga(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function ya(t){return t\u003e6/29*(6/29)*(6/29)?Math.pow(t,1/3):t/(6/29*3*(6/29))+4/29}function ba(t){return t\u003e6/29?t*t*t:6/29*3*(6/29)*(t-4/29)}function va(t){return 255*(t\u003c=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ma(t){return(t/=255)\u003c=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function _a(t){if(t instanceof ka)return new ka(t.h,t.c,t.l,t.opacity);if(t instanceof ga||(t=ha(t)),0===t.a\u0026\u00260===t.b)return new ka(NaN,0\u003ct.l\u0026\u0026t.l\u003c100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*la;return new ka(e\u003c0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function wa(t,e,n,r){return 1===arguments.length?_a(t):new ka(n,e,t,null==r?1:r)}function xa(t,e,n,r){return 1===arguments.length?_a(t):new ka(t,e,n,null==r?1:r)}function ka(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function Ea(t){if(isNaN(t.h))return new ga(t.l,0,0,t.opacity);var e=t.h*fa;return new ga(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Me(ga,pa,Te(De,{brighter:function(t){return new ga(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new ga(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new We(va(3.1338561*(e=.96422*ba(e))-1.6168667*(t=1*ba(t))-.4906146*(n=.82521*ba(n))),va(-.9787684*e+1.9161415*t+.033454*n),va(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),Me(ka,xa,Te(De,{brighter:function(t){return new ka(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new ka(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return Ea(this).rgb()}}));var Aa=-.29227,Sa=-1.7884503806,Ma=3.5172982438,Ta=-.6557636667999999;function Da(t){if(t instanceof Na)return new Na(t.h,t.s,t.l,t.opacity);t instanceof We||(t=Ge(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(Ta*r+Sa*e-Ma*n)/(Ta+Sa-Ma),a=r-i,o=(1.97294*(n-i)-Aa*a)/-.90649,s=Math.sqrt(o*o+a*a)/(1.97294*i*(1-i)),u=s?Math.atan2(o,a)*la-120:NaN;return new Na(u\u003c0?u+360:u,s,i,t.opacity)}function Ca(t,e,n,r){return 1===arguments.length?Da(t):new Na(t,e,n,null==r?1:r)}function Na(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Me(Na,Ca,Te(De,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Na(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Na(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*fa,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new We(255*(e+n*(-.14861*r+1.78277*i)),255*(e+n*(Aa*r+-.90649*i)),255*(e+n*(1.97294*r)),this.opacity)}}));var Ia=Array.prototype.slice,La=function(t,e){return t-e},Ba=function(t){return function(){return t}},Oa=function(t,e){for(var n,r=-1,i=e.length;++r\u003ci;)if(n=Ra(t,e[r]))return n;return 0};function Ra(t,e){for(var n=e[0],r=e[1],i=-1,a=0,o=t.length,s=o-1;a\u003co;s=a++){var u=t[a],c=u[0],f=u[1],l=t[s],h=l[0],d=l[1];if(Pa(u,l,e))return 0;f\u003er!=d\u003er\u0026\u0026n\u003c(h-c)*(r-f)/(d-f)+c\u0026\u0026(i=-i)}return i}function Pa(t,e,n){var r,i,a,o;return function(t,e,n){return(e[0]-t[0])*(n[1]-t[1])==(n[0]-t[0])*(e[1]-t[1])}(t,e,n)\u0026\u0026(i=t[r=+(t[0]===e[0])],a=n[r],o=e[r],i\u003c=a\u0026\u0026a\u003c=o||o\u003c=a\u0026\u0026a\u003c=i)}var Fa=function(){},qa=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]],ja=function(){var t=1,e=1,n=D,r=s;function i(t){var e=n(t);if(Array.isArray(e))e=e.slice().sort(La);else{var r=y(t),i=r[0],o=r[1];e=T(i,o,e),e=x(Math.floor(i/e)*e,Math.floor(o/e)*e,e)}return e.map((function(e){return a(t,e)}))}function a(n,i){var a=[],s=[];return function(n,r,i){var a,s,u,c,f,l,h=new Array,d=new Array;a=s=-1,c=n[0]\u003e=r,qa[c\u003c\u003c1].forEach(p);for(;++a\u003ct-1;)u=c,c=n[a+1]\u003e=r,qa[u|c\u003c\u003c1].forEach(p);qa[c\u003c\u003c0].forEach(p);for(;++s\u003ce-1;){for(a=-1,c=n[s*t+t]\u003e=r,f=n[s*t]\u003e=r,qa[c\u003c\u003c1|f\u003c\u003c2].forEach(p);++a\u003ct-1;)u=c,c=n[s*t+t+a+1]\u003e=r,l=f,f=n[s*t+a+1]\u003e=r,qa[u|c\u003c\u003c1|f\u003c\u003c2|l\u003c\u003c3].forEach(p);qa[c|f\u003c\u003c3].forEach(p)}a=-1,f=n[s*t]\u003e=r,qa[f\u003c\u003c2].forEach(p);for(;++a\u003ct-1;)l=f,f=n[s*t+a+1]\u003e=r,qa[f\u003c\u003c2|l\u003c\u003c3].forEach(p);function p(t){var e,n,r=[t[0][0]+a,t[0][1]+s],u=[t[1][0]+a,t[1][1]+s],c=o(r),f=o(u);(e=d[c])?(n=h[f])?(delete d[e.end],delete h[n.start],e===n?(e.ring.push(u),i(e.ring)):h[e.start]=d[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete d[e.end],e.ring.push(u),d[e.end=f]=e):(e=h[f])?(n=d[c])?(delete h[e.start],delete d[n.end],e===n?(e.ring.push(u),i(e.ring)):h[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete h[e.start],e.ring.unshift(r),h[e.start=c]=e):h[c]=d[f]={start:c,end:f,ring:[r,u]}}qa[f\u003c\u003c3].forEach(p)}(n,i,(function(t){r(t,n,i),function(t){for(var e=0,n=t.length,r=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];++e\u003cn;)r+=t[e-1][1]*t[e][0]-t[e-1][0]*t[e][1];return r}(t)\u003e0?a.push([t]):s.push(t)})),s.forEach((function(t){for(var e,n=0,r=a.length;n\u003cr;++n)if(-1!==Oa((e=a[n])[0],t))return void e.push(t)})),{type:\"MultiPolygon\",value:i,coordinates:a}}function o(e){return 2*e[0]+e[1]*(t+1)*4}function s(n,r,i){n.forEach((function(n){var a,o=n[0],s=n[1],u=0|o,c=0|s,f=r[c*t+u];o\u003e0\u0026\u0026o\u003ct\u0026\u0026u===o\u0026\u0026(a=r[c*t+u-1],n[0]=o+(i-a)/(f-a)-.5),s\u003e0\u0026\u0026s\u003ce\u0026\u0026c===s\u0026\u0026(a=r[(c-1)*t+u],n[1]=s+(i-a)/(f-a)-.5)}))}return i.contour=a,i.size=function(n){if(!arguments.length)return[t,e];var r=Math.ceil(n[0]),a=Math.ceil(n[1]);if(!(r\u003e0\u0026\u0026a\u003e0))throw new Error(\"invalid size\");return t=r,e=a,i},i.thresholds=function(t){return arguments.length?(n=\"function\"==typeof t?t:Array.isArray(t)?Ba(Ia.call(t)):Ba(t),i):n},i.smooth=function(t){return arguments.length?(r=t?s:Fa,i):r===s},i};function Ua(t,e,n){for(var r=t.width,i=t.height,a=1+(n\u003c\u003c1),o=0;o\u003ci;++o)for(var s=0,u=0;s\u003cr+n;++s)s\u003cr\u0026\u0026(u+=t.data[s+o*r]),s\u003e=n\u0026\u0026(s\u003e=a\u0026\u0026(u-=t.data[s-a+o*r]),e.data[s-n+o*r]=u/Math.min(s+1,r-1+a-s,a))}function za(t,e,n){for(var r=t.width,i=t.height,a=1+(n\u003c\u003c1),o=0;o\u003cr;++o)for(var s=0,u=0;s\u003ci+n;++s)s\u003ci\u0026\u0026(u+=t.data[o+s*r]),s\u003e=n\u0026\u0026(s\u003e=a\u0026\u0026(u-=t.data[o+(s-a)*r]),e.data[o+(s-n)*r]=u/Math.min(s+1,i-1+a-s,a))}function Ya(t){return t[0]}function Va(t){return t[1]}function Ha(){return 1}var Ga=function(){var t=Ya,e=Va,n=Ha,r=960,i=500,a=20,o=2,s=3*a,u=r+2*s\u003e\u003eo,c=i+2*s\u003e\u003eo,f=Ba(20);function l(r){var i=new Float32Array(u*c),l=new Float32Array(u*c);r.forEach((function(r,a,f){var l=+t(r,a,f)+s\u003e\u003eo,h=+e(r,a,f)+s\u003e\u003eo,d=+n(r,a,f);l\u003e=0\u0026\u0026l\u003cu\u0026\u0026h\u003e=0\u0026\u0026h\u003cc\u0026\u0026(i[l+h*u]+=d)})),Ua({width:u,height:c,data:i},{width:u,height:c,data:l},a\u003e\u003eo),za({width:u,height:c,data:l},{width:u,height:c,data:i},a\u003e\u003eo),Ua({width:u,height:c,data:i},{width:u,height:c,data:l},a\u003e\u003eo),za({width:u,height:c,data:l},{width:u,height:c,data:i},a\u003e\u003eo),Ua({width:u,height:c,data:i},{width:u,height:c,data:l},a\u003e\u003eo),za({width:u,height:c,data:l},{width:u,height:c,data:i},a\u003e\u003eo);var d=f(i);if(!Array.isArray(d)){var p=B(i);d=T(0,p,d),(d=x(0,Math.floor(p/d)*d,d)).shift()}return ja().thresholds(d).size([u,c])(i).map(h)}function h(t){return t.value*=Math.pow(2,-2*o),t.coordinates.forEach(d),t}function d(t){t.forEach(p)}function p(t){t.forEach(g)}function g(t){t[0]=t[0]*Math.pow(2,o)-s,t[1]=t[1]*Math.pow(2,o)-s}function y(){return u=r+2*(s=3*a)\u003e\u003eo,c=i+2*s\u003e\u003eo,l}return l.x=function(e){return arguments.length?(t=\"function\"==typeof e?e:Ba(+e),l):t},l.y=function(t){return arguments.length?(e=\"function\"==typeof t?t:Ba(+t),l):e},l.weight=function(t){return arguments.length?(n=\"function\"==typeof t?t:Ba(+t),l):n},l.size=function(t){if(!arguments.length)return[r,i];var e=Math.ceil(t[0]),n=Math.ceil(t[1]);if(!(e\u003e=0||e\u003e=0))throw new Error(\"invalid size\");return r=e,i=n,y()},l.cellSize=function(t){if(!arguments.length)return 1\u003c\u003co;if(!((t=+t)\u003e=1))throw new Error(\"invalid cell size\");return o=Math.floor(Math.log(t)/Math.LN2),y()},l.thresholds=function(t){return arguments.length?(f=\"function\"==typeof t?t:Array.isArray(t)?Ba(Ia.call(t)):Ba(t),l):f},l.bandwidth=function(t){if(!arguments.length)return Math.sqrt(a*(a+1));if(!((t=+t)\u003e=0))throw new Error(\"invalid bandwidth\");return a=Math.round((Math.sqrt(4*t*t+1)-1)/2),y()},l},$a=function(t){return function(){return t}};function Wa(t,e,n,r,i,a,o,s,u,c){this.target=t,this.type=e,this.subject=n,this.identifier=r,this.active=i,this.x=a,this.y=o,this.dx=s,this.dy=u,this._=c}function Ka(){return!ue.ctrlKey\u0026\u0026!ue.button}function Xa(){return this.parentNode}function Za(t){return null==t?{x:ue.x,y:ue.y}:t}function Ja(){return navigator.maxTouchPoints||\"ontouchstart\"in this}Wa.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var Qa=function(){var t,e,n,r,i=Ka,a=Xa,o=Za,s=Ja,u={},c=ft(\"start\",\"drag\",\"end\"),f=0,l=0;function h(t){t.on(\"mousedown.drag\",d).filter(s).on(\"touchstart.drag\",y).on(\"touchmove.drag\",b).on(\"touchend.drag touchcancel.drag\",v).style(\"touch-action\",\"none\").style(\"-webkit-tap-highlight-color\",\"rgba(0,0,0,0)\")}function d(){if(!r\u0026\u0026i.apply(this,arguments)){var o=m(\"mouse\",a.apply(this,arguments),In,this,arguments);o\u0026\u0026(xe(ue.view).on(\"mousemove.drag\",p,!0).on(\"mouseup.drag\",g,!0),Ae(ue.view),ke(),n=!1,t=ue.clientX,e=ue.clientY,o(\"start\"))}}function p(){if(Ee(),!n){var r=ue.clientX-t,i=ue.clientY-e;n=r*r+i*i\u003el}u.mouse(\"drag\")}function g(){xe(ue.view).on(\"mousemove.drag mouseup.drag\",null),Se(ue.view,n),Ee(),u.mouse(\"end\")}function y(){if(i.apply(this,arguments)){var t,e,n=ue.changedTouches,r=a.apply(this,arguments),o=n.length;for(t=0;t\u003co;++t)(e=m(n[t].identifier,r,Nn,this,arguments))\u0026\u0026(ke(),e(\"start\"))}}function b(){var t,e,n=ue.changedTouches,r=n.length;for(t=0;t\u003cr;++t)(e=u[n[t].identifier])\u0026\u0026(Ee(),e(\"drag\"))}function v(){var t,e,n=ue.changedTouches,i=n.length;for(r\u0026\u0026clearTimeout(r),r=setTimeout((function(){r=null}),500),t=0;t\u003ci;++t)(e=u[n[t].identifier])\u0026\u0026(ke(),e(\"end\"))}function m(t,e,n,r,i){var a,s,l,d=n(e,t),p=c.copy();if(pe(new Wa(h,\"beforestart\",a,t,f,d[0],d[1],0,0,p),(function(){return null!=(ue.subject=a=o.apply(r,i))\u0026\u0026(s=a.x-d[0]||0,l=a.y-d[1]||0,!0)})))return function o(c){var g,y=d;switch(c){case\"start\":u[t]=o,g=f++;break;case\"end\":delete u[t],--f;case\"drag\":d=n(e,t),g=f}pe(new Wa(h,c,a,t,g,d[0]+s,d[1]+l,d[0]-y[0],d[1]-y[1],p),p.apply,p,[c,r,i])}}return h.filter=function(t){return arguments.length?(i=\"function\"==typeof t?t:$a(!!t),h):i},h.container=function(t){return arguments.length?(a=\"function\"==typeof t?t:$a(t),h):a},h.subject=function(t){return arguments.length?(o=\"function\"==typeof t?t:$a(t),h):o},h.touchable=function(t){return arguments.length?(s=\"function\"==typeof t?t:$a(!!t),h):s},h.on=function(){var t=c.on.apply(c,arguments);return t===c?h:t},h.clickDistance=function(t){return arguments.length?(l=(t=+t)*t,h):Math.sqrt(l)},h},to={},eo={};function no(t){return new Function(\"d\",\"return {\"+t.map((function(t,e){return JSON.stringify(t)+\": d[\"+e+'] || \"\"'})).join(\",\")+\"}\")}function ro(t){var e=Object.create(null),n=[];return t.forEach((function(t){for(var r in t)r in e||n.push(e[r]=r)})),n}function io(t,e){var n=t+\"\",r=n.length;return r\u003ce?new Array(e-r+1).join(0)+n:n}function ao(t){var e,n=t.getUTCHours(),r=t.getUTCMinutes(),i=t.getUTCSeconds(),a=t.getUTCMilliseconds();return isNaN(t)?\"Invalid Date\":((e=t.getUTCFullYear())\u003c0?\"-\"+io(-e,6):e\u003e9999?\"+\"+io(e,6):io(e,4))+\"-\"+io(t.getUTCMonth()+1,2)+\"-\"+io(t.getUTCDate(),2)+(a?\"T\"+io(n,2)+\":\"+io(r,2)+\":\"+io(i,2)+\".\"+io(a,3)+\"Z\":i?\"T\"+io(n,2)+\":\"+io(r,2)+\":\"+io(i,2)+\"Z\":r||n?\"T\"+io(n,2)+\":\"+io(r,2)+\"Z\":\"\")}var oo=function(t){var e=new RegExp('[\"'+t+\"\\n\\r]\"),n=t.charCodeAt(0);function r(t,e){var r,i=[],a=t.length,o=0,s=0,u=a\u003c=0,c=!1;function f(){if(u)return eo;if(c)return c=!1,to;var e,r,i=o;if(34===t.charCodeAt(i)){for(;o++\u003ca\u0026\u002634!==t.charCodeAt(o)||34===t.charCodeAt(++o););return(e=o)\u003e=a?u=!0:10===(r=t.charCodeAt(o++))?c=!0:13===r\u0026\u0026(c=!0,10===t.charCodeAt(o)\u0026\u0026++o),t.slice(i+1,e-1).replace(/\"\"/g,'\"')}for(;o\u003ca;){if(10===(r=t.charCodeAt(e=o++)))c=!0;else if(13===r)c=!0,10===t.charCodeAt(o)\u0026\u0026++o;else if(r!==n)continue;return t.slice(i,e)}return u=!0,t.slice(i,a)}for(10===t.charCodeAt(a-1)\u0026\u0026--a,13===t.charCodeAt(a-1)\u0026\u0026--a;(r=f())!==eo;){for(var l=[];r!==to\u0026\u0026r!==eo;)l.push(r),r=f();e\u0026\u0026null==(l=e(l,s++))||i.push(l)}return i}function i(e,n){return e.map((function(e){return n.map((function(t){return o(e[t])})).join(t)}))}function a(e){return e.map(o).join(t)}function o(t){return null==t?\"\":t instanceof Date?ao(t):e.test(t+=\"\")?'\"'+t.replace(/\"/g,'\"\"')+'\"':t}return{parse:function(t,e){var n,i,a=r(t,(function(t,r){if(n)return n(t,r-1);i=t,n=e?function(t,e){var n=no(t);return function(r,i){return e(n(r),i,t)}}(t,e):no(t)}));return a.columns=i||[],a},parseRows:r,format:function(e,n){return null==n\u0026\u0026(n=ro(e)),[n.map(o).join(t)].concat(i(e,n)).join(\"\\n\")},formatBody:function(t,e){return null==e\u0026\u0026(e=ro(t)),i(t,e).join(\"\\n\")},formatRows:function(t){return t.map(a).join(\"\\n\")},formatRow:a,formatValue:o}},so=oo(\",\"),uo=so.parse,co=so.parseRows,fo=so.format,lo=so.formatBody,ho=so.formatRows,po=so.formatRow,go=so.formatValue,yo=oo(\"\\t\"),bo=yo.parse,vo=yo.parseRows,mo=yo.format,_o=yo.formatBody,wo=yo.formatRows,xo=yo.formatRow,ko=yo.formatValue;function Eo(t){for(var e in t){var n,r,i=t[e].trim();if(i)if(\"true\"===i)i=!0;else if(\"false\"===i)i=!1;else if(\"NaN\"===i)i=NaN;else if(isNaN(n=+i)){if(!(r=i.match(/^([-+]\\d{2})?\\d{4}(-\\d{2}(-\\d{2})?)?(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{3})?)?(Z|[-+]\\d{2}:\\d{2})?)?$/)))continue;Ao\u0026\u0026r[4]\u0026\u0026!r[7]\u0026\u0026(i=i.replace(/-/g,\"/\").replace(/T/,\" \")),i=new Date(i)}else i=n;else i=null;t[e]=i}return t}var Ao=new Date(\"2019-01-01T00:00\").getHours()||new Date(\"2019-07-01T00:00\").getHours();function So(t){return+t}function Mo(t){return t*t}function To(t){return t*(2-t)}function Do(t){return((t*=2)\u003c=1?t*t:--t*(2-t)+1)/2}var Co=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),No=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),Io=function t(e){function n(t){return((t*=2)\u003c=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),Lo=Math.PI,Bo=Lo/2;function Oo(t){return 1-Math.cos(t*Bo)}function Ro(t){return Math.sin(t*Bo)}function Po(t){return(1-Math.cos(Lo*t))/2}function Fo(t){return Math.pow(2,10*t-10)}function qo(t){return 1-Math.pow(2,-10*t)}function jo(t){return((t*=2)\u003c=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function Uo(t){return 1-Math.sqrt(1-t*t)}function zo(t){return Math.sqrt(1- --t*t)}function Yo(t){return((t*=2)\u003c=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}function Vo(t){return 1-Ho(1-t)}function Ho(t){return(t=+t)\u003c4/11?7.5625*t*t:t\u003c8/11?7.5625*(t-=6/11)*t+.75:t\u003c10/11?7.5625*(t-=9/11)*t+.9375:7.5625*(t-=21/22)*t+63/64}function Go(t){return((t*=2)\u003c=1?1-Ho(1-t):Ho(t-1)+1)/2}var $o=function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n}(1.70158),Wo=function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(1.70158),Ko=function t(e){function n(t){return((t*=2)\u003c1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158),Xo=2*Math.PI,Zo=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Xo);function i(t){return e*Math.pow(2,10*--t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*Xo)},i.period=function(n){return t(e,n)},i}(1,.3),Jo=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Xo);function i(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*Xo)},i.period=function(n){return t(e,n)},i}(1,.3),Qo=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Xo);function i(t){return((t=2*t-1)\u003c0?e*Math.pow(2,10*t)*Math.sin((r-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*Xo)},i.period=function(n){return t(e,n)},i}(1,.3);function ts(t){if(!t.ok)throw new Error(t.status+\" \"+t.statusText);return t.blob()}var es=function(t,e){return fetch(t,e).then(ts)};function ns(t){if(!t.ok)throw new Error(t.status+\" \"+t.statusText);return t.arrayBuffer()}var rs=function(t,e){return fetch(t,e).then(ns)};function is(t){if(!t.ok)throw new Error(t.status+\" \"+t.statusText);return t.text()}var as=function(t,e){return fetch(t,e).then(is)};function os(t){return function(e,n,r){return 2===arguments.length\u0026\u0026\"function\"==typeof n\u0026\u0026(r=n,n=void 0),as(e,n).then((function(e){return t(e,r)}))}}function ss(t,e,n,r){3===arguments.length\u0026\u0026\"function\"==typeof n\u0026\u0026(r=n,n=void 0);var i=oo(t);return as(e,n).then((function(t){return i.parse(t,r)}))}var us=os(uo),cs=os(bo),fs=function(t,e){return new Promise((function(n,r){var i=new Image;for(var a in e)i[a]=e[a];i.onerror=r,i.onload=function(){n(i)},i.src=t}))};function ls(t){if(!t.ok)throw new Error(t.status+\" \"+t.statusText);return t.json()}var hs=function(t,e){return fetch(t,e).then(ls)};function ds(t){return function(e,n){return as(e,n).then((function(e){return(new DOMParser).parseFromString(e,t)}))}}var ps=ds(\"application/xml\"),gs=ds(\"text/html\"),ys=ds(\"image/svg+xml\"),bs=function(t,e){var n;function r(){var r,i,a=n.length,o=0,s=0;for(r=0;r\u003ca;++r)o+=(i=n[r]).x,s+=i.y;for(o=o/a-t,s=s/a-e,r=0;r\u003ca;++r)(i=n[r]).x-=o,i.y-=s}return null==t\u0026\u0026(t=0),null==e\u0026\u0026(e=0),r.initialize=function(t){n=t},r.x=function(e){return arguments.length?(t=+e,r):t},r.y=function(t){return arguments.length?(e=+t,r):e},r},vs=function(t){return function(){return t}},ms=function(){return 1e-6*(Math.random()-.5)};function _s(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,a,o,s,u,c,f,l,h,d=t._root,p={data:r},g=t._x0,y=t._y0,b=t._x1,v=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((c=e\u003e=(a=(g+b)/2))?g=a:b=a,(f=n\u003e=(o=(y+v)/2))?y=o:v=o,i=d,!(d=d[l=f\u003c\u003c1|c]))return i[l]=p,t;if(s=+t._x.call(null,d.data),u=+t._y.call(null,d.data),e===s\u0026\u0026n===u)return p.next=d,i?i[l]=p:t._root=p,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(c=e\u003e=(a=(g+b)/2))?g=a:b=a,(f=n\u003e=(o=(y+v)/2))?y=o:v=o}while((l=f\u003c\u003c1|c)==(h=(u\u003e=o)\u003c\u003c1|s\u003e=a));return i[h]=d,i[l]=p,t}var ws=function(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i};function xs(t){return t[0]}function ks(t){return t[1]}function Es(t,e,n){var r=new As(null==e?xs:e,null==n?ks:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function As(t,e,n,r,i,a){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function Ss(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Ms=Es.prototype=As.prototype;function Ts(t){return t.x+t.vx}function Ds(t){return t.y+t.vy}Ms.copy=function(){var t,e,n=new As(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=Ss(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i\u003c4;++i)(e=r.source[i])\u0026\u0026(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=Ss(e));return n},Ms.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return _s(this.cover(e,n),e,n,t)},Ms.addAll=function(t){var e,n,r,i,a=t.length,o=new Array(a),s=new Array(a),u=1/0,c=1/0,f=-1/0,l=-1/0;for(n=0;n\u003ca;++n)isNaN(r=+this._x.call(null,e=t[n]))||isNaN(i=+this._y.call(null,e))||(o[n]=r,s[n]=i,r\u003cu\u0026\u0026(u=r),r\u003ef\u0026\u0026(f=r),i\u003cc\u0026\u0026(c=i),i\u003el\u0026\u0026(l=i));if(u\u003ef||c\u003el)return this;for(this.cover(u,c).cover(f,l),n=0;n\u003ca;++n)_s(this,o[n],s[n],t[n]);return this},Ms.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,a=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,a=(r=Math.floor(e))+1;else{for(var o,s,u=i-n,c=this._root;n\u003et||t\u003e=i||r\u003ee||e\u003e=a;)switch(s=(e\u003cr)\u003c\u003c1|t\u003cn,(o=new Array(4))[s]=c,c=o,u*=2,s){case 0:i=n+u,a=r+u;break;case 1:n=i-u,a=r+u;break;case 2:i=n+u,r=a-u;break;case 3:n=i-u,r=a-u}this._root\u0026\u0026this._root.length\u0026\u0026(this._root=c)}return this._x0=n,this._y0=r,this._x1=i,this._y1=a,this},Ms.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},Ms.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Ms.find=function(t,e,n){var r,i,a,o,s,u,c,f=this._x0,l=this._y0,h=this._x1,d=this._y1,p=[],g=this._root;for(g\u0026\u0026p.push(new ws(g,f,l,h,d)),null==n?n=1/0:(f=t-n,l=e-n,h=t+n,d=e+n,n*=n);u=p.pop();)if(!(!(g=u.node)||(i=u.x0)\u003eh||(a=u.y0)\u003ed||(o=u.x1)\u003cf||(s=u.y1)\u003cl))if(g.length){var y=(i+o)/2,b=(a+s)/2;p.push(new ws(g[3],y,b,o,s),new ws(g[2],i,b,y,s),new ws(g[1],y,a,o,b),new ws(g[0],i,a,y,b)),(c=(e\u003e=b)\u003c\u003c1|t\u003e=y)\u0026\u0026(u=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=u)}else{var v=t-+this._x.call(null,g.data),m=e-+this._y.call(null,g.data),_=v*v+m*m;if(_\u003cn){var w=Math.sqrt(n=_);f=t-w,l=e-w,h=t+w,d=e+w,r=g.data}}return r},Ms.remove=function(t){if(isNaN(a=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var e,n,r,i,a,o,s,u,c,f,l,h,d=this._root,p=this._x0,g=this._y0,y=this._x1,b=this._y1;if(!d)return this;if(d.length)for(;;){if((c=a\u003e=(s=(p+y)/2))?p=s:y=s,(f=o\u003e=(u=(g+b)/2))?g=u:b=u,e=d,!(d=d[l=f\u003c\u003c1|c]))return this;if(!d.length)break;(e[l+1\u00263]||e[l+2\u00263]||e[l+3\u00263])\u0026\u0026(n=e,h=l)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)\u0026\u0026delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[l]=i:delete e[l],(d=e[0]||e[1]||e[2]||e[3])\u0026\u0026d===(e[3]||e[2]||e[1]||e[0])\u0026\u0026!d.length\u0026\u0026(n?n[h]=d:this._root=d),this):(this._root=i,this)},Ms.removeAll=function(t){for(var e=0,n=t.length;e\u003cn;++e)this.remove(t[e]);return this},Ms.root=function(){return this._root},Ms.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},Ms.visit=function(t){var e,n,r,i,a,o,s=[],u=this._root;for(u\u0026\u0026s.push(new ws(u,this._x0,this._y0,this._x1,this._y1));e=s.pop();)if(!t(u=e.node,r=e.x0,i=e.y0,a=e.x1,o=e.y1)\u0026\u0026u.length){var c=(r+a)/2,f=(i+o)/2;(n=u[3])\u0026\u0026s.push(new ws(n,c,f,a,o)),(n=u[2])\u0026\u0026s.push(new ws(n,r,f,c,o)),(n=u[1])\u0026\u0026s.push(new ws(n,c,i,a,f)),(n=u[0])\u0026\u0026s.push(new ws(n,r,i,c,f))}return this},Ms.visitAfter=function(t){var e,n=[],r=[];for(this._root\u0026\u0026n.push(new ws(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var i=e.node;if(i.length){var a,o=e.x0,s=e.y0,u=e.x1,c=e.y1,f=(o+u)/2,l=(s+c)/2;(a=i[0])\u0026\u0026n.push(new ws(a,o,s,f,l)),(a=i[1])\u0026\u0026n.push(new ws(a,f,s,u,l)),(a=i[2])\u0026\u0026n.push(new ws(a,o,l,f,c)),(a=i[3])\u0026\u0026n.push(new ws(a,f,l,u,c))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},Ms.x=function(t){return arguments.length?(this._x=t,this):this._x},Ms.y=function(t){return arguments.length?(this._y=t,this):this._y};var Cs=function(t){var e,n,r=1,i=1;function a(){for(var t,a,s,u,c,f,l,h=e.length,d=0;d\u003ci;++d)for(a=Es(e,Ts,Ds).visitAfter(o),t=0;t\u003ch;++t)s=e[t],f=n[s.index],l=f*f,u=s.x+s.vx,c=s.y+s.vy,a.visit(p);function p(t,e,n,i,a){var o=t.data,h=t.r,d=f+h;if(!o)return e\u003eu+d||i\u003cu-d||n\u003ec+d||a\u003cc-d;if(o.index\u003es.index){var p=u-o.x-o.vx,g=c-o.y-o.vy,y=p*p+g*g;y\u003cd*d\u0026\u0026(0===p\u0026\u0026(y+=(p=ms())*p),0===g\u0026\u0026(y+=(g=ms())*g),y=(d-(y=Math.sqrt(y)))/y*r,s.vx+=(p*=y)*(d=(h*=h)/(l+h)),s.vy+=(g*=y)*d,o.vx-=p*(d=1-d),o.vy-=g*d)}}}function o(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e\u003c4;++e)t[e]\u0026\u0026t[e].r\u003et.r\u0026\u0026(t.r=t[e].r)}function s(){if(e){var r,i,a=e.length;for(n=new Array(a),r=0;r\u003ca;++r)i=e[r],n[i.index]=+t(i,r,e)}}return\"function\"!=typeof t\u0026\u0026(t=vs(null==t?1:+t)),a.initialize=function(t){e=t,s()},a.iterations=function(t){return arguments.length?(i=+t,a):i},a.strength=function(t){return arguments.length?(r=+t,a):r},a.radius=function(e){return arguments.length?(t=\"function\"==typeof e?e:vs(+e),s(),a):t},a};function Ns(t){return t.index}function Is(t,e){var n=t.get(e);if(!n)throw new Error(\"missing: \"+e);return n}var Ls=function(t){var e,n,r,i,a,o=Ns,s=function(t){return 1/Math.min(i[t.source.index],i[t.target.index])},u=vs(30),c=1;function f(r){for(var i=0,o=t.length;i\u003cc;++i)for(var s,u,f,l,h,d,p,g=0;g\u003co;++g)u=(s=t[g]).source,l=(f=s.target).x+f.vx-u.x-u.vx||ms(),h=f.y+f.vy-u.y-u.vy||ms(),l*=d=((d=Math.sqrt(l*l+h*h))-n[g])/d*r*e[g],h*=d,f.vx-=l*(p=a[g]),f.vy-=h*p,u.vx+=l*(p=1-p),u.vy+=h*p}function l(){if(r){var s,u,c=r.length,f=t.length,l=Zi(r,o);for(s=0,i=new Array(c);s\u003cf;++s)(u=t[s]).index=s,\"object\"!=typeof u.source\u0026\u0026(u.source=Is(l,u.source)),\"object\"!=typeof u.target\u0026\u0026(u.target=Is(l,u.target)),i[u.source.index]=(i[u.source.index]||0)+1,i[u.target.index]=(i[u.target.index]||0)+1;for(s=0,a=new Array(f);s\u003cf;++s)u=t[s],a[s]=i[u.source.index]/(i[u.source.index]+i[u.target.index]);e=new Array(f),h(),n=new Array(f),d()}}function h(){if(r)for(var n=0,i=t.length;n\u003ci;++n)e[n]=+s(t[n],n,t)}function d(){if(r)for(var e=0,i=t.length;e\u003ci;++e)n[e]=+u(t[e],e,t)}return null==t\u0026\u0026(t=[]),f.initialize=function(t){r=t,l()},f.links=function(e){return arguments.length?(t=e,l(),f):t},f.id=function(t){return arguments.length?(o=t,f):o},f.iterations=function(t){return arguments.length?(c=+t,f):c},f.strength=function(t){return arguments.length?(s=\"function\"==typeof t?t:vs(+t),h(),f):s},f.distance=function(t){return arguments.length?(u=\"function\"==typeof t?t:vs(+t),d(),f):u},f};function Bs(t){return t.x}function Os(t){return t.y}var Rs=Math.PI*(3-Math.sqrt(5)),Ps=function(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),a=0,o=.6,s=Zi(),u=Vn(f),c=ft(\"tick\",\"end\");function f(){l(),c.call(\"tick\",e),n\u003cr\u0026\u0026(u.stop(),c.call(\"end\",e))}function l(r){var u,c,f=t.length;void 0===r\u0026\u0026(r=1);for(var l=0;l\u003cr;++l)for(n+=(a-n)*i,s.each((function(t){t(n)})),u=0;u\u003cf;++u)null==(c=t[u]).fx?c.x+=c.vx*=o:(c.x=c.fx,c.vx=0),null==c.fy?c.y+=c.vy*=o:(c.y=c.fy,c.vy=0);return e}function h(){for(var e,n=0,r=t.length;n\u003cr;++n){if((e=t[n]).index=n,null!=e.fx\u0026\u0026(e.x=e.fx),null!=e.fy\u0026\u0026(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=10*Math.sqrt(n),a=n*Rs;e.x=i*Math.cos(a),e.y=i*Math.sin(a)}(isNaN(e.vx)||isNaN(e.vy))\u0026\u0026(e.vx=e.vy=0)}}function d(e){return e.initialize\u0026\u0026e.initialize(t),e}return null==t\u0026\u0026(t=[]),h(),e={tick:l,restart:function(){return u.restart(f),e},stop:function(){return u.stop(),e},nodes:function(n){return arguments.length?(t=n,h(),s.each(d),e):t},alpha:function(t){return arguments.length?(n=+t,e):n},alphaMin:function(t){return arguments.length?(r=+t,e):r},alphaDecay:function(t){return arguments.length?(i=+t,e):+i},alphaTarget:function(t){return arguments.length?(a=+t,e):a},velocityDecay:function(t){return arguments.length?(o=1-t,e):1-o},force:function(t,n){return arguments.length\u003e1?(null==n?s.remove(t):s.set(t,d(n)),e):s.get(t)},find:function(e,n,r){var i,a,o,s,u,c=0,f=t.length;for(null==r?r=1/0:r*=r,c=0;c\u003cf;++c)(o=(i=e-(s=t[c]).x)*i+(a=n-s.y)*a)\u003cr\u0026\u0026(u=s,r=o);return u},on:function(t,n){return arguments.length\u003e1?(c.on(t,n),e):c.on(t)}}},Fs=function(){var t,e,n,r,i=vs(-30),a=1,o=1/0,s=.81;function u(r){var i,a=t.length,o=Es(t,Bs,Os).visitAfter(f);for(n=r,i=0;i\u003ca;++i)e=t[i],o.visit(l)}function c(){if(t){var e,n,a=t.length;for(r=new Array(a),e=0;e\u003ca;++e)n=t[e],r[n.index]=+i(n,e,t)}}function f(t){var e,n,i,a,o,s=0,u=0;if(t.length){for(i=a=o=0;o\u003c4;++o)(e=t[o])\u0026\u0026(n=Math.abs(e.value))\u0026\u0026(s+=e.value,u+=n,i+=n*e.x,a+=n*e.y);t.x=i/u,t.y=a/u}else{(e=t).x=e.data.x,e.y=e.data.y;do{s+=r[e.data.index]}while(e=e.next)}t.value=s}function l(t,i,u,c){if(!t.value)return!0;var f=t.x-e.x,l=t.y-e.y,h=c-i,d=f*f+l*l;if(h*h/s\u003cd)return d\u003co\u0026\u0026(0===f\u0026\u0026(d+=(f=ms())*f),0===l\u0026\u0026(d+=(l=ms())*l),d\u003ca\u0026\u0026(d=Math.sqrt(a*d)),e.vx+=f*t.value*n/d,e.vy+=l*t.value*n/d),!0;if(!(t.length||d\u003e=o)){(t.data!==e||t.next)\u0026\u0026(0===f\u0026\u0026(d+=(f=ms())*f),0===l\u0026\u0026(d+=(l=ms())*l),d\u003ca\u0026\u0026(d=Math.sqrt(a*d)));do{t.data!==e\u0026\u0026(h=r[t.data.index]*n/d,e.vx+=f*h,e.vy+=l*h)}while(t=t.next)}}return u.initialize=function(e){t=e,c()},u.strength=function(t){return arguments.length?(i=\"function\"==typeof t?t:vs(+t),c(),u):i},u.distanceMin=function(t){return arguments.length?(a=t*t,u):Math.sqrt(a)},u.distanceMax=function(t){return arguments.length?(o=t*t,u):Math.sqrt(o)},u.theta=function(t){return arguments.length?(s=t*t,u):Math.sqrt(s)},u},qs=function(t,e,n){var r,i,a,o=vs(.1);function s(t){for(var o=0,s=r.length;o\u003cs;++o){var u=r[o],c=u.x-e||1e-6,f=u.y-n||1e-6,l=Math.sqrt(c*c+f*f),h=(a[o]-l)*i[o]*t/l;u.vx+=c*h,u.vy+=f*h}}function u(){if(r){var e,n=r.length;for(i=new Array(n),a=new Array(n),e=0;e\u003cn;++e)a[e]=+t(r[e],e,r),i[e]=isNaN(a[e])?0:+o(r[e],e,r)}}return\"function\"!=typeof t\u0026\u0026(t=vs(+t)),null==e\u0026\u0026(e=0),null==n\u0026\u0026(n=0),s.initialize=function(t){r=t,u()},s.strength=function(t){return arguments.length?(o=\"function\"==typeof t?t:vs(+t),u(),s):o},s.radius=function(e){return arguments.length?(t=\"function\"==typeof e?e:vs(+e),u(),s):t},s.x=function(t){return arguments.length?(e=+t,s):e},s.y=function(t){return arguments.length?(n=+t,s):n},s},js=function(t){var e,n,r,i=vs(.1);function a(t){for(var i,a=0,o=e.length;a\u003co;++a)(i=e[a]).vx+=(r[a]-i.x)*n[a]*t}function o(){if(e){var a,o=e.length;for(n=new Array(o),r=new Array(o),a=0;a\u003co;++a)n[a]=isNaN(r[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return\"function\"!=typeof t\u0026\u0026(t=vs(null==t?0:+t)),a.initialize=function(t){e=t,o()},a.strength=function(t){return arguments.length?(i=\"function\"==typeof t?t:vs(+t),o(),a):i},a.x=function(e){return arguments.length?(t=\"function\"==typeof e?e:vs(+e),o(),a):t},a},Us=function(t){var e,n,r,i=vs(.1);function a(t){for(var i,a=0,o=e.length;a\u003co;++a)(i=e[a]).vy+=(r[a]-i.y)*n[a]*t}function o(){if(e){var a,o=e.length;for(n=new Array(o),r=new Array(o),a=0;a\u003co;++a)n[a]=isNaN(r[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return\"function\"!=typeof t\u0026\u0026(t=vs(null==t?0:+t)),a.initialize=function(t){e=t,o()},a.strength=function(t){return arguments.length?(i=\"function\"==typeof t?t:vs(+t),o(),a):i},a.y=function(e){return arguments.length?(t=\"function\"==typeof e?e:vs(+e),o(),a):t},a},zs=function(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf(\"e\"))\u003c0)return null;var n,r=t.slice(0,n);return[r.length\u003e1?r[0]+r.slice(2):r,+t.slice(n+1)]},Ys=function(t){return(t=zs(Math.abs(t)))?t[1]:NaN},Vs=/^(?:(.)?([\u003c\u003e=^]))?([+\\-( ])?([$#])?(0)?(\\d+)?(,)?(\\.\\d+)?(~)?([a-z%])?$/i;function Hs(t){if(!(e=Vs.exec(t)))","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmck-code%2Fpokesay-bash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmck-code%2Fpokesay-bash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmck-code%2Fpokesay-bash/lists"}