-
Notifications
You must be signed in to change notification settings - Fork 0
/
esbuild-why.html
51 lines (42 loc) · 53.4 KB
/
esbuild-why.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>EsBuild Visualizer</title>
<style>
:root{--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--background-color: #2b2d42;--text-color: #edf2f4}html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}html{background-color:var(--background-color);color:var(--text-color);font-family:var(--font-family)}body{padding:0;margin:0}html,body{height:100%;width:100%;overflow:hidden}body{display:flex;flex-direction:column}svg{vertical-align:middle;width:100%;height:100%;max-height:100vh}main{flex-grow:1;height:100vh;padding:20px}.tooltip{position:absolute;z-index:1070;border:2px solid;border-radius:5px;padding:5px;font-size:.875rem;background-color:var(--background-color);color:var(--text-color)}.tooltip-hidden{visibility:hidden;opacity:0}.sidebar{position:fixed;top:0;left:0;right:0;display:flex;flex-direction:row;font-size:.7rem;align-items:center;margin:0 50px;height:20px}.size-selectors{display:flex;flex-direction:row;align-items:center}.size-selector{display:flex;flex-direction:row;align-items:center;justify-content:center;margin-right:1rem}.size-selector input{margin:0 .3rem 0 0}.filters{flex:1;display:flex;flex-direction:row;align-items:center}.module-filters{display:flex}.module-filter{display:flex;flex-direction:row;align-items:center;justify-content:center;flex:1}.module-filter input{flex:1;height:1rem;padding:.01rem;font-size:.7rem;margin-left:.3rem}.module-filter+.module-filter{margin-left:.5rem}
</style>
</head>
<body>
<main></main>
<script>
/*<!--*/
"use strict";var drawChart=(()=>{var $n=Object.create;var se=Object.defineProperty,qn=Object.defineProperties,Bn=Object.getOwnPropertyDescriptor,Un=Object.getOwnPropertyDescriptors,On=Object.getOwnPropertyNames,Gt=Object.getOwnPropertySymbols,Vn=Object.getPrototypeOf,jt=Object.prototype.hasOwnProperty,Gn=Object.prototype.propertyIsEnumerable;var Kt=(e,t,r)=>t in e?se(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Wt=(e,t)=>{for(var r in t||(t={}))jt.call(t,r)&&Kt(e,r,t[r]);if(Gt)for(var r of Gt(t))Gn.call(t,r)&&Kt(e,r,t[r]);return e},Xt=(e,t)=>qn(e,Un(t));var Kn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),jn=(e,t)=>{for(var r in t)se(e,r,{get:t[r],enumerable:!0})},Zt=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of On(t))!jt.call(e,i)&&i!==r&&se(e,i,{get:()=>t[i],enumerable:!(n=Bn(t,i))||n.enumerable});return e};var Wn=(e,t,r)=>(r=e!=null?$n(Vn(e)):{},Zt(t||!e||!e.__esModule?se(r,"default",{value:e,enumerable:!0}):r,e)),Xn=e=>Zt(se({},"__esModule",{value:!0}),e);var en=Kn((ou,Ke)=>{"use strict";Ke.exports=Co;Ke.exports.format=Qr;Ke.exports.parse=Yr;var So=/\B(?=(\d{3})+(?!\d))/g,No=/(?:\.0*|(\.[^0]+)0+)$/,O={b:1,kb:1<<10,mb:1<<20,gb:1<<30,tb:Math.pow(1024,4),pb:Math.pow(1024,5)},ko=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function Co(e,t){return typeof e=="string"?Yr(e):typeof e=="number"?Qr(e,t):null}function Qr(e,t){if(!Number.isFinite(e))return null;var r=Math.abs(e),n=t&&t.thousandsSeparator||"",i=t&&t.unitSeparator||"",o=t&&t.decimalPlaces!==void 0?t.decimalPlaces:2,a=Boolean(t&&t.fixedDecimals),u=t&&t.unit||"";(!u||!O[u.toLowerCase()])&&(r>=O.pb?u="PB":r>=O.tb?u="TB":r>=O.gb?u="GB":r>=O.mb?u="MB":r>=O.kb?u="KB":u="B");var c=e/O[u.toLowerCase()],s=c.toFixed(o);return a||(s=s.replace(No,"$1")),n&&(s=s.split(".").map(function(l,d){return d===0?l.replace(So,n):l}).join(".")),s+i+u}function Yr(e){if(typeof e=="number"&&!isNaN(e))return e;if(typeof e!="string")return null;var t=ko.exec(e),r,n="b";return t?(r=parseFloat(t[1]),n=t[4].toLowerCase()):(r=parseInt(e,10),n="b"),isNaN(r)?null:Math.floor(O[n]*r)}});var ui={};jn(ui,{StaticContext:()=>D,default:()=>ai});var Pe,b,tr,Zn,W,Jt,rr,nt,nr,Ee={},or=[],Jn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,it=Array.isArray;function B(e,t){for(var r in t)e[r]=t[r];return e}function ir(e){var t=e.parentNode;t&&t.removeChild(e)}function Qn(e,t,r){var n,i,o,a={};for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?Pe.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return Te(e,a,n,i,null)}function Te(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++tr:i};return i==null&&b.vnode!=null&&b.vnode(o),o}function H(e){return e.children}function Le(e,t){this.props=e,this.context=t}function ce(e,t){if(t==null)return e.__?ce(e.__,e.__.__k.indexOf(e)+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?ce(e):null}function ar(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return ar(e)}}function ot(e){(!e.__d&&(e.__d=!0)&&W.push(e)&&!Re.__r++||Jt!==b.debounceRendering)&&((Jt=b.debounceRendering)||rr)(Re)}function Re(){var e,t,r,n,i,o,a,u;for(W.sort(nt);e=W.shift();)e.__d&&(t=W.length,n=void 0,i=void 0,a=(o=(r=e).__v).__e,(u=r.__P)&&(n=[],(i=B({},o)).__v=o.__v+1,at(u,o,i,r.__n,u.ownerSVGElement!==void 0,o.__h!=null?[a]:null,n,a==null?ce(o):a,o.__h),cr(n,o),o.__e!=a&&ar(o)),W.length>t&&W.sort(nt));Re.__r=0}function ur(e,t,r,n,i,o,a,u,c,s){var l,d,f,p,m,g,h,y=n&&n.__k||or,x=y.length;for(r.__k=[],l=0;l<t.length;l++)if((p=r.__k[l]=(p=t[l])==null||typeof p=="boolean"||typeof p=="function"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?Te(null,p,null,null,p):it(p)?Te(H,{children:p},null,null,null):p.__b>0?Te(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=r,p.__b=r.__b+1,(f=y[l])===null||f&&p.key==f.key&&p.type===f.type)y[l]=void 0;else for(d=0;d<x;d++){if((f=y[d])&&p.key==f.key&&p.type===f.type){y[d]=void 0;break}f=null}at(e,p,f=f||Ee,i,o,a,u,c,s),m=p.__e,(d=p.ref)&&f.ref!=d&&(h||(h=[]),f.ref&&h.push(f.ref,null,p),h.push(d,p.__c||m,p)),m!=null?(g==null&&(g=m),typeof p.type=="function"&&p.__k===f.__k?p.__d=c=lr(p,c,e):c=fr(e,p,f,y,m,c),typeof r.type=="function"&&(r.__d=c)):c&&f.__e==c&&c.parentNode!=e&&(c=ce(f))}for(r.__e=g,l=x;l--;)y[l]!=null&&(typeof r.type=="function"&&y[l].__e!=null&&y[l].__e==r.__d&&(r.__d=sr(n).nextSibling),pr(y[l],y[l]));if(h)for(l=0;l<h.length;l++)dr(h[l],h[++l],h[++l])}function lr(e,t,r){for(var n,i=e.__k,o=0;i&&o<i.length;o++)(n=i[o])&&(n.__=e,t=typeof n.type=="function"?lr(n,t,r):fr(r,n,n,i,n.__e,t));return t}function fr(e,t,r,n,i,o){var a,u,c;if(t.__d!==void 0)a=t.__d,t.__d=void 0;else if(r==null||i!=o||i.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(i),a=null;else{for(u=o,c=0;(u=u.nextSibling)&&c<n.length;c+=1)if(u==i)break e;e.insertBefore(i,o),a=o}return a!==void 0?a:i.nextSibling}function sr(e){var t,r,n;if(e.type==null||typeof e.type=="string")return e.__e;if(e.__k){for(t=e.__k.length-1;t>=0;t--)if((r=e.__k[t])&&(n=sr(r)))return n}return null}function Yn(e,t,r,n,i){var o;for(o in r)o==="children"||o==="key"||o in t||He(e,o,null,r[o],n);for(o in t)i&&typeof t[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||r[o]===t[o]||He(e,o,t[o],r[o],n)}function Qt(e,t,r){t[0]==="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||Jn.test(t)?r:r+"px"}function He(e,t,r,n,i){var o;e:if(t==="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Qt(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Qt(e.style,t,r[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n||e.addEventListener(t,o?er:Yt,o):e.removeEventListener(t,o?er:Yt,o);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t in e)try{e[t]=r==null?"":r;break e}catch(a){}typeof r=="function"||(r==null||r===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,r))}}function Yt(e){return this.l[e.type+!1](b.event?b.event(e):e)}function er(e){return this.l[e.type+!0](b.event?b.event(e):e)}function at(e,t,r,n,i,o,a,u,c){var s,l,d,f,p,m,g,h,y,x,w,E,S,L,fe,N=t.type;if(t.constructor!==void 0)return null;r.__h!=null&&(c=r.__h,u=t.__e=r.__e,t.__h=null,o=[u]),(s=b.__b)&&s(t);try{e:if(typeof N=="function"){if(h=t.props,y=(s=N.contextType)&&n[s.__c],x=s?y?y.props.value:s.__:n,r.__c?g=(l=t.__c=r.__c).__=l.__E:("prototype"in N&&N.prototype.render?t.__c=l=new N(h,x):(t.__c=l=new Le(h,x),l.constructor=N,l.render=to),y&&y.sub(l),l.props=h,l.state||(l.state={}),l.context=x,l.__n=n,d=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),N.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=B({},l.__s)),B(l.__s,N.getDerivedStateFromProps(h,l.__s))),f=l.props,p=l.state,l.__v=t,d)N.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(N.getDerivedStateFromProps==null&&h!==f&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(h,x),!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(h,l.__s,x)===!1||t.__v===r.__v){for(t.__v!==r.__v&&(l.props=h,l.state=l.__s,l.__d=!1),l.__e=!1,t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(te){te&&(te.__=t)}),w=0;w<l._sb.length;w++)l.__h.push(l._sb[w]);l._sb=[],l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(h,l.__s,x),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(f,p,m)})}if(l.context=x,l.props=h,l.__P=e,E=b.__r,S=0,"prototype"in N&&N.prototype.render){for(l.state=l.__s,l.__d=!1,E&&E(t),s=l.render(l.props,l.state,l.context),L=0;L<l._sb.length;L++)l.__h.push(l._sb[L]);l._sb=[]}else do l.__d=!1,E&&E(t),s=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++S<25);l.state=l.__s,l.getChildContext!=null&&(n=B(B({},n),l.getChildContext())),d||l.getSnapshotBeforeUpdate==null||(m=l.getSnapshotBeforeUpdate(f,p)),ur(e,it(fe=s!=null&&s.type===H&&s.key==null?s.props.children:s)?fe:[fe],t,r,n,i,o,a,u,c),l.base=t.__e,t.__h=null,l.__h.length&&a.push(l),g&&(l.__E=l.__=null),l.__e=!1}else o==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=eo(r.__e,t,r,n,i,o,a,c);(s=b.diffed)&&s(t)}catch(te){t.__v=null,(c||o!=null)&&(t.__e=u,t.__h=!!c,o[o.indexOf(u)]=null),b.__e(te,t,r)}}function cr(e,t){b.__c&&b.__c(t,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(n){n.call(r)})}catch(n){b.__e(n,r.__v)}})}function eo(e,t,r,n,i,o,a,u){var c,s,l,d=r.props,f=t.props,p=t.type,m=0;if(p==="svg"&&(i=!0),o!=null){for(;m<o.length;m++)if((c=o[m])&&"setAttribute"in c==!!p&&(p?c.localName===p:c.nodeType===3)){e=c,o[m]=null;break}}if(e==null){if(p===null)return document.createTextNode(f);e=i?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,f.is&&f),o=null,u=!1}if(p===null)d===f||u&&e.data===f||(e.data=f);else{if(o=o&&Pe.call(e.childNodes),s=(d=r.props||Ee).dangerouslySetInnerHTML,l=f.dangerouslySetInnerHTML,!u){if(o!=null)for(d={},m=0;m<e.attributes.length;m++)d[e.attributes[m].name]=e.attributes[m].value;(l||s)&&(l&&(s&&l.__html==s.__html||l.__html===e.innerHTML)||(e.innerHTML=l&&l.__html||""))}if(Yn(e,f,d,i,u),l)t.__k=[];else if(ur(e,it(m=t.props.children)?m:[m],t,r,n,i&&p!=="foreignObject",o,a,o?o[0]:r.__k&&ce(r,0),u),o!=null)for(m=o.length;m--;)o[m]!=null&&ir(o[m]);u||("value"in f&&(m=f.value)!==void 0&&(m!==e.value||p==="progress"&&!m||p==="option"&&m!==d.value)&&He(e,"value",m,d.value,!1),"checked"in f&&(m=f.checked)!==void 0&&m!==e.checked&&He(e,"checked",m,d.checked,!1))}return e}function dr(e,t,r){try{typeof e=="function"?e(t):e.current=t}catch(n){b.__e(n,r)}}function pr(e,t,r){var n,i;if(b.unmount&&b.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||dr(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){b.__e(o,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&pr(n[i],t,r||typeof e.type!="function");r||e.__e==null||ir(e.__e),e.__=e.__e=e.__d=void 0}function to(e,t,r){return this.constructor(e,r)}function mr(e,t,r){var n,i,o;b.__&&b.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],at(t,e=(!n&&r||t).__k=Qn(H,null,[e]),i||Ee,Ee,t.ownerSVGElement!==void 0,!n&&r?[r]:i?null:t.firstChild?Pe.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n),cr(o,e)}function hr(e,t){var r={__c:t="__cC"+nr++,__:e,Consumer:function(n,i){return n.children(i)},Provider:function(n){var i,o;return this.getChildContext||(i=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&i.some(function(u){u.__e=!0,ot(u)})},this.sub=function(a){i.push(a);var u=a.componentWillUnmount;a.componentWillUnmount=function(){i.splice(i.indexOf(a),1),u&&u.call(a)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}Pe=or.slice,b={__e:function(e,t,r,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(u){e=u}throw e}},tr=0,Zn=function(e){return e!=null&&e.constructor===void 0},Le.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=B({},this.state),typeof e=="function"&&(e=e(B({},r),this.props)),e&&B(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),ot(this))},Le.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ot(this))},Le.prototype.render=H,W=[],rr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,nt=function(e,t){return e.__v.__b-t.__v.__b},Re.__r=0,nr=0;function ro(e){var t=0,r=e.children,n=r&&r.length;if(!n)t=1;else for(;--n>=0;)t+=r[n].value;e.value=t}function _r(){return this.eachAfter(ro)}function gr(e,t){let r=-1;for(let n of this)e.call(t,n,++r,this);return this}function xr(e,t){for(var r=this,n=[r],i,o,a=-1;r=n.pop();)if(e.call(t,r,++a,this),i=r.children)for(o=i.length-1;o>=0;--o)n.push(i[o]);return this}function yr(e,t){for(var r=this,n=[r],i=[],o,a,u,c=-1;r=n.pop();)if(i.push(r),o=r.children)for(a=0,u=o.length;a<u;++a)n.push(o[a]);for(;r=i.pop();)e.call(t,r,++c,this);return this}function br(e,t){let r=-1;for(let n of this)if(e.call(t,n,++r,this))return n}function vr(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,n=t.children,i=n&&n.length;--i>=0;)r+=n[i].value;t.value=r})}function Mr(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function wr(e){for(var t=this,r=no(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var i=n.length;e!==r;)n.splice(i,0,e),e=e.parent;return n}function no(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),i=null;for(e=r.pop(),t=n.pop();e===t;)i=e,e=r.pop(),t=n.pop();return i}function Sr(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Nr(){return Array.from(this)}function kr(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function Cr(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function*Tr(){var e=this,t,r=[e],n,i,o;do for(t=r.reverse(),r=[];e=t.pop();)if(yield e,n=e.children)for(i=0,o=n.length;i<o;++i)r.push(n[i]);while(r.length)}function ne(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=ao)):t===void 0&&(t=io);for(var r=new de(e),n,i=[r],o,a,u,c;n=i.pop();)if((a=t(n.data))&&(c=(a=Array.from(a)).length))for(n.children=a,u=c-1;u>=0;--u)i.push(o=a[u]=new de(a[u])),o.parent=n,o.depth=n.depth+1;return r.eachBefore(lo)}function oo(){return ne(this).eachBefore(uo)}function io(e){return e.children}function ao(e){return Array.isArray(e)?e[1]:null}function uo(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function lo(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function de(e){this.data=e,this.depth=this.height=0,this.parent=null}de.prototype=ne.prototype={constructor:de,count:_r,each:gr,eachAfter:yr,eachBefore:xr,find:br,sum:vr,sort:Mr,path:wr,ancestors:Sr,descendants:Nr,leaves:kr,links:Cr,copy:oo,[Symbol.iterator]:Tr};function Lr(e){if(typeof e!="function")throw new Error;return e}function oe(){return 0}function ie(e){return function(){return e}}function Er(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function De(e,t,r,n,i){for(var o=e.children,a,u=-1,c=o.length,s=e.value&&(n-t)/e.value;++u<c;)a=o[u],a.y0=r,a.y1=i,a.x0=t,a.x1=t+=a.value*s}function Ie(e,t,r,n,i){for(var o=e.children,a,u=-1,c=o.length,s=e.value&&(i-r)/e.value;++u<c;)a=o[u],a.x0=t,a.x1=n,a.y0=r,a.y1=r+=a.value*s}var ut=(1+Math.sqrt(5))/2;function lt(e,t,r,n,i,o){for(var a=[],u=t.children,c,s,l=0,d=0,f=u.length,p,m,g=t.value,h,y,x,w,E,S,L;l<f;){p=i-r,m=o-n;do h=u[d++].value;while(!h&&d<f);for(y=x=h,S=Math.max(m/p,p/m)/(g*e),L=h*h*S,E=Math.max(x/L,L/y);d<f;++d){if(h+=s=u[d].value,s<y&&(y=s),s>x&&(x=s),L=h*h*S,w=Math.max(x/L,L/y),w>E){h-=s;break}E=w}a.push(c={value:h,dice:p<m,children:u.slice(l,d)}),c.dice?De(c,r,n,i,g?n+=m*h/g:o):Ie(c,r,n,g?r+=p*h/g:i,o),g-=h,l=d}return a}var Rr=function e(t){function r(n,i,o,a,u){lt(t,n,i,o,a,u)}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(ut);function ft(){var e=Rr,t=!1,r=1,n=1,i=[0],o=oe,a=oe,u=oe,c=oe,s=oe;function l(f){return f.x0=f.y0=0,f.x1=r,f.y1=n,f.eachBefore(d),i=[0],t&&f.eachBefore(Er),f}function d(f){var p=i[f.depth],m=f.x0+p,g=f.y0+p,h=f.x1-p,y=f.y1-p;h<m&&(m=h=(m+h)/2),y<g&&(g=y=(g+y)/2),f.x0=m,f.y0=g,f.x1=h,f.y1=y,f.children&&(p=i[f.depth+1]=o(f)/2,m+=s(f)-p,g+=a(f)-p,h-=u(f)-p,y-=c(f)-p,h<m&&(m=h=(m+h)/2),y<g&&(g=y=(g+y)/2),e(f,m,g,h,y))}return l.round=function(f){return arguments.length?(t=!!f,l):t},l.size=function(f){return arguments.length?(r=+f[0],n=+f[1],l):[r,n]},l.tile=function(f){return arguments.length?(e=Lr(f),l):e},l.padding=function(f){return arguments.length?l.paddingInner(f).paddingOuter(f):l.paddingInner()},l.paddingInner=function(f){return arguments.length?(o=typeof f=="function"?f:ie(+f),l):o},l.paddingOuter=function(f){return arguments.length?l.paddingTop(f).paddingRight(f).paddingBottom(f).paddingLeft(f):l.paddingTop()},l.paddingTop=function(f){return arguments.length?(a=typeof f=="function"?f:ie(+f),l):a},l.paddingRight=function(f){return arguments.length?(u=typeof f=="function"?f:ie(+f),l):u},l.paddingBottom=function(f){return arguments.length?(c=typeof f=="function"?f:ie(+f),l):c},l.paddingLeft=function(f){return arguments.length?(s=typeof f=="function"?f:ie(+f),l):s},l}var st=function e(t){function r(n,i,o,a,u){if((c=n._squarify)&&c.ratio===t)for(var c,s,l,d,f=-1,p,m=c.length,g=n.value;++f<m;){for(s=c[f],l=s.children,d=s.value=0,p=l.length;d<p;++d)s.value+=l[d].value;s.dice?De(s,i,o,a,g?o+=(u-o)*s.value/g:u):Ie(s,i,o,g?i+=(a-i)*s.value/g:a,u),g-=s.value}else n._squarify=c=lt(t,n,i,o,a,u),c.ratio=t}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(ut);var X=e=>"children"in e;var Hr=0,ct=class{constructor(t){this._id=t;let r=new URL(window.location.href);r.hash=t,this._href=r.toString()}get id(){return this._id}get href(){return this._href}toString(){return`url(${this.href})`}};function dt(e){Hr+=1;let t=["O",e,Hr].filter(Boolean).join("-");return new ct(t)}var F={renderedLength:"Rendered",gzipLength:"Gzip",brotliLength:"Brotli"},Pr=e=>{let t=["renderedLength"];return e.gzip&&t.push("gzipLength"),e.brotli&&t.push("brotliLength"),t};var Z,M,pt,Dr,Fe=0,Br=[],Ae=[],Ir=b.__b,Ar=b.__r,zr=b.diffed,Fr=b.__c,$r=b.unmount;function pe(e,t){b.__h&&b.__h(M,e,Fe||t),Fe=0;var r=M.__H||(M.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:Ae}),r.__[e]}function k(e){return Fe=1,fo(Or,e)}function fo(e,t,r){var n=pe(Z++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Or(void 0,t),function(u){var c=n.__N?n.__N[0]:n.__[0],s=n.t(c,u);c!==s&&(n.__N=[s,n.__[1]],n.__c.setState({}))}],n.__c=M,!M.u)){var i=function(u,c,s){if(!n.__c.__H)return!0;var l=n.__c.__H.__.filter(function(f){return f.__c});if(l.every(function(f){return!f.__N}))return!o||o.call(this,u,c,s);var d=!1;return l.forEach(function(f){if(f.__N){var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[0]&&(d=!0)}}),!(!d&&n.__c.props===u)&&(!o||o.call(this,u,c,s))};M.u=!0;var o=M.shouldComponentUpdate,a=M.componentWillUpdate;M.componentWillUpdate=function(u,c,s){if(this.__e){var l=o;o=void 0,i(u,c,s),o=l}a&&a.call(this,u,c,s)},M.shouldComponentUpdate=i}return n.__N||n.__}function $e(e,t){var r=pe(Z++,3);!b.__s&&ht(r.__H,t)&&(r.__=e,r.i=t,M.__H.__h.push(r))}function Ur(e,t){var r=pe(Z++,4);!b.__s&&ht(r.__H,t)&&(r.__=e,r.i=t,M.__h.push(r))}function me(e){return Fe=5,C(function(){return{current:e}},[])}function C(e,t){var r=pe(Z++,7);return ht(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function U(e){var t=M.context[e.__c],r=pe(Z++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(M)),t.props.value):e.__}function so(){for(var e;e=Br.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ze),e.__H.__h.forEach(mt),e.__H.__h=[]}catch(t){e.__H.__h=[],b.__e(t,e.__v)}}b.__b=function(e){M=null,Ir&&Ir(e)},b.__r=function(e){Ar&&Ar(e),Z=0;var t=(M=e.__c).__H;t&&(pt===M?(t.__h=[],M.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=Ae,r.__N=r.i=void 0})):(t.__h.forEach(ze),t.__h.forEach(mt),t.__h=[],Z=0)),pt=M},b.diffed=function(e){zr&&zr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Br.push(t)!==1&&Dr===b.requestAnimationFrame||((Dr=b.requestAnimationFrame)||co)(so)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==Ae&&(r.__=r.__V),r.i=void 0,r.__V=Ae})),pt=M=null},b.__c=function(e,t){t.some(function(r){try{r.__h.forEach(ze),r.__h=r.__h.filter(function(n){return!n.__||mt(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],b.__e(n,r.__v)}}),Fr&&Fr(e,t)},b.unmount=function(e){$r&&$r(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{ze(n)}catch(i){t=i}}),r.__H=void 0,t&&b.__e(t,r.__v))};var qr=typeof requestAnimationFrame=="function";function co(e){var t,r=function(){clearTimeout(n),qr&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);qr&&(t=requestAnimationFrame(r))}function ze(e){var t=M,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),M=t}function mt(e){var t=M;e.__c=e.__(),M=t}function ht(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Or(e,t){return typeof t=="function"?t(e):t}var po=0;function _(e,t,r,n,i,o){var a,u,c={};for(u in t)u=="ref"?a=t[u]:c[u]=t[u];var s={type:e,props:c,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--po,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(u in a)c[u]===void 0&&(c[u]=a[u]);return b.vnode&&b.vnode(s),s}var Vr=({availableSizeProperties:e,sizeProperty:t,setSizeProperty:r,onExcludeChange:n,onIncludeChange:i})=>{let[o,a]=k(""),[u,c]=k(""),s=f=>()=>{f!==t&&r(f)},l=f=>{let p=f.currentTarget.value;a(p),i(p)},d=f=>{let p=f.currentTarget.value;c(p),n(p)};return _("aside",{className:"sidebar",children:[_("div",{className:"size-selectors",children:e.length>1&&e.map(f=>{let p=`selector-${f}`;return _("div",{className:"size-selector",children:[_("input",{type:"radio",id:p,checked:f===t,onChange:s(f)}),_("label",{htmlFor:p,children:F[f]})]},f)})}),_("div",{className:"module-filters",children:[_("div",{className:"module-filter",children:[_("label",{htmlFor:"module-filter-exclude",children:"Exclude"}),_("input",{type:"text",id:"module-filter-exclude",value:u,onInput:d,placeholder:"RegExp"})]}),_("div",{className:"module-filter",children:[_("label",{htmlFor:"module-filter-include",children:"Include"}),_("input",{type:"text",id:"module-filter-include",value:o,onInput:l,placeholder:"RegExp"})]})]})]})};var Gr=(e,t)=>{let r=!1;return n=>{r||(e(n),r=!0,setTimeout(()=>{r=!1},t))}},Kr=()=>{let[e,t]=k(""),[r,n]=k(""),i=C(()=>Gr(t,200),[]),o=C(()=>Gr(n,200),[]),a=C(()=>{if(e==="")return()=>!0;try{let l=new RegExp(e);return({id:d})=>l.test(d)}catch(l){return()=>!1}},[e]),u=C(()=>{if(r==="")return()=>!1;try{let l=new RegExp(r);return({id:d})=>l.test(d)}catch(l){return()=>!1}},[r]),c=e==="";return{getModuleFilterMultiplier:C(()=>l=>c?u(l)?0:1:u(l)&&!a(l)?0:1,[c,u,a]),includeFilter:e,excludeFilter:r,setExcludeFilter:o,setIncludeFilter:i}};function J(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function _t(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function qe(e){let t,r,n;e.length!==2?(t=J,r=(u,c)=>J(e(u),c),n=(u,c)=>e(u)-c):(t=e===J||e===_t?e:mo,r=e,n=e);function i(u,c,s=0,l=u.length){if(s<l){if(t(c,c)!==0)return l;do{let d=s+l>>>1;r(u[d],c)<0?s=d+1:l=d}while(s<l)}return s}function o(u,c,s=0,l=u.length){if(s<l){if(t(c,c)!==0)return l;do{let d=s+l>>>1;r(u[d],c)<=0?s=d+1:l=d}while(s<l)}return s}function a(u,c,s=0,l=u.length){let d=i(u,c,s,l-1);return d>s&&n(u[d-1],c)>-n(u[d],c)?d-1:d}return{left:i,center:a,right:o}}function mo(){return 0}function gt(e){return e===null?NaN:+e}var jr=qe(J),Wr=jr.right,ho=jr.left,_o=qe(gt).center,xt=Wr;var Be=class extends Map{constructor(t,r=yo){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(let[n,i]of t)this.set(n,i)}get(t){return super.get(Xr(this,t))}has(t){return super.has(Xr(this,t))}set(t,r){return super.set(go(this,t),r)}delete(t){return super.delete(xo(this,t))}};function Xr({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):r}function go({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function xo({_intern:e,_key:t},r){let n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function yo(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Ue(e){return e}function Oe(e,...t){return bo(e,Ue,Ue,t)}function bo(e,t,r,n){return function i(o,a){if(a>=n.length)return r(o);let u=new Be,c=n[a++],s=-1;for(let l of o){let d=c(l,++s,o),f=u.get(d);f?f.push(l):u.set(d,[l])}for(let[l,d]of u)u.set(l,i(d,a));return t(u)}(e,0)}var vo=Math.sqrt(50),Mo=Math.sqrt(10),wo=Math.sqrt(2);function Ve(e,t,r){let n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),o=n/Math.pow(10,i),a=o>=vo?10:o>=Mo?5:o>=wo?2:1,u,c,s;return i<0?(s=Math.pow(10,-i)/a,u=Math.round(e*s),c=Math.round(t*s),u/s<e&&++u,c/s>t&&--c,s=-s):(s=Math.pow(10,i)*a,u=Math.round(e/s),c=Math.round(t/s),u*s<e&&++u,c*s>t&&--c),c<u&&.5<=r&&r<2?Ve(e,t,r*2):[u,c,s]}function Ge(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];let n=t<e,[i,o,a]=n?Ve(t,e,r):Ve(e,t,r);if(!(o>=i))return[];let u=o-i+1,c=new Array(u);if(n)if(a<0)for(let s=0;s<u;++s)c[s]=(o-s)/-a;else for(let s=0;s<u;++s)c[s]=(o-s)*a;else if(a<0)for(let s=0;s<u;++s)c[s]=(i+s)/-a;else for(let s=0;s<u;++s)c[s]=(i+s)*a;return c}function he(e,t,r){return t=+t,e=+e,r=+r,Ve(e,t,r)[2]}function yt(e,t,r){t=+t,e=+e,r=+r;let n=t<e,i=n?he(t,e,r):he(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}var Zr=({node:e,onMouseOver:t,onClick:r,selected:n})=>{let{getModuleColor:i}=U(D),{backgroundColor:o,fontColor:a}=i(e),{x0:u,x1:c,y1:s,y0:l,data:d,children:f=null}=e,p=me(null),m=me(),g=c-u,h=s-l,y={"font-size":"0.7em","dominant-baseline":"middle","text-anchor":"middle",x:g/2};return f!=null?y.y=(20+2)/2:y.y=h/2,Ur(()=>{if(g==0||h==0||!p.current)return;m.current==null&&(m.current=p.current.getBoundingClientRect());let x=1;f!=null?(x=Math.min(g*.9/m.current.width,Math.min(h,20+2)/m.current.height),x=Math.min(1,x),p.current.setAttribute("y",String(Math.min(20+2,h)/2/x)),p.current.setAttribute("x",String(g/2/x))):(x=Math.min(g*.9/m.current.width,h*.9/m.current.height),x=Math.min(1,x),p.current.setAttribute("y",String(h/2/x)),p.current.setAttribute("x",String(g/2/x))),p.current.setAttribute("transform",`scale(${x.toFixed(2)})`)},[f,h,g]),g==0||h==0?null:_("g",{className:"node",transform:`translate(${u},${l})`,onClick:x=>{x.stopPropagation(),r(e)},onMouseOver:x=>{x.stopPropagation(),t(e)},children:[_("rect",{fill:o,rx:2,ry:2,width:c-u,height:s-l,stroke:n?"#fff":void 0,"stroke-width":n?2:void 0}),_("text",Xt(Wt({ref:p,fill:a,onClick:x=>{var w;((w=window.getSelection())==null?void 0:w.toString())!==""&&x.stopPropagation()}},y),{children:d.name}))]})};var Jr=({root:e,onNodeHover:t,selectedNode:r,onNodeClick:n})=>{let{width:i,height:o,getModuleIds:a}=U(D);console.time("layering");let u=C(()=>{let c=Oe(e.descendants(),l=>l.height),s=Array.from(c,([l,d])=>({key:l,values:d}));return s.sort((l,d)=>d.key-l.key),s},[e]);return console.timeEnd("layering"),_("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${i} ${o}`,children:u.map(({key:c,values:s})=>_("g",{className:"layer",children:s.map(l=>_(Zr,{node:l,onMouseOver:t,selected:r===l,onClick:n},a(l.data).nodeUid.id))},c))})};var bt=Wn(en());var To=10,tn=30,Lo=_("span",{children:[" ",_("b",{children:F.renderedLength})," is a number of characters in the file after individual and ",_("br",{})," ","whole bundle transformations according to sourcemap."]}),Eo=_("span",{children:[_("b",{children:F.renderedLength})," is a byte size of individual file after transformations and treeshake."]}),Ro=_("span",{children:[_("b",{children:F.gzipLength})," and ",_("b",{children:F.brotliLength})," is a byte size of individual file after individual transformations,",_("br",{})," treeshake and compression."]}),rn=({node:e,visible:t,root:r,sizeProperty:n})=>{let{availableSizeProperties:i,getModuleSize:o,data:a}=U(D),u=me(null),[c,s]=k({}),l=C(()=>{if(!e)return null;let f=o(e.data,n),g=(100*f/o(r.data,n)).toFixed(2)+"%",h=e.ancestors().reverse().map(x=>x.data.name).join("/"),y=null;if(!X(e.data)){let x=a.nodeParts[e.data.uid].mainUid;y=a.nodeMetas[x]}return _(H,{children:[_("div",{children:h}),i.map(x=>x===n?_("div",{children:[_("b",{children:[F[x],": ",(0,bt.format)(f)]})," ","(",g,")"]},x):_("div",{children:[F[x],": ",(0,bt.format)(o(e.data,x))]},x)),_("br",{}),y&&y.importedBy.length>0&&_("div",{children:[_("div",{children:[_("b",{children:"Imported By"}),":"]}),y.importedBy.map(({uid:x})=>{let w=a.nodeMetas[x].id;return _("div",{children:w},w)})]}),_("br",{}),_("small",{children:a.options.sourcemap?Lo:Eo}),(a.options.gzip||a.options.brotli)&&_(H,{children:[_("br",{}),_("small",{children:Ro})]})]})},[i,a,o,e,r.data,n]),d=f=>{if(!u.current)return;let p={left:f.x+To,top:f.y+tn},m=u.current.getBoundingClientRect();p.left+m.width>window.innerWidth&&(p.left=Math.max(window.innerWidth-m.width,0)),p.top+m.height>window.innerHeight&&(p.top=Math.max(f.y-tn-m.height,0)),s(p)};return $e(()=>{let f=p=>{d({x:p.pageX,y:p.pageY})};return document.addEventListener("mousemove",f,!0),()=>{document.removeEventListener("mousemove",f,!0)}},[]),_("div",{className:`tooltip ${t?"":"tooltip-hidden"}`,ref:u,style:c,children:l})};var nn=({root:e,sizeProperty:t,selectedNode:r,setSelectedNode:n})=>{let[i,o]=k(!1),[a,u]=k(void 0);return $e(()=>{let c=()=>{o(!1)};return document.addEventListener("mouseover",c),()=>{document.removeEventListener("mouseover",c)}},[]),_(H,{children:[_(Jr,{root:e,onNodeHover:c=>{u(c),o(!0)},selectedNode:r,onNodeClick:c=>{n(r===c?void 0:c)}}),_(rn,{visible:i,node:a,root:e,sizeProperty:t})]})};var on=()=>{let{availableSizeProperties:e,rawHierarchy:t,getModuleSize:r,layout:n,data:i}=U(D),[o,a]=k(e[0]),[u,c]=k(void 0),{getModuleFilterMultiplier:s,setExcludeFilter:l,setIncludeFilter:d}=Kr();console.time("getNodeSizeMultiplier");let f=C(()=>{let m=r(t.data,o),g=u?r(u.data,o):1,h=m*.2>g?m*.2/g:3;if(u===void 0)return()=>1;if(X(u.data)){let y=new Set(u.leaves().map(x=>x.data));return x=>y.has(x)?h:1}else return y=>y===u.data?h:1},[r,t.data,u,o]);console.timeEnd("getNodeSizeMultiplier"),console.time("root hierarchy compute");let p=C(()=>{let m=t.sum(g=>{if(X(g))return 0;let h=r(g,o),y=f(g),x=s(i.nodeMetas[i.nodeParts[g.uid].mainUid]);return h*y*x}).sort((g,h)=>r(g.data,o)-r(h.data,o));return n(m)},[i,s,r,f,n,t,o]);return console.timeEnd("root hierarchy compute"),_(H,{children:[_(Vr,{sizeProperty:o,availableSizeProperties:e,setSizeProperty:a,onExcludeChange:l,onIncludeChange:d}),_(nn,{root:p,sizeProperty:o,selectedNode:u,setSelectedNode:c})]})};function an(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function un(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}function je(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function vt(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function ye(){}var ge=.7,Ze=1/ge,ue="\\s*([+-]?\\d+)\\s*",xe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",I="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ho=/^#([0-9a-f]{3,8})$/,Po=new RegExp(`^rgb\\(${ue},${ue},${ue}\\)$`),Do=new RegExp(`^rgb\\(${I},${I},${I}\\)$`),Io=new RegExp(`^rgba\\(${ue},${ue},${ue},${xe}\\)$`),Ao=new RegExp(`^rgba\\(${I},${I},${I},${xe}\\)$`),zo=new RegExp(`^hsl\\(${xe},${I},${I}\\)$`),Fo=new RegExp(`^hsla\\(${xe},${I},${I},${xe}\\)$`),ln={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};je(ye,V,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:fn,formatHex:fn,formatHex8:$o,formatHsl:qo,formatRgb:sn,toString:sn});function fn(){return this.rgb().formatHex()}function $o(){return this.rgb().formatHex8()}function qo(){return _n(this).formatHsl()}function sn(){return this.rgb().formatRgb()}function V(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Ho.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?cn(t):r===3?new T(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?We(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?We(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Po.exec(e))?new T(t[1],t[2],t[3],1):(t=Do.exec(e))?new T(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Io.exec(e))?We(t[1],t[2],t[3],t[4]):(t=Ao.exec(e))?We(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=zo.exec(e))?mn(t[1],t[2]/100,t[3]/100,1):(t=Fo.exec(e))?mn(t[1],t[2]/100,t[3]/100,t[4]):ln.hasOwnProperty(e)?cn(ln[e]):e==="transparent"?new T(NaN,NaN,NaN,0):null}function cn(e){return new T(e>>16&255,e>>8&255,e&255,1)}function We(e,t,r,n){return n<=0&&(e=t=r=NaN),new T(e,t,r,n)}function Bo(e){return e instanceof ye||(e=V(e)),e?(e=e.rgb(),new T(e.r,e.g,e.b,e.opacity)):new T}function le(e,t,r,n){return arguments.length===1?Bo(e):new T(e,t,r,n==null?1:n)}function T(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}je(T,le,vt(ye,{brighter(e){return e=e==null?Ze:Math.pow(Ze,e),new T(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ge:Math.pow(ge,e),new T(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new T(Y(this.r),Y(this.g),Y(this.b),Je(this.opacity))},displayable(){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:dn,formatHex:dn,formatHex8:Uo,formatRgb:pn,toString:pn}));function dn(){return`#${Q(this.r)}${Q(this.g)}${Q(this.b)}`}function Uo(){return`#${Q(this.r)}${Q(this.g)}${Q(this.b)}${Q((isNaN(this.opacity)?1:this.opacity)*255)}`}function pn(){let e=Je(this.opacity);return`${e===1?"rgb(":"rgba("}${Y(this.r)}, ${Y(this.g)}, ${Y(this.b)}${e===1?")":`, ${e})`}`}function Je(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Y(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Q(e){return e=Y(e),(e<16?"0":"")+e.toString(16)}function mn(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new P(e,t,r,n)}function _n(e){if(e instanceof P)return new P(e.h,e.s,e.l,e.opacity);if(e instanceof ye||(e=V(e)),!e)return new P;if(e instanceof P)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,u=o-i,c=(o+i)/2;return u?(t===o?a=(r-n)/u+(r<n)*6:r===o?a=(n-t)/u+2:a=(t-r)/u+4,u/=c<.5?o+i:2-o-i,a*=60):u=c>0&&c<1?0:a,new P(a,u,c,e.opacity)}function be(e,t,r,n){return arguments.length===1?_n(e):new P(e,t,r,n==null?1:n)}function P(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}je(P,be,vt(ye,{brighter(e){return e=e==null?Ze:Math.pow(Ze,e),new P(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ge:Math.pow(ge,e),new P(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,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 T(Mt(e>=240?e-240:e+120,i,n),Mt(e,i,n),Mt(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new P(hn(this.h),Xe(this.s),Xe(this.l),Je(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Je(this.opacity);return`${e===1?"hsl(":"hsla("}${hn(this.h)}, ${Xe(this.s)*100}%, ${Xe(this.l)*100}%${e===1?")":`, ${e})`}`}}));function hn(e){return e=(e||0)%360,e<0?e+360:e}function Xe(e){return Math.max(0,Math.min(1,e||0))}function Mt(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function wt(e,t,r,n,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*r+(1+3*e+3*o-3*a)*n+a*i)/6}function gn(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],o=e[n+1],a=n>0?e[n-1]:2*i-o,u=n<t-1?e[n+2]:2*o-i;return wt((r-n/t)*t,a,i,o,u)}}function xn(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],o=e[n%t],a=e[(n+1)%t],u=e[(n+2)%t];return wt((r-n/t)*t,i,o,a,u)}}var ve=e=>()=>e;function Oo(e,t){return function(r){return e+r*t}}function Vo(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function yn(e){return(e=+e)==1?Qe:function(t,r){return r-t?Vo(t,r,e):ve(isNaN(t)?r:t)}}function Qe(e,t){var r=t-e;return r?Oo(e,r):ve(isNaN(e)?t:e)}var St=function e(t){var r=yn(t);function n(i,o){var a=r((i=le(i)).r,(o=le(o)).r),u=r(i.g,o.g),c=r(i.b,o.b),s=Qe(i.opacity,o.opacity);return function(l){return i.r=a(l),i.g=u(l),i.b=c(l),i.opacity=s(l),i+""}}return n.gamma=e,n}(1);function bn(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),o=new Array(r),a,u;for(a=0;a<r;++a)u=le(t[a]),n[a]=u.r||0,i[a]=u.g||0,o[a]=u.b||0;return n=e(n),i=e(i),o=e(o),u.opacity=1,function(c){return u.r=n(c),u.g=i(c),u.b=o(c),u+""}}}var Ku=bn(gn),ju=bn(xn);function vn(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(o){for(i=0;i<r;++i)n[i]=e[i]*(1-o)+t[i]*o;return n}}function Mn(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function wn(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),o=new Array(r),a;for(a=0;a<n;++a)i[a]=$(e[a],t[a]);for(;a<r;++a)o[a]=t[a];return function(u){for(a=0;a<n;++a)o[a]=i[a](u);return o}}function Sn(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function G(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function Nn(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=$(e[i],t[i]):n[i]=t[i];return function(o){for(i in r)n[i]=r[i](o);return n}}var kt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Nt=new RegExp(kt.source,"g");function Go(e){return function(){return e}}function Ko(e){return function(t){return e(t)+""}}function kn(e,t){var r=kt.lastIndex=Nt.lastIndex=0,n,i,o,a=-1,u=[],c=[];for(e=e+"",t=t+"";(n=kt.exec(e))&&(i=Nt.exec(t));)(o=i.index)>r&&(o=t.slice(r,o),u[a]?u[a]+=o:u[++a]=o),(n=n[0])===(i=i[0])?u[a]?u[a]+=i:u[++a]=i:(u[++a]=null,c.push({i:a,x:G(n,i)})),r=Nt.lastIndex;return r<t.length&&(o=t.slice(r),u[a]?u[a]+=o:u[++a]=o),u.length<2?c[0]?Ko(c[0].x):Go(t):(t=c.length,function(s){for(var l=0,d;l<t;++l)u[(d=c[l]).i]=d.x(s);return u.join("")})}function $(e,t){var r=typeof t,n;return t==null||r==="boolean"?ve(t):(r==="number"?G:r==="string"?(n=V(t))?(t=n,St):kn:t instanceof V?St:t instanceof Date?Sn:Mn(t)?vn:Array.isArray(t)?wn:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Nn:G)(e,t)}function Me(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function Ct(e){return function(){return e}}function Tt(e){return+e}var Cn=[0,1];function q(e){return e}function Lt(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:Ct(isNaN(t)?NaN:.5)}function jo(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function Wo(e,t,r){var n=e[0],i=e[1],o=t[0],a=t[1];return i<n?(n=Lt(i,n),o=r(a,o)):(n=Lt(n,i),o=r(o,a)),function(u){return o(n(u))}}function Xo(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),o=new Array(n),a=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<n;)i[a]=Lt(e[a],e[a+1]),o[a]=r(t[a],t[a+1]);return function(u){var c=xt(e,u,1,n)-1;return o[c](i[c](u))}}function Tn(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Zo(){var e=Cn,t=Cn,r=$,n,i,o,a=q,u,c,s;function l(){var f=Math.min(e.length,t.length);return a!==q&&(a=jo(e[0],e[f-1])),u=f>2?Xo:Wo,c=s=null,d}function d(f){return f==null||isNaN(f=+f)?o:(c||(c=u(e.map(n),t,r)))(n(a(f)))}return d.invert=function(f){return a(i((s||(s=u(t,e.map(n),G)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,Tt),l()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),l()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),r=Me,l()},d.clamp=function(f){return arguments.length?(a=f?!0:q,l()):a!==q},d.interpolate=function(f){return arguments.length?(r=f,l()):r},d.unknown=function(f){return arguments.length?(o=f,d):o},function(f,p){return n=f,i=p,l()}}function Et(){return Zo()(q,q)}function Ln(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ee(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function A(e){return e=ee(Math.abs(e)),e?e[1]:NaN}function En(e,t){return function(r,n){for(var i=r.length,o=[],a=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>n&&(u=Math.max(1,n-c)),o.push(r.substring(i-=u,i+u)),!((c+=u+1)>n));)u=e[a=(a+1)%e.length];return o.reverse().join(t)}}function Rn(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Jo=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function K(e){if(!(t=Jo.exec(e)))throw new Error("invalid format: "+e);var t;return new Ye({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}K.prototype=Ye.prototype;function Ye(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Ye.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Hn(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Rt;function Pn(e,t){var r=ee(e,t);if(!r)return e+"";var n=r[0],i=r[1],o=i-(Rt=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=n.length;return o===a?n:o>a?n+new Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+ee(e,Math.max(0,t+o-1))[0]}function Ht(e,t){var r=ee(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}var Pt={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Ln,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Ht(e*100,t),r:Ht,s:Pn,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Dt(e){return e}var Dn=Array.prototype.map,In=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function An(e){var t=e.grouping===void 0||e.thousands===void 0?Dt:En(Dn.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?Dt:Rn(Dn.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"\u2212":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function s(d){d=K(d);var f=d.fill,p=d.align,m=d.sign,g=d.symbol,h=d.zero,y=d.width,x=d.comma,w=d.precision,E=d.trim,S=d.type;S==="n"?(x=!0,S="g"):Pt[S]||(w===void 0&&(w=12),E=!0,S="g"),(h||f==="0"&&p==="=")&&(h=!0,f="0",p="=");var L=g==="$"?r:g==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():"",fe=g==="$"?n:/[%p]/.test(S)?a:"",N=Pt[S],te=/[defgprs%]/.test(S);w=w===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function Ot(v){var j=L,R=fe,re,Vt,Ne;if(S==="c")R=N(v)+R,v="";else{v=+v;var ke=v<0||1/v<0;if(v=isNaN(v)?c:N(Math.abs(v),w),E&&(v=Hn(v)),ke&&+v==0&&m!=="+"&&(ke=!1),j=(ke?m==="("?m:u:m==="-"||m==="("?"":m)+j,R=(S==="s"?In[8+Rt/3]:"")+R+(ke&&m==="("?")":""),te){for(re=-1,Vt=v.length;++re<Vt;)if(Ne=v.charCodeAt(re),48>Ne||Ne>57){R=(Ne===46?i+v.slice(re+1):v.slice(re))+R,v=v.slice(0,re);break}}}x&&!h&&(v=t(v,1/0));var Ce=j.length+v.length+R.length,z=Ce<y?new Array(y-Ce+1).join(f):"";switch(x&&h&&(v=t(z+v,z.length?y-R.length:1/0),z=""),p){case"<":v=j+v+R+z;break;case"=":v=j+z+v+R;break;case"^":v=z.slice(0,Ce=z.length>>1)+j+v+R+z.slice(Ce);break;default:v=z+j+v+R;break}return o(v)}return Ot.toString=function(){return d+""},Ot}function l(d,f){var p=s((d=K(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(A(f)/3)))*3,g=Math.pow(10,-m),h=In[8+m/3];return function(y){return p(g*y)+h}}return{format:s,formatPrefix:l}}var et,tt,rt;It({thousands:",",grouping:[3],currency:["$",""]});function It(e){return et=An(e),tt=et.format,rt=et.formatPrefix,et}function At(e){return Math.max(0,-A(Math.abs(e)))}function zt(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(A(t)/3)))*3-A(Math.abs(e)))}function Ft(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,A(t)-A(e))+1}function $t(e,t,r,n){var i=yt(e,t,r),o;switch(n=K(n==null?",f":n),n.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(o=zt(i,a))&&(n.precision=o),rt(n,a)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(o=Ft(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=o-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(o=At(i))&&(n.precision=o-(n.type==="%")*2);break}}return tt(n)}function qt(e){var t=e.domain;return e.ticks=function(r){var n=t();return Ge(n[0],n[n.length-1],r==null?10:r)},e.tickFormat=function(r,n){var i=t();return $t(i[0],i[i.length-1],r==null?10:r,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,o=n.length-1,a=n[i],u=n[o],c,s,l=10;for(u<a&&(s=a,a=u,u=s,s=i,i=o,o=s);l-- >0;){if(s=he(a,u,r),s===c)return n[i]=a,n[o]=u,t(n);if(s>0)a=Math.floor(a/s)*s,u=Math.ceil(u/s)*s;else if(s<0)a=Math.ceil(a*s)/s,u=Math.floor(u*s)/s;else break;c=s}return e},e}function we(){var e=Et();return e.copy=function(){return Tn(e,we())},an.apply(e,arguments),qt(e)}function Qo(){var e=0,t=1,r,n,i,o,a=q,u=!1,c;function s(d){return d==null||isNaN(d=+d)?c:a(i===0?.5:(d=(o(d)-r)*i,u?Math.max(0,Math.min(1,d)):d))}s.domain=function(d){return arguments.length?([e,t]=d,r=o(e=+e),n=o(t=+t),i=r===n?0:1/(n-r),s):[e,t]},s.clamp=function(d){return arguments.length?(u=!!d,s):u},s.interpolator=function(d){return arguments.length?(a=d,s):a};function l(d){return function(f){var p,m;return arguments.length?([p,m]=f,a=d(p,m),s):[a(0),a(1)]}}return s.range=l($),s.rangeRound=l(Me),s.unknown=function(d){return arguments.length?(c=d,s):c},function(d){return o=d,r=d(e),n=d(t),i=r===n?0:1/(n-r),s}}function Yo(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Se(){var e=qt(Qo()(q));return e.copy=function(){return Yo(e,Se())},un.apply(e,arguments)}var zn="#cecece";var ei=.2126,ti=.7152,ri=.0722,Bt=1/12.92;function Ut(e){return Math.pow((e+.055)/1.055,2.4)}function ni(e){let t=e.r/255,r=e.g/255,n=e.b/255,i=t<=.03928?t*Bt:Ut(t),o=r<=.03928?r*Bt:Ut(r),a=n<=.03928?n*Bt:Ut(n);return i*ei+o*ti+a*ri}var oi=e=>{let t=new Map;if(t.set(e,zn),e.children!=null){let o=Se([0,e.children.length],a=>be(360*a,.3,.85));e.children.forEach((a,u)=>{t.set(a,o(u).toString())})}let r=new Map,n=we().domain([0,e.height]).range([.9,.3]),i=o=>{let a=o.ancestors(),u=a.length===1?t.get(a[0]):t.get(a[a.length-2]),c=be(u);return c.l=n(o.depth),c};return o=>{if(!r.has(o)){let a=i(o),c=ni(a.rgb())>.19?"#000":"#fff";r.set(o,{backgroundColor:a.toString(),fontColor:c})}return r.get(o)}},Fn=oi;var D=hr({}),ii=(e,t,r,n)=>{let i=Pr(t.options);console.time("layout create");let o=ft().size([r,n]).paddingOuter(2).paddingTop(20).paddingInner(2).round(!0).tile(st);console.timeEnd("layout create"),console.time("rawHierarchy create");let a=ne(t.tree);console.timeEnd("rawHierarchy create");let u=new Map,c=new Map,s=(f,p)=>{var m,g;return(g=(m=u.get(f))==null?void 0:m[p])!=null?g:0};console.time("rawHierarchy eachAfter cache"),a.eachAfter(f=>{var g;let p=f.data;c.set(p,{nodeUid:dt("node"),clipUid:dt("clip")});let m={renderedLength:0,gzipLength:0,brotliLength:0};if(X(p))for(let h of i)m[h]=p.children.reduce((y,x)=>s(x,h)+y,0);else for(let h of i)m[h]=(g=t.nodeParts[p.uid][h])!=null?g:0;u.set(p,m)}),console.timeEnd("rawHierarchy eachAfter cache");let l=f=>c.get(f);console.time("color");let d=Fn(a);console.timeEnd("color"),mr(_(D.Provider,{value:{data:t,availableSizeProperties:i,width:r,height:n,getModuleSize:s,getModuleIds:l,getModuleColor:d,rawHierarchy:a,layout:o},children:_(on,{})}),e)},ai=ii;return Xn(ui);})();
/*! Bundled license information:
bytes/index.js:
(*!
* bytes
* Copyright(c) 2012-2014 TJ Holowaychuk
* Copyright(c) 2015 Jed Watson
* MIT Licensed
*)
*/
/*-->*/
</script>
<script>
/*<!--*/
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index","children":[{"name":"node_modules/.pnpm","children":[{"name":"[email protected]/node_modules/shallowequal/index.js","uid":"864c-1"},{"name":"[email protected]/node_modules/immer/dist/immer.mjs","uid":"864c-5"}]},{"name":"dist/index.mjs","uid":"864c-3"}]}],"isRoot":true},"nodeParts":{"864c-1":{"renderedLength":443,"gzipLength":0,"brotliLength":0,"mainUid":"864c-0"},"864c-3":{"renderedLength":1082,"gzipLength":0,"brotliLength":0,"mainUid":"864c-2"},"864c-5":{"renderedLength":7379,"gzipLength":0,"brotliLength":0,"mainUid":"864c-4"}},"nodeMetas":{"864c-0":{"id":"node_modules/.pnpm/[email protected]/node_modules/shallowequal/index.js","moduleParts":{"index":"864c-1"},"imported":[],"importedBy":[{"uid":"864c-2"}]},"864c-2":{"id":"dist/index.mjs","moduleParts":{"index":"864c-3"},"imported":[{"uid":"864c-6"},{"uid":"864c-4"},{"uid":"864c-0"}],"importedBy":[],"isEntry":true},"864c-4":{"id":"node_modules/.pnpm/[email protected]/node_modules/immer/dist/immer.mjs","moduleParts":{"index":"864c-5"},"imported":[],"importedBy":[{"uid":"864c-2"}]},"864c-6":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"864c-2"}]}},"env":{},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
const run = () => {
const width = window.innerWidth;
const height = window.innerHeight;
const chartNode = document.querySelector("main");
drawChart.default(chartNode, data, width, height);
};
window.addEventListener('resize', run);
document.addEventListener('DOMContentLoaded', run);
/*-->*/
</script>
</body>
</html>