ksh-plugins
Version:
可视化插件
1 lines • 91.7 kB
JavaScript
(function(t,n){"object"===typeof exports&&"object"===typeof module?module.exports=n():"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?exports["ksh-plugins"]=n():t["ksh-plugins"]=n()})("undefined"!==typeof self?self:this,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s="fb15")}({"03e3":function(t,n,e){var r=e("24fb");n=r(!1),n.push([t.i,".ksh-roll-num[data-v-78b1e38c]{position:relative;display:inline-flex;align-items:center}.ksh-roll-num .ksh-num-1[data-v-78b1e38c]{visibility:hidden}.ksh-roll-num .ksh-num-2[data-v-78b1e38c]{position:absolute;left:0}",""]),t.exports=n},"24fb":function(t,n,e){"use strict";function r(t,n){var e=t[1]||"",r=t[3];if(!r)return e;if(n&&"function"===typeof btoa){var a=i(r),o=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[e].concat(o).concat([a]).join("\n")}return[e].join("\n")}function i(t){var n=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),e="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n);return"/*# ".concat(e," */")}t.exports=function(t){var n=[];return n.toString=function(){return this.map((function(n){var e=r(n,t);return n[2]?"@media ".concat(n[2]," {").concat(e,"}"):e})).join("")},n.i=function(t,e,r){"string"===typeof t&&(t=[[null,t,""]]);var i={};if(r)for(var a=0;a<this.length;a++){var o=this[a][0];null!=o&&(i[o]=!0)}for(var u=0;u<t.length;u++){var s=[].concat(t[u]);r&&i[s[0]]||(e&&(s[2]?s[2]="".concat(e," and ").concat(s[2]):s[2]=e),n.push(s))}},n}},"25b1":function(t,n,e){"use strict";var r=e("261f"),i=e.n(r);i.a},"261f":function(t,n,e){var r=e("ae45");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var i=e("499e").default;i("1aa2167c",r,!0,{sourceMap:!1,shadowMode:!1})},"2c4c":function(t,n,e){"use strict";var r=e("7186"),i=e.n(r);i.a},3450:function(t,n,e){"use strict";var r=e("85d7"),i=e.n(r);i.a},"499e":function(t,n,e){"use strict";function r(t,n){for(var e=[],r={},i=0;i<n.length;i++){var a=n[i],o=a[0],u=a[1],s=a[2],l=a[3],c={id:t+":"+i,css:u,media:s,sourceMap:l};r[o]?r[o].parts.push(c):e.push(r[o]={id:o,parts:[c]})}return e}e.r(n),e.d(n,"default",(function(){return d}));var i="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},o=i&&(document.head||document.getElementsByTagName("head")[0]),u=null,s=0,l=!1,c=function(){},h=null,f="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function d(t,n,e,i){l=e,h=i||{};var o=r(t,n);return v(o),function(n){for(var e=[],i=0;i<o.length;i++){var u=o[i],s=a[u.id];s.refs--,e.push(s)}n?(o=r(t,n),v(o)):o=[];for(i=0;i<e.length;i++){s=e[i];if(0===s.refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete a[s.id]}}}}function v(t){for(var n=0;n<t.length;n++){var e=t[n],r=a[e.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](e.parts[i]);for(;i<e.parts.length;i++)r.parts.push(m(e.parts[i]));r.parts.length>e.parts.length&&(r.parts.length=e.parts.length)}else{var o=[];for(i=0;i<e.parts.length;i++)o.push(m(e.parts[i]));a[e.id]={id:e.id,refs:1,parts:o}}}}function g(){var t=document.createElement("style");return t.type="text/css",o.appendChild(t),t}function m(t){var n,e,r=document.querySelector("style["+f+'~="'+t.id+'"]');if(r){if(l)return c;r.parentNode.removeChild(r)}if(p){var i=s++;r=u||(u=g()),n=_.bind(null,r,i,!1),e=_.bind(null,r,i,!0)}else r=g(),n=w.bind(null,r),e=function(){r.parentNode.removeChild(r)};return n(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;n(t=r)}else e()}}var y=function(){var t=[];return function(n,e){return t[n]=e,t.filter(Boolean).join("\n")}}();function _(t,n,e,r){var i=e?"":r.css;if(t.styleSheet)t.styleSheet.cssText=y(n,i);else{var a=document.createTextNode(i),o=t.childNodes;o[n]&&t.removeChild(o[n]),o.length?t.insertBefore(a,o[n]):t.appendChild(a)}}function w(t,n){var e=n.css,r=n.media,i=n.sourceMap;if(r&&t.setAttribute("media",r),h.ssrId&&t.setAttribute(f,n.id),i&&(e+="\n/*# sourceURL="+i.sources[0]+" */",e+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=e;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},7186:function(t,n,e){var r=e("a2c1");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var i=e("499e").default;i("e9eb0dc8",r,!0,{sourceMap:!1,shadowMode:!1})},"85d7":function(t,n,e){var r=e("03e3");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var i=e("499e").default;i("d9c0c018",r,!0,{sourceMap:!1,shadowMode:!1})},8875:function(t,n,e){var r,i,a;(function(e,o){i=[],r=o,a="function"===typeof r?r.apply(n,i):r,void 0===a||(t.exports=a)})("undefined"!==typeof self&&self,(function(){function t(){var n=Object.getOwnPropertyDescriptor(document,"currentScript");if(!n&&"currentScript"in document&&document.currentScript)return document.currentScript;if(n&&n.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var e,r,i,a=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,o=/@([^@]*):(\d+):(\d+)\s*$/gi,u=a.exec(p.stack)||o.exec(p.stack),s=u&&u[1]||!1,l=u&&u[2]||!1,c=document.location.href.replace(document.location.hash,""),h=document.getElementsByTagName("script");s===c&&(e=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=e.replace(r,"$1").trim());for(var f=0;f<h.length;f++){if("interactive"===h[f].readyState)return h[f];if(h[f].src===s)return h[f];if(s===c&&h[f].innerHTML&&h[f].innerHTML.trim()===i)return h[f]}return null}}return t}))},a2c1:function(t,n,e){var r=e("24fb");n=r(!1),n.push([t.i,".ksh-_RankBarItem_root{position:relative;height:30px;display:flex;align-items:center}.ksh-_RankBarItem_root.ksh-one .ksh-chart-swapper{border:1px solid rgba(249,200,20,.35)}.ksh-_RankBarItem_root.ksh-one .ksh-chart-swapper .ksh-rank-bar{background:linear-gradient(90deg,transparent 2px,#1f314b 0),linear-gradient(90deg,#ffea06,#f2a622);background-size:3px 6px,100% 100%;background-repeat:repeat-x}.ksh-_RankBarItem_root .ksh-chart-swapper{position:relative;width:100%;height:14px;border:1px solid rgba(81,211,255,.35);border-radius:7px;display:flex;align-items:center;margin-right:10px;background-color:#1f314b;padding:0 6px}.ksh-_RankBarItem_root .ksh-chart-swapper .ksh-rank-bar{position:relative;width:0;height:6px;background:linear-gradient(90deg,transparent 2px,#1f314b 0),linear-gradient(90deg,#73f3ff,#2fc7ff);background-size:3px 6px,100% 100%;background-repeat:repeat-x;display:flex;align-items:center;transition:width 2s}",""]),t.exports=n},ae45:function(t,n,e){var r=e("24fb");n=r(!1),n.push([t.i,".ksh-rank-bar_root{position:relative;height:100%;width:100%;display:flex}.ksh-rank-bar_root .ksh-rank-name-swapper{position:relative;display:flex;flex-direction:column;margin-right:5px}.ksh-rank-bar_root .ksh-rank-name-swapper .ksh-rank-name-item{position:relative;height:30px;display:flex;align-items:center;margin-top:10px}.ksh-rank-bar_root .ksh-rank-name-swapper .ksh-rank-name-item:first-child{margin-top:0}.ksh-rank-bar_root .ksh-rank-name-swapper .ksh-rank-name-item.ksh-one .ksh-rank{border:1px solid #fa9c12;background-image:linear-gradient(90deg,rgba(255,170,6,.24),rgba(242,137,34,.24));box-shadow:inset 0 0 8px rgba(255,196,69,.22)}.ksh-rank-bar_root .ksh-rank-name-swapper .ksh-rank-name-item.ksh-one .ksh-name{color:#ffe074}.ksh-rank-bar_root .ksh-rank-name-swapper .ksh-rank-name-item .ksh-rank{width:22px;height:22px;border-radius:50%;border:1px solid #50ddff;background-image:linear-gradient(90deg,rgba(47,199,255,.24),rgba(115,243,255,.24));box-shadow:inset 0 0 15px rgba(69,122,255,.42);color:#fff;line-height:22px;text-align:center;font-size:12px;font-family:DINAlternate-Bold,serif;font-weight:700;margin-right:10px}.ksh-rank-bar_root .ksh-rank-name-swapper .ksh-rank-name-item .ksh-name{min-width:60px;white-space:nowrap;font-size:18px;font-family:Source Han Sans CN,serif;color:#8efeff;font-weight:700;margin-right:5px}.ksh-rank-bar_root .ksh-rank-bar-swapper{flex:1;position:relative;display:flex;flex-direction:column;margin-right:10px}.ksh-rank-bar_root .ksh-rank-bar-swapper .ksh-rank-bar-item{margin-top:10px}.ksh-rank-bar_root .ksh-rank-bar-swapper .ksh-rank-bar-item:first-child{margin-top:0}.ksh-rank-bar_root .ksh-rank-value-swapper{position:relative;display:flex;flex-direction:column}.ksh-rank-bar_root .ksh-rank-value-swapper .ksh-rank-value-item{position:relative;height:30px;display:flex;align-items:center;margin-top:10px}.ksh-rank-bar_root .ksh-rank-value-swapper .ksh-rank-value-item:first-child{margin-top:0}.ksh-rank-bar_root .ksh-rank-value-swapper .ksh-rank-value-item.ksh-one .ksh-value{color:#ffe074}.ksh-rank-bar_root .ksh-rank-value-swapper .ksh-rank-value-item .ksh-value{white-space:nowrap;font-size:18px;font-family:DINAlternate-Bold,serif;color:#8efeff;font-weight:700}",""]),t.exports=n},fb15:function(t,n,e){"use strict";if(e.r(n),e.d(n,"KshRollNum",(function(){return As})),e.d(n,"KshSelfInc",(function(){return Ps})),e.d(n,"KshRankBar",(function(){return Zs})),"undefined"!==typeof window){var r=window.document.currentScript,i=e("8875");r=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var a=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(e.p=a[1])}var o=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("span",{staticClass:"ksh-roll-num"},[e("span",{staticClass:"ksh-num-1"},[t._v(t._s(t.placeholder))]),e("span",{ref:"roll_num",staticClass:"ksh-num-2"})])},u=[],s=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN},l=function(t){return 1===t.length&&(t=c(t)),{left:function(n,e,r,i){null==r&&(r=0),null==i&&(i=n.length);while(r<i){var a=r+i>>>1;t(n[a],e)<0?r=a+1:i=a}return r},right:function(n,e,r,i){null==r&&(r=0),null==i&&(i=n.length);while(r<i){var a=r+i>>>1;t(n[a],e)>0?i=a:r=a+1}return r}}};function c(t){return function(n,e){return s(t(n),e)}}var h=l(s);h.right,h.left;var f=Array.prototype;f.slice,f.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);Array.prototype.slice;var p={value:function(){}};function d(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new v(r)}function v(t){this._=t}function g(t,n){return t.trim().split(/^|\s+/).map((function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))}function m(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function y(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=p,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}v.prototype=d.prototype={constructor:v,on:function(t,n){var e,r=this._,i=g(t+"",r),a=-1,o=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!==typeof n)throw new Error("invalid callback: "+n);while(++a<o)if(e=(t=i[a]).type)r[e]=y(r[e],t.name,n);else if(null==n)for(e in r)r[e]=y(r[e],t.name,null);return this}while(++a<o)if((e=(t=i[a]).type)&&(e=m(r[e],t.name)))return e},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new v(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),a=0;a<e;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(r=this._[t],a=0,e=r.length;a<e;++a)r[a].value.apply(n,i)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,a=r.length;i<a;++i)r[i].value.apply(n,e)}};var _=d;function w(){}var x=function(t){return null==t?w:function(){return this.querySelector(t)}},b=function(t){"function"!==typeof t&&(t=x(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var a,o,u=n[i],s=u.length,l=r[i]=new Array(s),c=0;c<s;++c)(a=u[c])&&(o=t.call(a,a.__data__,c,u))&&("__data__"in a&&(o.__data__=a.__data__),l[c]=o);return new sn(r,this._parents)};function k(){return[]}var M=function(t){return null==t?k:function(){return this.querySelectorAll(t)}},C=function(t){"function"!==typeof t&&(t=M(t));for(var n=this._groups,e=n.length,r=[],i=[],a=0;a<e;++a)for(var o,u=n[a],s=u.length,l=0;l<s;++l)(o=u[l])&&(r.push(t.call(o,o.__data__,l,u)),i.push(o));return new sn(r,i)},N=function(t){return function(){return this.matches(t)}},T=function(t){"function"!==typeof t&&(t=N(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var a,o=n[i],u=o.length,s=r[i]=[],l=0;l<u;++l)(a=o[l])&&t.call(a,a.__data__,l,o)&&s.push(a);return new sn(r,this._parents)},A=function(t){return new Array(t.length)},S=function(){return new sn(this._enter||this._groups.map(A),this._parents)};function U(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}U.prototype={constructor:U,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var D=function(t){return function(){return t}},R="$";function L(t,n,e,r,i,a){for(var o,u=0,s=n.length,l=a.length;u<l;++u)(o=n[u])?(o.__data__=a[u],r[u]=o):e[u]=new U(t,a[u]);for(;u<s;++u)(o=n[u])&&(i[u]=o)}function E(t,n,e,r,i,a,o){var u,s,l,c={},h=n.length,f=a.length,p=new Array(h);for(u=0;u<h;++u)(s=n[u])&&(p[u]=l=R+o.call(s,s.__data__,u,n),l in c?i[u]=s:c[l]=s);for(u=0;u<f;++u)l=R+o.call(t,a[u],u,a),(s=c[l])?(r[u]=s,s.__data__=a[u],c[l]=null):e[u]=new U(t,a[u]);for(u=0;u<h;++u)(s=n[u])&&c[p[u]]===s&&(i[u]=s)}var P=function(t,n){if(!t)return p=new Array(this.size()),l=-1,this.each((function(t){p[++l]=t})),p;var e=n?E:L,r=this._parents,i=this._groups;"function"!==typeof t&&(t=D(t));for(var a=i.length,o=new Array(a),u=new Array(a),s=new Array(a),l=0;l<a;++l){var c=r[l],h=i[l],f=h.length,p=t.call(c,c&&c.__data__,l,r),d=p.length,v=u[l]=new Array(d),g=o[l]=new Array(d),m=s[l]=new Array(f);e(c,h,v,g,m,p,n);for(var y,_,w=0,x=0;w<d;++w)if(y=v[w]){w>=x&&(x=w+1);while(!(_=g[x])&&++x<d);y._next=_||null}}return o=new sn(o,r),o._enter=u,o._exit=s,o},F=function(){return new sn(this._exit||this._groups.map(A),this._parents)},Y=function(t,n,e){var r=this.enter(),i=this,a=this.exit();return r="function"===typeof t?t(r):r.append(t+""),null!=n&&(i=n(i)),null==e?a.remove():e(a),r&&i?r.merge(i).order():i},j=function(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,a=Math.min(r,i),o=new Array(r),u=0;u<a;++u)for(var s,l=n[u],c=e[u],h=l.length,f=o[u]=new Array(h),p=0;p<h;++p)(s=l[p]||c[p])&&(f[p]=s);for(;u<r;++u)o[u]=n[u];return new sn(o,this._parents)},H=function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},O=function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=q);for(var e=this._groups,r=e.length,i=new Array(r),a=0;a<r;++a){for(var o,u=e[a],s=u.length,l=i[a]=new Array(s),c=0;c<s;++c)(o=u[c])&&(l[c]=o);l.sort(n)}return new sn(i,this._parents).order()};function q(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}var I=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},B=function(){var t=new Array(this.size()),n=-1;return this.each((function(){t[++n]=this})),t},z=function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null},$=function(){var t=0;return this.each((function(){++t})),t},X=function(){return!this.node()},V=function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,a=n[e],o=0,u=a.length;o<u;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this},Z="http://www.w3.org/1999/xhtml",W={svg:"http://www.w3.org/2000/svg",xhtml:Z,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},J=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),W.hasOwnProperty(n)?{space:W[n],local:t}:t};function Q(t){return function(){this.removeAttribute(t)}}function G(t){return function(){this.removeAttributeNS(t.space,t.local)}}function K(t,n){return function(){this.setAttribute(t,n)}}function tt(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function nt(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function et(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}var rt=function(t,n){var e=J(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?G:Q:"function"===typeof n?e.local?et:nt:e.local?tt:K)(e,n))},it=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function at(t){return function(){this.style.removeProperty(t)}}function ot(t,n,e){return function(){this.style.setProperty(t,n,e)}}function ut(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}var st=function(t,n,e){return arguments.length>1?this.each((null==n?at:"function"===typeof n?ut:ot)(t,n,null==e?"":e)):lt(this.node(),t)};function lt(t,n){return t.style.getPropertyValue(n)||it(t).getComputedStyle(t,null).getPropertyValue(n)}function ct(t){return function(){delete this[t]}}function ht(t,n){return function(){this[t]=n}}function ft(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}var pt=function(t,n){return arguments.length>1?this.each((null==n?ct:"function"===typeof n?ft:ht)(t,n)):this.node()[t]};function dt(t){return t.trim().split(/^|\s+/)}function vt(t){return t.classList||new gt(t)}function gt(t){this._node=t,this._names=dt(t.getAttribute("class")||"")}function mt(t,n){var e=vt(t),r=-1,i=n.length;while(++r<i)e.add(n[r])}function yt(t,n){var e=vt(t),r=-1,i=n.length;while(++r<i)e.remove(n[r])}function _t(t){return function(){mt(this,t)}}function wt(t){return function(){yt(this,t)}}function xt(t,n){return function(){(n.apply(this,arguments)?mt:yt)(this,t)}}gt.prototype={add:function(t){var n=this._names.indexOf(t);n<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var bt=function(t,n){var e=dt(t+"");if(arguments.length<2){var r=vt(this.node()),i=-1,a=e.length;while(++i<a)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"===typeof n?xt:n?_t:wt)(e,n))};function kt(){this.textContent=""}function Mt(t){return function(){this.textContent=t}}function Ct(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}var Nt=function(t){return arguments.length?this.each(null==t?kt:("function"===typeof t?Ct:Mt)(t)):this.node().textContent};function Tt(){this.innerHTML=""}function At(t){return function(){this.innerHTML=t}}function St(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}var Ut=function(t){return arguments.length?this.each(null==t?Tt:("function"===typeof t?St:At)(t)):this.node().innerHTML};function Dt(){this.nextSibling&&this.parentNode.appendChild(this)}var Rt=function(){return this.each(Dt)};function Lt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var Et=function(){return this.each(Lt)};function Pt(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===Z&&n.documentElement.namespaceURI===Z?n.createElement(t):n.createElementNS(e,t)}}function Ft(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var Yt=function(t){var n=J(t);return(n.local?Ft:Pt)(n)},jt=function(t){var n="function"===typeof t?t:Yt(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))};function Ht(){return null}var Ot=function(t,n){var e="function"===typeof t?t:Yt(t),r=null==n?Ht:"function"===typeof n?n:x(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)}))};function qt(){var t=this.parentNode;t&&t.removeChild(this)}var It=function(){return this.each(qt)};function Bt(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function zt(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}var $t=function(t){return this.select(t?zt:Bt)},Xt=function(t){return arguments.length?this.property("__data__",t):this.node().__data__},Vt={},Zt=null;if("undefined"!==typeof document){var Wt=document.documentElement;"onmouseenter"in Wt||(Vt={mouseenter:"mouseover",mouseleave:"mouseout"})}function Jt(t,n,e){return t=Qt(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function Qt(t,n,e){return function(r){var i=Zt;Zt=r;try{t.call(this,this.__data__,n,e)}finally{Zt=i}}}function Gt(t){return t.trim().split(/^|\s+/).map((function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}function Kt(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,a=n.length;r<a;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.capture);++i?n.length=i:delete this.__on}}}function tn(t,n,e){var r=Vt.hasOwnProperty(t.type)?Jt:Qt;return function(i,a,o){var u,s=this.__on,l=r(n,a,o);if(s)for(var c=0,h=s.length;c<h;++c)if((u=s[c]).type===t.type&&u.name===t.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=l,u.capture=e),void(u.value=n);this.addEventListener(t.type,l,e),u={type:t.type,name:t.name,value:n,listener:l,capture:e},s?s.push(u):this.__on=[u]}}var nn=function(t,n,e){var r,i,a=Gt(t+""),o=a.length;if(!(arguments.length<2)){for(u=n?tn:Kt,null==e&&(e=!1),r=0;r<o;++r)this.each(u(a[r],n,e));return this}var u=this.node().__on;if(u)for(var s,l=0,c=u.length;l<c;++l)for(r=0,s=u[l];r<o;++r)if((i=a[r]).type===s.type&&i.name===s.name)return s.value};function en(t,n,e){var r=it(t),i=r.CustomEvent;"function"===typeof i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function rn(t,n){return function(){return en(this,t,n)}}function an(t,n){return function(){return en(this,t,n.apply(this,arguments))}}var on=function(t,n){return this.each(("function"===typeof n?an:rn)(t,n))},un=[null];function sn(t,n){this._groups=t,this._parents=n}function ln(){return new sn([[document.documentElement]],un)}sn.prototype=ln.prototype={constructor:sn,select:b,selectAll:C,filter:T,data:P,enter:S,exit:F,join:Y,merge:j,order:H,sort:O,call:I,nodes:B,node:z,size:$,empty:X,each:V,attr:rt,style:st,property:pt,classed:bt,text:Nt,html:Ut,raise:Rt,lower:Et,append:jt,insert:Ot,remove:It,clone:$t,datum:Xt,on:nn,dispatch:on};var cn=ln,hn=function(t){return"string"===typeof t?new sn([[document.querySelector(t)]],[document.documentElement]):new sn([[t]],un)};var fn=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t};function pn(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function dn(){}var vn=.7,gn=1/vn,mn="\\s*([+-]?\\d+)\\s*",yn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",_n="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wn=/^#([0-9a-f]{3,8})$/,xn=new RegExp("^rgb\\("+[mn,mn,mn]+"\\)$"),bn=new RegExp("^rgb\\("+[_n,_n,_n]+"\\)$"),kn=new RegExp("^rgba\\("+[mn,mn,mn,yn]+"\\)$"),Mn=new RegExp("^rgba\\("+[_n,_n,_n,yn]+"\\)$"),Cn=new RegExp("^hsl\\("+[yn,_n,_n]+"\\)$"),Nn=new RegExp("^hsla\\("+[yn,_n,_n,yn]+"\\)$"),Tn={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 An(){return this.rgb().formatHex()}function Sn(){return qn(this).formatHsl()}function Un(){return this.rgb().formatRgb()}function Dn(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=wn.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?Rn(n):3===e?new Fn(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?Ln(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?Ln(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=xn.exec(t))?new Fn(n[1],n[2],n[3],1):(n=bn.exec(t))?new Fn(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=kn.exec(t))?Ln(n[1],n[2],n[3],n[4]):(n=Mn.exec(t))?Ln(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Cn.exec(t))?On(n[1],n[2]/100,n[3]/100,1):(n=Nn.exec(t))?On(n[1],n[2]/100,n[3]/100,n[4]):Tn.hasOwnProperty(t)?Rn(Tn[t]):"transparent"===t?new Fn(NaN,NaN,NaN,0):null}function Rn(t){return new Fn(t>>16&255,t>>8&255,255&t,1)}function Ln(t,n,e,r){return r<=0&&(t=n=e=NaN),new Fn(t,n,e,r)}function En(t){return t instanceof dn||(t=Dn(t)),t?(t=t.rgb(),new Fn(t.r,t.g,t.b,t.opacity)):new Fn}function Pn(t,n,e,r){return 1===arguments.length?En(t):new Fn(t,n,e,null==r?1:r)}function Fn(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Yn(){return"#"+Hn(this.r)+Hn(this.g)+Hn(this.b)}function jn(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Hn(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function On(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Bn(t,n,e,r)}function qn(t){if(t instanceof Bn)return new Bn(t.h,t.s,t.l,t.opacity);if(t instanceof dn||(t=Dn(t)),!t)return new Bn;if(t instanceof Bn)return t;t=t.rgb();var n=t.r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),a=Math.max(n,e,r),o=NaN,u=a-i,s=(a+i)/2;return u?(o=n===a?(e-r)/u+6*(e<r):e===a?(r-n)/u+2:(n-e)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new Bn(o,u,s,t.opacity)}function In(t,n,e,r){return 1===arguments.length?qn(t):new Bn(t,n,e,null==r?1:r)}function Bn(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function zn(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function $n(t,n,e,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*n+(4-6*a+3*o)*e+(1+3*t+3*a-3*o)*r+o*i)/6}fn(dn,Dn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:An,formatHex:An,formatHsl:Sn,formatRgb:Un,toString:Un}),fn(Fn,Pn,pn(dn,{brighter:function(t){return t=null==t?gn:Math.pow(gn,t),new Fn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?vn:Math.pow(vn,t),new Fn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Yn,formatHex:Yn,formatRgb:jn,toString:jn})),fn(Bn,In,pn(dn,{brighter:function(t){return t=null==t?gn:Math.pow(gn,t),new Bn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?vn:Math.pow(vn,t),new Bn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new Fn(zn(t>=240?t-240:t+120,i,r),zn(t,i,r),zn(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Xn=function(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,u=r<n-1?t[r+2]:2*a-i;return $n((e-r/n)*n,o,i,a,u)}},Vn=function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),i=t[(r+n-1)%n],a=t[r%n],o=t[(r+1)%n],u=t[(r+2)%n];return $n((e-r/n)*n,i,a,o,u)}},Zn=function(t){return function(){return t}};function Wn(t,n){return function(e){return t+e*n}}function Jn(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}function Qn(t){return 1===(t=+t)?Gn:function(n,e){return e-n?Jn(n,e,t):Zn(isNaN(n)?e:n)}}function Gn(t,n){var e=n-t;return e?Wn(t,e):Zn(isNaN(t)?n:t)}var Kn=function t(n){var e=Qn(n);function r(t,n){var r=e((t=Pn(t)).r,(n=Pn(n)).r),i=e(t.g,n.g),a=e(t.b,n.b),o=Gn(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=a(n),t.opacity=o(n),t+""}}return r.gamma=t,r}(1);function te(t){return function(n){var e,r,i=n.length,a=new Array(i),o=new Array(i),u=new Array(i);for(e=0;e<i;++e)r=Pn(n[e]),a[e]=r.r||0,o[e]=r.g||0,u[e]=r.b||0;return a=t(a),o=t(o),u=t(u),r.opacity=1,function(t){return r.r=a(t),r.g=o(t),r.b=u(t),r+""}}}te(Xn),te(Vn);var ne=function(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,i=n.slice();return function(a){for(e=0;e<r;++e)i[e]=t[e]*(1-a)+n[e]*a;return i}};function ee(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function re(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,a=new Array(i),o=new Array(r);for(e=0;e<i;++e)a[e]=de(t[e],n[e]);for(;e<r;++e)o[e]=n[e];return function(t){for(e=0;e<i;++e)o[e]=a[e](t);return o}}var ie=function(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}},ae=function(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}},oe=function(t,n){var e,r={},i={};for(e in null!==t&&"object"===typeof t||(t={}),null!==n&&"object"===typeof n||(n={}),n)e in t?r[e]=de(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}},ue=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,se=new RegExp(ue.source,"g");function le(t){return function(){return t}}function ce(t){return function(n){return t(n)+""}}var he,fe,pe=function(t,n){var e,r,i,a=ue.lastIndex=se.lastIndex=0,o=-1,u=[],s=[];t+="",n+="";while((e=ue.exec(t))&&(r=se.exec(n)))(i=r.index)>a&&(i=n.slice(a,i),u[o]?u[o]+=i:u[++o]=i),(e=e[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,s.push({i:o,x:ae(e,r)})),a=se.lastIndex;return a<n.length&&(i=n.slice(a),u[o]?u[o]+=i:u[++o]=i),u.length<2?s[0]?ce(s[0].x):le(n):(n=s.length,function(t){for(var e,r=0;r<n;++r)u[(e=s[r]).i]=e.x(t);return u.join("")})},de=function(t,n){var e,r=typeof n;return null==n||"boolean"===r?Zn(n):("number"===r?ae:"string"===r?(e=Dn(n))?(n=e,Kn):pe:n instanceof Dn?Kn:n instanceof Date?ie:ee(n)?ne:Array.isArray(n)?re:"function"!==typeof n.valueOf&&"function"!==typeof n.toString||isNaN(n)?oe:ae)(t,n)},ve=0,ge=0,me=0,ye=1e3,_e=0,we=0,xe=0,be="object"===typeof performance&&performance.now?performance:Date,ke="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Me(){return we||(ke(Ce),we=be.now()+xe)}function Ce(){we=0}function Ne(){this._call=this._time=this._next=null}function Te(t,n,e){var r=new Ne;return r.restart(t,n,e),r}function Ae(){Me(),++ve;var t,n=he;while(n)(t=we-n._time)>=0&&n._call.call(null,t),n=n._next;--ve}function Se(){we=(_e=be.now())+xe,ve=ge=0;try{Ae()}finally{ve=0,De(),we=0}}function Ue(){var t=be.now(),n=t-_e;n>ye&&(xe-=n,_e=t)}function De(){var t,n,e=he,r=1/0;while(e)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:he=n);fe=t,Re(r)}function Re(t){if(!ve){ge&&(ge=clearTimeout(ge));var n=t-we;n>24?(t<1/0&&(ge=setTimeout(Se,t-be.now()-xe)),me&&(me=clearInterval(me))):(me||(_e=be.now(),me=setInterval(Ue,ye)),ve=1,ke(Se))}}Ne.prototype=Te.prototype={constructor:Ne,restart:function(t,n,e){if("function"!==typeof t)throw new TypeError("callback is not a function");e=(null==e?Me():+e)+(null==n?0:+n),this._next||fe===this||(fe?fe._next=this:he=this,fe=this),this._call=t,this._time=e,Re()},stop:function(){this._call&&(this._call=null,this._time=1/0,Re())}};var Le=function(t,n,e){var r=new Ne;return n=null==n?0:+n,r.restart((function(e){r.stop(),t(e+n)}),n,e),r},Ee=_("start","end","cancel","interrupt"),Pe=[],Fe=0,Ye=1,je=2,He=3,Oe=4,qe=5,Ie=6,Be=function(t,n,e,r,i,a){var o=t.__transition;if(o){if(e in o)return}else t.__transition={};Ve(t,e,{name:n,index:r,group:i,on:Ee,tween:Pe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Fe})};function ze(t,n){var e=Xe(t,n);if(e.state>Fe)throw new Error("too late; already scheduled");return e}function $e(t,n){var e=Xe(t,n);if(e.state>He)throw new Error("too late; already running");return e}function Xe(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function Ve(t,n,e){var r,i=t.__transition;function a(t){e.state=Ye,e.timer.restart(o,e.delay,e.time),e.delay<=t&&o(t-e.delay)}function o(a){var l,c,h,f;if(e.state!==Ye)return s();for(l in i)if(f=i[l],f.name===e.name){if(f.state===He)return Le(o);f.state===Oe?(f.state=Ie,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[l]):+l<n&&(f.state=Ie,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[l])}if(Le((function(){e.state===He&&(e.state=Oe,e.timer.restart(u,e.delay,e.time),u(a))})),e.state=je,e.on.call("start",t,t.__data__,e.index,e.group),e.state===je){for(e.state=He,r=new Array(h=e.tween.length),l=0,c=-1;l<h;++l)(f=e.tween[l].value.call(t,t.__data__,e.index,e.group))&&(r[++c]=f);r.length=c+1}}function u(n){var i=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(s),e.state=qe,1),a=-1,o=r.length;while(++a<o)r[a].call(t,i);e.state===qe&&(e.on.call("end",t,t.__data__,e.index,e.group),s())}function s(){for(var r in e.state=Ie,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=Te(a,0,e.time)}var Ze,We,Je,Qe,Ge=function(t,n){var e,r,i,a=t.__transition,o=!0;if(a){for(i in n=null==n?null:n+"",a)(e=a[i]).name===n?(r=e.state>je&&e.state<qe,e.state=Ie,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete a[i]):o=!1;o&&delete t.__transition}},Ke=function(t){return this.each((function(){Ge(this,t)}))},tr=180/Math.PI,nr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},er=function(t,n,e,r,i,a){var o,u,s;return(o=Math.sqrt(t*t+n*n))&&(t/=o,n/=o),(s=t*e+n*r)&&(e-=t*s,r-=n*s),(u=Math.sqrt(e*e+r*r))&&(e/=u,r/=u,s/=u),t*r<n*e&&(t=-t,n=-n,s=-s,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(n,t)*tr,skewX:Math.atan(s)*tr,scaleX:o,scaleY:u}};function rr(t){return"none"===t?nr:(Ze||(Ze=document.createElement("DIV"),We=document.documentElement,Je=document.defaultView),Ze.style.transform=t,t=Je.getComputedStyle(We.appendChild(Ze),null).getPropertyValue("transform"),We.removeChild(Ze),t=t.slice(7,-1).split(","),er(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function ir(t){return null==t?nr:(Qe||(Qe=document.createElementNS("http://www.w3.org/2000/svg","g")),Qe.setAttribute("transform",t),(t=Qe.transform.baseVal.consolidate())?(t=t.matrix,er(t.a,t.b,t.c,t.d,t.e,t.f)):nr)}function ar(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}function a(t,r,i,a,o,u){if(t!==i||r!==a){var s=o.push("translate(",null,n,null,e);u.push({i:s-4,x:ae(t,i)},{i:s-2,x:ae(r,a)})}else(i||a)&&o.push("translate("+i+n+a+e)}function o(t,n,e,a){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),a.push({i:e.push(i(e)+"rotate(",null,r)-2,x:ae(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}function u(t,n,e,a){t!==n?a.push({i:e.push(i(e)+"skewX(",null,r)-2,x:ae(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}function s(t,n,e,r,a,o){if(t!==e||n!==r){var u=a.push(i(a)+"scale(",null,",",null,")");o.push({i:u-4,x:ae(t,e)},{i:u-2,x:ae(n,r)})}else 1===e&&1===r||a.push(i(a)+"scale("+e+","+r+")")}return function(n,e){var r=[],i=[];return n=t(n),e=t(e),a(n.translateX,n.translateY,e.translateX,e.translateY,r,i),o(n.rotate,e.rotate,r,i),u(n.skewX,e.skewX,r,i),s(n.scaleX,n.scaleY,e.scaleX,e.scaleY,r,i),n=e=null,function(t){var n,e=-1,a=i.length;while(++e<a)r[(n=i[e]).i]=n.x(t);return r.join("")}}}var or=ar(rr,"px, ","px)","deg)"),ur=ar(ir,", ",")",")");function sr(t,n){var e,r;return function(){var i=$e(this,t),a=i.tween;if(a!==e){r=e=a;for(var o=0,u=r.length;o<u;++o)if(r[o].name===n){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function lr(t,n,e){var r,i;if("function"!==typeof e)throw new Error;return function(){var a=$e(this,t),o=a.tween;if(o!==r){i=(r=o).slice();for(var u={name:n,value:e},s=0,l=i.length;s<l;++s)if(i[s].name===n){i[s]=u;break}s===l&&i.push(u)}a.tween=i}}var cr=function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=Xe(this.node(),e).tween,a=0,o=i.length;a<o;++a)if((r=i[a]).name===t)return r.value;return null}return this.each((null==n?sr:lr)(e,t,n))};function hr(t,n,e){var r=t._id;return t.each((function(){var t=$e(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)})),function(t){return Xe(t,r).value[n]}}var fr=function(t,n){var e;return("number"===typeof n?ae:n instanceof Dn?Kn:(e=Dn(n))?(n=e,Kn):pe)(t,n)};function pr(t){return function(){this.removeAttribute(t)}}function dr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function vr(t,n,e){var r,i,a=e+"";return function(){var o=this.getAttribute(t);return o===a?null:o===r?i:i=n(r=o,e)}}function gr(t,n,e){var r,i,a=e+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===r?i:i=n(r=o,e)}}function mr(t,n,e){var r,i,a;return function(){var o,u,s=e(this);if(null!=s)return o=this.getAttribute(t),u=s+"",o===u?null:o===r&&u===i?a:(i=u,a=n(r=o,s));this.removeAttribute(t)}}function yr(t,n,e){var r,i,a;return function(){var o,u,s=e(this);if(null!=s)return o=this.getAttributeNS(t.space,t.local),u=s+"",o===u?null:o===r&&u===i?a:(i=u,a=n(r=o,s));this.removeAttributeNS(t.space,t.local)}}var _r=function(t,n){var e=J(t),r="transform"===e?ur:fr;return this.attrTween(t,"function"===typeof n?(e.local?yr:mr)(e,r,hr(this,"attr."+t,n)):null==n?(e.local?dr:pr)(e):(e.local?gr:vr)(e,r,n))};function wr(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function xr(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function br(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&xr(t,i)),e}return i._value=n,i}function kr(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&wr(t,i)),e}return i._value=n,i}var Mr=function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!==typeof n)throw new Error;var r=J(t);return this.tween(e,(r.local?br:kr)(r,n))};function Cr(t,n){return function(){ze(this,t).delay=+n.apply(this,arguments)}}function Nr(t,n){return n=+n,function(){ze(this,t).delay=n}}var Tr=function(t){var n=this._id;return arguments.length?this.each(("function"===typeof t?Cr:Nr)(n,t)):Xe(this.node(),n).delay};function Ar(t,n){return function(){$e(this,t).duration=+n.apply(this,arguments)}}function Sr(t,n){return n=+n,function(){$e(this,t).duration=n}}var Ur=function(t){var n=this._id;return arguments.length?this.each(("function"===typeof t?Ar:Sr)(n,t)):Xe(this.node(),n).duration};function Dr(t,n){if("function"!==typeof n)throw new Error;return function(){$e(this,t).ease=n}}var Rr=function(t){var n=this._id;return arguments.length?this.each(Dr(n,t)):Xe(this.node(),n).ease},Lr=function(t){"function"!==typeof t&&(t=N(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var a,o=n[i],u=o.length,s=r[i]=[],l=0;l<u;++l)(a=o[l])&&t.call(a,a.__data__,l,o)&&s.push(a);return new si(r,this._parents,this._name,this._id)},Er=function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,a=Math.min(r,i),o=new Array(r),u=0;u<a;++u)for(var s,l=n[u],c=e[u],h=l.length,f=o[u]=new Array(h),p=0;p<h;++p)(s=l[p]||c[p])&&(f[p]=s);for(;u<r;++u)o[u]=n[u];return new si(o,this._parents,this._name,this._id)};function Pr(t){return(t+"").trim().split(/^|\s+/).every((function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t}))}function Fr(t,n,e){var r,i,a=Pr(n)?ze:$e;return function(){var o=a(this,t),u=o.on;u!==r&&(i=(r=u).copy()).on(n,e),o.on=i}}var Yr=function(t,n){var e=this._id;return arguments.length<2?Xe(this.node(),e).on.on(t):this.each(Fr(e,t,n))};function jr(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}var Hr=function(){return this.on("end.remove",jr(this._id))},Or=function(t){var n=this._name,e=this._id;"function"!==typeof t&&(t=x(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var u,s,l=r[o],c=l.length,h=a[o]=new Array(c),f=0;f<c;++f)(u=l[f])&&(s=t.call(u,u.__data__,f,l))&&("__data__"in u&&(s.__data__=u.__data__),h[f]=s,Be(h[f],n,e,f,h,Xe(u,e)));return new si(a,this._parents,n,e)},qr=function(t){var n=this._name,e=this._id;"function"!==typeof t&&(t=M(t));for(var r=this._groups,i=r.length,a=[],o=[],u=0;u<i;++u)for(var s,l=r[u],c=l.length,h=0;h<c;++h)if(s=l[h]){for(var f,p=t.call(s,s.__data__,h,l),d=Xe(s,e),v=0,g=p.length;v<g;++v)(f=p[v])&&Be(f,n,e,v,p,d);a.push(p),o.push(s)}return new si(a,o,n,e)},Ir=cn.prototype.constructor,Br=function(){return new Ir(this._groups,this._parents)};function zr(t,n){var e,r,i;return function(){var a=lt(this,t),o=(this.style.removeProperty(t),lt(this,t));return a===o?null:a===e&&o===r?i:i=n(e=a,r=o)}}function $r(t){return function(){this.style.removeProperty(t)}}function Xr(t,n,e){var r,i,a=e+"";return function(){var o=lt(this,t);return o===a?null:o===r?i:i=n(r=o,e)}}function Vr(t,n,e){var r,i,a;return function(){var o=lt(this,t),u=e(this),s=u+"";return null==u&&(this.style.removeProperty(t),s=u=lt(this,t)),o===s?null:o===r&&s===i?a:(i=s,a=n(r=o,u))}}function Zr(t,n){var e,r,i,a,o="style."+n,u="end."+o;return function(){var s=$e(this,t),l=s.on,c=null==s.value[o]?a||(a=$r(n)):void 0;l===e&&i===c||(r=(e=l).copy()).on(u,i=c),s.on=r}}var Wr=function(t,n,e){var r="transform"===(t+="")?or:fr;return null==n?this.styleTween(t,zr(t,r)).on("end.style."+t,$r(t)):"function"===typeof n?this.styleTween(t,Vr(t,r,hr(this,"style."+t,n))).each(Zr(this._id,t)):this.styleTween(t,Xr(t,r,n),e).on("end.style."+t,null)};function Jr(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function Qr(t,n,e){var r,i;function a(){var a=n.apply(this,arguments);return a!==i&&(r=(i=a)&&Jr(t,a,e)),r}return a._value=n,a}var Gr=function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!==typeof n)throw new Error;return this.tween(r,Qr(t,n,null==e?"":e))};function Kr(t){return function(){this.textContent=t}}function ti(t){return function(){var n=t(this);this.textContent=null==n?"":n}}var ni=function(t){return this.tween("text","function"===typeof t?ti(hr(this,"text",t)):Kr(null==t?"":t+""))};function ei(t){return function(n){this.textContent=t.call(this,n)}}function ri(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&ei(r)),n}return r._value=t,r}var ii=function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;return this.tween(n,ri(t))},ai=function(){for(var t=this._name,n=this._id,e=ci(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o,u=r[a],s=u.length,l=0;l<s;++l)if(o=u[l]){var c=Xe(o,n);Be(o,t,e,l,u,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new si(r,this._parents,t,e)},oi=function(){var t,n,e=this,r=e._id,i=e.size();return new Promise((function(a,o){var u={value:o},s={value:function(){0===--i&&a()}};e.each((function(){var e=$e(this,r),i=e.on;i!==t&&(n=(t=i).copy(),n._.cancel.push(u),n._.interrupt.push(u),n._.end.push(s)),e.on=n}))}))},ui=0;function si(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function li(t){return cn().transition(t)}function ci(){return++ui}var hi=cn.prototype;function fi(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}si.prototype=li.prototype={constructor:si,select:Or,selectAll:qr,filter:Lr,merge:Er,selection:Br,transition:ai,call:hi.call,nodes:hi.nodes,node:hi.node,size:hi.size,empty:hi.empty,each:hi.each,on:Yr,attr:_r,attrTween:Mr,style:Wr,styleTween:Gr,text:ni,textTween:ii,remove:Hr,tween:cr,delay:Tr,duration:Ur,ease:Rr,end:oi};var pi={time:null,delay:0,duration:250,ease:fi};function di(t,n){var e;while(!(e=t.__transition)||!(e=e[n]))if(!(t=t.parentNode))return pi.time=Me(),pi;return e}var vi=function(t){var n,e;t instanceof si?(n=t._id,t=t._name):(n=ci(),(e=pi).time=Me(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o,u=r[a],s=u.length,l=0;l<s;++l)(o=u[l])&&Be(o,t,n,l,u,e||di(o,n));return new si(r,this._parents,t,n)};cn.prototype.interrupt=Ke,cn.prototype.transition=vi;function gi(t){return[+t[0],+t[1]]}function mi(t){return[gi(t[0]),gi(t[1])]}["w","e"].map(yi),["n","s"].map(yi),["n","w","e","s","nw","ne","sw","se"].map(yi);function yi(t){return{type:t}}Math.cos,Math.sin,Math.PI,Math.max;Array.prototype.slice;var _i=Math.PI,wi=2*_i,xi=1e-6,bi=wi-xi;function ki(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Mi(){return new ki}ki.prototype=Mi.prototype={constructor:ki,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,a){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var a=this._x1,o=this._y1,u=e-t,s=r-n,l=a-t,c=o-n,h=l*l+c*c;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(h>xi)if(Math.abs(c*u-s*l)>xi&&i){var f=e-a,p=r-o,d=u*u+s*s,v=f*f+p*p,g=Math.sqrt(d),m=Math.sqrt(h),y=i*Math.tan((_i-Math.acos((d+h-v)/(2*g*m)))/2),_=y/m,w=y/g;Math.abs(_-1)>xi&&(this._+="L"+(t+_*l)+","+(n+_*c)),this._+="A"+i+","+i+",0,0,"+ +(c*f>l*p)+","+(this._x1=t+w*u)+","+(this._y1=n+w*s)}else this._+="L"+(this._x1=t)+","+(this._y1=