vue-chrts 0.0.101 → 0.0.102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +49 -171
- package/dist/index.js +2640 -3195
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,118 +1,58 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("vue");var Ti="http://www.w3.org/1999/xhtml";const Vr={svg:"http://www.w3.org/2000/svg",xhtml:Ti,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Vn(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Vr.hasOwnProperty(e)?{space:Vr[e],local:t}:t}function Rl(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Ti&&e.documentElement.namespaceURI===Ti?e.createElement(t):e.createElementNS(n,t)}}function Fl(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function ws(t){var e=Vn(t);return(e.local?Fl:Rl)(e)}function zl(){}function nr(t){return t==null?zl:function(){return this.querySelector(t)}}function Pl(t){typeof t!="function"&&(t=nr(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o=e[r],s=o.length,a=i[r]=new Array(s),l,c,h=0;h<s;++h)(l=o[h])&&(c=t.call(l,l.__data__,h,o))&&("__data__"in l&&(c.__data__=l.__data__),a[h]=c);return new it(i,this._parents)}function Ll(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Bl(){return[]}function ks(t){return t==null?Bl:function(){return this.querySelectorAll(t)}}function Il(t){return function(){return Ll(t.apply(this,arguments))}}function Ul(t){typeof t=="function"?t=Il(t):t=ks(t);for(var e=this._groups,n=e.length,i=[],r=[],o=0;o<n;++o)for(var s=e[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&(i.push(t.call(l,l.__data__,c,s)),r.push(l));return new it(i,r)}function Ts(t){return function(){return this.matches(t)}}function Ss(t){return function(e){return e.matches(t)}}var Hl=Array.prototype.find;function Vl(t){return function(){return Hl.call(this.children,t)}}function Wl(){return this.firstElementChild}function Yl(t){return this.select(t==null?Wl:Vl(typeof t=="function"?t:Ss(t)))}var Xl=Array.prototype.filter;function ql(){return Array.from(this.children)}function Gl(t){return function(){return Xl.call(this.children,t)}}function Zl(t){return this.selectAll(t==null?ql:Gl(typeof t=="function"?t:Ss(t)))}function jl(t){typeof t!="function"&&(t=Ts(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o=e[r],s=o.length,a=i[r]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new it(i,this._parents)}function Cs(t){return new Array(t.length)}function Ql(){return new it(this._enter||this._groups.map(Cs),this._parents)}function _n(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}_n.prototype={constructor:_n,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Jl(t){return function(){return t}}function Kl(t,e,n,i,r,o){for(var s=0,a,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],i[s]=a):n[s]=new _n(t,o[s]);for(;s<l;++s)(a=e[s])&&(r[s]=a)}function tc(t,e,n,i,r,o,s){var a,l,c=new Map,h=e.length,u=o.length,f=new Array(h),d;for(a=0;a<h;++a)(l=e[a])&&(f[a]=d=s.call(l,l.__data__,a,e)+"",c.has(d)?r[a]=l:c.set(d,l));for(a=0;a<u;++a)d=s.call(t,o[a],a,o)+"",(l=c.get(d))?(i[a]=l,l.__data__=o[a],c.delete(d)):n[a]=new _n(t,o[a]);for(a=0;a<h;++a)(l=e[a])&&c.get(f[a])===l&&(r[a]=l)}function ec(t){return t.__data__}function nc(t,e){if(!arguments.length)return Array.from(this,ec);var n=e?tc:Kl,i=this._parents,r=this._groups;typeof t!="function"&&(t=Jl(t));for(var o=r.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var h=i[c],u=r[c],f=u.length,d=ic(t.call(h,h&&h.__data__,c,i)),g=d.length,p=a[c]=new Array(g),v=s[c]=new Array(g),y=l[c]=new Array(f);n(h,u,p,v,y,d,e);for(var x=0,_=0,S,k;x<g;++x)if(S=p[x]){for(x>=_&&(_=x+1);!(k=v[_])&&++_<g;);S._next=k||null}}return s=new it(s,i),s._enter=a,s._exit=l,s}function ic(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function rc(){return new it(this._exit||this._groups.map(Cs),this._parents)}function oc(t,e,n){var i=this.enter(),r=this,o=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(r=e(r),r&&(r=r.selection())),n==null?o.remove():n(o),i&&r?i.merge(r).order():r}function sc(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,r=n.length,o=i.length,s=Math.min(r,o),a=new Array(r),l=0;l<s;++l)for(var c=n[l],h=i[l],u=c.length,f=a[l]=new Array(u),d,g=0;g<u;++g)(d=c[g]||h[g])&&(f[g]=d);for(;l<r;++l)a[l]=n[l];return new it(a,this._parents)}function ac(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i=t[e],r=i.length-1,o=i[r],s;--r>=0;)(s=i[r])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function lc(t){t||(t=cc);function e(u,f){return u&&f?t(u.__data__,f.__data__):!u-!f}for(var n=this._groups,i=n.length,r=new Array(i),o=0;o<i;++o){for(var s=n[o],a=s.length,l=r[o]=new Array(a),c,h=0;h<a;++h)(c=s[h])&&(l[h]=c);l.sort(e)}return new it(r,this._parents).order()}function cc(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function uc(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function hc(){return Array.from(this)}function fc(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,o=i.length;r<o;++r){var s=i[r];if(s)return s}return null}function dc(){let t=0;for(const e of this)++t;return t}function pc(){return!this.node()}function gc(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r=e[n],o=0,s=r.length,a;o<s;++o)(a=r[o])&&t.call(a,a.__data__,o,r);return this}function mc(t){return function(){this.removeAttribute(t)}}function vc(t){return function(){this.removeAttributeNS(t.space,t.local)}}function _c(t,e){return function(){this.setAttribute(t,e)}}function yc(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function xc(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function bc(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function wc(t,e){var n=Vn(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((e==null?n.local?vc:mc:typeof e=="function"?n.local?bc:xc:n.local?yc:_c)(n,e))}function Ms(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function kc(t){return function(){this.style.removeProperty(t)}}function Tc(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Sc(t,e,n){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function Cc(t,e,n){return arguments.length>1?this.each((e==null?kc:typeof e=="function"?Sc:Tc)(t,e,n??"")):se(this.node(),t)}function se(t,e){return t.style.getPropertyValue(e)||Ms(t).getComputedStyle(t,null).getPropertyValue(e)}function Mc(t){return function(){delete this[t]}}function Ac(t,e){return function(){this[t]=e}}function $c(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Ec(t,e){return arguments.length>1?this.each((e==null?Mc:typeof e=="function"?$c:Ac)(t,e)):this.node()[t]}function As(t){return t.trim().split(/^|\s+/)}function ir(t){return t.classList||new $s(t)}function $s(t){this._node=t,this._names=As(t.getAttribute("class")||"")}$s.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Es(t,e){for(var n=ir(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function Ns(t,e){for(var n=ir(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function Nc(t){return function(){Es(this,t)}}function Oc(t){return function(){Ns(this,t)}}function Dc(t,e){return function(){(e.apply(this,arguments)?Es:Ns)(this,t)}}function Rc(t,e){var n=As(t+"");if(arguments.length<2){for(var i=ir(this.node()),r=-1,o=n.length;++r<o;)if(!i.contains(n[r]))return!1;return!0}return this.each((typeof e=="function"?Dc:e?Nc:Oc)(n,e))}function Fc(){this.textContent=""}function zc(t){return function(){this.textContent=t}}function Pc(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Lc(t){return arguments.length?this.each(t==null?Fc:(typeof t=="function"?Pc:zc)(t)):this.node().textContent}function Bc(){this.innerHTML=""}function Ic(t){return function(){this.innerHTML=t}}function Uc(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Hc(t){return arguments.length?this.each(t==null?Bc:(typeof t=="function"?Uc:Ic)(t)):this.node().innerHTML}function Vc(){this.nextSibling&&this.parentNode.appendChild(this)}function Wc(){return this.each(Vc)}function Yc(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Xc(){return this.each(Yc)}function qc(t){var e=typeof t=="function"?t:ws(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Gc(){return null}function Zc(t,e){var n=typeof t=="function"?t:ws(t),i=e==null?Gc:typeof e=="function"?e:nr(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function jc(){var t=this.parentNode;t&&t.removeChild(this)}function Qc(){return this.each(jc)}function Jc(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Kc(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function tu(t){return this.select(t?Kc:Jc)}function eu(t){return arguments.length?this.property("__data__",t):this.node().__data__}function nu(t){return function(e){t.call(this,e,this.__data__)}}function iu(t){return t.trim().split(/^|\s+/).map(function(e){var n="",i=e.indexOf(".");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{type:e,name:n}})}function ru(t){return function(){var e=this.__on;if(e){for(var n=0,i=-1,r=e.length,o;n<r;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++i]=o;++i?e.length=i:delete this.__on}}}function ou(t,e,n){return function(){var i=this.__on,r,o=nu(e);if(i){for(var s=0,a=i.length;s<a;++s)if((r=i[s]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),r.value=e;return}}this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function su(t,e,n){var i=iu(t+""),r,o=i.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,h;l<c;++l)for(r=0,h=a[l];r<o;++r)if((s=i[r]).type===h.type&&s.name===h.name)return h.value}return}for(a=e?ou:ru,r=0;r<o;++r)this.each(a(i[r],e,n));return this}function Os(t,e,n){var i=Ms(t),r=i.CustomEvent;typeof r=="function"?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function au(t,e){return function(){return Os(this,t,e)}}function lu(t,e){return function(){return Os(this,t,e.apply(this,arguments))}}function cu(t,e){return this.each((typeof e=="function"?lu:au)(t,e))}function*uu(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,o=i.length,s;r<o;++r)(s=i[r])&&(yield s)}var Ds=[null];function it(t,e){this._groups=t,this._parents=e}function Ue(){return new it([[document.documentElement]],Ds)}function hu(){return this}it.prototype=Ue.prototype={constructor:it,select:Pl,selectAll:Ul,selectChild:Yl,selectChildren:Zl,filter:jl,data:nc,enter:Ql,exit:rc,join:oc,merge:sc,selection:hu,order:ac,sort:lc,call:uc,nodes:hc,node:fc,size:dc,empty:pc,each:gc,attr:wc,style:Cc,property:Ec,classed:Rc,text:Lc,html:Hc,raise:Wc,lower:Xc,append:qc,insert:Zc,remove:Qc,clone:tu,datum:eu,on:su,dispatch:cu,[Symbol.iterator]:uu};function j(t){return typeof t=="string"?new it([[document.querySelector(t)]],[document.documentElement]):new it([[t]],Ds)}function fu(t){let e;for(;e=t.sourceEvent;)t=e;return t}function Wr(t,e){if(t=fu(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=t.clientX,i.y=t.clientY,i=i.matrixTransform(e.getScreenCTM().inverse()),[i.x,i.y]}if(e.getBoundingClientRect){var r=e.getBoundingClientRect();return[t.clientX-r.left-e.clientLeft,t.clientY-r.top-e.clientTop]}}return[t.pageX,t.pageY]}var Ce;(function(t){t[t.SVG=0]="SVG",t[t.HTML=1]="HTML"})(Ce||(Ce={}));var ae;(function(t){t.Fit="fit",t.Extend="extend",t.FitWidth="fit_width"})(ae||(ae={}));function Me(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function du(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function rr(t){let e,n,i;t.length!==2?(e=Me,n=(a,l)=>Me(t(a),l),i=(a,l)=>t(a)-l):(e=t===Me||t===du?t:pu,n=t,i=t);function r(a,l,c=0,h=a.length){if(c<h){if(e(l,l)!==0)return h;do{const u=c+h>>>1;n(a[u],l)<0?c=u+1:h=u}while(c<h)}return c}function o(a,l,c=0,h=a.length){if(c<h){if(e(l,l)!==0)return h;do{const u=c+h>>>1;n(a[u],l)<=0?c=u+1:h=u}while(c<h)}return c}function s(a,l,c=0,h=a.length){const u=r(a,l,c,h-1);return u>c&&i(a[u-1],l)>-i(a[u],l)?u-1:u}return{left:r,center:s,right:o}}function pu(){return 0}function Rs(t){return t===null?NaN:+t}const gu=rr(Me),Wn=gu.right;rr(Rs).center;function mu(t,e){let n,i;for(const r of t)r!=null&&(n===void 0?r>=r&&(n=i=r):(n>r&&(n=r),i<r&&(i=r)));return[n,i]}class Yr extends Map{constructor(e,n=yu){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[i,r]of e)this.set(i,r)}get(e){return super.get(Xr(this,e))}has(e){return super.has(Xr(this,e))}set(e,n){return super.set(vu(this,e),n)}delete(e){return super.delete(_u(this,e))}}function Xr({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):n}function vu({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):(t.set(i,n),n)}function _u({_intern:t,_key:e},n){const i=e(n);return t.has(i)&&(n=t.get(i),t.delete(i)),n}function yu(t){return t!==null&&typeof t=="object"?t.valueOf():t}const xu=Math.sqrt(50),bu=Math.sqrt(10),wu=Math.sqrt(2);function yn(t,e,n){const i=(e-t)/Math.max(0,n),r=Math.floor(Math.log10(i)),o=i/Math.pow(10,r),s=o>=xu?10:o>=bu?5:o>=wu?2:1;let a,l,c;return r<0?(c=Math.pow(10,-r)/s,a=Math.round(t*c),l=Math.round(e*c),a/c<t&&++a,l/c>e&&--l,c=-c):(c=Math.pow(10,r)*s,a=Math.round(t/c),l=Math.round(e/c),a*c<t&&++a,l*c>e&&--l),l<a&&.5<=n&&n<2?yn(t,e,n*2):[a,l,c]}function Si(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const i=e<t,[r,o,s]=i?yn(e,t,n):yn(t,e,n);if(!(o>=r))return[];const a=o-r+1,l=new Array(a);if(i)if(s<0)for(let c=0;c<a;++c)l[c]=(o-c)/-s;else for(let c=0;c<a;++c)l[c]=(o-c)*s;else if(s<0)for(let c=0;c<a;++c)l[c]=(r+c)/-s;else for(let c=0;c<a;++c)l[c]=(r+c)*s;return l}function Ci(t,e,n){return e=+e,t=+t,n=+n,yn(t,e,n)[2]}function Mi(t,e,n){e=+e,t=+t,n=+n;const i=e<t,r=i?Ci(e,t,n):Ci(t,e,n);return(i?-1:1)*(r<0?1/-r:r)}function qr(t,e){let n;if(e===void 0)for(const i of t)i!=null&&(n<i||n===void 0&&i>=i)&&(n=i);else{let i=-1;for(let r of t)(r=e(r,++i,t))!=null&&(n<r||n===void 0&&r>=r)&&(n=r)}return n}function Gr(t,e){let n;if(e===void 0)for(const i of t)i!=null&&(n>i||n===void 0&&i>=i)&&(n=i);else{let i=-1;for(let r of t)(r=e(r,++i,t))!=null&&(n>r||n===void 0&&r>=r)&&(n=r)}return n}function ku(t,e,n=Rs){if(!(!(i=t.length)||isNaN(e=+e))){if(e<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,r=(i-1)*e,o=Math.floor(r),s=+n(t[o],o,t),a=+n(t[o+1],o+1,t);return s+(a-s)*(r-o)}}function*Tu(t){for(const e of t)yield*e}function Su(t){return Array.from(Tu(t))}function Cu(t,e,n){t=+t,e=+e,n=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+n;for(var i=-1,r=Math.max(0,Math.ceil((e-t)/n))|0,o=new Array(r);++i<r;)o[i]=t+i*n;return o}function Mu(t,e){let n=0;if(e===void 0)for(let i of t)(i=+i)&&(n+=i);else{let i=-1;for(let r of t)(r=+e(r,++i,t))&&(n+=r)}return n}function Au(t,e,n){var i={},r=i.noTrailing,o=r===void 0?!1:r,s=i.noLeading,a=s===void 0?!1:s,l=i.debounceMode,c=l===void 0?void 0:l,h,u=!1,f=0;function d(){h&&clearTimeout(h)}function g(v){var y=v||{},x=y.upcomingOnly,_=x===void 0?!1:x;d(),u=!_}function p(){for(var v=arguments.length,y=new Array(v),x=0;x<v;x++)y[x]=arguments[x];var _=this,S=Date.now()-f;if(u)return;function k(){f=Date.now(),e.apply(_,y)}function w(){h=void 0}!a&&c&&!h&&k(),d(),c===void 0&&S>t?a?(f=Date.now(),o||(h=setTimeout(c?w:k,t))):k():o!==!0&&(h=setTimeout(c?w:k,c===void 0?t-S:t))}return p.cancel=g,p}const ee=t=>typeof t=="number",Fs=t=>typeof t=="function",or=t=>Array.isArray(t),$u=t=>t instanceof Object,xn=t=>t.constructor.name!=="Function"&&t.constructor.name!=="Object",Zr=t=>$u(t)&&!or(t)&&!Fs(t)&&!xn(t),Ee=(t,e,n=[],i=new Set)=>{if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;if(i.has(t))return!0;i.add(t);for(let r=0;r<t.length;r++)if(!Ee(t[r],e[r],n,i))return!1;return!0}if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(typeof t=="object"&&t!==null&&e!==null){if(typeof e!="object")return!1;if(t===e)return!0;const r=Object.keys(t).filter(s=>!n.includes(s)),o=Object.keys(e).filter(s=>!n.includes(s));if(r.length!==o.length)return!1;if(i.has(t))return!0;i.add(t);for(const s of r)if(!Ee(t[s],e[s],n,i))return!1;return!0}return t===e},Ai=t=>t.flat(),bn=(t,e=new Map)=>{if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array){const n=[];e.set(t,n);for(const i of t)n.push(e.has(i)?e.get(i):bn(i,e));return n}if(xn(t))return t;if(t instanceof Object){const n={};e.set(t,n);const i=t;return Object.keys(t).reduce((r,o)=>(r[o]=e.has(i[o])?e.get(i[o]):bn(i[o],e),r),n),n}return t},Wt=(t,e,n=new Map)=>{if(!t||!e||t===e)return t;const i=xn(t)?t:bn(t);return n.has(e)?n.get(e):(n.set(e,i),Object.keys(e).forEach(r=>{r==="__proto__"||r==="constructor"||(Zr(t[r])&&Zr(e[r])?i[r]=Wt(t[r],e[r],n):xn(e)?i[r]=e:i[r]=bn(e[r]))}),i)},wn=(t,e,n)=>Au(e,t);function sr(t,e,n){return Fs(e)?e(t,n):e}function ar(t,e,n){return sr(t,e,n)}function Ne(t,e,n){return sr(t,e,n)}function ge(t){return t.filter(e=>e&&!ee(e))}function te(t,e,n){return Math.min(Math.max(t,e),n)}function Eu(t,...e){return t?Gr(t,(i,r)=>Gr(e,o=>Ne(i,o,r))):void 0}function Nu(t,...e){return t?qr(t,(i,r)=>qr(e,o=>Ne(i,o,r))):void 0}function ai(t,...e){return[Eu(t,...e),Nu(t,...e)]}function Ou(t,e,n){return t.filter((r,o)=>{const s=Ne(r,n,o);return s>=e[0]&&s<=e[1]})}var Lt=[],Du=function(){return Lt.some(function(t){return t.activeTargets.length>0})},Ru=function(){return Lt.some(function(t){return t.skippedTargets.length>0})},jr="ResizeObserver loop completed with undelivered notifications.",Fu=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:jr}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=jr),window.dispatchEvent(t)},Oe;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Oe||(Oe={}));var Bt=function(t){return Object.freeze(t)},zu=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,Bt(this)}return t}(),zs=function(){function t(e,n,i,r){return this.x=e,this.y=n,this.width=i,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Bt(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,i=e.y,r=e.top,o=e.right,s=e.bottom,a=e.left,l=e.width,c=e.height;return{x:n,y:i,top:r,right:o,bottom:s,left:a,width:l,height:c}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),lr=function(t){return t instanceof SVGElement&&"getBBox"in t},Ps=function(t){if(lr(t)){var e=t.getBBox(),n=e.width,i=e.height;return!n&&!i}var r=t,o=r.offsetWidth,s=r.offsetHeight;return!(o||s||t.getClientRects().length)},Qr=function(t){var e;if(t instanceof Element)return!0;var n=(e=t==null?void 0:t.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},Pu=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Ae=typeof window<"u"?window:{},Ze=new WeakMap,Jr=/auto|scroll/,Lu=/^tb|vertical/,Bu=/msie|trident/i.test(Ae.navigator&&Ae.navigator.userAgent),pt=function(t){return parseFloat(t||"0")},ne=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new zu((n?e:t)||0,(n?t:e)||0)},Kr=Bt({devicePixelContentBoxSize:ne(),borderBoxSize:ne(),contentBoxSize:ne(),contentRect:new zs(0,0,0,0)}),Ls=function(t,e){if(e===void 0&&(e=!1),Ze.has(t)&&!e)return Ze.get(t);if(Ps(t))return Ze.set(t,Kr),Kr;var n=getComputedStyle(t),i=lr(t)&&t.ownerSVGElement&&t.getBBox(),r=!Bu&&n.boxSizing==="border-box",o=Lu.test(n.writingMode||""),s=!i&&Jr.test(n.overflowY||""),a=!i&&Jr.test(n.overflowX||""),l=i?0:pt(n.paddingTop),c=i?0:pt(n.paddingRight),h=i?0:pt(n.paddingBottom),u=i?0:pt(n.paddingLeft),f=i?0:pt(n.borderTopWidth),d=i?0:pt(n.borderRightWidth),g=i?0:pt(n.borderBottomWidth),p=i?0:pt(n.borderLeftWidth),v=u+c,y=l+h,x=p+d,_=f+g,S=a?t.offsetHeight-_-t.clientHeight:0,k=s?t.offsetWidth-x-t.clientWidth:0,w=r?v+x:0,T=r?y+_:0,L=i?i.width:pt(n.width)-w-k,R=i?i.height:pt(n.height)-T-S,J=L+v+k+x,A=R+y+S+_,B=Bt({devicePixelContentBoxSize:ne(Math.round(L*devicePixelRatio),Math.round(R*devicePixelRatio),o),borderBoxSize:ne(J,A,o),contentBoxSize:ne(L,R,o),contentRect:new zs(u,l,L,R)});return Ze.set(t,B),B},Bs=function(t,e,n){var i=Ls(t,n),r=i.borderBoxSize,o=i.contentBoxSize,s=i.devicePixelContentBoxSize;switch(e){case Oe.DEVICE_PIXEL_CONTENT_BOX:return s;case Oe.BORDER_BOX:return r;default:return o}},Iu=function(){function t(e){var n=Ls(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=Bt([n.borderBoxSize]),this.contentBoxSize=Bt([n.contentBoxSize]),this.devicePixelContentBoxSize=Bt([n.devicePixelContentBoxSize])}return t}(),Is=function(t){if(Ps(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},Uu=function(){var t=1/0,e=[];Lt.forEach(function(s){if(s.activeTargets.length!==0){var a=[];s.activeTargets.forEach(function(c){var h=new Iu(c.target),u=Is(c.target);a.push(h),c.lastReportedSize=Bs(c.target,c.observedBox),u<t&&(t=u)}),e.push(function(){s.callback.call(s.observer,a,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var n=0,i=e;n<i.length;n++){var r=i[n];r()}return t},to=function(t){Lt.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(r){r.isActive()&&(Is(r.target)>t?n.activeTargets.push(r):n.skippedTargets.push(r))})})},Hu=function(){var t=0;for(to(t);Du();)t=Uu(),to(t);return Ru()&&Fu(),t>0},li,Us=[],Vu=function(){return Us.splice(0).forEach(function(t){return t()})},Wu=function(t){if(!li){var e=0,n=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return Vu()}).observe(n,i),li=function(){n.textContent="".concat(e?e--:e++)}}Us.push(t),li()},Yu=function(t){Wu(function(){requestAnimationFrame(t)})},rn=0,Xu=function(){return!!rn},qu=250,Gu={attributes:!0,characterData:!0,childList:!0,subtree:!0},eo=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],no=function(t){return t===void 0&&(t=0),Date.now()+t},ci=!1,Zu=function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=qu),!ci){ci=!0;var i=no(e);Yu(function(){var r=!1;try{r=Hu()}finally{if(ci=!1,e=i-no(),!Xu())return;r?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,Gu)};document.body?n():Ae.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),eo.forEach(function(n){return Ae.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),eo.forEach(function(n){return Ae.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),$i=new Zu,io=function(t){!rn&&t>0&&$i.start(),rn+=t,!rn&&$i.stop()},ju=function(t){return!lr(t)&&!Pu(t)&&getComputedStyle(t).display==="inline"},Qu=function(){function t(e,n){this.target=e,this.observedBox=n||Oe.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=Bs(this.target,this.observedBox,!0);return ju(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),Ju=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),je=new WeakMap,ro=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},Qe=function(){function t(){}return t.connect=function(e,n){var i=new Ju(e,n);je.set(e,i)},t.observe=function(e,n,i){var r=je.get(e),o=r.observationTargets.length===0;ro(r.observationTargets,n)<0&&(o&&Lt.push(r),r.observationTargets.push(new Qu(n,i&&i.box)),io(1),$i.schedule())},t.unobserve=function(e,n){var i=je.get(e),r=ro(i.observationTargets,n),o=i.observationTargets.length===1;r>=0&&(o&&Lt.splice(Lt.indexOf(i),1),i.observationTargets.splice(r,1),io(-1))},t.disconnect=function(e){var n=this,i=je.get(e);i.observationTargets.slice().forEach(function(r){return n.unobserve(e,r.target)}),i.activeTargets.splice(0,i.activeTargets.length)},t}(),Ku=function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Qe.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Qr(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Qe.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Qr(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Qe.unobserve(this,e)},t.prototype.disconnect=function(){Qe.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const th=globalThis.ResizeObserver||Ku,Hs={duration:void 0,margin:{top:0,bottom:0,left:0,right:0},padding:{top:0,bottom:0,left:0,right:0},sizing:ae.Fit,width:void 0,height:void 0,svgDefs:void 0,ariaLabel:void 0};class De{constructor(e){this._defaultConfig=Hs,this._isFirstRender=!0,this._renderAnimationFrameId=null,this._container=e;const n=j(this._container);n.attr("role","figure"),this.svg=n.append("svg").style("display","block").attr("xmlns","http://www.w3.org/2000/svg").attr("height",De.DEFAULT_CONTAINER_HEIGHT).attr("aria-hidden",!0),this._svgDefs=this.svg.append("defs"),this._svgDefsExternal=this.svg.append("defs"),this.element=this.svg.node()}updateContainer(e){var n;this.prevConfig=this.config,this.config=Wt(this._defaultConfig,e),(e==null?void 0:e.svgDefs)!==((n=this.prevConfig)===null||n===void 0?void 0:n.svgDefs)&&(this._svgDefsExternal.selectAll("*").remove(),this._svgDefsExternal.html(e.svgDefs))}_preRender(){}_render(e){const{config:n}=this;j(this._container).attr("aria-label",n.ariaLabel),this._isFirstRender=!1}render(e=this.config.duration){const n=this.config.width||this.containerWidth,i=this.config.height||this.containerHeight;this.svg.attr("width",n).attr("height",i),this._resizeObserver||this._setUpResizeObserver(),cancelAnimationFrame(this._renderAnimationFrameId),this._renderAnimationFrameId=requestAnimationFrame(()=>{this._preRender(),this._render(e)})}get containerWidth(){return this.config.width?this.element.clientWidth:this._container.clientWidth||this._container.getBoundingClientRect().width}get containerHeight(){return this.config.height?this.element.clientHeight:this._container.clientHeight||this._container.getBoundingClientRect().height||De.DEFAULT_CONTAINER_HEIGHT}get width(){return te(this.containerWidth-this.config.margin.left-this.config.margin.right,0,Number.POSITIVE_INFINITY)}get height(){return te(this.containerHeight-this.config.margin.top-this.config.margin.bottom,0,Number.POSITIVE_INFINITY)}_removeAllChildren(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild)}_onResize(){const{config:e}=this;(e.sizing===ae.Fit||e.sizing===ae.FitWidth)&&this.render(0)}_setUpResizeObserver(){if(this._resizeObserver)return;const e=this._container.getBoundingClientRect();this._containerSize={width:e.width,height:e.height},this._resizeObserver=new th((n,i)=>{cancelAnimationFrame(this._resizeObserverAnimationFrameId),this._resizeObserverAnimationFrameId=requestAnimationFrame(()=>{const r=this._container.getBoundingClientRect(),o={width:r.width,height:r.height};!Ee(this._containerSize,o)&&o.width&&o.height&&(this._containerSize=o,this._onResize())})}),this._resizeObserver.observe(this._container)}destroy(){var e;cancelAnimationFrame(this._renderAnimationFrameId),cancelAnimationFrame(this._resizeObserverAnimationFrameId),(e=this._resizeObserver)===null||e===void 0||e.disconnect(),this.svg.remove()}}De.DEFAULT_CONTAINER_HEIGHT=300;function eh(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function nh(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var ih=function(){function t(n){var i=this;this._insertTag=function(r){var o;i.tags.length===0?i.insertionPoint?o=i.insertionPoint.nextSibling:i.prepend?o=i.container.firstChild:o=i.before:o=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(r,o),i.tags.push(r)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(i){i.forEach(this._insertTag)},e.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(nh(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=eh(r);try{o.insertRule(i,o.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(i));this.ctr++},e.flush=function(){this.tags.forEach(function(i){var r;return(r=i.parentNode)==null?void 0:r.removeChild(i)}),this.tags=[],this.ctr=0},t}(),X="-ms-",kn="-moz-",O="-webkit-",Vs="comm",cr="rule",ur="decl",rh="@import",Ws="@keyframes",oh="@layer",sh=Math.abs,Yn=String.fromCharCode,ah=Object.assign;function lh(t,e){return Y(t,0)^45?(((e<<2^Y(t,0))<<2^Y(t,1))<<2^Y(t,2))<<2^Y(t,3):0}function Ys(t){return t.trim()}function ch(t,e){return(t=e.exec(t))?t[0]:t}function D(t,e,n){return t.replace(e,n)}function Ei(t,e){return t.indexOf(e)}function Y(t,e){return t.charCodeAt(e)|0}function Re(t,e,n){return t.slice(e,n)}function mt(t){return t.length}function hr(t){return t.length}function Je(t,e){return e.push(t),t}function uh(t,e){return t.map(e).join("")}var Xn=1,le=1,Xs=0,Q=0,U=0,de="";function qn(t,e,n,i,r,o,s){return{value:t,root:e,parent:n,type:i,props:r,children:o,line:Xn,column:le,length:s,return:""}}function me(t,e){return ah(qn("",null,null,"",null,null,0),t,{length:-t.length},e)}function hh(){return U}function fh(){return U=Q>0?Y(de,--Q):0,le--,U===10&&(le=1,Xn--),U}function nt(){return U=Q<Xs?Y(de,Q++):0,le++,U===10&&(le=1,Xn++),U}function _t(){return Y(de,Q)}function on(){return Q}function He(t,e){return Re(de,t,e)}function Fe(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function qs(t){return Xn=le=1,Xs=mt(de=t),Q=0,[]}function Gs(t){return de="",t}function sn(t){return Ys(He(Q-1,Ni(t===91?t+2:t===40?t+1:t)))}function dh(t){for(;(U=_t())&&U<33;)nt();return Fe(t)>2||Fe(U)>3?"":" "}function ph(t,e){for(;--e&&nt()&&!(U<48||U>102||U>57&&U<65||U>70&&U<97););return He(t,on()+(e<6&&_t()==32&&nt()==32))}function Ni(t){for(;nt();)switch(U){case t:return Q;case 34:case 39:t!==34&&t!==39&&Ni(U);break;case 40:t===41&&Ni(t);break;case 92:nt();break}return Q}function gh(t,e){for(;nt()&&t+U!==57;)if(t+U===84&&_t()===47)break;return"/*"+He(e,Q-1)+"*"+Yn(t===47?t:nt())}function mh(t){for(;!Fe(_t());)nt();return He(t,Q)}function vh(t){return Gs(an("",null,null,null,[""],t=qs(t),0,[0],t))}function an(t,e,n,i,r,o,s,a,l){for(var c=0,h=0,u=s,f=0,d=0,g=0,p=1,v=1,y=1,x=0,_="",S=r,k=o,w=i,T=_;v;)switch(g=x,x=nt()){case 40:if(g!=108&&Y(T,u-1)==58){Ei(T+=D(sn(x),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:T+=sn(x);break;case 9:case 10:case 13:case 32:T+=dh(g);break;case 92:T+=ph(on()-1,7);continue;case 47:switch(_t()){case 42:case 47:Je(_h(gh(nt(),on()),e,n),l);break;default:T+="/"}break;case 123*p:a[c++]=mt(T)*y;case 125*p:case 59:case 0:switch(x){case 0:case 125:v=0;case 59+h:y==-1&&(T=D(T,/\f/g,"")),d>0&&mt(T)-u&&Je(d>32?so(T+";",i,n,u-1):so(D(T," ","")+";",i,n,u-2),l);break;case 59:T+=";";default:if(Je(w=oo(T,e,n,c,h,r,a,_,S=[],k=[],u),o),x===123)if(h===0)an(T,e,w,w,S,o,u,a,k);else switch(f===99&&Y(T,3)===110?100:f){case 100:case 108:case 109:case 115:an(t,w,w,i&&Je(oo(t,w,w,0,0,r,a,_,r,S=[],u),k),r,k,u,a,i?S:k);break;default:an(T,w,w,w,[""],k,0,a,k)}}c=h=d=0,p=y=1,_=T="",u=s;break;case 58:u=1+mt(T),d=g;default:if(p<1){if(x==123)--p;else if(x==125&&p++==0&&fh()==125)continue}switch(T+=Yn(x),x*p){case 38:y=h>0?1:(T+="\f",-1);break;case 44:a[c++]=(mt(T)-1)*y,y=1;break;case 64:_t()===45&&(T+=sn(nt())),f=_t(),h=u=mt(_=T+=mh(on())),x++;break;case 45:g===45&&mt(T)==2&&(p=0)}}return o}function oo(t,e,n,i,r,o,s,a,l,c,h){for(var u=r-1,f=r===0?o:[""],d=hr(f),g=0,p=0,v=0;g<i;++g)for(var y=0,x=Re(t,u+1,u=sh(p=s[g])),_=t;y<d;++y)(_=Ys(p>0?f[y]+" "+x:D(x,/&\f/g,f[y])))&&(l[v++]=_);return qn(t,e,n,r===0?cr:a,l,c,h)}function _h(t,e,n){return qn(t,e,n,Vs,Yn(hh()),Re(t,2,-2),0)}function so(t,e,n,i){return qn(t,e,n,ur,Re(t,0,i),Re(t,i+1,-1),i)}function ie(t,e){for(var n="",i=hr(t),r=0;r<i;r++)n+=e(t[r],r,t,e)||"";return n}function yh(t,e,n,i){switch(t.type){case oh:if(t.children.length)break;case rh:case ur:return t.return=t.return||t.value;case Vs:return"";case Ws:return t.return=t.value+"{"+ie(t.children,i)+"}";case cr:t.value=t.props.join(",")}return mt(n=ie(t.children,i))?t.return=t.value+"{"+n+"}":""}function xh(t){var e=hr(t);return function(n,i,r,o){for(var s="",a=0;a<e;a++)s+=t[a](n,i,r,o)||"";return s}}function bh(t){return function(e){e.root||(e=e.return)&&t(e)}}function wh(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var kh=function(e,n,i){for(var r=0,o=0;r=o,o=_t(),r===38&&o===12&&(n[i]=1),!Fe(o);)nt();return He(e,Q)},Th=function(e,n){var i=-1,r=44;do switch(Fe(r)){case 0:r===38&&_t()===12&&(n[i]=1),e[i]+=kh(Q-1,n,i);break;case 2:e[i]+=sn(r);break;case 4:if(r===44){e[++i]=_t()===58?"&\f":"",n[i]=e[i].length;break}default:e[i]+=Yn(r)}while(r=nt());return e},Sh=function(e,n){return Gs(Th(qs(e),n))},ao=new WeakMap,Ch=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,i=e.parent,r=e.column===i.column&&e.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!ao.get(i))&&!r){ao.set(e,!0);for(var o=[],s=Sh(n,o),a=i.props,l=0,c=0;l<s.length;l++)for(var h=0;h<a.length;h++,c++)e.props[c]=o[l]?s[l].replace(/&\f/g,a[h]):a[h]+" "+s[l]}}},Mh=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function Zs(t,e){switch(lh(t,e)){case 5103:return O+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return O+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return O+t+kn+t+X+t+t;case 6828:case 4268:return O+t+X+t+t;case 6165:return O+t+X+"flex-"+t+t;case 5187:return O+t+D(t,/(\w+).+(:[^]+)/,O+"box-$1$2"+X+"flex-$1$2")+t;case 5443:return O+t+X+"flex-item-"+D(t,/flex-|-self/,"")+t;case 4675:return O+t+X+"flex-line-pack"+D(t,/align-content|flex-|-self/,"")+t;case 5548:return O+t+X+D(t,"shrink","negative")+t;case 5292:return O+t+X+D(t,"basis","preferred-size")+t;case 6060:return O+"box-"+D(t,"-grow","")+O+t+X+D(t,"grow","positive")+t;case 4554:return O+D(t,/([^-])(transform)/g,"$1"+O+"$2")+t;case 6187:return D(D(D(t,/(zoom-|grab)/,O+"$1"),/(image-set)/,O+"$1"),t,"")+t;case 5495:case 3959:return D(t,/(image-set\([^]*)/,O+"$1$`$1");case 4968:return D(D(t,/(.+:)(flex-)?(.*)/,O+"box-pack:$3"+X+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+O+t+t;case 4095:case 3583:case 4068:case 2532:return D(t,/(.+)-inline(.+)/,O+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(mt(t)-1-e>6)switch(Y(t,e+1)){case 109:if(Y(t,e+4)!==45)break;case 102:return D(t,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+kn+(Y(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Ei(t,"stretch")?Zs(D(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Y(t,e+1)!==115)break;case 6444:switch(Y(t,mt(t)-3-(~Ei(t,"!important")&&10))){case 107:return D(t,":",":"+O)+t;case 101:return D(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+O+(Y(t,14)===45?"inline-":"")+"box$3$1"+O+"$2$3$1"+X+"$2box$3")+t}break;case 5936:switch(Y(t,e+11)){case 114:return O+t+X+D(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return O+t+X+D(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return O+t+X+D(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return O+t+X+t+t}return t}var Ah=function(e,n,i,r){if(e.length>-1&&!e.return)switch(e.type){case ur:e.return=Zs(e.value,e.length);break;case Ws:return ie([me(e,{value:D(e.value,"@","@"+O)})],r);case cr:if(e.length)return uh(e.props,function(o){switch(ch(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ie([me(e,{props:[D(o,/:(read-\w+)/,":"+kn+"$1")]})],r);case"::placeholder":return ie([me(e,{props:[D(o,/:(plac\w+)/,":"+O+"input-$1")]}),me(e,{props:[D(o,/:(plac\w+)/,":"+kn+"$1")]}),me(e,{props:[D(o,/:(plac\w+)/,X+"input-$1")]})],r)}return""})}},$h=[Ah],Eh=function(e){var n=e.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(p){var v=p.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var r=e.stylisPlugins||$h,o={},s,a=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var v=p.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)o[v[y]]=!0;a.push(p)});var l,c=[Ch,Mh];{var h,u=[yh,bh(function(p){h.insert(p)})],f=xh(c.concat(r,u)),d=function(v){return ie(vh(v),f)};l=function(v,y,x,_){h=x,d(v?v+"{"+y.styles+"}":y.styles),_&&(g.inserted[y.name]=!0)}}var g={key:n,sheet:new ih({key:n,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return g.sheet.hydrate(a),g};function Nh(t){for(var e=0,n,i=0,r=t.length;r>=4;++i,r-=4)n=t.charCodeAt(i)&255|(t.charCodeAt(++i)&255)<<8|(t.charCodeAt(++i)&255)<<16|(t.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(r){case 3:e^=(t.charCodeAt(i+2)&255)<<16;case 2:e^=(t.charCodeAt(i+1)&255)<<8;case 1:e^=t.charCodeAt(i)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Oh={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Dh=/[A-Z]|^ms/g,Rh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,js=function(e){return e.charCodeAt(1)===45},lo=function(e){return e!=null&&typeof e!="boolean"},ui=wh(function(t){return js(t)?t:t.replace(Dh,"-$&").toLowerCase()}),co=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(Rh,function(i,r,o){return Nt={name:r,styles:o,next:Nt},r})}return Oh[e]!==1&&!js(e)&&typeof n=="number"&&n!==0?n+"px":n};function Tn(t,e,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return Nt={name:r.name,styles:r.styles,next:Nt},r.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Nt={name:s.name,styles:s.styles,next:Nt},s=s.next;var a=o.styles+";";return a}return Fh(t,e,n)}}var l=n;if(e==null)return l;var c=e[l];return c!==void 0?c:l}function Fh(t,e,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=Tn(t,e,n[r])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var a=s;e!=null&&e[a]!==void 0?i+=o+"{"+e[a]+"}":lo(a)&&(i+=ui(o)+":"+co(o,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(e==null||e[s[0]]===void 0))for(var l=0;l<s.length;l++)lo(s[l])&&(i+=ui(o)+":"+co(o,s[l])+";");else{var c=Tn(t,e,s);switch(o){case"animation":case"animationName":{i+=ui(o)+":"+c+";";break}default:i+=o+"{"+c+"}"}}}return i}var uo=/label:\s*([^\s;{]+)\s*(;|$)/g,Nt;function hi(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,r="";Nt=void 0;var o=t[0];if(o==null||o.raw===void 0)i=!1,r+=Tn(n,e,o);else{var s=o;r+=s[0]}for(var a=1;a<t.length;a++)if(r+=Tn(n,e,t[a]),i){var l=o;r+=l[a]}uo.lastIndex=0;for(var c="",h;(h=uo.exec(r))!==null;)c+="-"+h[1];var u=Nh(r)+c;return{name:u,styles:r,next:Nt}}function Qs(t,e,n){var i="";return n.split(" ").forEach(function(r){t[r]!==void 0?e.push(t[r]+";"):r&&(i+=r+" ")}),i}var zh=function(e,n,i){var r=e.key+"-"+n.name;e.registered[r]===void 0&&(e.registered[r]=n.styles)},Ph=function(e,n,i){zh(e,n);var r=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+r:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function ho(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function fo(t,e,n){var i=[],r=Qs(t,i,n);return i.length<2?n:r+e(i)}var Lh=function(e){var n=Eh(e);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var i=function(){for(var l=arguments.length,c=new Array(l),h=0;h<l;h++)c[h]=arguments[h];var u=hi(c,n.registered,void 0);return Ph(n,u),n.key+"-"+u.name},r=function(){for(var l=arguments.length,c=new Array(l),h=0;h<l;h++)c[h]=arguments[h];var u=hi(c,n.registered),f="animation-"+u.name;return ho(n,{name:u.name,styles:"@keyframes "+f+"{"+u.styles+"}"}),f},o=function(){for(var l=arguments.length,c=new Array(l),h=0;h<l;h++)c[h]=arguments[h];var u=hi(c,n.registered);ho(n,u)},s=function(){for(var l=arguments.length,c=new Array(l),h=0;h<l;h++)c[h]=arguments[h];return fo(n.registered,i,Bh(c))};return{css:i,cx:s,injectGlobal:o,keyframes:r,hydrate:function(l){l.forEach(function(c){n.inserted[c]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:Qs.bind(null,n.registered),merge:fo.bind(null,n.registered,i)}},Bh=function t(e){for(var n="",i=0;i<e.length;i++){var r=e[i];if(r!=null){var o=void 0;switch(typeof r){case"boolean":break;case"object":{if(Array.isArray(r))o=t(r);else{o="";for(var s in r)r[s]&&s&&(o&&(o+=" "),o+=s)}break}default:o=r}o&&(n&&(n+=" "),n+=o)}}return n},Js=Lh({key:"css"}),Ve=Js.injectGlobal,z=Js.css;function Ih(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var fi,po;function Uh(){return po||(po=1,fi=function(e,n){n||(n=[0,""]),e=String(e);var i=parseFloat(e,10);return n[0]=i,n[1]=e.match(/[\d.\-\+]*\s*(.*)/)[1]||"",n}),fi}var di,go;function Hh(){if(go)return di;go=1;var t=Uh();di=r;var e=i("in",document.body);function n(o,s){var a=t(getComputedStyle(o).getPropertyValue(s));return a[0]*r(a[1],o)}function i(o,s){var a=document.createElement("div");a.style.height="128"+o,s.appendChild(a);var l=n(a,"height")/128;return s.removeChild(a),l}function r(o,s){if(!o)return null;switch(s=s||document.body,o=(o+""||"px").trim().toLowerCase(),(s===window||s===document)&&(s=document.body),o){case"%":return s.clientHeight/100;case"ch":case"ex":return i(o,s);case"em":return n(s,"font-size");case"rem":return n(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return e;case"cm":return e/2.54;case"mm":return e/25.4;case"pt":return e/72;case"pc":return e/6;case"px":return 1}var a=t(o);if(!isNaN(a[0])&&a[1]){var l=r(a[1],s);return typeof l=="number"?a[0]*l:null}return null}return di}Hh();function Ks(){const t=()=>Math.floor((1+crypto.getRandomValues(new Uint32Array(1))[0])*65536).toString(16).substring(1);return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}function Vh(t,e){const n=t.substr(4,t.length-5);return getComputedStyle(e).getPropertyValue(n)}function Wh(t,e,n=0){const[i,r,o,s]=[t.x+n,t.y+t.height-2*n,t.x+t.width-2*n,t.y+n],[a,l,c,h]=[e.x+n,e.y+e.height-2*n,e.x+e.width-2*n,e.y+n];return!(r<h||l<s||o<a||c<i)}function fr(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function ta(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function We(){}var ze=.7,Sn=1/ze,re="\\s*([+-]?\\d+)\\s*",Pe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",yt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Yh=/^#([0-9a-f]{3,8})$/,Xh=new RegExp(`^rgb\\(${re},${re},${re}\\)$`),qh=new RegExp(`^rgb\\(${yt},${yt},${yt}\\)$`),Gh=new RegExp(`^rgba\\(${re},${re},${re},${Pe}\\)$`),Zh=new RegExp(`^rgba\\(${yt},${yt},${yt},${Pe}\\)$`),jh=new RegExp(`^hsl\\(${Pe},${yt},${yt}\\)$`),Qh=new RegExp(`^hsla\\(${Pe},${yt},${yt},${Pe}\\)$`),mo={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};fr(We,Yt,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:vo,formatHex:vo,formatHex8:Jh,formatHsl:Kh,formatRgb:_o,toString:_o});function vo(){return this.rgb().formatHex()}function Jh(){return this.rgb().formatHex8()}function Kh(){return ea(this).formatHsl()}function _o(){return this.rgb().formatRgb()}function Yt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Yh.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?yo(e):n===3?new G(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Ke(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Ke(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Xh.exec(t))?new G(e[1],e[2],e[3],1):(e=qh.exec(t))?new G(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Gh.exec(t))?Ke(e[1],e[2],e[3],e[4]):(e=Zh.exec(t))?Ke(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=jh.exec(t))?wo(e[1],e[2]/100,e[3]/100,1):(e=Qh.exec(t))?wo(e[1],e[2]/100,e[3]/100,e[4]):mo.hasOwnProperty(t)?yo(mo[t]):t==="transparent"?new G(NaN,NaN,NaN,0):null}function yo(t){return new G(t>>16&255,t>>8&255,t&255,1)}function Ke(t,e,n,i){return i<=0&&(t=e=n=NaN),new G(t,e,n,i)}function tf(t){return t instanceof We||(t=Yt(t)),t?(t=t.rgb(),new G(t.r,t.g,t.b,t.opacity)):new G}function Oi(t,e,n,i){return arguments.length===1?tf(t):new G(t,e,n,i??1)}function G(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}fr(G,Oi,ta(We,{brighter(t){return t=t==null?Sn:Math.pow(Sn,t),new G(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?ze:Math.pow(ze,t),new G(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new G(It(this.r),It(this.g),It(this.b),Cn(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:xo,formatHex:xo,formatHex8:ef,formatRgb:bo,toString:bo}));function xo(){return`#${Ft(this.r)}${Ft(this.g)}${Ft(this.b)}`}function ef(){return`#${Ft(this.r)}${Ft(this.g)}${Ft(this.b)}${Ft((isNaN(this.opacity)?1:this.opacity)*255)}`}function bo(){const t=Cn(this.opacity);return`${t===1?"rgb(":"rgba("}${It(this.r)}, ${It(this.g)}, ${It(this.b)}${t===1?")":`, ${t})`}`}function Cn(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function It(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ft(t){return t=It(t),(t<16?"0":"")+t.toString(16)}function wo(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new ut(t,e,n,i)}function ea(t){if(t instanceof ut)return new ut(t.h,t.s,t.l,t.opacity);if(t instanceof We||(t=Yt(t)),!t)return new ut;if(t instanceof ut)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),o=Math.max(e,n,i),s=NaN,a=o-r,l=(o+r)/2;return a?(e===o?s=(n-i)/a+(n<i)*6:n===o?s=(i-e)/a+2:s=(e-n)/a+4,a/=l<.5?o+r:2-o-r,s*=60):a=l>0&&l<1?0:s,new ut(s,a,l,t.opacity)}function dr(t,e,n,i){return arguments.length===1?ea(t):new ut(t,e,n,i??1)}function ut(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}fr(ut,dr,ta(We,{brighter(t){return t=t==null?Sn:Math.pow(Sn,t),new ut(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?ze:Math.pow(ze,t),new ut(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new G(pi(t>=240?t-240:t+120,r,i),pi(t,r,i),pi(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new ut(ko(this.h),tn(this.s),tn(this.l),Cn(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(){const t=Cn(this.opacity);return`${t===1?"hsl(":"hsla("}${ko(this.h)}, ${tn(this.s)*100}%, ${tn(this.l)*100}%${t===1?")":`, ${t})`}`}}));function ko(t){return t=(t||0)%360,t<0?t+360:t}function tn(t){return Math.max(0,Math.min(1,t||0))}function pi(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const be=(globalThis==null?void 0:globalThis.UNOVIS_COLORS)||["#4D8CFD","#FF6B7E","#F4B83E","#A6CC74","#00C19A","#6859BE"],nf=(globalThis==null?void 0:globalThis.UNOVIS_COLORS_DARK)||["#4D8CFD","#FF6B7E","#FFC16D","#A6CC74","#00C19A","#7887E0"],$t=t=>`--vis-${ee(t)?`color${t%be.length}`:t}`;function rf(t,e=.4){const n=dr(t);return n.l=n.l*(1+e),n.formatHex()}function of(t,e=.4,n=.6){const i=dr(t);return i.s=i.s*(1-n),i.l=i.l*(1-e),i.formatHex()}const Le=10,Di=[{id:"stripes-diagonal",svg:'<path d="M-1,1 l2,-2 M0,10 l10,-10 M9,11 l2,-2" stroke="#000"/>'},{id:"dots",svg:'<path d="m0-1.5a1 1 0 010 3m10-3a1 1 0 000 3M5 3.5a1 1 0 010 3 1 1 0 010-3M0 8.5 a1 1 0 010 3m10-3a1 1 0 000 3" fill"#000"/>'},{id:"stripes-vertical",svg:'<path d="M 5,-1 L5,11" stroke="#000"/>'},{id:"crosshatch",svg:'<path d="M0 0L10 10ZM10 0L0 10Z" stroke="#000"/>'},{id:"waves",svg:'<path d="M0 4Q2.5 1 5 4 7.5 7 10 4v2Q7.5 9 5 6 2.5 3 0 6Z" fill="#000"/>'},{id:"circles",svg:'<circle cx="5" cy="5" r="3" stroke="#000" fill="#fff"/>'}],Ri=[{id:"circle",marker:'<circle cx="5" cy="5" r="5"/>',dashArray:[]},{id:"triangle",marker:'<path d="M5,0 L10,9 L0,9Z">',dashArray:[9,1]},{id:"diamond",marker:'<path d="M 0 5 L5 0 L 10 5 L 5 10 L 0 5Z">',dashArray:[2]},{id:"arrow",marker:'<path d="M4 0 0 0 6 5 0 10 4 10 10 5Z">',dashArray:[2,3,8,3]},{id:"square",marker:'<rect x="1" y="1" width="8" height="8"/>',dashArray:[6]},{id:"star",marker:'<path d="m2 9 3-9 3 9L0 3h10Z"/>',dashArray:[1,6]}];function Et(t){return`vis-${`pattern-${t.svg?"fill":"marker"}`}-${t.id}`}const sf=t=>`<mask id="${Et(t)}">
|
|
2
|
-
<pattern id="${t.id}" viewBox="0 0 10 10" width="${
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("vue");var ai="http://www.w3.org/1999/xhtml";const wr={svg:"http://www.w3.org/2000/svg",xhtml:ai,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function En(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),wr.hasOwnProperty(e)?{space:wr[e],local:t}:t}function nc(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===ai&&e.documentElement.namespaceURI===ai?e.createElement(t):e.createElementNS(n,t)}}function ic(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function ts(t){var e=En(t);return(e.local?ic:nc)(e)}function rc(){}function Ri(t){return t==null?rc:function(){return this.querySelector(t)}}function oc(t){typeof t!="function"&&(t=Ri(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o=e[r],s=o.length,a=i[r]=new Array(s),c,u,f=0;f<s;++f)(c=o[f])&&(u=t.call(c,c.__data__,f,o))&&("__data__"in c&&(u.__data__=c.__data__),a[f]=u);return new et(i,this._parents)}function sc(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function ac(){return[]}function es(t){return t==null?ac:function(){return this.querySelectorAll(t)}}function cc(t){return function(){return sc(t.apply(this,arguments))}}function uc(t){typeof t=="function"?t=cc(t):t=es(t);for(var e=this._groups,n=e.length,i=[],r=[],o=0;o<n;++o)for(var s=e[o],a=s.length,c,u=0;u<a;++u)(c=s[u])&&(i.push(t.call(c,c.__data__,u,s)),r.push(c));return new et(i,r)}function ns(t){return function(){return this.matches(t)}}function is(t){return function(e){return e.matches(t)}}var lc=Array.prototype.find;function fc(t){return function(){return lc.call(this.children,t)}}function hc(){return this.firstElementChild}function dc(t){return this.select(t==null?hc:fc(typeof t=="function"?t:is(t)))}var gc=Array.prototype.filter;function pc(){return Array.from(this.children)}function _c(t){return function(){return gc.call(this.children,t)}}function mc(t){return this.selectAll(t==null?pc:_c(typeof t=="function"?t:is(t)))}function vc(t){typeof t!="function"&&(t=ns(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o=e[r],s=o.length,a=i[r]=[],c,u=0;u<s;++u)(c=o[u])&&t.call(c,c.__data__,u,o)&&a.push(c);return new et(i,this._parents)}function rs(t){return new Array(t.length)}function yc(){return new et(this._enter||this._groups.map(rs),this._parents)}function cn(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}cn.prototype={constructor:cn,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function xc(t){return function(){return t}}function wc(t,e,n,i,r,o){for(var s=0,a,c=e.length,u=o.length;s<u;++s)(a=e[s])?(a.__data__=o[s],i[s]=a):n[s]=new cn(t,o[s]);for(;s<c;++s)(a=e[s])&&(r[s]=a)}function bc(t,e,n,i,r,o,s){var a,c,u=new Map,f=e.length,l=o.length,h=new Array(f),d;for(a=0;a<f;++a)(c=e[a])&&(h[a]=d=s.call(c,c.__data__,a,e)+"",u.has(d)?r[a]=c:u.set(d,c));for(a=0;a<l;++a)d=s.call(t,o[a],a,o)+"",(c=u.get(d))?(i[a]=c,c.__data__=o[a],u.delete(d)):n[a]=new cn(t,o[a]);for(a=0;a<f;++a)(c=e[a])&&u.get(h[a])===c&&(r[a]=c)}function kc(t){return t.__data__}function Tc(t,e){if(!arguments.length)return Array.from(this,kc);var n=e?bc:wc,i=this._parents,r=this._groups;typeof t!="function"&&(t=xc(t));for(var o=r.length,s=new Array(o),a=new Array(o),c=new Array(o),u=0;u<o;++u){var f=i[u],l=r[u],h=l.length,d=Sc(t.call(f,f&&f.__data__,u,i)),p=d.length,g=a[u]=new Array(p),m=s[u]=new Array(p),y=c[u]=new Array(h);n(f,l,g,m,y,d,e);for(var x=0,v=0,S,k;x<p;++x)if(S=g[x]){for(x>=v&&(v=x+1);!(k=m[v])&&++v<p;);S._next=k||null}}return s=new et(s,i),s._enter=a,s._exit=c,s}function Sc(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Mc(){return new et(this._exit||this._groups.map(rs),this._parents)}function Cc(t,e,n){var i=this.enter(),r=this,o=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(r=e(r),r&&(r=r.selection())),n==null?o.remove():n(o),i&&r?i.merge(r).order():r}function Ac(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,r=n.length,o=i.length,s=Math.min(r,o),a=new Array(r),c=0;c<s;++c)for(var u=n[c],f=i[c],l=u.length,h=a[c]=new Array(l),d,p=0;p<l;++p)(d=u[p]||f[p])&&(h[p]=d);for(;c<r;++c)a[c]=n[c];return new et(a,this._parents)}function $c(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i=t[e],r=i.length-1,o=i[r],s;--r>=0;)(s=i[r])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function Ec(t){t||(t=Nc);function e(l,h){return l&&h?t(l.__data__,h.__data__):!l-!h}for(var n=this._groups,i=n.length,r=new Array(i),o=0;o<i;++o){for(var s=n[o],a=s.length,c=r[o]=new Array(a),u,f=0;f<a;++f)(u=s[f])&&(c[f]=u);c.sort(e)}return new et(r,this._parents).order()}function Nc(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Oc(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Dc(){return Array.from(this)}function Rc(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,o=i.length;r<o;++r){var s=i[r];if(s)return s}return null}function Fc(){let t=0;for(const e of this)++t;return t}function Lc(){return!this.node()}function zc(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r=e[n],o=0,s=r.length,a;o<s;++o)(a=r[o])&&t.call(a,a.__data__,o,r);return this}function Bc(t){return function(){this.removeAttribute(t)}}function Ic(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Pc(t,e){return function(){this.setAttribute(t,e)}}function Uc(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Hc(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Vc(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Yc(t,e){var n=En(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((e==null?n.local?Ic:Bc:typeof e=="function"?n.local?Vc:Hc:n.local?Uc:Pc)(n,e))}function os(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Wc(t){return function(){this.style.removeProperty(t)}}function Xc(t,e,n){return function(){this.style.setProperty(t,e,n)}}function qc(t,e,n){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function Gc(t,e,n){return arguments.length>1?this.each((e==null?Wc:typeof e=="function"?qc:Xc)(t,e,n??"")):te(this.node(),t)}function te(t,e){return t.style.getPropertyValue(e)||os(t).getComputedStyle(t,null).getPropertyValue(e)}function Zc(t){return function(){delete this[t]}}function jc(t,e){return function(){this[t]=e}}function Qc(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Jc(t,e){return arguments.length>1?this.each((e==null?Zc:typeof e=="function"?Qc:jc)(t,e)):this.node()[t]}function ss(t){return t.trim().split(/^|\s+/)}function Fi(t){return t.classList||new as(t)}function as(t){this._node=t,this._names=ss(t.getAttribute("class")||"")}as.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function cs(t,e){for(var n=Fi(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function us(t,e){for(var n=Fi(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function Kc(t){return function(){cs(this,t)}}function tu(t){return function(){us(this,t)}}function eu(t,e){return function(){(e.apply(this,arguments)?cs:us)(this,t)}}function nu(t,e){var n=ss(t+"");if(arguments.length<2){for(var i=Fi(this.node()),r=-1,o=n.length;++r<o;)if(!i.contains(n[r]))return!1;return!0}return this.each((typeof e=="function"?eu:e?Kc:tu)(n,e))}function iu(){this.textContent=""}function ru(t){return function(){this.textContent=t}}function ou(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function su(t){return arguments.length?this.each(t==null?iu:(typeof t=="function"?ou:ru)(t)):this.node().textContent}function au(){this.innerHTML=""}function cu(t){return function(){this.innerHTML=t}}function uu(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function lu(t){return arguments.length?this.each(t==null?au:(typeof t=="function"?uu:cu)(t)):this.node().innerHTML}function fu(){this.nextSibling&&this.parentNode.appendChild(this)}function hu(){return this.each(fu)}function du(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function gu(){return this.each(du)}function pu(t){var e=typeof t=="function"?t:ts(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function _u(){return null}function mu(t,e){var n=typeof t=="function"?t:ts(t),i=e==null?_u:typeof e=="function"?e:Ri(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function vu(){var t=this.parentNode;t&&t.removeChild(this)}function yu(){return this.each(vu)}function xu(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function wu(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function bu(t){return this.select(t?wu:xu)}function ku(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Tu(t){return function(e){t.call(this,e,this.__data__)}}function Su(t){return t.trim().split(/^|\s+/).map(function(e){var n="",i=e.indexOf(".");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{type:e,name:n}})}function Mu(t){return function(){var e=this.__on;if(e){for(var n=0,i=-1,r=e.length,o;n<r;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++i]=o;++i?e.length=i:delete this.__on}}}function Cu(t,e,n){return function(){var i=this.__on,r,o=Tu(e);if(i){for(var s=0,a=i.length;s<a;++s)if((r=i[s]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),r.value=e;return}}this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function Au(t,e,n){var i=Su(t+""),r,o=i.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var c=0,u=a.length,f;c<u;++c)for(r=0,f=a[c];r<o;++r)if((s=i[r]).type===f.type&&s.name===f.name)return f.value}return}for(a=e?Cu:Mu,r=0;r<o;++r)this.each(a(i[r],e,n));return this}function ls(t,e,n){var i=os(t),r=i.CustomEvent;typeof r=="function"?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function $u(t,e){return function(){return ls(this,t,e)}}function Eu(t,e){return function(){return ls(this,t,e.apply(this,arguments))}}function Nu(t,e){return this.each((typeof e=="function"?Eu:$u)(t,e))}function*Ou(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,o=i.length,s;r<o;++r)(s=i[r])&&(yield s)}var fs=[null];function et(t,e){this._groups=t,this._parents=e}function Fe(){return new et([[document.documentElement]],fs)}function Du(){return this}et.prototype=Fe.prototype={constructor:et,select:oc,selectAll:uc,selectChild:dc,selectChildren:mc,filter:vc,data:Tc,enter:yc,exit:Mc,join:Cc,merge:Ac,selection:Du,order:$c,sort:Ec,call:Oc,nodes:Dc,node:Rc,size:Fc,empty:Lc,each:zc,attr:Yc,style:Gc,property:Jc,classed:nu,text:su,html:lu,raise:hu,lower:gu,append:pu,insert:mu,remove:yu,clone:bu,datum:ku,on:Au,dispatch:Nu,[Symbol.iterator]:Ou};function Nt(t){return typeof t=="string"?new et([[document.querySelector(t)]],[document.documentElement]):new et([[t]],fs)}var xe;(function(t){t[t.SVG=0]="SVG",t[t.HTML=1]="HTML"})(xe||(xe={}));var ee;(function(t){t.Fit="fit",t.Extend="extend",t.FitWidth="fit_width"})(ee||(ee={}));function we(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ru(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Li(t){let e,n,i;t.length!==2?(e=we,n=(a,c)=>we(t(a),c),i=(a,c)=>t(a)-c):(e=t===we||t===Ru?t:Fu,n=t,i=t);function r(a,c,u=0,f=a.length){if(u<f){if(e(c,c)!==0)return f;do{const l=u+f>>>1;n(a[l],c)<0?u=l+1:f=l}while(u<f)}return u}function o(a,c,u=0,f=a.length){if(u<f){if(e(c,c)!==0)return f;do{const l=u+f>>>1;n(a[l],c)<=0?u=l+1:f=l}while(u<f)}return u}function s(a,c,u=0,f=a.length){const l=r(a,c,u,f-1);return l>u&&i(a[l-1],c)>-i(a[l],c)?l-1:l}return{left:r,center:s,right:o}}function Fu(){return 0}function hs(t){return t===null?NaN:+t}const Lu=Li(we),Nn=Lu.right;Li(hs).center;function zu(t,e){let n,i;for(const r of t)r!=null&&(n===void 0?r>=r&&(n=i=r):(n>r&&(n=r),i<r&&(i=r)));return[n,i]}class br extends Map{constructor(e,n=Pu){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[i,r]of e)this.set(i,r)}get(e){return super.get(kr(this,e))}has(e){return super.has(kr(this,e))}set(e,n){return super.set(Bu(this,e),n)}delete(e){return super.delete(Iu(this,e))}}function kr({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):n}function Bu({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):(t.set(i,n),n)}function Iu({_intern:t,_key:e},n){const i=e(n);return t.has(i)&&(n=t.get(i),t.delete(i)),n}function Pu(t){return t!==null&&typeof t=="object"?t.valueOf():t}const Uu=Math.sqrt(50),Hu=Math.sqrt(10),Vu=Math.sqrt(2);function un(t,e,n){const i=(e-t)/Math.max(0,n),r=Math.floor(Math.log10(i)),o=i/Math.pow(10,r),s=o>=Uu?10:o>=Hu?5:o>=Vu?2:1;let a,c,u;return r<0?(u=Math.pow(10,-r)/s,a=Math.round(t*u),c=Math.round(e*u),a/u<t&&++a,c/u>e&&--c,u=-u):(u=Math.pow(10,r)*s,a=Math.round(t/u),c=Math.round(e/u),a*u<t&&++a,c*u>e&&--c),c<a&&.5<=n&&n<2?un(t,e,n*2):[a,c,u]}function ci(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const i=e<t,[r,o,s]=i?un(e,t,n):un(t,e,n);if(!(o>=r))return[];const a=o-r+1,c=new Array(a);if(i)if(s<0)for(let u=0;u<a;++u)c[u]=(o-u)/-s;else for(let u=0;u<a;++u)c[u]=(o-u)*s;else if(s<0)for(let u=0;u<a;++u)c[u]=(r+u)/-s;else for(let u=0;u<a;++u)c[u]=(r+u)*s;return c}function ui(t,e,n){return e=+e,t=+t,n=+n,un(t,e,n)[2]}function li(t,e,n){e=+e,t=+t,n=+n;const i=e<t,r=i?ui(e,t,n):ui(t,e,n);return(i?-1:1)*(r<0?1/-r:r)}function Tr(t,e){let n;if(e===void 0)for(const i of t)i!=null&&(n<i||n===void 0&&i>=i)&&(n=i);else{let i=-1;for(let r of t)(r=e(r,++i,t))!=null&&(n<r||n===void 0&&r>=r)&&(n=r)}return n}function Sr(t,e){let n;if(e===void 0)for(const i of t)i!=null&&(n>i||n===void 0&&i>=i)&&(n=i);else{let i=-1;for(let r of t)(r=e(r,++i,t))!=null&&(n>r||n===void 0&&r>=r)&&(n=r)}return n}function Yu(t,e,n=hs){if(!(!(i=t.length)||isNaN(e=+e))){if(e<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,r=(i-1)*e,o=Math.floor(r),s=+n(t[o],o,t),a=+n(t[o+1],o+1,t);return s+(a-s)*(r-o)}}function*Wu(t){for(const e of t)yield*e}function Xu(t){return Array.from(Wu(t))}function qu(t,e,n){t=+t,e=+e,n=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+n;for(var i=-1,r=Math.max(0,Math.ceil((e-t)/n))|0,o=new Array(r);++i<r;)o[i]=t+i*n;return o}function Gu(t,e){let n=0;if(e===void 0)for(let i of t)(i=+i)&&(n+=i);else{let i=-1;for(let r of t)(r=+e(r,++i,t))&&(n+=r)}return n}function Zu(t,e,n){var i={},r=i.noTrailing,o=r===void 0?!1:r,s=i.noLeading,a=s===void 0?!1:s,c=i.debounceMode,u=c===void 0?void 0:c,f,l=!1,h=0;function d(){f&&clearTimeout(f)}function p(m){var y=m||{},x=y.upcomingOnly,v=x===void 0?!1:x;d(),l=!v}function g(){for(var m=arguments.length,y=new Array(m),x=0;x<m;x++)y[x]=arguments[x];var v=this,S=Date.now()-h;if(l)return;function k(){h=Date.now(),e.apply(v,y)}function b(){f=void 0}!a&&u&&!f&&k(),d(),u===void 0&&S>t?a?(h=Date.now(),o||(f=setTimeout(u?b:k,t))):k():o!==!0&&(f=setTimeout(u?b:k,u===void 0?t-S:t))}return g.cancel=p,g}const Zt=t=>typeof t=="number",ds=t=>typeof t=="function",zi=t=>Array.isArray(t),ju=t=>t instanceof Object,ln=t=>t.constructor.name!=="Function"&&t.constructor.name!=="Object",Mr=t=>ju(t)&&!zi(t)&&!ds(t)&&!ln(t),Te=(t,e,n=[],i=new Set)=>{if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;if(i.has(t))return!0;i.add(t);for(let r=0;r<t.length;r++)if(!Te(t[r],e[r],n,i))return!1;return!0}if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(typeof t=="object"&&t!==null&&e!==null){if(typeof e!="object")return!1;if(t===e)return!0;const r=Object.keys(t).filter(s=>!n.includes(s)),o=Object.keys(e).filter(s=>!n.includes(s));if(r.length!==o.length)return!1;if(i.has(t))return!0;i.add(t);for(const s of r)if(!Te(t[s],e[s],n,i))return!1;return!0}return t===e},fi=t=>t.flat(),fn=(t,e=new Map)=>{if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array){const n=[];e.set(t,n);for(const i of t)n.push(e.has(i)?e.get(i):fn(i,e));return n}if(ln(t))return t;if(t instanceof Object){const n={};e.set(t,n);const i=t;return Object.keys(t).reduce((r,o)=>(r[o]=e.has(i[o])?e.get(i[o]):fn(i[o],e),r),n),n}return t},Se=(t,e,n=new Map)=>{if(!t||!e||t===e)return t;const i=ln(t)?t:fn(t);return n.has(e)?n.get(e):(n.set(e,i),Object.keys(e).forEach(r=>{r==="__proto__"||r==="constructor"||(Mr(t[r])&&Mr(e[r])?i[r]=Se(t[r],e[r],n):ln(e)?i[r]=e:i[r]=fn(e[r]))}),i)},Cr=(t,e,n)=>Zu(e,t);function Bi(t,e,n){return ds(e)?e(t,n):e}function gs(t,e,n){return Bi(t,e,n)}function Me(t,e,n){return Bi(t,e,n)}function ue(t){return t.filter(e=>e&&!Zt(e))}function Gt(t,e,n){return Math.min(Math.max(t,e),n)}function Qu(t,...e){return t?Sr(t,(i,r)=>Sr(e,o=>Me(i,o,r))):void 0}function Ju(t,...e){return t?Tr(t,(i,r)=>Tr(e,o=>Me(i,o,r))):void 0}function Wn(t,...e){return[Qu(t,...e),Ju(t,...e)]}function Ku(t,e,n){return t.filter((r,o)=>{const s=Me(r,n,o);return s>=e[0]&&s<=e[1]})}var Ot=[],tl=function(){return Ot.some(function(t){return t.activeTargets.length>0})},el=function(){return Ot.some(function(t){return t.skippedTargets.length>0})},Ar="ResizeObserver loop completed with undelivered notifications.",nl=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:Ar}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=Ar),window.dispatchEvent(t)},Ce;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ce||(Ce={}));var Dt=function(t){return Object.freeze(t)},il=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,Dt(this)}return t}(),ps=function(){function t(e,n,i,r){return this.x=e,this.y=n,this.width=i,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Dt(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,i=e.y,r=e.top,o=e.right,s=e.bottom,a=e.left,c=e.width,u=e.height;return{x:n,y:i,top:r,right:o,bottom:s,left:a,width:c,height:u}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),Ii=function(t){return t instanceof SVGElement&&"getBBox"in t},_s=function(t){if(Ii(t)){var e=t.getBBox(),n=e.width,i=e.height;return!n&&!i}var r=t,o=r.offsetWidth,s=r.offsetHeight;return!(o||s||t.getClientRects().length)},$r=function(t){var e;if(t instanceof Element)return!0;var n=(e=t==null?void 0:t.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},rl=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},be=typeof window<"u"?window:{},Ue=new WeakMap,Er=/auto|scroll/,ol=/^tb|vertical/,sl=/msie|trident/i.test(be.navigator&&be.navigator.userAgent),ut=function(t){return parseFloat(t||"0")},jt=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new il((n?e:t)||0,(n?t:e)||0)},Nr=Dt({devicePixelContentBoxSize:jt(),borderBoxSize:jt(),contentBoxSize:jt(),contentRect:new ps(0,0,0,0)}),ms=function(t,e){if(e===void 0&&(e=!1),Ue.has(t)&&!e)return Ue.get(t);if(_s(t))return Ue.set(t,Nr),Nr;var n=getComputedStyle(t),i=Ii(t)&&t.ownerSVGElement&&t.getBBox(),r=!sl&&n.boxSizing==="border-box",o=ol.test(n.writingMode||""),s=!i&&Er.test(n.overflowY||""),a=!i&&Er.test(n.overflowX||""),c=i?0:ut(n.paddingTop),u=i?0:ut(n.paddingRight),f=i?0:ut(n.paddingBottom),l=i?0:ut(n.paddingLeft),h=i?0:ut(n.borderTopWidth),d=i?0:ut(n.borderRightWidth),p=i?0:ut(n.borderBottomWidth),g=i?0:ut(n.borderLeftWidth),m=l+u,y=c+f,x=g+d,v=h+p,S=a?t.offsetHeight-v-t.clientHeight:0,k=s?t.offsetWidth-x-t.clientWidth:0,b=r?m+x:0,T=r?y+v:0,z=i?i.width:ut(n.width)-b-k,R=i?i.height:ut(n.height)-T-S,Q=z+m+k+x,C=R+y+S+v,B=Dt({devicePixelContentBoxSize:jt(Math.round(z*devicePixelRatio),Math.round(R*devicePixelRatio),o),borderBoxSize:jt(Q,C,o),contentBoxSize:jt(z,R,o),contentRect:new ps(l,c,z,R)});return Ue.set(t,B),B},vs=function(t,e,n){var i=ms(t,n),r=i.borderBoxSize,o=i.contentBoxSize,s=i.devicePixelContentBoxSize;switch(e){case Ce.DEVICE_PIXEL_CONTENT_BOX:return s;case Ce.BORDER_BOX:return r;default:return o}},al=function(){function t(e){var n=ms(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=Dt([n.borderBoxSize]),this.contentBoxSize=Dt([n.contentBoxSize]),this.devicePixelContentBoxSize=Dt([n.devicePixelContentBoxSize])}return t}(),ys=function(t){if(_s(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},cl=function(){var t=1/0,e=[];Ot.forEach(function(s){if(s.activeTargets.length!==0){var a=[];s.activeTargets.forEach(function(u){var f=new al(u.target),l=ys(u.target);a.push(f),u.lastReportedSize=vs(u.target,u.observedBox),l<t&&(t=l)}),e.push(function(){s.callback.call(s.observer,a,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var n=0,i=e;n<i.length;n++){var r=i[n];r()}return t},Or=function(t){Ot.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(r){r.isActive()&&(ys(r.target)>t?n.activeTargets.push(r):n.skippedTargets.push(r))})})},ul=function(){var t=0;for(Or(t);tl();)t=cl(),Or(t);return el()&&nl(),t>0},Xn,xs=[],ll=function(){return xs.splice(0).forEach(function(t){return t()})},fl=function(t){if(!Xn){var e=0,n=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return ll()}).observe(n,i),Xn=function(){n.textContent="".concat(e?e--:e++)}}xs.push(t),Xn()},hl=function(t){fl(function(){requestAnimationFrame(t)})},Ze=0,dl=function(){return!!Ze},gl=250,pl={attributes:!0,characterData:!0,childList:!0,subtree:!0},Dr=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Rr=function(t){return t===void 0&&(t=0),Date.now()+t},qn=!1,_l=function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=gl),!qn){qn=!0;var i=Rr(e);hl(function(){var r=!1;try{r=ul()}finally{if(qn=!1,e=i-Rr(),!dl())return;r?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,pl)};document.body?n():be.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Dr.forEach(function(n){return be.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Dr.forEach(function(n){return be.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),hi=new _l,Fr=function(t){!Ze&&t>0&&hi.start(),Ze+=t,!Ze&&hi.stop()},ml=function(t){return!Ii(t)&&!rl(t)&&getComputedStyle(t).display==="inline"},vl=function(){function t(e,n){this.target=e,this.observedBox=n||Ce.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=vs(this.target,this.observedBox,!0);return ml(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),yl=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),He=new WeakMap,Lr=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},Ve=function(){function t(){}return t.connect=function(e,n){var i=new yl(e,n);He.set(e,i)},t.observe=function(e,n,i){var r=He.get(e),o=r.observationTargets.length===0;Lr(r.observationTargets,n)<0&&(o&&Ot.push(r),r.observationTargets.push(new vl(n,i&&i.box)),Fr(1),hi.schedule())},t.unobserve=function(e,n){var i=He.get(e),r=Lr(i.observationTargets,n),o=i.observationTargets.length===1;r>=0&&(o&&Ot.splice(Ot.indexOf(i),1),i.observationTargets.splice(r,1),Fr(-1))},t.disconnect=function(e){var n=this,i=He.get(e);i.observationTargets.slice().forEach(function(r){return n.unobserve(e,r.target)}),i.activeTargets.splice(0,i.activeTargets.length)},t}(),xl=function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Ve.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!$r(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ve.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!$r(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ve.unobserve(this,e)},t.prototype.disconnect=function(){Ve.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const wl=globalThis.ResizeObserver||xl,ws={duration:void 0,margin:{top:0,bottom:0,left:0,right:0},padding:{top:0,bottom:0,left:0,right:0},sizing:ee.Fit,width:void 0,height:void 0,svgDefs:void 0,ariaLabel:void 0};class Ae{constructor(e){this._defaultConfig=ws,this._isFirstRender=!0,this._renderAnimationFrameId=null,this._container=e;const n=Nt(this._container);n.attr("role","figure"),this.svg=n.append("svg").style("display","block").attr("xmlns","http://www.w3.org/2000/svg").attr("height",Ae.DEFAULT_CONTAINER_HEIGHT).attr("aria-hidden",!0),this._svgDefs=this.svg.append("defs"),this._svgDefsExternal=this.svg.append("defs"),this.element=this.svg.node()}updateContainer(e){var n;this.prevConfig=this.config,this.config=Se(this._defaultConfig,e),(e==null?void 0:e.svgDefs)!==((n=this.prevConfig)===null||n===void 0?void 0:n.svgDefs)&&(this._svgDefsExternal.selectAll("*").remove(),this._svgDefsExternal.html(e.svgDefs))}_preRender(){}_render(e){const{config:n}=this;Nt(this._container).attr("aria-label",n.ariaLabel),this._isFirstRender=!1}render(e=this.config.duration){const n=this.config.width||this.containerWidth,i=this.config.height||this.containerHeight;this.svg.attr("width",n).attr("height",i),this._resizeObserver||this._setUpResizeObserver(),cancelAnimationFrame(this._renderAnimationFrameId),this._renderAnimationFrameId=requestAnimationFrame(()=>{this._preRender(),this._render(e)})}get containerWidth(){return this.config.width?this.element.clientWidth:this._container.clientWidth||this._container.getBoundingClientRect().width}get containerHeight(){return this.config.height?this.element.clientHeight:this._container.clientHeight||this._container.getBoundingClientRect().height||Ae.DEFAULT_CONTAINER_HEIGHT}get width(){return Gt(this.containerWidth-this.config.margin.left-this.config.margin.right,0,Number.POSITIVE_INFINITY)}get height(){return Gt(this.containerHeight-this.config.margin.top-this.config.margin.bottom,0,Number.POSITIVE_INFINITY)}_removeAllChildren(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild)}_onResize(){const{config:e}=this;(e.sizing===ee.Fit||e.sizing===ee.FitWidth)&&this.render(0)}_setUpResizeObserver(){if(this._resizeObserver)return;const e=this._container.getBoundingClientRect();this._containerSize={width:e.width,height:e.height},this._resizeObserver=new wl((n,i)=>{cancelAnimationFrame(this._resizeObserverAnimationFrameId),this._resizeObserverAnimationFrameId=requestAnimationFrame(()=>{const r=this._container.getBoundingClientRect(),o={width:r.width,height:r.height};!Te(this._containerSize,o)&&o.width&&o.height&&(this._containerSize=o,this._onResize())})}),this._resizeObserver.observe(this._container)}destroy(){var e;cancelAnimationFrame(this._renderAnimationFrameId),cancelAnimationFrame(this._resizeObserverAnimationFrameId),(e=this._resizeObserver)===null||e===void 0||e.disconnect(),this.svg.remove()}}Ae.DEFAULT_CONTAINER_HEIGHT=300;function bl(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function kl(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Tl=function(){function t(n){var i=this;this._insertTag=function(r){var o;i.tags.length===0?i.insertionPoint?o=i.insertionPoint.nextSibling:i.prepend?o=i.container.firstChild:o=i.before:o=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(r,o),i.tags.push(r)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(i){i.forEach(this._insertTag)},e.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(kl(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=bl(r);try{o.insertRule(i,o.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(i));this.ctr++},e.flush=function(){this.tags.forEach(function(i){var r;return(r=i.parentNode)==null?void 0:r.removeChild(i)}),this.tags=[],this.ctr=0},t}(),W="-ms-",hn="-moz-",O="-webkit-",bs="comm",Pi="rule",Ui="decl",Sl="@import",ks="@keyframes",Ml="@layer",Cl=Math.abs,On=String.fromCharCode,Al=Object.assign;function $l(t,e){return Y(t,0)^45?(((e<<2^Y(t,0))<<2^Y(t,1))<<2^Y(t,2))<<2^Y(t,3):0}function Ts(t){return t.trim()}function El(t,e){return(t=e.exec(t))?t[0]:t}function D(t,e,n){return t.replace(e,n)}function di(t,e){return t.indexOf(e)}function Y(t,e){return t.charCodeAt(e)|0}function $e(t,e,n){return t.slice(e,n)}function lt(t){return t.length}function Hi(t){return t.length}function Ye(t,e){return e.push(t),t}function Nl(t,e){return t.map(e).join("")}var Dn=1,ne=1,Ss=0,j=0,P=0,ae="";function Rn(t,e,n,i,r,o,s){return{value:t,root:e,parent:n,type:i,props:r,children:o,line:Dn,column:ne,length:s,return:""}}function le(t,e){return Al(Rn("",null,null,"",null,null,0),t,{length:-t.length},e)}function Ol(){return P}function Dl(){return P=j>0?Y(ae,--j):0,ne--,P===10&&(ne=1,Dn--),P}function tt(){return P=j<Ss?Y(ae,j++):0,ne++,P===10&&(ne=1,Dn++),P}function ft(){return Y(ae,j)}function je(){return j}function Le(t,e){return $e(ae,t,e)}function Ee(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ms(t){return Dn=ne=1,Ss=lt(ae=t),j=0,[]}function Cs(t){return ae="",t}function Qe(t){return Ts(Le(j-1,gi(t===91?t+2:t===40?t+1:t)))}function Rl(t){for(;(P=ft())&&P<33;)tt();return Ee(t)>2||Ee(P)>3?"":" "}function Fl(t,e){for(;--e&&tt()&&!(P<48||P>102||P>57&&P<65||P>70&&P<97););return Le(t,je()+(e<6&&ft()==32&&tt()==32))}function gi(t){for(;tt();)switch(P){case t:return j;case 34:case 39:t!==34&&t!==39&&gi(P);break;case 40:t===41&&gi(t);break;case 92:tt();break}return j}function Ll(t,e){for(;tt()&&t+P!==57;)if(t+P===84&&ft()===47)break;return"/*"+Le(e,j-1)+"*"+On(t===47?t:tt())}function zl(t){for(;!Ee(ft());)tt();return Le(t,j)}function Bl(t){return Cs(Je("",null,null,null,[""],t=Ms(t),0,[0],t))}function Je(t,e,n,i,r,o,s,a,c){for(var u=0,f=0,l=s,h=0,d=0,p=0,g=1,m=1,y=1,x=0,v="",S=r,k=o,b=i,T=v;m;)switch(p=x,x=tt()){case 40:if(p!=108&&Y(T,l-1)==58){di(T+=D(Qe(x),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:T+=Qe(x);break;case 9:case 10:case 13:case 32:T+=Rl(p);break;case 92:T+=Fl(je()-1,7);continue;case 47:switch(ft()){case 42:case 47:Ye(Il(Ll(tt(),je()),e,n),c);break;default:T+="/"}break;case 123*g:a[u++]=lt(T)*y;case 125*g:case 59:case 0:switch(x){case 0:case 125:m=0;case 59+f:y==-1&&(T=D(T,/\f/g,"")),d>0&<(T)-l&&Ye(d>32?Br(T+";",i,n,l-1):Br(D(T," ","")+";",i,n,l-2),c);break;case 59:T+=";";default:if(Ye(b=zr(T,e,n,u,f,r,a,v,S=[],k=[],l),o),x===123)if(f===0)Je(T,e,b,b,S,o,l,a,k);else switch(h===99&&Y(T,3)===110?100:h){case 100:case 108:case 109:case 115:Je(t,b,b,i&&Ye(zr(t,b,b,0,0,r,a,v,r,S=[],l),k),r,k,l,a,i?S:k);break;default:Je(T,b,b,b,[""],k,0,a,k)}}u=f=d=0,g=y=1,v=T="",l=s;break;case 58:l=1+lt(T),d=p;default:if(g<1){if(x==123)--g;else if(x==125&&g++==0&&Dl()==125)continue}switch(T+=On(x),x*g){case 38:y=f>0?1:(T+="\f",-1);break;case 44:a[u++]=(lt(T)-1)*y,y=1;break;case 64:ft()===45&&(T+=Qe(tt())),h=ft(),f=l=lt(v=T+=zl(je())),x++;break;case 45:p===45&<(T)==2&&(g=0)}}return o}function zr(t,e,n,i,r,o,s,a,c,u,f){for(var l=r-1,h=r===0?o:[""],d=Hi(h),p=0,g=0,m=0;p<i;++p)for(var y=0,x=$e(t,l+1,l=Cl(g=s[p])),v=t;y<d;++y)(v=Ts(g>0?h[y]+" "+x:D(x,/&\f/g,h[y])))&&(c[m++]=v);return Rn(t,e,n,r===0?Pi:a,c,u,f)}function Il(t,e,n){return Rn(t,e,n,bs,On(Ol()),$e(t,2,-2),0)}function Br(t,e,n,i){return Rn(t,e,n,Ui,$e(t,0,i),$e(t,i+1,-1),i)}function Qt(t,e){for(var n="",i=Hi(t),r=0;r<i;r++)n+=e(t[r],r,t,e)||"";return n}function Pl(t,e,n,i){switch(t.type){case Ml:if(t.children.length)break;case Sl:case Ui:return t.return=t.return||t.value;case bs:return"";case ks:return t.return=t.value+"{"+Qt(t.children,i)+"}";case Pi:t.value=t.props.join(",")}return lt(n=Qt(t.children,i))?t.return=t.value+"{"+n+"}":""}function Ul(t){var e=Hi(t);return function(n,i,r,o){for(var s="",a=0;a<e;a++)s+=t[a](n,i,r,o)||"";return s}}function Hl(t){return function(e){e.root||(e=e.return)&&t(e)}}function Vl(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Yl=function(e,n,i){for(var r=0,o=0;r=o,o=ft(),r===38&&o===12&&(n[i]=1),!Ee(o);)tt();return Le(e,j)},Wl=function(e,n){var i=-1,r=44;do switch(Ee(r)){case 0:r===38&&ft()===12&&(n[i]=1),e[i]+=Yl(j-1,n,i);break;case 2:e[i]+=Qe(r);break;case 4:if(r===44){e[++i]=ft()===58?"&\f":"",n[i]=e[i].length;break}default:e[i]+=On(r)}while(r=tt());return e},Xl=function(e,n){return Cs(Wl(Ms(e),n))},Ir=new WeakMap,ql=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,i=e.parent,r=e.column===i.column&&e.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!Ir.get(i))&&!r){Ir.set(e,!0);for(var o=[],s=Xl(n,o),a=i.props,c=0,u=0;c<s.length;c++)for(var f=0;f<a.length;f++,u++)e.props[u]=o[c]?s[c].replace(/&\f/g,a[f]):a[f]+" "+s[c]}}},Gl=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function As(t,e){switch($l(t,e)){case 5103:return O+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return O+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return O+t+hn+t+W+t+t;case 6828:case 4268:return O+t+W+t+t;case 6165:return O+t+W+"flex-"+t+t;case 5187:return O+t+D(t,/(\w+).+(:[^]+)/,O+"box-$1$2"+W+"flex-$1$2")+t;case 5443:return O+t+W+"flex-item-"+D(t,/flex-|-self/,"")+t;case 4675:return O+t+W+"flex-line-pack"+D(t,/align-content|flex-|-self/,"")+t;case 5548:return O+t+W+D(t,"shrink","negative")+t;case 5292:return O+t+W+D(t,"basis","preferred-size")+t;case 6060:return O+"box-"+D(t,"-grow","")+O+t+W+D(t,"grow","positive")+t;case 4554:return O+D(t,/([^-])(transform)/g,"$1"+O+"$2")+t;case 6187:return D(D(D(t,/(zoom-|grab)/,O+"$1"),/(image-set)/,O+"$1"),t,"")+t;case 5495:case 3959:return D(t,/(image-set\([^]*)/,O+"$1$`$1");case 4968:return D(D(t,/(.+:)(flex-)?(.*)/,O+"box-pack:$3"+W+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+O+t+t;case 4095:case 3583:case 4068:case 2532:return D(t,/(.+)-inline(.+)/,O+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(lt(t)-1-e>6)switch(Y(t,e+1)){case 109:if(Y(t,e+4)!==45)break;case 102:return D(t,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+hn+(Y(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~di(t,"stretch")?As(D(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Y(t,e+1)!==115)break;case 6444:switch(Y(t,lt(t)-3-(~di(t,"!important")&&10))){case 107:return D(t,":",":"+O)+t;case 101:return D(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+O+(Y(t,14)===45?"inline-":"")+"box$3$1"+O+"$2$3$1"+W+"$2box$3")+t}break;case 5936:switch(Y(t,e+11)){case 114:return O+t+W+D(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return O+t+W+D(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return O+t+W+D(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return O+t+W+t+t}return t}var Zl=function(e,n,i,r){if(e.length>-1&&!e.return)switch(e.type){case Ui:e.return=As(e.value,e.length);break;case ks:return Qt([le(e,{value:D(e.value,"@","@"+O)})],r);case Pi:if(e.length)return Nl(e.props,function(o){switch(El(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qt([le(e,{props:[D(o,/:(read-\w+)/,":"+hn+"$1")]})],r);case"::placeholder":return Qt([le(e,{props:[D(o,/:(plac\w+)/,":"+O+"input-$1")]}),le(e,{props:[D(o,/:(plac\w+)/,":"+hn+"$1")]}),le(e,{props:[D(o,/:(plac\w+)/,W+"input-$1")]})],r)}return""})}},jl=[Zl],Ql=function(e){var n=e.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(g){var m=g.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var r=e.stylisPlugins||jl,o={},s,a=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var m=g.getAttribute("data-emotion").split(" "),y=1;y<m.length;y++)o[m[y]]=!0;a.push(g)});var c,u=[ql,Gl];{var f,l=[Pl,Hl(function(g){f.insert(g)})],h=Ul(u.concat(r,l)),d=function(m){return Qt(Bl(m),h)};c=function(m,y,x,v){f=x,d(m?m+"{"+y.styles+"}":y.styles),v&&(p.inserted[y.name]=!0)}}var p={key:n,sheet:new Tl({key:n,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:c};return p.sheet.hydrate(a),p};function Jl(t){for(var e=0,n,i=0,r=t.length;r>=4;++i,r-=4)n=t.charCodeAt(i)&255|(t.charCodeAt(++i)&255)<<8|(t.charCodeAt(++i)&255)<<16|(t.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(r){case 3:e^=(t.charCodeAt(i+2)&255)<<16;case 2:e^=(t.charCodeAt(i+1)&255)<<8;case 1:e^=t.charCodeAt(i)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Kl={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},tf=/[A-Z]|^ms/g,ef=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$s=function(e){return e.charCodeAt(1)===45},Pr=function(e){return e!=null&&typeof e!="boolean"},Gn=Vl(function(t){return $s(t)?t:t.replace(tf,"-$&").toLowerCase()}),Ur=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(ef,function(i,r,o){return Tt={name:r,styles:o,next:Tt},r})}return Kl[e]!==1&&!$s(e)&&typeof n=="number"&&n!==0?n+"px":n};function dn(t,e,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return Tt={name:r.name,styles:r.styles,next:Tt},r.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Tt={name:s.name,styles:s.styles,next:Tt},s=s.next;var a=o.styles+";";return a}return nf(t,e,n)}}var c=n;if(e==null)return c;var u=e[c];return u!==void 0?u:c}function nf(t,e,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=dn(t,e,n[r])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var a=s;e!=null&&e[a]!==void 0?i+=o+"{"+e[a]+"}":Pr(a)&&(i+=Gn(o)+":"+Ur(o,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(e==null||e[s[0]]===void 0))for(var c=0;c<s.length;c++)Pr(s[c])&&(i+=Gn(o)+":"+Ur(o,s[c])+";");else{var u=dn(t,e,s);switch(o){case"animation":case"animationName":{i+=Gn(o)+":"+u+";";break}default:i+=o+"{"+u+"}"}}}return i}var Hr=/label:\s*([^\s;{]+)\s*(;|$)/g,Tt;function Zn(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,r="";Tt=void 0;var o=t[0];if(o==null||o.raw===void 0)i=!1,r+=dn(n,e,o);else{var s=o;r+=s[0]}for(var a=1;a<t.length;a++)if(r+=dn(n,e,t[a]),i){var c=o;r+=c[a]}Hr.lastIndex=0;for(var u="",f;(f=Hr.exec(r))!==null;)u+="-"+f[1];var l=Jl(r)+u;return{name:l,styles:r,next:Tt}}function Es(t,e,n){var i="";return n.split(" ").forEach(function(r){t[r]!==void 0?e.push(t[r]+";"):r&&(i+=r+" ")}),i}var rf=function(e,n,i){var r=e.key+"-"+n.name;e.registered[r]===void 0&&(e.registered[r]=n.styles)},of=function(e,n,i){rf(e,n);var r=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+r:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function Vr(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function Yr(t,e,n){var i=[],r=Es(t,i,n);return i.length<2?n:r+e(i)}var sf=function(e){var n=Ql(e);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var i=function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];var l=Zn(u,n.registered,void 0);return of(n,l),n.key+"-"+l.name},r=function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];var l=Zn(u,n.registered),h="animation-"+l.name;return Vr(n,{name:l.name,styles:"@keyframes "+h+"{"+l.styles+"}"}),h},o=function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];var l=Zn(u,n.registered);Vr(n,l)},s=function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];return Yr(n.registered,i,af(u))};return{css:i,cx:s,injectGlobal:o,keyframes:r,hydrate:function(c){c.forEach(function(u){n.inserted[u]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:Es.bind(null,n.registered),merge:Yr.bind(null,n.registered,i)}},af=function t(e){for(var n="",i=0;i<e.length;i++){var r=e[i];if(r!=null){var o=void 0;switch(typeof r){case"boolean":break;case"object":{if(Array.isArray(r))o=t(r);else{o="";for(var s in r)r[s]&&s&&(o&&(o+=" "),o+=s)}break}default:o=r}o&&(n&&(n+=" "),n+=o)}}return n},Ns=sf({key:"css"}),Vi=Ns.injectGlobal,X=Ns.css;function cf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var jn,Wr;function uf(){return Wr||(Wr=1,jn=function(e,n){n||(n=[0,""]),e=String(e);var i=parseFloat(e,10);return n[0]=i,n[1]=e.match(/[\d.\-\+]*\s*(.*)/)[1]||"",n}),jn}var Qn,Xr;function lf(){if(Xr)return Qn;Xr=1;var t=uf();Qn=r;var e=i("in",document.body);function n(o,s){var a=t(getComputedStyle(o).getPropertyValue(s));return a[0]*r(a[1],o)}function i(o,s){var a=document.createElement("div");a.style.height="128"+o,s.appendChild(a);var c=n(a,"height")/128;return s.removeChild(a),c}function r(o,s){if(!o)return null;switch(s=s||document.body,o=(o+""||"px").trim().toLowerCase(),(s===window||s===document)&&(s=document.body),o){case"%":return s.clientHeight/100;case"ch":case"ex":return i(o,s);case"em":return n(s,"font-size");case"rem":return n(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return e;case"cm":return e/2.54;case"mm":return e/25.4;case"pt":return e/72;case"pc":return e/6;case"px":return 1}var a=t(o);if(!isNaN(a[0])&&a[1]){var c=r(a[1],s);return typeof c=="number"?a[0]*c:null}return null}return Qn}lf();function Os(){const t=()=>Math.floor((1+crypto.getRandomValues(new Uint32Array(1))[0])*65536).toString(16).substring(1);return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}function ff(t,e){const n=t.substr(4,t.length-5);return getComputedStyle(e).getPropertyValue(n)}function hf(t,e,n=0){const[i,r,o,s]=[t.x+n,t.y+t.height-2*n,t.x+t.width-2*n,t.y+n],[a,c,u,f]=[e.x+n,e.y+e.height-2*n,e.x+e.width-2*n,e.y+n];return!(r<f||c<s||o<a||u<i)}function Yi(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Ds(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function ze(){}var Ne=.7,gn=1/Ne,Jt="\\s*([+-]?\\d+)\\s*",Oe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ht="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",df=/^#([0-9a-f]{3,8})$/,gf=new RegExp(`^rgb\\(${Jt},${Jt},${Jt}\\)$`),pf=new RegExp(`^rgb\\(${ht},${ht},${ht}\\)$`),_f=new RegExp(`^rgba\\(${Jt},${Jt},${Jt},${Oe}\\)$`),mf=new RegExp(`^rgba\\(${ht},${ht},${ht},${Oe}\\)$`),vf=new RegExp(`^hsl\\(${Oe},${ht},${ht}\\)$`),yf=new RegExp(`^hsla\\(${Oe},${ht},${ht},${Oe}\\)$`),qr={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};Yi(ze,Bt,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Gr,formatHex:Gr,formatHex8:xf,formatHsl:wf,formatRgb:Zr,toString:Zr});function Gr(){return this.rgb().formatHex()}function xf(){return this.rgb().formatHex8()}function wf(){return Rs(this).formatHsl()}function Zr(){return this.rgb().formatRgb()}function Bt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=df.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?jr(e):n===3?new G(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?We(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?We(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=gf.exec(t))?new G(e[1],e[2],e[3],1):(e=pf.exec(t))?new G(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=_f.exec(t))?We(e[1],e[2],e[3],e[4]):(e=mf.exec(t))?We(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=vf.exec(t))?Kr(e[1],e[2]/100,e[3]/100,1):(e=yf.exec(t))?Kr(e[1],e[2]/100,e[3]/100,e[4]):qr.hasOwnProperty(t)?jr(qr[t]):t==="transparent"?new G(NaN,NaN,NaN,0):null}function jr(t){return new G(t>>16&255,t>>8&255,t&255,1)}function We(t,e,n,i){return i<=0&&(t=e=n=NaN),new G(t,e,n,i)}function bf(t){return t instanceof ze||(t=Bt(t)),t?(t=t.rgb(),new G(t.r,t.g,t.b,t.opacity)):new G}function pi(t,e,n,i){return arguments.length===1?bf(t):new G(t,e,n,i??1)}function G(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}Yi(G,pi,Ds(ze,{brighter(t){return t=t==null?gn:Math.pow(gn,t),new G(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Ne:Math.pow(Ne,t),new G(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new G(Rt(this.r),Rt(this.g),Rt(this.b),pn(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:Qr,formatHex:Qr,formatHex8:kf,formatRgb:Jr,toString:Jr}));function Qr(){return`#${At(this.r)}${At(this.g)}${At(this.b)}`}function kf(){return`#${At(this.r)}${At(this.g)}${At(this.b)}${At((isNaN(this.opacity)?1:this.opacity)*255)}`}function Jr(){const t=pn(this.opacity);return`${t===1?"rgb(":"rgba("}${Rt(this.r)}, ${Rt(this.g)}, ${Rt(this.b)}${t===1?")":`, ${t})`}`}function pn(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Rt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function At(t){return t=Rt(t),(t<16?"0":"")+t.toString(16)}function Kr(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new st(t,e,n,i)}function Rs(t){if(t instanceof st)return new st(t.h,t.s,t.l,t.opacity);if(t instanceof ze||(t=Bt(t)),!t)return new st;if(t instanceof st)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),o=Math.max(e,n,i),s=NaN,a=o-r,c=(o+r)/2;return a?(e===o?s=(n-i)/a+(n<i)*6:n===o?s=(i-e)/a+2:s=(e-n)/a+4,a/=c<.5?o+r:2-o-r,s*=60):a=c>0&&c<1?0:s,new st(s,a,c,t.opacity)}function Wi(t,e,n,i){return arguments.length===1?Rs(t):new st(t,e,n,i??1)}function st(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}Yi(st,Wi,Ds(ze,{brighter(t){return t=t==null?gn:Math.pow(gn,t),new st(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ne:Math.pow(Ne,t),new st(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new G(Jn(t>=240?t-240:t+120,r,i),Jn(t,r,i),Jn(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new st(to(this.h),Xe(this.s),Xe(this.l),pn(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(){const t=pn(this.opacity);return`${t===1?"hsl(":"hsla("}${to(this.h)}, ${Xe(this.s)*100}%, ${Xe(this.l)*100}%${t===1?")":`, ${t})`}`}}));function to(t){return t=(t||0)%360,t<0?t+360:t}function Xe(t){return Math.max(0,Math.min(1,t||0))}function Jn(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const pe=(globalThis==null?void 0:globalThis.UNOVIS_COLORS)||["#4D8CFD","#FF6B7E","#F4B83E","#A6CC74","#00C19A","#6859BE"],Tf=(globalThis==null?void 0:globalThis.UNOVIS_COLORS_DARK)||["#4D8CFD","#FF6B7E","#FFC16D","#A6CC74","#00C19A","#7887E0"],bt=t=>`--vis-${Zt(t)?`color${t%pe.length}`:t}`;function Sf(t,e=.4){const n=Wi(t);return n.l=n.l*(1+e),n.formatHex()}function Mf(t,e=.4,n=.6){const i=Wi(t);return i.s=i.s*(1-n),i.l=i.l*(1-e),i.formatHex()}const _n=10,_i=[{id:"stripes-diagonal",svg:'<path d="M-1,1 l2,-2 M0,10 l10,-10 M9,11 l2,-2" stroke="#000"/>'},{id:"dots",svg:'<path d="m0-1.5a1 1 0 010 3m10-3a1 1 0 000 3M5 3.5a1 1 0 010 3 1 1 0 010-3M0 8.5 a1 1 0 010 3m10-3a1 1 0 000 3" fill"#000"/>'},{id:"stripes-vertical",svg:'<path d="M 5,-1 L5,11" stroke="#000"/>'},{id:"crosshatch",svg:'<path d="M0 0L10 10ZM10 0L0 10Z" stroke="#000"/>'},{id:"waves",svg:'<path d="M0 4Q2.5 1 5 4 7.5 7 10 4v2Q7.5 9 5 6 2.5 3 0 6Z" fill="#000"/>'},{id:"circles",svg:'<circle cx="5" cy="5" r="3" stroke="#000" fill="#fff"/>'}],mi=[{id:"circle",marker:'<circle cx="5" cy="5" r="5"/>',dashArray:[]},{id:"triangle",marker:'<path d="M5,0 L10,9 L0,9Z">',dashArray:[9,1]},{id:"diamond",marker:'<path d="M 0 5 L5 0 L 10 5 L 5 10 L 0 5Z">',dashArray:[2]},{id:"arrow",marker:'<path d="M4 0 0 0 6 5 0 10 4 10 10 5Z">',dashArray:[2,3,8,3]},{id:"square",marker:'<rect x="1" y="1" width="8" height="8"/>',dashArray:[6]},{id:"star",marker:'<path d="m2 9 3-9 3 9L0 3h10Z"/>',dashArray:[1,6]}];function kt(t){return`vis-${`pattern-${t.svg?"fill":"marker"}`}-${t.id}`}const Cf=t=>`<mask id="${kt(t)}">
|
|
2
|
+
<pattern id="${t.id}" viewBox="0 0 10 10" width="${_n}" height="${_n}" patternUnits="userSpaceOnUse">
|
|
3
3
|
<rect width="100%" height="100%" fill="#fff"/>
|
|
4
4
|
${t.svg}
|
|
5
5
|
</pattern>
|
|
6
6
|
<rect x="-50%" y="-50%" width="200%" height="200%" fill="url(#${t.id})"/>
|
|
7
|
-
</mask>`,
|
|
8
|
-
fill="var(${
|
|
7
|
+
</mask>`,Af=(t,e)=>`<marker id="${kt(t)}"
|
|
8
|
+
fill="var(${bt(e)})"
|
|
9
9
|
markerUnits="userSpaceOnUse"
|
|
10
10
|
refX="5"
|
|
11
11
|
refY="5"
|
|
12
|
-
markerWidth="${
|
|
13
|
-
markerHeight="${
|
|
12
|
+
markerWidth="${_n}"
|
|
13
|
+
markerHeight="${_n}">
|
|
14
14
|
${t.marker}
|
|
15
|
-
</marker>`;function
|
|
15
|
+
</marker>`;function $f(){const t=_i.map(Cf).concat(mi.map(Af)).join(""),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.style.position="fixed",e.style.zIndex="-99999999",e.innerHTML=`<defs>${t}</defs>`,document.body.appendChild(e)}typeof window<"u"&&$f();const Fs=(globalThis==null?void 0:globalThis.UNOVIS_FONT_W2H_RATIO_DEFAULT)||.5,Ls=(globalThis==null?void 0:globalThis.UNOVIS_TEXT_SEPARATOR_DEFAULT)||[" ","-",".",","],zs=(globalThis==null?void 0:globalThis.UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT)||"-",eo=(globalThis==null?void 0:globalThis.UNOVIS_TEXT_DEFAULT)||{text:"",fontSize:12,fontFamily:"var(--vis-font-family)",lineHeight:1.25,marginTop:0,marginBottom:0};Vi`
|
|
16
16
|
:root {
|
|
17
17
|
label: vis-root-styles;
|
|
18
18
|
--vis-font-family: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;
|
|
19
|
-
--vis-font-wh-ratio: ${
|
|
20
|
-
--vis-color-main: var(${
|
|
21
|
-
--vis-color-main-light: ${
|
|
22
|
-
--vis-color-main-dark: ${
|
|
19
|
+
--vis-font-wh-ratio: ${Fs};
|
|
20
|
+
--vis-color-main: var(${bt(0)});
|
|
21
|
+
--vis-color-main-light: ${Sf(pe[0])};
|
|
22
|
+
--vis-color-main-dark: ${Mf(pe[0])};
|
|
23
23
|
--vis-color-grey: #2a2a2a;
|
|
24
|
-
${
|
|
25
|
-
${
|
|
26
|
-
${
|
|
27
|
-
--${
|
|
28
|
-
--vis-pattern-fill${e}: var(--${
|
|
24
|
+
${pe.map((t,e)=>`${bt(e)}: ${t};`)}
|
|
25
|
+
${Tf.map((t,e)=>`--vis-dark-color${e}: ${t};`)}
|
|
26
|
+
${_i.map((t,e)=>`
|
|
27
|
+
--${kt(t)}: url(#${kt(t)});
|
|
28
|
+
--vis-pattern-fill${e}: var(--${kt(t)});
|
|
29
29
|
`)}
|
|
30
|
-
${
|
|
31
|
-
--${
|
|
32
|
-
--vis-pattern-marker${e}: var(--${
|
|
30
|
+
${mi.map((t,e)=>{var n;return`
|
|
31
|
+
--${kt(t)}: url(#${kt(t)});
|
|
32
|
+
--vis-pattern-marker${e}: var(--${kt(t)});
|
|
33
33
|
--vis-pattern-dasharray${e}: ${(n=t.dashArray)===null||n===void 0?void 0:n.join(" ")};
|
|
34
34
|
`})}
|
|
35
35
|
|
|
36
36
|
body.theme-dark {
|
|
37
|
-
${
|
|
37
|
+
${pe.map((t,e)=>`${bt(e)}: var(--vis-dark-color${e});`)}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
body.theme-patterns {
|
|
41
|
-
${
|
|
41
|
+
${_i.map((t,e)=>`path[style*="fill: var(${bt(e)})"] {
|
|
42
42
|
mask: var(--vis-pattern-fill${e});
|
|
43
43
|
}`)}
|
|
44
|
-
${
|
|
45
|
-
path[stroke="var(${
|
|
46
|
-
path[style*="stroke: var(${
|
|
44
|
+
${mi.map((t,e)=>`
|
|
45
|
+
path[stroke="var(${bt(e)})"]:not([style*="fill"]),
|
|
46
|
+
path[style*="stroke: var(${bt(e)})"]:not([style*="fill"]) {
|
|
47
47
|
marker: var(--vis-pattern-marker${e});
|
|
48
48
|
stroke-dasharray: var(--vis-pattern-dasharray${e});
|
|
49
49
|
}
|
|
50
50
|
`)}
|
|
51
51
|
}
|
|
52
|
-
`;function cf(t=window==null?void 0:window.document.body){return t?+Vh("var(--vis-font-wh-ratio)",t):na}var uf={value:()=>{}};function oa(){for(var t=0,e=arguments.length,n={},i;t<e;++t){if(!(i=arguments[t]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new ln(n)}function ln(t){this._=t}function hf(t,e){return t.trim().split(/^|\s+/).map(function(n){var i="",r=n.indexOf(".");if(r>=0&&(i=n.slice(r+1),n=n.slice(0,r)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}ln.prototype=oa.prototype={constructor:ln,on:function(t,e){var n=this._,i=hf(t+"",n),r,o=-1,s=i.length;if(arguments.length<2){for(;++o<s;)if((r=(t=i[o]).type)&&(r=ff(n[r],t.name)))return r;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(r=(t=i[o]).type)n[r]=So(n[r],t.name,e);else if(e==null)for(r in n)n[r]=So(n[r],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new ln(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var n=new Array(r),i=0,r,o;i<r;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],i=0,r=o.length;i<r;++i)o[i].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,o=i.length;r<o;++r)i[r].value.apply(e,n)}};function ff(t,e){for(var n=0,i=t.length,r;n<i;++n)if((r=t[n]).name===e)return r.value}function So(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=uf,t=t.slice(0,i).concat(t.slice(i+1));break}return n!=null&&t.push({name:e,value:n}),t}var ce=0,we=0,ve=0,sa=1e3,Mn,ke,An=0,Xt=0,Gn=0,Be=typeof performance=="object"&&performance.now?performance:Date,aa=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function pr(){return Xt||(aa(df),Xt=Be.now()+Gn)}function df(){Xt=0}function $n(){this._call=this._time=this._next=null}$n.prototype=la.prototype={constructor:$n,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?pr():+n)+(e==null?0:+e),!this._next&&ke!==this&&(ke?ke._next=this:Mn=this,ke=this),this._call=t,this._time=n,Fi()},stop:function(){this._call&&(this._call=null,this._time=1/0,Fi())}};function la(t,e,n){var i=new $n;return i.restart(t,e,n),i}function pf(){pr(),++ce;for(var t=Mn,e;t;)(e=Xt-t._time)>=0&&t._call.call(void 0,e),t=t._next;--ce}function Co(){Xt=(An=Be.now())+Gn,ce=we=0;try{pf()}finally{ce=0,mf(),Xt=0}}function gf(){var t=Be.now(),e=t-An;e>sa&&(Gn-=e,An=t)}function mf(){for(var t,e=Mn,n,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Mn=n);ke=t,Fi(i)}function Fi(t){if(!ce){we&&(we=clearTimeout(we));var e=t-Xt;e>24?(t<1/0&&(we=setTimeout(Co,t-Be.now()-Gn)),ve&&(ve=clearInterval(ve))):(ve||(An=Be.now(),ve=setInterval(gf,sa)),ce=1,aa(Co))}}function Mo(t,e,n){var i=new $n;return e=e==null?0:+e,i.restart(r=>{i.stop(),t(r+e)},e,n),i}var vf=oa("start","end","cancel","interrupt"),_f=[],ca=0,Ao=1,zi=2,cn=3,$o=4,Pi=5,un=6;function Zn(t,e,n,i,r,o){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;yf(t,n,{name:e,index:i,group:r,on:vf,tween:_f,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:ca})}function gr(t,e){var n=ht(t,e);if(n.state>ca)throw new Error("too late; already scheduled");return n}function xt(t,e){var n=ht(t,e);if(n.state>cn)throw new Error("too late; already running");return n}function ht(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function yf(t,e,n){var i=t.__transition,r;i[e]=n,n.timer=la(o,0,n.time);function o(c){n.state=Ao,n.timer.restart(s,n.delay,n.time),n.delay<=c&&s(c-n.delay)}function s(c){var h,u,f,d;if(n.state!==Ao)return l();for(h in i)if(d=i[h],d.name===n.name){if(d.state===cn)return Mo(s);d.state===$o?(d.state=un,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[h]):+h<e&&(d.state=un,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete i[h])}if(Mo(function(){n.state===cn&&(n.state=$o,n.timer.restart(a,n.delay,n.time),a(c))}),n.state=zi,n.on.call("start",t,t.__data__,n.index,n.group),n.state===zi){for(n.state=cn,r=new Array(f=n.tween.length),h=0,u=-1;h<f;++h)(d=n.tween[h].value.call(t,t.__data__,n.index,n.group))&&(r[++u]=d);r.length=u+1}}function a(c){for(var h=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=Pi,1),u=-1,f=r.length;++u<f;)r[u].call(t,h);n.state===Pi&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){n.state=un,n.timer.stop(),delete i[e];for(var c in i)return;delete t.__transition}}function mr(t,e){var n=t.__transition,i,r,o=!0,s;if(n){e=e==null?null:e+"";for(s in n){if((i=n[s]).name!==e){o=!1;continue}r=i.state>zi&&i.state<Pi,i.state=un,i.timer.stop(),i.on.call(r?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete n[s]}o&&delete t.__transition}}function xf(t){return this.each(function(){mr(this,t)})}const vr=t=>()=>t;function bf(t,e){return function(n){return t+n*e}}function wf(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}function kf(t){return(t=+t)==1?ua:function(e,n){return n-e?wf(e,n,t):vr(isNaN(e)?n:e)}}function ua(t,e){var n=e-t;return n?bf(t,n):vr(isNaN(t)?e:t)}const En=function t(e){var n=kf(e);function i(r,o){var s=n((r=Oi(r)).r,(o=Oi(o)).r),a=n(r.g,o.g),l=n(r.b,o.b),c=ua(r.opacity,o.opacity);return function(h){return r.r=s(h),r.g=a(h),r.b=l(h),r.opacity=c(h),r+""}}return i.gamma=t,i}(1);function Tf(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,i=e.slice(),r;return function(o){for(r=0;r<n;++r)i[r]=t[r]*(1-o)+e[r]*o;return i}}function Sf(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Cf(t,e){var n=e?e.length:0,i=t?Math.min(n,t.length):0,r=new Array(i),o=new Array(n),s;for(s=0;s<i;++s)r[s]=pe(t[s],e[s]);for(;s<n;++s)o[s]=e[s];return function(a){for(s=0;s<i;++s)o[s]=r[s](a);return o}}function Mf(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function lt(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Af(t,e){var n={},i={},r;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(r in e)r in t?n[r]=pe(t[r],e[r]):i[r]=e[r];return function(o){for(r in n)i[r]=n[r](o);return i}}var Li=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gi=new RegExp(Li.source,"g");function $f(t){return function(){return t}}function Ef(t){return function(e){return t(e)+""}}function ha(t,e){var n=Li.lastIndex=gi.lastIndex=0,i,r,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(i=Li.exec(t))&&(r=gi.exec(e));)(o=r.index)>n&&(o=e.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(i=i[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,l.push({i:s,x:lt(i,r)})),n=gi.lastIndex;return n<e.length&&(o=e.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?Ef(l[0].x):$f(e):(e=l.length,function(c){for(var h=0,u;h<e;++h)a[(u=l[h]).i]=u.x(c);return a.join("")})}function pe(t,e){var n=typeof e,i;return e==null||n==="boolean"?vr(e):(n==="number"?lt:n==="string"?(i=Yt(e))?(e=i,En):ha:e instanceof Yt?En:e instanceof Date?Mf:Sf(e)?Tf:Array.isArray(e)?Cf:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Af:lt)(t,e)}function _r(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var Eo=180/Math.PI,Bi={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function fa(t,e,n,i,r,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),t*i<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:r,translateY:o,rotate:Math.atan2(e,t)*Eo,skewX:Math.atan(l)*Eo,scaleX:s,scaleY:a}}var en;function Nf(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Bi:fa(e.a,e.b,e.c,e.d,e.e,e.f)}function Of(t){return t==null||(en||(en=document.createElementNS("http://www.w3.org/2000/svg","g")),en.setAttribute("transform",t),!(t=en.transform.baseVal.consolidate()))?Bi:(t=t.matrix,fa(t.a,t.b,t.c,t.d,t.e,t.f))}function da(t,e,n,i){function r(c){return c.length?c.pop()+" ":""}function o(c,h,u,f,d,g){if(c!==u||h!==f){var p=d.push("translate(",null,e,null,n);g.push({i:p-4,x:lt(c,u)},{i:p-2,x:lt(h,f)})}else(u||f)&&d.push("translate("+u+e+f+n)}function s(c,h,u,f){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),f.push({i:u.push(r(u)+"rotate(",null,i)-2,x:lt(c,h)})):h&&u.push(r(u)+"rotate("+h+i)}function a(c,h,u,f){c!==h?f.push({i:u.push(r(u)+"skewX(",null,i)-2,x:lt(c,h)}):h&&u.push(r(u)+"skewX("+h+i)}function l(c,h,u,f,d,g){if(c!==u||h!==f){var p=d.push(r(d)+"scale(",null,",",null,")");g.push({i:p-4,x:lt(c,u)},{i:p-2,x:lt(h,f)})}else(u!==1||f!==1)&&d.push(r(d)+"scale("+u+","+f+")")}return function(c,h){var u=[],f=[];return c=t(c),h=t(h),o(c.translateX,c.translateY,h.translateX,h.translateY,u,f),s(c.rotate,h.rotate,u,f),a(c.skewX,h.skewX,u,f),l(c.scaleX,c.scaleY,h.scaleX,h.scaleY,u,f),c=h=null,function(d){for(var g=-1,p=f.length,v;++g<p;)u[(v=f[g]).i]=v.x(d);return u.join("")}}}var Df=da(Nf,"px, ","px)","deg)"),Rf=da(Of,", ",")",")");function Ff(t,e){e===void 0&&(e=t,t=pe);for(var n=0,i=e.length-1,r=e[0],o=new Array(i<0?0:i);n<i;)o[n]=t(r,r=e[++n]);return function(s){var a=Math.max(0,Math.min(i-1,Math.floor(s*=i)));return o[a](s-a)}}function zf(t,e){var n,i;return function(){var r=xt(this,t),o=r.tween;if(o!==n){i=n=o;for(var s=0,a=i.length;s<a;++s)if(i[s].name===e){i=i.slice(),i.splice(s,1);break}}r.tween=i}}function Pf(t,e,n){var i,r;if(typeof n!="function")throw new Error;return function(){var o=xt(this,t),s=o.tween;if(s!==i){r=(i=s).slice();for(var a={name:e,value:n},l=0,c=r.length;l<c;++l)if(r[l].name===e){r[l]=a;break}l===c&&r.push(a)}o.tween=r}}function Lf(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i=ht(this.node(),n).tween,r=0,o=i.length,s;r<o;++r)if((s=i[r]).name===t)return s.value;return null}return this.each((e==null?zf:Pf)(n,t,e))}function yr(t,e,n){var i=t._id;return t.each(function(){var r=xt(this,i);(r.value||(r.value={}))[e]=n.apply(this,arguments)}),function(r){return ht(r,i).value[e]}}function pa(t,e){var n;return(typeof e=="number"?lt:e instanceof Yt?En:(n=Yt(e))?(e=n,En):ha)(t,e)}function Bf(t){return function(){this.removeAttribute(t)}}function If(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Uf(t,e,n){var i,r=n+"",o;return function(){var s=this.getAttribute(t);return s===r?null:s===i?o:o=e(i=s,n)}}function Hf(t,e,n){var i,r=n+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===r?null:s===i?o:o=e(i=s,n)}}function Vf(t,e,n){var i,r,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=a+"",s===l?null:s===i&&l===r?o:(r=l,o=e(i=s,a)))}}function Wf(t,e,n){var i,r,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=a+"",s===l?null:s===i&&l===r?o:(r=l,o=e(i=s,a)))}}function Yf(t,e){var n=Vn(t),i=n==="transform"?Rf:pa;return this.attrTween(t,typeof e=="function"?(n.local?Wf:Vf)(n,i,yr(this,"attr."+t,e)):e==null?(n.local?If:Bf)(n):(n.local?Hf:Uf)(n,i,e))}function Xf(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function qf(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Gf(t,e){var n,i;function r(){var o=e.apply(this,arguments);return o!==i&&(n=(i=o)&&qf(t,o)),n}return r._value=e,r}function Zf(t,e){var n,i;function r(){var o=e.apply(this,arguments);return o!==i&&(n=(i=o)&&Xf(t,o)),n}return r._value=e,r}function jf(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var i=Vn(t);return this.tween(n,(i.local?Gf:Zf)(i,e))}function Qf(t,e){return function(){gr(this,t).delay=+e.apply(this,arguments)}}function Jf(t,e){return e=+e,function(){gr(this,t).delay=e}}function Kf(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Qf:Jf)(e,t)):ht(this.node(),e).delay}function td(t,e){return function(){xt(this,t).duration=+e.apply(this,arguments)}}function ed(t,e){return e=+e,function(){xt(this,t).duration=e}}function nd(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?td:ed)(e,t)):ht(this.node(),e).duration}function id(t,e){if(typeof e!="function")throw new Error;return function(){xt(this,t).ease=e}}function rd(t){var e=this._id;return arguments.length?this.each(id(e,t)):ht(this.node(),e).ease}function od(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;xt(this,t).ease=n}}function sd(t){if(typeof t!="function")throw new Error;return this.each(od(this._id,t))}function ad(t){typeof t!="function"&&(t=Ts(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o=e[r],s=o.length,a=i[r]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new Tt(i,this._parents,this._name,this._id)}function ld(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=n.length,o=Math.min(i,r),s=new Array(i),a=0;a<o;++a)for(var l=e[a],c=n[a],h=l.length,u=s[a]=new Array(h),f,d=0;d<h;++d)(f=l[d]||c[d])&&(u[d]=f);for(;a<i;++a)s[a]=e[a];return new Tt(s,this._parents,this._name,this._id)}function cd(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function ud(t,e,n){var i,r,o=cd(e)?gr:xt;return function(){var s=o(this,t),a=s.on;a!==i&&(r=(i=a).copy()).on(e,n),s.on=r}}function hd(t,e){var n=this._id;return arguments.length<2?ht(this.node(),n).on.on(t):this.each(ud(n,t,e))}function fd(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function dd(){return this.on("end.remove",fd(this._id))}function pd(t){var e=this._name,n=this._id;typeof t!="function"&&(t=nr(t));for(var i=this._groups,r=i.length,o=new Array(r),s=0;s<r;++s)for(var a=i[s],l=a.length,c=o[s]=new Array(l),h,u,f=0;f<l;++f)(h=a[f])&&(u=t.call(h,h.__data__,f,a))&&("__data__"in h&&(u.__data__=h.__data__),c[f]=u,Zn(c[f],e,n,f,c,ht(h,n)));return new Tt(o,this._parents,e,n)}function gd(t){var e=this._name,n=this._id;typeof t!="function"&&(t=ks(t));for(var i=this._groups,r=i.length,o=[],s=[],a=0;a<r;++a)for(var l=i[a],c=l.length,h,u=0;u<c;++u)if(h=l[u]){for(var f=t.call(h,h.__data__,u,l),d,g=ht(h,n),p=0,v=f.length;p<v;++p)(d=f[p])&&Zn(d,e,n,p,f,g);o.push(f),s.push(h)}return new Tt(o,s,e,n)}var md=Ue.prototype.constructor;function vd(){return new md(this._groups,this._parents)}function _d(t,e){var n,i,r;return function(){var o=se(this,t),s=(this.style.removeProperty(t),se(this,t));return o===s?null:o===n&&s===i?r:r=e(n=o,i=s)}}function ga(t){return function(){this.style.removeProperty(t)}}function yd(t,e,n){var i,r=n+"",o;return function(){var s=se(this,t);return s===r?null:s===i?o:o=e(i=s,n)}}function xd(t,e,n){var i,r,o;return function(){var s=se(this,t),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),se(this,t))),s===l?null:s===i&&l===r?o:(r=l,o=e(i=s,a))}}function bd(t,e){var n,i,r,o="style."+e,s="end."+o,a;return function(){var l=xt(this,t),c=l.on,h=l.value[o]==null?a||(a=ga(e)):void 0;(c!==n||r!==h)&&(i=(n=c).copy()).on(s,r=h),l.on=i}}function wd(t,e,n){var i=(t+="")=="transform"?Df:pa;return e==null?this.styleTween(t,_d(t,i)).on("end.style."+t,ga(t)):typeof e=="function"?this.styleTween(t,xd(t,i,yr(this,"style."+t,e))).each(bd(this._id,t)):this.styleTween(t,yd(t,i,e),n).on("end.style."+t,null)}function kd(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function Td(t,e,n){var i,r;function o(){var s=e.apply(this,arguments);return s!==r&&(i=(r=s)&&kd(t,s,n)),i}return o._value=e,o}function Sd(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,Td(t,e,n??""))}function Cd(t){return function(){this.textContent=t}}function Md(t){return function(){var e=t(this);this.textContent=e??""}}function Ad(t){return this.tween("text",typeof t=="function"?Md(yr(this,"text",t)):Cd(t==null?"":t+""))}function $d(t){return function(e){this.textContent=t.call(this,e)}}function Ed(t){var e,n;function i(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&$d(r)),e}return i._value=t,i}function Nd(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Ed(t))}function Od(){for(var t=this._name,e=this._id,n=ma(),i=this._groups,r=i.length,o=0;o<r;++o)for(var s=i[o],a=s.length,l,c=0;c<a;++c)if(l=s[c]){var h=ht(l,e);Zn(l,t,n,c,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Tt(i,this._parents,t,n)}function Dd(){var t,e,n=this,i=n._id,r=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--r===0&&o()}};n.each(function(){var c=xt(this,i),h=c.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),r===0&&o()})}var Rd=0;function Tt(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function ma(){return++Rd}var bt=Ue.prototype;Tt.prototype={constructor:Tt,select:pd,selectAll:gd,selectChild:bt.selectChild,selectChildren:bt.selectChildren,filter:ad,merge:ld,selection:vd,transition:Od,call:bt.call,nodes:bt.nodes,node:bt.node,size:bt.size,empty:bt.empty,each:bt.each,on:hd,attr:Yf,attrTween:jf,style:wd,styleTween:Sd,text:Ad,textTween:Nd,remove:dd,tween:Lf,delay:Kf,duration:nd,ease:rd,easeVarying:sd,end:Dd,[Symbol.iterator]:bt[Symbol.iterator]};function Fd(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var zd={time:null,delay:0,duration:250,ease:Fd};function Pd(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Ld(t){var e,n;t instanceof Tt?(e=t._id,t=t._name):(e=ma(),(n=zd).time=pr(),t=t==null?null:t+"");for(var i=this._groups,r=i.length,o=0;o<r;++o)for(var s=i[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&Zn(l,t,e,c,s,n||Pd(l,e));return new Tt(i,this._parents,t,e)}Ue.prototype.interrupt=xf;Ue.prototype.transition=Ld;function zt(t,e,n){return t.nodes().forEach(i=>mr(i)),e?t.transition().duration(e):t}class xr{constructor(e){this.data=e}get data(){return this._data}set data(e){this._data=e}}var F;(function(t){t.X="x",t.Y="y"})(F||(F={}));function ft(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function va(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const No=Symbol("implicit");function br(){var t=new Yr,e=[],n=[],i=No;function r(o){let s=t.get(o);if(s===void 0){if(i!==No)return i;t.set(o,s=e.push(o)-1)}return n[s%n.length]}return r.domain=function(o){if(!arguments.length)return e.slice();e=[],t=new Yr;for(const s of o)t.has(s)||t.set(s,e.push(s)-1);return r},r.range=function(o){return arguments.length?(n=Array.from(o),r):n.slice()},r.unknown=function(o){return arguments.length?(i=o,r):i},r.copy=function(){return br(e,n).unknown(i)},ft.apply(r,arguments),r}function wr(){var t=br().unknown(void 0),e=t.domain,n=t.range,i=0,r=1,o,s,a=!1,l=0,c=0,h=.5;delete t.unknown;function u(){var f=e().length,d=r<i,g=d?r:i,p=d?i:r;o=(p-g)/Math.max(1,f-l+c*2),a&&(o=Math.floor(o)),g+=(p-g-o*(f-l))*h,s=o*(1-l),a&&(g=Math.round(g),s=Math.round(s));var v=Cu(f).map(function(y){return g+o*y});return n(d?v.reverse():v)}return t.domain=function(f){return arguments.length?(e(f),u()):e()},t.range=function(f){return arguments.length?([i,r]=f,i=+i,r=+r,u()):[i,r]},t.rangeRound=function(f){return[i,r]=f,i=+i,r=+r,a=!0,u()},t.bandwidth=function(){return s},t.step=function(){return o},t.round=function(f){return arguments.length?(a=!!f,u()):a},t.padding=function(f){return arguments.length?(l=Math.min(1,c=+f),u()):l},t.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),u()):l},t.paddingOuter=function(f){return arguments.length?(c=+f,u()):c},t.align=function(f){return arguments.length?(h=Math.max(0,Math.min(1,f)),u()):h},t.copy=function(){return wr(e(),[i,r]).round(a).paddingInner(l).paddingOuter(c).align(h)},ft.apply(u(),arguments)}function _a(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return _a(e())},t}function Bd(){return _a(wr.apply(null,arguments).paddingInner(1))}function Id(t){return function(){return t}}function Ii(t){return+t}var Oo=[0,1];function Z(t){return t}function Ui(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Id(isNaN(e)?NaN:.5)}function Ud(t,e){var n;return t>e&&(n=t,t=e,e=n),function(i){return Math.max(t,Math.min(e,i))}}function Hd(t,e,n){var i=t[0],r=t[1],o=e[0],s=e[1];return r<i?(i=Ui(r,i),o=n(s,o)):(i=Ui(i,r),o=n(o,s)),function(a){return o(i(a))}}function Vd(t,e,n){var i=Math.min(t.length,e.length)-1,r=new Array(i),o=new Array(i),s=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<i;)r[s]=Ui(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(a){var l=Wn(t,a,1,i)-1;return o[l](r[l](a))}}function Ye(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function jn(){var t=Oo,e=Oo,n=pe,i,r,o,s=Z,a,l,c;function h(){var f=Math.min(t.length,e.length);return s!==Z&&(s=Ud(t[0],t[f-1])),a=f>2?Vd:Hd,l=c=null,u}function u(f){return f==null||isNaN(f=+f)?o:(l||(l=a(t.map(i),e,n)))(i(s(f)))}return u.invert=function(f){return s(r((c||(c=a(e,t.map(i),lt)))(f)))},u.domain=function(f){return arguments.length?(t=Array.from(f,Ii),h()):t.slice()},u.range=function(f){return arguments.length?(e=Array.from(f),h()):e.slice()},u.rangeRound=function(f){return e=Array.from(f),n=_r,h()},u.clamp=function(f){return arguments.length?(s=f?!0:Z,h()):s!==Z},u.interpolate=function(f){return arguments.length?(n=f,h()):n},u.unknown=function(f){return arguments.length?(o=f,u):o},function(f,d){return i=f,r=d,h()}}function ya(){return jn()(Z,Z)}function Wd(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Nn(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function ue(t){return t=Nn(Math.abs(t)),t?t[1]:NaN}function Yd(t,e){return function(n,i){for(var r=n.length,o=[],s=0,a=t[0],l=0;r>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),o.push(n.substring(r-=a,r+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length];return o.reverse().join(e)}}function Xd(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var qd=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ie(t){if(!(e=qd.exec(t)))throw new Error("invalid format: "+t);var e;return new kr({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Ie.prototype=kr.prototype;function kr(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}kr.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 Gd(t){t:for(var e=t.length,n=1,i=-1,r;n<e;++n)switch(t[n]){case".":i=r=n;break;case"0":i===0&&(i=n),r=n;break;default:if(!+t[n])break t;i>0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(r+1):t}var xa;function Zd(t,e){var n=Nn(t,e);if(!n)return t+"";var i=n[0],r=n[1],o=r-(xa=Math.max(-8,Math.min(8,Math.floor(r/3)))*3)+1,s=i.length;return o===s?i:o>s?i+new Array(o-s+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+Nn(t,Math.max(0,e+o-1))[0]}function Do(t,e){var n=Nn(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}const Ro={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Wd,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Do(t*100,e),r:Do,s:Zd,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Fo(t){return t}var zo=Array.prototype.map,Po=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function jd(t){var e=t.grouping===void 0||t.thousands===void 0?Fo:Yd(zo.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",i=t.currency===void 0?"":t.currency[1]+"",r=t.decimal===void 0?".":t.decimal+"",o=t.numerals===void 0?Fo:Xd(zo.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",a=t.minus===void 0?"−":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function c(u){u=Ie(u);var f=u.fill,d=u.align,g=u.sign,p=u.symbol,v=u.zero,y=u.width,x=u.comma,_=u.precision,S=u.trim,k=u.type;k==="n"?(x=!0,k="g"):Ro[k]||(_===void 0&&(_=12),S=!0,k="g"),(v||f==="0"&&d==="=")&&(v=!0,f="0",d="=");var w=p==="$"?n:p==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",T=p==="$"?i:/[%p]/.test(k)?s:"",L=Ro[k],R=/[defgprs%]/.test(k);_=_===void 0?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function J(A){var B=w,H=T,At,Ge,jt;if(k==="c")H=L(A)+H,A="";else{A=+A;var Qt=A<0||1/A<0;if(A=isNaN(A)?l:L(Math.abs(A),_),S&&(A=Gd(A)),Qt&&+A==0&&g!=="+"&&(Qt=!1),B=(Qt?g==="("?g:a:g==="-"||g==="("?"":g)+B,H=(k==="s"?Po[8+xa/3]:"")+H+(Qt&&g==="("?")":""),R){for(At=-1,Ge=A.length;++At<Ge;)if(jt=A.charCodeAt(At),48>jt||jt>57){H=(jt===46?r+A.slice(At+1):A.slice(At))+H,A=A.slice(0,At);break}}}x&&!v&&(A=e(A,1/0));var Jt=B.length+A.length+H.length,at=Jt<y?new Array(y-Jt+1).join(f):"";switch(x&&v&&(A=e(at+A,at.length?y-H.length:1/0),at=""),d){case"<":A=B+A+H+at;break;case"=":A=B+at+A+H;break;case"^":A=at.slice(0,Jt=at.length>>1)+B+A+H+at.slice(Jt);break;default:A=at+B+A+H;break}return o(A)}return J.toString=function(){return u+""},J}function h(u,f){var d=c((u=Ie(u),u.type="f",u)),g=Math.max(-8,Math.min(8,Math.floor(ue(f)/3)))*3,p=Math.pow(10,-g),v=Po[8+g/3];return function(y){return d(p*y)+v}}return{format:c,formatPrefix:h}}var nn,Tr,ba;Qd({thousands:",",grouping:[3],currency:["$",""]});function Qd(t){return nn=jd(t),Tr=nn.format,ba=nn.formatPrefix,nn}function Jd(t){return Math.max(0,-ue(Math.abs(t)))}function Kd(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ue(e)/3)))*3-ue(Math.abs(t)))}function tp(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,ue(e)-ue(t))+1}function ep(t,e,n,i){var r=Mi(t,e,n),o;switch(i=Ie(i??",f"),i.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return i.precision==null&&!isNaN(o=Kd(r,s))&&(i.precision=o),ba(i,s)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(o=tp(r,Math.max(Math.abs(t),Math.abs(e))))&&(i.precision=o-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(o=Jd(r))&&(i.precision=o-(i.type==="%")*2);break}}return Tr(i)}function qt(t){var e=t.domain;return t.ticks=function(n){var i=e();return Si(i[0],i[i.length-1],n??10)},t.tickFormat=function(n,i){var r=e();return ep(r[0],r[r.length-1],n??10,i)},t.nice=function(n){n==null&&(n=10);var i=e(),r=0,o=i.length-1,s=i[r],a=i[o],l,c,h=10;for(a<s&&(c=s,s=a,a=c,c=r,r=o,o=c);h-- >0;){if(c=Ci(s,a,n),c===l)return i[r]=s,i[o]=a,e(i);if(c>0)s=Math.floor(s/c)*c,a=Math.ceil(a/c)*c;else if(c<0)s=Math.ceil(s*c)/c,a=Math.floor(a*c)/c;else break;l=c}return t},t}function wa(){var t=ya();return t.copy=function(){return Ye(t,wa())},ft.apply(t,arguments),qt(t)}function ka(t){var e;function n(i){return i==null||isNaN(i=+i)?e:i}return n.invert=n,n.domain=n.range=function(i){return arguments.length?(t=Array.from(i,Ii),n):t.slice()},n.unknown=function(i){return arguments.length?(e=i,n):e},n.copy=function(){return ka(t).unknown(e)},t=arguments.length?Array.from(t,Ii):[0,1],qt(n)}function Ta(t,e){t=t.slice();var n=0,i=t.length-1,r=t[n],o=t[i],s;return o<r&&(s=n,n=i,i=s,s=r,r=o,o=s),t[n]=e.floor(r),t[i]=e.ceil(o),t}function Lo(t){return Math.log(t)}function Bo(t){return Math.exp(t)}function np(t){return-Math.log(-t)}function ip(t){return-Math.exp(-t)}function rp(t){return isFinite(t)?+("1e"+t):t<0?0:t}function op(t){return t===10?rp:t===Math.E?Math.exp:e=>Math.pow(t,e)}function sp(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function Io(t){return(e,n)=>-t(-e,n)}function ap(t){const e=t(Lo,Bo),n=e.domain;let i=10,r,o;function s(){return r=sp(i),o=op(i),n()[0]<0?(r=Io(r),o=Io(o),t(np,ip)):t(Lo,Bo),e}return e.base=function(a){return arguments.length?(i=+a,s()):i},e.domain=function(a){return arguments.length?(n(a),s()):n()},e.ticks=a=>{const l=n();let c=l[0],h=l[l.length-1];const u=h<c;u&&([c,h]=[h,c]);let f=r(c),d=r(h),g,p;const v=a==null?10:+a;let y=[];if(!(i%1)&&d-f<v){if(f=Math.floor(f),d=Math.ceil(d),c>0){for(;f<=d;++f)for(g=1;g<i;++g)if(p=f<0?g/o(-f):g*o(f),!(p<c)){if(p>h)break;y.push(p)}}else for(;f<=d;++f)for(g=i-1;g>=1;--g)if(p=f>0?g/o(-f):g*o(f),!(p<c)){if(p>h)break;y.push(p)}y.length*2<v&&(y=Si(c,h,v))}else y=Si(f,d,Math.min(d-f,v)).map(o);return u?y.reverse():y},e.tickFormat=(a,l)=>{if(a==null&&(a=10),l==null&&(l=i===10?"s":","),typeof l!="function"&&(!(i%1)&&(l=Ie(l)).precision==null&&(l.trim=!0),l=Tr(l)),a===1/0)return l;const c=Math.max(1,i*a/e.ticks().length);return h=>{let u=h/o(Math.round(r(h)));return u*i<i-.5&&(u*=i),u<=c?l(h):""}},e.nice=()=>n(Ta(n(),{floor:a=>o(Math.floor(r(a))),ceil:a=>o(Math.ceil(r(a)))})),e}function Sa(){const t=ap(jn()).domain([1,10]);return t.copy=()=>Ye(t,Sa()).base(t.base()),ft.apply(t,arguments),t}function Uo(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Ho(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function lp(t){var e=1,n=t(Uo(e),Ho(e));return n.constant=function(i){return arguments.length?t(Uo(e=+i),Ho(e)):e},qt(n)}function Ca(){var t=lp(jn());return t.copy=function(){return Ye(t,Ca()).constant(t.constant())},ft.apply(t,arguments)}function Vo(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function cp(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function up(t){return t<0?-t*t:t*t}function hp(t){var e=t(Z,Z),n=1;function i(){return n===1?t(Z,Z):n===.5?t(cp,up):t(Vo(n),Vo(1/n))}return e.exponent=function(r){return arguments.length?(n=+r,i()):n},qt(e)}function Sr(){var t=hp(jn());return t.copy=function(){return Ye(t,Sr()).exponent(t.exponent())},ft.apply(t,arguments),t}function fp(){return Sr.apply(null,arguments).exponent(.5)}function Ma(){var t=[],e=[],n=[],i;function r(){var s=0,a=Math.max(1,e.length);for(n=new Array(a-1);++s<a;)n[s-1]=ku(t,s/a);return o}function o(s){return s==null||isNaN(s=+s)?i:e[Wn(n,s)]}return o.invertExtent=function(s){var a=e.indexOf(s);return a<0?[NaN,NaN]:[a>0?n[a-1]:t[0],a<n.length?n[a]:t[t.length-1]]},o.domain=function(s){if(!arguments.length)return t.slice();t=[];for(let a of s)a!=null&&!isNaN(a=+a)&&t.push(a);return t.sort(Me),r()},o.range=function(s){return arguments.length?(e=Array.from(s),r()):e.slice()},o.unknown=function(s){return arguments.length?(i=s,o):i},o.quantiles=function(){return n.slice()},o.copy=function(){return Ma().domain(t).range(e).unknown(i)},ft.apply(o,arguments)}function Aa(){var t=0,e=1,n=1,i=[.5],r=[0,1],o;function s(l){return l!=null&&l<=l?r[Wn(i,l,0,n)]:o}function a(){var l=-1;for(i=new Array(n);++l<n;)i[l]=((l+1)*e-(l-n)*t)/(n+1);return s}return s.domain=function(l){return arguments.length?([t,e]=l,t=+t,e=+e,a()):[t,e]},s.range=function(l){return arguments.length?(n=(r=Array.from(l)).length-1,a()):r.slice()},s.invertExtent=function(l){var c=r.indexOf(l);return c<0?[NaN,NaN]:c<1?[t,i[0]]:c>=n?[i[n-1],e]:[i[c-1],i[c]]},s.unknown=function(l){return arguments.length&&(o=l),s},s.thresholds=function(){return i.slice()},s.copy=function(){return Aa().domain([t,e]).range(r).unknown(o)},ft.apply(qt(s),arguments)}function $a(){var t=[.5],e=[0,1],n,i=1;function r(o){return o!=null&&o<=o?e[Wn(t,o,0,i)]:n}return r.domain=function(o){return arguments.length?(t=Array.from(o),i=Math.min(t.length,e.length-1),r):t.slice()},r.range=function(o){return arguments.length?(e=Array.from(o),i=Math.min(t.length,e.length-1),r):e.slice()},r.invertExtent=function(o){var s=e.indexOf(o);return[t[s-1],t[s]]},r.unknown=function(o){return arguments.length?(n=o,r):n},r.copy=function(){return $a().domain(t).range(e).unknown(n)},ft.apply(r,arguments)}const mi=new Date,vi=new Date;function V(t,e,n,i){function r(o){return t(o=arguments.length===0?new Date:new Date(+o)),o}return r.floor=o=>(t(o=new Date(+o)),o),r.ceil=o=>(t(o=new Date(o-1)),e(o,1),t(o),o),r.round=o=>{const s=r(o),a=r.ceil(o);return o-s<a-o?s:a},r.offset=(o,s)=>(e(o=new Date(+o),s==null?1:Math.floor(s)),o),r.range=(o,s,a)=>{const l=[];if(o=r.ceil(o),a=a==null?1:Math.floor(a),!(o<s)||!(a>0))return l;let c;do l.push(c=new Date(+o)),e(o,a),t(o);while(c<o&&o<s);return l},r.filter=o=>V(s=>{if(s>=s)for(;t(s),!o(s);)s.setTime(s-1)},(s,a)=>{if(s>=s)if(a<0)for(;++a<=0;)for(;e(s,-1),!o(s););else for(;--a>=0;)for(;e(s,1),!o(s););}),n&&(r.count=(o,s)=>(mi.setTime(+o),vi.setTime(+s),t(mi),t(vi),Math.floor(n(mi,vi))),r.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?r.filter(i?s=>i(s)%o===0:s=>r.count(0,s)%o===0):r)),r}const On=V(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);On.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?V(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):On);On.range;const wt=1e3,st=wt*60,kt=st*60,St=kt*24,Cr=St*7,Wo=St*30,_i=St*365,Pt=V(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*wt)},(t,e)=>(e-t)/wt,t=>t.getUTCSeconds());Pt.range;const Mr=V(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*wt)},(t,e)=>{t.setTime(+t+e*st)},(t,e)=>(e-t)/st,t=>t.getMinutes());Mr.range;const Ar=V(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*st)},(t,e)=>(e-t)/st,t=>t.getUTCMinutes());Ar.range;const $r=V(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*wt-t.getMinutes()*st)},(t,e)=>{t.setTime(+t+e*kt)},(t,e)=>(e-t)/kt,t=>t.getHours());$r.range;const Er=V(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*kt)},(t,e)=>(e-t)/kt,t=>t.getUTCHours());Er.range;const Xe=V(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*st)/St,t=>t.getDate()-1);Xe.range;const Qn=V(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/St,t=>t.getUTCDate()-1);Qn.range;const Ea=V(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/St,t=>Math.floor(t/St));Ea.range;function Gt(t){return V(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*st)/Cr)}const Jn=Gt(0),Dn=Gt(1),dp=Gt(2),pp=Gt(3),he=Gt(4),gp=Gt(5),mp=Gt(6);Jn.range;Dn.range;dp.range;pp.range;he.range;gp.range;mp.range;function Zt(t){return V(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/Cr)}const Kn=Zt(0),Rn=Zt(1),vp=Zt(2),_p=Zt(3),fe=Zt(4),yp=Zt(5),xp=Zt(6);Kn.range;Rn.range;vp.range;_p.range;fe.range;yp.range;xp.range;const Nr=V(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Nr.range;const Or=V(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());Or.range;const Ct=V(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Ct.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:V(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});Ct.range;const Mt=V(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Mt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:V(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});Mt.range;function Na(t,e,n,i,r,o){const s=[[Pt,1,wt],[Pt,5,5*wt],[Pt,15,15*wt],[Pt,30,30*wt],[o,1,st],[o,5,5*st],[o,15,15*st],[o,30,30*st],[r,1,kt],[r,3,3*kt],[r,6,6*kt],[r,12,12*kt],[i,1,St],[i,2,2*St],[n,1,Cr],[e,1,Wo],[e,3,3*Wo],[t,1,_i]];function a(c,h,u){const f=h<c;f&&([c,h]=[h,c]);const d=u&&typeof u.range=="function"?u:l(c,h,u),g=d?d.range(c,+h+1):[];return f?g.reverse():g}function l(c,h,u){const f=Math.abs(h-c)/u,d=rr(([,,v])=>v).right(s,f);if(d===s.length)return t.every(Mi(c/_i,h/_i,u));if(d===0)return On.every(Math.max(Mi(c,h,u),1));const[g,p]=s[f/s[d-1][2]<s[d][2]/f?d-1:d];return g.every(p)}return[a,l]}const[bp,wp]=Na(Mt,Or,Kn,Ea,Er,Ar),[kp,Tp]=Na(Ct,Nr,Jn,Xe,$r,Mr);function yi(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function xi(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function _e(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Sp(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,o=t.days,s=t.shortDays,a=t.months,l=t.shortMonths,c=ye(r),h=xe(r),u=ye(o),f=xe(o),d=ye(s),g=xe(s),p=ye(a),v=xe(a),y=ye(l),x=xe(l),_={a:Qt,A:Jt,b:at,B:Sl,c:null,d:jo,e:jo,f:Gp,g:r0,G:s0,H:Yp,I:Xp,j:qp,L:Oa,m:Zp,M:jp,p:Cl,q:Ml,Q:Ko,s:ts,S:Qp,u:Jp,U:Kp,V:t0,w:e0,W:n0,x:null,X:null,y:i0,Y:o0,Z:a0,"%":Jo},S={a:Al,A:$l,b:El,B:Nl,c:null,d:Qo,e:Qo,f:h0,g:b0,G:k0,H:l0,I:c0,j:u0,L:Ra,m:f0,M:d0,p:Ol,q:Dl,Q:Ko,s:ts,S:p0,u:g0,U:m0,V:v0,w:_0,W:y0,x:null,X:null,y:x0,Y:w0,Z:T0,"%":Jo},k={a:J,A,b:B,B:H,c:At,d:Go,e:Go,f:Up,g:qo,G:Xo,H:Zo,I:Zo,j:Pp,L:Ip,m:zp,M:Lp,p:R,q:Fp,Q:Vp,s:Wp,S:Bp,u:Ep,U:Np,V:Op,w:$p,W:Dp,x:Ge,X:jt,y:qo,Y:Xo,Z:Rp,"%":Hp};_.x=w(n,_),_.X=w(i,_),_.c=w(e,_),S.x=w(n,S),S.X=w(i,S),S.c=w(e,S);function w(C,$){return function(E){var b=[],q=-1,P=0,K=C.length,tt,Dt,Hr;for(E instanceof Date||(E=new Date(+E));++q<K;)C.charCodeAt(q)===37&&(b.push(C.slice(P,q)),(Dt=Yo[tt=C.charAt(++q)])!=null?tt=C.charAt(++q):Dt=tt==="e"?" ":"0",(Hr=$[tt])&&(tt=Hr(E,Dt)),b.push(tt),P=q+1);return b.push(C.slice(P,q)),b.join("")}}function T(C,$){return function(E){var b=_e(1900,void 0,1),q=L(b,C,E+="",0),P,K;if(q!=E.length)return null;if("Q"in b)return new Date(b.Q);if("s"in b)return new Date(b.s*1e3+("L"in b?b.L:0));if($&&!("Z"in b)&&(b.Z=0),"p"in b&&(b.H=b.H%12+b.p*12),b.m===void 0&&(b.m="q"in b?b.q:0),"V"in b){if(b.V<1||b.V>53)return null;"w"in b||(b.w=1),"Z"in b?(P=xi(_e(b.y,0,1)),K=P.getUTCDay(),P=K>4||K===0?Rn.ceil(P):Rn(P),P=Qn.offset(P,(b.V-1)*7),b.y=P.getUTCFullYear(),b.m=P.getUTCMonth(),b.d=P.getUTCDate()+(b.w+6)%7):(P=yi(_e(b.y,0,1)),K=P.getDay(),P=K>4||K===0?Dn.ceil(P):Dn(P),P=Xe.offset(P,(b.V-1)*7),b.y=P.getFullYear(),b.m=P.getMonth(),b.d=P.getDate()+(b.w+6)%7)}else("W"in b||"U"in b)&&("w"in b||(b.w="u"in b?b.u%7:"W"in b?1:0),K="Z"in b?xi(_e(b.y,0,1)).getUTCDay():yi(_e(b.y,0,1)).getDay(),b.m=0,b.d="W"in b?(b.w+6)%7+b.W*7-(K+5)%7:b.w+b.U*7-(K+6)%7);return"Z"in b?(b.H+=b.Z/100|0,b.M+=b.Z%100,xi(b)):yi(b)}}function L(C,$,E,b){for(var q=0,P=$.length,K=E.length,tt,Dt;q<P;){if(b>=K)return-1;if(tt=$.charCodeAt(q++),tt===37){if(tt=$.charAt(q++),Dt=k[tt in Yo?$.charAt(q++):tt],!Dt||(b=Dt(C,E,b))<0)return-1}else if(tt!=E.charCodeAt(b++))return-1}return b}function R(C,$,E){var b=c.exec($.slice(E));return b?(C.p=h.get(b[0].toLowerCase()),E+b[0].length):-1}function J(C,$,E){var b=d.exec($.slice(E));return b?(C.w=g.get(b[0].toLowerCase()),E+b[0].length):-1}function A(C,$,E){var b=u.exec($.slice(E));return b?(C.w=f.get(b[0].toLowerCase()),E+b[0].length):-1}function B(C,$,E){var b=y.exec($.slice(E));return b?(C.m=x.get(b[0].toLowerCase()),E+b[0].length):-1}function H(C,$,E){var b=p.exec($.slice(E));return b?(C.m=v.get(b[0].toLowerCase()),E+b[0].length):-1}function At(C,$,E){return L(C,e,$,E)}function Ge(C,$,E){return L(C,n,$,E)}function jt(C,$,E){return L(C,i,$,E)}function Qt(C){return s[C.getDay()]}function Jt(C){return o[C.getDay()]}function at(C){return l[C.getMonth()]}function Sl(C){return a[C.getMonth()]}function Cl(C){return r[+(C.getHours()>=12)]}function Ml(C){return 1+~~(C.getMonth()/3)}function Al(C){return s[C.getUTCDay()]}function $l(C){return o[C.getUTCDay()]}function El(C){return l[C.getUTCMonth()]}function Nl(C){return a[C.getUTCMonth()]}function Ol(C){return r[+(C.getUTCHours()>=12)]}function Dl(C){return 1+~~(C.getUTCMonth()/3)}return{format:function(C){var $=w(C+="",_);return $.toString=function(){return C},$},parse:function(C){var $=T(C+="",!1);return $.toString=function(){return C},$},utcFormat:function(C){var $=w(C+="",S);return $.toString=function(){return C},$},utcParse:function(C){var $=T(C+="",!0);return $.toString=function(){return C},$}}}var Yo={"-":"",_:" ",0:"0"},W=/^\s*\d+/,Cp=/^%/,Mp=/[\\^$*+?|[\]().{}]/g;function N(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",o=r.length;return i+(o<n?new Array(n-o+1).join(e)+r:r)}function Ap(t){return t.replace(Mp,"\\$&")}function ye(t){return new RegExp("^(?:"+t.map(Ap).join("|")+")","i")}function xe(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function $p(t,e,n){var i=W.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function Ep(t,e,n){var i=W.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function Np(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function Op(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function Dp(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function Xo(t,e,n){var i=W.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function qo(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function Rp(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Fp(t,e,n){var i=W.exec(e.slice(n,n+1));return i?(t.q=i[0]*3-3,n+i[0].length):-1}function zp(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function Go(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function Pp(t,e,n){var i=W.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function Zo(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function Lp(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function Bp(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function Ip(t,e,n){var i=W.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function Up(t,e,n){var i=W.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function Hp(t,e,n){var i=Cp.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function Vp(t,e,n){var i=W.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function Wp(t,e,n){var i=W.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function jo(t,e){return N(t.getDate(),e,2)}function Yp(t,e){return N(t.getHours(),e,2)}function Xp(t,e){return N(t.getHours()%12||12,e,2)}function qp(t,e){return N(1+Xe.count(Ct(t),t),e,3)}function Oa(t,e){return N(t.getMilliseconds(),e,3)}function Gp(t,e){return Oa(t,e)+"000"}function Zp(t,e){return N(t.getMonth()+1,e,2)}function jp(t,e){return N(t.getMinutes(),e,2)}function Qp(t,e){return N(t.getSeconds(),e,2)}function Jp(t){var e=t.getDay();return e===0?7:e}function Kp(t,e){return N(Jn.count(Ct(t)-1,t),e,2)}function Da(t){var e=t.getDay();return e>=4||e===0?he(t):he.ceil(t)}function t0(t,e){return t=Da(t),N(he.count(Ct(t),t)+(Ct(t).getDay()===4),e,2)}function e0(t){return t.getDay()}function n0(t,e){return N(Dn.count(Ct(t)-1,t),e,2)}function i0(t,e){return N(t.getFullYear()%100,e,2)}function r0(t,e){return t=Da(t),N(t.getFullYear()%100,e,2)}function o0(t,e){return N(t.getFullYear()%1e4,e,4)}function s0(t,e){var n=t.getDay();return t=n>=4||n===0?he(t):he.ceil(t),N(t.getFullYear()%1e4,e,4)}function a0(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+N(e/60|0,"0",2)+N(e%60,"0",2)}function Qo(t,e){return N(t.getUTCDate(),e,2)}function l0(t,e){return N(t.getUTCHours(),e,2)}function c0(t,e){return N(t.getUTCHours()%12||12,e,2)}function u0(t,e){return N(1+Qn.count(Mt(t),t),e,3)}function Ra(t,e){return N(t.getUTCMilliseconds(),e,3)}function h0(t,e){return Ra(t,e)+"000"}function f0(t,e){return N(t.getUTCMonth()+1,e,2)}function d0(t,e){return N(t.getUTCMinutes(),e,2)}function p0(t,e){return N(t.getUTCSeconds(),e,2)}function g0(t){var e=t.getUTCDay();return e===0?7:e}function m0(t,e){return N(Kn.count(Mt(t)-1,t),e,2)}function Fa(t){var e=t.getUTCDay();return e>=4||e===0?fe(t):fe.ceil(t)}function v0(t,e){return t=Fa(t),N(fe.count(Mt(t),t)+(Mt(t).getUTCDay()===4),e,2)}function _0(t){return t.getUTCDay()}function y0(t,e){return N(Rn.count(Mt(t)-1,t),e,2)}function x0(t,e){return N(t.getUTCFullYear()%100,e,2)}function b0(t,e){return t=Fa(t),N(t.getUTCFullYear()%100,e,2)}function w0(t,e){return N(t.getUTCFullYear()%1e4,e,4)}function k0(t,e){var n=t.getUTCDay();return t=n>=4||n===0?fe(t):fe.ceil(t),N(t.getUTCFullYear()%1e4,e,4)}function T0(){return"+0000"}function Jo(){return"%"}function Ko(t){return+t}function ts(t){return Math.floor(+t/1e3)}var Kt,za,Pa;S0({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function S0(t){return Kt=Sp(t),za=Kt.format,Kt.parse,Pa=Kt.utcFormat,Kt.utcParse,Kt}function C0(t){return new Date(t)}function M0(t){return t instanceof Date?+t:+new Date(+t)}function Dr(t,e,n,i,r,o,s,a,l,c){var h=ya(),u=h.invert,f=h.domain,d=c(".%L"),g=c(":%S"),p=c("%I:%M"),v=c("%I %p"),y=c("%a %d"),x=c("%b %d"),_=c("%B"),S=c("%Y");function k(w){return(l(w)<w?d:a(w)<w?g:s(w)<w?p:o(w)<w?v:i(w)<w?r(w)<w?y:x:n(w)<w?_:S)(w)}return h.invert=function(w){return new Date(u(w))},h.domain=function(w){return arguments.length?f(Array.from(w,M0)):f().map(C0)},h.ticks=function(w){var T=f();return t(T[0],T[T.length-1],w??10)},h.tickFormat=function(w,T){return T==null?k:c(T)},h.nice=function(w){var T=f();return(!w||typeof w.range!="function")&&(w=e(T[0],T[T.length-1],w??10)),w?f(Ta(T,w)):h},h.copy=function(){return Ye(h,Dr(t,e,n,i,r,o,s,a,l,c))},h}function A0(){return ft.apply(Dr(kp,Tp,Ct,Nr,Jn,Xe,$r,Mr,Pt,za).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function $0(){return ft.apply(Dr(bp,wp,Mt,Or,Kn,Qn,Er,Ar,Pt,Pa).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function E0(){var t=0,e=1,n,i,r,o,s=Z,a=!1,l;function c(u){return u==null||isNaN(u=+u)?l:s(r===0?.5:(u=(o(u)-n)*r,a?Math.max(0,Math.min(1,u)):u))}c.domain=function(u){return arguments.length?([t,e]=u,n=o(t=+t),i=o(e=+e),r=n===i?0:1/(i-n),c):[t,e]},c.clamp=function(u){return arguments.length?(a=!!u,c):a},c.interpolator=function(u){return arguments.length?(s=u,c):s};function h(u){return function(f){var d,g;return arguments.length?([d,g]=f,s=u(d,g),c):[s(0),s(1)]}}return c.range=h(pe),c.rangeRound=h(_r),c.unknown=function(u){return arguments.length?(l=u,c):l},function(u){return o=u,n=u(t),i=u(e),r=n===i?0:1/(i-n),c}}function La(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Ba(){var t=qt(E0()(Z));return t.copy=function(){return La(t,Ba())},va.apply(t,arguments)}function N0(){var t=0,e=.5,n=1,i=1,r,o,s,a,l,c=Z,h,u=!1,f;function d(p){return isNaN(p=+p)?f:(p=.5+((p=+h(p))-o)*(i*p<i*o?a:l),c(u?Math.max(0,Math.min(1,p)):p))}d.domain=function(p){return arguments.length?([t,e,n]=p,r=h(t=+t),o=h(e=+e),s=h(n=+n),a=r===o?0:.5/(o-r),l=o===s?0:.5/(s-o),i=o<r?-1:1,d):[t,e,n]},d.clamp=function(p){return arguments.length?(u=!!p,d):u},d.interpolator=function(p){return arguments.length?(c=p,d):c};function g(p){return function(v){var y,x,_;return arguments.length?([y,x,_]=v,c=Ff(p,[y,x,_]),d):[c(0),c(.5),c(1)]}}return d.range=g(pe),d.rangeRound=g(_r),d.unknown=function(p){return arguments.length?(f=p,d):f},function(p){return h=p,r=p(t),o=p(e),s=p(n),a=r===o?0:.5/(o-r),l=o===s?0:.5/(s-o),i=o<r?-1:1,d}}function Ia(){var t=qt(N0()(Z));return t.copy=function(){return La(t,Ia())},va.apply(t,arguments)}const es={scaleLinear:wa,scalePow:Sr,scaleSqrt:fp,scaleLog:Sa,scaleSymlog:Ca,scaleIdentity:ka,scaleTime:A0,scaleUtc:$0,scaleSequential:Ba,scaleDiverging:Ia,scaleQuantize:Aa,scaleQuantile:Ma,scaleThreshold:$a,scaleOrdinal:br,scaleBand:wr,scalePoint:Bd};var I;(function(t){t.X="x",t.Y="y"})(I||(I={}));var Ut;(function(t){t.West="west",t.East="east",t.North="north",t.South="south"})(Ut||(Ut={}));const O0=Object.assign(Object.assign({},Hs),{components:[],tooltip:void 0,crosshair:void 0,annotations:void 0,xAxis:void 0,yAxis:void 0,autoMargin:!0,xScale:void 0,xDomain:void 0,xDomainMinConstraint:void 0,xDomainMaxConstraint:void 0,xRange:void 0,yScale:void 0,yDomain:void 0,yDomainMinConstraint:void 0,yDomainMaxConstraint:void 0,yRange:void 0,yDirection:Ut.North,preventEmptyDomain:null,scaleByDomain:!1});class D0 extends De{constructor(e,n,i){var r,o;super(e),this._defaultConfig=O0,this.datamodel=new xr,this.config=this._defaultConfig,this._clipPathId=Ks(),this._axisMargin={top:0,bottom:0,left:0,right:0},this._firstRender=!0,this._clipPath=this.svg.append("clipPath").attr("id",this._clipPathId),this._clipPath.append("rect");const s="saturate",a=window.location.href.replace(window.location.hash,"");this.svg.attr("class",z`
|
|
52
|
+
`;function Ef(t=window==null?void 0:window.document.body){return t?+ff("var(--vis-font-wh-ratio)",t):Fs}var Nf={value:()=>{}};function Bs(){for(var t=0,e=arguments.length,n={},i;t<e;++t){if(!(i=arguments[t]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new Ke(n)}function Ke(t){this._=t}function Of(t,e){return t.trim().split(/^|\s+/).map(function(n){var i="",r=n.indexOf(".");if(r>=0&&(i=n.slice(r+1),n=n.slice(0,r)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}Ke.prototype=Bs.prototype={constructor:Ke,on:function(t,e){var n=this._,i=Of(t+"",n),r,o=-1,s=i.length;if(arguments.length<2){for(;++o<s;)if((r=(t=i[o]).type)&&(r=Df(n[r],t.name)))return r;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(r=(t=i[o]).type)n[r]=no(n[r],t.name,e);else if(e==null)for(r in n)n[r]=no(n[r],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Ke(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var n=new Array(r),i=0,r,o;i<r;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],i=0,r=o.length;i<r;++i)o[i].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,o=i.length;r<o;++r)i[r].value.apply(e,n)}};function Df(t,e){for(var n=0,i=t.length,r;n<i;++n)if((r=t[n]).name===e)return r.value}function no(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=Nf,t=t.slice(0,i).concat(t.slice(i+1));break}return n!=null&&t.push({name:e,value:n}),t}var ie=0,_e=0,fe=0,Is=1e3,mn,me,vn=0,It=0,Fn=0,De=typeof performance=="object"&&performance.now?performance:Date,Ps=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Xi(){return It||(Ps(Rf),It=De.now()+Fn)}function Rf(){It=0}function yn(){this._call=this._time=this._next=null}yn.prototype=Us.prototype={constructor:yn,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?Xi():+n)+(e==null?0:+e),!this._next&&me!==this&&(me?me._next=this:mn=this,me=this),this._call=t,this._time=n,vi()},stop:function(){this._call&&(this._call=null,this._time=1/0,vi())}};function Us(t,e,n){var i=new yn;return i.restart(t,e,n),i}function Ff(){Xi(),++ie;for(var t=mn,e;t;)(e=It-t._time)>=0&&t._call.call(void 0,e),t=t._next;--ie}function io(){It=(vn=De.now())+Fn,ie=_e=0;try{Ff()}finally{ie=0,zf(),It=0}}function Lf(){var t=De.now(),e=t-vn;e>Is&&(Fn-=e,vn=t)}function zf(){for(var t,e=mn,n,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:mn=n);me=t,vi(i)}function vi(t){if(!ie){_e&&(_e=clearTimeout(_e));var e=t-It;e>24?(t<1/0&&(_e=setTimeout(io,t-De.now()-Fn)),fe&&(fe=clearInterval(fe))):(fe||(vn=De.now(),fe=setInterval(Lf,Is)),ie=1,Ps(io))}}function ro(t,e,n){var i=new yn;return e=e==null?0:+e,i.restart(r=>{i.stop(),t(r+e)},e,n),i}var Bf=Bs("start","end","cancel","interrupt"),If=[],Hs=0,oo=1,yi=2,tn=3,so=4,xi=5,en=6;function Ln(t,e,n,i,r,o){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;Pf(t,n,{name:e,index:i,group:r,on:Bf,tween:If,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Hs})}function qi(t,e){var n=at(t,e);if(n.state>Hs)throw new Error("too late; already scheduled");return n}function dt(t,e){var n=at(t,e);if(n.state>tn)throw new Error("too late; already running");return n}function at(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Pf(t,e,n){var i=t.__transition,r;i[e]=n,n.timer=Us(o,0,n.time);function o(u){n.state=oo,n.timer.restart(s,n.delay,n.time),n.delay<=u&&s(u-n.delay)}function s(u){var f,l,h,d;if(n.state!==oo)return c();for(f in i)if(d=i[f],d.name===n.name){if(d.state===tn)return ro(s);d.state===so?(d.state=en,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[f]):+f<e&&(d.state=en,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete i[f])}if(ro(function(){n.state===tn&&(n.state=so,n.timer.restart(a,n.delay,n.time),a(u))}),n.state=yi,n.on.call("start",t,t.__data__,n.index,n.group),n.state===yi){for(n.state=tn,r=new Array(h=n.tween.length),f=0,l=-1;f<h;++f)(d=n.tween[f].value.call(t,t.__data__,n.index,n.group))&&(r[++l]=d);r.length=l+1}}function a(u){for(var f=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(c),n.state=xi,1),l=-1,h=r.length;++l<h;)r[l].call(t,f);n.state===xi&&(n.on.call("end",t,t.__data__,n.index,n.group),c())}function c(){n.state=en,n.timer.stop(),delete i[e];for(var u in i)return;delete t.__transition}}function Gi(t,e){var n=t.__transition,i,r,o=!0,s;if(n){e=e==null?null:e+"";for(s in n){if((i=n[s]).name!==e){o=!1;continue}r=i.state>yi&&i.state<xi,i.state=en,i.timer.stop(),i.on.call(r?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete n[s]}o&&delete t.__transition}}function Uf(t){return this.each(function(){Gi(this,t)})}const Zi=t=>()=>t;function Hf(t,e){return function(n){return t+n*e}}function Vf(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}function Yf(t){return(t=+t)==1?Vs:function(e,n){return n-e?Vf(e,n,t):Zi(isNaN(e)?n:e)}}function Vs(t,e){var n=e-t;return n?Hf(t,n):Zi(isNaN(t)?e:t)}const xn=function t(e){var n=Yf(e);function i(r,o){var s=n((r=pi(r)).r,(o=pi(o)).r),a=n(r.g,o.g),c=n(r.b,o.b),u=Vs(r.opacity,o.opacity);return function(f){return r.r=s(f),r.g=a(f),r.b=c(f),r.opacity=u(f),r+""}}return i.gamma=t,i}(1);function Wf(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,i=e.slice(),r;return function(o){for(r=0;r<n;++r)i[r]=t[r]*(1-o)+e[r]*o;return i}}function Xf(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function qf(t,e){var n=e?e.length:0,i=t?Math.min(n,t.length):0,r=new Array(i),o=new Array(n),s;for(s=0;s<i;++s)r[s]=ce(t[s],e[s]);for(;s<n;++s)o[s]=e[s];return function(a){for(s=0;s<i;++s)o[s]=r[s](a);return o}}function Gf(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function rt(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Zf(t,e){var n={},i={},r;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(r in e)r in t?n[r]=ce(t[r],e[r]):i[r]=e[r];return function(o){for(r in n)i[r]=n[r](o);return i}}var wi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Kn=new RegExp(wi.source,"g");function jf(t){return function(){return t}}function Qf(t){return function(e){return t(e)+""}}function Ys(t,e){var n=wi.lastIndex=Kn.lastIndex=0,i,r,o,s=-1,a=[],c=[];for(t=t+"",e=e+"";(i=wi.exec(t))&&(r=Kn.exec(e));)(o=r.index)>n&&(o=e.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(i=i[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,c.push({i:s,x:rt(i,r)})),n=Kn.lastIndex;return n<e.length&&(o=e.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?c[0]?Qf(c[0].x):jf(e):(e=c.length,function(u){for(var f=0,l;f<e;++f)a[(l=c[f]).i]=l.x(u);return a.join("")})}function ce(t,e){var n=typeof e,i;return e==null||n==="boolean"?Zi(e):(n==="number"?rt:n==="string"?(i=Bt(e))?(e=i,xn):Ys:e instanceof Bt?xn:e instanceof Date?Gf:Xf(e)?Wf:Array.isArray(e)?qf:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Zf:rt)(t,e)}function ji(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var ao=180/Math.PI,bi={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ws(t,e,n,i,r,o){var s,a,c;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(c=t*n+e*i)&&(n-=t*c,i-=e*c),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,c/=a),t*i<e*n&&(t=-t,e=-e,c=-c,s=-s),{translateX:r,translateY:o,rotate:Math.atan2(e,t)*ao,skewX:Math.atan(c)*ao,scaleX:s,scaleY:a}}var qe;function Jf(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?bi:Ws(e.a,e.b,e.c,e.d,e.e,e.f)}function Kf(t){return t==null||(qe||(qe=document.createElementNS("http://www.w3.org/2000/svg","g")),qe.setAttribute("transform",t),!(t=qe.transform.baseVal.consolidate()))?bi:(t=t.matrix,Ws(t.a,t.b,t.c,t.d,t.e,t.f))}function Xs(t,e,n,i){function r(u){return u.length?u.pop()+" ":""}function o(u,f,l,h,d,p){if(u!==l||f!==h){var g=d.push("translate(",null,e,null,n);p.push({i:g-4,x:rt(u,l)},{i:g-2,x:rt(f,h)})}else(l||h)&&d.push("translate("+l+e+h+n)}function s(u,f,l,h){u!==f?(u-f>180?f+=360:f-u>180&&(u+=360),h.push({i:l.push(r(l)+"rotate(",null,i)-2,x:rt(u,f)})):f&&l.push(r(l)+"rotate("+f+i)}function a(u,f,l,h){u!==f?h.push({i:l.push(r(l)+"skewX(",null,i)-2,x:rt(u,f)}):f&&l.push(r(l)+"skewX("+f+i)}function c(u,f,l,h,d,p){if(u!==l||f!==h){var g=d.push(r(d)+"scale(",null,",",null,")");p.push({i:g-4,x:rt(u,l)},{i:g-2,x:rt(f,h)})}else(l!==1||h!==1)&&d.push(r(d)+"scale("+l+","+h+")")}return function(u,f){var l=[],h=[];return u=t(u),f=t(f),o(u.translateX,u.translateY,f.translateX,f.translateY,l,h),s(u.rotate,f.rotate,l,h),a(u.skewX,f.skewX,l,h),c(u.scaleX,u.scaleY,f.scaleX,f.scaleY,l,h),u=f=null,function(d){for(var p=-1,g=h.length,m;++p<g;)l[(m=h[p]).i]=m.x(d);return l.join("")}}}var th=Xs(Jf,"px, ","px)","deg)"),eh=Xs(Kf,", ",")",")");function nh(t,e){e===void 0&&(e=t,t=ce);for(var n=0,i=e.length-1,r=e[0],o=new Array(i<0?0:i);n<i;)o[n]=t(r,r=e[++n]);return function(s){var a=Math.max(0,Math.min(i-1,Math.floor(s*=i)));return o[a](s-a)}}function ih(t,e){var n,i;return function(){var r=dt(this,t),o=r.tween;if(o!==n){i=n=o;for(var s=0,a=i.length;s<a;++s)if(i[s].name===e){i=i.slice(),i.splice(s,1);break}}r.tween=i}}function rh(t,e,n){var i,r;if(typeof n!="function")throw new Error;return function(){var o=dt(this,t),s=o.tween;if(s!==i){r=(i=s).slice();for(var a={name:e,value:n},c=0,u=r.length;c<u;++c)if(r[c].name===e){r[c]=a;break}c===u&&r.push(a)}o.tween=r}}function oh(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i=at(this.node(),n).tween,r=0,o=i.length,s;r<o;++r)if((s=i[r]).name===t)return s.value;return null}return this.each((e==null?ih:rh)(n,t,e))}function Qi(t,e,n){var i=t._id;return t.each(function(){var r=dt(this,i);(r.value||(r.value={}))[e]=n.apply(this,arguments)}),function(r){return at(r,i).value[e]}}function qs(t,e){var n;return(typeof e=="number"?rt:e instanceof Bt?xn:(n=Bt(e))?(e=n,xn):Ys)(t,e)}function sh(t){return function(){this.removeAttribute(t)}}function ah(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ch(t,e,n){var i,r=n+"",o;return function(){var s=this.getAttribute(t);return s===r?null:s===i?o:o=e(i=s,n)}}function uh(t,e,n){var i,r=n+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===r?null:s===i?o:o=e(i=s,n)}}function lh(t,e,n){var i,r,o;return function(){var s,a=n(this),c;return a==null?void this.removeAttribute(t):(s=this.getAttribute(t),c=a+"",s===c?null:s===i&&c===r?o:(r=c,o=e(i=s,a)))}}function fh(t,e,n){var i,r,o;return function(){var s,a=n(this),c;return a==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),c=a+"",s===c?null:s===i&&c===r?o:(r=c,o=e(i=s,a)))}}function hh(t,e){var n=En(t),i=n==="transform"?eh:qs;return this.attrTween(t,typeof e=="function"?(n.local?fh:lh)(n,i,Qi(this,"attr."+t,e)):e==null?(n.local?ah:sh)(n):(n.local?uh:ch)(n,i,e))}function dh(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function gh(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function ph(t,e){var n,i;function r(){var o=e.apply(this,arguments);return o!==i&&(n=(i=o)&&gh(t,o)),n}return r._value=e,r}function _h(t,e){var n,i;function r(){var o=e.apply(this,arguments);return o!==i&&(n=(i=o)&&dh(t,o)),n}return r._value=e,r}function mh(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var i=En(t);return this.tween(n,(i.local?ph:_h)(i,e))}function vh(t,e){return function(){qi(this,t).delay=+e.apply(this,arguments)}}function yh(t,e){return e=+e,function(){qi(this,t).delay=e}}function xh(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?vh:yh)(e,t)):at(this.node(),e).delay}function wh(t,e){return function(){dt(this,t).duration=+e.apply(this,arguments)}}function bh(t,e){return e=+e,function(){dt(this,t).duration=e}}function kh(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?wh:bh)(e,t)):at(this.node(),e).duration}function Th(t,e){if(typeof e!="function")throw new Error;return function(){dt(this,t).ease=e}}function Sh(t){var e=this._id;return arguments.length?this.each(Th(e,t)):at(this.node(),e).ease}function Mh(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;dt(this,t).ease=n}}function Ch(t){if(typeof t!="function")throw new Error;return this.each(Mh(this._id,t))}function Ah(t){typeof t!="function"&&(t=ns(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o=e[r],s=o.length,a=i[r]=[],c,u=0;u<s;++u)(c=o[u])&&t.call(c,c.__data__,u,o)&&a.push(c);return new mt(i,this._parents,this._name,this._id)}function $h(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=n.length,o=Math.min(i,r),s=new Array(i),a=0;a<o;++a)for(var c=e[a],u=n[a],f=c.length,l=s[a]=new Array(f),h,d=0;d<f;++d)(h=c[d]||u[d])&&(l[d]=h);for(;a<i;++a)s[a]=e[a];return new mt(s,this._parents,this._name,this._id)}function Eh(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function Nh(t,e,n){var i,r,o=Eh(e)?qi:dt;return function(){var s=o(this,t),a=s.on;a!==i&&(r=(i=a).copy()).on(e,n),s.on=r}}function Oh(t,e){var n=this._id;return arguments.length<2?at(this.node(),n).on.on(t):this.each(Nh(n,t,e))}function Dh(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function Rh(){return this.on("end.remove",Dh(this._id))}function Fh(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Ri(t));for(var i=this._groups,r=i.length,o=new Array(r),s=0;s<r;++s)for(var a=i[s],c=a.length,u=o[s]=new Array(c),f,l,h=0;h<c;++h)(f=a[h])&&(l=t.call(f,f.__data__,h,a))&&("__data__"in f&&(l.__data__=f.__data__),u[h]=l,Ln(u[h],e,n,h,u,at(f,n)));return new mt(o,this._parents,e,n)}function Lh(t){var e=this._name,n=this._id;typeof t!="function"&&(t=es(t));for(var i=this._groups,r=i.length,o=[],s=[],a=0;a<r;++a)for(var c=i[a],u=c.length,f,l=0;l<u;++l)if(f=c[l]){for(var h=t.call(f,f.__data__,l,c),d,p=at(f,n),g=0,m=h.length;g<m;++g)(d=h[g])&&Ln(d,e,n,g,h,p);o.push(h),s.push(f)}return new mt(o,s,e,n)}var zh=Fe.prototype.constructor;function Bh(){return new zh(this._groups,this._parents)}function Ih(t,e){var n,i,r;return function(){var o=te(this,t),s=(this.style.removeProperty(t),te(this,t));return o===s?null:o===n&&s===i?r:r=e(n=o,i=s)}}function Gs(t){return function(){this.style.removeProperty(t)}}function Ph(t,e,n){var i,r=n+"",o;return function(){var s=te(this,t);return s===r?null:s===i?o:o=e(i=s,n)}}function Uh(t,e,n){var i,r,o;return function(){var s=te(this,t),a=n(this),c=a+"";return a==null&&(c=a=(this.style.removeProperty(t),te(this,t))),s===c?null:s===i&&c===r?o:(r=c,o=e(i=s,a))}}function Hh(t,e){var n,i,r,o="style."+e,s="end."+o,a;return function(){var c=dt(this,t),u=c.on,f=c.value[o]==null?a||(a=Gs(e)):void 0;(u!==n||r!==f)&&(i=(n=u).copy()).on(s,r=f),c.on=i}}function Vh(t,e,n){var i=(t+="")=="transform"?th:qs;return e==null?this.styleTween(t,Ih(t,i)).on("end.style."+t,Gs(t)):typeof e=="function"?this.styleTween(t,Uh(t,i,Qi(this,"style."+t,e))).each(Hh(this._id,t)):this.styleTween(t,Ph(t,i,e),n).on("end.style."+t,null)}function Yh(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function Wh(t,e,n){var i,r;function o(){var s=e.apply(this,arguments);return s!==r&&(i=(r=s)&&Yh(t,s,n)),i}return o._value=e,o}function Xh(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,Wh(t,e,n??""))}function qh(t){return function(){this.textContent=t}}function Gh(t){return function(){var e=t(this);this.textContent=e??""}}function Zh(t){return this.tween("text",typeof t=="function"?Gh(Qi(this,"text",t)):qh(t==null?"":t+""))}function jh(t){return function(e){this.textContent=t.call(this,e)}}function Qh(t){var e,n;function i(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&jh(r)),e}return i._value=t,i}function Jh(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Qh(t))}function Kh(){for(var t=this._name,e=this._id,n=Zs(),i=this._groups,r=i.length,o=0;o<r;++o)for(var s=i[o],a=s.length,c,u=0;u<a;++u)if(c=s[u]){var f=at(c,e);Ln(c,t,n,u,s,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new mt(i,this._parents,t,n)}function td(){var t,e,n=this,i=n._id,r=n.size();return new Promise(function(o,s){var a={value:s},c={value:function(){--r===0&&o()}};n.each(function(){var u=dt(this,i),f=u.on;f!==t&&(e=(t=f).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(c)),u.on=e}),r===0&&o()})}var ed=0;function mt(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function Zs(){return++ed}var gt=Fe.prototype;mt.prototype={constructor:mt,select:Fh,selectAll:Lh,selectChild:gt.selectChild,selectChildren:gt.selectChildren,filter:Ah,merge:$h,selection:Bh,transition:Kh,call:gt.call,nodes:gt.nodes,node:gt.node,size:gt.size,empty:gt.empty,each:gt.each,on:Oh,attr:hh,attrTween:mh,style:Vh,styleTween:Xh,text:Zh,textTween:Jh,remove:Rh,tween:oh,delay:xh,duration:kh,ease:Sh,easeVarying:Ch,end:td,[Symbol.iterator]:gt[Symbol.iterator]};function nd(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var id={time:null,delay:0,duration:250,ease:nd};function rd(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function od(t){var e,n;t instanceof mt?(e=t._id,t=t._name):(e=Zs(),(n=id).time=Xi(),t=t==null?null:t+"");for(var i=this._groups,r=i.length,o=0;o<r;++o)for(var s=i[o],a=s.length,c,u=0;u<a;++u)(c=s[u])&&Ln(c,t,e,u,s,n||rd(c,e));return new mt(i,this._parents,t,e)}Fe.prototype.interrupt=Uf;Fe.prototype.transition=od;function $t(t,e,n){return t.nodes().forEach(i=>Gi(i)),e?t.transition().duration(e):t}class Ji{constructor(e){this.data=e}get data(){return this._data}set data(e){this._data=e}}var F;(function(t){t.X="x",t.Y="y"})(F||(F={}));function ct(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function js(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const co=Symbol("implicit");function Ki(){var t=new br,e=[],n=[],i=co;function r(o){let s=t.get(o);if(s===void 0){if(i!==co)return i;t.set(o,s=e.push(o)-1)}return n[s%n.length]}return r.domain=function(o){if(!arguments.length)return e.slice();e=[],t=new br;for(const s of o)t.has(s)||t.set(s,e.push(s)-1);return r},r.range=function(o){return arguments.length?(n=Array.from(o),r):n.slice()},r.unknown=function(o){return arguments.length?(i=o,r):i},r.copy=function(){return Ki(e,n).unknown(i)},ct.apply(r,arguments),r}function tr(){var t=Ki().unknown(void 0),e=t.domain,n=t.range,i=0,r=1,o,s,a=!1,c=0,u=0,f=.5;delete t.unknown;function l(){var h=e().length,d=r<i,p=d?r:i,g=d?i:r;o=(g-p)/Math.max(1,h-c+u*2),a&&(o=Math.floor(o)),p+=(g-p-o*(h-c))*f,s=o*(1-c),a&&(p=Math.round(p),s=Math.round(s));var m=qu(h).map(function(y){return p+o*y});return n(d?m.reverse():m)}return t.domain=function(h){return arguments.length?(e(h),l()):e()},t.range=function(h){return arguments.length?([i,r]=h,i=+i,r=+r,l()):[i,r]},t.rangeRound=function(h){return[i,r]=h,i=+i,r=+r,a=!0,l()},t.bandwidth=function(){return s},t.step=function(){return o},t.round=function(h){return arguments.length?(a=!!h,l()):a},t.padding=function(h){return arguments.length?(c=Math.min(1,u=+h),l()):c},t.paddingInner=function(h){return arguments.length?(c=Math.min(1,h),l()):c},t.paddingOuter=function(h){return arguments.length?(u=+h,l()):u},t.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),l()):f},t.copy=function(){return tr(e(),[i,r]).round(a).paddingInner(c).paddingOuter(u).align(f)},ct.apply(l(),arguments)}function Qs(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Qs(e())},t}function sd(){return Qs(tr.apply(null,arguments).paddingInner(1))}function ad(t){return function(){return t}}function ki(t){return+t}var uo=[0,1];function Z(t){return t}function Ti(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:ad(isNaN(e)?NaN:.5)}function cd(t,e){var n;return t>e&&(n=t,t=e,e=n),function(i){return Math.max(t,Math.min(e,i))}}function ud(t,e,n){var i=t[0],r=t[1],o=e[0],s=e[1];return r<i?(i=Ti(r,i),o=n(s,o)):(i=Ti(i,r),o=n(o,s)),function(a){return o(i(a))}}function ld(t,e,n){var i=Math.min(t.length,e.length)-1,r=new Array(i),o=new Array(i),s=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<i;)r[s]=Ti(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(a){var c=Nn(t,a,1,i)-1;return o[c](r[c](a))}}function Be(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function zn(){var t=uo,e=uo,n=ce,i,r,o,s=Z,a,c,u;function f(){var h=Math.min(t.length,e.length);return s!==Z&&(s=cd(t[0],t[h-1])),a=h>2?ld:ud,c=u=null,l}function l(h){return h==null||isNaN(h=+h)?o:(c||(c=a(t.map(i),e,n)))(i(s(h)))}return l.invert=function(h){return s(r((u||(u=a(e,t.map(i),rt)))(h)))},l.domain=function(h){return arguments.length?(t=Array.from(h,ki),f()):t.slice()},l.range=function(h){return arguments.length?(e=Array.from(h),f()):e.slice()},l.rangeRound=function(h){return e=Array.from(h),n=ji,f()},l.clamp=function(h){return arguments.length?(s=h?!0:Z,f()):s!==Z},l.interpolate=function(h){return arguments.length?(n=h,f()):n},l.unknown=function(h){return arguments.length?(o=h,l):o},function(h,d){return i=h,r=d,f()}}function Js(){return zn()(Z,Z)}function fd(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function wn(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function re(t){return t=wn(Math.abs(t)),t?t[1]:NaN}function hd(t,e){return function(n,i){for(var r=n.length,o=[],s=0,a=t[0],c=0;r>0&&a>0&&(c+a+1>i&&(a=Math.max(1,i-c)),o.push(n.substring(r-=a,r+a)),!((c+=a+1)>i));)a=t[s=(s+1)%t.length];return o.reverse().join(e)}}function dd(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var gd=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Re(t){if(!(e=gd.exec(t)))throw new Error("invalid format: "+t);var e;return new er({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Re.prototype=er.prototype;function er(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}er.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 pd(t){t:for(var e=t.length,n=1,i=-1,r;n<e;++n)switch(t[n]){case".":i=r=n;break;case"0":i===0&&(i=n),r=n;break;default:if(!+t[n])break t;i>0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(r+1):t}var Ks;function _d(t,e){var n=wn(t,e);if(!n)return t+"";var i=n[0],r=n[1],o=r-(Ks=Math.max(-8,Math.min(8,Math.floor(r/3)))*3)+1,s=i.length;return o===s?i:o>s?i+new Array(o-s+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+wn(t,Math.max(0,e+o-1))[0]}function lo(t,e){var n=wn(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}const fo={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:fd,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>lo(t*100,e),r:lo,s:_d,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function ho(t){return t}var go=Array.prototype.map,po=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function md(t){var e=t.grouping===void 0||t.thousands===void 0?ho:hd(go.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",i=t.currency===void 0?"":t.currency[1]+"",r=t.decimal===void 0?".":t.decimal+"",o=t.numerals===void 0?ho:dd(go.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",a=t.minus===void 0?"−":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function u(l){l=Re(l);var h=l.fill,d=l.align,p=l.sign,g=l.symbol,m=l.zero,y=l.width,x=l.comma,v=l.precision,S=l.trim,k=l.type;k==="n"?(x=!0,k="g"):fo[k]||(v===void 0&&(v=12),S=!0,k="g"),(m||h==="0"&&d==="=")&&(m=!0,h="0",d="=");var b=g==="$"?n:g==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",T=g==="$"?i:/[%p]/.test(k)?s:"",z=fo[k],R=/[defgprs%]/.test(k);v=v===void 0?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v));function Q(C){var B=b,U=T,wt,Pe,Vt;if(k==="c")U=z(C)+U,C="";else{C=+C;var Yt=C<0||1/C<0;if(C=isNaN(C)?c:z(Math.abs(C),v),S&&(C=pd(C)),Yt&&+C==0&&p!=="+"&&(Yt=!1),B=(Yt?p==="("?p:a:p==="-"||p==="("?"":p)+B,U=(k==="s"?po[8+Ks/3]:"")+U+(Yt&&p==="("?")":""),R){for(wt=-1,Pe=C.length;++wt<Pe;)if(Vt=C.charCodeAt(wt),48>Vt||Vt>57){U=(Vt===46?r+C.slice(wt+1):C.slice(wt))+U,C=C.slice(0,wt);break}}}x&&!m&&(C=e(C,1/0));var Wt=B.length+C.length+U.length,it=Wt<y?new Array(y-Wt+1).join(h):"";switch(x&&m&&(C=e(it+C,it.length?y-U.length:1/0),it=""),d){case"<":C=B+C+U+it;break;case"=":C=B+it+C+U;break;case"^":C=it.slice(0,Wt=it.length>>1)+B+C+U+it.slice(Wt);break;default:C=it+B+C+U;break}return o(C)}return Q.toString=function(){return l+""},Q}function f(l,h){var d=u((l=Re(l),l.type="f",l)),p=Math.max(-8,Math.min(8,Math.floor(re(h)/3)))*3,g=Math.pow(10,-p),m=po[8+p/3];return function(y){return d(g*y)+m}}return{format:u,formatPrefix:f}}var Ge,nr,ta;vd({thousands:",",grouping:[3],currency:["$",""]});function vd(t){return Ge=md(t),nr=Ge.format,ta=Ge.formatPrefix,Ge}function yd(t){return Math.max(0,-re(Math.abs(t)))}function xd(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(re(e)/3)))*3-re(Math.abs(t)))}function wd(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,re(e)-re(t))+1}function bd(t,e,n,i){var r=li(t,e,n),o;switch(i=Re(i??",f"),i.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return i.precision==null&&!isNaN(o=xd(r,s))&&(i.precision=o),ta(i,s)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(o=wd(r,Math.max(Math.abs(t),Math.abs(e))))&&(i.precision=o-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(o=yd(r))&&(i.precision=o-(i.type==="%")*2);break}}return nr(i)}function Pt(t){var e=t.domain;return t.ticks=function(n){var i=e();return ci(i[0],i[i.length-1],n??10)},t.tickFormat=function(n,i){var r=e();return bd(r[0],r[r.length-1],n??10,i)},t.nice=function(n){n==null&&(n=10);var i=e(),r=0,o=i.length-1,s=i[r],a=i[o],c,u,f=10;for(a<s&&(u=s,s=a,a=u,u=r,r=o,o=u);f-- >0;){if(u=ui(s,a,n),u===c)return i[r]=s,i[o]=a,e(i);if(u>0)s=Math.floor(s/u)*u,a=Math.ceil(a/u)*u;else if(u<0)s=Math.ceil(s*u)/u,a=Math.floor(a*u)/u;else break;c=u}return t},t}function ea(){var t=Js();return t.copy=function(){return Be(t,ea())},ct.apply(t,arguments),Pt(t)}function na(t){var e;function n(i){return i==null||isNaN(i=+i)?e:i}return n.invert=n,n.domain=n.range=function(i){return arguments.length?(t=Array.from(i,ki),n):t.slice()},n.unknown=function(i){return arguments.length?(e=i,n):e},n.copy=function(){return na(t).unknown(e)},t=arguments.length?Array.from(t,ki):[0,1],Pt(n)}function ia(t,e){t=t.slice();var n=0,i=t.length-1,r=t[n],o=t[i],s;return o<r&&(s=n,n=i,i=s,s=r,r=o,o=s),t[n]=e.floor(r),t[i]=e.ceil(o),t}function _o(t){return Math.log(t)}function mo(t){return Math.exp(t)}function kd(t){return-Math.log(-t)}function Td(t){return-Math.exp(-t)}function Sd(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Md(t){return t===10?Sd:t===Math.E?Math.exp:e=>Math.pow(t,e)}function Cd(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function vo(t){return(e,n)=>-t(-e,n)}function Ad(t){const e=t(_o,mo),n=e.domain;let i=10,r,o;function s(){return r=Cd(i),o=Md(i),n()[0]<0?(r=vo(r),o=vo(o),t(kd,Td)):t(_o,mo),e}return e.base=function(a){return arguments.length?(i=+a,s()):i},e.domain=function(a){return arguments.length?(n(a),s()):n()},e.ticks=a=>{const c=n();let u=c[0],f=c[c.length-1];const l=f<u;l&&([u,f]=[f,u]);let h=r(u),d=r(f),p,g;const m=a==null?10:+a;let y=[];if(!(i%1)&&d-h<m){if(h=Math.floor(h),d=Math.ceil(d),u>0){for(;h<=d;++h)for(p=1;p<i;++p)if(g=h<0?p/o(-h):p*o(h),!(g<u)){if(g>f)break;y.push(g)}}else for(;h<=d;++h)for(p=i-1;p>=1;--p)if(g=h>0?p/o(-h):p*o(h),!(g<u)){if(g>f)break;y.push(g)}y.length*2<m&&(y=ci(u,f,m))}else y=ci(h,d,Math.min(d-h,m)).map(o);return l?y.reverse():y},e.tickFormat=(a,c)=>{if(a==null&&(a=10),c==null&&(c=i===10?"s":","),typeof c!="function"&&(!(i%1)&&(c=Re(c)).precision==null&&(c.trim=!0),c=nr(c)),a===1/0)return c;const u=Math.max(1,i*a/e.ticks().length);return f=>{let l=f/o(Math.round(r(f)));return l*i<i-.5&&(l*=i),l<=u?c(f):""}},e.nice=()=>n(ia(n(),{floor:a=>o(Math.floor(r(a))),ceil:a=>o(Math.ceil(r(a)))})),e}function ra(){const t=Ad(zn()).domain([1,10]);return t.copy=()=>Be(t,ra()).base(t.base()),ct.apply(t,arguments),t}function yo(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function xo(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function $d(t){var e=1,n=t(yo(e),xo(e));return n.constant=function(i){return arguments.length?t(yo(e=+i),xo(e)):e},Pt(n)}function oa(){var t=$d(zn());return t.copy=function(){return Be(t,oa()).constant(t.constant())},ct.apply(t,arguments)}function wo(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Ed(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Nd(t){return t<0?-t*t:t*t}function Od(t){var e=t(Z,Z),n=1;function i(){return n===1?t(Z,Z):n===.5?t(Ed,Nd):t(wo(n),wo(1/n))}return e.exponent=function(r){return arguments.length?(n=+r,i()):n},Pt(e)}function ir(){var t=Od(zn());return t.copy=function(){return Be(t,ir()).exponent(t.exponent())},ct.apply(t,arguments),t}function Dd(){return ir.apply(null,arguments).exponent(.5)}function sa(){var t=[],e=[],n=[],i;function r(){var s=0,a=Math.max(1,e.length);for(n=new Array(a-1);++s<a;)n[s-1]=Yu(t,s/a);return o}function o(s){return s==null||isNaN(s=+s)?i:e[Nn(n,s)]}return o.invertExtent=function(s){var a=e.indexOf(s);return a<0?[NaN,NaN]:[a>0?n[a-1]:t[0],a<n.length?n[a]:t[t.length-1]]},o.domain=function(s){if(!arguments.length)return t.slice();t=[];for(let a of s)a!=null&&!isNaN(a=+a)&&t.push(a);return t.sort(we),r()},o.range=function(s){return arguments.length?(e=Array.from(s),r()):e.slice()},o.unknown=function(s){return arguments.length?(i=s,o):i},o.quantiles=function(){return n.slice()},o.copy=function(){return sa().domain(t).range(e).unknown(i)},ct.apply(o,arguments)}function aa(){var t=0,e=1,n=1,i=[.5],r=[0,1],o;function s(c){return c!=null&&c<=c?r[Nn(i,c,0,n)]:o}function a(){var c=-1;for(i=new Array(n);++c<n;)i[c]=((c+1)*e-(c-n)*t)/(n+1);return s}return s.domain=function(c){return arguments.length?([t,e]=c,t=+t,e=+e,a()):[t,e]},s.range=function(c){return arguments.length?(n=(r=Array.from(c)).length-1,a()):r.slice()},s.invertExtent=function(c){var u=r.indexOf(c);return u<0?[NaN,NaN]:u<1?[t,i[0]]:u>=n?[i[n-1],e]:[i[u-1],i[u]]},s.unknown=function(c){return arguments.length&&(o=c),s},s.thresholds=function(){return i.slice()},s.copy=function(){return aa().domain([t,e]).range(r).unknown(o)},ct.apply(Pt(s),arguments)}function ca(){var t=[.5],e=[0,1],n,i=1;function r(o){return o!=null&&o<=o?e[Nn(t,o,0,i)]:n}return r.domain=function(o){return arguments.length?(t=Array.from(o),i=Math.min(t.length,e.length-1),r):t.slice()},r.range=function(o){return arguments.length?(e=Array.from(o),i=Math.min(t.length,e.length-1),r):e.slice()},r.invertExtent=function(o){var s=e.indexOf(o);return[t[s-1],t[s]]},r.unknown=function(o){return arguments.length?(n=o,r):n},r.copy=function(){return ca().domain(t).range(e).unknown(n)},ct.apply(r,arguments)}const ti=new Date,ei=new Date;function H(t,e,n,i){function r(o){return t(o=arguments.length===0?new Date:new Date(+o)),o}return r.floor=o=>(t(o=new Date(+o)),o),r.ceil=o=>(t(o=new Date(o-1)),e(o,1),t(o),o),r.round=o=>{const s=r(o),a=r.ceil(o);return o-s<a-o?s:a},r.offset=(o,s)=>(e(o=new Date(+o),s==null?1:Math.floor(s)),o),r.range=(o,s,a)=>{const c=[];if(o=r.ceil(o),a=a==null?1:Math.floor(a),!(o<s)||!(a>0))return c;let u;do c.push(u=new Date(+o)),e(o,a),t(o);while(u<o&&o<s);return c},r.filter=o=>H(s=>{if(s>=s)for(;t(s),!o(s);)s.setTime(s-1)},(s,a)=>{if(s>=s)if(a<0)for(;++a<=0;)for(;e(s,-1),!o(s););else for(;--a>=0;)for(;e(s,1),!o(s););}),n&&(r.count=(o,s)=>(ti.setTime(+o),ei.setTime(+s),t(ti),t(ei),Math.floor(n(ti,ei))),r.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?r.filter(i?s=>i(s)%o===0:s=>r.count(0,s)%o===0):r)),r}const bn=H(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);bn.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?H(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):bn);bn.range;const pt=1e3,nt=pt*60,_t=nt*60,vt=_t*24,rr=vt*7,bo=vt*30,ni=vt*365,Et=H(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*pt)},(t,e)=>(e-t)/pt,t=>t.getUTCSeconds());Et.range;const or=H(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*pt)},(t,e)=>{t.setTime(+t+e*nt)},(t,e)=>(e-t)/nt,t=>t.getMinutes());or.range;const sr=H(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*nt)},(t,e)=>(e-t)/nt,t=>t.getUTCMinutes());sr.range;const ar=H(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*pt-t.getMinutes()*nt)},(t,e)=>{t.setTime(+t+e*_t)},(t,e)=>(e-t)/_t,t=>t.getHours());ar.range;const cr=H(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*_t)},(t,e)=>(e-t)/_t,t=>t.getUTCHours());cr.range;const Ie=H(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*nt)/vt,t=>t.getDate()-1);Ie.range;const Bn=H(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/vt,t=>t.getUTCDate()-1);Bn.range;const ua=H(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/vt,t=>Math.floor(t/vt));ua.range;function Ut(t){return H(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*nt)/rr)}const In=Ut(0),kn=Ut(1),Rd=Ut(2),Fd=Ut(3),oe=Ut(4),Ld=Ut(5),zd=Ut(6);In.range;kn.range;Rd.range;Fd.range;oe.range;Ld.range;zd.range;function Ht(t){return H(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/rr)}const Pn=Ht(0),Tn=Ht(1),Bd=Ht(2),Id=Ht(3),se=Ht(4),Pd=Ht(5),Ud=Ht(6);Pn.range;Tn.range;Bd.range;Id.range;se.range;Pd.range;Ud.range;const ur=H(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());ur.range;const lr=H(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());lr.range;const yt=H(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());yt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:H(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});yt.range;const xt=H(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());xt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:H(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});xt.range;function la(t,e,n,i,r,o){const s=[[Et,1,pt],[Et,5,5*pt],[Et,15,15*pt],[Et,30,30*pt],[o,1,nt],[o,5,5*nt],[o,15,15*nt],[o,30,30*nt],[r,1,_t],[r,3,3*_t],[r,6,6*_t],[r,12,12*_t],[i,1,vt],[i,2,2*vt],[n,1,rr],[e,1,bo],[e,3,3*bo],[t,1,ni]];function a(u,f,l){const h=f<u;h&&([u,f]=[f,u]);const d=l&&typeof l.range=="function"?l:c(u,f,l),p=d?d.range(u,+f+1):[];return h?p.reverse():p}function c(u,f,l){const h=Math.abs(f-u)/l,d=Li(([,,m])=>m).right(s,h);if(d===s.length)return t.every(li(u/ni,f/ni,l));if(d===0)return bn.every(Math.max(li(u,f,l),1));const[p,g]=s[h/s[d-1][2]<s[d][2]/h?d-1:d];return p.every(g)}return[a,c]}const[Hd,Vd]=la(xt,lr,Pn,ua,cr,sr),[Yd,Wd]=la(yt,ur,In,Ie,ar,or);function ii(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ri(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function he(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Xd(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,o=t.days,s=t.shortDays,a=t.months,c=t.shortMonths,u=de(r),f=ge(r),l=de(o),h=ge(o),d=de(s),p=ge(s),g=de(a),m=ge(a),y=de(c),x=ge(c),v={a:Yt,A:Wt,b:it,B:qa,c:null,d:Ao,e:Ao,f:p0,g:S0,G:C0,H:h0,I:d0,j:g0,L:fa,m:_0,M:m0,p:Ga,q:Za,Q:No,s:Oo,S:v0,u:y0,U:x0,V:w0,w:b0,W:k0,x:null,X:null,y:T0,Y:M0,Z:A0,"%":Eo},S={a:ja,A:Qa,b:Ja,B:Ka,c:null,d:$o,e:$o,f:O0,g:H0,G:Y0,H:$0,I:E0,j:N0,L:da,m:D0,M:R0,p:tc,q:ec,Q:No,s:Oo,S:F0,u:L0,U:z0,V:B0,w:I0,W:P0,x:null,X:null,y:U0,Y:V0,Z:W0,"%":Eo},k={a:Q,A:C,b:B,B:U,c:wt,d:Mo,e:Mo,f:c0,g:So,G:To,H:Co,I:Co,j:r0,L:a0,m:i0,M:o0,p:R,q:n0,Q:l0,s:f0,S:s0,u:Qd,U:Jd,V:Kd,w:jd,W:t0,x:Pe,X:Vt,y:So,Y:To,Z:e0,"%":u0};v.x=b(n,v),v.X=b(i,v),v.c=b(e,v),S.x=b(n,S),S.X=b(i,S),S.c=b(e,S);function b(M,A){return function($){var w=[],q=-1,L=0,J=M.length,K,Mt,xr;for($ instanceof Date||($=new Date(+$));++q<J;)M.charCodeAt(q)===37&&(w.push(M.slice(L,q)),(Mt=ko[K=M.charAt(++q)])!=null?K=M.charAt(++q):Mt=K==="e"?" ":"0",(xr=A[K])&&(K=xr($,Mt)),w.push(K),L=q+1);return w.push(M.slice(L,q)),w.join("")}}function T(M,A){return function($){var w=he(1900,void 0,1),q=z(w,M,$+="",0),L,J;if(q!=$.length)return null;if("Q"in w)return new Date(w.Q);if("s"in w)return new Date(w.s*1e3+("L"in w?w.L:0));if(A&&!("Z"in w)&&(w.Z=0),"p"in w&&(w.H=w.H%12+w.p*12),w.m===void 0&&(w.m="q"in w?w.q:0),"V"in w){if(w.V<1||w.V>53)return null;"w"in w||(w.w=1),"Z"in w?(L=ri(he(w.y,0,1)),J=L.getUTCDay(),L=J>4||J===0?Tn.ceil(L):Tn(L),L=Bn.offset(L,(w.V-1)*7),w.y=L.getUTCFullYear(),w.m=L.getUTCMonth(),w.d=L.getUTCDate()+(w.w+6)%7):(L=ii(he(w.y,0,1)),J=L.getDay(),L=J>4||J===0?kn.ceil(L):kn(L),L=Ie.offset(L,(w.V-1)*7),w.y=L.getFullYear(),w.m=L.getMonth(),w.d=L.getDate()+(w.w+6)%7)}else("W"in w||"U"in w)&&("w"in w||(w.w="u"in w?w.u%7:"W"in w?1:0),J="Z"in w?ri(he(w.y,0,1)).getUTCDay():ii(he(w.y,0,1)).getDay(),w.m=0,w.d="W"in w?(w.w+6)%7+w.W*7-(J+5)%7:w.w+w.U*7-(J+6)%7);return"Z"in w?(w.H+=w.Z/100|0,w.M+=w.Z%100,ri(w)):ii(w)}}function z(M,A,$,w){for(var q=0,L=A.length,J=$.length,K,Mt;q<L;){if(w>=J)return-1;if(K=A.charCodeAt(q++),K===37){if(K=A.charAt(q++),Mt=k[K in ko?A.charAt(q++):K],!Mt||(w=Mt(M,$,w))<0)return-1}else if(K!=$.charCodeAt(w++))return-1}return w}function R(M,A,$){var w=u.exec(A.slice($));return w?(M.p=f.get(w[0].toLowerCase()),$+w[0].length):-1}function Q(M,A,$){var w=d.exec(A.slice($));return w?(M.w=p.get(w[0].toLowerCase()),$+w[0].length):-1}function C(M,A,$){var w=l.exec(A.slice($));return w?(M.w=h.get(w[0].toLowerCase()),$+w[0].length):-1}function B(M,A,$){var w=y.exec(A.slice($));return w?(M.m=x.get(w[0].toLowerCase()),$+w[0].length):-1}function U(M,A,$){var w=g.exec(A.slice($));return w?(M.m=m.get(w[0].toLowerCase()),$+w[0].length):-1}function wt(M,A,$){return z(M,e,A,$)}function Pe(M,A,$){return z(M,n,A,$)}function Vt(M,A,$){return z(M,i,A,$)}function Yt(M){return s[M.getDay()]}function Wt(M){return o[M.getDay()]}function it(M){return c[M.getMonth()]}function qa(M){return a[M.getMonth()]}function Ga(M){return r[+(M.getHours()>=12)]}function Za(M){return 1+~~(M.getMonth()/3)}function ja(M){return s[M.getUTCDay()]}function Qa(M){return o[M.getUTCDay()]}function Ja(M){return c[M.getUTCMonth()]}function Ka(M){return a[M.getUTCMonth()]}function tc(M){return r[+(M.getUTCHours()>=12)]}function ec(M){return 1+~~(M.getUTCMonth()/3)}return{format:function(M){var A=b(M+="",v);return A.toString=function(){return M},A},parse:function(M){var A=T(M+="",!1);return A.toString=function(){return M},A},utcFormat:function(M){var A=b(M+="",S);return A.toString=function(){return M},A},utcParse:function(M){var A=T(M+="",!0);return A.toString=function(){return M},A}}}var ko={"-":"",_:" ",0:"0"},V=/^\s*\d+/,qd=/^%/,Gd=/[\\^$*+?|[\]().{}]/g;function N(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",o=r.length;return i+(o<n?new Array(n-o+1).join(e)+r:r)}function Zd(t){return t.replace(Gd,"\\$&")}function de(t){return new RegExp("^(?:"+t.map(Zd).join("|")+")","i")}function ge(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function jd(t,e,n){var i=V.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function Qd(t,e,n){var i=V.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function Jd(t,e,n){var i=V.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function Kd(t,e,n){var i=V.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function t0(t,e,n){var i=V.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function To(t,e,n){var i=V.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function So(t,e,n){var i=V.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function e0(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function n0(t,e,n){var i=V.exec(e.slice(n,n+1));return i?(t.q=i[0]*3-3,n+i[0].length):-1}function i0(t,e,n){var i=V.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function Mo(t,e,n){var i=V.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function r0(t,e,n){var i=V.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function Co(t,e,n){var i=V.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function o0(t,e,n){var i=V.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function s0(t,e,n){var i=V.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function a0(t,e,n){var i=V.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function c0(t,e,n){var i=V.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function u0(t,e,n){var i=qd.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function l0(t,e,n){var i=V.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function f0(t,e,n){var i=V.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function Ao(t,e){return N(t.getDate(),e,2)}function h0(t,e){return N(t.getHours(),e,2)}function d0(t,e){return N(t.getHours()%12||12,e,2)}function g0(t,e){return N(1+Ie.count(yt(t),t),e,3)}function fa(t,e){return N(t.getMilliseconds(),e,3)}function p0(t,e){return fa(t,e)+"000"}function _0(t,e){return N(t.getMonth()+1,e,2)}function m0(t,e){return N(t.getMinutes(),e,2)}function v0(t,e){return N(t.getSeconds(),e,2)}function y0(t){var e=t.getDay();return e===0?7:e}function x0(t,e){return N(In.count(yt(t)-1,t),e,2)}function ha(t){var e=t.getDay();return e>=4||e===0?oe(t):oe.ceil(t)}function w0(t,e){return t=ha(t),N(oe.count(yt(t),t)+(yt(t).getDay()===4),e,2)}function b0(t){return t.getDay()}function k0(t,e){return N(kn.count(yt(t)-1,t),e,2)}function T0(t,e){return N(t.getFullYear()%100,e,2)}function S0(t,e){return t=ha(t),N(t.getFullYear()%100,e,2)}function M0(t,e){return N(t.getFullYear()%1e4,e,4)}function C0(t,e){var n=t.getDay();return t=n>=4||n===0?oe(t):oe.ceil(t),N(t.getFullYear()%1e4,e,4)}function A0(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+N(e/60|0,"0",2)+N(e%60,"0",2)}function $o(t,e){return N(t.getUTCDate(),e,2)}function $0(t,e){return N(t.getUTCHours(),e,2)}function E0(t,e){return N(t.getUTCHours()%12||12,e,2)}function N0(t,e){return N(1+Bn.count(xt(t),t),e,3)}function da(t,e){return N(t.getUTCMilliseconds(),e,3)}function O0(t,e){return da(t,e)+"000"}function D0(t,e){return N(t.getUTCMonth()+1,e,2)}function R0(t,e){return N(t.getUTCMinutes(),e,2)}function F0(t,e){return N(t.getUTCSeconds(),e,2)}function L0(t){var e=t.getUTCDay();return e===0?7:e}function z0(t,e){return N(Pn.count(xt(t)-1,t),e,2)}function ga(t){var e=t.getUTCDay();return e>=4||e===0?se(t):se.ceil(t)}function B0(t,e){return t=ga(t),N(se.count(xt(t),t)+(xt(t).getUTCDay()===4),e,2)}function I0(t){return t.getUTCDay()}function P0(t,e){return N(Tn.count(xt(t)-1,t),e,2)}function U0(t,e){return N(t.getUTCFullYear()%100,e,2)}function H0(t,e){return t=ga(t),N(t.getUTCFullYear()%100,e,2)}function V0(t,e){return N(t.getUTCFullYear()%1e4,e,4)}function Y0(t,e){var n=t.getUTCDay();return t=n>=4||n===0?se(t):se.ceil(t),N(t.getUTCFullYear()%1e4,e,4)}function W0(){return"+0000"}function Eo(){return"%"}function No(t){return+t}function Oo(t){return Math.floor(+t/1e3)}var Xt,pa,_a;X0({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function X0(t){return Xt=Xd(t),pa=Xt.format,Xt.parse,_a=Xt.utcFormat,Xt.utcParse,Xt}function q0(t){return new Date(t)}function G0(t){return t instanceof Date?+t:+new Date(+t)}function fr(t,e,n,i,r,o,s,a,c,u){var f=Js(),l=f.invert,h=f.domain,d=u(".%L"),p=u(":%S"),g=u("%I:%M"),m=u("%I %p"),y=u("%a %d"),x=u("%b %d"),v=u("%B"),S=u("%Y");function k(b){return(c(b)<b?d:a(b)<b?p:s(b)<b?g:o(b)<b?m:i(b)<b?r(b)<b?y:x:n(b)<b?v:S)(b)}return f.invert=function(b){return new Date(l(b))},f.domain=function(b){return arguments.length?h(Array.from(b,G0)):h().map(q0)},f.ticks=function(b){var T=h();return t(T[0],T[T.length-1],b??10)},f.tickFormat=function(b,T){return T==null?k:u(T)},f.nice=function(b){var T=h();return(!b||typeof b.range!="function")&&(b=e(T[0],T[T.length-1],b??10)),b?h(ia(T,b)):f},f.copy=function(){return Be(f,fr(t,e,n,i,r,o,s,a,c,u))},f}function Z0(){return ct.apply(fr(Yd,Wd,yt,ur,In,Ie,ar,or,Et,pa).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function j0(){return ct.apply(fr(Hd,Vd,xt,lr,Pn,Bn,cr,sr,Et,_a).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Q0(){var t=0,e=1,n,i,r,o,s=Z,a=!1,c;function u(l){return l==null||isNaN(l=+l)?c:s(r===0?.5:(l=(o(l)-n)*r,a?Math.max(0,Math.min(1,l)):l))}u.domain=function(l){return arguments.length?([t,e]=l,n=o(t=+t),i=o(e=+e),r=n===i?0:1/(i-n),u):[t,e]},u.clamp=function(l){return arguments.length?(a=!!l,u):a},u.interpolator=function(l){return arguments.length?(s=l,u):s};function f(l){return function(h){var d,p;return arguments.length?([d,p]=h,s=l(d,p),u):[s(0),s(1)]}}return u.range=f(ce),u.rangeRound=f(ji),u.unknown=function(l){return arguments.length?(c=l,u):c},function(l){return o=l,n=l(t),i=l(e),r=n===i?0:1/(i-n),u}}function ma(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function va(){var t=Pt(Q0()(Z));return t.copy=function(){return ma(t,va())},js.apply(t,arguments)}function J0(){var t=0,e=.5,n=1,i=1,r,o,s,a,c,u=Z,f,l=!1,h;function d(g){return isNaN(g=+g)?h:(g=.5+((g=+f(g))-o)*(i*g<i*o?a:c),u(l?Math.max(0,Math.min(1,g)):g))}d.domain=function(g){return arguments.length?([t,e,n]=g,r=f(t=+t),o=f(e=+e),s=f(n=+n),a=r===o?0:.5/(o-r),c=o===s?0:.5/(s-o),i=o<r?-1:1,d):[t,e,n]},d.clamp=function(g){return arguments.length?(l=!!g,d):l},d.interpolator=function(g){return arguments.length?(u=g,d):u};function p(g){return function(m){var y,x,v;return arguments.length?([y,x,v]=m,u=nh(g,[y,x,v]),d):[u(0),u(.5),u(1)]}}return d.range=p(ce),d.rangeRound=p(ji),d.unknown=function(g){return arguments.length?(h=g,d):h},function(g){return f=g,r=g(t),o=g(e),s=g(n),a=r===o?0:.5/(o-r),c=o===s?0:.5/(s-o),i=o<r?-1:1,d}}function ya(){var t=Pt(J0()(Z));return t.copy=function(){return ma(t,ya())},js.apply(t,arguments)}const Do={scaleLinear:ea,scalePow:ir,scaleSqrt:Dd,scaleLog:ra,scaleSymlog:oa,scaleIdentity:na,scaleTime:Z0,scaleUtc:j0,scaleSequential:va,scaleDiverging:ya,scaleQuantize:aa,scaleQuantile:sa,scaleThreshold:ca,scaleOrdinal:Ki,scaleBand:tr,scalePoint:sd};var I;(function(t){t.X="x",t.Y="y"})(I||(I={}));var Ft;(function(t){t.West="west",t.East="east",t.North="north",t.South="south"})(Ft||(Ft={}));const K0=Object.assign(Object.assign({},ws),{components:[],tooltip:void 0,crosshair:void 0,annotations:void 0,xAxis:void 0,yAxis:void 0,autoMargin:!0,xScale:void 0,xDomain:void 0,xDomainMinConstraint:void 0,xDomainMaxConstraint:void 0,xRange:void 0,yScale:void 0,yDomain:void 0,yDomainMinConstraint:void 0,yDomainMaxConstraint:void 0,yRange:void 0,yDirection:Ft.North,preventEmptyDomain:null,scaleByDomain:!1});class tg extends Ae{constructor(e,n,i){var r,o;super(e),this._defaultConfig=K0,this.datamodel=new Ji,this.config=this._defaultConfig,this._clipPathId=Os(),this._axisMargin={top:0,bottom:0,left:0,right:0},this._firstRender=!0,this._clipPath=this.svg.append("clipPath").attr("id",this._clipPathId),this._clipPath.append("rect");const s="saturate",a=window.location.href.replace(window.location.hash,"");this.svg.attr("class",X`
|
|
53
53
|
--highlight-filter-id: url(${a}#${s}); // defining a css variable
|
|
54
|
-
`),this._svgDefs.append("filter").attr("id",s).attr("filterUnits","objectBoundingBox").html('<feColorMatrix type="saturate" in="SourceGraphic" values="1.35"/>'),n&&this.updateContainer(n,!0),i&&this.setData(i,!0),(this.config.xAxis||this.config.yAxis||!((r=this.components)===null||r===void 0)&&r.some(l=>l.datamodel.data))&&this.render(),(o=document.fonts)===null||o===void 0||o.ready.then(()=>{this._firstRender||this._renderAxes(0)})}get components(){return this.config.components}get width(){const e=this._getMargin();return te(this.containerWidth-e.left-e.right,0,Number.POSITIVE_INFINITY)}get height(){const e=this._getMargin();return te(this.containerHeight-e.top-e.bottom,0,Number.POSITIVE_INFINITY)}setData(e,n){var i,r,o,s;const{components:a,config:l}=this;e&&(this.datamodel.data=e,a.forEach(c=>{c.setData(e)}),(i=l.crosshair)===null||i===void 0||i.setData(e),(r=l.xAxis)===null||r===void 0||r.setData(e),(o=l.yAxis)===null||o===void 0||o.setData(e),(s=l.tooltip)===null||s===void 0||s.hide(),n||this.render())}updateContainer(e,n){super.updateContainer(e),this._removeAllChildren(),this.setData(this.datamodel.data,!0),e.xAxis&&(this.config.xAxis.config.type=F.X,this.element.appendChild(e.xAxis.element)),e.yAxis&&(this.config.yAxis.config.type=F.Y,this.element.appendChild(e.yAxis.element));for(const s of this.components)this.element.appendChild(s.element);const i=e.tooltip;i&&(i.hasContainer()||i.setContainer(this._container),i.setComponents(this.components));const r=e.crosshair;r&&(r.setContainer(this.svg),r.tooltip=i,this.element.appendChild(r.element));const o=e.annotations;o&&this.element.appendChild(o.element),this.element.appendChild(this._clipPath.node()),this.element.appendChild(this._svgDefs.node()),this.element.appendChild(this._svgDefsExternal.node()),n||this.render()}updateComponents(e,n){const{config:i}=this;this.components.forEach((r,o)=>{e[o]&&r.setConfig(e[o])}),this._updateScales(...this.components,i.xAxis,i.yAxis,i.crosshair),n||this.render()}update(e,n,i){i&&(this.datamodel.data=i),e&&this.updateContainer(e,!0),n&&this.updateComponents(n,!0),this.render()}_preRender(){const{config:e}=this;super._preRender(),e.autoMargin&&this._setAutoMargin();const n=ge([...this.components,e.xAxis,e.yAxis,e.crosshair,e.annotations]);for(const i of n)i.setSize(this.width,this.height,this.containerWidth,this.containerHeight);this._updateScales(...this.components,e.xAxis,e.yAxis,e.crosshair)}_render(e){var n,i,r,o,s;const{config:a}=this;super._render();const l=this._getMargin();for(const u of this.components)u.g.attr("transform",`translate(${l.left},${l.top})`).style("clip-path",u.clippable?`url(#${this._clipPathId})`:null).style("-webkit-clip-path",u.clippable?`url(#${this._clipPathId})`:null),u.render(e);this._renderAxes(this._firstRender?0:e);const c=2;this._clipPath.select("rect").attr("x",-2).attr("y",-2).attr("width",this.width+2*c).attr("height",this.height+2*c),(n=a.tooltip)===null||n===void 0||n.update();const h=a.crosshair;if(h){const u=this.components.filter(p=>!p.stacked).map(p=>p.config.y),f=this.components.filter(p=>p.stacked).map(p=>p.config.y),d=(i=this.components.find(p=>p.config.baseline))===null||i===void 0?void 0:i.config,g=d==null?void 0:d.baseline;h.accessors={x:(r=this.components[0])===null||r===void 0?void 0:r.config.x,y:Ai(u),yStacked:Ai(f),baseline:g},h.g.attr("transform",`translate(${l.left},${l.top})`).style("clip-path",`url(#${this._clipPathId})`).style("-webkit-clip-path",`url(#${this._clipPathId})`),h.hide()}(o=a.annotations)===null||o===void 0||o.g.attr("transform",`translate(${l.left},${l.top})`),(s=a.annotations)===null||s===void 0||s.render(),this._firstRender=!1}_updateScales(...e){const n=ge(e||this.components);this._setScales(...n),this._updateScalesDomain(...n),this._updateScalesRange(...n)}_setScales(...e){const{config:n}=this;e&&(n.xScale&&e.forEach(i=>i.setScale(I.X,n.xScale)),n.yScale&&e.forEach(i=>i.setScale(I.Y,n.yScale)))}_updateScalesDomain(...e){const{config:n}=this;if(!e)return;const i=e.filter(r=>!r.config.excludeFromDomainCalculation);Object.values(I).forEach(r=>{var o,s,a,l,c,h,u,f;const[d,g]=mu(Su(i.map(k=>k.getDataExtent(r,n.scaleByDomain)))),p=r===I.Y?n.yDomain:n.xDomain,v=r===I.Y?n.yDomainMinConstraint:n.xDomainMinConstraint,y=r===I.Y?n.yDomainMaxConstraint:n.xDomainMaxConstraint,x=(s=(o=p==null?void 0:p[0])!==null&&o!==void 0?o:d)!==null&&s!==void 0?s:0,_=(l=(a=p==null?void 0:p[1])!==null&&a!==void 0?a:g)!==null&&l!==void 0?l:1,S=[te(x,(c=v==null?void 0:v[0])!==null&&c!==void 0?c:Number.NEGATIVE_INFINITY,(h=v==null?void 0:v[1])!==null&&h!==void 0?h:Number.POSITIVE_INFINITY),te(_,(u=y==null?void 0:y[0])!==null&&u!==void 0?u:Number.NEGATIVE_INFINITY,(f=y==null?void 0:y[1])!==null&&f!==void 0?f:Number.POSITIVE_INFINITY)];if(S[0]===S[1]){const k=i.some(w=>{var T;return((T=w.datamodel.data)===null||T===void 0?void 0:T.length)>0});(n.preventEmptyDomain||n.preventEmptyDomain===null&&(!k||r===I.Y))&&(S[1]=S[0]+1)}e.forEach(k=>k.setScaleDomain(r,S))})}_updateScalesRange(...e){var n,i,r,o,s,a;const{config:l}=this;if(!e)return;const c=l.yDirection===Ut.South,h=[(n=l.padding.left)!==null&&n!==void 0?n:0,this.width-((i=l.padding.right)!==null&&i!==void 0?i:0)],u=[this.height-((r=l.padding.bottom)!==null&&r!==void 0?r:0),(o=l.padding.top)!==null&&o!==void 0?o:0];c&&u.reverse();for(const d of e)d.setSize(this.width,this.height,this.containerWidth,this.containerHeight),d.setScaleRange(I.X,(s=l.xRange)!==null&&s!==void 0?s:h),d.setScaleRange(I.Y,(a=l.yRange)!==null&&a!==void 0?a:u);const f=e.map(d=>d.bleed).reduce((d,g)=>{for(const p of Object.keys(d)){const v=p;d[v]<g[v]&&(d[v]=g[v])}return d},{top:0,bottom:0,left:0,right:0});for(const d of e)d.setScaleRange(I.X,[h[0]+f.left,h[1]-f.right]),d.setScaleRange(I.Y,c?[u[0]+f.top,u[1]-f.bottom]:[u[0]-f.bottom,u[1]+f.top])}_renderAxes(e){const{config:{xAxis:n,yAxis:i}}=this,r=this._getMargin();ge([n,i]).forEach(s=>{const a=s.getOffset(r);s.g.attr("transform",`translate(${a.left},${a.top})`),s.render(e)})}_setAutoMargin(){const{config:{xAxis:e,yAxis:n}}=this,i=ge([...this.components,e,n]);this._setScales(...i),this._updateScalesDomain(...i);const r=this._firstRender?2:1;for(let o=0;o<r;o+=1){const s={top:0,bottom:0,left:0,right:0};this._updateScalesRange(...i),ge([e,n]).forEach(l=>{l.preRender();const c=l.getRequiredMargin();s.top<c.top&&(s.top=c.top),s.bottom<c.bottom&&(s.bottom=c.bottom),s.left<c.left&&(s.left=c.left),s.right<c.right&&(s.right=c.right)}),this._axisMargin=s}}_getMargin(){const{config:{margin:e}}=this;return{top:e.top+this._axisMargin.top,bottom:e.bottom+this._axisMargin.bottom,left:e.left+this._axisMargin.left,right:e.right+this._axisMargin.right}}destroy(){const{components:e,config:{tooltip:n,crosshair:i,annotations:r,xAxis:o,yAxis:s}}=this;super.destroy();for(const a of e)a==null||a.destroy();n==null||n.destroy(),i==null||i.destroy(),r==null||r.destroy(),o==null||o.destroy(),s==null||s.destroy()}}const Ua={duration:600,events:{},attributes:{}};class R0{constructor(e=Ce.SVG){var n,i;this.type=Ce.SVG,this.datamodel=new xr,this.sizing=ae.Fit,this.events={},this._defaultConfig=Ua,this._width=400,this._height=200,this._containerWidth=void 0,this._containerHeight=void 0,this._setUpComponentEventsThrottled=wn(this._setUpComponentEvents,500),this._setCustomAttributesThrottled=wn(this._setCustomAttributes,500),e===Ce.SVG?this.element=document.createElementNS("http://www.w3.org/2000/svg","g"):this.element=document.createElement("div"),this.uid=Ks(),this.g=j(this.element);const r=(i=(n=this.constructor)===null||n===void 0?void 0:n.selectors)===null||i===void 0?void 0:i.root;r&&this.g.attr("class",r)}setConfig(e){this.prevConfig=this.config,this.config=Wt(this._defaultConfig,e)}setData(e){this.datamodel.data=e}setSize(e,n,i,r){isFinite(e)&&(this._width=e),isFinite(n)&&(this._height=n),isFinite(i)&&(this._containerWidth=i),isFinite(r)&&(this._containerHeight=r)}render(e=this.config.duration){this._render(e);const n="animating";e&&(this.g.attr(n,""),this.g.transition(n).duration(e).on("end interrupt",()=>{this.g.attr(n,null)})),this._setUpComponentEventsThrottled(),this._setCustomAttributesThrottled()}get bleed(){return{top:0,bottom:0,left:0,right:0}}_render(e=this.config.duration){}_setCustomAttributes(){const e=this.config.attributes;Object.keys(e).forEach(n=>{Object.keys(e[n]).forEach(i=>{this.g.selectAll(`.${n}`).attr(i,e[n][i])})})}_setUpComponentEvents(){this._bindEvents(this.events),this._bindEvents(this.config.events,".user")}_bindEvents(e=this.events,n=""){Object.keys(e).forEach(i=>{Object.keys(e[i]).forEach(r=>{const o=this.g.selectAll(`.${i}`);o.on(r+n,(s,a)=>{const l=o.nodes(),c=l.indexOf(s.currentTarget),h=e[i][r];return h==null?void 0:h(a,s,c,l)})})})}destroy(){var e;(e=this.g)===null||e===void 0||e.remove(),this.element=void 0}isDestroyed(){return!this.element}}class F0 extends xr{constructor(e){super(e)}get data(){var e;return(e=this._data)!==null&&e!==void 0?e:[]}set data(e){Array.isArray(e)&&(this._data=e)}}const Rr=Object.assign(Object.assign({},Ua),{x:void 0,y:void 0,id:(t,e)=>{var n;return(n=t.id)!==null&&n!==void 0?n:`${e}`},color:t=>t.color,xScale:void 0,yScale:void 0,excludeFromDomainCalculation:!1});class Ha extends R0{constructor(){super(...arguments),this.datamodel=new F0,this.clippable=!0,this.stacked=!1,this._defaultConfig=Rr,this._xScale=es.scaleLinear(),this._yScale=es.scaleLinear()}get xScale(){return this.config.xScale||this._xScale}get yScale(){return this.config.yScale||this._yScale}setConfig(e){var n,i;!((n=this.config)===null||n===void 0)&&n.xScale&&(e.xScale=this.config.xScale),!((i=this.config)===null||i===void 0)&&i.yScale&&(e.yScale=this.config.yScale),super.setConfig(e)}setScaleDomain(e,n){var i,r;e===I.X&&((i=this._xScale)===null||i===void 0||i.domain(n)),e===I.Y&&((r=this._yScale)===null||r===void 0||r.domain(n))}setScaleRange(e,n){var i,r;e===I.X&&((i=this._xScale)===null||i===void 0||i.range(n)),e===I.Y&&((r=this._yScale)===null||r===void 0||r.range(n))}setScale(e,n){n&&e===I.X&&(this._xScale=n),n&&e===I.Y&&(this._yScale=n)}getDataExtent(e,n){const{config:i,datamodel:r}=this;switch(e){case I.X:return this.getXDataExtent();case I.Y:return this.getYDataExtent(n);default:return ai(r.data,i[e])}}getXDataExtent(){const{config:e,datamodel:n}=this;return ai(n.data,e.x)}getYDataExtent(e){const{config:n,datamodel:i}=this,r=e?Ou(i.data,this.xScale.domain(),n.x):i.data,o=or(n.y)?n.y:[n.y];return ai(r,...o)}}var M;(function(t){t.Top="top",t.Bottom="bottom",t.Left="left",t.Right="right",t.Center="center",t.Auto="auto"})(M||(M={}));var ns;(function(t){t.Absolute="absolute",t.Fixed="fixed"})(ns||(ns={}));var is;(function(t){t.Inside="inside",t.Outside="outside"})(is||(is={}));var rs;(function(t){t.Horizontal="horizontal",t.Vertical="vertical"})(rs||(rs={}));const z0={components:[],container:void 0,followCursor:!0,allowHover:!0,horizontalPlacement:M.Auto,horizontalShift:0,verticalPlacement:M.Top,verticalShift:0,attributes:{},triggers:{},className:void 0},ti=z`
|
|
55
|
-
|
|
56
|
-
display: inline-block;
|
|
57
|
-
left: 0;
|
|
58
|
-
bottom: 0;
|
|
59
|
-
min-width: max-content;
|
|
60
|
-
position: absolute;
|
|
61
|
-
opacity: 0;
|
|
62
|
-
transition: opacity;
|
|
63
|
-
transition-duration: var(--vis-tooltip-transition-duration);
|
|
64
|
-
z-index: 999999;
|
|
65
|
-
padding: var(--vis-tooltip-padding);
|
|
66
|
-
color: var(--vis-tooltip-text-color);
|
|
67
|
-
border-radius: var(--vis-tooltip-border-radius);
|
|
68
|
-
box-shadow: var(--vis-tooltip-box-shadow);
|
|
69
|
-
border: solid 1px var(--vis-tooltip-border-color);
|
|
70
|
-
background-color: var(--vis-tooltip-background-color);
|
|
71
|
-
backdrop-filter: var(--vis-tooltip-backdrop-filter);
|
|
72
|
-
`,P0=ti,L0=Ve`
|
|
73
|
-
:root {
|
|
74
|
-
--vis-tooltip-background-color: rgba(255, 255, 255, 0.95);
|
|
75
|
-
--vis-tooltip-border-color: #e5e9f7;
|
|
76
|
-
--vis-tooltip-text-color: #000;
|
|
77
|
-
--vis-tooltip-shadow-color: rgba(172, 179, 184, 0.35);
|
|
78
|
-
--vis-tooltip-backdrop-filter: none;
|
|
79
|
-
--vis-tooltip-padding: 10px 15px;
|
|
80
|
-
--vis-tooltip-border-radius: 5px;
|
|
81
|
-
--vis-tooltip-transition-duration: 300ms;
|
|
82
|
-
--vis-tooltip-box-shadow: none;
|
|
83
|
-
|
|
84
|
-
--vis-dark-tooltip-background-color: rgba(30,30,30, 0.95);
|
|
85
|
-
--vis-dark-tooltip-text-color: #e5e9f7;
|
|
86
|
-
--vis-dark-tooltip-border-color: var(--vis-color-grey);
|
|
87
|
-
--vis-dark-tooltip-shadow-color: rgba(0,0,0, 0.95);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
body.theme-dark ${`.${ti}`} {
|
|
91
|
-
--vis-tooltip-background-color: var(--vis-dark-tooltip-background-color);
|
|
92
|
-
--vis-tooltip-text-color: var(--vis-dark-tooltip-text-color);
|
|
93
|
-
--vis-tooltip-border-color: var(--vis-dark-tooltip-border-color);
|
|
94
|
-
--vis-tooltip-shadow-color: var(--vis-dark-tooltip-shadow-color);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
body.theme-dark {
|
|
98
|
-
--vis-tooltip-background-color: rgba(30,30,30, 0.95);
|
|
99
|
-
--vis-tooltip-text-color: #e5e9f7;
|
|
100
|
-
--vis-tooltip-border-color: var(--vis-color-grey);
|
|
101
|
-
--vis-tooltip-shadow-color: rgba(0,0,0, 0.95);
|
|
102
|
-
}
|
|
103
|
-
`,Va=z`
|
|
104
|
-
bottom: unset;
|
|
105
|
-
position: fixed;
|
|
106
|
-
`,Hi=z`
|
|
107
|
-
opacity: 1;
|
|
108
|
-
`,Vi=z`
|
|
109
|
-
display: none;
|
|
110
|
-
`,Wa=z`
|
|
111
|
-
label: non-interactive;
|
|
112
|
-
pointer-events: none;
|
|
113
|
-
user-select: none;
|
|
114
|
-
`,B0=Object.freeze(Object.defineProperty({__proto__:null,hidden:Vi,nonInteractive:Wa,positionFixed:Va,root:ti,show:Hi,tooltip:P0,variables:L0},Symbol.toStringTag,{value:"Module"}));class Ya{constructor(e={}){this._defaultConfig=z0,this.config=this._defaultConfig,this._setUpEventsThrottled=wn(this._setUpEvents,500),this._setContainerPositionThrottled=wn(this._setContainerPosition,500),this._isShown=!1,this.element=document.createElement("div"),this.div=j(this.element).attr("class",ti),this.setConfig(e),this.components=this.config.components,this._mutationObserver=new MutationObserver(()=>{this._isShown&&(!this.config.followCursor&&this._hoveredElement?this.placeByElement(this._hoveredElement):this._position&&this.place({x:this._position[0],y:this._position[1]}))}),this._mutationObserver.observe(this.div.node(),{childList:!0,subtree:!0})}setConfig(e){var n;this.prevConfig=this.config,this.config=Wt(this._defaultConfig,e),this.prevConfig.horizontalPlacement!==this.config.horizontalPlacement&&this.overrideHorizontalPlacement(void 0),this.config.container&&this.config.container!==((n=this.prevConfig)===null||n===void 0?void 0:n.container)&&this.setContainer(this.config.container),this._setUpAttributes()}setContainer(e){var n;(n=this.element.parentNode)===null||n===void 0||n.removeChild(this.element),this._container=e,this._container.appendChild(this.element),this._setContainerPositionThrottled()}getContainer(){return this._container}hasContainer(){return!!this._container&&this._container.isConnected}setComponents(e){this.components=e}update(){this._container&&this._setUpEventsThrottled()}show(e,n){this.render(e),this.place(n)}hide(){this.div.classed(Hi,!1).on("transitionend",()=>{this.div.classed(Vi,!this._isShown)}),this._isShown=!1}display(){this.div.classed(Vi,!1).classed(Hi,!0),this._isShown=!0}place(e){if(this._position=[e.x,e.y],!this.hasContainer()){console.warn("Unovis | Tooltip: Container was not set or is not initialized yet");return}const{config:n}=this,i=this.element.offsetWidth,r=this.element.offsetHeight,o=this._overriddenHorizontalPlacement||(n.horizontalPlacement===M.Auto?M.Center:n.horizontalPlacement),s=n.verticalPlacement===M.Auto?e.y-r<0?M.Bottom:M.Top:n.verticalPlacement,a=5,l=o===M.Left?-i-a-n.horizontalShift:o===M.Center?-i/2:a+n.horizontalShift,c=s===M.Bottom?a+n.verticalShift:s===M.Center?-r/2:-5-n.verticalShift-r,[h,u]=this._constraintPosToContainer(e.x+l,e.y+c,i,r);this._applyPosition(h,u,r)}placeByElement(e){const{config:n}=this;this._hoveredElement=e;const i=5,r=this.element.offsetWidth,o=this.element.offsetHeight,s=this.isContainerBody(),a=s?window.innerWidth:this._container.scrollWidth,l=e.getBoundingClientRect(),c=s?[l.x,l.y]:Wr({clientX:l.x,clientY:l.y,pageX:l.x,pageY:l.y},this._container),h=this._overriddenHorizontalPlacement||(n.horizontalPlacement===M.Auto?c[0]-r<0?M.Right:c[0]+r>a?M.Left:M.Center:n.horizontalPlacement);let u=0;switch(h){case M.Left:u=-r-i-n.horizontalShift;break;case M.Right:u=l.width+i+n.horizontalShift;break;case M.Center:default:u=(-r+l.width)/2;break}const f=n.verticalPlacement===M.Auto?h!==M.Center?M.Center:c[1]-o<0?M.Bottom:M.Top:n.verticalPlacement;let d=-o;switch(f){case M.Center:d+=(o+l.height)/2;break;case M.Bottom:d+=o+l.height+i+n.verticalShift;break;case M.Top:default:d+=-5-n.verticalShift;break}const[g,p]=this._constraintPosToContainer(c[0]+u,c[1]+d,r,o);this._applyPosition(g,p,o)}isContainerBody(){return this._container===document.body}overrideHorizontalPlacement(e){this._overriddenHorizontalPlacement=e}render(e){var n;const{config:i,prevConfig:r}=this;e instanceof HTMLElement?this.div.select(":first-child").node()!==e&&this.div.html("").append(()=>e):e&&this.div.html(e),this.div.classed((n=i.className)!==null&&n!==void 0?n:"",!!i.className).classed(Wa,!i.allowHover||i.followCursor),r!=null&&r.className&&r.className!==i.className&&this.div.classed(r.className,!1),this.display()}_applyPosition(e,n,i){const r=this.isContainerBody(),o=r?window.innerHeight:this._container.scrollHeight;this.div.classed(Va,r).style("top",r?`${n}px`:"unset").style("bottom",r?"unset":`${o-n-i}px`).style("left",`${e}px`)}_constraintPosToContainer(e,n,i,r){const o=this.isContainerBody(),s=o?window.innerHeight:this._container.scrollHeight,a=o?window.innerWidth:this._container.scrollWidth,l=10,c=e>a-i-l,h=e<l,u=c?a-i-l:h?l:e,f=10,d=n>s-r-f,g=n<f,p=d?s-r-f:g?f:n;return[a<i?0:u,s<r?0:p]}_setContainerPosition(){var e;this._container!==document.body&&((e=getComputedStyle(this._container))===null||e===void 0?void 0:e.position)==="static"&&(this._container.style.position="relative")}_setUpEvents(){const{config:e}=this;this.components.forEach(n=>{const i=j(n.element);i.on("mousemove.tooltip",r=>{const o=r.composedPath&&r.composedPath()||r.path||[r.target];for(const s of Object.keys(e.triggers)){const a=e.triggers[s];if(!a)continue;const l=i.selectAll(`.${s}`).nodes();for(const c of o){if(c===i.node())break;if(c.classList.contains(s)){const h=l.indexOf(c),u=j(c).datum(),f=a(u,h,l),[d,g]=this.isContainerBody()?[r.clientX,r.clientY]:Wr(r,this._container);f===null?this.hide():(this.render(f),e.followCursor?this.place({x:d,y:g}):this.placeByElement(c)),r.stopPropagation();return}}}this._isShown&&this.hide()}).on("mouseleave.tooltip",r=>{r.stopPropagation(),this.hide()})}),e.allowHover&&!e.followCursor?this.div.on("mouseenter.tooltip",this.display.bind(this)).on("mouseleave.tooltip",this.hide.bind(this)):this.div.on("mouseenter.tooltip",null).on("mouseleave.tooltip",null)}_setUpAttributes(){const e=this.config.attributes;e&&Object.keys(e).forEach(n=>{this.div.attr(n,e[n])})}destroy(){var e;this._mutationObserver.disconnect(),(e=this.div)===null||e===void 0||e.remove()}}Ya.selectors=B0;function vt(t){return function(){return t}}const Xa=Math.cos,Fn=Math.sin,dt=Math.sqrt,os=1e-12,zn=Math.PI,ei=2*zn,Wi=Math.PI,Yi=2*Wi,Rt=1e-6,I0=Yi-Rt;function qa(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function U0(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return qa;const n=10**e;return function(i){this._+=i[0];for(let r=1,o=i.length;r<o;++r)this._+=Math.round(arguments[r]*n)/n+i[r]}}class H0{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?qa:U0(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,i,r){this._append`Q${+e},${+n},${this._x1=+i},${this._y1=+r}`}bezierCurveTo(e,n,i,r,o,s){this._append`C${+e},${+n},${+i},${+r},${this._x1=+o},${this._y1=+s}`}arcTo(e,n,i,r,o){if(e=+e,n=+n,i=+i,r=+r,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,a=this._y1,l=i-e,c=r-n,h=s-e,u=a-n,f=h*h+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(f>Rt)if(!(Math.abs(u*l-c*h)>Rt)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let d=i-s,g=r-a,p=l*l+c*c,v=d*d+g*g,y=Math.sqrt(p),x=Math.sqrt(f),_=o*Math.tan((Wi-Math.acos((p+f-v)/(2*y*x)))/2),S=_/x,k=_/y;Math.abs(S-1)>Rt&&this._append`L${e+S*h},${n+S*u}`,this._append`A${o},${o},0,0,${+(u*d>h*g)},${this._x1=e+k*l},${this._y1=n+k*c}`}}arc(e,n,i,r,o,s){if(e=+e,n=+n,i=+i,s=!!s,i<0)throw new Error(`negative radius: ${i}`);let a=i*Math.cos(r),l=i*Math.sin(r),c=e+a,h=n+l,u=1^s,f=s?r-o:o-r;this._x1===null?this._append`M${c},${h}`:(Math.abs(this._x1-c)>Rt||Math.abs(this._y1-h)>Rt)&&this._append`L${c},${h}`,i&&(f<0&&(f=f%Yi+Yi),f>I0?this._append`A${i},${i},0,1,${u},${e-a},${n-l}A${i},${i},0,1,${u},${this._x1=c},${this._y1=h}`:f>Rt&&this._append`A${i},${i},0,${+(f>=Wi)},${u},${this._x1=e+i*Math.cos(o)},${this._y1=n+i*Math.sin(o)}`)}rect(e,n,i,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${i=+i}v${+r}h${-i}Z`}toString(){return this._}}function Ga(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const i=Math.floor(n);if(!(i>=0))throw new RangeError(`invalid digits: ${n}`);e=i}return t},()=>new H0(e)}function V0(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Za(t){this._context=t}Za.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function ja(t){return new Za(t)}function W0(t){return t[0]}function Y0(t){return t[1]}function X0(t,e){var n=vt(!0),i=null,r=ja,o=null,s=Ga(a);t=typeof t=="function"?t:t===void 0?W0:vt(t),e=typeof e=="function"?e:e===void 0?Y0:vt(e);function a(l){var c,h=(l=V0(l)).length,u,f=!1,d;for(i==null&&(o=r(d=s())),c=0;c<=h;++c)!(c<h&&n(u=l[c],c,l))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+t(u,c,l),+e(u,c,l));if(d)return o=null,d+""||null}return a.x=function(l){return arguments.length?(t=typeof l=="function"?l:vt(+l),a):t},a.y=function(l){return arguments.length?(e=typeof l=="function"?l:vt(+l),a):e},a.defined=function(l){return arguments.length?(n=typeof l=="function"?l:vt(!!l),a):n},a.curve=function(l){return arguments.length?(r=l,i!=null&&(o=r(i)),a):r},a.context=function(l){return arguments.length?(l==null?i=o=null:o=r(i=l),a):i},a}const Qa={draw(t,e){const n=dt(e/zn);t.moveTo(n,0),t.arc(0,0,n,0,ei)}},q0={draw(t,e){const n=dt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},Ja=dt(1/3),G0=Ja*2,Z0={draw(t,e){const n=dt(e/G0),i=n*Ja;t.moveTo(0,-n),t.lineTo(i,0),t.lineTo(0,n),t.lineTo(-i,0),t.closePath()}},j0={draw(t,e){const n=dt(e),i=-n/2;t.rect(i,i,n,n)}},Q0=.8908130915292852,Ka=Fn(zn/10)/Fn(7*zn/10),J0=Fn(ei/10)*Ka,K0=-Xa(ei/10)*Ka,tg={draw(t,e){const n=dt(e*Q0),i=J0*n,r=K0*n;t.moveTo(0,-n),t.lineTo(i,r);for(let o=1;o<5;++o){const s=ei*o/5,a=Xa(s),l=Fn(s);t.lineTo(l*n,-a*n),t.lineTo(a*i-l*r,l*i+a*r)}t.closePath()}},bi=dt(3),eg={draw(t,e){const n=-dt(e/(bi*3));t.moveTo(0,n*2),t.lineTo(-bi*n,-n),t.lineTo(bi*n,-n),t.closePath()}},rt=-.5,ot=dt(3)/2,Xi=1/dt(12),ng=(Xi/2+1)*3,ig={draw(t,e){const n=dt(e/ng),i=n/2,r=n*Xi,o=i,s=n*Xi+n,a=-o,l=s;t.moveTo(i,r),t.lineTo(o,s),t.lineTo(a,l),t.lineTo(rt*i-ot*r,ot*i+rt*r),t.lineTo(rt*o-ot*s,ot*o+rt*s),t.lineTo(rt*a-ot*l,ot*a+rt*l),t.lineTo(rt*i+ot*r,rt*r-ot*i),t.lineTo(rt*o+ot*s,rt*s-ot*o),t.lineTo(rt*a+ot*l,rt*l-ot*a),t.closePath()}};function rg(t,e){let n=null,i=Ga(r);t=typeof t=="function"?t:vt(t||Qa),e=typeof e=="function"?e:vt(e===void 0?64:+e);function r(){let o;if(n||(n=o=i()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),o)return n=null,o+""||null}return r.type=function(o){return arguments.length?(t=typeof o=="function"?o:vt(o),r):t},r.size=function(o){return arguments.length?(e=typeof o=="function"?o:vt(+o),r):e},r.context=function(o){return arguments.length?(n=o??null,r):n},r}function Ot(){}function Pn(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function ni(t){this._context=t}ni.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Pn(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Pn(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function og(t){return new ni(t)}function tl(t){this._context=t}tl.prototype={areaStart:Ot,areaEnd:Ot,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Pn(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function sg(t){return new tl(t)}function el(t){this._context=t}el.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:Pn(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function ag(t){return new el(t)}function nl(t,e){this._basis=new ni(t),this._beta=e}nl.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var i=t[0],r=e[0],o=t[n]-i,s=e[n]-r,a=-1,l;++a<=n;)l=a/n,this._basis.point(this._beta*t[a]+(1-this._beta)*(i+l*o),this._beta*e[a]+(1-this._beta)*(r+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const lg=function t(e){function n(i){return e===1?new ni(i):new nl(i,e)}return n.beta=function(i){return t(+i)},n}(.85);function Ln(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Fr(t,e){this._context=t,this._k=(1-e)/6}Fr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ln(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Ln(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const cg=function t(e){function n(i){return new Fr(i,e)}return n.tension=function(i){return t(+i)},n}(0);function zr(t,e){this._context=t,this._k=(1-e)/6}zr.prototype={areaStart:Ot,areaEnd:Ot,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Ln(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ug=function t(e){function n(i){return new zr(i,e)}return n.tension=function(i){return t(+i)},n}(0);function Pr(t,e){this._context=t,this._k=(1-e)/6}Pr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ln(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const hg=function t(e){function n(i){return new Pr(i,e)}return n.tension=function(i){return t(+i)},n}(0);function Lr(t,e,n){var i=t._x1,r=t._y1,o=t._x2,s=t._y2;if(t._l01_a>os){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,r=(r*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>os){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/h,s=(s*c+t._y1*t._l23_2a-n*t._l12_2a)/h}t._context.bezierCurveTo(i,r,o,s,t._x2,t._y2)}function il(t,e){this._context=t,this._alpha=e}il.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Lr(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const fg=function t(e){function n(i){return e?new il(i,e):new Fr(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function rl(t,e){this._context=t,this._alpha=e}rl.prototype={areaStart:Ot,areaEnd:Ot,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Lr(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const dg=function t(e){function n(i){return e?new rl(i,e):new zr(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function ol(t,e){this._context=t,this._alpha=e}ol.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Lr(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const pg=function t(e){function n(i){return e?new ol(i,e):new Pr(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function sl(t){this._context=t}sl.prototype={areaStart:Ot,areaEnd:Ot,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function gg(t){return new sl(t)}function ss(t){return t<0?-1:1}function as(t,e,n){var i=t._x1-t._x0,r=e-t._x1,o=(t._y1-t._y0)/(i||r<0&&-0),s=(n-t._y1)/(r||i<0&&-0),a=(o*r+s*i)/(i+r);return(ss(o)+ss(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function ls(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function wi(t,e,n){var i=t._x0,r=t._y0,o=t._x1,s=t._y1,a=(o-i)/3;t._context.bezierCurveTo(i+a,r+a*e,o-a,s-a*n,o,s)}function Bn(t){this._context=t}Bn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:wi(this,this._t0,ls(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,wi(this,ls(this,n=as(this,t,e)),n);break;default:wi(this,this._t0,n=as(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function al(t){this._context=new ll(t)}(al.prototype=Object.create(Bn.prototype)).point=function(t,e){Bn.prototype.point.call(this,e,t)};function ll(t){this._context=t}ll.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,i,r,o){this._context.bezierCurveTo(e,t,i,n,o,r)}};function mg(t){return new Bn(t)}function vg(t){return new al(t)}function cl(t){this._context=t}cl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var i=cs(t),r=cs(e),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(i[0][o],r[0][o],i[1][o],r[1][o],t[s],e[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function cs(t){var e,n=t.length-1,i,r=new Array(n),o=new Array(n),s=new Array(n);for(r[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e<n-1;++e)r[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(r[n-1]=2,o[n-1]=7,s[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)i=r[e]/o[e-1],o[e]-=i,s[e]-=i*s[e-1];for(r[n-1]=s[n-1]/o[n-1],e=n-2;e>=0;--e)r[e]=(s[e]-r[e+1])/o[e];for(o[n-1]=(t[n]+r[n-1])/2,e=0;e<n-1;++e)o[e]=2*t[e+1]-r[e+1];return[r,o]}function _g(t){return new cl(t)}function ii(t,e){this._context=t,this._t=e}ii.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function yg(t){return new ii(t,.5)}function xg(t){return new ii(t,0)}function bg(t){return new ii(t,1)}function us(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function wg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?us(Object(n),!0).forEach(function(i){kg(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):us(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function $e(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$e=function(e){return typeof e}:$e=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$e(t)}function kg(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function In(){return In=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},In.apply(this,arguments)}function Tg(t,e){if(t){if(typeof t=="string")return hs(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hs(t,e)}}function hs(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function ul(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Tg(t))||e){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
115
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,a;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return o=l.done,l},e:function(l){s=!0,a=l},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function Sg(t,e){var n=[],i=[];function r(o,s){if(o.length===1)n.push(o[0]),i.push(o[0]);else{for(var a=Array(o.length-1),l=0;l<a.length;l++)l===0&&n.push(o[0]),l===a.length-1&&i.push(o[l+1]),a[l]=[(1-s)*o[l][0]+s*o[l+1][0],(1-s)*o[l][1]+s*o[l+1][1]];r(a,s)}}return t.length&&r(t,e),{left:n,right:i.reverse()}}function Cg(t){var e={};return t.length===4&&(e.x2=t[2][0],e.y2=t[2][1]),t.length>=3&&(e.x1=t[1][0],e.y1=t[1][1]),e.x=t[t.length-1][0],e.y=t[t.length-1][1],t.length===4?e.type="C":t.length===3?e.type="Q":e.type="L",e}function Mg(t,e){e=e||2;for(var n=[],i=t,r=1/e,o=0;o<e-1;o++){var s=r/(1-r*o),a=Sg(i,s);n.push(a.left),i=a.right}return n.push(i),n}function Ag(t,e,n){var i=[[t.x,t.y]];return e.x1!=null&&i.push([e.x1,e.y1]),e.x2!=null&&i.push([e.x2,e.y2]),i.push([e.x,e.y]),Mg(i,n).map(Cg)}var $g=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,oe={M:["x","y"],L:["x","y"],H:["x"],V:["y"],C:["x1","y1","x2","y2","x","y"],S:["x2","y2","x","y"],Q:["x1","y1","x","y"],T:["x","y"],A:["rx","ry","xAxisRotation","largeArcFlag","sweepFlag","x","y"],Z:[]};Object.keys(oe).forEach(function(t){oe[t.toLowerCase()]=oe[t]});function qi(t,e){for(var n=Array(t),i=0;i<t;i++)n[i]=e;return n}function Eg(t){return"".concat(t.type).concat(oe[t.type].map(function(e){return t[e]}).join(","))}function Ng(t,e){var n={x1:"x",y1:"y",x2:"x",y2:"y"},i=["xAxisRotation","largeArcFlag","sweepFlag"];if(t.type!==e.type&&e.type.toUpperCase()!=="M"){var r={};Object.keys(e).forEach(function(o){var s=e[o],a=t[o];a===void 0&&(i.includes(o)?a=s:(a===void 0&&n[o]&&(a=t[n[o]]),a===void 0&&(a=0))),r[o]=a}),r.type=e.type,t=r}return t}function Og(t,e,n){var i=[];if(e.type==="L"||e.type==="Q"||e.type==="C")i=i.concat(Ag(t,e,n));else{var r=In({},t);r.type==="M"&&(r.type="L"),i=i.concat(qi(n-1).map(function(){return r})),i.push(e)}return i}function fs(t,e,n){var i=t.length-1,r=e.length-1,o=i/r,s=qi(r).reduce(function(l,c,h){var u=Math.floor(o*h);if(n&&u<t.length-1&&n(t[u],t[u+1])){var f=o*h%1<.5;l[u]&&(f?u>0?u-=1:u<t.length-1&&(u+=1):u<t.length-1?u+=1:u>0&&(u-=1))}return l[u]=(l[u]||0)+1,l},[]),a=s.reduce(function(l,c,h){if(h===t.length-1){var u=qi(c,In({},t[t.length-1]));return u[0].type==="M"&&u.forEach(function(f){f.type="L"}),l.concat(u)}return l.concat(Og(t[h],t[h+1],c))},[]);return a.unshift(t[0]),a}function ds(t){for(var e=(t||"").match($g)||[],n=[],i,r,o=0;o<e.length;++o)if(i=oe[e[o]],i){r={type:e[o]};for(var s=0;s<i.length;++s)r[i[s]]=+e[o+s+1];o+=i.length,n.push(r)}return n}function Dg(t,e,n){var i=t==null?[]:t.slice(),r=e==null?[]:e.slice(),o=$e(n)==="object"?n:{excludeSegment:n,snapEndsToInput:!0},s=o.excludeSegment,a=o.snapEndsToInput;if(!i.length&&!r.length)return function(){return[]};var l=(i.length===0||i[i.length-1].type==="Z")&&(r.length===0||r[r.length-1].type==="Z");i.length>0&&i[i.length-1].type==="Z"&&i.pop(),r.length>0&&r[r.length-1].type==="Z"&&r.pop(),i.length?r.length||r.push(i[0]):i.push(r[0]);var c=Math.abs(r.length-i.length);c!==0&&(r.length>i.length?i=fs(i,r,s):r.length<i.length&&(r=fs(r,i,s))),i=i.map(function(u,f){return Ng(u,r[f])});var h=i.map(function(u){return wg({},u)});return l&&(h.push({type:"Z"}),i.push({type:"Z"})),function(f){if(f===1&&a)return e??[];if(f===0)return i;for(var d=0;d<h.length;++d){var g=i[d],p=r[d],v=h[d],y=ul(oe[v.type]),x;try{for(y.s();!(x=y.n()).done;){var _=x.value;v[_]=(1-f)*g[_]+f*p[_],(_==="largeArcFlag"||_==="sweepFlag")&&(v[_]=Math.round(v[_]))}}catch(S){y.e(S)}finally{y.f()}}return h}}function Rg(t,e,n){var i=ds(t),r=ds(e),o=$e(n)==="object"?n:{excludeSegment:n,snapEndsToInput:!0},s=o.excludeSegment,a=o.snapEndsToInput;if(!i.length&&!r.length)return function(){return""};var l=Dg(i,r,{excludeSegment:s,snapEndsToInput:a});return function(h){if(h===1&&a)return e??"";var u=l(h),f="",d=ul(u),g;try{for(d.s();!(g=d.n()).done;){var p=g.value;f+=Eg(p)}}catch(v){d.e(v)}finally{d.f()}return f}}function hn(t,e,n,i){return Array.isArray(e)&&isFinite(n)?e[n%e.length]:ar(t,e,n)||(ee(n)?`var(${$t(n)})`:null)}exports.CurveType=void 0;(function(t){t.Basis="basis",t.BasisClosed="basisClosed",t.BasisOpen="basisOpen",t.Bundle="bundle",t.Cardinal="cardinal",t.CardinalClosed="cardinalClosed",t.CardinalOpen="cardinalOpen",t.CatmullRom="catmullRom",t.CatmullRomClosed="catmullRomClosed",t.CatmullRomOpen="catmullRomOpen",t.Linear="linear",t.LinearClosed="linearClosed",t.MonotoneX="monotoneX",t.MonotoneY="monotoneY",t.Natural="natural",t.Step="step",t.StepAfter="stepAfter",t.StepBefore="stepBefore"})(exports.CurveType||(exports.CurveType={}));const ps={[exports.CurveType.Basis]:og,[exports.CurveType.BasisClosed]:sg,[exports.CurveType.BasisOpen]:ag,[exports.CurveType.Bundle]:lg,[exports.CurveType.Cardinal]:cg,[exports.CurveType.CardinalClosed]:ug,[exports.CurveType.CardinalOpen]:hg,[exports.CurveType.CatmullRom]:fg,[exports.CurveType.CatmullRomClosed]:dg,[exports.CurveType.CatmullRomOpen]:pg,[exports.CurveType.Linear]:ja,[exports.CurveType.LinearClosed]:gg,[exports.CurveType.MonotoneX]:mg,[exports.CurveType.MonotoneY]:vg,[exports.CurveType.Natural]:_g,[exports.CurveType.Step]:yg,[exports.CurveType.StepAfter]:bg,[exports.CurveType.StepBefore]:xg},Fg=Object.assign(Object.assign({},Rr),{curveType:exports.CurveType.MonotoneX,lineWidth:2,lineDashArray:void 0,fallbackValue:void 0,highlightOnHover:!1,cursor:null,interpolateMissingData:!1}),zg=Ve`
|
|
54
|
+
`),this._svgDefs.append("filter").attr("id",s).attr("filterUnits","objectBoundingBox").html('<feColorMatrix type="saturate" in="SourceGraphic" values="1.35"/>'),n&&this.updateContainer(n,!0),i&&this.setData(i,!0),(this.config.xAxis||this.config.yAxis||!((r=this.components)===null||r===void 0)&&r.some(c=>c.datamodel.data))&&this.render(),(o=document.fonts)===null||o===void 0||o.ready.then(()=>{this._firstRender||this._renderAxes(0)})}get components(){return this.config.components}get width(){const e=this._getMargin();return Gt(this.containerWidth-e.left-e.right,0,Number.POSITIVE_INFINITY)}get height(){const e=this._getMargin();return Gt(this.containerHeight-e.top-e.bottom,0,Number.POSITIVE_INFINITY)}setData(e,n){var i,r,o,s;const{components:a,config:c}=this;e&&(this.datamodel.data=e,a.forEach(u=>{u.setData(e)}),(i=c.crosshair)===null||i===void 0||i.setData(e),(r=c.xAxis)===null||r===void 0||r.setData(e),(o=c.yAxis)===null||o===void 0||o.setData(e),(s=c.tooltip)===null||s===void 0||s.hide(),n||this.render())}updateContainer(e,n){super.updateContainer(e),this._removeAllChildren(),this.setData(this.datamodel.data,!0),e.xAxis&&(this.config.xAxis.config.type=F.X,this.element.appendChild(e.xAxis.element)),e.yAxis&&(this.config.yAxis.config.type=F.Y,this.element.appendChild(e.yAxis.element));for(const s of this.components)this.element.appendChild(s.element);const i=e.tooltip;i&&(i.hasContainer()||i.setContainer(this._container),i.setComponents(this.components));const r=e.crosshair;r&&(r.setContainer(this.svg),r.tooltip=i,this.element.appendChild(r.element));const o=e.annotations;o&&this.element.appendChild(o.element),this.element.appendChild(this._clipPath.node()),this.element.appendChild(this._svgDefs.node()),this.element.appendChild(this._svgDefsExternal.node()),n||this.render()}updateComponents(e,n){const{config:i}=this;this.components.forEach((r,o)=>{e[o]&&r.setConfig(e[o])}),this._updateScales(...this.components,i.xAxis,i.yAxis,i.crosshair),n||this.render()}update(e,n,i){i&&(this.datamodel.data=i),e&&this.updateContainer(e,!0),n&&this.updateComponents(n,!0),this.render()}_preRender(){const{config:e}=this;super._preRender(),e.autoMargin&&this._setAutoMargin();const n=ue([...this.components,e.xAxis,e.yAxis,e.crosshair,e.annotations]);for(const i of n)i.setSize(this.width,this.height,this.containerWidth,this.containerHeight);this._updateScales(...this.components,e.xAxis,e.yAxis,e.crosshair)}_render(e){var n,i,r,o,s;const{config:a}=this;super._render();const c=this._getMargin();for(const l of this.components)l.g.attr("transform",`translate(${c.left},${c.top})`).style("clip-path",l.clippable?`url(#${this._clipPathId})`:null).style("-webkit-clip-path",l.clippable?`url(#${this._clipPathId})`:null),l.render(e);this._renderAxes(this._firstRender?0:e);const u=2;this._clipPath.select("rect").attr("x",-2).attr("y",-2).attr("width",this.width+2*u).attr("height",this.height+2*u),(n=a.tooltip)===null||n===void 0||n.update();const f=a.crosshair;if(f){const l=this.components.filter(g=>!g.stacked).map(g=>g.config.y),h=this.components.filter(g=>g.stacked).map(g=>g.config.y),d=(i=this.components.find(g=>g.config.baseline))===null||i===void 0?void 0:i.config,p=d==null?void 0:d.baseline;f.accessors={x:(r=this.components[0])===null||r===void 0?void 0:r.config.x,y:fi(l),yStacked:fi(h),baseline:p},f.g.attr("transform",`translate(${c.left},${c.top})`).style("clip-path",`url(#${this._clipPathId})`).style("-webkit-clip-path",`url(#${this._clipPathId})`),f.hide()}(o=a.annotations)===null||o===void 0||o.g.attr("transform",`translate(${c.left},${c.top})`),(s=a.annotations)===null||s===void 0||s.render(),this._firstRender=!1}_updateScales(...e){const n=ue(e||this.components);this._setScales(...n),this._updateScalesDomain(...n),this._updateScalesRange(...n)}_setScales(...e){const{config:n}=this;e&&(n.xScale&&e.forEach(i=>i.setScale(I.X,n.xScale)),n.yScale&&e.forEach(i=>i.setScale(I.Y,n.yScale)))}_updateScalesDomain(...e){const{config:n}=this;if(!e)return;const i=e.filter(r=>!r.config.excludeFromDomainCalculation);Object.values(I).forEach(r=>{var o,s,a,c,u,f,l,h;const[d,p]=zu(Xu(i.map(k=>k.getDataExtent(r,n.scaleByDomain)))),g=r===I.Y?n.yDomain:n.xDomain,m=r===I.Y?n.yDomainMinConstraint:n.xDomainMinConstraint,y=r===I.Y?n.yDomainMaxConstraint:n.xDomainMaxConstraint,x=(s=(o=g==null?void 0:g[0])!==null&&o!==void 0?o:d)!==null&&s!==void 0?s:0,v=(c=(a=g==null?void 0:g[1])!==null&&a!==void 0?a:p)!==null&&c!==void 0?c:1,S=[Gt(x,(u=m==null?void 0:m[0])!==null&&u!==void 0?u:Number.NEGATIVE_INFINITY,(f=m==null?void 0:m[1])!==null&&f!==void 0?f:Number.POSITIVE_INFINITY),Gt(v,(l=y==null?void 0:y[0])!==null&&l!==void 0?l:Number.NEGATIVE_INFINITY,(h=y==null?void 0:y[1])!==null&&h!==void 0?h:Number.POSITIVE_INFINITY)];if(S[0]===S[1]){const k=i.some(b=>{var T;return((T=b.datamodel.data)===null||T===void 0?void 0:T.length)>0});(n.preventEmptyDomain||n.preventEmptyDomain===null&&(!k||r===I.Y))&&(S[1]=S[0]+1)}e.forEach(k=>k.setScaleDomain(r,S))})}_updateScalesRange(...e){var n,i,r,o,s,a;const{config:c}=this;if(!e)return;const u=c.yDirection===Ft.South,f=[(n=c.padding.left)!==null&&n!==void 0?n:0,this.width-((i=c.padding.right)!==null&&i!==void 0?i:0)],l=[this.height-((r=c.padding.bottom)!==null&&r!==void 0?r:0),(o=c.padding.top)!==null&&o!==void 0?o:0];u&&l.reverse();for(const d of e)d.setSize(this.width,this.height,this.containerWidth,this.containerHeight),d.setScaleRange(I.X,(s=c.xRange)!==null&&s!==void 0?s:f),d.setScaleRange(I.Y,(a=c.yRange)!==null&&a!==void 0?a:l);const h=e.map(d=>d.bleed).reduce((d,p)=>{for(const g of Object.keys(d)){const m=g;d[m]<p[m]&&(d[m]=p[m])}return d},{top:0,bottom:0,left:0,right:0});for(const d of e)d.setScaleRange(I.X,[f[0]+h.left,f[1]-h.right]),d.setScaleRange(I.Y,u?[l[0]+h.top,l[1]-h.bottom]:[l[0]-h.bottom,l[1]+h.top])}_renderAxes(e){const{config:{xAxis:n,yAxis:i}}=this,r=this._getMargin();ue([n,i]).forEach(s=>{const a=s.getOffset(r);s.g.attr("transform",`translate(${a.left},${a.top})`),s.render(e)})}_setAutoMargin(){const{config:{xAxis:e,yAxis:n}}=this,i=ue([...this.components,e,n]);this._setScales(...i),this._updateScalesDomain(...i);const r=this._firstRender?2:1;for(let o=0;o<r;o+=1){const s={top:0,bottom:0,left:0,right:0};this._updateScalesRange(...i),ue([e,n]).forEach(c=>{c.preRender();const u=c.getRequiredMargin();s.top<u.top&&(s.top=u.top),s.bottom<u.bottom&&(s.bottom=u.bottom),s.left<u.left&&(s.left=u.left),s.right<u.right&&(s.right=u.right)}),this._axisMargin=s}}_getMargin(){const{config:{margin:e}}=this;return{top:e.top+this._axisMargin.top,bottom:e.bottom+this._axisMargin.bottom,left:e.left+this._axisMargin.left,right:e.right+this._axisMargin.right}}destroy(){const{components:e,config:{tooltip:n,crosshair:i,annotations:r,xAxis:o,yAxis:s}}=this;super.destroy();for(const a of e)a==null||a.destroy();n==null||n.destroy(),i==null||i.destroy(),r==null||r.destroy(),o==null||o.destroy(),s==null||s.destroy()}}const xa={duration:600,events:{},attributes:{}};class eg{constructor(e=xe.SVG){var n,i;this.type=xe.SVG,this.datamodel=new Ji,this.sizing=ee.Fit,this.events={},this._defaultConfig=xa,this._width=400,this._height=200,this._containerWidth=void 0,this._containerHeight=void 0,this._setUpComponentEventsThrottled=Cr(this._setUpComponentEvents,500),this._setCustomAttributesThrottled=Cr(this._setCustomAttributes,500),e===xe.SVG?this.element=document.createElementNS("http://www.w3.org/2000/svg","g"):this.element=document.createElement("div"),this.uid=Os(),this.g=Nt(this.element);const r=(i=(n=this.constructor)===null||n===void 0?void 0:n.selectors)===null||i===void 0?void 0:i.root;r&&this.g.attr("class",r)}setConfig(e){this.prevConfig=this.config,this.config=Se(this._defaultConfig,e)}setData(e){this.datamodel.data=e}setSize(e,n,i,r){isFinite(e)&&(this._width=e),isFinite(n)&&(this._height=n),isFinite(i)&&(this._containerWidth=i),isFinite(r)&&(this._containerHeight=r)}render(e=this.config.duration){this._render(e);const n="animating";e&&(this.g.attr(n,""),this.g.transition(n).duration(e).on("end interrupt",()=>{this.g.attr(n,null)})),this._setUpComponentEventsThrottled(),this._setCustomAttributesThrottled()}get bleed(){return{top:0,bottom:0,left:0,right:0}}_render(e=this.config.duration){}_setCustomAttributes(){const e=this.config.attributes;Object.keys(e).forEach(n=>{Object.keys(e[n]).forEach(i=>{this.g.selectAll(`.${n}`).attr(i,e[n][i])})})}_setUpComponentEvents(){this._bindEvents(this.events),this._bindEvents(this.config.events,".user")}_bindEvents(e=this.events,n=""){Object.keys(e).forEach(i=>{Object.keys(e[i]).forEach(r=>{const o=this.g.selectAll(`.${i}`);o.on(r+n,(s,a)=>{const c=o.nodes(),u=c.indexOf(s.currentTarget),f=e[i][r];return f==null?void 0:f(a,s,u,c)})})})}destroy(){var e;(e=this.g)===null||e===void 0||e.remove(),this.element=void 0}isDestroyed(){return!this.element}}class ng extends Ji{constructor(e){super(e)}get data(){var e;return(e=this._data)!==null&&e!==void 0?e:[]}set data(e){Array.isArray(e)&&(this._data=e)}}const hr=Object.assign(Object.assign({},xa),{x:void 0,y:void 0,id:(t,e)=>{var n;return(n=t.id)!==null&&n!==void 0?n:`${e}`},color:t=>t.color,xScale:void 0,yScale:void 0,excludeFromDomainCalculation:!1});class wa extends eg{constructor(){super(...arguments),this.datamodel=new ng,this.clippable=!0,this.stacked=!1,this._defaultConfig=hr,this._xScale=Do.scaleLinear(),this._yScale=Do.scaleLinear()}get xScale(){return this.config.xScale||this._xScale}get yScale(){return this.config.yScale||this._yScale}setConfig(e){var n,i;!((n=this.config)===null||n===void 0)&&n.xScale&&(e.xScale=this.config.xScale),!((i=this.config)===null||i===void 0)&&i.yScale&&(e.yScale=this.config.yScale),super.setConfig(e)}setScaleDomain(e,n){var i,r;e===I.X&&((i=this._xScale)===null||i===void 0||i.domain(n)),e===I.Y&&((r=this._yScale)===null||r===void 0||r.domain(n))}setScaleRange(e,n){var i,r;e===I.X&&((i=this._xScale)===null||i===void 0||i.range(n)),e===I.Y&&((r=this._yScale)===null||r===void 0||r.range(n))}setScale(e,n){n&&e===I.X&&(this._xScale=n),n&&e===I.Y&&(this._yScale=n)}getDataExtent(e,n){const{config:i,datamodel:r}=this;switch(e){case I.X:return this.getXDataExtent();case I.Y:return this.getYDataExtent(n);default:return Wn(r.data,i[e])}}getXDataExtent(){const{config:e,datamodel:n}=this;return Wn(n.data,e.x)}getYDataExtent(e){const{config:n,datamodel:i}=this,r=e?Ku(i.data,this.xScale.domain(),n.x):i.data,o=zi(n.y)?n.y:[n.y];return Wn(r,...o)}}var E;(function(t){t.Top="top",t.Bottom="bottom",t.Left="left",t.Right="right",t.Center="center",t.Auto="auto"})(E||(E={}));var Ro;(function(t){t.Absolute="absolute",t.Fixed="fixed"})(Ro||(Ro={}));var Fo;(function(t){t.Inside="inside",t.Outside="outside"})(Fo||(Fo={}));var Lo;(function(t){t.Horizontal="horizontal",t.Vertical="vertical"})(Lo||(Lo={}));function qt(t){return function(){return t}}const zo=1e-12,Si=Math.PI,Mi=2*Si,Ct=1e-6,ig=Mi-Ct;function ba(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function rg(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return ba;const n=10**e;return function(i){this._+=i[0];for(let r=1,o=i.length;r<o;++r)this._+=Math.round(arguments[r]*n)/n+i[r]}}class og{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?ba:rg(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,i,r){this._append`Q${+e},${+n},${this._x1=+i},${this._y1=+r}`}bezierCurveTo(e,n,i,r,o,s){this._append`C${+e},${+n},${+i},${+r},${this._x1=+o},${this._y1=+s}`}arcTo(e,n,i,r,o){if(e=+e,n=+n,i=+i,r=+r,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,a=this._y1,c=i-e,u=r-n,f=s-e,l=a-n,h=f*f+l*l;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(h>Ct)if(!(Math.abs(l*c-u*f)>Ct)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let d=i-s,p=r-a,g=c*c+u*u,m=d*d+p*p,y=Math.sqrt(g),x=Math.sqrt(h),v=o*Math.tan((Si-Math.acos((g+h-m)/(2*y*x)))/2),S=v/x,k=v/y;Math.abs(S-1)>Ct&&this._append`L${e+S*f},${n+S*l}`,this._append`A${o},${o},0,0,${+(l*d>f*p)},${this._x1=e+k*c},${this._y1=n+k*u}`}}arc(e,n,i,r,o,s){if(e=+e,n=+n,i=+i,s=!!s,i<0)throw new Error(`negative radius: ${i}`);let a=i*Math.cos(r),c=i*Math.sin(r),u=e+a,f=n+c,l=1^s,h=s?r-o:o-r;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>Ct||Math.abs(this._y1-f)>Ct)&&this._append`L${u},${f}`,i&&(h<0&&(h=h%Mi+Mi),h>ig?this._append`A${i},${i},0,1,${l},${e-a},${n-c}A${i},${i},0,1,${l},${this._x1=u},${this._y1=f}`:h>Ct&&this._append`A${i},${i},0,${+(h>=Si)},${l},${this._x1=e+i*Math.cos(o)},${this._y1=n+i*Math.sin(o)}`)}rect(e,n,i,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${i=+i}v${+r}h${-i}Z`}toString(){return this._}}function sg(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const i=Math.floor(n);if(!(i>=0))throw new RangeError(`invalid digits: ${n}`);e=i}return t},()=>new og(e)}function ag(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function ka(t){this._context=t}ka.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function Ta(t){return new ka(t)}function cg(t){return t[0]}function ug(t){return t[1]}function lg(t,e){var n=qt(!0),i=null,r=Ta,o=null,s=sg(a);t=typeof t=="function"?t:t===void 0?cg:qt(t),e=typeof e=="function"?e:e===void 0?ug:qt(e);function a(c){var u,f=(c=ag(c)).length,l,h=!1,d;for(i==null&&(o=r(d=s())),u=0;u<=f;++u)!(u<f&&n(l=c[u],u,c))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(l,u,c),+e(l,u,c));if(d)return o=null,d+""||null}return a.x=function(c){return arguments.length?(t=typeof c=="function"?c:qt(+c),a):t},a.y=function(c){return arguments.length?(e=typeof c=="function"?c:qt(+c),a):e},a.defined=function(c){return arguments.length?(n=typeof c=="function"?c:qt(!!c),a):n},a.curve=function(c){return arguments.length?(r=c,i!=null&&(o=r(i)),a):r},a.context=function(c){return arguments.length?(c==null?i=o=null:o=r(i=c),a):i},a}function St(){}function Sn(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Un(t){this._context=t}Un.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Sn(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Sn(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function fg(t){return new Un(t)}function Sa(t){this._context=t}Sa.prototype={areaStart:St,areaEnd:St,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Sn(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function hg(t){return new Sa(t)}function Ma(t){this._context=t}Ma.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:Sn(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function dg(t){return new Ma(t)}function Ca(t,e){this._basis=new Un(t),this._beta=e}Ca.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var i=t[0],r=e[0],o=t[n]-i,s=e[n]-r,a=-1,c;++a<=n;)c=a/n,this._basis.point(this._beta*t[a]+(1-this._beta)*(i+c*o),this._beta*e[a]+(1-this._beta)*(r+c*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const gg=function t(e){function n(i){return e===1?new Un(i):new Ca(i,e)}return n.beta=function(i){return t(+i)},n}(.85);function Mn(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function dr(t,e){this._context=t,this._k=(1-e)/6}dr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Mn(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Mn(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const pg=function t(e){function n(i){return new dr(i,e)}return n.tension=function(i){return t(+i)},n}(0);function gr(t,e){this._context=t,this._k=(1-e)/6}gr.prototype={areaStart:St,areaEnd:St,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Mn(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const _g=function t(e){function n(i){return new gr(i,e)}return n.tension=function(i){return t(+i)},n}(0);function pr(t,e){this._context=t,this._k=(1-e)/6}pr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Mn(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const mg=function t(e){function n(i){return new pr(i,e)}return n.tension=function(i){return t(+i)},n}(0);function _r(t,e,n){var i=t._x1,r=t._y1,o=t._x2,s=t._y2;if(t._l01_a>zo){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,r=(r*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>zo){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*u+t._x1*t._l23_2a-e*t._l12_2a)/f,s=(s*u+t._y1*t._l23_2a-n*t._l12_2a)/f}t._context.bezierCurveTo(i,r,o,s,t._x2,t._y2)}function Aa(t,e){this._context=t,this._alpha=e}Aa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:_r(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const vg=function t(e){function n(i){return e?new Aa(i,e):new dr(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function $a(t,e){this._context=t,this._alpha=e}$a.prototype={areaStart:St,areaEnd:St,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:_r(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const yg=function t(e){function n(i){return e?new $a(i,e):new gr(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function Ea(t,e){this._context=t,this._alpha=e}Ea.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:_r(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const xg=function t(e){function n(i){return e?new Ea(i,e):new pr(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function Na(t){this._context=t}Na.prototype={areaStart:St,areaEnd:St,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function wg(t){return new Na(t)}function Bo(t){return t<0?-1:1}function Io(t,e,n){var i=t._x1-t._x0,r=e-t._x1,o=(t._y1-t._y0)/(i||r<0&&-0),s=(n-t._y1)/(r||i<0&&-0),a=(o*r+s*i)/(i+r);return(Bo(o)+Bo(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function Po(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function oi(t,e,n){var i=t._x0,r=t._y0,o=t._x1,s=t._y1,a=(o-i)/3;t._context.bezierCurveTo(i+a,r+a*e,o-a,s-a*n,o,s)}function Cn(t){this._context=t}Cn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:oi(this,this._t0,Po(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,oi(this,Po(this,n=Io(this,t,e)),n);break;default:oi(this,this._t0,n=Io(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function Oa(t){this._context=new Da(t)}(Oa.prototype=Object.create(Cn.prototype)).point=function(t,e){Cn.prototype.point.call(this,e,t)};function Da(t){this._context=t}Da.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,i,r,o){this._context.bezierCurveTo(e,t,i,n,o,r)}};function bg(t){return new Cn(t)}function kg(t){return new Oa(t)}function Ra(t){this._context=t}Ra.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var i=Uo(t),r=Uo(e),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(i[0][o],r[0][o],i[1][o],r[1][o],t[s],e[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function Uo(t){var e,n=t.length-1,i,r=new Array(n),o=new Array(n),s=new Array(n);for(r[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e<n-1;++e)r[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(r[n-1]=2,o[n-1]=7,s[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)i=r[e]/o[e-1],o[e]-=i,s[e]-=i*s[e-1];for(r[n-1]=s[n-1]/o[n-1],e=n-2;e>=0;--e)r[e]=(s[e]-r[e+1])/o[e];for(o[n-1]=(t[n]+r[n-1])/2,e=0;e<n-1;++e)o[e]=2*t[e+1]-r[e+1];return[r,o]}function Tg(t){return new Ra(t)}function Hn(t,e){this._context=t,this._t=e}Hn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function Sg(t){return new Hn(t,.5)}function Mg(t){return new Hn(t,0)}function Cg(t){return new Hn(t,1)}function Ho(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Ag(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ho(Object(n),!0).forEach(function(i){$g(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ho(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function ke(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ke=function(e){return typeof e}:ke=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ke(t)}function $g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function An(){return An=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},An.apply(this,arguments)}function Eg(t,e){if(t){if(typeof t=="string")return Vo(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vo(t,e)}}function Vo(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Fa(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Eg(t))||e){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(c){throw c},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
55
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,a;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,a=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function Ng(t,e){var n=[],i=[];function r(o,s){if(o.length===1)n.push(o[0]),i.push(o[0]);else{for(var a=Array(o.length-1),c=0;c<a.length;c++)c===0&&n.push(o[0]),c===a.length-1&&i.push(o[c+1]),a[c]=[(1-s)*o[c][0]+s*o[c+1][0],(1-s)*o[c][1]+s*o[c+1][1]];r(a,s)}}return t.length&&r(t,e),{left:n,right:i.reverse()}}function Og(t){var e={};return t.length===4&&(e.x2=t[2][0],e.y2=t[2][1]),t.length>=3&&(e.x1=t[1][0],e.y1=t[1][1]),e.x=t[t.length-1][0],e.y=t[t.length-1][1],t.length===4?e.type="C":t.length===3?e.type="Q":e.type="L",e}function Dg(t,e){e=e||2;for(var n=[],i=t,r=1/e,o=0;o<e-1;o++){var s=r/(1-r*o),a=Ng(i,s);n.push(a.left),i=a.right}return n.push(i),n}function Rg(t,e,n){var i=[[t.x,t.y]];return e.x1!=null&&i.push([e.x1,e.y1]),e.x2!=null&&i.push([e.x2,e.y2]),i.push([e.x,e.y]),Dg(i,n).map(Og)}var Fg=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,Kt={M:["x","y"],L:["x","y"],H:["x"],V:["y"],C:["x1","y1","x2","y2","x","y"],S:["x2","y2","x","y"],Q:["x1","y1","x","y"],T:["x","y"],A:["rx","ry","xAxisRotation","largeArcFlag","sweepFlag","x","y"],Z:[]};Object.keys(Kt).forEach(function(t){Kt[t.toLowerCase()]=Kt[t]});function Ci(t,e){for(var n=Array(t),i=0;i<t;i++)n[i]=e;return n}function Lg(t){return"".concat(t.type).concat(Kt[t.type].map(function(e){return t[e]}).join(","))}function zg(t,e){var n={x1:"x",y1:"y",x2:"x",y2:"y"},i=["xAxisRotation","largeArcFlag","sweepFlag"];if(t.type!==e.type&&e.type.toUpperCase()!=="M"){var r={};Object.keys(e).forEach(function(o){var s=e[o],a=t[o];a===void 0&&(i.includes(o)?a=s:(a===void 0&&n[o]&&(a=t[n[o]]),a===void 0&&(a=0))),r[o]=a}),r.type=e.type,t=r}return t}function Bg(t,e,n){var i=[];if(e.type==="L"||e.type==="Q"||e.type==="C")i=i.concat(Rg(t,e,n));else{var r=An({},t);r.type==="M"&&(r.type="L"),i=i.concat(Ci(n-1).map(function(){return r})),i.push(e)}return i}function Yo(t,e,n){var i=t.length-1,r=e.length-1,o=i/r,s=Ci(r).reduce(function(c,u,f){var l=Math.floor(o*f);if(n&&l<t.length-1&&n(t[l],t[l+1])){var h=o*f%1<.5;c[l]&&(h?l>0?l-=1:l<t.length-1&&(l+=1):l<t.length-1?l+=1:l>0&&(l-=1))}return c[l]=(c[l]||0)+1,c},[]),a=s.reduce(function(c,u,f){if(f===t.length-1){var l=Ci(u,An({},t[t.length-1]));return l[0].type==="M"&&l.forEach(function(h){h.type="L"}),c.concat(l)}return c.concat(Bg(t[f],t[f+1],u))},[]);return a.unshift(t[0]),a}function Wo(t){for(var e=(t||"").match(Fg)||[],n=[],i,r,o=0;o<e.length;++o)if(i=Kt[e[o]],i){r={type:e[o]};for(var s=0;s<i.length;++s)r[i[s]]=+e[o+s+1];o+=i.length,n.push(r)}return n}function Ig(t,e,n){var i=t==null?[]:t.slice(),r=e==null?[]:e.slice(),o=ke(n)==="object"?n:{excludeSegment:n,snapEndsToInput:!0},s=o.excludeSegment,a=o.snapEndsToInput;if(!i.length&&!r.length)return function(){return[]};var c=(i.length===0||i[i.length-1].type==="Z")&&(r.length===0||r[r.length-1].type==="Z");i.length>0&&i[i.length-1].type==="Z"&&i.pop(),r.length>0&&r[r.length-1].type==="Z"&&r.pop(),i.length?r.length||r.push(i[0]):i.push(r[0]);var u=Math.abs(r.length-i.length);u!==0&&(r.length>i.length?i=Yo(i,r,s):r.length<i.length&&(r=Yo(r,i,s))),i=i.map(function(l,h){return zg(l,r[h])});var f=i.map(function(l){return Ag({},l)});return c&&(f.push({type:"Z"}),i.push({type:"Z"})),function(h){if(h===1&&a)return e??[];if(h===0)return i;for(var d=0;d<f.length;++d){var p=i[d],g=r[d],m=f[d],y=Fa(Kt[m.type]),x;try{for(y.s();!(x=y.n()).done;){var v=x.value;m[v]=(1-h)*p[v]+h*g[v],(v==="largeArcFlag"||v==="sweepFlag")&&(m[v]=Math.round(m[v]))}}catch(S){y.e(S)}finally{y.f()}}return f}}function Pg(t,e,n){var i=Wo(t),r=Wo(e),o=ke(n)==="object"?n:{excludeSegment:n,snapEndsToInput:!0},s=o.excludeSegment,a=o.snapEndsToInput;if(!i.length&&!r.length)return function(){return""};var c=Ig(i,r,{excludeSegment:s,snapEndsToInput:a});return function(f){if(f===1&&a)return e??"";var l=c(f),h="",d=Fa(l),p;try{for(d.s();!(p=d.n()).done;){var g=p.value;h+=Lg(g)}}catch(m){d.e(m)}finally{d.f()}return h}}function si(t,e,n,i){return Array.isArray(e)&&isFinite(n)?e[n%e.length]:gs(t,e,n)||(Zt(n)?`var(${bt(n)})`:null)}exports.CurveType=void 0;(function(t){t.Basis="basis",t.BasisClosed="basisClosed",t.BasisOpen="basisOpen",t.Bundle="bundle",t.Cardinal="cardinal",t.CardinalClosed="cardinalClosed",t.CardinalOpen="cardinalOpen",t.CatmullRom="catmullRom",t.CatmullRomClosed="catmullRomClosed",t.CatmullRomOpen="catmullRomOpen",t.Linear="linear",t.LinearClosed="linearClosed",t.MonotoneX="monotoneX",t.MonotoneY="monotoneY",t.Natural="natural",t.Step="step",t.StepAfter="stepAfter",t.StepBefore="stepBefore"})(exports.CurveType||(exports.CurveType={}));const Xo={[exports.CurveType.Basis]:fg,[exports.CurveType.BasisClosed]:hg,[exports.CurveType.BasisOpen]:dg,[exports.CurveType.Bundle]:gg,[exports.CurveType.Cardinal]:pg,[exports.CurveType.CardinalClosed]:_g,[exports.CurveType.CardinalOpen]:mg,[exports.CurveType.CatmullRom]:vg,[exports.CurveType.CatmullRomClosed]:yg,[exports.CurveType.CatmullRomOpen]:xg,[exports.CurveType.Linear]:Ta,[exports.CurveType.LinearClosed]:wg,[exports.CurveType.MonotoneX]:bg,[exports.CurveType.MonotoneY]:kg,[exports.CurveType.Natural]:Tg,[exports.CurveType.Step]:Sg,[exports.CurveType.StepAfter]:Cg,[exports.CurveType.StepBefore]:Mg},Ug=Object.assign(Object.assign({},hr),{curveType:exports.CurveType.MonotoneX,lineWidth:2,lineDashArray:void 0,fallbackValue:void 0,highlightOnHover:!1,cursor:null,interpolateMissingData:!1}),Hg=Vi`
|
|
116
56
|
:root {
|
|
117
57
|
--vis-line-cursor: default;
|
|
118
58
|
--vis-line-stroke-dasharray: none;
|
|
@@ -122,35 +62,35 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
122
62
|
--vis-line-gapfill-stroke-opacity: 0.8;
|
|
123
63
|
--vis-line-gapfill-stroke-dashoffset: 0;
|
|
124
64
|
}
|
|
125
|
-
`,
|
|
65
|
+
`,Vg=X`
|
|
126
66
|
label: line-component;
|
|
127
|
-
`,
|
|
67
|
+
`,ve=X`
|
|
128
68
|
label: line;
|
|
129
69
|
transition: opacity 200ms;
|
|
130
70
|
cursor: var(--vis-line-cursor);
|
|
131
|
-
`,
|
|
71
|
+
`,Ai=X`
|
|
132
72
|
label: linePath;
|
|
133
73
|
fill: none;
|
|
134
74
|
stroke-dasharray: var(--vis-line-stroke-dasharray);
|
|
135
75
|
stroke-dashoffset: var(--vis-line-stroke-dashoffset);
|
|
136
|
-
|
|
76
|
+
`,$i=X`
|
|
137
77
|
label: lineSelectionHelper;
|
|
138
78
|
fill: none;
|
|
139
79
|
stroke: rgba(0, 0, 0, 0);
|
|
140
80
|
stroke-width: 8px;
|
|
141
|
-
`,
|
|
81
|
+
`,Ei=X`
|
|
142
82
|
opacity: 0.2;
|
|
143
|
-
`,
|
|
83
|
+
`,Ni=X`
|
|
144
84
|
label: interpolated-path;
|
|
145
85
|
fill: none;
|
|
146
86
|
stroke-dasharray: var(--vis-line-gapfill-stroke-dasharray);
|
|
147
87
|
stroke-dashoffset: var(--vis-line-gapfill-stroke-dashoffset);
|
|
148
88
|
stroke-opacity: var(--vis-line-gapfill-stroke-opacity);
|
|
149
|
-
`,
|
|
150
|
-
`:if(
|
|
151
|
-
`).map(
|
|
89
|
+
`,Yg=Object.freeze(Object.defineProperty({__proto__:null,dim:Ei,globalStyles:Hg,interpolatedPath:Ni,line:ve,linePath:Ai,lineSelectionHelper:$i,root:Vg},Symbol.toStringTag,{value:"Module"}));class Vn extends wa{constructor(e){super(),this._defaultConfig=Ug,this.config=this._defaultConfig,this.curve=Xo[exports.CurveType.MonotoneX],this.events={[Vn.selectors.line]:{mouseover:this._highlight.bind(this),mouseleave:this._resetHighlight.bind(this)}},e&&this.setConfig(e)}get bleed(){const{config:{lineWidth:e}}=this,n=this.yScale.domain(),r=(this.yScale.range()[0]>this.yScale.range()[1]?Ft.North:Ft.South)===Ft.South,o=e>3,s=e>=10;return{top:!s&&(!r&&n[1]===0||r&&n[0]===0)?0:e/2,bottom:!s&&(!r&&n[0]===0||r&&n[1]===0)?0:e/2,left:o?e/2:0,right:o?e/2:0}}_render(e){super._render(e);const{config:n,datamodel:{data:i}}=this,r=Zt(e)?e:n.duration;this.curve=Xo[n.curveType],this.lineGen=lg().x(l=>l.x).y(l=>l.y).defined(l=>l.defined).curve(this.curve);const o=zi(n.y)?n.y:[n.y],s=i.map((l,h)=>this.xScale(Me(l,n.x,h))),a=o.map(l=>{const h=i.map((y,x)=>{const v=Me(y,l,x),S=(Zt(v)||v===null)&&isFinite(v)?v:n.fallbackValue,k=n.interpolateMissingData?(Zt(v)||v===null)&&isFinite(v):isFinite(S);return{x:s[x],y:this.yScale(S??0),defined:k,value:S}}),d=h.reduce((y,x)=>x.defined||y,!1);let p=!1;const g=h.reduce((y,x,v)=>{!x.defined&&isFinite(n.fallbackValue)&&y.push(Object.assign(Object.assign({},x),{defined:!0})),!x.defined&&!p&&(p=!0);const S=v>0&&!h[v-1].defined||v<h.length-1&&!h[v+1].defined;return x.defined&&S&&(p||y.push(Object.assign(Object.assign({},x),{defined:!1})),y.push(x),p=!1),y},[]),m=d&&h.some(y=>y.value!==null);return{values:h,defined:d,gaps:g,visible:m}}),c=this.g.selectAll(`.${ve}`).data(a),u=c.enter().append("g").attr("class",ve);u.append("path").attr("class",Ai).attr("stroke",(l,h)=>si(i,n.color,h)).attr("stroke-opacity",0).attr("stroke-width",n.lineWidth),u.append("path").attr("class",$i).attr("d",this._emptyPath()),u.append("path").attr("class",Ni).attr("d",this._emptyPath()).style("opacity",0);const f=u.merge(c);f.style("cursor",(l,h)=>gs(i,n.cursor,h)),f.each((l,h,d)=>{var p;const g=Nt(d[h]),m=g.select(`.${Ai}`),y=g.select(`.${$i}`),x=g.select(`.${Ni}`),v=l.visible,S=Bi(i,n.lineDashArray,h),k=$t(m,r).attr("stroke",si(i,n.color,h)).attr("stroke-width",n.lineWidth).attr("stroke-opacity",v?1:0).style("stroke-dasharray",(p=S==null?void 0:S.join(" "))!==null&&p!==void 0?p:null),b=l.values.some(z=>!z.defined),T=this.lineGen(l.values);if(r&&!b){const z=m.attr("d")||this._emptyPath(),R=T||this._emptyPath();k.attrTween("d",()=>Pg(z,R))}else l.visible&&k.attr("d",T);y.attr("d",T).attr("visibility",v?null:"hidden"),b&&n.interpolateMissingData?$t(x,r).attr("d",this.lineGen(l.gaps)).attr("stroke",si(i,n.color,h)).attr("stroke-width",n.lineWidth-1).style("opacity",1):x.transition().duration(r).style("opacity",0)}),$t(c.exit(),r).style("opacity",0).remove()}_emptyPath(){const e=this.xScale.range(),n=this.yScale.range();return`M${e[0]},${n[0]} L${e[1]},${n[0]}`}_highlight(e){const{config:n}=this;n.highlightOnHover&&this.g.selectAll(`.${ve}`).classed(Ei,i=>i!==e)}_resetHighlight(){const{config:e}=this;e.highlightOnHover&&this.g.selectAll(`.${ve}`).classed(Ei,!1)}}Vn.selectors=Yg;function Wg(t){return t}var nn=1,rn=2,Oi=3,ye=4,qo=1e-6;function Xg(t){return"translate("+t+",0)"}function qg(t){return"translate(0,"+t+")"}function Gg(t){return e=>+t(e)}function Zg(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function jg(){return!this.__axis}function Yn(t,e){var n=[],i=null,r=null,o=6,s=6,a=3,c=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=t===nn||t===ye?-1:1,f=t===ye||t===rn?"x":"y",l=t===nn||t===Oi?Xg:qg;function h(d){var p=i??(e.ticks?e.ticks.apply(e,n):e.domain()),g=r??(e.tickFormat?e.tickFormat.apply(e,n):Wg),m=Math.max(o,0)+a,y=e.range(),x=+y[0]+c,v=+y[y.length-1]+c,S=(e.bandwidth?Zg:Gg)(e.copy(),c),k=d.selection?d.selection():d,b=k.selectAll(".domain").data([null]),T=k.selectAll(".tick").data(p,e).order(),z=T.exit(),R=T.enter().append("g").attr("class","tick"),Q=T.select("line"),C=T.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),T=T.merge(R),Q=Q.merge(R.append("line").attr("stroke","currentColor").attr(f+"2",u*o)),C=C.merge(R.append("text").attr("fill","currentColor").attr(f,u*m).attr("dy",t===nn?"0em":t===Oi?"0.71em":"0.32em")),d!==k&&(b=b.transition(d),T=T.transition(d),Q=Q.transition(d),C=C.transition(d),z=z.transition(d).attr("opacity",qo).attr("transform",function(B){return isFinite(B=S(B))?l(B+c):this.getAttribute("transform")}),R.attr("opacity",qo).attr("transform",function(B){var U=this.parentNode.__axis;return l((U&&isFinite(U=U(B))?U:S(B))+c)})),z.remove(),b.attr("d",t===ye||t===rn?s?"M"+u*s+","+x+"H"+c+"V"+v+"H"+u*s:"M"+c+","+x+"V"+v:s?"M"+x+","+u*s+"V"+c+"H"+v+"V"+u*s:"M"+x+","+c+"H"+v),T.attr("opacity",1).attr("transform",function(B){return l(S(B)+c)}),Q.attr(f+"2",u*o),C.attr(f,u*m).text(g),k.filter(jg).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===rn?"start":t===ye?"end":"middle"),k.each(function(){this.__axis=S})}return h.scale=function(d){return arguments.length?(e=d,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(d){return arguments.length?(n=d==null?[]:Array.from(d),h):n.slice()},h.tickValues=function(d){return arguments.length?(i=d==null?null:Array.from(d),h):i&&i.slice()},h.tickFormat=function(d){return arguments.length?(r=d,h):r},h.tickSize=function(d){return arguments.length?(o=s=+d,h):o},h.tickSizeInner=function(d){return arguments.length?(o=+d,h):o},h.tickSizeOuter=function(d){return arguments.length?(s=+d,h):s},h.tickPadding=function(d){return arguments.length?(a=+d,h):a},h.offset=function(d){return arguments.length?(c=+d,h):c},h}function Go(t){return Yn(nn,t)}function Zo(t){return Yn(rn,t)}function jo(t){return Yn(Oi,t)}function Qo(t){return Yn(ye,t)}var Lt;(function(t){t.Start="start",t.Middle="middle",t.End="end"})(Lt||(Lt={}));var zt;(function(t){t.Top="top",t.Middle="middle",t.Bottom="bottom"})(zt||(zt={}));var $n;(function(t){t.Wrap="wrap",t.Trim="trim"})($n||($n={}));var ot;(function(t){t.Left="left",t.Center="center",t.Right="right"})(ot||(ot={}));var on={exports:{}},Qg=on.exports,Jo;function Jg(){return Jo||(Jo=1,function(t){(function(e){if(typeof n!="function"){var n=function(p){return p};n.nonNative=!0}const i=n("plaintext"),r=n("html"),o=n("comment"),s=/<(\w*)>/g,a=/<\/?([^\s\/>]+)/;function c(p,g,m){p=p||"",g=g||[],m=m||"";let y=f(g,m);return l(p,y)}function u(p,g){p=p||[],g=g||"";let m=f(p,g);return function(x){return l(x||"",m)}}c.init_streaming_mode=u;function f(p,g){return p=h(p),{allowable_tags:p,tag_replacement:g,state:i,tag_buffer:"",depth:0,in_quote_char:""}}function l(p,g){if(typeof p!="string")throw new TypeError("'html' parameter must be a string");let m=g.allowable_tags,y=g.tag_replacement,x=g.state,v=g.tag_buffer,S=g.depth,k=g.in_quote_char,b="";for(let T=0,z=p.length;T<z;T++){let R=p[T];if(x===i)switch(R){case"<":x=r,v+=R;break;default:b+=R;break}else if(x===r)switch(R){case"<":if(k)break;S++;break;case">":if(k)break;if(S){S--;break}k="",x=i,v+=">",m.has(d(v))?b+=v:b+=y,v="";break;case'"':case"'":R===k?k="":k=k||R,v+=R;break;case"-":v==="<!-"&&(x=o),v+=R;break;case" ":case`
|
|
90
|
+
`:if(v==="<"){x=i,b+="< ",v="";break}v+=R;break;default:v+=R;break}else if(x===o)switch(R){case">":v.slice(-2)=="--"&&(x=i),v="";break;default:v+=R;break}}return g.state=x,g.tag_buffer=v,g.depth=S,g.in_quote_char=k,b}function h(p){let g=new Set;if(typeof p=="string"){let m;for(;m=s.exec(p);)g.add(m[1])}else!n.nonNative&&typeof p[n.iterator]=="function"?g=new Set(p):typeof p.forEach=="function"&&p.forEach(g.add,g);return g}function d(p){let g=a.exec(p);return g?g[1].toLowerCase():null}t.exports?t.exports=c:e.striptags=c})(Qg)}(on)),on.exports}var Kg=Jg();const tp=cf(Kg);function ep(t){switch(t){case ot.Center:return"middle";case ot.Right:return"end";case ot.Left:default:return"start"}}function np(t){var e;return(e=t.match(/[A-Z]{2,}(?=[A-Z][a-z0-9]*|\b)|[A-Z]?[a-z0-9]*|[A-Z]|[0-9]+/g))===null||e===void 0?void 0:e.filter(Boolean).map(n=>n.toLowerCase()).join("-")}function ip(t){return t.replace(/['"]/g,"'").replace(/\u0000/g,"\\0").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\v/g,"\\v").replace(/\t/g,"\\t").replace(/\f/g,"\\f")}function rp(t,e=15){return t?t.length>e?`…${t.substr(t.length-e,e)}`:t:""}function op(t,e=15){if(!t)return"";const n=Math.floor((e-3)/2);return t.length>e?`${t.substr(0,n)}…${t.substr(-n,n)}`:t}function sp(t,e=15){return t?t.length>e?`${t.substr(0,e)}…`:t:""}function ap(t,e=15,n=Lt.Middle){if(!t)return"";let i=sp(t,e);return n===Lt.Start?i=rp(t,e):n===Lt.Middle&&(i=op(t,e)),i}function cp(t,e=[" "]){let n=[t];for(let i=0;i<e.length;i++){const r=e[i];n.forEach((o,s)=>{const a=o.split(r),c=a.map((u,f)=>`${u}${f===a.length-1?"":r}`);n[s]=c}),n=fi(n)}return n}function up(t,e,n,i,r,o){var s;e===void 0&&(e=50),n===void 0&&(n=Lt.Middle),r===void 0&&(r=+((s=window.getComputedStyle(t.node()))===null||s===void 0?void 0:s.fontSize)||0);const a=t.text(),c=a.length,u=r*c*o,l=Math.ceil(c*e/(1.1*u));return l<c?(t.text(ap(a,l,n)),!0):!1}function sn(t,e,n=Ef()){return t.length*e*n||0}function an(t,e,n){const i="http://www.w3.org/2000/svg",r=document.createElementNS(i,"svg"),o=document.createElementNS(i,"text");o.textContent=t,o.setAttribute("font-size",`${n}`),o.setAttribute("font-family",e),r.appendChild(o),document.body.appendChild(r);const s=o.getComputedTextLength();return document.body.removeChild(r),s}function lp(t,e=void 0,n=!0,i=Ls,r=!1){const o=`${t.text}`;if(!o)return[];const s=Array.isArray(i)?i:[i];return o.split(`
|
|
91
|
+
`).map(c=>{const u=[];if(!e)return[c];const f=cp(c,s);let l="";for(let h=0;h<f.length;h+=1){(n?sn(l+f[h],t.fontSize,t.fontWidthToHeightRatio):an(l+f[h],t.fontFamily,t.fontSize))<e||h===0?l+=f[h]:(u.push(l.trim()),l=f[h]);const p=2;if(r)for(;l.trim().length>p&&(n?sn(l,t.fontSize,t.fontWidthToHeightRatio):an(l,t.fontFamily,t.fontSize))>e;){let m=l.trim().length-p;for(;m>0;){const y=`${l.substring(0,m)}${zs}`;if((n?sn(y,t.fontSize,t.fontWidthToHeightRatio):an(y,t.fontFamily,t.fontSize))<=e||m===1){u.push(y.trim()),l=l.substring(m);break}m--}}}return l&&u.push(l.trim()),u}).flat()}function fp(t,e=void 0,n=void 0,i=!0,r=Ls,o=!1){const s=Array.isArray(t)?t.map(l=>Se(eo,l)):[Se(eo,t)],a=s.map(l=>lp(l,e,i,r,o)),c=s[0];let u=-c.fontSize*(c.lineHeight-1);const f=[];return s.forEach((l,h)=>{var d;let p=a[h];const g=h>0?f[h-1]:void 0,m=g?g.marginBottom:0,y=l.marginTop,x=Math.max(m,y);u+=x;const v=l.fontSize*l.lineHeight;let S=0;for(let k=0;k<p.length;k+=1){let b=p[k];u+=v;const T=`${b} …`,z=i?sn(T,l.fontSize,l.fontWidthToHeightRatio):an(T,l.fontFamily,l.fontSize);if(S=Math.max(z,S),n&&u+v>n&&k!==p.length-1){b.charAt(b.length-1)===zs&&(b=b.substr(0,p[k].length-1)),z<e?p[k]=T:p[k]=`${p[k].substr(0,p[k].length-2)}…`,p=p.slice(0,k+1);break}}f.push(Object.assign(Object.assign({},l),{_lines:p,_estimatedHeight:u-((g==null?void 0:g._estimatedHeight)||0),_maxWidth:Math.max(S,(d=g==null?void 0:g._maxWidth)!==null&&d!==void 0?d:0)}))}),f}function hp(t,e=0,n){return t.map((i,r)=>{const o=r>0?t[r-1]:void 0,s=o?o.marginBottom/o.fontSize:0,a=i.marginTop/i.fontSize,c=Math.max(s,a),u={fontSize:i.fontSize,fontFamily:i.fontFamily,fontWeight:i.fontWeight,fill:i.color,y:r===0&&n};return`<tspan xmlns="http://www.w3.org/2000/svg" ${Object.entries(u).filter(([l,h])=>h).map(([l,h])=>`${np(l)}="${ip(h.toString())}"`).join(" ")}>${i._lines.map((l,h)=>{let d;return r===0&&h===0?d=.8+c:h===0?d=c+i.lineHeight:d=i.lineHeight,`<tspan x="${e}" dy="${d}em">${l.length?l:" "}</tspan>`}).join("")}</tspan>`})}function dp(t){return Gu(t,e=>e._estimatedHeight)}const gp=["text","tspan","textPath","altGlyph","altGlyphDef","altGlyphItem","glyphRef","textRef","textArea"];function pp(t,e,n,i){var r,o;const s=fp(e,n.width,void 0,n.fastMode,n.separator,n.wordBreak),a=(r=n.x)!==null&&r!==void 0?r:+t.getAttribute("x"),c=(o=n.y)!==null&&o!==void 0?o:+t.getAttribute("y"),u=a??0;let f=c??0;if(n.textAlign&&t.setAttribute("text-anchor",ep(n.textAlign)),n.verticalAlign&&n.verticalAlign!==zt.Top){const l=dp(s),h=n.verticalAlign===zt.Middle?-l/2:n.verticalAlign===zt.Bottom?-l:0;f+=h}n.textRotationAngle?t.setAttribute("transform",`rotate(${n.textRotationAngle===0||n.textRotationAngle?n.textRotationAngle:0} ${u} ${f})`):t.removeAttribute("transform");{const l=new DOMParser;t.textContent="",s.forEach(h=>{const d=hp([h],u,f).join(""),p=tp(d,gp),g=l.parseFromString(p,"image/svg+xml").firstChild;t.appendChild(g)})}}const _p=Object.assign(Object.assign({},hr),{position:void 0,type:void 0,label:void 0,labelFontSize:null,gridLine:!0,tickLine:!0,domainLine:!0,numTicks:void 0,minMaxTicksOnly:!1,minMaxTicksOnlyWhenWidthIsLess:250,tickTextWidth:void 0,tickTextSeparator:void 0,tickTextForceWordBreak:!1,tickTextTrimType:Lt.Middle,tickTextFitMode:$n.Wrap,tickTextFontSize:null,tickTextAlign:void 0,tickTextColor:null,tickTextAngle:void 0,labelMargin:8,labelColor:null,tickFormat:void 0,tickValues:void 0,fullSize:!0,tickPadding:8,tickTextHideOverlapping:void 0}),La=X`
|
|
152
92
|
label: axis-component;
|
|
153
|
-
`,
|
|
93
|
+
`,mp=Vi`
|
|
154
94
|
:root {
|
|
155
95
|
// Undefined by default to allow proper fallback to var(--vis-font-family)
|
|
156
96
|
/* --vis-axis-font-family: */
|
|
@@ -175,18 +115,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
175
115
|
--vis-dark-axis-label-color: #fefefe;
|
|
176
116
|
}
|
|
177
117
|
|
|
178
|
-
body.theme-dark ${`.${
|
|
118
|
+
body.theme-dark ${`.${La}`} {
|
|
179
119
|
--vis-axis-tick-color: var(--vis-dark-axis-tick-color);
|
|
180
120
|
--vis-axis-domain-color: var(--vis-dark-axis-domain-color);
|
|
181
121
|
--vis-axis-tick-label-color: var(--vis-dark-axis-tick-label-color);
|
|
182
122
|
--vis-axis-grid-color: var(--vis-dark-axis-grid-color);
|
|
183
123
|
--vis-axis-label-color: var(--vis-dark-axis-label-color);
|
|
184
124
|
}
|
|
185
|
-
`,
|
|
125
|
+
`,mr=X`
|
|
186
126
|
label: hide-tick-line;
|
|
187
|
-
`,
|
|
127
|
+
`,vr=X`
|
|
188
128
|
label: hide-domain;
|
|
189
|
-
`,
|
|
129
|
+
`,za=X`
|
|
190
130
|
label: axis;
|
|
191
131
|
|
|
192
132
|
user-select: none;
|
|
@@ -196,18 +136,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
196
136
|
stroke-width: var(--vis-axis-domain-line-width, var(--vis-axis-grid-line-width));
|
|
197
137
|
}
|
|
198
138
|
|
|
199
|
-
&${`.${
|
|
139
|
+
&${`.${mr}`} {
|
|
200
140
|
.tick > line {
|
|
201
141
|
opacity: 0;
|
|
202
142
|
}
|
|
203
143
|
}
|
|
204
144
|
|
|
205
|
-
&${`.${
|
|
145
|
+
&${`.${vr}`} {
|
|
206
146
|
.domain {
|
|
207
147
|
opacity: 0;
|
|
208
148
|
}
|
|
209
149
|
}
|
|
210
|
-
`,
|
|
150
|
+
`,Ba=X`
|
|
211
151
|
label: grid;
|
|
212
152
|
|
|
213
153
|
.domain {
|
|
@@ -218,7 +158,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
218
158
|
stroke: var(--vis-axis-grid-color);
|
|
219
159
|
stroke-width: var(--vis-axis-grid-line-width);
|
|
220
160
|
}
|
|
221
|
-
`,
|
|
161
|
+
`,Ia=X`
|
|
222
162
|
label: tick;
|
|
223
163
|
|
|
224
164
|
stroke: none;
|
|
@@ -236,78 +176,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
236
176
|
text-decoration: var(--vis-axis-tick-label-text-decoration);
|
|
237
177
|
stroke: none;
|
|
238
178
|
}
|
|
239
|
-
`,
|
|
179
|
+
`,Di=X`
|
|
240
180
|
label: label;
|
|
241
181
|
fill: var(--vis-axis-label-color);
|
|
242
182
|
font-size: var(--vis-axis-label-font-size);
|
|
243
183
|
font-family: var(--vis-axis-font-family, var(--vis-font-family));
|
|
244
184
|
text-anchor: middle;
|
|
245
|
-
`,
|
|
185
|
+
`,Pa=X`
|
|
246
186
|
label: tick-label;
|
|
247
|
-
`,
|
|
187
|
+
`,Ua=X`
|
|
248
188
|
label: tick-label-hideable;
|
|
249
189
|
opacity: 0;
|
|
250
190
|
transition: var(--vis-axis-tick-label-hide-transition);
|
|
251
|
-
`,fm=Object.freeze(Object.defineProperty({__proto__:null,axis:fl,globalStyles:hm,grid:dl,hideDomain:Ir,hideTickLine:Br,label:Ki,root:hl,tick:pl,tickLabel:gl,tickLabelHideable:ml},Symbol.toStringTag,{value:"Module"}));class vl extends Ha{constructor(e){super(),this._defaultConfig=um,this.config=this._defaultConfig,this._defaultNumTicks=3,this.events={},e&&this.setConfig(e),this.axisGroup=this.g.append("g"),this.gridGroup=this.g.append("g").attr("class",dl)}preRender(){const{config:e}=this,n=this.g.append("g").attr("opacity",0);this._renderAxis(n,0),this._axisRawBBox=n.node().getBBox(),e.tickTextAlign&&this._alignTickLabels(),this._renderAxisLabel(n),this._axisSizeBBox=this._getAxisSize(n),this._requiredMargin=this._getRequiredMargin(this._axisSizeBBox),n.remove()}getPosition(){const{config:{type:e,position:n}}=this;return n??(e===F.X?M.Bottom:M.Left)}_getAxisSize(e){return e.node().getBBox()}_getRequiredMargin(e=this._axisSizeBBox){const{config:{type:n,position:i}}=this;switch(n){case F.X:{const o=this._axisSizeBBox.x+this._axisSizeBBox.width,s=this._axisSizeBBox.x<0?Math.abs(this._axisSizeBBox.x):0,a=o-this._width>1?o-this._width:0;switch(i){case M.Top:return{top:e.height,left:s,right:a};case M.Bottom:default:return{bottom:e.height,left:s,right:a}}}case F.Y:{const r=e.height>this._height?(e.height-this._height)/2:0,o=r,s=r;switch(i){case M.Right:return{right:e.width,top:o,bottom:s};case M.Left:default:return{left:e.width,top:o,bottom:s}}}}}getRequiredMargin(){return this._requiredMargin}getOffset(e){const{config:{type:n,position:i}}=this;switch(n){case F.X:switch(i){case M.Top:return{top:e.top,left:e.left};case M.Bottom:default:return{top:e.top+this._height,left:e.left}}case F.Y:switch(i){case M.Right:return{top:e.top,left:e.left+this._width};case M.Left:default:return{top:e.top,left:e.left}}}}_render(e=this.config.duration,n=this.axisGroup){const{config:i}=this;if(this._renderAxis(n,e),this._renderAxisLabel(n),i.gridLine){const r=this._buildGrid().tickFormat(()=>"");r.tickValues(this._getConfiguredTickValues()),this.gridGroup.selectAll("*").interrupt(),zt(this.gridGroup,e).call(r).style("opacity",1)}else zt(this.gridGroup,e).style("opacity",0);i.tickTextAlign&&this._alignTickLabels(),this._resolveTickLabelOverlap(n)}_buildAxis(){const{config:{type:e,position:n,tickPadding:i}}=this,r=this._getNumTicks();switch(e){case F.X:switch(n){case M.Top:return ms(this.xScale).ticks(r).tickPadding(i);case M.Bottom:default:return _s(this.xScale).ticks(r).tickPadding(i)}case F.Y:switch(n){case M.Right:return vs(this.yScale).ticks(r).tickPadding(i);case M.Left:default:return ys(this.yScale).ticks(r).tickPadding(i)}}}_buildGrid(){const{config:{type:e,position:n}}=this,i=this._getNumTicks();switch(e){case F.X:switch(n){case M.Top:return ms(this.xScale).ticks(i*2).tickSize(-this._height).tickSizeOuter(0);case M.Bottom:default:return _s(this.xScale).ticks(i*2).tickSize(-this._height).tickSizeOuter(0)}case F.Y:switch(n){case M.Right:return vs(this.yScale).ticks(i*2).tickSize(-this._width).tickSizeOuter(0);case M.Left:default:return ys(this.yScale).ticks(i*2).tickSize(-this._width).tickSizeOuter(0)}}}_renderAxis(e=this.axisGroup,n=this.config.duration){const{config:i}=this,r=this._buildAxis(),o=this._getConfiguredTickValues()||r.scale().ticks(this._getNumTicks());r.tickValues(o),e.selectAll("*").interrupt(),zt(e,n).call(r);const s=e.selectAll("g.tick");s.classed(pl,!0).style("font-size",i.tickTextFontSize);const a=e.selectAll("g.tick > text").filter(l=>o.some(c=>Ee(l,c))).classed(gl,!0).classed(ml,!!i.tickTextHideOverlapping).style("fill",i.tickTextColor);if(a.nodes().forEach(l=>mr(l)),a.each((l,c,h)=>{var u,f;let d=(f=(u=i.tickFormat)===null||u===void 0?void 0:u.call(i,l,c,o))!==null&&f!==void 0?f:`${l}`;const g=h[c],p=i.tickTextWidth||(i.type===F.X?this._containerWidth/(s.size()+1):this._containerWidth/5),v=getComputedStyle(g),y=Number.parseFloat(v.fontSize),x=v.fontFamily,_={verticalAlign:i.type===F.X?Vt.Top:Vt.Middle,width:p,textRotationAngle:i.tickTextAngle,separator:i.tickTextSeparator,wordBreak:i.tickTextForceWordBreak};if(i.tickTextFitMode===Un.Trim){const k=j(g).text(d);im(k,p,i.tickTextTrimType,!0,y,.58),d=j(g).text()}cm(g,{text:d,fontFamily:x,fontSize:y},_)}),e.classed(fl,!0).classed(Br,!i.tickLine).classed(Ir,!i.domainLine),i.fullSize){const l=this._getFullDomainPath(0);zt(e.select(".domain"),n).attr("d",l)}}_resolveTickLabelOverlap(e=this.axisGroup){const{config:n}=this,i=e.selectAll("g.tick > text");if(!n.tickTextHideOverlapping){i.style("opacity",null);return}cancelAnimationFrame(this._collideTickLabelsAnimFrameId),this._collideTickLabelsAnimFrameId=requestAnimationFrame(()=>{this._collideTickLabels(i)})}_collideTickLabels(e){e.each((i,r,o)=>{const s=o[r];s._visible=!0});const n=3;for(let i=0;i<n;i+=1)e.each((r,o,s)=>{const a=s[o];if(!a._visible)return;const c=a.getBoundingClientRect();for(let h=o+1;h<s.length;h+=1){if(o===h)continue;const u=s[h];if(u._visible){const d=u.getBoundingClientRect();if(Wh(c,d,-5)){u._visible=!1;break}}}});e.each((i,r,o)=>{const s=o[r];j(s).style("opacity",s._visible?1:0)})}_getNumTicks(){const{config:{type:e,numTicks:n}}=this;if(n)return n;if(e===F.X){const i=this.xScale.range(),r=i[1]-i[0];return Math.floor(r/175)}if(e===F.Y){const i=this.yScale.range(),r=Math.abs(i[0]-i[1]);return Math.pow(r,.85)/25}return this._defaultNumTicks}_getConfiguredTickValues(){const{config:e}=this,n=e.type===F.X?this.xScale:this.yScale,i=n==null?void 0:n.domain();return e.tickValues?e.tickValues.filter(r=>r>=i[0]&&r<=i[1]):e.minMaxTicksOnly||e.type===F.X&&this._width<e.minMaxTicksOnlyWhenWidthIsLess?i:null}_getFullDomainPath(e=0){const{config:{type:n}}=this;switch(n){case F.X:return`M0.5, ${e} V0.5 H${this._width+.5} V${e}`;case F.Y:return`M${-e}, ${this._height+.5} H0.5 V0.5 H${-e}`}}_renderAxisLabel(e=this.axisGroup){var n;const{type:i,label:r,labelMargin:o,labelFontSize:s}=this.config;e.selectAll(`.${Ki}`).remove();const a=this.getPosition(),{width:l,height:c}=(n=this._axisRawBBox)!==null&&n!==void 0?n:e.node().getBBox(),h=i===F.X?this._width/2:Math.pow(-1,+(a===M.Left))*l,u=i===F.X?Math.pow(-1,+(a===M.Top))*c:this._height/2,f=i===F.X?0:Math.pow(-1,+(a===M.Left))*o,d=i===F.X?Math.pow(-1,+(a===M.Top))*o:0,g=i===F.Y?-90:0;e.append("text").attr("class",Ki).text(r).attr("dy",`${this._getLabelDY()}em`).attr("transform",`translate(${h+f},${u+d}) rotate(${g})`).style("font-size",s).style("fill",this.config.labelColor)}_getLabelDY(){const{type:e,position:n}=this.config;switch(e){case F.X:switch(n){case M.Top:return 0;case M.Bottom:default:return .75}case F.Y:switch(n){case M.Right:return .75;case M.Left:default:return-.25}}}_alignTickLabels(){const{config:{type:e,tickTextAlign:n,tickTextAngle:i,position:r}}=this,o=this.g.selectAll("g.tick > text"),s=this._getTickTextAnchor(n),a=e===F.X?0:this._getYTickTextTranslate(n,r),l=i?`translate(${a},0) rotate(${i})`:`translate(${a},0)`;o.attr("transform",l).attr("text-anchor",s)}_getTickTextAnchor(e){switch(e){case ct.Left:return"start";case ct.Right:return"end";case ct.Center:return"middle";default:return null}}_getYTickTextTranslate(e,n=M.Left){const r=this._axisRawBBox.width-9;switch(e){case ct.Left:return n===M.Left?r*-1:0;case ct.Right:return n===M.Left?0:r;case ct.Center:return n===M.Left?r*-.5:r*.5;default:return 0}}}vl.selectors=fm;var gt;(function(t){t.Circle="circle",t.Cross="cross",t.Diamond="diamond",t.Square="square",t.Star="star",t.Triangle="triangle",t.Wye="wye"})(gt||(gt={}));const dm={[gt.Circle]:Qa,[gt.Cross]:q0,[gt.Diamond]:Z0,[gt.Square]:j0,[gt.Star]:tg,[gt.Triangle]:eg,[gt.Wye]:ig},et=Object.assign(Object.assign({},gt),{Line:"line"});var Hn;(function(t){t.Horizontal="horizontal",t.Vertical="vertical"})(Hn||(Hn={}));const pm={items:[],labelClassName:"",onLegendItemClick:void 0,labelFontSize:null,labelMaxWidth:null,bulletSize:null,bulletShape:t=>{var e;return(e=t.shape)!==null&&e!==void 0?e:et.Circle},orientation:Hn.Horizontal,renderIntoProvidedDomNode:!1},ki=Le*3,gm={[et.Circle]:Math.PI/4,[et.Cross]:5/9,[et.Diamond]:Math.sqrt(3)/6,[et.Square]:1,[et.Star]:.3,[et.Triangle]:Math.sqrt(3)/4,[et.Wye]:5/11};function mm(t){t.each((e,n,i)=>{j(i[n]).append("svg").attr("width","100%").attr("height","100%").append("path")})}function vm(t,e,n){t.each((i,r,o)=>{const s=ar(i,e.bulletShape,r),a=hn(i,n,r),l=ki,c=s===et.Line?ki/2.5:ki,u=j(o[r]).select("svg").attr("viewBox",`0 0 ${l} ${c}`).select("path").attr("stroke",a),f=i.inactive?"var(--vis-legend-bullet-inactive-opacity)":1;if(s===et.Line)u.attr("d",`M0,${c/2} L${l/2},${c/2} L${l},${c/2}`).attr("transform",null).style("opacity",f).style("stroke-width","3px").style("fill",null).style("fill-opacity",null).style("marker-start","none").style("marker-end","none");else{const d=rg().type(dm[s]).size(l*c*gm[s]),g=(l-2)/l;let p=c/2;switch(s){case et.Triangle:p+=c/8;break;case et.Star:p+=c/16;break;case et.Wye:p-=c/16;break}u.attr("d",d).attr("transform",`translate(${l/2}, ${Math.round(p)}) scale(${g})`).style("stroke-width","1px").style("opacity",null).style("fill",a).style("fill-opacity",f)}})}const Ur=z`
|
|
252
|
-
label: bullet-legend-component;
|
|
253
|
-
`,_m=Ve`
|
|
254
|
-
:root {
|
|
255
|
-
// Undefined by default to allow proper fallback to var(--vis-font-family)
|
|
256
|
-
/* --vis-legend-font-family: */
|
|
257
|
-
|
|
258
|
-
--vis-legend-label-color: #6c778c;
|
|
259
|
-
--vis-legend-label-max-width: 300px;
|
|
260
|
-
--vis-legend-label-font-size: 12px;
|
|
261
|
-
--vis-legend-bullet-size: 9px;
|
|
262
|
-
--vis-legend-bullet-inactive-opacity: 0.15;
|
|
263
|
-
--vis-legend-item-spacing: 20px;
|
|
264
|
-
--vis-legend-vertical-item-spacing: 5px;
|
|
265
|
-
--vis-legend-bullet-label-spacing: 8px;
|
|
266
|
-
|
|
267
|
-
--vis-dark-legend-label-color: #eee;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
body.theme-dark ${`.${Ur}`} {
|
|
271
|
-
--vis-legend-label-color: var(--vis-dark-legend-label-color);
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
body.theme-patterns {
|
|
275
|
-
--vis-legend-bullet-size: 14px;
|
|
276
|
-
}
|
|
277
|
-
`,vn=z`
|
|
278
|
-
label: legendItem;
|
|
279
|
-
display: inline-flex;
|
|
280
|
-
align-items: center;
|
|
281
|
-
font-family: var(--vis-legend-font-family, var(--vis-font-family));
|
|
282
|
-
margin-right: var(--vis-legend-item-spacing);
|
|
283
|
-
white-space: nowrap;
|
|
284
|
-
cursor: default;
|
|
285
|
-
user-select: none;
|
|
286
|
-
max-width: min-content;
|
|
287
|
-
`,_l=z`
|
|
288
|
-
label: legendItemVertical;
|
|
289
|
-
display: flex;
|
|
290
|
-
margin-top: var(--vis-legend-vertical-item-spacing);
|
|
291
|
-
`,yl=z`
|
|
292
|
-
cursor: pointer;
|
|
293
|
-
`,tr=z`
|
|
294
|
-
label: legendItemLabel;
|
|
295
|
-
font-size: var(--vis-legend-label-font-size);
|
|
296
|
-
display: inline-block;
|
|
297
|
-
vertical-align: middle;
|
|
298
|
-
color: var(--vis-legend-label-color);
|
|
299
|
-
max-width: var(--vis-legend-label-max-width);
|
|
300
|
-
text-overflow: ellipsis;
|
|
301
|
-
overflow: hidden;
|
|
302
|
-
white-space: nowrap;
|
|
303
|
-
`,er=z`
|
|
304
|
-
flex: 0 0 auto;
|
|
305
|
-
label: legendItemBullet;
|
|
306
|
-
margin-right: var(--vis-legend-bullet-label-spacing);
|
|
307
|
-
height: var(--vis-legend-bullet-size);
|
|
308
|
-
width: var(--vis-legend-bullet-size);
|
|
309
|
-
|
|
310
|
-
svg {
|
|
311
|
-
display: block;
|
|
312
|
-
}
|
|
313
|
-
`,ym=Object.freeze(Object.defineProperty({__proto__:null,bullet:er,clickable:yl,item:vn,itemVertical:_l,label:tr,root:Ur,variables:_m},Symbol.toStringTag,{value:"Module"}));class xl{constructor(e,n){this._defaultConfig=pm,this.config=this._defaultConfig,this._colorAccessor=i=>i.color,this._container=e,this.div=n!=null&&n.renderIntoProvidedDomNode?j(this._container):j(this._container).append("div"),this.div.classed(Ur,!0),this.element=this.div.node(),n&&this.update(n)}update(e){this.prevConfig=this.config,this.config=Wt(this._defaultConfig,e),this.render()}render(){const{config:e}=this,n=this.div.selectAll(`.${vn}`).data(e.items),i=n.enter().append("div").on("click",this._onItemClick.bind(this)),r=i.merge(n);r.attr("class",o=>{var s;return`${vn} ${(s=o.className)!==null&&s!==void 0?s:""}`}).classed(_l,e.orientation===Hn.Vertical).classed(yl,o=>!!e.onLegendItemClick&&this._isItemClickable(o)).attr("title",o=>o.name).style("display",o=>o.hidden?"none":null),i.append("span").attr("class",er).call(mm),r.select(`.${er}`).style("width",e.bulletSize).style("height",e.bulletSize).style("box-sizing","content-box").call(vm,this.config,this._colorAccessor),i.append("span").attr("class",tr).classed(e.labelClassName,!0).style("max-width",e.labelMaxWidth).style("font-size",e.labelFontSize),r.select(`.${tr}`).text(o=>o.name),n.exit().remove()}_isItemClickable(e){return e.pointer===void 0?!0:e.pointer}_onItemClick(e,n){const{config:{onLegendItemClick:i}}=this,o=this.div.selectAll(`.${vn}`).nodes().indexOf(e.currentTarget);i&&i(n,o)}destroy(){this.element!==this._container&&this.div.remove()}}xl.selectors=ym;const bl=Symbol("componentAccessorKey"),wl=Symbol("tooltipAccessorKey"),xm=Symbol("crosshairAccessorKey"),kl=Symbol("axisAccessorKey"),bm=Symbol("annotationsAccessorKey");function si(t,e){return Ee(t,e)}function qe(t){const e=m.getCurrentInstance(),n=e.attrs;return m.computed(()=>{const i={},r=(e==null?void 0:e.vnode.props)??{};return Object.keys(r).forEach(o=>{i[m.camelize(o)]=t[m.camelize(o)]}),{...i,...n}})}const wm=m.defineComponent({__name:"index",props:{components:{},xScale:{type:[Object,Function]},xDomain:{},xDomainMinConstraint:{},xDomainMaxConstraint:{},xRange:{},yScale:{type:[Object,Function]},yDomain:{},yDomainMinConstraint:{},yDomainMaxConstraint:{},yRange:{},yDirection:{},xAxis:{},yAxis:{},autoMargin:{type:Boolean},tooltip:{},crosshair:{},preventEmptyDomain:{type:[Boolean,null]},scaleByDomain:{type:Boolean},annotations:{},duration:{},margin:{},padding:{},sizing:{},width:{},height:{},svgDefs:{},ariaLabel:{},data:{}},setup(t,{expose:e}){const n=t,{data:i}=m.toRefs(n),r=qe(n),o=m.ref(),s=m.reactive({components:[],annotations:void 0,crosshair:void 0,tooltip:void 0,xAxis:void 0,yAxis:void 0}),a=m.ref();return m.watch(i,()=>{o.value&&o.value.setData(i.value,!0)}),m.watchEffect(()=>{var l;s.components.map(c=>c.config),(l=o.value)==null||l.updateContainer({...m.toRaw(r.value),...m.toRaw(s)})}),m.onMounted(()=>{a.value&&(o.value=new D0(a.value,{...m.toRaw(s)},i.value))}),m.onUnmounted(()=>{var l;return(l=o.value)==null?void 0:l.destroy()}),m.provide(bl,{data:i,update:l=>s.components=[...s.components,l],destroy:()=>{var l;return s.components=(l=s.components)==null?void 0:l.filter(c=>!c.isDestroyed())}}),m.provide(kl,{data:i,update:l=>s[`${l.config.type}Axis`]=l,destroy:l=>{s[`${l}Axis`]=void 0}}),m.provide(xm,{data:i,update:l=>s.crosshair=l,destroy:()=>{s.crosshair=void 0}}),m.provide(wl,{data:i,update:l=>s.tooltip=l,destroy:()=>{s.tooltip=void 0}}),m.provide(bm,{data:i,update:l=>s.annotations=l,destroy:()=>{s.annotations=void 0}}),e({component:o}),(l,c)=>(m.openBlock(),m.createElementBlock("div",{"data-vis-xy-container":"",ref_key:"elRef",ref:a,class:"unovis-xy-container"},[m.renderSlot(l.$slots,"default")],512))}}),km={"data-vis-axis":""},bs=m.defineComponent({__name:"index",props:{position:{},type:{},fullSize:{type:Boolean},label:{},labelFontSize:{},labelMargin:{},labelColor:{},gridLine:{type:Boolean},tickLine:{type:Boolean},domainLine:{type:Boolean},minMaxTicksOnly:{type:Boolean},minMaxTicksOnlyWhenWidthIsLess:{},tickFormat:{type:Function},tickValues:{},numTicks:{},tickTextFitMode:{},tickTextWidth:{},tickTextSeparator:{},tickTextForceWordBreak:{type:Boolean},tickTextTrimType:{},tickTextFontSize:{},tickTextAlign:{},tickTextColor:{},tickTextAngle:{},tickTextHideOverlapping:{type:Boolean},tickPadding:{},x:{},y:{},id:{type:Function},color:{},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=m.inject(kl),i=t,r=m.computed(()=>n.data.value??i.data),o=qe(i),s=m.ref();return m.onMounted(()=>{m.nextTick(()=>{var a;s.value=new vl(o.value),(a=s.value)==null||a.setData(r.value),n.update(s.value)})}),m.onUnmounted(()=>{var a;(a=s.value)==null||a.destroy(),n.destroy(i.type)}),m.watch(o,(a,l)=>{var c;si(a,l)||(c=s.value)==null||c.setConfig(o.value)}),m.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(m.openBlock(),m.createElementBlock("div",km))}}),Tm={"data-vis-component":""},Sm=m.defineComponent({__name:"index",props:{color:{},curveType:{},lineWidth:{},lineDashArray:{},fallbackValue:{},highlightOnHover:{type:Boolean},cursor:{},interpolateMissingData:{type:Boolean},x:{},y:{},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=m.inject(bl),i=t,r=m.computed(()=>n.data.value??i.data),o=qe(i),s=m.ref();return m.onMounted(()=>{m.nextTick(()=>{var a;s.value=new ri(o.value),(a=s.value)==null||a.setData(r.value),n.update(s.value)})}),m.onUnmounted(()=>{var a;(a=s.value)==null||a.destroy(),n.destroy()}),m.watch(o,(a,l)=>{var c;si(a,l)||(c=s.value)==null||c.setConfig(o.value)}),m.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(m.openBlock(),m.createElementBlock("div",Tm))}}),Cm={"data-vis-tooltip":""},Mm=m.defineComponent({__name:"index",props:{components:{},container:{},followCursor:{type:Boolean},allowHover:{type:Boolean},horizontalPlacement:{},horizontalShift:{},verticalPlacement:{},verticalShift:{},triggers:{},attributes:{},className:{},data:{}},setup(t,{expose:e}){const n=m.inject(wl),i=qe(t),r=m.ref();return m.onMounted(()=>{m.nextTick(()=>{r.value=new Ya(i.value),n.update(r.value)})}),m.onUnmounted(()=>{var o;(o=r.value)==null||o.destroy(),n.destroy()}),m.watch(i,(o,s)=>{var a;si(o,s)||(a=r.value)==null||a.setConfig(i.value)}),e({component:r}),(o,s)=>(m.openBlock(),m.createElementBlock("div",Cm))}}),Am=m.defineComponent({__name:"index",props:{items:{},labelClassName:{},onLegendItemClick:{type:Function},labelFontSize:{},labelMaxWidth:{},bulletSize:{},bulletShape:{},orientation:{},renderIntoProvidedDomNode:{type:Boolean},data:{}},setup(t,{expose:e}){const n=t;m.computed(()=>n.data);const i=qe(n),r=m.ref(),o=m.ref();return m.onMounted(()=>{m.nextTick(()=>{o.value&&(r.value=new xl(o.value,{...i.value,renderIntoProvidedDomNode:!0}))})}),m.onUnmounted(()=>{var s;(s=r.value)==null||s.destroy()}),m.watch(i,(s,a)=>{var l;si(s,a)||(l=r.value)==null||l.update(i.value)}),e({component:r}),(s,a)=>(m.openBlock(),m.createElementBlock("div",{"data-vis-bullet-legend":"",ref_key:"elRef",ref:o},null,512))}});(function(){try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".unovis-xy-container,.unovis-single-container{display:block;position:relative;width:100%}[data-vis-leaflet-map],[data-vis-leaflet-flow-map]{display:block;position:relative}[data-vis-bullet-legend]{display:block}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();const $m={class:"flex items center justify-end"},Em=m.defineComponent({__name:"LineChart",props:{data:{},height:{},xLabel:{},yLabel:{},categories:{},xFormatter:{type:Function},yFormatter:{type:Function},curveType:{},yNumTicks:{},xNumTicks:{},paginationPoisition:{}},setup(t){const e=t,n=i=>Object.values(e.categories)[i].color;return(i,r)=>(m.openBlock(),m.createElementBlock("div",{class:m.normalizeClass(["space-y-4 flex flex-col",{"flex-col-reverse":e.paginationPoisition==="top"}])},[m.createVNode(m.unref(wm),{data:i.data,height:i.height},{default:m.withCtx(()=>[m.createVNode(m.unref(Mm),{"horizontal-placement":m.unref(M).Right,"vertical-placement":m.unref(M).Top},null,8,["horizontal-placement","vertical-placement"]),(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(Object.keys(e.categories),(o,s)=>(m.openBlock(),m.createBlock(m.unref(Sm),{key:s,x:(a,l)=>l,y:a=>a[o],color:n(s),"curve-type":i.curveType??m.unref(exports.CurveType).MonotoneX},null,8,["x","y","color","curve-type"]))),128)),m.createVNode(m.unref(bs),{type:"x","tick-format":i.xFormatter,"num-ticks":i.xNumTicks??4,label:i.xLabel,"label-margin":8,"domain-line":!1,"grid-line":!1},null,8,["tick-format","num-ticks","label"]),m.createVNode(m.unref(bs),{type:"y","num-ticks":i.yNumTicks??4,"tick-format":i.yFormatter,label:i.yLabel,"domain-line":!1},null,8,["num-ticks","tick-format","label"])]),_:1},8,["data","height"]),m.createElementVNode("div",$m,[m.createVNode(m.unref(Am),{items:Object.values(i.categories)},null,8,["items"])])],2))}});var Tl=(t=>(t.Top="top",t.Bottom="bottom",t))(Tl||{});const Nm={class:"space-y-2"},Om={class:"space-y-2"},Dm={class:"text-gray-500 mb-1"},Rm={class:"text-xl dark:text-white font-bold"},Fm={class:"flex items-center justify-between text-sm font-medium dark:text-gray-500 mt-2"},zm={class:"dark:bg-white/5 bg-gray-100 rounded-full h-3"},Pm=m.defineComponent({__name:"Progress",props:{label:{},value:{},unit:{},progress:{},total:{},color:{}},setup(t){const e=t,n=m.computed(()=>(e.progress/e.total*100).toFixed(1)),i=m.computed(()=>`${e.progress/e.total*100}%`);return(r,o)=>(m.openBlock(),m.createElementBlock("div",Nm,[m.createElementVNode("div",Om,[m.createElementVNode("p",Dm,m.toDisplayString(r.label),1),m.createElementVNode("h2",Rm,m.toDisplayString(r.value),1)]),m.createElementVNode("div",Fm,[m.createElementVNode("div",null,m.toDisplayString(n.value)+"%",1),m.createElementVNode("div",null,m.toDisplayString(r.progress)+" of "+m.toDisplayString(r.total)+m.toDisplayString(r.unit),1)]),m.createElementVNode("div",zm,[m.createElementVNode("div",{class:"rounded-full h-full",style:m.normalizeStyle({width:i.value,backgroundColor:r.color})},null,4)])]))}}),Lm={class:"ring ring-border divide-y divide-border rounded-xl shadow-sm"},Bm={class:"flex items-center justify-between p-4"},Im={class:"flex items-center gap-2"},Um={class:"font-medium"},Hm={class:"text-sm dark:text-gray-400"},Vm={class:"p-4"},Wm=m.defineComponent({__name:"Status",setup(t){const e=m.ref("example.com"),n=m.ref("99.9% uptime"),i=m.ref([{hour:0,status:"online"},{hour:1,status:"online"},{hour:2,status:"online"},{hour:3,status:"online"},{hour:4,status:"online"},{hour:5,status:"online"},{hour:6,status:"online"},{hour:7,status:"online"},{hour:8,status:"online"},{hour:9,status:"online"},{hour:10,status:"online"},{hour:11,status:"offline"},{hour:12,status:"online"},{hour:13,status:"online"},{hour:14,status:"online"},{hour:15,status:"online"},{hour:16,status:"online"},{hour:17,status:"online"},{hour:18,status:"online"},{hour:19,status:"online"},{hour:20,status:"online"},{hour:21,status:"online"},{hour:22,status:"online"},{hour:23,status:"online"},{hour:0,status:"online"},{hour:1,status:"online"},{hour:2,status:"online"},{hour:3,status:"online"},{hour:4,status:"online"},{hour:5,status:"online"},{hour:6,status:"online"},{hour:7,status:"online"},{hour:8,status:"online"},{hour:9,status:"online"},{hour:10,status:"online"},{hour:11,status:"online"},{hour:12,status:"online"},{hour:13,status:"online"},{hour:14,status:"online"},{hour:15,status:"online"},{hour:16,status:"online"},{hour:17,status:"online"},{hour:18,status:"online"},{hour:19,status:"online"},{hour:20,status:"online"},{hour:21,status:"online"},{hour:22,status:"online"},{hour:23,status:"online"},{hour:0,status:"online"},{hour:1,status:"online"}]);return(r,o)=>(m.openBlock(),m.createElementBlock("div",Lm,[m.createElementVNode("div",Bm,[m.createElementVNode("div",Im,[o[0]||(o[0]=m.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6 text-primary"},[m.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})],-1)),m.createElementVNode("span",Um,m.toDisplayString(e.value),1)]),m.createElementVNode("span",Hm,m.toDisplayString(n.value),1)]),m.createElementVNode("div",Vm,[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(i.value,(s,a)=>(m.openBlock(),m.createElementBlock("div",{key:a,class:m.normalizeClass(["w-2.5 h-8 first:rounded-tl first:rounded-bl last:rounded-tr last:rounded-br ml-[3px] inline-block",s.status==="online"?"bg-primary":"bg-white"])},null,2))),128))])]))}}),Ym={class:"flex flex-col"},Xm={class:"flex items-center mr-2 mt-2"},qm={class:"font-semibold capitalize text-white/75"},Gm={class:"flex items-center gap-2"},Zm={class:"font-normal"},jm=m.defineComponent({__name:"Tooltip",props:{data:{},categories:{}},setup(t){function e(i){var r;return((r=n.categories[i])==null?void 0:r.color)??"#f00"}const n=t;return(i,r)=>(m.openBlock(),m.createElementBlock("div",Ym,[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(Object.entries(i.data),([o,s])=>{var a;return m.openBlock(),m.createElementBlock(m.Fragment,{key:o},[m.createElementVNode("div",Xm,[m.createElementVNode("span",qm,m.toDisplayString(o)+":",1)]),m.createElementVNode("div",Gm,[(a=n.categories[o])!=null&&a.color?(m.openBlock(),m.createElementBlock("span",{key:0,style:m.normalizeStyle({backgroundColor:e(o)}),class:"w-2 h-2"},null,4)):m.createCommentVNode("",!0),m.createElementVNode("span",Zm,m.toDisplayString(s),1)])],64)}),128))]))}});exports.LineChart=Em;exports.PaginationPosition=Tl;exports.Progress=Pm;exports.Status=Wm;exports.Tooltip=jm;
|
|
191
|
+
`,vp=Object.freeze(Object.defineProperty({__proto__:null,axis:za,globalStyles:mp,grid:Ba,hideDomain:vr,hideTickLine:mr,label:Di,root:La,tick:Ia,tickLabel:Pa,tickLabelHideable:Ua},Symbol.toStringTag,{value:"Module"}));class Ha extends wa{constructor(e){super(),this._defaultConfig=_p,this.config=this._defaultConfig,this._defaultNumTicks=3,this.events={},e&&this.setConfig(e),this.axisGroup=this.g.append("g"),this.gridGroup=this.g.append("g").attr("class",Ba)}preRender(){const{config:e}=this,n=this.g.append("g").attr("opacity",0);this._renderAxis(n,0),this._axisRawBBox=n.node().getBBox(),e.tickTextAlign&&this._alignTickLabels(),this._renderAxisLabel(n),this._axisSizeBBox=this._getAxisSize(n),this._requiredMargin=this._getRequiredMargin(this._axisSizeBBox),n.remove()}getPosition(){const{config:{type:e,position:n}}=this;return n??(e===F.X?E.Bottom:E.Left)}_getAxisSize(e){return e.node().getBBox()}_getRequiredMargin(e=this._axisSizeBBox){const{config:{type:n,position:i}}=this;switch(n){case F.X:{const o=this._axisSizeBBox.x+this._axisSizeBBox.width,s=this._axisSizeBBox.x<0?Math.abs(this._axisSizeBBox.x):0,a=o-this._width>1?o-this._width:0;switch(i){case E.Top:return{top:e.height,left:s,right:a};case E.Bottom:default:return{bottom:e.height,left:s,right:a}}}case F.Y:{const r=e.height>this._height?(e.height-this._height)/2:0,o=r,s=r;switch(i){case E.Right:return{right:e.width,top:o,bottom:s};case E.Left:default:return{left:e.width,top:o,bottom:s}}}}}getRequiredMargin(){return this._requiredMargin}getOffset(e){const{config:{type:n,position:i}}=this;switch(n){case F.X:switch(i){case E.Top:return{top:e.top,left:e.left};case E.Bottom:default:return{top:e.top+this._height,left:e.left}}case F.Y:switch(i){case E.Right:return{top:e.top,left:e.left+this._width};case E.Left:default:return{top:e.top,left:e.left}}}}_render(e=this.config.duration,n=this.axisGroup){const{config:i}=this;if(this._renderAxis(n,e),this._renderAxisLabel(n),i.gridLine){const r=this._buildGrid().tickFormat(()=>"");r.tickValues(this._getConfiguredTickValues()),this.gridGroup.selectAll("*").interrupt(),$t(this.gridGroup,e).call(r).style("opacity",1)}else $t(this.gridGroup,e).style("opacity",0);i.tickTextAlign&&this._alignTickLabels(),this._resolveTickLabelOverlap(n)}_buildAxis(){const{config:{type:e,position:n,tickPadding:i}}=this,r=this._getNumTicks();switch(e){case F.X:switch(n){case E.Top:return Go(this.xScale).ticks(r).tickPadding(i);case E.Bottom:default:return jo(this.xScale).ticks(r).tickPadding(i)}case F.Y:switch(n){case E.Right:return Zo(this.yScale).ticks(r).tickPadding(i);case E.Left:default:return Qo(this.yScale).ticks(r).tickPadding(i)}}}_buildGrid(){const{config:{type:e,position:n}}=this,i=this._getNumTicks();switch(e){case F.X:switch(n){case E.Top:return Go(this.xScale).ticks(i*2).tickSize(-this._height).tickSizeOuter(0);case E.Bottom:default:return jo(this.xScale).ticks(i*2).tickSize(-this._height).tickSizeOuter(0)}case F.Y:switch(n){case E.Right:return Zo(this.yScale).ticks(i*2).tickSize(-this._width).tickSizeOuter(0);case E.Left:default:return Qo(this.yScale).ticks(i*2).tickSize(-this._width).tickSizeOuter(0)}}}_renderAxis(e=this.axisGroup,n=this.config.duration){const{config:i}=this,r=this._buildAxis(),o=this._getConfiguredTickValues()||r.scale().ticks(this._getNumTicks());r.tickValues(o),e.selectAll("*").interrupt(),$t(e,n).call(r);const s=e.selectAll("g.tick");s.classed(Ia,!0).style("font-size",i.tickTextFontSize);const a=e.selectAll("g.tick > text").filter(c=>o.some(u=>Te(c,u))).classed(Pa,!0).classed(Ua,!!i.tickTextHideOverlapping).style("fill",i.tickTextColor);if(a.nodes().forEach(c=>Gi(c)),a.each((c,u,f)=>{var l,h;let d=(h=(l=i.tickFormat)===null||l===void 0?void 0:l.call(i,c,u,o))!==null&&h!==void 0?h:`${c}`;const p=f[u],g=i.tickTextWidth||(i.type===F.X?this._containerWidth/(s.size()+1):this._containerWidth/5),m=getComputedStyle(p),y=Number.parseFloat(m.fontSize),x=m.fontFamily,v={verticalAlign:i.type===F.X?zt.Top:zt.Middle,width:g,textRotationAngle:i.tickTextAngle,separator:i.tickTextSeparator,wordBreak:i.tickTextForceWordBreak};if(i.tickTextFitMode===$n.Trim){const k=Nt(p).text(d);up(k,g,i.tickTextTrimType,!0,y,.58),d=Nt(p).text()}pp(p,{text:d,fontFamily:x,fontSize:y},v)}),e.classed(za,!0).classed(mr,!i.tickLine).classed(vr,!i.domainLine),i.fullSize){const c=this._getFullDomainPath(0);$t(e.select(".domain"),n).attr("d",c)}}_resolveTickLabelOverlap(e=this.axisGroup){const{config:n}=this,i=e.selectAll("g.tick > text");if(!n.tickTextHideOverlapping){i.style("opacity",null);return}cancelAnimationFrame(this._collideTickLabelsAnimFrameId),this._collideTickLabelsAnimFrameId=requestAnimationFrame(()=>{this._collideTickLabels(i)})}_collideTickLabels(e){e.each((i,r,o)=>{const s=o[r];s._visible=!0});const n=3;for(let i=0;i<n;i+=1)e.each((r,o,s)=>{const a=s[o];if(!a._visible)return;const u=a.getBoundingClientRect();for(let f=o+1;f<s.length;f+=1){if(o===f)continue;const l=s[f];if(l._visible){const d=l.getBoundingClientRect();if(hf(u,d,-5)){l._visible=!1;break}}}});e.each((i,r,o)=>{const s=o[r];Nt(s).style("opacity",s._visible?1:0)})}_getNumTicks(){const{config:{type:e,numTicks:n}}=this;if(n)return n;if(e===F.X){const i=this.xScale.range(),r=i[1]-i[0];return Math.floor(r/175)}if(e===F.Y){const i=this.yScale.range(),r=Math.abs(i[0]-i[1]);return Math.pow(r,.85)/25}return this._defaultNumTicks}_getConfiguredTickValues(){const{config:e}=this,n=e.type===F.X?this.xScale:this.yScale,i=n==null?void 0:n.domain();return e.tickValues?e.tickValues.filter(r=>r>=i[0]&&r<=i[1]):e.minMaxTicksOnly||e.type===F.X&&this._width<e.minMaxTicksOnlyWhenWidthIsLess?i:null}_getFullDomainPath(e=0){const{config:{type:n}}=this;switch(n){case F.X:return`M0.5, ${e} V0.5 H${this._width+.5} V${e}`;case F.Y:return`M${-e}, ${this._height+.5} H0.5 V0.5 H${-e}`}}_renderAxisLabel(e=this.axisGroup){var n;const{type:i,label:r,labelMargin:o,labelFontSize:s}=this.config;e.selectAll(`.${Di}`).remove();const a=this.getPosition(),{width:c,height:u}=(n=this._axisRawBBox)!==null&&n!==void 0?n:e.node().getBBox(),f=i===F.X?this._width/2:Math.pow(-1,+(a===E.Left))*c,l=i===F.X?Math.pow(-1,+(a===E.Top))*u:this._height/2,h=i===F.X?0:Math.pow(-1,+(a===E.Left))*o,d=i===F.X?Math.pow(-1,+(a===E.Top))*o:0,p=i===F.Y?-90:0;e.append("text").attr("class",Di).text(r).attr("dy",`${this._getLabelDY()}em`).attr("transform",`translate(${f+h},${l+d}) rotate(${p})`).style("font-size",s).style("fill",this.config.labelColor)}_getLabelDY(){const{type:e,position:n}=this.config;switch(e){case F.X:switch(n){case E.Top:return 0;case E.Bottom:default:return .75}case F.Y:switch(n){case E.Right:return .75;case E.Left:default:return-.25}}}_alignTickLabels(){const{config:{type:e,tickTextAlign:n,tickTextAngle:i,position:r}}=this,o=this.g.selectAll("g.tick > text"),s=this._getTickTextAnchor(n),a=e===F.X?0:this._getYTickTextTranslate(n,r),c=i?`translate(${a},0) rotate(${i})`:`translate(${a},0)`;o.attr("transform",c).attr("text-anchor",s)}_getTickTextAnchor(e){switch(e){case ot.Left:return"start";case ot.Right:return"end";case ot.Center:return"middle";default:return null}}_getYTickTextTranslate(e,n=E.Left){const r=this._axisRawBBox.width-9;switch(e){case ot.Left:return n===E.Left?r*-1:0;case ot.Right:return n===E.Left?0:r;case ot.Center:return n===E.Left?r*-.5:r*.5;default:return 0}}}Ha.selectors=vp;const Va=Symbol("componentAccessorKey"),yp=Symbol("tooltipAccessorKey"),xp=Symbol("crosshairAccessorKey"),Ya=Symbol("axisAccessorKey"),wp=Symbol("annotationsAccessorKey");function Wa(t,e){return Te(t,e)}function yr(t){const e=_.getCurrentInstance(),n=e.attrs;return _.computed(()=>{const i={},r=(e==null?void 0:e.vnode.props)??{};return Object.keys(r).forEach(o=>{i[_.camelize(o)]=t[_.camelize(o)]}),{...i,...n}})}const bp=_.defineComponent({__name:"index",props:{components:{},xScale:{type:[Object,Function]},xDomain:{},xDomainMinConstraint:{},xDomainMaxConstraint:{},xRange:{},yScale:{type:[Object,Function]},yDomain:{},yDomainMinConstraint:{},yDomainMaxConstraint:{},yRange:{},yDirection:{},xAxis:{},yAxis:{},autoMargin:{type:Boolean},tooltip:{},crosshair:{},preventEmptyDomain:{type:[Boolean,null]},scaleByDomain:{type:Boolean},annotations:{},duration:{},margin:{},padding:{},sizing:{},width:{},height:{},svgDefs:{},ariaLabel:{},data:{}},setup(t,{expose:e}){const n=t,{data:i}=_.toRefs(n),r=yr(n),o=_.ref(),s=_.reactive({components:[],annotations:void 0,crosshair:void 0,tooltip:void 0,xAxis:void 0,yAxis:void 0}),a=_.ref();return _.watch(i,()=>{o.value&&o.value.setData(i.value,!0)}),_.watchEffect(()=>{var c;s.components.map(u=>u.config),(c=o.value)==null||c.updateContainer({..._.toRaw(r.value),..._.toRaw(s)})}),_.onMounted(()=>{a.value&&(o.value=new tg(a.value,{..._.toRaw(s)},i.value))}),_.onUnmounted(()=>{var c;return(c=o.value)==null?void 0:c.destroy()}),_.provide(Va,{data:i,update:c=>s.components=[...s.components,c],destroy:()=>{var c;return s.components=(c=s.components)==null?void 0:c.filter(u=>!u.isDestroyed())}}),_.provide(Ya,{data:i,update:c=>s[`${c.config.type}Axis`]=c,destroy:c=>{s[`${c}Axis`]=void 0}}),_.provide(xp,{data:i,update:c=>s.crosshair=c,destroy:()=>{s.crosshair=void 0}}),_.provide(yp,{data:i,update:c=>s.tooltip=c,destroy:()=>{s.tooltip=void 0}}),_.provide(wp,{data:i,update:c=>s.annotations=c,destroy:()=>{s.annotations=void 0}}),e({component:o}),(c,u)=>(_.openBlock(),_.createElementBlock("div",{"data-vis-xy-container":"",ref_key:"elRef",ref:a,class:"unovis-xy-container"},[_.renderSlot(c.$slots,"default")],512))}}),kp={"data-vis-axis":""},Ko=_.defineComponent({__name:"index",props:{position:{},type:{},fullSize:{type:Boolean},label:{},labelFontSize:{},labelMargin:{},labelColor:{},gridLine:{type:Boolean},tickLine:{type:Boolean},domainLine:{type:Boolean},minMaxTicksOnly:{type:Boolean},minMaxTicksOnlyWhenWidthIsLess:{},tickFormat:{type:Function},tickValues:{},numTicks:{},tickTextFitMode:{},tickTextWidth:{},tickTextSeparator:{},tickTextForceWordBreak:{type:Boolean},tickTextTrimType:{},tickTextFontSize:{},tickTextAlign:{},tickTextColor:{},tickTextAngle:{},tickTextHideOverlapping:{type:Boolean},tickPadding:{},x:{},y:{},id:{type:Function},color:{},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=_.inject(Ya),i=t,r=_.computed(()=>n.data.value??i.data),o=yr(i),s=_.ref();return _.onMounted(()=>{_.nextTick(()=>{var a;s.value=new Ha(o.value),(a=s.value)==null||a.setData(r.value),n.update(s.value)})}),_.onUnmounted(()=>{var a;(a=s.value)==null||a.destroy(),n.destroy(i.type)}),_.watch(o,(a,c)=>{var u;Wa(a,c)||(u=s.value)==null||u.setConfig(o.value)}),_.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,c)=>(_.openBlock(),_.createElementBlock("div",kp))}}),Tp={"data-vis-component":""},Sp=_.defineComponent({__name:"index",props:{color:{},curveType:{},lineWidth:{},lineDashArray:{},fallbackValue:{},highlightOnHover:{type:Boolean},cursor:{},interpolateMissingData:{type:Boolean},x:{},y:{},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=_.inject(Va),i=t,r=_.computed(()=>n.data.value??i.data),o=yr(i),s=_.ref();return _.onMounted(()=>{_.nextTick(()=>{var a;s.value=new Vn(o.value),(a=s.value)==null||a.setData(r.value),n.update(s.value)})}),_.onUnmounted(()=>{var a;(a=s.value)==null||a.destroy(),n.destroy()}),_.watch(o,(a,c)=>{var u;Wa(a,c)||(u=s.value)==null||u.setConfig(o.value)}),_.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,c)=>(_.openBlock(),_.createElementBlock("div",Tp))}});(function(){try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".unovis-xy-container,.unovis-single-container{display:block;position:relative;width:100%}[data-vis-leaflet-map],[data-vis-leaflet-flow-map]{display:block;position:relative}[data-vis-bullet-legend]{display:block}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();const Mp=_.defineComponent({__name:"LineChart",props:{data:{},height:{},xLabel:{},yLabel:{},categories:{},xFormatter:{type:Function},yFormatter:{type:Function},curveType:{},yNumTicks:{},xNumTicks:{},paginationPoisition:{}},setup(t){const e=t,n=i=>Object.values(e.categories)[i].color;return(i,r)=>(_.openBlock(),_.createElementBlock("div",{class:_.normalizeClass(["space-y-4 flex flex-col",{"flex-col-reverse":e.paginationPoisition==="top"}])},[_.createVNode(_.unref(bp),{data:i.data,height:i.height},{default:_.withCtx(()=>[(_.openBlock(!0),_.createElementBlock(_.Fragment,null,_.renderList(Object.keys(e.categories),(o,s)=>(_.openBlock(),_.createBlock(_.unref(Sp),{key:s,x:(a,c)=>c,y:a=>a[o],color:n(s),"curve-type":i.curveType??_.unref(exports.CurveType).MonotoneX},null,8,["x","y","color","curve-type"]))),128)),_.createVNode(_.unref(Ko),{type:"x","tick-format":i.xFormatter,"num-ticks":i.xNumTicks??4,label:i.xLabel,"label-margin":8,"domain-line":!1,"grid-line":!1},null,8,["tick-format","num-ticks","label"]),_.createVNode(_.unref(Ko),{type:"y","num-ticks":i.yNumTicks??4,"tick-format":i.yFormatter,label:i.yLabel,"domain-line":!1},null,8,["num-ticks","tick-format","label"])]),_:1},8,["data","height"])],2))}});var Xa=(t=>(t.Top="top",t.Bottom="bottom",t))(Xa||{});const Cp={class:"space-y-2"},Ap={class:"space-y-2"},$p={class:"text-gray-500 mb-1"},Ep={class:"text-xl dark:text-white font-bold"},Np={class:"flex items-center justify-between text-sm font-medium dark:text-gray-500 mt-2"},Op={class:"dark:bg-white/5 bg-gray-100 rounded-full h-3"},Dp=_.defineComponent({__name:"Progress",props:{label:{},value:{},unit:{},progress:{},total:{},color:{}},setup(t){const e=t,n=_.computed(()=>(e.progress/e.total*100).toFixed(1)),i=_.computed(()=>`${e.progress/e.total*100}%`);return(r,o)=>(_.openBlock(),_.createElementBlock("div",Cp,[_.createElementVNode("div",Ap,[_.createElementVNode("p",$p,_.toDisplayString(r.label),1),_.createElementVNode("h2",Ep,_.toDisplayString(r.value),1)]),_.createElementVNode("div",Np,[_.createElementVNode("div",null,_.toDisplayString(n.value)+"%",1),_.createElementVNode("div",null,_.toDisplayString(r.progress)+" of "+_.toDisplayString(r.total)+_.toDisplayString(r.unit),1)]),_.createElementVNode("div",Op,[_.createElementVNode("div",{class:"rounded-full h-full",style:_.normalizeStyle({width:i.value,backgroundColor:r.color})},null,4)])]))}}),Rp={class:"ring ring-border divide-y divide-border rounded-xl shadow-sm"},Fp={class:"flex items-center justify-between p-4"},Lp={class:"flex items-center gap-2"},zp={class:"font-medium"},Bp={class:"text-sm dark:text-gray-400"},Ip={class:"p-4"},Pp=_.defineComponent({__name:"Status",setup(t){const e=_.ref("example.com"),n=_.ref("99.9% uptime"),i=_.ref([{hour:0,status:"online"},{hour:1,status:"online"},{hour:2,status:"online"},{hour:3,status:"online"},{hour:4,status:"online"},{hour:5,status:"online"},{hour:6,status:"online"},{hour:7,status:"online"},{hour:8,status:"online"},{hour:9,status:"online"},{hour:10,status:"online"},{hour:11,status:"offline"},{hour:12,status:"online"},{hour:13,status:"online"},{hour:14,status:"online"},{hour:15,status:"online"},{hour:16,status:"online"},{hour:17,status:"online"},{hour:18,status:"online"},{hour:19,status:"online"},{hour:20,status:"online"},{hour:21,status:"online"},{hour:22,status:"online"},{hour:23,status:"online"},{hour:0,status:"online"},{hour:1,status:"online"},{hour:2,status:"online"},{hour:3,status:"online"},{hour:4,status:"online"},{hour:5,status:"online"},{hour:6,status:"online"},{hour:7,status:"online"},{hour:8,status:"online"},{hour:9,status:"online"},{hour:10,status:"online"},{hour:11,status:"online"},{hour:12,status:"online"},{hour:13,status:"online"},{hour:14,status:"online"},{hour:15,status:"online"},{hour:16,status:"online"},{hour:17,status:"online"},{hour:18,status:"online"},{hour:19,status:"online"},{hour:20,status:"online"},{hour:21,status:"online"},{hour:22,status:"online"},{hour:23,status:"online"},{hour:0,status:"online"},{hour:1,status:"online"}]);return(r,o)=>(_.openBlock(),_.createElementBlock("div",Rp,[_.createElementVNode("div",Fp,[_.createElementVNode("div",Lp,[o[0]||(o[0]=_.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6 text-primary"},[_.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})],-1)),_.createElementVNode("span",zp,_.toDisplayString(e.value),1)]),_.createElementVNode("span",Bp,_.toDisplayString(n.value),1)]),_.createElementVNode("div",Ip,[(_.openBlock(!0),_.createElementBlock(_.Fragment,null,_.renderList(i.value,(s,a)=>(_.openBlock(),_.createElementBlock("div",{key:a,class:_.normalizeClass(["w-2.5 h-8 first:rounded-tl first:rounded-bl last:rounded-tr last:rounded-br ml-[3px] inline-block",s.status==="online"?"bg-primary":"bg-white"])},null,2))),128))])]))}}),Up={class:"flex flex-col"},Hp={class:"flex items-center mr-2 mt-2"},Vp={class:"font-semibold capitalize text-white/75"},Yp={class:"flex items-center gap-2"},Wp={class:"font-normal"},Xp=_.defineComponent({__name:"Tooltip",props:{data:{},categories:{}},setup(t){function e(i){var r;return((r=n.categories[i])==null?void 0:r.color)??"#f00"}const n=t;return(i,r)=>(_.openBlock(),_.createElementBlock("div",Up,[(_.openBlock(!0),_.createElementBlock(_.Fragment,null,_.renderList(Object.entries(i.data),([o,s])=>{var a;return _.openBlock(),_.createElementBlock(_.Fragment,{key:o},[_.createElementVNode("div",Hp,[_.createElementVNode("span",Vp,_.toDisplayString(o)+":",1)]),_.createElementVNode("div",Yp,[(a=n.categories[o])!=null&&a.color?(_.openBlock(),_.createElementBlock("span",{key:0,style:_.normalizeStyle({backgroundColor:e(o)}),class:"w-2 h-2"},null,4)):_.createCommentVNode("",!0),_.createElementVNode("span",Wp,_.toDisplayString(s),1)])],64)}),128))]))}});exports.LineChart=Mp;exports.PaginationPosition=Xa;exports.Progress=Dp;exports.Status=Pp;exports.Tooltip=Xp;
|