parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"npog":[function(require,module,exports) {
"use strict";function n(n,r){return n.parent===r.parent?1:2}function r(n){return n.reduce(e,0)/n.length}function e(n,r){return n+r.x}function t(n){return 1+n.reduce(u,0)}function u(n,r){return Math.max(n,r.y)}function c(n){for(var r;r=n.children;)n=r[0];return n}function i(n){for(var r;r=n.children;)n=r[r.length-1];return n}function o(){var e=n,u=1,o=1,f=!1;function a(n){var a,l=0;n.eachAfter(function(n){var u=n.children;u?(n.x=r(u),n.y=t(u)):(n.x=a?l+=e(n,a):0,n.y=0,a=n)});var x=c(n),h=i(n),y=x.x-e(x,h)/2,d=h.x+e(h,x)/2;return n.eachAfter(f?function(r){r.x=(r.x-n.x)*u,r.y=(n.y-r.y)*o}:function(r){r.x=(r.x-y)/(d-y)*u,r.y=(1-(n.y?r.y/n.y:1))*o})}return a.separation=function(n){return arguments.length?(e=n,a):e},a.size=function(n){return arguments.length?(f=!1,u=+n[0],o=+n[1],a):f?null:[u,o]},a.nodeSize=function(n){return arguments.length?(f=!0,u=+n[0],o=+n[1],a):f?[u,o]:null},a}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=o;
},{}],"gwJQ":[function(require,module,exports) {
"use strict";function e(e){var t=0,r=e.children,u=r&&r.length;if(u)for(;--u>=0;)t+=r[u].value;else t=1;e.value=t}function t(){return this.eachAfter(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;
},{}],"ootC":[function(require,module,exports) {
"use strict";function t(t,e){let s=-1;for(const o of this)t.call(e,o,++s,this);return this}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;
},{}],"v8XQ":[function(require,module,exports) {
"use strict";function e(e,t){for(var r,s,i=this,o=[i],l=-1;i=o.pop();)if(e.call(t,i,++l,this),r=i.children)for(s=r.length-1;s>=0;--s)o.push(r[s]);return this}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"P6uJ":[function(require,module,exports) {
"use strict";function e(e,t){for(var r,o,s,p=this,i=[p],u=[],f=-1;p=i.pop();)if(u.push(p),r=p.children)for(o=0,s=r.length;o<s;++o)i.push(r[o]);for(;p=u.pop();)e.call(t,p,++f,this);return this}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"JqXv":[function(require,module,exports) {
"use strict";function e(e,t){let o=-1;for(const r of this)if(e.call(t,r,++o,this))return r}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"gWUA":[function(require,module,exports) {
"use strict";function e(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,u=t.children,a=u&&u.length;--a>=0;)r+=u[a].value;t.value=r})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"j5Cl":[function(require,module,exports) {
"use strict";function e(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"wdBo":[function(require,module,exports) {
"use strict";function r(r){for(var t=this,o=e(t,r),p=[t];t!==o;)t=t.parent,p.push(t);for(var n=p.length;r!==o;)p.splice(n,0,r),r=r.parent;return p}function e(r,e){if(r===e)return r;var t=r.ancestors(),o=e.ancestors(),p=null;for(r=t.pop(),e=o.pop();r===e;)p=r,r=t.pop(),e=o.pop();return p}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=r;
},{}],"b4Rq":[function(require,module,exports) {
"use strict";function e(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"mj9L":[function(require,module,exports) {
"use strict";function e(){return Array.from(this)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"dlF0":[function(require,module,exports) {
"use strict";function e(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"iDpf":[function(require,module,exports) {
"use strict";function e(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"kWY8":[function(require,module,exports) {
"use strict";function*e(){var e,r,t,o,i=this,l=[i];do{for(e=l.reverse(),l=[];i=e.pop();)if(yield i,r=i.children)for(t=0,o=r.length;t<o;++t)l.push(r[t])}while(l.length)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"awbY":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=p,exports.computeHeight=g,exports.Node=m;var e=h(require("./count.js")),t=h(require("./each.js")),r=h(require("./eachBefore.js")),a=h(require("./eachAfter.js")),u=h(require("./find.js")),i=h(require("./sum.js")),n=h(require("./sort.js")),o=h(require("./path.js")),s=h(require("./ancestors.js")),d=h(require("./descendants.js")),f=h(require("./leaves.js")),l=h(require("./links.js")),c=h(require("./iterator.js"));function h(e){return e&&e.__esModule?e:{default:e}}function p(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=v)):void 0===t&&(t=q);for(var r,a,u,i,n,o=new m(e),s=[o];r=s.pop();)if((u=t(r.data))&&(n=(u=Array.from(u)).length))for(r.children=u,i=n-1;i>=0;--i)s.push(a=u[i]=new m(u[i])),a.parent=r,a.depth=r.depth+1;return o.eachBefore(g)}function j(){return p(this).eachBefore(y)}function q(e){return e.children}function v(e){return Array.isArray(e)?e[1]:null}function y(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function g(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function m(e){this.data=e,this.depth=this.height=0,this.parent=null}m.prototype=p.prototype={constructor:m,count:e.default,each:t.default,eachAfter:a.default,eachBefore:r.default,find:u.default,sum:i.default,sort:n.default,path:o.default,ancestors:s.default,descendants:d.default,leaves:f.default,links:l.default,copy:j,[Symbol.iterator]:c.default};
},{"./count.js":"gwJQ","./each.js":"ootC","./eachBefore.js":"v8XQ","./eachAfter.js":"P6uJ","./find.js":"JqXv","./sum.js":"gWUA","./sort.js":"j5Cl","./path.js":"wdBo","./ancestors.js":"b4Rq","./descendants.js":"mj9L","./leaves.js":"dlF0","./links.js":"iDpf","./iterator.js":"kWY8"}],"g97z":[function(require,module,exports) {
"use strict";function e(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function t(e){for(var t,r,o=e.length;o;)r=Math.random()*o--|0,t=e[o],e[o]=e[r],e[r]=t;return e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e,exports.shuffle=t;
},{}],"Ph5L":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;var r=require("../array.js");function t(t){for(var e,f,a=0,i=(t=(0,r.shuffle)(Array.from(t))).length,x=[];a<i;)e=t[a],f&&u(f,e)?++a:(f=o(x=n(x,e)),a=0);return f}function n(r,t){var n,u;if(f(t,r))return[t];for(n=0;n<r.length;++n)if(e(t,r[n])&&f(i(r[n],t),r))return[r[n],t];for(n=0;n<r.length-1;++n)for(u=n+1;u<r.length;++u)if(e(i(r[n],r[u]),t)&&e(i(r[n],t),r[u])&&e(i(r[u],t),r[n])&&f(x(r[n],r[u],t),r))return[r[n],r[u],t];throw new Error}function e(r,t){var n=r.r-t.r,e=t.x-r.x,u=t.y-r.y;return n<0||n*n<e*e+u*u}function u(r,t){var n=r.r-t.r+1e-9*Math.max(r.r,t.r,1),e=t.x-r.x,u=t.y-r.y;return n>0&&n*n>e*e+u*u}function f(r,t){for(var n=0;n<t.length;++n)if(!u(r,t[n]))return!1;return!0}function o(r){switch(r.length){case 1:return a(r[0]);case 2:return i(r[0],r[1]);case 3:return x(r[0],r[1],r[2])}}function a(r){return{x:r.x,y:r.y,r:r.r}}function i(r,t){var n=r.x,e=r.y,u=r.r,f=t.x,o=t.y,a=t.r,i=f-n,x=o-e,y=a-u,c=Math.sqrt(i*i+x*x);return{x:(n+f+i/c*y)/2,y:(e+o+x/c*y)/2,r:(c+u+a)/2}}function x(r,t,n){var e=r.x,u=r.y,f=r.r,o=t.x,a=t.y,i=t.r,x=n.x,y=n.y,c=n.r,s=e-o,h=e-x,l=u-a,v=u-y,g=i-f,M=c-f,d=e*e+u*u-f*f,p=d-o*o-a*a+i*i,q=d-x*x-y*y+c*c,w=h*l-s*v,j=(l*q-v*p)/(2*w)-e,m=(v*g-l*M)/w,_=(h*p-s*q)/(2*w)-u,b=(s*M-h*g)/w,A=m*m+b*b-1,E=2*(f+j*m+_*b),O=j*j+_*_-f*f,P=-(A?(E+Math.sqrt(E*E-4*A*O))/(2*A):O/E);return{x:e+j+m*P,y:u+_+b*P,r:P}}
},{"../array.js":"g97z"}],"tCEz":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.packEnclose=o,exports.default=s;var r=t(require("../array.js")),e=t(require("./enclose.js"));function t(r){return r&&r.__esModule?r:{default:r}}function n(r,e,t){var n,u,x,i,o=r.x-e.x,s=r.y-e.y,f=o*o+s*s;f?(u=e.r+t.r,u*=u,i=r.r+t.r,u>(i*=i)?(n=(f+i-u)/(2*f),x=Math.sqrt(Math.max(0,i/f-n*n)),t.x=r.x-n*o-x*s,t.y=r.y-n*s+x*o):(n=(f+u-i)/(2*f),x=Math.sqrt(Math.max(0,u/f-n*n)),t.x=e.x+n*o-x*s,t.y=e.y+n*s+x*o)):(t.x=e.x+t.r,t.y=e.y)}function u(r,e){var t=r.r+e.r-1e-6,n=e.x-r.x,u=e.y-r.y;return t>0&&t*t>n*n+u*u}function x(r){var e=r._,t=r.next._,n=e.r+t.r,u=(e.x*t.r+t.x*e.r)/n,x=(e.y*t.r+t.y*e.r)/n;return u*u+x*x}function i(r){this._=r,this.next=null,this.previous=null}function o(t){if(!(a=(t=(0,r.default)(t)).length))return 0;var o,s,f,a,_,y,l,p,v,c,h;if((o=t[0]).x=0,o.y=0,!(a>1))return o.r;if(s=t[1],o.x=-s.r,s.x=o.r,s.y=0,!(a>2))return o.r+s.r;n(s,o,f=t[2]),o=new i(o),s=new i(s),f=new i(f),o.next=f.previous=s,s.next=o.previous=f,f.next=s.previous=o;r:for(l=3;l<a;++l){n(o._,s._,f=t[l]),f=new i(f),p=s.next,v=o.previous,c=s._.r,h=o._.r;do{if(c<=h){if(u(p._,f._)){s=p,o.next=s,s.previous=o,--l;continue r}c+=p._.r,p=p.next}else{if(u(v._,f._)){(o=v).next=s,s.previous=o,--l;continue r}h+=v._.r,v=v.previous}}while(p!==v.next);for(f.previous=o,f.next=s,o.next=s.previous=s=f,_=x(o);(f=f.next)!==s;)(y=x(f))<_&&(o=f,_=y);s=o.next}for(o=[s._],f=s;(f=f.next)!==s;)o.push(f._);for(f=(0,e.default)(o),l=0;l<a;++l)(o=t[l]).x-=f.x,o.y-=f.y;return f.r}function s(r){return o(r),r}
},{"../array.js":"g97z","./enclose.js":"Ph5L"}],"ConL":[function(require,module,exports) {
"use strict";function e(e){return null==e?null:r(e)}function r(e){if("function"!=typeof e)throw new Error;return e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.optional=e,exports.required=r;
},{}],"CPwG":[function(require,module,exports) {
"use strict";function e(){return 0}function t(e){return function(){return e}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.constantZero=e,exports.default=t;
},{}],"iLjI":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=f;var e=require("./siblings.js"),r=require("../accessors.js"),t=o(require("../constant.js"));function n(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return n=function(){return e},e}function o(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n();if(r&&r.has(e))return r.get(e);var t={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(Object.prototype.hasOwnProperty.call(e,u)){var f=o?Object.getOwnPropertyDescriptor(e,u):null;f&&(f.get||f.set)?Object.defineProperty(t,u,f):t[u]=e[u]}return t.default=e,r&&r.set(e,t),t}function u(e){return Math.sqrt(e.value)}function f(){var e=null,n=1,o=1,f=t.constantZero;function l(r){return r.x=n/2,r.y=o/2,e?r.eachBefore(i(e)).eachAfter(c(f,.5)).eachBefore(a(1)):r.eachBefore(i(u)).eachAfter(c(t.constantZero,1)).eachAfter(c(f,r.r/Math.min(n,o))).eachBefore(a(Math.min(n,o)/(2*r.r))),r}return l.radius=function(t){return arguments.length?(e=(0,r.optional)(t),l):e},l.size=function(e){return arguments.length?(n=+e[0],o=+e[1],l):[n,o]},l.padding=function(e){return arguments.length?(f="function"==typeof e?e:(0,t.default)(+e),l):f},l}function i(e){return function(r){r.children||(r.r=Math.max(0,+e(r)||0))}}function c(r,t){return function(n){if(o=n.children){var o,u,f,i=o.length,c=r(n)*t||0;if(c)for(u=0;u<i;++u)o[u].r+=c;if(f=(0,e.packEnclose)(o),c)for(u=0;u<i;++u)o[u].r-=c;n.r=f+c}}}function a(e){return function(r){var t=r.parent;r.r*=e,t&&(r.x=t.x+e*r.x,r.y=t.y+e*r.y)}}
},{"./siblings.js":"tCEz","../accessors.js":"ConL","../constant.js":"CPwG"}],"c41W":[function(require,module,exports) {
"use strict";function t(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;
},{}],"lDeM":[function(require,module,exports) {
"use strict";function e(e,t,l,r,u){for(var a,o=e.children,n=-1,s=o.length,v=e.value&&(r-t)/e.value;++n<s;)(a=o[n]).y0=l,a.y1=u,a.x0=t,a.x1=t+=a.value*v}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"aOXa":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=n;var e=t(require("./treemap/round.js")),r=t(require("./treemap/dice.js"));function t(e){return e&&e.__esModule?e:{default:e}}function n(){var t=1,n=1,u=0,i=!1;function o(o){var d=o.height+1;return o.x0=o.y0=u,o.x1=t,o.y1=n/d,o.eachBefore(function(e,t){return function(n){n.children&&(0,r.default)(n,n.x0,e*(n.depth+1)/t,n.x1,e*(n.depth+2)/t);var i=n.x0,o=n.y0,d=n.x1-u,f=n.y1-u;d<i&&(i=d=(i+d)/2),f<o&&(o=f=(o+f)/2),n.x0=i,n.y0=o,n.x1=d,n.y1=f}}(n,d)),i&&o.eachBefore(e.default),o}return o.round=function(e){return arguments.length?(i=!!e,o):i},o.size=function(e){return arguments.length?(t=+e[0],n=+e[1],o):[t,n]},o.padding=function(e){return arguments.length?(u=+e,o):u},o}
},{"./treemap/round.js":"c41W","./treemap/dice.js":"lDeM"}],"l7QX":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=u;var r=require("./accessors.js"),e=require("./hierarchy/index.js"),n={depth:-1},t={};function o(r){return r.id}function i(r){return r.parentId}function u(){var u=o,a=i;function h(r){var o,i,h,c,f,l,d,p=Array.from(r),s=p.length,w=new Map;for(i=0;i<s;++i)o=p[i],f=p[i]=new e.Node(o),null!=(l=u(o,i,r))&&(l+="")&&(d=f.id=l,w.set(d,w.has(d)?t:f)),null!=(l=a(o,i,r))&&(l+="")&&(f.parent=l);for(i=0;i<s;++i)if(l=(f=p[i]).parent){if(!(c=w.get(l)))throw new Error("missing: "+l);if(c===t)throw new Error("ambiguous: "+l);c.children?c.children.push(f):c.children=[f],f.parent=c}else{if(h)throw new Error("multiple roots");h=f}if(!h)throw new Error("no root");if(h.parent=n,h.eachBefore(function(r){r.depth=r.parent.depth+1,--s}).eachBefore(e.computeHeight),h.parent=null,s>0)throw new Error("cycle");return h}return h.id=function(e){return arguments.length?(u=(0,r.required)(e),h):u},h.parentId=function(e){return arguments.length?(a=(0,r.required)(e),h):a},h}
},{"./accessors.js":"ConL","./hierarchy/index.js":"awbY"}],"spqv":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=l;var n=require("./hierarchy/index.js");function e(n,e){return n.parent===e.parent?1:2}function t(n){var e=n.children;return e?e[0]:n.t}function r(n){var e=n.children;return e?e[e.length-1]:n.t}function i(n,e,t){var r=t/(e.i-n.i);e.c-=r,e.s+=t,n.c+=r,e.z+=t,e.m+=t}function u(n){for(var e,t=0,r=0,i=n.children,u=i.length;--u>=0;)(e=i[u]).z+=t,e.m+=t,t+=e.s+(r+=e.c)}function c(n,e,t){return n.a.parent===e.parent?n.a:t}function a(n,e){this._=n,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function h(n){for(var e,t,r,i,u,c=new a(n,0),h=[c];e=h.pop();)if(r=e._.children)for(e.children=new Array(u=r.length),i=u-1;i>=0;--i)h.push(t=e.children[i]=new a(r[i],i)),t.parent=e;return(c.parent=new a(null,0)).children=[c],c}function l(){var n=e,a=1,l=1,o=null;function f(e){var t=h(e);if(t.eachAfter(p),t.parent.m=-t.z,t.eachBefore(s),o)e.eachBefore(d);else{var r=e,i=e,u=e;e.eachBefore(function(n){n.x<r.x&&(r=n),n.x>i.x&&(i=n),n.depth>u.depth&&(u=n)});var c=r===i?1:n(r,i)/2,f=c-r.x,m=a/(i.x+c+f),z=l/(u.depth||1);e.eachBefore(function(n){n.x=(n.x+f)*m,n.y=n.depth*z})}return e}function p(e){var a=e.children,h=e.parent.children,l=e.i?h[e.i-1]:null;if(a){u(e);var o=(a[0].z+a[a.length-1].z)/2;l?(e.z=l.z+n(e._,l._),e.m=e.z-o):e.z=o}else l&&(e.z=l.z+n(e._,l._));e.parent.A=function(e,u,a){if(u){for(var h,l=e,o=e,f=u,p=l.parent.children[0],s=l.m,d=o.m,m=f.m,z=p.m;f=r(f),l=t(l),f&&l;)p=t(p),(o=r(o)).a=e,(h=f.z+m-l.z-s+n(f._,l._))>0&&(i(c(f,e,a),e,h),s+=h,d+=h),m+=f.m,s+=l.m,z+=p.m,d+=o.m;f&&!r(o)&&(o.t=f,o.m+=m-d),l&&!t(p)&&(p.t=l,p.m+=s-z,a=e)}return a}(e,l,e.parent.A||h[0])}function s(n){n._.x=n.z+n.parent.m,n.m+=n.parent.m}function d(n){n.x*=a,n.y=n.depth*l}return f.separation=function(e){return arguments.length?(n=e,f):n},f.size=function(n){return arguments.length?(o=!1,a=+n[0],l=+n[1],f):o?null:[a,l]},f.nodeSize=function(n){return arguments.length?(o=!0,a=+n[0],l=+n[1],f):o?[a,l]:null},f}a.prototype=Object.create(n.Node.prototype);
},{"./hierarchy/index.js":"awbY"}],"HMFn":[function(require,module,exports) {
"use strict";function e(e,t,l,r,u){for(var a,o=e.children,n=-1,s=o.length,v=e.value&&(u-l)/e.value;++n<s;)(a=o[n]).x0=t,a.x1=r,a.y0=l,a.y1=l+=a.value*v}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"jOK3":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.squarifyRatio=a,exports.default=exports.phi=void 0;var e=t(require("./dice.js")),r=t(require("./slice.js"));function t(e){return e&&e.__esModule?e:{default:e}}var u=(1+Math.sqrt(5))/2;function a(t,u,a,i,o,l){for(var n,s,d,f,c,h,p,v,x,M,q,_=[],j=u.children,m=0,b=0,y=j.length,g=u.value;m<y;){d=o-a,f=l-i;do{c=j[b++].value}while(!c&&b<y);for(h=p=c,q=c*c*(M=Math.max(f/d,d/f)/(g*t)),x=Math.max(p/q,q/h);b<y;++b){if(c+=s=j[b].value,s<h&&(h=s),s>p&&(p=s),q=c*c*M,(v=Math.max(p/q,q/h))>x){c-=s;break}x=v}_.push(n={value:c,dice:d<f,children:j.slice(m,b)}),n.dice?(0,e.default)(n,a,i,o,g?i+=f*c/g:l):(0,r.default)(n,a,i,g?a+=d*c/g:o,l),g-=c,m=b}return _}exports.phi=u;var i=function e(r){function t(e,t,u,i,o){a(r,e,t,u,i,o)}return t.ratio=function(r){return e((r=+r)>1?r:1)},t}(u);exports.default=i;
},{"./dice.js":"lDeM","./slice.js":"HMFn"}],"zTYD":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=f;var n=i(require("./round.js")),t=i(require("./squarify.js")),e=require("../accessors.js"),r=o(require("../constant.js"));function u(){if("function"!=typeof WeakMap)return null;var n=new WeakMap;return u=function(){return n},n}function o(n){if(n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var t=u();if(t&&t.has(n))return t.get(n);var e={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){var i=r?Object.getOwnPropertyDescriptor(n,o):null;i&&(i.get||i.set)?Object.defineProperty(e,o,i):e[o]=n[o]}return e.default=n,t&&t.set(n,e),e}function i(n){return n&&n.__esModule?n:{default:n}}function f(){var u=t.default,o=!1,i=1,f=1,d=[0],a=r.constantZero,c=r.constantZero,p=r.constantZero,l=r.constantZero,g=r.constantZero;function s(t){return t.x0=t.y0=0,t.x1=i,t.y1=f,t.eachBefore(y),d=[0],o&&t.eachBefore(n.default),t}function y(n){var t=d[n.depth],e=n.x0+t,r=n.y0+t,o=n.x1-t,i=n.y1-t;o<e&&(e=o=(e+o)/2),i<r&&(r=i=(r+i)/2),n.x0=e,n.y0=r,n.x1=o,n.y1=i,n.children&&(t=d[n.depth+1]=a(n)/2,e+=g(n)-t,r+=c(n)-t,(o-=p(n)-t)<e&&(e=o=(e+o)/2),(i-=l(n)-t)<r&&(r=i=(r+i)/2),u(n,e,r,o,i))}return s.round=function(n){return arguments.length?(o=!!n,s):o},s.size=function(n){return arguments.length?(i=+n[0],f=+n[1],s):[i,f]},s.tile=function(n){return arguments.length?(u=(0,e.required)(n),s):u},s.padding=function(n){return arguments.length?s.paddingInner(n).paddingOuter(n):s.paddingInner()},s.paddingInner=function(n){return arguments.length?(a="function"==typeof n?n:(0,r.default)(+n),s):a},s.paddingOuter=function(n){return arguments.length?s.paddingTop(n).paddingRight(n).paddingBottom(n).paddingLeft(n):s.paddingTop()},s.paddingTop=function(n){return arguments.length?(c="function"==typeof n?n:(0,r.default)(+n),s):c},s.paddingRight=function(n){return arguments.length?(p="function"==typeof n?n:(0,r.default)(+n),s):p},s.paddingBottom=function(n){return arguments.length?(l="function"==typeof n?n:(0,r.default)(+n),s):l},s.paddingLeft=function(n){return arguments.length?(g="function"==typeof n?n:(0,r.default)(+n),s):g},s}
},{"./round.js":"c41W","./squarify.js":"jOK3","../accessors.js":"ConL","../constant.js":"CPwG"}],"B9FY":[function(require,module,exports) {
"use strict";function e(e,r,a,t,v){var n,o,u=e.children,f=u.length,i=new Array(f+1);for(i[0]=o=n=0;n<f;++n)i[n+1]=o+=u[n].value;!function e(r,a,t,v,n,o,f){if(r>=a-1){var l=u[r];return l.x0=v,l.y0=n,l.x1=o,void(l.y1=f)}var s=i[r],c=t/2+s,d=r+1,x=a-1;for(;d<x;){var y=d+x>>>1;i[y]<c?d=y+1:x=y}c-i[d-1]<i[d]-c&&r+1<d&&--d;var p=i[d]-s,h=t-p;if(o-v>f-n){var _=t?(v*h+o*p)/t:o;e(r,d,p,v,n,_,f),e(d,a,h,_,n,o,f)}else{var b=t?(n*h+f*p)/t:f;e(r,d,p,v,n,o,b),e(d,a,h,v,b,o,f)}}(0,f,e.value,r,a,t,v)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"aii9":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=r;var e=u(require("./dice.js")),t=u(require("./slice.js"));function u(e){return e&&e.__esModule?e:{default:e}}function r(u,r,d,s,i){(1&u.depth?t.default:e.default)(u,r,d,s,i)}
},{"./dice.js":"lDeM","./slice.js":"HMFn"}],"F98V":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("./dice.js")),r=t(require("./slice.js")),u=require("./squarify.js");function t(e){return e&&e.__esModule?e:{default:e}}var a=function t(a){function i(t,i,l,f,o){if((s=t._squarify)&&s.ratio===a)for(var s,n,d,v,c,q=-1,_=s.length,p=t.value;++q<_;){for(d=(n=s[q]).children,v=n.value=0,c=d.length;v<c;++v)n.value+=d[v].value;n.dice?(0,e.default)(n,i,l,f,p?l+=(o-l)*n.value/p:o):(0,r.default)(n,i,l,p?i+=(f-i)*n.value/p:f,o),p-=n.value}else t._squarify=s=(0,u.squarifyRatio)(a,t,i,l,f,o),s.ratio=a}return i.ratio=function(e){return t((e=+e)>1?e:1)},i}(u.phi);exports.default=a;
},{"./dice.js":"lDeM","./slice.js":"HMFn","./squarify.js":"jOK3"}],"vZwX":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"cluster",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(exports,"hierarchy",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(exports,"pack",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(exports,"packSiblings",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(exports,"packEnclose",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(exports,"partition",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(exports,"stratify",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(exports,"tree",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(exports,"treemap",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(exports,"treemapBinary",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(exports,"treemapDice",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(exports,"treemapSlice",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(exports,"treemapSliceDice",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(exports,"treemapSquarify",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(exports,"treemapResquarify",{enumerable:!0,get:function(){return b.default}});var e=j(require("./cluster.js")),r=j(require("./hierarchy/index.js")),t=j(require("./pack/index.js")),n=j(require("./pack/siblings.js")),u=j(require("./pack/enclose.js")),i=j(require("./partition.js")),a=j(require("./stratify.js")),f=j(require("./tree.js")),o=j(require("./treemap/index.js")),p=j(require("./treemap/binary.js")),c=j(require("./treemap/dice.js")),s=j(require("./treemap/slice.js")),l=j(require("./treemap/sliceDice.js")),d=j(require("./treemap/squarify.js")),b=j(require("./treemap/resquarify.js"));function j(e){return e&&e.__esModule?e:{default:e}}
},{"./cluster.js":"npog","./hierarchy/index.js":"awbY","./pack/index.js":"iLjI","./pack/siblings.js":"tCEz","./pack/enclose.js":"Ph5L","./partition.js":"aOXa","./stratify.js":"l7QX","./tree.js":"spqv","./treemap/index.js":"zTYD","./treemap/binary.js":"B9FY","./treemap/dice.js":"lDeM","./treemap/slice.js":"HMFn","./treemap/sliceDice.js":"aii9","./treemap/squarify.js":"jOK3","./treemap/resquarify.js":"F98V"}],"TZ6S":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.xhtml=void 0;var t="http://www.w3.org/1999/xhtml";exports.xhtml=t;var w={svg:"http://www.w3.org/2000/svg",xhtml:t,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};exports.default=w;
},{}],"Sva1":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;var e=r(require("./namespaces.js"));function r(e){return e&&e.__esModule?e:{default:e}}function t(r){var t=r+="",s=t.indexOf(":");return s>=0&&"xmlns"!==(t=r.slice(0,s))&&(r=r.slice(s+1)),e.default.hasOwnProperty(t)?{space:e.default[t],local:r}:r}
},{"./namespaces.js":"TZ6S"}],"vTHN":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=a;var e=n(require("./namespace.js")),t=require("./namespaces.js");function n(e){return e&&e.__esModule?e:{default:e}}function r(e){return function(){var n=this.ownerDocument,r=this.namespaceURI;return r===t.xhtml&&n.documentElement.namespaceURI===t.xhtml?n.createElement(e):n.createElementNS(r,e)}}function u(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function a(t){var n=(0,e.default)(t);return(n.local?u:r)(n)}
},{"./namespace.js":"Sva1","./namespaces.js":"TZ6S"}],"hX8m":[function(require,module,exports) {
"use strict";function e(){}function t(t){return null==t?e:function(){return this.querySelector(t)}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;
},{}],"um0S":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=_;var e=require("./index.js"),t=r(require("../selector.js"));function r(e){return e&&e.__esModule?e:{default:e}}function _(r){"function"!=typeof r&&(r=(0,t.default)(r));for(var _=this._groups,a=_.length,n=new Array(a),u=0;u<a;++u)for(var o,s,i=_[u],l=i.length,d=n[u]=new Array(l),f=0;f<l;++f)(o=i[f])&&(s=r.call(o,o.__data__,f,i))&&("__data__"in o&&(s.__data__=o.__data__),d[f]=s);return new e.Selection(n,this._parents)}
},{"./index.js":"Pd8D","../selector.js":"hX8m"}],"LMDO":[function(require,module,exports) {
"use strict";function e(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"sReu":[function(require,module,exports) {
"use strict";function e(){return[]}function t(t){return null==t?e:function(){return this.querySelectorAll(t)}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;
},{}],"EUVe":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=l;var e=require("./index.js"),r=u(require("../array.js")),t=u(require("../selectorAll.js"));function u(e){return e&&e.__esModule?e:{default:e}}function n(e){return function(){var t=e.apply(this,arguments);return null==t?[]:(0,r.default)(t)}}function l(r){r="function"==typeof r?n(r):(0,t.default)(r);for(var u=this._groups,l=u.length,o=[],a=[],s=0;s<l;++s)for(var i,f=u[s],c=f.length,d=0;d<c;++d)(i=f[d])&&(o.push(r.call(i,i.__data__,d,f)),a.push(i));return new e.Selection(o,a)}
},{"./index.js":"Pd8D","../array.js":"LMDO","../selectorAll.js":"sReu"}],"LbZ4":[function(require,module,exports) {
"use strict";function t(t){return function(){return this.matches(t)}}function e(t){return function(e){return e.matches(t)}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t,exports.childMatcher=e;
},{}],"tSik":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=i;var t=require("../matcher.js"),e=Array.prototype.find;function r(t){return function(){return e.call(this.children,t)}}function n(){return this.firstElementChild}function i(e){return this.select(null==e?n:r("function"==typeof e?e:(0,t.childMatcher)(e)))}
},{"../matcher.js":"LbZ4"}],"cPSI":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=i;var e=require("../matcher.js"),t=Array.prototype.filter;function r(){return this.children}function n(e){return function(){return t.call(this.children,e)}}function i(t){return this.selectAll(null==t?r:n("function"==typeof t?t:(0,e.childMatcher)(t)))}
},{"../matcher.js":"LbZ4"}],"hZf9":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=n;var e=require("./index.js"),r=t(require("../matcher.js"));function t(e){return e&&e.__esModule?e:{default:e}}function n(t){"function"!=typeof t&&(t=(0,r.default)(t));for(var n=this._groups,u=n.length,a=new Array(u),o=0;o<u;++o)for(var s,i=n[o],l=i.length,f=a[o]=[],_=0;_<l;++_)(s=i[_])&&t.call(s,s.__data__,_,i)&&f.push(s);return new e.Selection(a,this._parents)}
},{"./index.js":"Pd8D","../matcher.js":"LbZ4"}],"NxKh":[function(require,module,exports) {
"use strict";function e(e){return new Array(e.length)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"BlDg":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=n,exports.EnterNode=s;var e=r(require("./sparse.js")),t=require("./index.js");function r(e){return e&&e.__esModule?e:{default:e}}function n(){return new t.Selection(this._enter||this._groups.map(e.default),this._parents)}function s(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}s.prototype={constructor:s,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};
},{"./sparse.js":"NxKh","./index.js":"Pd8D"}],"QcpV":[function(require,module,exports) {
"use strict";function e(e){return function(){return e}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"U337":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=u;var e=require("./index.js"),r=require("./enter.js"),t=a(require("../array.js")),n=a(require("../constant.js"));function a(e){return e&&e.__esModule?e:{default:e}}function _(e,t,n,a,_,o){for(var l,u=0,f=t.length,i=o.length;u<i;++u)(l=t[u])?(l.__data__=o[u],a[u]=l):n[u]=new r.EnterNode(e,o[u]);for(;u<f;++u)(l=t[u])&&(_[u]=l)}function o(e,t,n,a,_,o,l){var u,f,i,s=new Map,d=t.length,c=o.length,h=new Array(d);for(u=0;u<d;++u)(f=t[u])&&(h[u]=i=l.call(f,f.__data__,u,t)+"",s.has(i)?_[u]=f:s.set(i,f));for(u=0;u<c;++u)i=l.call(e,o[u],u,o)+"",(f=s.get(i))?(a[u]=f,f.__data__=o[u],s.delete(i)):n[u]=new r.EnterNode(e,o[u]);for(u=0;u<d;++u)(f=t[u])&&s.get(h[u])===f&&(_[u]=f)}function l(e){return e.__data__}function u(r,a){if(!arguments.length)return Array.from(this,l);var u=a?o:_,f=this._parents,i=this._groups;"function"!=typeof r&&(r=(0,n.default)(r));for(var s=i.length,d=new Array(s),c=new Array(s),h=new Array(s),g=0;g<s;++g){var w=f[g],y=i[g],v=y.length,A=(0,t.default)(r.call(w,w&&w.__data__,g,f)),p=A.length,j=c[g]=new Array(p),x=d[g]=new Array(p);u(w,y,j,x,h[g]=new Array(v),A,a);for(var q,M,E=0,N=0;E<p;++E)if(q=j[E]){for(E>=N&&(N=E+1);!(M=x[N])&&++N<p;);q._next=M||null}}return(d=new e.Selection(d,f))._enter=c,d._exit=h,d}
},{"./index.js":"Pd8D","./enter.js":"BlDg","../array.js":"LMDO","../constant.js":"QcpV"}],"uwqx":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=s;var e=r(require("./sparse.js")),t=require("./index.js");function r(e){return e&&e.__esModule?e:{default:e}}function s(){return new t.Selection(this._exit||this._groups.map(e.default),this._parents)}
},{"./sparse.js":"NxKh","./index.js":"Pd8D"}],"tBqC":[function(require,module,exports) {
"use strict";function e(e,t,r){var n=this.enter(),o=this,u=this.exit();return n="function"==typeof e?e(n):n.append(e+""),null!=t&&(o=t(o)),null==r?u.remove():r(u),n&&o?n.merge(o).order():o}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"oMRz":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=r;var e=require("./index.js");function r(r){if(!(r instanceof e.Selection))throw new Error("invalid merge");for(var t=this._groups,n=r._groups,o=t.length,i=n.length,s=Math.min(o,i),a=new Array(o),l=0;l<s;++l)for(var u,f=t[l],h=n[l],c=f.length,g=a[l]=new Array(c),p=0;p<c;++p)(u=f[p]||h[p])&&(g[p]=u);for(;l<o;++l)a[l]=t[l];return new e.Selection(a,this._parents)}
},{"./index.js":"Pd8D"}],"DTXT":[function(require,module,exports) {
"use strict";function e(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var o,n=e[t],s=n.length-1,i=n[s];--s>=0;)(o=n[s])&&(i&&4^o.compareDocumentPosition(i)&&i.parentNode.insertBefore(o,i),i=o);return this}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"Eo98":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;var r=require("./index.js");function e(e){function n(r,t){return r&&t?e(r.__data__,t.__data__):!r-!t}e||(e=t);for(var a=this._groups,o=a.length,u=new Array(o),_=0;_<o;++_){for(var s,i=a[_],d=i.length,f=u[_]=new Array(d),c=0;c<d;++c)(s=i[c])&&(f[c]=s);f.sort(n)}return new r.Selection(u,this._parents).order()}function t(r,e){return r<e?-1:r>e?1:r>=e?0:NaN}
},{"./index.js":"Pd8D"}],"del0":[function(require,module,exports) {
"use strict";function e(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"P06B":[function(require,module,exports) {
"use strict";function e(){for(var e=this._groups,r=0,t=e.length;r<t;++r)for(var u=e[r],n=0,o=u.length;n<o;++n){var l=u[n];if(l)return l}return null}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"cLfp":[function(require,module,exports) {
"use strict";function e(){let e=0;for(const t of this)++e;return e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"fLE2":[function(require,module,exports) {
"use strict";function e(){return!this.node()}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"Ex0s":[function(require,module,exports) {
"use strict";function e(e){for(var t=this._groups,r=0,o=t.length;r<o;++r)for(var s,a=t[r],l=0,u=a.length;l<u;++l)(s=a[l])&&e.call(s,s.__data__,l,a);return this}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"kqGm":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=l;var t=e(require("../namespace.js"));function e(t){return t&&t.__esModule?t:{default:t}}function n(t){return function(){this.removeAttribute(t)}}function u(t){return function(){this.removeAttributeNS(t.space,t.local)}}function r(t,e){return function(){this.setAttribute(t,e)}}function i(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function o(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function c(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)}}function l(e,l){var s=(0,t.default)(e);if(arguments.length<2){var a=this.node();return s.local?a.getAttributeNS(s.space,s.local):a.getAttribute(s)}return this.each((null==l?s.local?u:n:"function"==typeof l?s.local?c:o:s.local?i:r)(s,l))}
},{"../namespace.js":"Sva1"}],"a7iO":[function(require,module,exports) {
"use strict";function e(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"PNUm":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=o,exports.styleValue=l;var e=t(require("../window.js"));function t(e){return e&&e.__esModule?e:{default:e}}function r(e){return function(){this.style.removeProperty(e)}}function n(e,t,r){return function(){this.style.setProperty(e,t,r)}}function u(e,t,r){return function(){var n=t.apply(this,arguments);null==n?this.style.removeProperty(e):this.style.setProperty(e,n,r)}}function o(e,t,o){return arguments.length>1?this.each((null==t?r:"function"==typeof t?u:n)(e,t,null==o?"":o)):l(this.node(),e)}function l(t,r){return t.style.getPropertyValue(r)||(0,e.default)(t).getComputedStyle(t,null).getPropertyValue(r)}
},{"../window.js":"a7iO"}],"Qc7K":[function(require,module,exports) {
"use strict";function t(t){return function(){delete this[t]}}function e(t,e){return function(){this[t]=e}}function n(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function u(u,i){return arguments.length>1?this.each((null==i?t:"function"==typeof i?n:e)(u,i)):this.node()[u]}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=u;
},{}],"u8Lo":[function(require,module,exports) {
"use strict";function t(t){return t.trim().split(/^|\s+/)}function n(t){return t.classList||new e(t)}function e(n){this._node=n,this._names=t(n.getAttribute("class")||"")}function i(t,e){for(var i=n(t),s=-1,r=e.length;++s<r;)i.add(e[s])}function s(t,e){for(var i=n(t),s=-1,r=e.length;++s<r;)i.remove(e[s])}function r(t){return function(){i(this,t)}}function o(t){return function(){s(this,t)}}function u(t,n){return function(){(n.apply(this,arguments)?i:s)(this,t)}}function f(e,i){var s=t(e+"");if(arguments.length<2){for(var f=n(this.node()),c=-1,a=s.length;++c<a;)if(!f.contains(s[c]))return!1;return!0}return this.each(("function"==typeof i?u:i?r:o)(s,i))}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=f,e.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};
},{}],"sv0a":[function(require,module,exports) {
"use strict";function t(){this.textContent=""}function n(t){return function(){this.textContent=t}}function e(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function o(o){return arguments.length?this.each(null==o?t:("function"==typeof o?e:n)(o)):this.node().textContent}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=o;
},{}],"IOHV":[function(require,module,exports) {
"use strict";function n(){this.innerHTML=""}function t(n){return function(){this.innerHTML=n}}function e(n){return function(){var t=n.apply(this,arguments);this.innerHTML=null==t?"":t}}function i(i){return arguments.length?this.each(null==i?n:("function"==typeof i?e:t)(i)):this.node().innerHTML}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=i;
},{}],"Bs6a":[function(require,module,exports) {
"use strict";function e(){this.nextSibling&&this.parentNode.appendChild(this)}function t(){return this.each(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;
},{}],"s7fh":[function(require,module,exports) {
"use strict";function e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function t(){return this.each(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;
},{}],"XBOq":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=r;var e=t(require("../creator.js"));function t(e){return e&&e.__esModule?e:{default:e}}function r(t){var r="function"==typeof t?t:(0,e.default)(t);return this.select(function(){return this.appendChild(r.apply(this,arguments))})}
},{"../creator.js":"vTHN"}],"DmTR":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=n;var e=r(require("../creator.js")),t=r(require("../selector.js"));function r(e){return e&&e.__esModule?e:{default:e}}function u(){return null}function n(r,n){var l="function"==typeof r?r:(0,e.default)(r),o=null==n?u:"function"==typeof n?n:(0,t.default)(n);return this.select(function(){return this.insertBefore(l.apply(this,arguments),o.apply(this,arguments)||null)})}
},{"../creator.js":"vTHN","../selector.js":"hX8m"}],"lzg5":[function(require,module,exports) {
"use strict";function e(){var e=this.parentNode;e&&e.removeChild(this)}function t(){return this.each(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;
},{}],"lcuA":[function(require,module,exports) {
"use strict";function e(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function t(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function n(n){return this.select(n?t:e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=n;
},{}],"rHST":[function(require,module,exports) {
"use strict";function e(e){return arguments.length?this.property("__data__",e):this.node().__data__}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"tgqN":[function(require,module,exports) {
"use strict";function e(e){return function(t){e.call(this,t,this.__data__)}}function t(e){return e.trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function n(e){return function(){var t=this.__on;if(t){for(var n,i=0,r=-1,o=t.length;i<o;++i)n=t[i],e.type&&n.type!==e.type||n.name!==e.name?t[++r]=n:this.removeEventListener(n.type,n.listener,n.options);++r?t.length=r:delete this.__on}}}function i(t,n,i){return function(){var r,o=this.__on,s=e(n);if(o)for(var a=0,u=o.length;a<u;++a)if((r=o[a]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=s,r.options=i),void(r.value=n);this.addEventListener(t.type,s,i),r={type:t.type,name:t.name,value:n,listener:s,options:i},o?o.push(r):this.__on=[r]}}function r(e,r,o){var s,a,u=t(e+""),p=u.length;if(!(arguments.length<2)){for(f=r?i:n,s=0;s<p;++s)this.each(f(u[s],r,o));return this}var f=this.node().__on;if(f)for(var l,h=0,v=f.length;h<v;++h)for(s=0,l=f[h];s<p;++s)if((a=u[s]).type===l.type&&a.name===l.name)return l.value}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=r;
},{}],"Sfdu":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=r;var t=e(require("../window.js"));function e(t){return t&&t.__esModule?t:{default:t}}function n(e,n,u){var i=(0,t.default)(e),r=i.CustomEvent;"function"==typeof r?r=new r(n,u):(r=i.document.createEvent("Event"),u?(r.initEvent(n,u.bubbles,u.cancelable),r.detail=u.detail):r.initEvent(n,!1,!1)),e.dispatchEvent(r)}function u(t,e){return function(){return n(this,t,e)}}function i(t,e){return function(){return n(this,t,e.apply(this,arguments))}}function r(t,e){return this.each(("function"==typeof e?i:u)(t,e))}
},{"../window.js":"a7iO"}],"F7Nu":[function(require,module,exports) {
"use strict";function*e(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o,s=e[t],l=0,u=s.length;l<u;++l)(o=s[l])&&(yield o)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"Pd8D":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Selection=F,exports.default=exports.root=void 0;var e=B(require("./select.js")),r=B(require("./selectAll.js")),t=B(require("./selectChild.js")),u=B(require("./selectChildren.js")),l=B(require("./filter.js")),s=B(require("./data.js")),i=B(require("./enter.js")),a=B(require("./exit.js")),d=B(require("./join.js")),o=B(require("./merge.js")),f=B(require("./order.js")),n=B(require("./sort.js")),j=B(require("./call.js")),q=B(require("./nodes.js")),c=B(require("./node.js")),p=B(require("./size.js")),m=B(require("./empty.js")),h=B(require("./each.js")),x=B(require("./attr.js")),y=B(require("./style.js")),v=B(require("./property.js")),_=B(require("./classed.js")),C=B(require("./text.js")),g=B(require("./html.js")),w=B(require("./raise.js")),b=B(require("./lower.js")),z=B(require("./append.js")),A=B(require("./insert.js")),M=B(require("./remove.js")),S=B(require("./clone.js")),E=B(require("./datum.js")),O=B(require("./on.js")),P=B(require("./dispatch.js")),k=B(require("./iterator.js"));function B(e){return e&&e.__esModule?e:{default:e}}var D=[null];function F(e,r){this._groups=e,this._parents=r}function G(){return new F([[document.documentElement]],D)}function H(){return this}exports.root=D,F.prototype=G.prototype={constructor:F,select:e.default,selectAll:r.default,selectChild:t.default,selectChildren:u.default,filter:l.default,data:s.default,enter:i.default,exit:a.default,join:d.default,merge:o.default,selection:H,order:f.default,sort:n.default,call:j.default,nodes:q.default,node:c.default,size:p.default,empty:m.default,each:h.default,attr:x.default,style:y.default,property:v.default,classed:_.default,text:C.default,html:g.default,raise:w.default,lower:b.default,append:z.default,insert:A.default,remove:M.default,clone:S.default,datum:E.default,on:O.default,dispatch:P.default,[Symbol.iterator]:k.default};var I=G;exports.default=I;
},{"./select.js":"um0S","./selectAll.js":"EUVe","./selectChild.js":"tSik","./selectChildren.js":"cPSI","./filter.js":"hZf9","./data.js":"U337","./enter.js":"BlDg","./exit.js":"uwqx","./join.js":"tBqC","./merge.js":"oMRz","./order.js":"DTXT","./sort.js":"Eo98","./call.js":"del0","./nodes.js":"mj9L","./node.js":"P06B","./size.js":"cLfp","./empty.js":"fLE2","./each.js":"Ex0s","./attr.js":"kqGm","./style.js":"PNUm","./property.js":"Qc7K","./classed.js":"u8Lo","./text.js":"sv0a","./html.js":"IOHV","./raise.js":"Bs6a","./lower.js":"s7fh","./append.js":"XBOq","./insert.js":"DmTR","./remove.js":"lzg5","./clone.js":"lcuA","./datum.js":"rHST","./on.js":"tgqN","./dispatch.js":"Sfdu","./iterator.js":"F7Nu"}],"SawF":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;var e=require("./selection/index.js");function t(t){return"string"==typeof t?new e.Selection([[document.querySelector(t)]],[document.documentElement]):new e.Selection([[t]],e.root)}
},{"./selection/index.js":"Pd8D"}],"o4tJ":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=u;var e=r(require("./creator.js")),t=r(require("./select.js"));function r(e){return e&&e.__esModule?e:{default:e}}function u(r){return(0,t.default)((0,e.default)(r).call(document.documentElement))}
},{"./creator.js":"vTHN","./select.js":"SawF"}],"F0np":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;var t=0;function e(){return new r}function r(){this._="@"+(++t).toString(36)}r.prototype=e.prototype={constructor:r,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};
},{}],"fcLX":[function(require,module,exports) {
"use strict";function e(e){let t;for(;t=e.sourceEvent;)e=t;return e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"LxI0":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=r;var e=t(require("./sourceEvent.js"));function t(e){return e&&e.__esModule?e:{default:e}}function r(t,r){if(t=(0,e.default)(t),void 0===r&&(r=t.currentTarget),r){var n=r.ownerSVGElement||r;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=t.clientX,i.y=t.clientY,[(i=i.matrixTransform(r.getScreenCTM().inverse())).x,i.y]}if(r.getBoundingClientRect){var u=r.getBoundingClientRect();return[t.clientX-u.left-r.clientLeft,t.clientY-u.top-r.clientTop]}}return[t.pageX,t.pageY]}
},{"./sourceEvent.js":"fcLX"}],"y35B":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=u;var e=t(require("./pointer.js")),r=t(require("./sourceEvent.js"));function t(e){return e&&e.__esModule?e:{default:e}}function u(t,u){return t.target&&(t=(0,r.default)(t),void 0===u&&(u=t.currentTarget),t=t.touches||[t]),Array.from(t,r=>(0,e.default)(r,u))}
},{"./pointer.js":"LxI0","./sourceEvent.js":"fcLX"}],"n60l":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=n;var e=r(require("./array.js")),t=require("./selection/index.js");function r(e){return e&&e.__esModule?e:{default:e}}function n(r){return"string"==typeof r?new t.Selection([document.querySelectorAll(r)],[document.documentElement]):new t.Selection([null==r?[]:(0,e.default)(r)],t.root)}
},{"./array.js":"LMDO","./selection/index.js":"Pd8D"}],"Gs4P":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"create",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(exports,"creator",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(exports,"local",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(exports,"matcher",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(exports,"namespace",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(exports,"namespaces",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(exports,"pointer",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(exports,"pointers",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(exports,"select",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(exports,"selectAll",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(exports,"selection",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(exports,"selector",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(exports,"selectorAll",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(exports,"style",{enumerable:!0,get:function(){return d.styleValue}}),Object.defineProperty(exports,"window",{enumerable:!0,get:function(){return b.default}});var e=j(require("./create.js")),r=j(require("./creator.js")),t=j(require("./local.js")),n=j(require("./matcher.js")),u=j(require("./namespace.js")),o=j(require("./namespaces.js")),l=j(require("./pointer.js")),i=j(require("./pointers.js")),s=j(require("./select.js")),c=j(require("./selectAll.js")),a=j(require("./selection/index.js")),f=j(require("./selector.js")),p=j(require("./selectorAll.js")),d=require("./selection/style.js"),b=j(require("./window.js"));function j(e){return e&&e.__esModule?e:{default:e}}
},{"./create.js":"o4tJ","./creator.js":"vTHN","./local.js":"F0np","./matcher.js":"LbZ4","./namespace.js":"Sva1","./namespaces.js":"TZ6S","./pointer.js":"LxI0","./pointers.js":"y35B","./select.js":"SawF","./selectAll.js":"n60l","./selection/index.js":"Pd8D","./selector.js":"hX8m","./selectorAll.js":"sReu","./selection/style.js":"PNUm","./window.js":"a7iO"}],"SYAW":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n={value:()=>{}};function r(){for(var n,r=0,t=arguments.length,o={};r<t;++r){if(!(n=arguments[r]+"")||n in o||/[\s.]/.test(n))throw new Error("illegal type: "+n);o[n]=[]}return new e(o)}function e(n){this._=n}function t(n,r){return n.trim().split(/^|\s+/).map(function(n){var e="",t=n.indexOf(".");if(t>=0&&(e=n.slice(t+1),n=n.slice(0,t)),n&&!r.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:e}})}function o(n,r){for(var e,t=0,o=n.length;t<o;++t)if((e=n[t]).name===r)return e.value}function i(r,e,t){for(var o=0,i=r.length;o<i;++o)if(r[o].name===e){r[o]=n,r=r.slice(0,o).concat(r.slice(o+1));break}return null!=t&&r.push({name:e,value:t}),r}e.prototype=r.prototype={constructor:e,on:function(n,r){var e,l=this._,a=t(n+"",l),f=-1,u=a.length;if(!(arguments.length<2)){if(null!=r&&"function"!=typeof r)throw new Error("invalid callback: "+r);for(;++f<u;)if(e=(n=a[f]).type)l[e]=i(l[e],n.name,r);else if(null==r)for(e in l)l[e]=i(l[e],n.name,null);return this}for(;++f<u;)if((e=(n=a[f]).type)&&(e=o(l[e],n.name)))return e},copy:function(){var n={},r=this._;for(var t in r)n[t]=r[t].slice();return new e(n)},call:function(n,r){if((e=arguments.length-2)>0)for(var e,t,o=new Array(e),i=0;i<e;++i)o[i]=arguments[i+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(i=0,e=(t=this._[n]).length;i<e;++i)t[i].value.apply(r,o)},apply:function(n,r,e){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var t=this._[n],o=0,i=t.length;o<i;++o)t[o].value.apply(r,e)}};var l=r;exports.default=l;
},{}],"cNf8":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"dispatch",{enumerable:!0,get:function(){return e.default}});var e=t(require("./dispatch.js"));function t(e){return e&&e.__esModule?e:{default:e}}
},{"./dispatch.js":"SYAW"}],"CQsD":[function(require,module,exports) {
"use strict";function e(e){e.stopImmediatePropagation()}function t(e){e.preventDefault(),e.stopImmediatePropagation()}Object.defineProperty(exports,"__esModule",{value:!0}),exports.nopropagation=e,exports.default=t;
},{}],"JG2T":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=l,exports.yesdrag=r;var e=require("d3-selection"),t=n(require("./noevent.js"));function n(e){return e&&e.__esModule?e:{default:e}}function l(n){var l=n.document.documentElement,r=(0,e.select)(n).on("dragstart.drag",t.default,!0);"onselectstart"in l?r.on("selectstart.drag",t.default,!0):(l.__noselect=l.style.MozUserSelect,l.style.MozUserSelect="none")}function r(n,l){var r=n.document.documentElement,o=(0,e.select)(n).on("dragstart.drag",null);l&&(o.on("click.drag",t.default,!0),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in r?o.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}
},{"d3-selection":"Gs4P","./noevent.js":"CQsD"}],"l0wH":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=e=>()=>e;exports.default=e;
},{}],"QusW":[function(require,module,exports) {
"use strict";function e(e,{sourceEvent:u,subject:a,target:r,identifier:l,active:n,x:t,y:i,dx:b,dy:o,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:u,enumerable:!0,configurable:!0},subject:{value:a,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:l,enumerable:!0,configurable:!0},active:{value:n,enumerable:!0,configurable:!0},x:{value:t,enumerable:!0,configurable:!0},y:{value:i,enumerable:!0,configurable:!0},dx:{value:b,enumerable:!0,configurable:!0},dy:{value:o,enumerable:!0,configurable:!0},_:{value:c}})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e,e.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};
},{}],"U7NX":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=h;var t=require("d3-dispatch"),e=require("d3-selection"),n=c(require("./nodrag.js")),r=c(require("./noevent.js")),o=u(require("./constant.js")),i=u(require("./event.js"));function u(t){return t&&t.__esModule?t:{default:t}}function a(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return a=function(){return t},t}function c(t){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var e=a();if(e&&e.has(t))return e.get(t);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var i=r?Object.getOwnPropertyDescriptor(t,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=t[o]}return n.default=t,e&&e.set(t,n),n}function f(t){return!t.ctrlKey&&!t.button}function l(){return this.parentNode}function s(t,e){return null==e?{x:t.x,y:t.y}:e}function d(){return navigator.maxTouchPoints||"ontouchstart"in this}function h(){var u,a,c,h,p=f,g=l,v=s,y=d,b={},m=(0,t.dispatch)("start","drag","end"),j=0,w=0;function x(t){t.on("mousedown.drag",O).filter(y).on("touchstart.drag",M).on("touchmove.drag",T).on("touchend.drag touchcancel.drag",_).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function O(t,o){if(!h&&p.call(this,t,o)){var i=k(this,g.call(this,t,o),t,o,"mouse");i&&((0,e.select)(t.view).on("mousemove.drag",q,!0).on("mouseup.drag",P,!0),(0,n.default)(t.view),(0,r.nopropagation)(t),c=!1,u=t.clientX,a=t.clientY,i("start",t))}}function q(t){if((0,r.default)(t),!c){var e=t.clientX-u,n=t.clientY-a;c=e*e+n*n>w}b.mouse("drag",t)}function P(t){(0,e.select)(t.view).on("mousemove.drag mouseup.drag",null),(0,n.yesdrag)(t.view,c),(0,r.default)(t),b.mouse("end",t)}function M(t,e){if(p.call(this,t,e)){var n,o,i=t.changedTouches,u=g.call(this,t,e),a=i.length;for(n=0;n<a;++n)(o=k(this,u,t,e,i[n].identifier,i[n]))&&((0,r.nopropagation)(t),o("start",t,i[n]))}}function T(t){var e,n,o=t.changedTouches,i=o.length;for(e=0;e<i;++e)(n=b[o[e].identifier])&&((0,r.default)(t),n("drag",t,o[e]))}function _(t){var e,n,o=t.changedTouches,i=o.length;for(h&&clearTimeout(h),h=setTimeout(function(){h=null},500),e=0;e<i;++e)(n=b[o[e].identifier])&&((0,r.nopropagation)(t),n("end",t,o[e]))}function k(t,n,r,o,u,a){var c,f,l,s=m.copy(),d=(0,e.pointer)(a||r,n);if(null!=(l=v.call(t,new i.default("beforestart",{sourceEvent:r,target:x,identifier:u,active:j,x:d[0],y:d[1],dx:0,dy:0,dispatch:s}),o)))return c=l.x-d[0]||0,f=l.y-d[1]||0,function r(a,h,p){var g,v=d;switch(a){case"start":b[u]=r,g=j++;break;case"end":delete b[u],--j;case"drag":d=(0,e.pointer)(p||h,n),g=j}s.call(a,t,new i.default(a,{sourceEvent:h,subject:l,target:x,identifier:u,active:g,x:d[0]+c,y:d[1]+f,dx:d[0]-v[0],dy:d[1]-v[1],dispatch:s}),o)}}return x.filter=function(t){return arguments.length?(p="function"==typeof t?t:(0,o.default)(!!t),x):p},x.container=function(t){return arguments.length?(g="function"==typeof t?t:(0,o.default)(t),x):g},x.subject=function(t){return arguments.length?(v="function"==typeof t?t:(0,o.default)(t),x):v},x.touchable=function(t){return arguments.length?(y="function"==typeof t?t:(0,o.default)(!!t),x):y},x.on=function(){var t=m.on.apply(m,arguments);return t===m?x:t},x.clickDistance=function(t){return arguments.length?(w=(t=+t)*t,x):Math.sqrt(w)},x}
},{"d3-dispatch":"cNf8","d3-selection":"Gs4P","./nodrag.js":"JG2T","./noevent.js":"CQsD","./constant.js":"l0wH","./event.js":"QusW"}],"aj7N":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"drag",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(exports,"dragDisable",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(exports,"dragEnable",{enumerable:!0,get:function(){return r.yesdrag}});var e=u(require("./drag.js")),r=n(require("./nodrag.js"));function t(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return t=function(){return e},e}function n(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=t();if(r&&r.has(e))return r.get(e);var n={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=u?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function u(e){return e&&e.__esModule?e:{default:e}}
},{"./drag.js":"U7NX","./nodrag.js":"JG2T"}],"I82Z":[function(require,module,exports) {
"use strict";function t(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function e(t,e){var r=Object.create(t.prototype);for(var o in e)r[o]=e[o];return r}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t,exports.extend=e;
},{}],"VvvF":[function(require,module,exports) {

"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Color=n,exports.default=k,exports.rgbConvert=M,exports.rgb=N,exports.Rgb=O,exports.hslConvert=P,exports.hsl=$,exports.brighter=exports.darker=void 0;var e=r(require("./define.js"));function t(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return t=function(){return e},e}function r(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=t();if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function n(){}var i=.7;exports.darker=i;var a=1/i;exports.brighter=a;var o="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",h=/^#([0-9a-f]{3,8})$/,u=new RegExp("^rgb\\("+[o,o,o]+"\\)$"),g=new RegExp("^rgb\\("+[l,l,l]+"\\)$"),c=new RegExp("^rgba\\("+[o,o,o,s]+"\\)$"),d=new RegExp("^rgba\\("+[l,l,l,s]+"\\)$"),p=new RegExp("^hsl\\("+[s,l,l]+"\\)$"),f=new RegExp("^hsla\\("+[s,l,l,s]+"\\)$"),b={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 y(){return this.rgb().formatHex()}function m(){return P(this).formatHsl()}function w(){return this.rgb().formatRgb()}function k(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=h.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?x(t):3===r?new O(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?v(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?v(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=u.exec(e))?new O(t[1],t[2],t[3],1):(t=g.exec(e))?new O(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=c.exec(e))?v(t[1],t[2],t[3],t[4]):(t=d.exec(e))?v(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=p.exec(e))?E(t[1],t[2]/100,t[3]/100,1):(t=f.exec(e))?E(t[1],t[2]/100,t[3]/100,t[4]):b.hasOwnProperty(e)?x(b[e]):"transparent"===e?new O(NaN,NaN,NaN,0):null}function x(e){return new O(e>>16&255,e>>8&255,255&e,1)}function v(e,t,r,n){return n<=0&&(e=t=r=NaN),new O(e,t,r,n)}function M(e){return e instanceof n||(e=k(e)),e?new O((e=e.rgb()).r,e.g,e.b,e.opacity):new O}function N(e,t,r,n){return 1===arguments.length?M(e):new O(e,t,r,null==n?1:n)}function O(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function j(){return"#"+R(this.r)+R(this.g)+R(this.b)}function q(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"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===e?")":", "+e+")")}function R(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function E(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new H(e,t,r,n)}function P(e){if(e instanceof H)return new H(e.h,e.s,e.l,e.opacity);if(e instanceof n||(e=k(e)),!e)return new H;if(e instanceof H)return e;var t=(e=e.rgb()).r/255,r=e.g/255,i=e.b/255,a=Math.min(t,r,i),o=Math.max(t,r,i),s=NaN,l=o-a,h=(o+a)/2;return l?(s=t===o?(r-i)/l+6*(r<i):r===o?(i-t)/l+2:(t-r)/l+4,l/=h<.5?o+a:2-o-a,s*=60):l=h>0&&h<1?0:s,new H(s,l,h,e.opacity)}function $(e,t,r,n){return 1===arguments.length?P(e):new H(e,t,r,null==n?1:n)}function H(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function C(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}(0,e.default)(n,k,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:m,formatRgb:w,toString:w}),(0,e.default)(O,N,(0,e.extend)(n,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new O(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?i:Math.pow(i,e),new O(this.r*e,this.g*e,this.b*e,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:j,formatHex:j,formatRgb:q,toString:q})),(0,e.default)(H,$,(0,e.extend)(n,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new H(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i:Math.pow(i,e),new H(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new O(C(e>=240?e-240:e+120,i,n),C(e,i,n),C(e<120?e+240:e-120,i,n),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 e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));
},{"./define.js":"I82Z"}],"Ip0L":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.degrees=exports.radians=void 0;const e=Math.PI/180;exports.radians=e;const s=180/Math.PI;exports.degrees=s;
},{}],"u9JU":[function(require,module,exports) {

"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.gray=b,exports.default=y,exports.Lab=w,exports.lch=N,exports.hcl=x,exports.Hcl=O;var t=i(require("./define.js")),n=require("./color.js"),e=require("./math.js");function r(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return r=function(){return t},t}function i(t){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=r();if(n&&n.has(t))return n.get(t);var e={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var u=i?Object.getOwnPropertyDescriptor(t,o):null;u&&(u.get||u.set)?Object.defineProperty(e,o,u):e[o]=t[o]}return e.default=t,n&&n.set(t,e),e}const o=18,u=.96422,a=1,c=.82521,s=4/29,l=6/29,h=3*l*l,f=l*l*l;function p(t){if(t instanceof w)return new w(t.l,t.a,t.b,t.opacity);if(t instanceof O)return P(t);t instanceof n.Rgb||(t=(0,n.rgbConvert)(t));var e,r,i=M(t.r),o=M(t.g),s=M(t.b),l=g((.2225045*i+.7168786*o+.0606169*s)/a);return i===o&&o===s?e=r=l:(e=g((.4360747*i+.3850649*o+.1430804*s)/u),r=g((.0139322*i+.0971045*o+.7141733*s)/c)),new w(116*l-16,500*(e-l),200*(l-r),t.opacity)}function b(t,n){return new w(t,0,0,null==n?1:n)}function y(t,n,e,r){return 1===arguments.length?p(t):new w(t,n,e,null==r?1:r)}function w(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function g(t){return t>f?Math.pow(t,1/3):t/h+s}function d(t){return t>l?t*t*t:h*(t-s)}function v(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function M(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function j(t){if(t instanceof O)return new O(t.h,t.c,t.l,t.opacity);if(t instanceof w||(t=p(t)),0===t.a&&0===t.b)return new O(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*e.degrees;return new O(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function N(t,n,e,r){return 1===arguments.length?j(t):new O(e,n,t,null==r?1:r)}function x(t,n,e,r){return 1===arguments.length?j(t):new O(t,n,e,null==r?1:r)}function O(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function P(t){if(isNaN(t.h))return new w(t.l,0,0,t.opacity);var n=t.h*e.radians;return new w(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}(0,t.default)(w,y,(0,t.extend)(n.Color,{brighter:function(t){return new w(this.l+o*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new w(this.l-o*(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,r=isNaN(this.b)?t:t-this.b/200;return e=u*d(e),t=a*d(t),r=c*d(r),new n.Rgb(v(3.1338561*e-1.6168667*t-.4906146*r),v(-.9787684*e+1.9161415*t+.033454*r),v(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),(0,t.default)(O,x,(0,t.extend)(n.Color,{brighter:function(t){return new O(this.h,this.c,this.l+o*(null==t?1:t),this.opacity)},darker:function(t){return new O(this.h,this.c,this.l-o*(null==t?1:t),this.opacity)},rgb:function(){return P(this).rgb()}}));
},{"./define.js":"I82Z","./color.js":"VvvF","./math.js":"Ip0L"}],"jmkd":[function(require,module,exports) {

"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=b,exports.Cubehelix=d;var t=i(require("./define.js")),e=require("./color.js"),r=require("./math.js");function n(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return n=function(){return t},t}function i(t){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var e=n();if(e&&e.has(t))return e.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)){var o=i?Object.getOwnPropertyDescriptor(t,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=t[s]}return r.default=t,e&&e.set(t,r),r}var s=-.14861,o=1.78277,a=-.29227,u=-.90649,h=1.97294,c=h*u,f=h*o,l=o*a-u*s;function p(t){if(t instanceof d)return new d(t.h,t.s,t.l,t.opacity);t instanceof e.Rgb||(t=(0,e.rgbConvert)(t));var n=t.r/255,i=t.g/255,s=t.b/255,o=(l*s+c*n-f*i)/(l+c-f),p=s-o,b=(h*(i-o)-a*p)/u,y=Math.sqrt(b*b+p*p)/(h*o*(1-o)),g=y?Math.atan2(b,p)*r.degrees-120:NaN;return new d(g<0?g+360:g,y,o,t.opacity)}function b(t,e,r,n){return 1===arguments.length?p(t):new d(t,e,r,null==n?1:n)}function d(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}(0,t.default)(d,b,(0,t.extend)(e.Color,{brighter:function(t){return t=null==t?e.brighter:Math.pow(e.brighter,t),new d(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?e.darker:Math.pow(e.darker,t),new d(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*r.radians,n=+this.l,i=isNaN(this.s)?0:this.s*n*(1-n),c=Math.cos(t),f=Math.sin(t);return new e.Rgb(255*(n+i*(s*c+o*f)),255*(n+i*(a*c+u*f)),255*(n+i*(h*c)),this.opacity)}}));
},{"./define.js":"I82Z","./color.js":"VvvF","./math.js":"Ip0L"}],"x3do":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"color",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(exports,"rgb",{enumerable:!0,get:function(){return e.rgb}}),Object.defineProperty(exports,"hsl",{enumerable:!0,get:function(){return e.hsl}}),Object.defineProperty(exports,"lab",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(exports,"hcl",{enumerable:!0,get:function(){return r.hcl}}),Object.defineProperty(exports,"lch",{enumerable:!0,get:function(){return r.lch}}),Object.defineProperty(exports,"gray",{enumerable:!0,get:function(){return r.gray}}),Object.defineProperty(exports,"cubehelix",{enumerable:!0,get:function(){return t.default}});var e=o(require("./color.js")),r=o(require("./lab.js")),t=n(require("./cubehelix.js"));function n(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function o(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u();if(r&&r.has(e))return r.get(e);var t={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var c=n?Object.getOwnPropertyDescriptor(e,o):null;c&&(c.get||c.set)?Object.defineProperty(t,o,c):t[o]=e[o]}return t.default=e,r&&r.set(e,t),t}
},{"./color.js":"VvvF","./lab.js":"u9JU","./cubehelix.js":"jmkd"}],"kM48":[function(require,module,exports) {
"use strict";function e(e,r,t,n,o){var u=e*e,s=u*e;return((1-3*e+3*u-s)*r+(4-6*u+3*s)*t+(1+3*e+3*u-3*s)*n+s*o)/6}function r(r){var t=r.length-1;return function(n){var o=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),u=r[o],s=r[o+1],a=o>0?r[o-1]:2*u-s,f=o<t-1?r[o+2]:2*s-u;return e((n-o/t)*t,a,u,s,f)}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.basis=e,exports.default=r;
},{}],"I8m6":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=r;var e=require("./basis.js");function r(r){var t=r.length;return function(s){var u=Math.floor(((s%=1)<0?++s:s)*t),a=r[(u+t-1)%t],n=r[u%t],o=r[(u+1)%t],i=r[(u+2)%t];return(0,e.basis)((s-u/t)*t,a,n,o,i)}}
},{"./basis.js":"kM48"}],"y6MQ":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.hue=u,exports.gamma=o,exports.default=a;var t=e(require("./constant.js"));function e(t){return t&&t.__esModule?t:{default:t}}function n(t,e){return function(n){return t+n*e}}function r(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)}}function u(e,r){var u=r-e;return u?n(e,u>180||u<-180?u-360*Math.round(u/360):u):(0,t.default)(isNaN(e)?r:e)}function o(e){return 1==(e=+e)?a:function(n,u){return u-n?r(n,u,e):(0,t.default)(isNaN(n)?u:n)}}function a(e,r){var u=r-e;return u?n(e,u):(0,t.default)(isNaN(e)?r:e)}
},{"./constant.js":"l0wH"}],"uEB8":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.rgbBasisClosed=exports.rgbBasis=exports.default=void 0;var r=require("d3-color"),e=a(require("./basis.js")),t=a(require("./basisClosed.js")),n=u(require("./color.js"));function o(){if("function"!=typeof WeakMap)return null;var r=new WeakMap;return o=function(){return r},r}function u(r){if(r&&r.__esModule)return r;if(null===r||"object"!=typeof r&&"function"!=typeof r)return{default:r};var e=o();if(e&&e.has(r))return e.get(r);var t={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in r)if(Object.prototype.hasOwnProperty.call(r,u)){var a=n?Object.getOwnPropertyDescriptor(r,u):null;a&&(a.get||a.set)?Object.defineProperty(t,u,a):t[u]=r[u]}return t.default=r,e&&e.set(r,t),t}function a(r){return r&&r.__esModule?r:{default:r}}var i=function e(t){var o=(0,n.gamma)(t);function u(e,t){var u=o((e=(0,r.rgb)(e)).r,(t=(0,r.rgb)(t)).r),a=o(e.g,t.g),i=o(e.b,t.b),s=(0,n.default)(e.opacity,t.opacity);return function(r){return e.r=u(r),e.g=a(r),e.b=i(r),e.opacity=s(r),e+""}}return u.gamma=e,u}(1);function s(e){return function(t){var n,o,u=t.length,a=new Array(u),i=new Array(u),s=new Array(u);for(n=0;n<u;++n)o=(0,r.rgb)(t[n]),a[n]=o.r||0,i[n]=o.g||0,s[n]=o.b||0;return a=e(a),i=e(i),s=e(s),o.opacity=1,function(r){return o.r=a(r),o.g=i(r),o.b=s(r),o+""}}}exports.default=i;var f=s(e.default);exports.rgbBasis=f;var c=s(t.default);exports.rgbBasisClosed=c;
},{"d3-color":"x3do","./basis.js":"kM48","./basisClosed.js":"I8m6","./color.js":"y6MQ"}],"sB4t":[function(require,module,exports) {
"use strict";function e(e,r){r||(r=[]);var t,n=e?Math.min(r.length,e.length):0,i=r.slice();return function(u){for(t=0;t<n;++t)i[t]=e[t]*(1-u)+r[t]*u;return i}}function r(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e,exports.isNumberArray=r;
},{}],"ZCGf":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=o,exports.genericArray=f;var e=u(require("./value.js")),r=n(require("./numberArray.js"));function t(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return t=function(){return e},e}function n(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=t();if(r&&r.has(e))return r.get(e);var n={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var f=u?Object.getOwnPropertyDescriptor(e,o):null;f&&(f.get||f.set)?Object.defineProperty(n,o,f):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function u(e){return e&&e.__esModule?e:{default:e}}function o(e,t){return((0,r.isNumberArray)(t)?r.default:f)(e,t)}function f(r,t){var n,u=t?t.length:0,o=r?Math.min(u,r.length):0,f=new Array(o),a=new Array(u);for(n=0;n<o;++n)f[n]=(0,e.default)(r[n],t[n]);for(;n<u;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=f[n](e);return a}}
},{"./value.js":"sR72","./numberArray.js":"sB4t"}],"PFUW":[function(require,module,exports) {
"use strict";function e(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"aNyh":[function(require,module,exports) {
"use strict";function e(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"oqfw":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=r;var e=t(require("./value.js"));function t(e){return e&&e.__esModule?e:{default:e}}function r(t,r){var u,n={},o={};for(u in null!==t&&"object"==typeof t||(t={}),null!==r&&"object"==typeof r||(r={}),r)u in t?n[u]=(0,e.default)(t[u],r[u]):o[u]=r[u];return function(e){for(u in n)o[u]=n[u](e);return o}}
},{"./value.js":"sR72"}],"Brer":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=l;var e=n(require("./number.js"));function n(e){return e&&e.__esModule?e:{default:e}}var r=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,t=new RegExp(r.source,"g");function u(e){return function(){return e}}function i(e){return function(n){return e(n)+""}}function l(n,l){var o,c,d,s=r.lastIndex=t.lastIndex=0,f=-1,x=[],a=[];for(n+="",l+="";(o=r.exec(n))&&(c=t.exec(l));)(d=c.index)>s&&(d=l.slice(s,d),x[f]?x[f]+=d:x[++f]=d),(o=o[0])===(c=c[0])?x[f]?x[f]+=c:x[++f]=c:(x[++f]=null,a.push({i:f,x:(0,e.default)(o,c)})),s=t.lastIndex;return s<l.length&&(d=l.slice(s),x[f]?x[f]+=d:x[++f]=d),x.length<2?a[0]?i(a[0].x):u(l):(l=a.length,function(e){for(var n,r=0;r<l;++r)x[(n=a[r]).i]=n.x(e);return x.join("")})}
},{"./number.js":"aNyh"}],"sR72":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=d;var e=require("d3-color"),r=c(require("./rgb.js")),t=require("./array.js"),u=c(require("./date.js")),n=c(require("./number.js")),o=c(require("./object.js")),a=c(require("./string.js")),f=c(require("./constant.js")),i=s(require("./numberArray.js"));function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l();if(r&&r.has(e))return r.get(e);var t={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=u?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,r&&r.set(e,t),t}function c(e){return e&&e.__esModule?e:{default:e}}function d(l,s){var c,d=typeof s;return null==s||"boolean"===d?(0,f.default)(s):("number"===d?n.default:"string"===d?(c=(0,e.color)(s))?(s=c,r.default):a.default:s instanceof e.color?r.default:s instanceof Date?u.default:(0,i.isNumberArray)(s)?i.default:Array.isArray(s)?t.genericArray:"function"!=typeof s.valueOf&&"function"!=typeof s.toString||isNaN(s)?o.default:n.default)(l,s)}
},{"d3-color":"x3do","./rgb.js":"uEB8","./array.js":"ZCGf","./date.js":"PFUW","./number.js":"aNyh","./object.js":"oqfw","./string.js":"Brer","./constant.js":"l0wH","./numberArray.js":"sB4t"}],"Erca":[function(require,module,exports) {
"use strict";function t(t){var e=t.length;return function(r){return t[Math.max(0,Math.min(e-1,Math.floor(r*e)))]}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;
},{}],"YmNE":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=r;var e=require("./color.js");function r(r,t){var o=(0,e.hue)(+r,+t);return function(e){var r=o(e);return r-360*Math.floor(r/360)}}
},{"./color.js":"y6MQ"}],"OHSM":[function(require,module,exports) {
"use strict";function e(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"k89d":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=a,exports.identity=void 0;var t=180/Math.PI,e={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function a(e,a,r,s,n,l){var o,i,c;return(o=Math.sqrt(e*e+a*a))&&(e/=o,a/=o),(c=e*r+a*s)&&(r-=e*c,s-=a*c),(i=Math.sqrt(r*r+s*s))&&(r/=i,s/=i,c/=i),e*s<a*r&&(e=-e,a=-a,c=-c,o=-o),{translateX:n,translateY:l,rotate:Math.atan2(a,e)*t,skewX:Math.atan(c)*t,scaleX:o,scaleY:i}}exports.identity=e;
},{}],"fUUu":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.parseCss=o,exports.parseSvg=i;var e,t=n(require("./decompose.js"));function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}function n(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function o(e){const r=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return r.isIdentity?t.identity:(0,t.default)(r.a,r.b,r.c,r.d,r.e,r.f)}function i(r){return null==r?t.identity:(e||(e=document.createElementNS("http://www.w3.org/2000/svg","g")),e.setAttribute("transform",r),(r=e.transform.baseVal.consolidate())?(r=r.matrix,(0,t.default)(r.a,r.b,r.c,r.d,r.e,r.f)):t.identity)}
},{"./decompose.js":"k89d"}],"tkkQ":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.interpolateTransformSvg=exports.interpolateTransformCss=void 0;var e=r(require("../number.js")),t=require("./parse.js");function r(e){return e&&e.__esModule?e:{default:e}}function s(t,r,s,n){function a(e){return e.length?e.pop()+" ":""}return function(u,l){var o=[],p=[];return u=t(u),l=t(l),function(t,n,a,u,l,o){if(t!==a||n!==u){var p=l.push("translate(",null,r,null,s);o.push({i:p-4,x:(0,e.default)(t,a)},{i:p-2,x:(0,e.default)(n,u)})}else(a||u)&&l.push("translate("+a+r+u+s)}(u.translateX,u.translateY,l.translateX,l.translateY,o,p),function(t,r,s,u){t!==r?(t-r>180?r+=360:r-t>180&&(t+=360),u.push({i:s.push(a(s)+"rotate(",null,n)-2,x:(0,e.default)(t,r)})):r&&s.push(a(s)+"rotate("+r+n)}(u.rotate,l.rotate,o,p),function(t,r,s,u){t!==r?u.push({i:s.push(a(s)+"skewX(",null,n)-2,x:(0,e.default)(t,r)}):r&&s.push(a(s)+"skewX("+r+n)}(u.skewX,l.skewX,o,p),function(t,r,s,n,u,l){if(t!==s||r!==n){var o=u.push(a(u)+"scale(",null,",",null,")");l.push({i:o-4,x:(0,e.default)(t,s)},{i:o-2,x:(0,e.default)(r,n)})}else 1===s&&1===n||u.push(a(u)+"scale("+s+","+n+")")}(u.scaleX,u.scaleY,l.scaleX,l.scaleY,o,p),u=l=null,function(e){for(var t,r=-1,s=p.length;++r<s;)o[(t=p[r]).i]=t.x(e);return o.join("")}}}var n=s(t.parseCss,"px, ","px)","deg)");exports.interpolateTransformCss=n;var a=s(t.parseSvg,", ",")",")");exports.interpolateTransformSvg=a;
},{"../number.js":"aNyh","./parse.js":"fUUu"}],"dKmK":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=1e-12;function r(t){return((t=Math.exp(t))+1/t)/2}function e(t){return((t=Math.exp(t))-1/t)/2}function n(t){return((t=Math.exp(2*t))-1)/(t+1)}var a=function a(u,o,h){function M(a,M){var i,f,c=a[0],s=a[1],l=a[2],p=M[0],v=M[1],x=M[2],d=p-c,g=v-s,q=d*d+g*g;if(q<t)f=Math.log(x/l)/u,i=function(t){return[c+t*d,s+t*g,l*Math.exp(u*t*f)]};else{var Q=Math.sqrt(q),R=(x*x-l*l+h*q)/(2*l*o*Q),S=(x*x-l*l-h*q)/(2*x*o*Q),T=Math.log(Math.sqrt(R*R+1)-R),_=Math.log(Math.sqrt(S*S+1)-S);f=(_-T)/u,i=function(t){var a=t*f,h=r(T),M=l/(o*Q)*(h*n(u*a+T)-e(T));return[c+M*d,s+M*g,l*h/r(u*a+T)]}}return i.duration=1e3*f*u/Math.SQRT2,i}return M.rho=function(t){var r=Math.max(.001,+t),e=r*r;return a(r,e,e*e)},M}(Math.SQRT2,2,4);exports.default=a;
},{}],"RzWG":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.hslLong=exports.default=void 0;var e=require("d3-color"),t=o(require("./color.js"));function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}function o(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(Object.prototype.hasOwnProperty.call(e,u)){var a=n?Object.getOwnPropertyDescriptor(e,u):null;a&&(a.get||a.set)?Object.defineProperty(o,u,a):o[u]=e[u]}return o.default=e,t&&t.set(e,o),o}function n(r){return function(o,n){var u=r((o=(0,e.hsl)(o)).h,(n=(0,e.hsl)(n)).h),a=(0,t.default)(o.s,n.s),f=(0,t.default)(o.l,n.l),l=(0,t.default)(o.opacity,n.opacity);return function(e){return o.h=u(e),o.s=a(e),o.l=f(e),o.opacity=l(e),o+""}}}var u=n(t.hue);exports.default=u;var a=n(t.default);exports.hslLong=a;
},{"d3-color":"x3do","./color.js":"y6MQ"}],"lMlk":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=u;var e=require("d3-color"),t=r(require("./color.js"));function r(e){return e&&e.__esModule?e:{default:e}}function u(r,u){var a=(0,t.default)((r=(0,e.lab)(r)).l,(u=(0,e.lab)(u)).l),l=(0,t.default)(r.a,u.a),o=(0,t.default)(r.b,u.b),c=(0,t.default)(r.opacity,u.opacity);return function(e){return r.l=a(e),r.a=l(e),r.b=o(e),r.opacity=c(e),r+""}}
},{"d3-color":"x3do","./color.js":"y6MQ"}],"csIY":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.hclLong=exports.default=void 0;var e=require("d3-color"),t=o(require("./color.js"));function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}function o(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(Object.prototype.hasOwnProperty.call(e,u)){var c=n?Object.getOwnPropertyDescriptor(e,u):null;c&&(c.get||c.set)?Object.defineProperty(o,u,c):o[u]=e[u]}return o.default=e,t&&t.set(e,o),o}function n(r){return function(o,n){var u=r((o=(0,e.hcl)(o)).h,(n=(0,e.hcl)(n)).h),c=(0,t.default)(o.c,n.c),a=(0,t.default)(o.l,n.l),f=(0,t.default)(o.opacity,n.opacity);return function(e){return o.h=u(e),o.c=c(e),o.l=a(e),o.opacity=f(e),o+""}}}var u=n(t.hue);exports.default=u;var c=n(t.default);exports.hclLong=c;
},{"d3-color":"x3do","./color.js":"y6MQ"}],"F9uV":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.cubehelixLong=exports.default=void 0;var e=require("d3-color"),t=n(require("./color.js"));function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}function n(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(Object.prototype.hasOwnProperty.call(e,u)){var a=o?Object.getOwnPropertyDescriptor(e,u):null;a&&(a.get||a.set)?Object.defineProperty(n,u,a):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}function o(r){return function n(o){function u(n,u){var a=r((n=(0,e.cubehelix)(n)).h,(u=(0,e.cubehelix)(u)).h),i=(0,t.default)(n.s,u.s),c=(0,t.default)(n.l,u.l),f=(0,t.default)(n.opacity,u.opacity);return function(e){return n.h=a(e),n.s=i(e),n.l=c(Math.pow(e,o)),n.opacity=f(e),n+""}}return o=+o,u.gamma=n,u}(1)}var u=o(t.hue);exports.default=u;var a=o(t.default);exports.cubehelixLong=a;
},{"d3-color":"x3do","./color.js":"y6MQ"}],"wh72":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;var e=r(require("./value.js"));function r(e){return e&&e.__esModule?e:{default:e}}function t(r,t){void 0===t&&(t=r,r=e.default);for(var u=0,a=t.length-1,n=t[0],o=new Array(a<0?0:a);u<a;)o[u]=r(n,n=t[++u]);return function(e){var r=Math.max(0,Math.min(a-1,Math.floor(e*=a)));return o[r](e-r)}}
},{"./value.js":"sR72"}],"Edvl":[function(require,module,exports) {
"use strict";function e(e,r){for(var t=new Array(r),o=0;o<r;++o)t[o]=e(o/(r-1));return t}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"y8gx":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"interpolate",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(exports,"interpolateArray",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(exports,"interpolateBasis",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(exports,"interpolateBasisClosed",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(exports,"interpolateDate",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(exports,"interpolateDiscrete",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(exports,"interpolateHue",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(exports,"interpolateNumber",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(exports,"interpolateNumberArray",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(exports,"interpolateObject",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(exports,"interpolateRound",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(exports,"interpolateString",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(exports,"interpolateTransformCss",{enumerable:!0,get:function(){return c.interpolateTransformCss}}),Object.defineProperty(exports,"interpolateTransformSvg",{enumerable:!0,get:function(){return c.interpolateTransformSvg}}),Object.defineProperty(exports,"interpolateZoom",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(exports,"interpolateRgb",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(exports,"interpolateRgbBasis",{enumerable:!0,get:function(){return d.rgbBasis}}),Object.defineProperty(exports,"interpolateRgbBasisClosed",{enumerable:!0,get:function(){return d.rgbBasisClosed}}),Object.defineProperty(exports,"interpolateHsl",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(exports,"interpolateHslLong",{enumerable:!0,get:function(){return j.hslLong}}),Object.defineProperty(exports,"interpolateLab",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(exports,"interpolateHcl",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(exports,"interpolateHclLong",{enumerable:!0,get:function(){return y.hclLong}}),Object.defineProperty(exports,"interpolateCubehelix",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(exports,"interpolateCubehelixLong",{enumerable:!0,get:function(){return m.cubehelixLong}}),Object.defineProperty(exports,"piecewise",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(exports,"quantize",{enumerable:!0,get:function(){return x.default}});var e=h(require("./value.js")),r=h(require("./array.js")),t=h(require("./basis.js")),n=h(require("./basisClosed.js")),u=h(require("./date.js")),o=h(require("./discrete.js")),i=h(require("./hue.js")),a=h(require("./number.js")),l=h(require("./numberArray.js")),f=h(require("./object.js")),p=h(require("./round.js")),s=h(require("./string.js")),c=require("./transform/index.js"),b=h(require("./zoom.js")),d=q(require("./rgb.js")),j=q(require("./hsl.js")),g=h(require("./lab.js")),y=q(require("./hcl.js")),m=q(require("./cubehelix.js")),O=h(require("./piecewise.js")),x=h(require("./quantize.js"));function P(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return P=function(){return e},e}function q(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=P();if(r&&r.has(e))return r.get(e);var t={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(Object.prototype.hasOwnProperty.call(e,u)){var o=n?Object.getOwnPropertyDescriptor(e,u):null;o&&(o.get||o.set)?Object.defineProperty(t,u,o):t[u]=e[u]}return t.default=e,r&&r.set(e,t),t}function h(e){return e&&e.__esModule?e:{default:e}}
},{"./value.js":"sR72","./array.js":"ZCGf","./basis.js":"kM48","./basisClosed.js":"I8m6","./date.js":"PFUW","./discrete.js":"Erca","./hue.js":"YmNE","./number.js":"aNyh","./numberArray.js":"sB4t","./object.js":"oqfw","./round.js":"OHSM","./string.js":"Brer","./transform/index.js":"tkkQ","./zoom.js":"dKmK","./rgb.js":"uEB8","./hsl.js":"RzWG","./lab.js":"lMlk","./hcl.js":"csIY","./cubehelix.js":"F9uV","./piecewise.js":"wh72","./quantize.js":"Edvl"}],"VMoR":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.now=f,exports.Timer=m,exports.timer=p,exports.timerFlush=w;var t,n,e=0,o=0,i=0,r=1e3,l=0,c=0,s=0,u="object"==typeof performance&&performance.now?performance:Date,a="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function f(){return c||(a(_),c=u.now()+s)}function _(){c=0}function m(){this._call=this._time=this._next=null}function p(t,n,e){var o=new m;return o.restart(t,n,e),o}function w(){f(),++e;for(var n,o=t;o;)(n=c-o._time)>=0&&o._call.call(null,n),o=o._next;--e}function h(){c=(l=u.now())+s,e=o=0;try{w()}finally{e=0,y(),c=0}}function x(){var t=u.now(),n=t-l;n>r&&(s-=n,l=t)}function y(){for(var e,o,i=t,r=1/0;i;)i._call?(r>i._time&&(r=i._time),e=i,i=i._next):(o=i._next,i._next=null,i=e?e._next=o:t=o);n=e,v(r)}function v(t){e||(o&&(o=clearTimeout(o)),t-c>24?(t<1/0&&(o=setTimeout(h,t-u.now()-s)),i&&(i=clearInterval(i))):(i||(l=u.now(),i=setInterval(x,r)),e=1,a(h)))}m.prototype=p.prototype={constructor:m,restart:function(e,o,i){if("function"!=typeof e)throw new TypeError("callback is not a function");i=(null==i?f():+i)+(null==o?0:+o),this._next||n===this||(n?n._next=this:t=this,n=this),this._call=e,this._time=i,v()},stop:function(){this._call&&(this._call=null,this._time=1/0,v())}};
},{}],"ELFE":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=r;var e=require("./timer.js");function r(r,t,s){var u=new e.Timer;return t=null==t?0:+t,u.restart(e=>{u.stop(),r(e+t)},t,s),u}
},{"./timer.js":"VMoR"}],"ngd6":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;var r=require("./timer.js");function t(t,e,s){var n=new r.Timer,a=e;return null==e?(n.restart(t,e,s),n):(n._restart=n.restart,n.restart=function(t,e,s){e=+e,s=null==s?(0,r.now)():+s,n._restart(function r(u){u+=a,n._restart(r,a+=e,s),t(u)},e,s)},n.restart(t,e,s),n)}
},{"./timer.js":"VMoR"}],"yaK5":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"now",{enumerable:!0,get:function(){return e.now}}),Object.defineProperty(exports,"timer",{enumerable:!0,get:function(){return e.timer}}),Object.defineProperty(exports,"timerFlush",{enumerable:!0,get:function(){return e.timerFlush}}),Object.defineProperty(exports,"timeout",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(exports,"interval",{enumerable:!0,get:function(){return r.default}});var e=require("./timer.js"),t=n(require("./timeout.js")),r=n(require("./interval.js"));function n(e){return e&&e.__esModule?e:{default:e}}
},{"./timer.js":"VMoR","./timeout.js":"ELFE","./interval.js":"ngd6"}],"qU2W":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=p,exports.init=_,exports.set=c,exports.get=f,exports.ENDED=exports.ENDING=exports.RUNNING=exports.STARTED=exports.STARTING=exports.SCHEDULED=exports.CREATED=void 0;var t=require("d3-dispatch"),e=require("d3-timer"),r=(0,t.dispatch)("start","end","cancel","interrupt"),a=[],n=0;exports.CREATED=n;var o=1;exports.SCHEDULED=o;var i=2;exports.STARTING=i;var s=3;exports.STARTED=s;var l=4;exports.RUNNING=l;var u=5;exports.ENDING=u;var d=6;function p(t,e,o,i,s,l){var u=t.__transition;if(u){if(o in u)return}else t.__transition={};x(t,o,{name:e,index:i,group:s,on:r,tween:a,time:l.time,delay:l.delay,duration:l.duration,ease:l.ease,timer:null,state:n})}function _(t,e){var r=f(t,e);if(r.state>n)throw new Error("too late; already scheduled");return r}function c(t,e){var r=f(t,e);if(r.state>s)throw new Error("too late; already running");return r}function f(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function x(t,r,a){var n,p=t.__transition;function _(u){var x,m,E,v;if(a.state!==o)return f();for(x in p)if((v=p[x]).name===a.name){if(v.state===s)return(0,e.timeout)(_);v.state===l?(v.state=d,v.timer.stop(),v.on.call("interrupt",t,t.__data__,v.index,v.group),delete p[x]):+x<r&&(v.state=d,v.timer.stop(),v.on.call("cancel",t,t.__data__,v.index,v.group),delete p[x])}if((0,e.timeout)(function(){a.state===s&&(a.state=l,a.timer.restart(c,a.delay,a.time),c(u))}),a.state=i,a.on.call("start",t,t.__data__,a.index,a.group),a.state===i){for(a.state=s,n=new Array(E=a.tween.length),x=0,m=-1;x<E;++x)(v=a.tween[x].value.call(t,t.__data__,a.index,a.group))&&(n[++m]=v);n.length=m+1}}function c(e){for(var r=e<a.duration?a.ease.call(null,e/a.duration):(a.timer.restart(f),a.state=u,1),o=-1,i=n.length;++o<i;)n[o].call(t,r);a.state===u&&(a.on.call("end",t,t.__data__,a.index,a.group),f())}function f(){for(var e in a.state=d,a.timer.stop(),delete p[r],p)return;delete t.__transition}p[r]=a,a.timer=(0,e.timer)(function(t){a.state=o,a.timer.restart(_,a.delay,a.time),a.delay<=t&&_(t-a.delay)},0,a.time)}exports.ENDED=d;
},{"d3-dispatch":"cNf8","d3-timer":"yaK5"}],"shc0":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;var e=require("./transition/schedule.js");function t(t,n){var r,a,i,s=t.__transition,l=!0;if(s){for(i in n=null==n?null:n+"",s)(r=s[i]).name===n?(a=r.state>e.STARTING&&r.state<e.ENDING,r.state=e.ENDED,r.timer.stop(),r.on.call(a?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete s[i]):l=!1;l&&delete t.__transition}}
},{"./transition/schedule.js":"qU2W"}],"mxRJ":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=r;var e=t(require("../interrupt.js"));function t(e){return e&&e.__esModule?e:{default:e}}function r(t){return this.each(function(){(0,e.default)(this,t)})}
},{"../interrupt.js":"shc0"}],"QmaO":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=r,exports.tweenValue=i;var e=require("./schedule.js");function t(t,n){var r,i;return function(){var u=(0,e.set)(this,t),a=u.tween;if(a!==r)for(var f=0,l=(i=r=a).length;f<l;++f)if(i[f].name===n){(i=i.slice()).splice(f,1);break}u.tween=i}}function n(t,n,r){var i,u;if("function"!=typeof r)throw new Error;return function(){var a=(0,e.set)(this,t),f=a.tween;if(f!==i){u=(i=f).slice();for(var l={name:n,value:r},s=0,o=u.length;s<o;++s)if(u[s].name===n){u[s]=l;break}s===o&&u.push(l)}a.tween=u}}function r(r,i){var u=this._id;if(r+="",arguments.length<2){for(var a,f=(0,e.get)(this.node(),u).tween,l=0,s=f.length;l<s;++l)if((a=f[l]).name===r)return a.value;return null}return this.each((null==i?t:n)(u,r,i))}function i(t,n,r){var i=t._id;return t.each(function(){var t=(0,e.set)(this,i);(t.value||(t.value={}))[n]=r.apply(this,arguments)}),function(t){return(0,e.get)(t,i).value[n]}}
},{"./schedule.js":"qU2W"}],"aCI0":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;var e=require("d3-color"),r=require("d3-interpolate");function t(t,o){var n;return("number"==typeof o?r.interpolateNumber:o instanceof e.color?r.interpolateRgb:(n=(0,e.color)(o))?(o=n,r.interpolateRgb):r.interpolateString)(t,o)}
},{"d3-color":"x3do","d3-interpolate":"y8gx"}],"GN5n":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=f;var t=require("d3-interpolate"),e=require("d3-selection"),r=require("./tween.js"),n=u(require("./interpolate.js"));function u(t){return t&&t.__esModule?t:{default:t}}function i(t){return function(){this.removeAttribute(t)}}function l(t){return function(){this.removeAttributeNS(t.space,t.local)}}function o(t,e,r){var n,u,i=r+"";return function(){var l=this.getAttribute(t);return l===i?null:l===n?u:u=e(n=l,r)}}function a(t,e,r){var n,u,i=r+"";return function(){var l=this.getAttributeNS(t.space,t.local);return l===i?null:l===n?u:u=e(n=l,r)}}function c(t,e,r){var n,u,i;return function(){var l,o,a=r(this);if(null!=a)return(l=this.getAttribute(t))===(o=a+"")?null:l===n&&o===u?i:(u=o,i=e(n=l,a));this.removeAttribute(t)}}function s(t,e,r){var n,u,i;return function(){var l,o,a=r(this);if(null!=a)return(l=this.getAttributeNS(t.space,t.local))===(o=a+"")?null:l===n&&o===u?i:(u=o,i=e(n=l,a));this.removeAttributeNS(t.space,t.local)}}function f(u,f){var v=(0,e.namespace)(u),h="transform"===v?t.interpolateTransformSvg:n.default;return this.attrTween(u,"function"==typeof f?(v.local?s:c)(v,h,(0,r.tweenValue)(this,"attr."+u,f)):null==f?(v.local?l:i)(v):(v.local?a:o)(v,h,f))}
},{"d3-interpolate":"y8gx","d3-selection":"Gs4P","./tween.js":"QmaO","./interpolate.js":"aCI0"}],"TDXW":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=i;var t=require("d3-selection");function e(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function n(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function r(t,e){var r,u;function i(){var i=e.apply(this,arguments);return i!==u&&(r=(u=i)&&n(t,i)),r}return i._value=e,i}function u(t,n){var r,u;function i(){var i=n.apply(this,arguments);return i!==u&&(r=(u=i)&&e(t,i)),r}return i._value=n,i}function i(e,n){var i="attr."+e;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==n)return this.tween(i,null);if("function"!=typeof n)throw new Error;var a=(0,t.namespace)(e);return this.tween(i,(a.local?r:u)(a,n))}
},{"d3-selection":"Gs4P"}],"DrgK":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=n;var t=require("./schedule.js");function e(e,i){return function(){(0,t.init)(this,e).delay=+i.apply(this,arguments)}}function i(e,i){return i=+i,function(){(0,t.init)(this,e).delay=i}}function n(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?e:i)(r,n)):(0,t.get)(this.node(),r).delay}
},{"./schedule.js":"qU2W"}],"HiKm":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=i;var t=require("./schedule.js");function e(e,n){return function(){(0,t.set)(this,e).duration=+n.apply(this,arguments)}}function n(e,n){return n=+n,function(){(0,t.set)(this,e).duration=n}}function i(i){var r=this._id;return arguments.length?this.each(("function"==typeof i?e:n)(r,i)):(0,t.get)(this.node(),r).duration}
},{"./schedule.js":"qU2W"}],"Etvp":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=r;var e=require("./schedule.js");function t(t,r){if("function"!=typeof r)throw new Error;return function(){(0,e.set)(this,t).ease=r}}function r(r){var n=this._id;return arguments.length?this.each(t(n,r)):(0,e.get)(this.node(),n).ease}
},{"./schedule.js":"qU2W"}],"LebN":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=r;var e=require("./schedule.js");function t(t,r){return function(){var i=r.apply(this,arguments);if("function"!=typeof i)throw new Error;(0,e.set)(this,t).ease=i}}function r(e){if("function"!=typeof e)throw new Error;return this.each(t(this._id,e))}
},{"./schedule.js":"qU2W"}],"xdA6":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;var e=require("d3-selection"),r=require("./index.js");function t(t){"function"!=typeof t&&(t=(0,e.matcher)(t));for(var n=this._groups,i=n.length,s=new Array(i),a=0;a<i;++a)for(var o,u=n[a],_=u.length,h=s[a]=[],l=0;l<_;++l)(o=u[l])&&t.call(o,o.__data__,l,u)&&h.push(o);return new r.Transition(s,this._parents,this._name,this._id)}
},{"d3-selection":"Gs4P","./index.js":"SG3l"}],"c7HU":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;var r=require("./index.js");function e(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,i=e._groups,n=t.length,s=i.length,o=Math.min(n,s),a=new Array(n),h=0;h<o;++h)for(var u,_=t[h],d=i[h],f=_.length,l=a[h]=new Array(f),p=0;p<f;++p)(u=_[p]||d[p])&&(l[p]=u);for(;h<n;++h)a[h]=t[h];return new r.Transition(a,this._parents,this._name,this._id)}
},{"./index.js":"SG3l"}],"WTPi":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=r;var e=require("./schedule.js");function t(e){return(e+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})}function n(n,r,i){var o,s,u=t(r)?e.init:e.set;return function(){var e=u(this,n),t=e.on;t!==o&&(s=(o=t).copy()).on(r,i),e.on=s}}function r(t,r){var i=this._id;return arguments.length<2?(0,e.get)(this.node(),i).on.on(t):this.each(n(i,t,r))}
},{"./schedule.js":"qU2W"}],"eP7r":[function(require,module,exports) {
"use strict";function e(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function t(){return this.on("end.remove",e(this._id))}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;
},{}],"QqhT":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=o;var e=require("d3-selection"),t=require("./index.js"),r=a(require("./schedule.js"));function n(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return n=function(){return e},e}function a(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=n();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}function o(n){var a=this._name,o=this._id;"function"!=typeof n&&(n=(0,e.selector)(n));for(var i=this._groups,u=i.length,f=new Array(u),s=0;s<u;++s)for(var _,c,l=i[s],p=l.length,d=f[s]=new Array(p),y=0;y<p;++y)(_=l[y])&&(c=n.call(_,_.__data__,y,l))&&("__data__"in _&&(c.__data__=_.__data__),d[y]=c,(0,r.default)(d[y],a,o,y,d,(0,r.get)(_,o)));return new t.Transition(f,this._parents,a,o)}
},{"d3-selection":"Gs4P","./index.js":"SG3l","./schedule.js":"qU2W"}],"Lw89":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=u;var e=require("d3-selection"),t=require("./index.js"),r=o(require("./schedule.js"));function n(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return n=function(){return e},e}function o(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=n();if(t&&t.has(e))return t.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(Object.prototype.hasOwnProperty.call(e,u)){var i=o?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(r,u,i):r[u]=e[u]}return r.default=e,t&&t.set(e,r),r}function u(n){var o=this._name,u=this._id;"function"!=typeof n&&(n=(0,e.selectorAll)(n));for(var i=this._groups,f=i.length,a=[],l=[],s=0;s<f;++s)for(var c,p=i[s],d=p.length,h=0;h<d;++h)if(c=p[h]){for(var v,y=n.call(c,c.__data__,h,p),_=(0,r.get)(c,u),g=0,j=y.length;g<j;++g)(v=y[g])&&(0,r.default)(v,o,u,g,y,_);a.push(y),l.push(c)}return new t.Transition(a,l,o,u)}
},{"d3-selection":"Gs4P","./index.js":"SG3l","./schedule.js":"qU2W"}],"j5MX":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=r;var e=require("d3-selection"),t=e.selection.prototype.constructor;function r(){return new t(this._groups,this._parents)}
},{"d3-selection":"Gs4P"}],"hZy9":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=f;var e=require("d3-interpolate"),t=require("d3-selection"),n=require("./schedule.js"),r=require("./tween.js"),s=u(require("./interpolate.js"));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,n){var r,s,u;return function(){var l=(0,t.style)(this,e),i=(this.style.removeProperty(e),(0,t.style)(this,e));return l===i?null:l===r&&i===s?u:u=n(r=l,s=i)}}function i(e){return function(){this.style.removeProperty(e)}}function o(e,n,r){var s,u,l=r+"";return function(){var i=(0,t.style)(this,e);return i===l?null:i===s?u:u=n(s=i,r)}}function a(e,n,r){var s,u,l;return function(){var i=(0,t.style)(this,e),o=r(this),a=o+"";return null==o&&(this.style.removeProperty(e),a=o=(0,t.style)(this,e)),i===a?null:i===s&&a===u?l:(u=a,l=n(s=i,o))}}function y(e,t){var r,s,u,l,o="style."+t,a="end."+o;return function(){var y=(0,n.set)(this,e),f=y.on,c=null==y.value[o]?l||(l=i(t)):void 0;f===r&&u===c||(s=(r=f).copy()).on(a,u=c),y.on=s}}function f(t,n,u){var f="transform"==(t+="")?e.interpolateTransformCss:s.default;return null==n?this.styleTween(t,l(t,f)).on("end.style."+t,i(t)):"function"==typeof n?this.styleTween(t,a(t,f,(0,r.tweenValue)(this,"style."+t,n))).each(y(this._id,t)):this.styleTween(t,o(t,f,n),u).on("end.style."+t,null)}
},{"d3-interpolate":"y8gx","d3-selection":"Gs4P","./schedule.js":"qU2W","./tween.js":"QmaO","./interpolate.js":"aCI0"}],"YDXV":[function(require,module,exports) {
"use strict";function t(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function e(e,n,r){var u,i;function l(){var l=n.apply(this,arguments);return l!==i&&(u=(i=l)&&t(e,l,r)),u}return l._value=n,l}function n(t,n,r){var u="style."+(t+="");if(arguments.length<2)return(u=this.tween(u))&&u._value;if(null==n)return this.tween(u,null);if("function"!=typeof n)throw new Error;return this.tween(u,e(t,n,null==r?"":r))}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=n;
},{}],"KQl9":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=u;var t=require("./tween.js");function e(t){return function(){this.textContent=t}}function n(t){return function(){var e=t(this);this.textContent=null==e?"":e}}function u(u){return this.tween("text","function"==typeof u?n((0,t.tweenValue)(this,"text",u)):e(null==u?"":u+""))}
},{"./tween.js":"QmaO"}],"p5Wn":[function(require,module,exports) {
"use strict";function t(t){return function(e){this.textContent=t.call(this,e)}}function e(e){var n,r;function u(){var u=e.apply(this,arguments);return u!==r&&(n=(r=u)&&t(u)),n}return u._value=e,u}function n(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,e(t))}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=n;
},{}],"OegH":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=i;var e=require("./index.js"),t=n(require("./schedule.js"));function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}function n(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var u=i?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(n,o,u):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function i(){for(var r=this._name,n=this._id,i=(0,e.newId)(),o=this._groups,u=o.length,a=0;a<u;++a)for(var f,s=o[a],l=s.length,p=0;p<l;++p)if(f=s[p]){var c=(0,t.get)(f,n);(0,t.default)(f,r,i,p,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new e.Transition(o,this._parents,r,i)}
},{"./index.js":"SG3l","./schedule.js":"qU2W"}],"GUR2":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;var e=require("./schedule.js");function t(){var t,u,n=this,r=n._id,s=n.size();return new Promise(function(i,o){var c={value:o},a={value:function(){0==--s&&i()}};n.each(function(){var n=(0,e.set)(this,r),s=n.on;s!==t&&((u=(t=s).copy())._.cancel.push(c),u._.interrupt.push(c),u._.end.push(a)),n.on=u}),0===s&&i()})}
},{"./schedule.js":"qU2W"}],"SG3l":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Transition=v,exports.default=g,exports.newId=b;var e=require("d3-selection"),t=T(require("./attr.js")),r=T(require("./attrTween.js")),s=T(require("./delay.js")),u=T(require("./duration.js")),i=T(require("./ease.js")),a=T(require("./easeVarying.js")),l=T(require("./filter.js")),n=T(require("./merge.js")),o=T(require("./on.js")),d=T(require("./remove.js")),f=T(require("./select.js")),c=T(require("./selectAll.js")),j=T(require("./selection.js")),q=T(require("./style.js")),y=T(require("./styleTween.js")),p=T(require("./text.js")),m=T(require("./textTween.js")),w=T(require("./transition.js")),x=T(require("./tween.js")),_=T(require("./end.js"));function T(e){return e&&e.__esModule?e:{default:e}}var h=0;function v(e,t,r,s){this._groups=e,this._parents=t,this._name=r,this._id=s}function g(t){return(0,e.selection)().transition(t)}function b(){return++h}var z=e.selection.prototype;v.prototype=g.prototype={constructor:v,select:f.default,selectAll:c.default,filter:l.default,merge:n.default,selection:j.default,transition:w.default,call:z.call,nodes:z.nodes,node:z.node,size:z.size,empty:z.empty,each:z.each,on:o.default,attr:t.default,attrTween:r.default,style:q.default,styleTween:y.default,text:p.default,textTween:m.default,remove:d.default,tween:x.default,delay:s.default,duration:u.default,ease:i.default,easeVarying:a.default,end:_.default,[Symbol.iterator]:z[Symbol.iterator]};
},{"d3-selection":"Gs4P","./attr.js":"GN5n","./attrTween.js":"TDXW","./delay.js":"DrgK","./duration.js":"HiKm","./ease.js":"Etvp","./easeVarying.js":"LebN","./filter.js":"xdA6","./merge.js":"c7HU","./on.js":"WTPi","./remove.js":"eP7r","./select.js":"QqhT","./selectAll.js":"Lw89","./selection.js":"j5MX","./style.js":"hZy9","./styleTween.js":"YDXV","./text.js":"KQl9","./textTween.js":"p5Wn","./transition.js":"OegH","./tween.js":"QmaO","./end.js":"GUR2"}],"VNJ7":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.linear=void 0;const e=e=>+e;exports.linear=e;
},{}],"NlV3":[function(require,module,exports) {
"use strict";function t(t){return t*t}function e(t){return t*(2-t)}function u(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}Object.defineProperty(exports,"__esModule",{value:!0}),exports.quadIn=t,exports.quadOut=e,exports.quadInOut=u;
},{}],"ATE0":[function(require,module,exports) {
"use strict";function t(t){return t*t*t}function e(t){return--t*t*t+1}function u(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}Object.defineProperty(exports,"__esModule",{value:!0}),exports.cubicIn=t,exports.cubicOut=e,exports.cubicInOut=u;
},{}],"xJOL":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.polyInOut=exports.polyOut=exports.polyIn=void 0;var t=3,n=function t(n){function o(t){return Math.pow(t,n)}return n=+n,o.exponent=t,o}(t);exports.polyIn=n;var o=function t(n){function o(t){return 1-Math.pow(1-t,n)}return n=+n,o.exponent=t,o}(t);exports.polyOut=o;var e=function t(n){function o(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,o.exponent=t,o}(t);exports.polyInOut=e;
},{}],"aKKp":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.sinIn=e,exports.sinOut=r,exports.sinInOut=s;var t=Math.PI,n=t/2;function e(t){return 1==+t?1:1-Math.cos(t*n)}function r(t){return Math.sin(t*n)}function s(n){return(1-Math.cos(t*n))/2}
},{}],"n70i":[function(require,module,exports) {
"use strict";function e(e){return 1.0009775171065494*(Math.pow(2,-10*e)-.0009765625)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.tpmt=e;
},{}],"GEdw":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.expIn=e,exports.expOut=r,exports.expInOut=n;var t=require("./math.js");function e(e){return(0,t.tpmt)(1-+e)}function r(e){return 1-(0,t.tpmt)(e)}function n(e){return((e*=2)<=1?(0,t.tpmt)(1-e):2-(0,t.tpmt)(e-1))/2}
},{"./math.js":"n70i"}],"erIK":[function(require,module,exports) {
"use strict";function t(t){return 1-Math.sqrt(1-t*t)}function r(t){return Math.sqrt(1- --t*t)}function e(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}Object.defineProperty(exports,"__esModule",{value:!0}),exports.circleIn=t,exports.circleOut=r,exports.circleInOut=e;
},{}],"WtpZ":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.bounceIn=b,exports.bounceOut=f,exports.bounceInOut=x;var e=4/11,t=6/11,n=8/11,r=.75,u=9/11,o=10/11,c=.9375,s=21/22,i=63/64,p=1/e/e;function b(e){return 1-f(1-e)}function f(b){return(b=+b)<e?p*b*b:b<n?p*(b-=t)*b+r:b<o?p*(b-=u)*b+c:p*(b-=s)*b+i}function x(e){return((e*=2)<=1?1-f(1-e):f(e-1)+1)/2}
},{}],"NHFs":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.backInOut=exports.backOut=exports.backIn=void 0;var t=1.70158,r=function t(r){function o(t){return(t=+t)*t*(r*(t-1)+t)}return r=+r,o.overshoot=t,o}(t);exports.backIn=r;var o=function t(r){function o(t){return--t*t*((t+1)*r+t)+1}return r=+r,o.overshoot=t,o}(t);exports.backOut=o;var e=function t(r){function o(t){return((t*=2)<1?t*t*((r+1)*t-r):(t-=2)*t*((r+1)*t+r)+2)/2}return r=+r,o.overshoot=t,o}(t);exports.backInOut=e;
},{}],"ZzFe":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.elasticInOut=exports.elasticOut=exports.elasticIn=void 0;var t=require("./math.js"),n=2*Math.PI,r=1,e=.3,i=function r(e,i){var u=Math.asin(1/(e=Math.max(1,e)))*(i/=n);function a(n){return e*(0,t.tpmt)(- --n)*Math.sin((u-n)/i)}return a.amplitude=function(t){return r(t,i*n)},a.period=function(t){return r(e,t)},a}(r,e);exports.elasticIn=i;var u=function r(e,i){var u=Math.asin(1/(e=Math.max(1,e)))*(i/=n);function a(n){return 1-e*(0,t.tpmt)(n=+n)*Math.sin((n+u)/i)}return a.amplitude=function(t){return r(t,i*n)},a.period=function(t){return r(e,t)},a}(r,e);exports.elasticOut=u;var a=function r(e,i){var u=Math.asin(1/(e=Math.max(1,e)))*(i/=n);function a(n){return((n=2*n-1)<0?e*(0,t.tpmt)(-n)*Math.sin((u-n)/i):2-e*(0,t.tpmt)(n)*Math.sin((u+n)/i))/2}return a.amplitude=function(t){return r(t,i*n)},a.period=function(t){return r(e,t)},a}(r,e);exports.elasticInOut=a;
},{"./math.js":"n70i"}],"NhEX":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"easeLinear",{enumerable:!0,get:function(){return e.linear}}),Object.defineProperty(exports,"easeQuad",{enumerable:!0,get:function(){return t.quadInOut}}),Object.defineProperty(exports,"easeQuadIn",{enumerable:!0,get:function(){return t.quadIn}}),Object.defineProperty(exports,"easeQuadOut",{enumerable:!0,get:function(){return t.quadOut}}),Object.defineProperty(exports,"easeQuadInOut",{enumerable:!0,get:function(){return t.quadInOut}}),Object.defineProperty(exports,"easeCubic",{enumerable:!0,get:function(){return r.cubicInOut}}),Object.defineProperty(exports,"easeCubicIn",{enumerable:!0,get:function(){return r.cubicIn}}),Object.defineProperty(exports,"easeCubicOut",{enumerable:!0,get:function(){return r.cubicOut}}),Object.defineProperty(exports,"easeCubicInOut",{enumerable:!0,get:function(){return r.cubicInOut}}),Object.defineProperty(exports,"easePoly",{enumerable:!0,get:function(){return n.polyInOut}}),Object.defineProperty(exports,"easePolyIn",{enumerable:!0,get:function(){return n.polyIn}}),Object.defineProperty(exports,"easePolyOut",{enumerable:!0,get:function(){return n.polyOut}}),Object.defineProperty(exports,"easePolyInOut",{enumerable:!0,get:function(){return n.polyInOut}}),Object.defineProperty(exports,"easeSin",{enumerable:!0,get:function(){return u.sinInOut}}),Object.defineProperty(exports,"easeSinIn",{enumerable:!0,get:function(){return u.sinIn}}),Object.defineProperty(exports,"easeSinOut",{enumerable:!0,get:function(){return u.sinOut}}),Object.defineProperty(exports,"easeSinInOut",{enumerable:!0,get:function(){return u.sinInOut}}),Object.defineProperty(exports,"easeExp",{enumerable:!0,get:function(){return o.expInOut}}),Object.defineProperty(exports,"easeExpIn",{enumerable:!0,get:function(){return o.expIn}}),Object.defineProperty(exports,"easeExpOut",{enumerable:!0,get:function(){return o.expOut}}),Object.defineProperty(exports,"easeExpInOut",{enumerable:!0,get:function(){return o.expInOut}}),Object.defineProperty(exports,"easeCircle",{enumerable:!0,get:function(){return c.circleInOut}}),Object.defineProperty(exports,"easeCircleIn",{enumerable:!0,get:function(){return c.circleIn}}),Object.defineProperty(exports,"easeCircleOut",{enumerable:!0,get:function(){return c.circleOut}}),Object.defineProperty(exports,"easeCircleInOut",{enumerable:!0,get:function(){return c.circleInOut}}),Object.defineProperty(exports,"easeBounce",{enumerable:!0,get:function(){return i.bounceOut}}),Object.defineProperty(exports,"easeBounceIn",{enumerable:!0,get:function(){return i.bounceIn}}),Object.defineProperty(exports,"easeBounceOut",{enumerable:!0,get:function(){return i.bounceOut}}),Object.defineProperty(exports,"easeBounceInOut",{enumerable:!0,get:function(){return i.bounceInOut}}),Object.defineProperty(exports,"easeBack",{enumerable:!0,get:function(){return a.backInOut}}),Object.defineProperty(exports,"easeBackIn",{enumerable:!0,get:function(){return a.backIn}}),Object.defineProperty(exports,"easeBackOut",{enumerable:!0,get:function(){return a.backOut}}),Object.defineProperty(exports,"easeBackInOut",{enumerable:!0,get:function(){return a.backInOut}}),Object.defineProperty(exports,"easeElastic",{enumerable:!0,get:function(){return s.elasticOut}}),Object.defineProperty(exports,"easeElasticIn",{enumerable:!0,get:function(){return s.elasticIn}}),Object.defineProperty(exports,"easeElasticOut",{enumerable:!0,get:function(){return s.elasticOut}}),Object.defineProperty(exports,"easeElasticInOut",{enumerable:!0,get:function(){return s.elasticInOut}});var e=require("./linear.js"),t=require("./quad.js"),r=require("./cubic.js"),n=require("./poly.js"),u=require("./sin.js"),o=require("./exp.js"),c=require("./circle.js"),i=require("./bounce.js"),a=require("./back.js"),s=require("./elastic.js");
},{"./linear.js":"VNJ7","./quad.js":"NlV3","./cubic.js":"ATE0","./poly.js":"xJOL","./sin.js":"aKKp","./exp.js":"GEdw","./circle.js":"erIK","./bounce.js":"WtpZ","./back.js":"NHFs","./elastic.js":"ZzFe"}],"UofW":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=a;var e=require("../transition/index.js"),r=i(require("../transition/schedule.js")),n=require("d3-ease"),t=require("d3-timer");function i(e){return e&&e.__esModule?e:{default:e}}var o={time:null,delay:0,duration:250,ease:n.easeCubicInOut};function u(e,r){for(var n;!(n=e.__transition)||!(n=n[r]);)if(!(e=e.parentNode))throw new Error(`transition ${r} not found`);return n}function a(n){var i,a;n instanceof e.Transition?(i=n._id,n=n._name):(i=(0,e.newId)(),(a=o).time=(0,t.now)(),n=null==n?null:n+"");for(var s=this._groups,d=s.length,l=0;l<d;++l)for(var f,_=s[l],c=_.length,v=0;v<c;++v)(f=_[v])&&(0,r.default)(f,n,i,v,_,a||u(f,i));return new e.Transition(s,this._parents,n,i)}
},{"../transition/index.js":"SG3l","../transition/schedule.js":"qU2W","d3-ease":"NhEX","d3-timer":"yaK5"}],"qltf":[function(require,module,exports) {
"use strict";var e=require("d3-selection"),t=i(require("./interrupt.js")),r=i(require("./transition.js"));function i(e){return e&&e.__esModule?e:{default:e}}e.selection.prototype.interrupt=t.default,e.selection.prototype.transition=r.default;
},{"d3-selection":"Gs4P","./interrupt.js":"mxRJ","./transition.js":"UofW"}],"xpP9":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;var e=require("./transition/index.js"),n=require("./transition/schedule.js"),r=[null];function t(t,i){var u,s,l=t.__transition;if(l)for(s in i=null==i?null:i+"",l)if((u=l[s]).state>n.SCHEDULED&&u.name===i)return new e.Transition([[t]],r,i,+s);return null}
},{"./transition/index.js":"SG3l","./transition/schedule.js":"qU2W"}],"ErME":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"transition",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(exports,"active",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(exports,"interrupt",{enumerable:!0,get:function(){return r.default}}),require("./selection/index.js");var e=n(require("./transition/index.js")),t=n(require("./active.js")),r=n(require("./interrupt.js"));function n(e){return e&&e.__esModule?e:{default:e}}
},{"./selection/index.js":"qltf","./transition/index.js":"SG3l","./active.js":"xpP9","./interrupt.js":"shc0"}],"JNHq":[function(require,module,exports) {
"use strict";function e(e,{sourceEvent:r,target:t,transform:a,dispatch:u}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:r,enumerable:!0,configurable:!0},target:{value:t,enumerable:!0,configurable:!0},transform:{value:a,enumerable:!0,configurable:!0},_:{value:u}})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"IEEo":[function(require,module,exports) {
"use strict";function t(t,i,n){this.k=t,this.x=i,this.y=n}Object.defineProperty(exports,"__esModule",{value:!0}),exports.Transform=t,exports.default=n,exports.identity=void 0,t.prototype={constructor:t,scale:function(i){return 1===i?this:new t(this.k*i,this.x,this.y)},translate:function(i,n){return 0===i&0===n?this:new t(this.k,this.x+this.k*i,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var i=new t(1,0,0);function n(t){for(;!t.__zoom;)if(!(t=t.parentNode))return i;return t.__zoom}exports.identity=i,n.prototype=t.prototype;
},{}],"LONi":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=_;var t=require("d3-dispatch"),e=require("d3-drag"),n=require("d3-interpolate"),o=require("d3-selection"),i=require("d3-transition"),r=l(require("./constant.js")),u=l(require("./event.js")),h=require("./transform.js"),a=c(require("./noevent.js"));function s(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return s=function(){return t},t}function c(t){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var e=s();if(e&&e.has(t))return e.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var r=o?Object.getOwnPropertyDescriptor(t,i):null;r&&(r.get||r.set)?Object.defineProperty(n,i,r):n[i]=t[i]}return n.default=t,e&&e.set(t,n),n}function l(t){return t&&t.__esModule?t:{default:t}}function f(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function p(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||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]]:[[0,0],[t.clientWidth,t.clientHeight]]}function m(){return this.__zoom||h.identity}function v(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function d(){return navigator.maxTouchPoints||"ontouchstart"in this}function y(t,e,n){var o=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],r=t.invertY(e[0][1])-n[0][1],u=t.invertY(e[1][1])-n[1][1];return t.translate(i>o?(o+i)/2:Math.min(0,o)||Math.max(0,i),u>r?(r+u)/2:Math.min(0,r)||Math.max(0,u))}function _(){var s,c,l,_=f,z=p,g=y,w=v,x=d,M=[0,1/0],b=[[-1/0,-1/0],[1/0,1/0]],T=250,k=n.interpolateZoom,j=(0,t.dispatch)("start","zoom","end"),q=500,E=150,O=0,P=10;function D(t){t.property("__zoom",m).on("wheel.zoom",G).on("mousedown.zoom",S).on("dblclick.zoom",A).filter(x).on("touchstart.zoom",H).on("touchmove.zoom",Z).on("touchend.zoom touchcancel.zoom",C).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function V(t,e){return(e=Math.max(M[0],Math.min(M[1],e)))===t.k?t:new h.Transform(e,t.x,t.y)}function Y(t,e,n){var o=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return o===t.x&&i===t.y?t:new h.Transform(t.k,o,i)}function B(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function X(t,e,n,o){t.on("start.zoom",function(){K(this,arguments).event(o).start()}).on("interrupt.zoom end.zoom",function(){K(this,arguments).event(o).end()}).tween("zoom",function(){var t=arguments,i=K(this,t).event(o),r=z.apply(this,t),u=null==n?B(r):"function"==typeof n?n.apply(this,t):n,a=Math.max(r[1][0]-r[0][0],r[1][1]-r[0][1]),s=this.__zoom,c="function"==typeof e?e.apply(this,t):e,l=k(s.invert(u).concat(a/s.k),c.invert(u).concat(a/c.k));return function(t){if(1===t)t=c;else{var e=l(t),n=a/e[2];t=new h.Transform(n,u[0]-e[0]*n,u[1]-e[1]*n)}i.zoom(null,t)}})}function K(t,e,n){return!n&&t.__zooming||new W(t,e)}function W(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=z.apply(t,e),this.taps=0}function G(t,...e){if(_.apply(this,arguments)){var n=K(this,e).event(t),r=this.__zoom,u=Math.max(M[0],Math.min(M[1],r.k*Math.pow(2,w.apply(this,arguments)))),h=(0,o.pointer)(t);if(n.wheel)n.mouse[0][0]===h[0]&&n.mouse[0][1]===h[1]||(n.mouse[1]=r.invert(n.mouse[0]=h)),clearTimeout(n.wheel);else{if(r.k===u)return;n.mouse=[h,r.invert(h)],(0,i.interrupt)(this),n.start()}(0,a.default)(t),n.wheel=setTimeout(function(){n.wheel=null,n.end()},E),n.zoom("mouse",g(Y(V(r,u),n.mouse[0],n.mouse[1]),n.extent,b))}}function S(t,...n){if(!l&&_.apply(this,arguments)){var r=K(this,n,!0).event(t),u=(0,o.select)(t.view).on("mousemove.zoom",function(t){if((0,a.default)(t),!r.moved){var e=t.clientX-c,n=t.clientY-f;r.moved=e*e+n*n>O}r.event(t).zoom("mouse",g(Y(r.that.__zoom,r.mouse[0]=(0,o.pointer)(t,s),r.mouse[1]),r.extent,b))},!0).on("mouseup.zoom",function(t){u.on("mousemove.zoom mouseup.zoom",null),(0,e.dragEnable)(t.view,r.moved),(0,a.default)(t),r.event(t).end()},!0),h=(0,o.pointer)(t,s),s=t.currentTarget,c=t.clientX,f=t.clientY;(0,e.dragDisable)(t.view),(0,a.nopropagation)(t),r.mouse=[h,this.__zoom.invert(h)],(0,i.interrupt)(this),r.start()}}function A(t,...e){if(_.apply(this,arguments)){var n=this.__zoom,i=(0,o.pointer)(t.changedTouches?t.changedTouches[0]:t,this),r=n.invert(i),u=n.k*(t.shiftKey?.5:2),h=g(Y(V(n,u),i,r),z.apply(this,e),b);(0,a.default)(t),T>0?(0,o.select)(this).transition().duration(T).call(X,h,i,t):(0,o.select)(this).call(D.transform,h,i,t)}}function H(t,...e){if(_.apply(this,arguments)){var n,r,u,h,l=t.touches,f=l.length,p=K(this,e,t.changedTouches.length===f).event(t);for((0,a.nopropagation)(t),r=0;r<f;++r)u=l[r],h=[h=(0,o.pointer)(u,this),this.__zoom.invert(h),u.identifier],p.touch0?p.touch1||p.touch0[2]===h[2]||(p.touch1=h,p.taps=0):(p.touch0=h,n=!0,p.taps=1+!!s);s&&(s=clearTimeout(s)),n&&(p.taps<2&&(c=h[0],s=setTimeout(function(){s=null},q)),(0,i.interrupt)(this),p.start())}}function Z(t,...e){if(this.__zooming){var n,i,r,u,h=K(this,e).event(t),s=t.changedTouches,c=s.length;for((0,a.default)(t),n=0;n<c;++n)i=s[n],r=(0,o.pointer)(i,this),h.touch0&&h.touch0[2]===i.identifier?h.touch0[0]=r:h.touch1&&h.touch1[2]===i.identifier&&(h.touch1[0]=r);if(i=h.that.__zoom,h.touch1){var l=h.touch0[0],f=h.touch0[1],p=h.touch1[0],m=h.touch1[1],v=(v=p[0]-l[0])*v+(v=p[1]-l[1])*v,d=(d=m[0]-f[0])*d+(d=m[1]-f[1])*d;i=V(i,Math.sqrt(v/d)),r=[(l[0]+p[0])/2,(l[1]+p[1])/2],u=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else{if(!h.touch0)return;r=h.touch0[0],u=h.touch0[1]}h.zoom("touch",g(Y(i,r,u),h.extent,b))}}function C(t,...e){if(this.__zooming){var n,i,r=K(this,e).event(t),u=t.changedTouches,h=u.length;for((0,a.nopropagation)(t),l&&clearTimeout(l),l=setTimeout(function(){l=null},q),n=0;n<h;++n)i=u[n],r.touch0&&r.touch0[2]===i.identifier?delete r.touch0:r.touch1&&r.touch1[2]===i.identifier&&delete r.touch1;if(r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0)r.touch0[1]=this.__zoom.invert(r.touch0[0]);else if(r.end(),2===r.taps&&(i=(0,o.pointer)(i,this),Math.hypot(c[0]-i[0],c[1]-i[1])<P)){var s=(0,o.select)(this).on("dblclick.zoom");s&&s.apply(this,arguments)}}}return D.transform=function(t,e,n,o){var i=t.selection?t.selection():t;i.property("__zoom",m),t!==i?X(t,e,n,o):i.interrupt().each(function(){K(this,arguments).event(o).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()})},D.scaleBy=function(t,e,n,o){D.scaleTo(t,function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)},n,o)},D.scaleTo=function(t,e,n,o){D.transform(t,function(){var t=z.apply(this,arguments),o=this.__zoom,i=null==n?B(t):"function"==typeof n?n.apply(this,arguments):n,r=o.invert(i),u="function"==typeof e?e.apply(this,arguments):e;return g(Y(V(o,u),i,r),t,b)},n,o)},D.translateBy=function(t,e,n,o){D.transform(t,function(){return g(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),z.apply(this,arguments),b)},null,o)},D.translateTo=function(t,e,n,o,i){D.transform(t,function(){var t=z.apply(this,arguments),i=this.__zoom,r=null==o?B(t):"function"==typeof o?o.apply(this,arguments):o;return g(h.identity.translate(r[0],r[1]).scale(i.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,b)},o,i)},W.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=(0,o.select)(this.that).datum();j.call(t,this.that,new u.default(t,{sourceEvent:this.sourceEvent,target:D,type:t,transform:this.that.__zoom,dispatch:j}),e)}},D.wheelDelta=function(t){return arguments.length?(w="function"==typeof t?t:(0,r.default)(+t),D):w},D.filter=function(t){return arguments.length?(_="function"==typeof t?t:(0,r.default)(!!t),D):_},D.touchable=function(t){return arguments.length?(x="function"==typeof t?t:(0,r.default)(!!t),D):x},D.extent=function(t){return arguments.length?(z="function"==typeof t?t:(0,r.default)([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),D):z},D.scaleExtent=function(t){return arguments.length?(M[0]=+t[0],M[1]=+t[1],D):[M[0],M[1]]},D.translateExtent=function(t){return arguments.length?(b[0][0]=+t[0][0],b[1][0]=+t[1][0],b[0][1]=+t[0][1],b[1][1]=+t[1][1],D):[[b[0][0],b[0][1]],[b[1][0],b[1][1]]]},D.constrain=function(t){return arguments.length?(g=t,D):g},D.duration=function(t){return arguments.length?(T=+t,D):T},D.interpolate=function(t){return arguments.length?(k=t,D):k},D.on=function(){var t=j.on.apply(j,arguments);return t===j?D:t},D.clickDistance=function(t){return arguments.length?(O=(t=+t)*t,D):Math.sqrt(O)},D.tapDistance=function(t){return arguments.length?(P=+t,D):P},D}
},{"d3-dispatch":"cNf8","d3-drag":"aj7N","d3-interpolate":"y8gx","d3-selection":"Gs4P","d3-transition":"ErME","./constant.js":"l0wH","./event.js":"JNHq","./transform.js":"IEEo","./noevent.js":"CQsD"}],"lNis":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"zoom",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(exports,"zoomTransform",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(exports,"zoomIdentity",{enumerable:!0,get:function(){return t.identity}});var e=o(require("./zoom.js")),t=n(require("./transform.js"));function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}function n(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(Object.prototype.hasOwnProperty.call(e,u)){var f=o?Object.getOwnPropertyDescriptor(e,u):null;f&&(f.get||f.set)?Object.defineProperty(n,u,f):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}function o(e){return e&&e.__esModule?e:{default:e}}
},{"./zoom.js":"LONi","./transform.js":"IEEo"}],"jsJr":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("d3-hierarchy"),r=require("d3-selection"),t=require("d3-zoom");exports.default={hierarchy:e.hierarchy,stratify:e.stratify,tree:e.tree,treemap:e.treemap,select:r.select,selectAll:r.selectAll,zoom:t.zoom};
},{"d3-hierarchy":"vZwX","d3-selection":"Gs4P","d3-zoom":"lNis"}],"FOZT":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RefreshQueue=exports.setNodeLocation=exports.getFirstDisplayedAncestor=exports.getAreaSize=void 0;var e=function(e){var t=document.querySelector("#"+e);if(null===t)throw new Error("Cannot find dom element with id:"+e);var n=t.clientWidth,r=t.clientHeight;if(0===r||0===n)throw new Error("The tree can't be display because the svg height or width of the container is null");return{areaWidth:n,areaHeight:r}};exports.getAreaSize=e;var t=function(e,t,n){try{var r=e.find(function(e){return e.id===n}),i=r.ancestors()[1].id;return t.some(function(e){return e.id===i})?r.ancestors()[1]:exports.getFirstDisplayedAncestor(e,t,i)}catch(u){return e.find(function(e){return e.id===n})}};exports.getFirstDisplayedAncestor=t;var n=function(e,t,n){return n.isHorizontal?"translate("+t+","+e+")":"translate("+e+","+t+")"};exports.setNodeLocation=n;var r=function(){function e(){}return e.add=function(e,t){var n=this;this.queue.push({delayNextCallback:e+this.extraDelayBetweenCallbacks,callback:t}),this.log(this.queue.map(function(e){return e.delayNextCallback}),"<-- New task !!!"),this.runner||(this.runnerFunction(),this.runner=setInterval(function(){return n.runnerFunction()},this.runnerSpeed))},e.runnerFunction=function(){if(this.queue[0]){if(this.queue[0].callback){this.log("Executing task, delaying next task...");try{this.queue[0].callback()}catch(e){console.error(e)}finally{this.queue[0].callback=null}}this.queue[0].delayNextCallback-=this.runnerSpeed,this.log(this.queue.map(function(e){return e.delayNextCallback})),this.queue[0].delayNextCallback<=0&&this.queue.shift()}else this.log("No task found"),clearInterval(this.runner),this.runner=0},e.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.showQueueLog&&console.log.apply(console,e)},e.queue=[],e.runnerSpeed=100,e.extraDelayBetweenCallbacks=100,e.showQueueLog=!1,e}();exports.RefreshQueue=r;
},{}],"yUOh":[function(require,module,exports) {
"use strict";var o=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.initiliazeSVG=void 0;var t=o(require("./d3")),n=require("./utils"),e=function(o){var e=o.htmlId,r=o.isHorizontal,l=o.hasPanAndZoom,i=o.hasPan,u=o.hasZoom,m=o.mainAxisNodeSpacing,s=o.nodeHeight,d=o.nodeWidth,h=o.marginBottom,c=o.marginLeft,z=o.marginRight,f=o.marginTop,g=z,p=h,v=c,_=n.getAreaSize(o.htmlId),S=_.areaHeight,w=_.areaWidth,x=w-v-g,M=S-f-p,A=t.default.select("#"+e).append("svg").attr("width",w).attr("height",S),H=a(l,i,u),P=H[0],b=H[1];P||A.on("mousedown.zoom",null).on("touchstart.zoom",null).on("touchmove.zoom",null).on("touchend.zoom",null),b||A.on("wheel.zoom",null).on("mousewheel.zoom",null).on("mousemove.zoom",null).on("DOMMouseScroll.zoom",null).on("dblclick.zoom",null);var q=A.append("g"),D=t.default.zoom().on("zoom",function(o){q.attr("transform",function(){return o.transform})});return A.call(D),q.append("g").attr("transform","auto"===m?"translate(0,0)":r?"translate("+v+","+(f+M/2-s/2)+")":"translate("+(v+x/2-d/2)+","+f+")")};exports.initiliazeSVG=e;var a=function(o,t,n){var e=[!1,!1];return!0!==o&&!1!==o||(e=[o,o]),!0!==t&&!1!==t||(e[0]=t),!0!==n&&!1!==n||(e[1]=n),e};
},{"./d3":"jsJr","./utils":"FOZT"}],"KBiB":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.generateLinkLayout=void 0;var y=function(y,x,e){var t=e.isHorizontal,r=e.nodeHeight,o=e.nodeWidth,L=e.linkShape;return"orthogonal"===L?t?"M "+y.y+" "+(y.x+r/2)+"\n        L "+(y.y+x.y+o)/2+" "+(y.x+r/2)+"\n        L  "+(y.y+x.y+o)/2+" "+(x.x+r/2)+"\n          "+(x.y+o)+" "+(x.x+r/2):"M "+(y.x+o/2)+" "+y.y+"\n        L "+(y.x+o/2)+" "+(y.y+x.y+r)/2+"\n        L  "+(x.x+o/2)+" "+(y.y+x.y+r)/2+"\n          "+(x.x+o/2)+" "+(x.y+r)+" ":"curve"===L?t?"M "+y.y+" "+(y.x+r/2)+"\n      L "+(y.y-(y.y-x.y-o)/2+15)+" "+(y.x+r/2)+"\n      Q"+(y.y-(y.y-x.y-o)/2)+" "+(y.x+r/2)+"\n       "+(y.y-(y.y-x.y-o)/2)+" "+(y.x+r/2-n(y.x,x.x,15))+"\n      L "+(y.y-(y.y-x.y-o)/2)+" "+(x.x+r/2)+"\n      L "+(x.y+o)+" "+(x.x+r/2):"M "+(y.x+o/2)+" "+y.y+"\n      L "+(y.x+o/2)+" "+(y.y-(y.y-x.y-r)/2+15)+"\n      Q"+(y.x+o/2)+" "+(y.y-(y.y-x.y-r)/2)+"\n      "+(y.x+o/2-n(y.x,x.x,15))+" "+(y.y-(y.y-x.y-r)/2)+"\n      L "+(x.x+o/2)+" "+(y.y-(y.y-x.y-r)/2)+" \n      L "+(x.x+o/2)+" "+(x.y+r)+" ":t?"M "+y.y+" "+(y.x+r/2)+"\n        C "+(y.y+x.y+o)/2+" "+(y.x+r/2)+"\n          "+(y.y+x.y+o)/2+" "+(x.x+r/2)+"\n          "+(x.y+o)+" "+(x.x+r/2):"M "+(y.x+o/2)+" "+y.y+"\n        C "+(y.x+o/2)+" "+(y.y+x.y+r)/2+"\n          "+(x.x+o/2)+" "+(y.y+x.y+r)/2+"\n          "+(x.x+o/2)+" "+(x.y+r)+" "};exports.generateLinkLayout=y;var n=function(y,n,x){return y>n?x:y<n?-x:0};
},{}],"Urlr":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.drawLinkEnter=void 0;var t=require("../utils"),r=require("./draw-links"),e=function(e,n,i,a){return e.enter().insert("path","g").attr("class","link").attr("d",function(e){var o=t.getFirstDisplayedAncestor(i,a,e.id),s={x:o.x0,y:o.y0};return r.generateLinkLayout(s,s,n)}).attr("fill","none").attr("stroke-width",function(t){var r=t.data;return n.linkWidth(r)}).attr("stroke",function(t){var r=t.data;return n.linkColor(r)})};exports.drawLinkEnter=e;
},{"../utils":"FOZT","./draw-links":"KBiB"}],"jwPu":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.drawLinkExit=void 0;var t=require("../utils"),e=require("./draw-links"),r=function(r,i,n,o){r.exit().transition().duration(i.duration).style("opacity",0).attr("d",function(r){var a=t.getFirstDisplayedAncestor(o,n,r.id),s={x:a.x0,y:a.y0};return e.generateLinkLayout(s,s,i)}).remove()};exports.drawLinkExit=r;
},{"../utils":"FOZT","./draw-links":"KBiB"}],"gA34":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.drawLinkUpdate=void 0;var t=require("./draw-links"),r=function(r,e,n){r.merge(e).transition().duration(n.duration).attr("d",function(r){return t.generateLinkLayout(r,r.parent,n)}).attr("fill","none").attr("stroke-width",function(t){var r=t.data;return n.linkWidth(r)}).attr("stroke",function(t){var r=t.data;return n.linkColor(r)})};exports.drawLinkUpdate=r;
},{"./draw-links":"KBiB"}],"z8LJ":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.drawNodeEnter=void 0;var e=require("../utils"),t=function(t,r,n,o){var d=t.enter().append("g").attr("class","node").attr("transform",function(t){var d=e.getFirstDisplayedAncestor(n,o,t.id);return e.setNodeLocation(d.x0,d.y0,r)});return d.append("foreignObject").attr("width",r.nodeWidth).attr("height",r.nodeHeight),d};exports.drawNodeEnter=t;
},{"../utils":"FOZT"}],"sLAT":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.drawNodeExit=void 0;var t=require("../utils"),e=function(e,r,i,o){var s=e.exit().transition().duration(r.duration).style("opacity",0).attr("transform",function(e){var s=t.getFirstDisplayedAncestor(o,i,e.id);return t.setNodeLocation(s.x0,s.y0,r)}).remove();s.select("rect").style("fill-opacity",1e-6),s.select("circle").attr("r",1e-6),s.select("text").style("fill-opacity",1e-6)};exports.drawNodeExit=e;
},{"../utils":"FOZT"}],"jlQS":[function(require,module,exports) {
"use strict";var e=this&&this.__assign||function(){return(e=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.drawNodeUpdate=void 0;var t=function(t,r,o){var n=t.merge(r);n.transition().duration(o.duration).attr("transform",function(e){return o.isHorizontal?"translate("+e.y+","+e.x+")":"translate("+e.x+","+e.y+")"}),n.select("foreignObject").attr("width",o.nodeWidth).attr("height",o.nodeHeight).style("overflow","visible").on("click",o.onNodeClick).on("mouseenter",o.onNodeMouseEnter).on("mouseleave",o.onNodeMouseLeave).html(function(t){return o.renderNode(e(e({},t),{settings:o}))})};exports.drawNodeUpdate=t;
},{}],"TO11":[function(require,module,exports) {
"use strict";var e=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.generateBasicTreemap=exports.generateNestedData=void 0;var t=e(require("./d3")),i=require("./utils"),a=function(e,i){var a=i.idKey,r=i.relationnalField;return i.hasFlatData?t.default.stratify().id(function(e){return e[a]}).parentId(function(e){return e[r]})(e):t.default.hierarchy(e,function(e){return e[r]})};exports.generateNestedData=a;var r=function(e){var a=i.getAreaSize(e.htmlId),r=a.areaHeight,n=a.areaWidth;return"auto"===e.mainAxisNodeSpacing&&e.isHorizontal?t.default.tree().size([r-e.nodeHeight,n-e.nodeWidth]):"auto"!==e.mainAxisNodeSpacing||e.isHorizontal?!0===e.isHorizontal?t.default.tree().nodeSize([e.nodeHeight*e.secondaryAxisNodeSpacing,e.nodeWidth]):t.default.tree().nodeSize([e.nodeWidth*e.secondaryAxisNodeSpacing,e.nodeHeight]):t.default.tree().size([n-e.nodeWidth,r-e.nodeHeight])};exports.generateBasicTreemap=r;
},{"./d3":"jsJr","./utils":"FOZT"}],"Focm":[function(require,module,exports) {
"use strict";var e=this&&this.__assign||function(){return(e=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++)for(var t in n=arguments[r])Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e}).apply(this,arguments)},n=this&&this.__spreadArrays||function(){for(var e=0,n=0,r=arguments.length;n<r;n++)e+=arguments[n].length;var i=Array(e),t=0;for(n=0;n<r;n++)for(var a=arguments[n],o=0,d=a.length;o<d;o++,t++)i[t]=a[o];return i};Object.defineProperty(exports,"__esModule",{value:!0}),exports.create=void 0;var r=require("./initializeSVG"),i=require("./links/link-enter"),t=require("./links/link-exit"),a=require("./links/link-update"),o=require("./nodes/node-enter"),d=require("./nodes/node-exit"),s=require("./nodes/node-update"),u=require("./prepare-data"),c=require("./utils");function l(l){var f=e(e({},{htmlId:"",idKey:"id",relationnalField:"father",hasFlatData:!0,nodeWidth:160,nodeHeight:100,mainAxisNodeSpacing:300,renderNode:function(){return"Node"},linkColor:function(){return"#ffcc80"},linkWidth:function(){return 10},linkShape:"quadraticBeziers",isHorizontal:!0,hasPanAndZoom:!1,duration:600,onNodeClick:function(){},onNodeMouseEnter:function(){},onNodeMouseLeave:function(){},marginBottom:0,marginLeft:0,marginRight:0,marginTop:0,secondaryAxisNodeSpacing:1.25}),l);void 0!==l.hasPanAndZoom&&console.warn("[DEPRECATED] hasPanAndZoom is deprecated and will be removed in treeviz version 3. Use hasPan and hasZoom instead");var h=[];var p={refresh:function(r,l){c.RefreshQueue.add(f.duration,function(){l&&(f=e(e({},f),l));var c=u.generateNestedData(r,f),p=u.generateBasicTreemap(f)(c);!function(e,r){var u=r.descendants(),c=r.descendants().slice(1),l=f.mainAxisNodeSpacing;"auto"!==l&&u.forEach(function(e){e.y=e.depth*f.nodeWidth*l}),u.forEach(function(e){var n=h.find(function(n){return n.id===e.id});e.x0=n?n.x0:e.x,e.y0=n?n.y0:e.y});var p=e.selectAll("g.node").data(u,function(e){return e[f.idKey]}),v=o.drawNodeEnter(p,f,u,h);s.drawNodeUpdate(v,p,f),d.drawNodeExit(p,f,u,h);var g=e.selectAll("path.link").data(c,function(e){return e.id}),m=i.drawLinkEnter(g,f,u,h);a.drawLinkUpdate(m,g,f),t.drawLinkExit(g,f,u,h),h=n(u)}(v,p)})},clean:function(e){var n=e?document.querySelector("#"+f.htmlId+" svg g"):document.querySelector("#"+f.htmlId);if(n)for(;n.firstChild;)n.removeChild(n.firstChild);h=[]}},v=r.initiliazeSVG(f);return p}exports.create=l;
},{"./initializeSVG":"yUOh","./links/link-enter":"Urlr","./links/link-exit":"jwPu","./links/link-update":"gA34","./nodes/node-enter":"z8LJ","./nodes/node-exit":"sLAT","./nodes/node-update":"jlQS","./prepare-data":"TO11","./utils":"FOZT"}]},{},["Focm"], "Treeviz")
//# sourceMappingURL=/index.js.map