vuechrts 0.0.12 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,424 @@
1
+ (function(Ot,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],_):(Ot=typeof globalThis<"u"?globalThis:Ot||self,_(Ot.VueChrts={},Ot.Vue))})(this,function(Ot,_){"use strict";var Di="http://www.w3.org/1999/xhtml";const wo={svg:"http://www.w3.org/2000/svg",xhtml:Di,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)),wo.hasOwnProperty(e)?{space:wo[e],local:t}:t}function gc(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Di&&e.documentElement.namespaceURI===Di?e.createElement(t):e.createElementNS(n,t)}}function pc(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function ko(t){var e=vn(t);return(e.local?pc:gc)(e)}function mc(){}function Oi(t){return t==null?mc:function(){return this.querySelector(t)}}function _c(t){typeof t!="function"&&(t=Oi(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,u=0;u<s;++u)(l=o[u])&&(c=t.call(l,l.__data__,u,o))&&("__data__"in l&&(c.__data__=l.__data__),a[u]=c);return new at(i,this._parents)}function yc(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function vc(){return[]}function So(t){return t==null?vc:function(){return this.querySelectorAll(t)}}function xc(t){return function(){return yc(t.apply(this,arguments))}}function bc(t){typeof t=="function"?t=xc(t):t=So(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 at(i,r)}function To(t){return function(){return this.matches(t)}}function Co(t){return function(e){return e.matches(t)}}var wc=Array.prototype.find;function kc(t){return function(){return wc.call(this.children,t)}}function Sc(){return this.firstElementChild}function Tc(t){return this.select(t==null?Sc:kc(typeof t=="function"?t:Co(t)))}var Cc=Array.prototype.filter;function Mc(){return Array.from(this.children)}function Ac(t){return function(){return Cc.call(this.children,t)}}function $c(t){return this.selectAll(t==null?Mc:Ac(typeof t=="function"?t:Co(t)))}function Ec(t){typeof t!="function"&&(t=To(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 at(i,this._parents)}function Mo(t){return new Array(t.length)}function Nc(){return new at(this._enter||this._groups.map(Mo),this._parents)}function xn(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}xn.prototype={constructor:xn,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 Rc(t){return function(){return t}}function Dc(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 xn(t,o[s]);for(;s<l;++s)(a=e[s])&&(r[s]=a)}function Oc(t,e,n,i,r,o,s){var a,l,c=new Map,u=e.length,f=o.length,h=new Array(u),d;for(a=0;a<u;++a)(l=e[a])&&(h[a]=d=s.call(l,l.__data__,a,e)+"",c.has(d)?r[a]=l:c.set(d,l));for(a=0;a<f;++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 xn(t,o[a]);for(a=0;a<u;++a)(l=e[a])&&c.get(h[a])===l&&(r[a]=l)}function Fc(t){return t.__data__}function zc(t,e){if(!arguments.length)return Array.from(this,Fc);var n=e?Oc:Dc,i=this._parents,r=this._groups;typeof t!="function"&&(t=Rc(t));for(var o=r.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var u=i[c],f=r[c],h=f.length,d=Pc(t.call(u,u&&u.__data__,c,i)),p=d.length,g=a[c]=new Array(p),m=s[c]=new Array(p),y=l[c]=new Array(h);n(u,f,g,m,y,d,e);for(var v=0,x=0,C,S;v<p;++v)if(C=g[v]){for(v>=x&&(x=v+1);!(S=m[x])&&++x<p;);C._next=S||null}}return s=new at(s,i),s._enter=a,s._exit=l,s}function Pc(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Lc(){return new at(this._exit||this._groups.map(Mo),this._parents)}function Bc(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 Ic(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],u=i[l],f=c.length,h=a[l]=new Array(f),d,p=0;p<f;++p)(d=c[p]||u[p])&&(h[p]=d);for(;l<r;++l)a[l]=n[l];return new at(a,this._parents)}function Hc(){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 Uc(t){t||(t=Wc);function e(f,h){return f&&h?t(f.__data__,h.__data__):!f-!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,l=r[o]=new Array(a),c,u=0;u<a;++u)(c=s[u])&&(l[u]=c);l.sort(e)}return new at(r,this._parents).order()}function Wc(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Vc(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Yc(){return Array.from(this)}function Xc(){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 qc(){let t=0;for(const e of this)++t;return t}function Gc(){return!this.node()}function jc(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 Zc(t){return function(){this.removeAttribute(t)}}function Qc(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Jc(t,e){return function(){this.setAttribute(t,e)}}function Kc(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function tu(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function eu(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 nu(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?Qc:Zc:typeof e=="function"?n.local?eu:tu:n.local?Kc:Jc)(n,e))}function Ao(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function iu(t){return function(){this.style.removeProperty(t)}}function ru(t,e,n){return function(){this.style.setProperty(t,e,n)}}function ou(t,e,n){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function su(t,e,n){return arguments.length>1?this.each((e==null?iu:typeof e=="function"?ou:ru)(t,e,n??"")):ye(this.node(),t)}function ye(t,e){return t.style.getPropertyValue(e)||Ao(t).getComputedStyle(t,null).getPropertyValue(e)}function au(t){return function(){delete this[t]}}function lu(t,e){return function(){this[t]=e}}function cu(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function uu(t,e){return arguments.length>1?this.each((e==null?au:typeof e=="function"?cu:lu)(t,e)):this.node()[t]}function $o(t){return t.trim().split(/^|\s+/)}function Fi(t){return t.classList||new Eo(t)}function Eo(t){this._node=t,this._names=$o(t.getAttribute("class")||"")}Eo.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 No(t,e){for(var n=Fi(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function Ro(t,e){for(var n=Fi(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function fu(t){return function(){No(this,t)}}function hu(t){return function(){Ro(this,t)}}function du(t,e){return function(){(e.apply(this,arguments)?No:Ro)(this,t)}}function gu(t,e){var n=$o(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"?du:e?fu:hu)(n,e))}function pu(){this.textContent=""}function mu(t){return function(){this.textContent=t}}function _u(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function yu(t){return arguments.length?this.each(t==null?pu:(typeof t=="function"?_u:mu)(t)):this.node().textContent}function vu(){this.innerHTML=""}function xu(t){return function(){this.innerHTML=t}}function bu(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function wu(t){return arguments.length?this.each(t==null?vu:(typeof t=="function"?bu:xu)(t)):this.node().innerHTML}function ku(){this.nextSibling&&this.parentNode.appendChild(this)}function Su(){return this.each(ku)}function Tu(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Cu(){return this.each(Tu)}function Mu(t){var e=typeof t=="function"?t:ko(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Au(){return null}function $u(t,e){var n=typeof t=="function"?t:ko(t),i=e==null?Au:typeof e=="function"?e:Oi(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function Eu(){var t=this.parentNode;t&&t.removeChild(this)}function Nu(){return this.each(Eu)}function Ru(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Du(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ou(t){return this.select(t?Du:Ru)}function Fu(t){return arguments.length?this.property("__data__",t):this.node().__data__}function zu(t){return function(e){t.call(this,e,this.__data__)}}function Pu(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 Lu(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 Bu(t,e,n){return function(){var i=this.__on,r,o=zu(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 Iu(t,e,n){var i=Pu(t+""),r,o=i.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,u;l<c;++l)for(r=0,u=a[l];r<o;++r)if((s=i[r]).type===u.type&&s.name===u.name)return u.value}return}for(a=e?Bu:Lu,r=0;r<o;++r)this.each(a(i[r],e,n));return this}function Do(t,e,n){var i=Ao(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 Hu(t,e){return function(){return Do(this,t,e)}}function Uu(t,e){return function(){return Do(this,t,e.apply(this,arguments))}}function Wu(t,e){return this.each((typeof e=="function"?Uu:Hu)(t,e))}function*Vu(){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 Oo=[null];function at(t,e){this._groups=t,this._parents=e}function Oe(){return new at([[document.documentElement]],Oo)}function Yu(){return this}at.prototype=Oe.prototype={constructor:at,select:_c,selectAll:bc,selectChild:Tc,selectChildren:$c,filter:Ec,data:zc,enter:Nc,exit:Lc,join:Bc,merge:Ic,selection:Yu,order:Hc,sort:Uc,call:Vc,nodes:Yc,node:Xc,size:qc,empty:Gc,each:jc,attr:nu,style:su,property:uu,classed:gu,text:yu,html:wu,raise:Su,lower:Cu,append:Mu,insert:$u,remove:Nu,clone:Ou,datum:Fu,on:Iu,dispatch:Wu,[Symbol.iterator]:Vu};function et(t){return typeof t=="string"?new at([[document.querySelector(t)]],[document.documentElement]):new at([[t]],Oo)}function Xu(t){let e;for(;e=t.sourceEvent;)t=e;return t}function bn(t,e){if(t=Xu(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 Fe;(function(t){t[t.SVG=0]="SVG",t[t.HTML=1]="HTML"})(Fe||(Fe={}));var Ft;(function(t){t.Fit="fit",t.Extend="extend",t.FitWidth="fit_width"})(Ft||(Ft={}));function ze(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function qu(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function wn(t){let e,n,i;t.length!==2?(e=ze,n=(a,l)=>ze(t(a),l),i=(a,l)=>t(a)-l):(e=t===ze||t===qu?t:Gu,n=t,i=t);function r(a,l,c=0,u=a.length){if(c<u){if(e(l,l)!==0)return u;do{const f=c+u>>>1;n(a[f],l)<0?c=f+1:u=f}while(c<u)}return c}function o(a,l,c=0,u=a.length){if(c<u){if(e(l,l)!==0)return u;do{const f=c+u>>>1;n(a[f],l)<=0?c=f+1:u=f}while(c<u)}return c}function s(a,l,c=0,u=a.length){const f=r(a,l,c,u-1);return f>c&&i(a[f-1],l)>-i(a[f],l)?f-1:f}return{left:r,center:s,right:o}}function Gu(){return 0}function Fo(t){return t===null?NaN:+t}const kn=wn(ze).right;wn(Fo).center;function ju(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 zo extends Map{constructor(e,n=Ju){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(Po(this,e))}has(e){return super.has(Po(this,e))}set(e,n){return super.set(Zu(this,e),n)}delete(e){return super.delete(Qu(this,e))}}function Po({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):n}function Zu({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):(t.set(i,n),n)}function Qu({_intern:t,_key:e},n){const i=e(n);return t.has(i)&&(n=t.get(i),t.delete(i)),n}function Ju(t){return t!==null&&typeof t=="object"?t.valueOf():t}const Ku=Math.sqrt(50),tf=Math.sqrt(10),ef=Math.sqrt(2);function Sn(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>=Ku?10:o>=tf?5:o>=ef?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?Sn(t,e,n*2):[a,l,c]}function zi(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?Sn(e,t,n):Sn(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 Pi(t,e,n){return e=+e,t=+t,n=+n,Sn(t,e,n)[2]}function Li(t,e,n){e=+e,t=+t,n=+n;const i=e<t,r=i?Pi(e,t,n):Pi(t,e,n);return(i?-1:1)*(r<0?1/-r:r)}function Lo(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 Bo(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 nf(t,e,n=Fo){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 rf(t,e){let n=0,i=0;if(e===void 0)for(let r of t)r!=null&&(r=+r)>=r&&(++n,i+=r);else{let r=-1;for(let o of t)(o=e(o,++r,t))!=null&&(o=+o)>=o&&(++n,i+=o)}if(n)return i/n}function*of(t){for(const e of t)yield*e}function sf(t){return Array.from(of(t))}function af(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 lf(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 cf(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,u,f=!1,h=0;function d(){u&&clearTimeout(u)}function p(m){var y=m||{},v=y.upcomingOnly,x=v===void 0?!1:v;d(),f=!x}function g(){for(var m=arguments.length,y=new Array(m),v=0;v<m;v++)y[v]=arguments[v];var x=this,C=Date.now()-h;if(f)return;function S(){h=Date.now(),e.apply(x,y)}function b(){u=void 0}!a&&c&&!u&&S(),d(),c===void 0&&C>t?a?(h=Date.now(),o||(u=setTimeout(c?b:S,t))):S():o!==!0&&(u=setTimeout(c?b:S,c===void 0?t-C:t))}return g.cancel=p,g}const Ct=t=>typeof t=="number",Bi=t=>typeof t=="function",Yt=t=>Array.isArray(t),uf=t=>t instanceof Object,Tn=t=>t.constructor.name!=="Function"&&t.constructor.name!=="Object",Io=t=>uf(t)&&!Yt(t)&&!Bi(t)&&!Tn(t),Pe=(t,e,n=new Set)=>{if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;if(n.has(t))return!0;n.add(t);for(let i=0;i<t.length;i++)if(!Pe(t[i],e[i],n))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;if(Object.keys(t).length!==Object.keys(e).length)return!1;if(n.has(t))return!0;n.add(t);for(const r in t)if(!Pe(t[r],e[r],n))return!1;return!0}return t===e},Ii=t=>t.flat(),Cn=(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):Cn(i,e));return n}if(Tn(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]):Cn(i[o],e),r),n),n}return t},Kt=(t,e,n=new Map)=>{if(!t||!e||t===e)return t;const i=Tn(t)?t:Cn(t);return n.has(e)?n.get(e):(n.set(e,i),Object.keys(e).forEach(r=>{r==="__proto__"||r==="constructor"||(Io(t[r])&&Io(e[r])?i[r]=Kt(t[r],e[r],n):Tn(e)?i[r]=e:i[r]=Cn(e[r]))}),i)},Mn=(t,e,n)=>cf(e,t);function Hi(t,e,n){return Bi(e)?e(t,n):e}function An(t,e,n){return Hi(t,e,n)}function V(t,e,n){return Hi(t,e,n)}function Le(t){return t.filter(e=>e&&!Ct(e))}function zt(t,e,n){return Math.min(Math.max(t,e),n)}function ff(t,...e){if(!t)return[void 0,void 0];if(Yt(e)){let n=0,i=0;return t.forEach((r,o)=>{let s=0,a=0;for(const l of e){const c=V(r,l,o)||0;c>=0?s+=c:a+=c}s>i&&(i=s),a<n&&(n=a)}),[n,i]}}function hf(t,e,...n){const i=[];let r=0,o=0;for(const s of n){const a=V(t,s,e)||0;a>=0?i.push(r+=a):i.push(o+=a)}return i}function df(t,e,n,i){const r=t.map((a,l)=>V(a,e,l)||0),o=n.map((a,l)=>{const c=rf(t,(u,f)=>V(u,a,f)||0);return c===0&&Array.isArray(i)?i[l]:c<0}),s=n.map(()=>[]);return t.forEach((a,l)=>{let c=r[l],u=r[l];n.forEach((f,h)=>{const d=V(a,f,l)||0;o[h]?s[h].push([u,u+=d]):s[h].push([c,c+=d])})}),s.forEach((a,l)=>{a.negative=o[l]}),s.filter(a=>a.negative).forEach((a,l,c)=>{a.ending=l===c.length-1}),s.filter(a=>!a.negative).forEach((a,l,c)=>{a.ending=l===c.length-1}),s}function gf(t,...e){return t?Bo(t,(i,r)=>Bo(e,o=>V(i,o,r))):void 0}function pf(t,...e){return t?Lo(t,(i,r)=>Lo(e,o=>V(i,o,r))):void 0}function Ui(t,...e){return[gf(t,...e),pf(t,...e)]}function mf(t,e,n){if(t.length<=1)return t[0];const i=t.map((s,a)=>V(s,n,a));i.sort((s,a)=>s-a);const r=wn(s=>s).left,o=r(i,e,1,t.length-1);return e-i[o-1]>i[o]-e?t[o]:t[o-1]}function Ho(t,e,n){return t.filter((r,o)=>{const s=V(r,n,o);return s>=e[0]&&s<=e[1]})}var te=[],_f=function(){return te.some(function(t){return t.activeTargets.length>0})},yf=function(){return te.some(function(t){return t.skippedTargets.length>0})},Uo="ResizeObserver loop completed with undelivered notifications.",vf=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:Uo}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=Uo),window.dispatchEvent(t)},Be;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Be||(Be={}));var ee=function(t){return Object.freeze(t)},xf=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,ee(this)}return t}(),Wo=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,ee(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}(),Wi=function(t){return t instanceof SVGElement&&"getBBox"in t},Vo=function(t){if(Wi(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)},Yo=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)},bf=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},Ie=typeof window<"u"?window:{},$n=new WeakMap,Xo=/auto|scroll/,wf=/^tb|vertical/,kf=/msie|trident/i.test(Ie.navigator&&Ie.navigator.userAgent),Mt=function(t){return parseFloat(t||"0")},ve=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new xf((n?e:t)||0,(n?t:e)||0)},qo=ee({devicePixelContentBoxSize:ve(),borderBoxSize:ve(),contentBoxSize:ve(),contentRect:new Wo(0,0,0,0)}),Go=function(t,e){if(e===void 0&&(e=!1),$n.has(t)&&!e)return $n.get(t);if(Vo(t))return $n.set(t,qo),qo;var n=getComputedStyle(t),i=Wi(t)&&t.ownerSVGElement&&t.getBBox(),r=!kf&&n.boxSizing==="border-box",o=wf.test(n.writingMode||""),s=!i&&Xo.test(n.overflowY||""),a=!i&&Xo.test(n.overflowX||""),l=i?0:Mt(n.paddingTop),c=i?0:Mt(n.paddingRight),u=i?0:Mt(n.paddingBottom),f=i?0:Mt(n.paddingLeft),h=i?0:Mt(n.borderTopWidth),d=i?0:Mt(n.borderRightWidth),p=i?0:Mt(n.borderBottomWidth),g=i?0:Mt(n.borderLeftWidth),m=f+c,y=l+u,v=g+d,x=h+p,C=a?t.offsetHeight-x-t.clientHeight:0,S=s?t.offsetWidth-v-t.clientWidth:0,b=r?m+v:0,T=r?y+x:0,O=i?i.width:Mt(n.width)-b-S,N=i?i.height:Mt(n.height)-T-C,H=O+m+S+v,E=N+y+C+x,w=ee({devicePixelContentBoxSize:ve(Math.round(O*devicePixelRatio),Math.round(N*devicePixelRatio),o),borderBoxSize:ve(H,E,o),contentBoxSize:ve(O,N,o),contentRect:new Wo(f,l,O,N)});return $n.set(t,w),w},jo=function(t,e,n){var i=Go(t,n),r=i.borderBoxSize,o=i.contentBoxSize,s=i.devicePixelContentBoxSize;switch(e){case Be.DEVICE_PIXEL_CONTENT_BOX:return s;case Be.BORDER_BOX:return r;default:return o}},Sf=function(){function t(e){var n=Go(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=ee([n.borderBoxSize]),this.contentBoxSize=ee([n.contentBoxSize]),this.devicePixelContentBoxSize=ee([n.devicePixelContentBoxSize])}return t}(),Zo=function(t){if(Vo(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},Tf=function(){var t=1/0,e=[];te.forEach(function(s){if(s.activeTargets.length!==0){var a=[];s.activeTargets.forEach(function(c){var u=new Sf(c.target),f=Zo(c.target);a.push(u),c.lastReportedSize=jo(c.target,c.observedBox),f<t&&(t=f)}),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},Qo=function(t){te.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(r){r.isActive()&&(Zo(r.target)>t?n.activeTargets.push(r):n.skippedTargets.push(r))})})},Cf=function(){var t=0;for(Qo(t);_f();)t=Tf(),Qo(t);return yf()&&vf(),t>0},Vi,Jo=[],Mf=function(){return Jo.splice(0).forEach(function(t){return t()})},Af=function(t){if(!Vi){var e=0,n=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return Mf()}).observe(n,i),Vi=function(){n.textContent="".concat(e?e--:e++)}}Jo.push(t),Vi()},$f=function(t){Af(function(){requestAnimationFrame(t)})},En=0,Ef=function(){return!!En},Nf=250,Rf={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ko=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],ts=function(t){return t===void 0&&(t=0),Date.now()+t},Yi=!1,Df=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=Nf),!Yi){Yi=!0;var i=ts(e);$f(function(){var r=!1;try{r=Cf()}finally{if(Yi=!1,e=i-ts(),!Ef())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,Rf)};document.body?n():Ie.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ko.forEach(function(n){return Ie.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Ko.forEach(function(n){return Ie.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),Xi=new Df,es=function(t){!En&&t>0&&Xi.start(),En+=t,!En&&Xi.stop()},Of=function(t){return!Wi(t)&&!bf(t)&&getComputedStyle(t).display==="inline"},Ff=function(){function t(e,n){this.target=e,this.observedBox=n||Be.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=jo(this.target,this.observedBox,!0);return Of(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),zf=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),Nn=new WeakMap,ns=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},Rn=function(){function t(){}return t.connect=function(e,n){var i=new zf(e,n);Nn.set(e,i)},t.observe=function(e,n,i){var r=Nn.get(e),o=r.observationTargets.length===0;ns(r.observationTargets,n)<0&&(o&&te.push(r),r.observationTargets.push(new Ff(n,i&&i.box)),es(1),Xi.schedule())},t.unobserve=function(e,n){var i=Nn.get(e),r=ns(i.observationTargets,n),o=i.observationTargets.length===1;r>=0&&(o&&te.splice(te.indexOf(i),1),i.observationTargets.splice(r,1),es(-1))},t.disconnect=function(e){var n=this,i=Nn.get(e);i.observationTargets.slice().forEach(function(r){return n.unobserve(e,r.target)}),i.activeTargets.splice(0,i.activeTargets.length)},t}(),Pf=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.");Rn.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(!Yo(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Rn.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(!Yo(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Rn.unobserve(this,e)},t.prototype.disconnect=function(){Rn.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const Lf=globalThis.ResizeObserver||Pf,qi={duration:void 0,margin:{top:0,bottom:0,left:0,right:0},padding:{top:0,bottom:0,left:0,right:0},sizing:Ft.Fit,width:void 0,height:void 0,svgDefs:void 0,ariaLabel:void 0};class xe{constructor(e){this._defaultConfig=qi,this._isFirstRender=!0,this._renderAnimationFrameId=null,this._container=e;const n=et(this._container);n.attr("role","figure"),this.svg=n.append("svg").style("display","block").attr("xmlns","http://www.w3.org/2000/svg").attr("height",xe.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=Kt(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;et(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||xe.DEFAULT_CONTAINER_HEIGHT}get width(){return zt(this.containerWidth-this.config.margin.left-this.config.margin.right,0,Number.POSITIVE_INFINITY)}get height(){return zt(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===Ft.Fit||e.sizing===Ft.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 Lf((n,i)=>{cancelAnimationFrame(this._resizeObserverAnimationFrameId),this._resizeObserverAnimationFrameId=requestAnimationFrame(()=>{const r=this._container.getBoundingClientRect(),o={width:r.width,height:r.height};!Pe(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()}}xe.DEFAULT_CONTAINER_HEIGHT=300;function Bf(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 If(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 Hf=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(If(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Bf(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}(),Q="-ms-",Dn="-moz-",L="-webkit-",is="comm",Gi="rule",ji="decl",Uf="@import",rs="@keyframes",Wf="@layer",Vf=Math.abs,On=String.fromCharCode,Yf=Object.assign;function Xf(t,e){return Z(t,0)^45?(((e<<2^Z(t,0))<<2^Z(t,1))<<2^Z(t,2))<<2^Z(t,3):0}function os(t){return t.trim()}function qf(t,e){return(t=e.exec(t))?t[0]:t}function B(t,e,n){return t.replace(e,n)}function Zi(t,e){return t.indexOf(e)}function Z(t,e){return t.charCodeAt(e)|0}function He(t,e,n){return t.slice(e,n)}function At(t){return t.length}function Qi(t){return t.length}function Fn(t,e){return e.push(t),t}function Gf(t,e){return t.map(e).join("")}var zn=1,be=1,ss=0,it=0,X=0,we="";function Pn(t,e,n,i,r,o,s){return{value:t,root:e,parent:n,type:i,props:r,children:o,line:zn,column:be,length:s,return:""}}function Ue(t,e){return Yf(Pn("",null,null,"",null,null,0),t,{length:-t.length},e)}function jf(){return X}function Zf(){return X=it>0?Z(we,--it):0,be--,X===10&&(be=1,zn--),X}function lt(){return X=it<ss?Z(we,it++):0,be++,X===10&&(be=1,zn++),X}function $t(){return Z(we,it)}function Ln(){return it}function We(t,e){return He(we,t,e)}function Ve(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 as(t){return zn=be=1,ss=At(we=t),it=0,[]}function ls(t){return we="",t}function Bn(t){return os(We(it-1,Ji(t===91?t+2:t===40?t+1:t)))}function Qf(t){for(;(X=$t())&&X<33;)lt();return Ve(t)>2||Ve(X)>3?"":" "}function Jf(t,e){for(;--e&&lt()&&!(X<48||X>102||X>57&&X<65||X>70&&X<97););return We(t,Ln()+(e<6&&$t()==32&&lt()==32))}function Ji(t){for(;lt();)switch(X){case t:return it;case 34:case 39:t!==34&&t!==39&&Ji(X);break;case 40:t===41&&Ji(t);break;case 92:lt();break}return it}function Kf(t,e){for(;lt()&&t+X!==57;)if(t+X===84&&$t()===47)break;return"/*"+We(e,it-1)+"*"+On(t===47?t:lt())}function th(t){for(;!Ve($t());)lt();return We(t,it)}function eh(t){return ls(In("",null,null,null,[""],t=as(t),0,[0],t))}function In(t,e,n,i,r,o,s,a,l){for(var c=0,u=0,f=s,h=0,d=0,p=0,g=1,m=1,y=1,v=0,x="",C=r,S=o,b=i,T=x;m;)switch(p=v,v=lt()){case 40:if(p!=108&&Z(T,f-1)==58){Zi(T+=B(Bn(v),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:T+=Bn(v);break;case 9:case 10:case 13:case 32:T+=Qf(p);break;case 92:T+=Jf(Ln()-1,7);continue;case 47:switch($t()){case 42:case 47:Fn(nh(Kf(lt(),Ln()),e,n),l);break;default:T+="/"}break;case 123*g:a[c++]=At(T)*y;case 125*g:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:y==-1&&(T=B(T,/\f/g,"")),d>0&&At(T)-f&&Fn(d>32?us(T+";",i,n,f-1):us(B(T," ","")+";",i,n,f-2),l);break;case 59:T+=";";default:if(Fn(b=cs(T,e,n,c,u,r,a,x,C=[],S=[],f),o),v===123)if(u===0)In(T,e,b,b,C,o,f,a,S);else switch(h===99&&Z(T,3)===110?100:h){case 100:case 108:case 109:case 115:In(t,b,b,i&&Fn(cs(t,b,b,0,0,r,a,x,r,C=[],f),S),r,S,f,a,i?C:S);break;default:In(T,b,b,b,[""],S,0,a,S)}}c=u=d=0,g=y=1,x=T="",f=s;break;case 58:f=1+At(T),d=p;default:if(g<1){if(v==123)--g;else if(v==125&&g++==0&&Zf()==125)continue}switch(T+=On(v),v*g){case 38:y=u>0?1:(T+="\f",-1);break;case 44:a[c++]=(At(T)-1)*y,y=1;break;case 64:$t()===45&&(T+=Bn(lt())),h=$t(),u=f=At(x=T+=th(Ln())),v++;break;case 45:p===45&&At(T)==2&&(g=0)}}return o}function cs(t,e,n,i,r,o,s,a,l,c,u){for(var f=r-1,h=r===0?o:[""],d=Qi(h),p=0,g=0,m=0;p<i;++p)for(var y=0,v=He(t,f+1,f=Vf(g=s[p])),x=t;y<d;++y)(x=os(g>0?h[y]+" "+v:B(v,/&\f/g,h[y])))&&(l[m++]=x);return Pn(t,e,n,r===0?Gi:a,l,c,u)}function nh(t,e,n){return Pn(t,e,n,is,On(jf()),He(t,2,-2),0)}function us(t,e,n,i){return Pn(t,e,n,ji,He(t,0,i),He(t,i+1,-1),i)}function ke(t,e){for(var n="",i=Qi(t),r=0;r<i;r++)n+=e(t[r],r,t,e)||"";return n}function ih(t,e,n,i){switch(t.type){case Wf:if(t.children.length)break;case Uf:case ji:return t.return=t.return||t.value;case is:return"";case rs:return t.return=t.value+"{"+ke(t.children,i)+"}";case Gi:t.value=t.props.join(",")}return At(n=ke(t.children,i))?t.return=t.value+"{"+n+"}":""}function rh(t){var e=Qi(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 oh(t){return function(e){e.root||(e=e.return)&&t(e)}}function sh(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var ah=function(e,n,i){for(var r=0,o=0;r=o,o=$t(),r===38&&o===12&&(n[i]=1),!Ve(o);)lt();return We(e,it)},lh=function(e,n){var i=-1,r=44;do switch(Ve(r)){case 0:r===38&&$t()===12&&(n[i]=1),e[i]+=ah(it-1,n,i);break;case 2:e[i]+=Bn(r);break;case 4:if(r===44){e[++i]=$t()===58?"&\f":"",n[i]=e[i].length;break}default:e[i]+=On(r)}while(r=lt());return e},ch=function(e,n){return ls(lh(as(e),n))},fs=new WeakMap,uh=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&&!fs.get(i))&&!r){fs.set(e,!0);for(var o=[],s=ch(n,o),a=i.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)e.props[c]=o[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},fh=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function hs(t,e){switch(Xf(t,e)){case 5103:return L+"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 L+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return L+t+Dn+t+Q+t+t;case 6828:case 4268:return L+t+Q+t+t;case 6165:return L+t+Q+"flex-"+t+t;case 5187:return L+t+B(t,/(\w+).+(:[^]+)/,L+"box-$1$2"+Q+"flex-$1$2")+t;case 5443:return L+t+Q+"flex-item-"+B(t,/flex-|-self/,"")+t;case 4675:return L+t+Q+"flex-line-pack"+B(t,/align-content|flex-|-self/,"")+t;case 5548:return L+t+Q+B(t,"shrink","negative")+t;case 5292:return L+t+Q+B(t,"basis","preferred-size")+t;case 6060:return L+"box-"+B(t,"-grow","")+L+t+Q+B(t,"grow","positive")+t;case 4554:return L+B(t,/([^-])(transform)/g,"$1"+L+"$2")+t;case 6187:return B(B(B(t,/(zoom-|grab)/,L+"$1"),/(image-set)/,L+"$1"),t,"")+t;case 5495:case 3959:return B(t,/(image-set\([^]*)/,L+"$1$`$1");case 4968:return B(B(t,/(.+:)(flex-)?(.*)/,L+"box-pack:$3"+Q+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+L+t+t;case 4095:case 3583:case 4068:case 2532:return B(t,/(.+)-inline(.+)/,L+"$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(At(t)-1-e>6)switch(Z(t,e+1)){case 109:if(Z(t,e+4)!==45)break;case 102:return B(t,/(.+:)(.+)-([^]+)/,"$1"+L+"$2-$3$1"+Dn+(Z(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Zi(t,"stretch")?hs(B(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Z(t,e+1)!==115)break;case 6444:switch(Z(t,At(t)-3-(~Zi(t,"!important")&&10))){case 107:return B(t,":",":"+L)+t;case 101:return B(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+L+(Z(t,14)===45?"inline-":"")+"box$3$1"+L+"$2$3$1"+Q+"$2box$3")+t}break;case 5936:switch(Z(t,e+11)){case 114:return L+t+Q+B(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return L+t+Q+B(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return L+t+Q+B(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return L+t+Q+t+t}return t}var hh=function(e,n,i,r){if(e.length>-1&&!e.return)switch(e.type){case ji:e.return=hs(e.value,e.length);break;case rs:return ke([Ue(e,{value:B(e.value,"@","@"+L)})],r);case Gi:if(e.length)return Gf(e.props,function(o){switch(qf(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ke([Ue(e,{props:[B(o,/:(read-\w+)/,":"+Dn+"$1")]})],r);case"::placeholder":return ke([Ue(e,{props:[B(o,/:(plac\w+)/,":"+L+"input-$1")]}),Ue(e,{props:[B(o,/:(plac\w+)/,":"+Dn+"$1")]}),Ue(e,{props:[B(o,/:(plac\w+)/,Q+"input-$1")]})],r)}return""})}},dh=[hh],gh=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||dh,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 l,c=[uh,fh];{var u,f=[ih,oh(function(g){u.insert(g)})],h=rh(c.concat(r,f)),d=function(m){return ke(eh(m),h)};l=function(m,y,v,x){u=v,d(m?m+"{"+y.styles+"}":y.styles),x&&(p.inserted[y.name]=!0)}}var p={key:n,sheet:new Hf({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 p.sheet.hydrate(a),p};function ph(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 mh={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},_h=/[A-Z]|^ms/g,yh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ds=function(e){return e.charCodeAt(1)===45},gs=function(e){return e!=null&&typeof e!="boolean"},Ki=sh(function(t){return ds(t)?t:t.replace(_h,"-$&").toLowerCase()}),ps=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(yh,function(i,r,o){return Xt={name:r,styles:o,next:Xt},r})}return mh[e]!==1&&!ds(e)&&typeof n=="number"&&n!==0?n+"px":n};function Hn(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 Xt={name:r.name,styles:r.styles,next:Xt},r.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Xt={name:s.name,styles:s.styles,next:Xt},s=s.next;var a=o.styles+";";return a}return vh(t,e,n)}}var l=n;if(e==null)return l;var c=e[l];return c!==void 0?c:l}function vh(t,e,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=Hn(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]+"}":gs(a)&&(i+=Ki(o)+":"+ps(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++)gs(s[l])&&(i+=Ki(o)+":"+ps(o,s[l])+";");else{var c=Hn(t,e,s);switch(o){case"animation":case"animationName":{i+=Ki(o)+":"+c+";";break}default:i+=o+"{"+c+"}"}}}return i}var ms=/label:\s*([^\s;{]+)\s*(;|$)/g,Xt;function tr(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="";Xt=void 0;var o=t[0];if(o==null||o.raw===void 0)i=!1,r+=Hn(n,e,o);else{var s=o;r+=s[0]}for(var a=1;a<t.length;a++)if(r+=Hn(n,e,t[a]),i){var l=o;r+=l[a]}ms.lastIndex=0;for(var c="",u;(u=ms.exec(r))!==null;)c+="-"+u[1];var f=ph(r)+c;return{name:f,styles:r,next:Xt}}function _s(t,e,n){var i="";return n.split(" ").forEach(function(r){t[r]!==void 0?e.push(t[r]+";"):r&&(i+=r+" ")}),i}var xh=function(e,n,i){var r=e.key+"-"+n.name;e.registered[r]===void 0&&(e.registered[r]=n.styles)},bh=function(e,n,i){xh(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 ys(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function vs(t,e,n){var i=[],r=_s(t,i,n);return i.length<2?n:r+e(i)}var wh=function(e){var n=gh(e);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var i=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var f=tr(c,n.registered,void 0);return bh(n,f),n.key+"-"+f.name},r=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var f=tr(c,n.registered),h="animation-"+f.name;return ys(n,{name:f.name,styles:"@keyframes "+h+"{"+f.styles+"}"}),h},o=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var f=tr(c,n.registered);ys(n,f)},s=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return vs(n.registered,i,kh(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:_s.bind(null,n.registered),merge:vs.bind(null,n.registered,i)}},kh=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},xs=wh({key:"css"}),qt=xs.injectGlobal,D=xs.css;function Sh(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var er,bs;function Th(){return bs||(bs=1,er=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}),er}var nr,ws;function Ch(){if(ws)return nr;ws=1;var t=Th();nr=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 nr}Ch();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 Mh(t,e){const n=t.substr(4,t.length-5);return getComputedStyle(e).getPropertyValue(n)}function Ah(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,u]=[e.x+n,e.y+e.height-2*n,e.x+e.width-2*n,e.y+n];return!(r<u||l<s||o<a||c<i)}function ir(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Ss(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function Ye(){}var Xe=.7,Un=1/Xe,Se="\\s*([+-]?\\d+)\\s*",qe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Et="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$h=/^#([0-9a-f]{3,8})$/,Eh=new RegExp(`^rgb\\(${Se},${Se},${Se}\\)$`),Nh=new RegExp(`^rgb\\(${Et},${Et},${Et}\\)$`),Rh=new RegExp(`^rgba\\(${Se},${Se},${Se},${qe}\\)$`),Dh=new RegExp(`^rgba\\(${Et},${Et},${Et},${qe}\\)$`),Oh=new RegExp(`^hsl\\(${qe},${Et},${Et}\\)$`),Fh=new RegExp(`^hsla\\(${qe},${Et},${Et},${qe}\\)$`),Ts={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};ir(Ye,ne,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Cs,formatHex:Cs,formatHex8:zh,formatHsl:Ph,formatRgb:Ms,toString:Ms});function Cs(){return this.rgb().formatHex()}function zh(){return this.rgb().formatHex8()}function Ph(){return Rs(this).formatHsl()}function Ms(){return this.rgb().formatRgb()}function ne(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=$h.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?As(e):n===3?new rt(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Wn(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Wn(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=Eh.exec(t))?new rt(e[1],e[2],e[3],1):(e=Nh.exec(t))?new rt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Rh.exec(t))?Wn(e[1],e[2],e[3],e[4]):(e=Dh.exec(t))?Wn(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Oh.exec(t))?Ns(e[1],e[2]/100,e[3]/100,1):(e=Fh.exec(t))?Ns(e[1],e[2]/100,e[3]/100,e[4]):Ts.hasOwnProperty(t)?As(Ts[t]):t==="transparent"?new rt(NaN,NaN,NaN,0):null}function As(t){return new rt(t>>16&255,t>>8&255,t&255,1)}function Wn(t,e,n,i){return i<=0&&(t=e=n=NaN),new rt(t,e,n,i)}function Lh(t){return t instanceof Ye||(t=ne(t)),t?(t=t.rgb(),new rt(t.r,t.g,t.b,t.opacity)):new rt}function rr(t,e,n,i){return arguments.length===1?Lh(t):new rt(t,e,n,i??1)}function rt(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}ir(rt,rr,Ss(Ye,{brighter(t){return t=t==null?Un:Math.pow(Un,t),new rt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Xe:Math.pow(Xe,t),new rt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new rt(ie(this.r),ie(this.g),ie(this.b),Vn(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:$s,formatHex:$s,formatHex8:Bh,formatRgb:Es,toString:Es}));function $s(){return`#${re(this.r)}${re(this.g)}${re(this.b)}`}function Bh(){return`#${re(this.r)}${re(this.g)}${re(this.b)}${re((isNaN(this.opacity)?1:this.opacity)*255)}`}function Es(){const t=Vn(this.opacity);return`${t===1?"rgb(":"rgba("}${ie(this.r)}, ${ie(this.g)}, ${ie(this.b)}${t===1?")":`, ${t})`}`}function Vn(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ie(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function re(t){return t=ie(t),(t<16?"0":"")+t.toString(16)}function Ns(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new yt(t,e,n,i)}function Rs(t){if(t instanceof yt)return new yt(t.h,t.s,t.l,t.opacity);if(t instanceof Ye||(t=ne(t)),!t)return new yt;if(t instanceof yt)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 yt(s,a,l,t.opacity)}function or(t,e,n,i){return arguments.length===1?Rs(t):new yt(t,e,n,i??1)}function yt(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}ir(yt,or,Ss(Ye,{brighter(t){return t=t==null?Un:Math.pow(Un,t),new yt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Xe:Math.pow(Xe,t),new yt(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 rt(sr(t>=240?t-240:t+120,r,i),sr(t,r,i),sr(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new yt(Ds(this.h),Yn(this.s),Yn(this.l),Vn(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=Vn(this.opacity);return`${t===1?"hsl(":"hsla("}${Ds(this.h)}, ${Yn(this.s)*100}%, ${Yn(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Ds(t){return t=(t||0)%360,t<0?t+360:t}function Yn(t){return Math.max(0,Math.min(1,t||0))}function sr(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 Ge=(globalThis==null?void 0:globalThis.UNOVIS_COLORS)||["#4D8CFD","#FF6B7E","#F4B83E","#A6CC74","#00C19A","#6859BE"],Ih=(globalThis==null?void 0:globalThis.UNOVIS_COLORS_DARK)||["#4D8CFD","#FF6B7E","#FFC16D","#A6CC74","#00C19A","#7887E0"],Gt=t=>`--vis-${Ct(t)?`color${t%Ge.length}`:t}`;function Hh(t,e=.4){const n=or(t);return n.l=n.l*(1+e),n.formatHex()}function Uh(t,e=.4,n=.6){const i=or(t);return i.s=i.s*(1-n),i.l=i.l*(1-e),i.formatHex()}const je=10,ar=[{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"/>'}],lr=[{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 jt(t){return`vis-${`pattern-${t.svg?"fill":"marker"}`}-${t.id}`}const Wh=t=>`<mask id="${jt(t)}">
2
+ <pattern id="${t.id}" viewBox="0 0 10 10" width="${je}" height="${je}" patternUnits="userSpaceOnUse">
3
+ <rect width="100%" height="100%" fill="#fff"/>
4
+ ${t.svg}
5
+ </pattern>
6
+ <rect x="-50%" y="-50%" width="200%" height="200%" fill="url(#${t.id})"/>
7
+ </mask>`,Vh=(t,e)=>`<marker id="${jt(t)}"
8
+ fill="var(${Gt(e)})"
9
+ markerUnits="userSpaceOnUse"
10
+ refX="5"
11
+ refY="5"
12
+ markerWidth="${je}"
13
+ markerHeight="${je}">
14
+ ${t.marker}
15
+ </marker>`;function Yh(){const t=ar.map(Wh).concat(lr.map(Vh)).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"&&Yh();const Os=(globalThis==null?void 0:globalThis.UNOVIS_FONT_W2H_RATIO_DEFAULT)||.5,Fs=(globalThis==null?void 0:globalThis.UNOVIS_TEXT_SEPARATOR_DEFAULT)||[" ","-",".",","],zs=(globalThis==null?void 0:globalThis.UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT)||"-",Ps=(globalThis==null?void 0:globalThis.UNOVIS_TEXT_DEFAULT)||{text:"",fontSize:12,fontFamily:"var(--vis-font-family)",lineHeight:1.25,marginTop:0,marginBottom:0};qt`
16
+ :root {
17
+ label: vis-root-styles;
18
+ --vis-font-family: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;
19
+ --vis-font-wh-ratio: ${Os};
20
+ --vis-color-main: var(${Gt(0)});
21
+ --vis-color-main-light: ${Hh(Ge[0])};
22
+ --vis-color-main-dark: ${Uh(Ge[0])};
23
+ --vis-color-grey: #2a2a2a;
24
+ ${Ge.map((t,e)=>`${Gt(e)}: ${t};`)}
25
+ ${Ih.map((t,e)=>`--vis-dark-color${e}: ${t};`)}
26
+ ${ar.map((t,e)=>`
27
+ --${jt(t)}: url(#${jt(t)});
28
+ --vis-pattern-fill${e}: var(--${jt(t)});
29
+ `)}
30
+ ${lr.map((t,e)=>{var n;return`
31
+ --${jt(t)}: url(#${jt(t)});
32
+ --vis-pattern-marker${e}: var(--${jt(t)});
33
+ --vis-pattern-dasharray${e}: ${(n=t.dashArray)===null||n===void 0?void 0:n.join(" ")};
34
+ `})}
35
+
36
+ body.theme-dark {
37
+ ${Ge.map((t,e)=>`${Gt(e)}: var(--vis-dark-color${e});`)}
38
+ }
39
+
40
+ body.theme-patterns {
41
+ ${ar.map((t,e)=>`path[style*="fill: var(${Gt(e)})"] {
42
+ mask: var(--vis-pattern-fill${e});
43
+ }`)}
44
+ ${lr.map((t,e)=>`
45
+ path[stroke="var(${Gt(e)})"]:not([style*="fill"]),
46
+ path[style*="stroke: var(${Gt(e)})"]:not([style*="fill"]) {
47
+ marker: var(--vis-pattern-marker${e});
48
+ stroke-dasharray: var(--vis-pattern-dasharray${e});
49
+ }
50
+ `)}
51
+ }
52
+ `;function Xh(t=window==null?void 0:window.document.body){return t?+Mh("var(--vis-font-wh-ratio)",t):Os}var qh={value:()=>{}};function Ls(){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 Xn(n)}function Xn(t){this._=t}function Gh(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}})}Xn.prototype=Ls.prototype={constructor:Xn,on:function(t,e){var n=this._,i=Gh(t+"",n),r,o=-1,s=i.length;if(arguments.length<2){for(;++o<s;)if((r=(t=i[o]).type)&&(r=jh(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]=Bs(n[r],t.name,e);else if(e==null)for(r in n)n[r]=Bs(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 Xn(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 jh(t,e){for(var n=0,i=t.length,r;n<i;++n)if((r=t[n]).name===e)return r.value}function Bs(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=qh,t=t.slice(0,i).concat(t.slice(i+1));break}return n!=null&&t.push({name:e,value:n}),t}var Te=0,Ze=0,Qe=0,Is=1e3,qn,Je,Gn=0,oe=0,jn=0,Ke=typeof performance=="object"&&performance.now?performance:Date,Hs=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function cr(){return oe||(Hs(Zh),oe=Ke.now()+jn)}function Zh(){oe=0}function Zn(){this._call=this._time=this._next=null}Zn.prototype=Us.prototype={constructor:Zn,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?cr():+n)+(e==null?0:+e),!this._next&&Je!==this&&(Je?Je._next=this:qn=this,Je=this),this._call=t,this._time=n,ur()},stop:function(){this._call&&(this._call=null,this._time=1/0,ur())}};function Us(t,e,n){var i=new Zn;return i.restart(t,e,n),i}function Qh(){cr(),++Te;for(var t=qn,e;t;)(e=oe-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Te}function Ws(){oe=(Gn=Ke.now())+jn,Te=Ze=0;try{Qh()}finally{Te=0,Kh(),oe=0}}function Jh(){var t=Ke.now(),e=t-Gn;e>Is&&(jn-=e,Gn=t)}function Kh(){for(var t,e=qn,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:qn=n);Je=t,ur(i)}function ur(t){if(!Te){Ze&&(Ze=clearTimeout(Ze));var e=t-oe;e>24?(t<1/0&&(Ze=setTimeout(Ws,t-Ke.now()-jn)),Qe&&(Qe=clearInterval(Qe))):(Qe||(Gn=Ke.now(),Qe=setInterval(Jh,Is)),Te=1,Hs(Ws))}}function Vs(t,e,n){var i=new Zn;return e=e==null?0:+e,i.restart(r=>{i.stop(),t(r+e)},e,n),i}var td=Ls("start","end","cancel","interrupt"),ed=[],Ys=0,Xs=1,fr=2,Qn=3,qs=4,hr=5,Jn=6;function Kn(t,e,n,i,r,o){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;nd(t,n,{name:e,index:i,group:r,on:td,tween:ed,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Ys})}function dr(t,e){var n=vt(t,e);if(n.state>Ys)throw new Error("too late; already scheduled");return n}function Nt(t,e){var n=vt(t,e);if(n.state>Qn)throw new Error("too late; already running");return n}function vt(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function nd(t,e,n){var i=t.__transition,r;i[e]=n,n.timer=Us(o,0,n.time);function o(c){n.state=Xs,n.timer.restart(s,n.delay,n.time),n.delay<=c&&s(c-n.delay)}function s(c){var u,f,h,d;if(n.state!==Xs)return l();for(u in i)if(d=i[u],d.name===n.name){if(d.state===Qn)return Vs(s);d.state===qs?(d.state=Jn,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[u]):+u<e&&(d.state=Jn,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete i[u])}if(Vs(function(){n.state===Qn&&(n.state=qs,n.timer.restart(a,n.delay,n.time),a(c))}),n.state=fr,n.on.call("start",t,t.__data__,n.index,n.group),n.state===fr){for(n.state=Qn,r=new Array(h=n.tween.length),u=0,f=-1;u<h;++u)(d=n.tween[u].value.call(t,t.__data__,n.index,n.group))&&(r[++f]=d);r.length=f+1}}function a(c){for(var u=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=hr,1),f=-1,h=r.length;++f<h;)r[f].call(t,u);n.state===hr&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){n.state=Jn,n.timer.stop(),delete i[e];for(var c in i)return;delete t.__transition}}function gr(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>fr&&i.state<hr,i.state=Jn,i.timer.stop(),i.on.call(r?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete n[s]}o&&delete t.__transition}}function id(t){return this.each(function(){gr(this,t)})}const pr=t=>()=>t;function rd(t,e){return function(n){return t+n*e}}function od(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 sd(t){return(t=+t)==1?Gs:function(e,n){return n-e?od(e,n,t):pr(isNaN(e)?n:e)}}function Gs(t,e){var n=e-t;return n?rd(t,n):pr(isNaN(t)?e:t)}const ti=function t(e){var n=sd(e);function i(r,o){var s=n((r=rr(r)).r,(o=rr(o)).r),a=n(r.g,o.g),l=n(r.b,o.b),c=Gs(r.opacity,o.opacity);return function(u){return r.r=s(u),r.g=a(u),r.b=l(u),r.opacity=c(u),r+""}}return i.gamma=t,i}(1);function ad(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 ld(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function cd(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]=se(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 ud(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function xt(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function fd(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]=se(t[r],e[r]):i[r]=e[r];return function(o){for(r in n)i[r]=n[r](o);return i}}var mr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_r=new RegExp(mr.source,"g");function hd(t){return function(){return t}}function dd(t){return function(e){return t(e)+""}}function js(t,e){var n=mr.lastIndex=_r.lastIndex=0,i,r,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(i=mr.exec(t))&&(r=_r.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:xt(i,r)})),n=_r.lastIndex;return n<e.length&&(o=e.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?dd(l[0].x):hd(e):(e=l.length,function(c){for(var u=0,f;u<e;++u)a[(f=l[u]).i]=f.x(c);return a.join("")})}function se(t,e){var n=typeof e,i;return e==null||n==="boolean"?pr(e):(n==="number"?xt:n==="string"?(i=ne(e))?(e=i,ti):js:e instanceof ne?ti:e instanceof Date?ud:ld(e)?ad:Array.isArray(e)?cd:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?fd:xt)(t,e)}function yr(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var Zs=180/Math.PI,vr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Qs(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)*Zs,skewX:Math.atan(l)*Zs,scaleX:s,scaleY:a}}var ei;function gd(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?vr:Qs(e.a,e.b,e.c,e.d,e.e,e.f)}function pd(t){return t==null||(ei||(ei=document.createElementNS("http://www.w3.org/2000/svg","g")),ei.setAttribute("transform",t),!(t=ei.transform.baseVal.consolidate()))?vr:(t=t.matrix,Qs(t.a,t.b,t.c,t.d,t.e,t.f))}function Js(t,e,n,i){function r(c){return c.length?c.pop()+" ":""}function o(c,u,f,h,d,p){if(c!==f||u!==h){var g=d.push("translate(",null,e,null,n);p.push({i:g-4,x:xt(c,f)},{i:g-2,x:xt(u,h)})}else(f||h)&&d.push("translate("+f+e+h+n)}function s(c,u,f,h){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),h.push({i:f.push(r(f)+"rotate(",null,i)-2,x:xt(c,u)})):u&&f.push(r(f)+"rotate("+u+i)}function a(c,u,f,h){c!==u?h.push({i:f.push(r(f)+"skewX(",null,i)-2,x:xt(c,u)}):u&&f.push(r(f)+"skewX("+u+i)}function l(c,u,f,h,d,p){if(c!==f||u!==h){var g=d.push(r(d)+"scale(",null,",",null,")");p.push({i:g-4,x:xt(c,f)},{i:g-2,x:xt(u,h)})}else(f!==1||h!==1)&&d.push(r(d)+"scale("+f+","+h+")")}return function(c,u){var f=[],h=[];return c=t(c),u=t(u),o(c.translateX,c.translateY,u.translateX,u.translateY,f,h),s(c.rotate,u.rotate,f,h),a(c.skewX,u.skewX,f,h),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,f,h),c=u=null,function(d){for(var p=-1,g=h.length,m;++p<g;)f[(m=h[p]).i]=m.x(d);return f.join("")}}}var md=Js(gd,"px, ","px)","deg)"),_d=Js(pd,", ",")",")");function yd(t,e){e===void 0&&(e=t,t=se);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 vd(t,e){var n,i;return function(){var r=Nt(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 xd(t,e,n){var i,r;if(typeof n!="function")throw new Error;return function(){var o=Nt(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 bd(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i=vt(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?vd:xd)(n,t,e))}function xr(t,e,n){var i=t._id;return t.each(function(){var r=Nt(this,i);(r.value||(r.value={}))[e]=n.apply(this,arguments)}),function(r){return vt(r,i).value[e]}}function Ks(t,e){var n;return(typeof e=="number"?xt:e instanceof ne?ti:(n=ne(e))?(e=n,ti):js)(t,e)}function wd(t){return function(){this.removeAttribute(t)}}function kd(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Sd(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 Td(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 Cd(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 Md(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 Ad(t,e){var n=vn(t),i=n==="transform"?_d:Ks;return this.attrTween(t,typeof e=="function"?(n.local?Md:Cd)(n,i,xr(this,"attr."+t,e)):e==null?(n.local?kd:wd)(n):(n.local?Td:Sd)(n,i,e))}function $d(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Ed(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Nd(t,e){var n,i;function r(){var o=e.apply(this,arguments);return o!==i&&(n=(i=o)&&Ed(t,o)),n}return r._value=e,r}function Rd(t,e){var n,i;function r(){var o=e.apply(this,arguments);return o!==i&&(n=(i=o)&&$d(t,o)),n}return r._value=e,r}function Dd(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?Nd:Rd)(i,e))}function Od(t,e){return function(){dr(this,t).delay=+e.apply(this,arguments)}}function Fd(t,e){return e=+e,function(){dr(this,t).delay=e}}function zd(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Od:Fd)(e,t)):vt(this.node(),e).delay}function Pd(t,e){return function(){Nt(this,t).duration=+e.apply(this,arguments)}}function Ld(t,e){return e=+e,function(){Nt(this,t).duration=e}}function Bd(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Pd:Ld)(e,t)):vt(this.node(),e).duration}function Id(t,e){if(typeof e!="function")throw new Error;return function(){Nt(this,t).ease=e}}function Hd(t){var e=this._id;return arguments.length?this.each(Id(e,t)):vt(this.node(),e).ease}function Ud(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;Nt(this,t).ease=n}}function Wd(t){if(typeof t!="function")throw new Error;return this.each(Ud(this._id,t))}function Vd(t){typeof t!="function"&&(t=To(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 Pt(i,this._parents,this._name,this._id)}function Yd(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],u=l.length,f=s[a]=new Array(u),h,d=0;d<u;++d)(h=l[d]||c[d])&&(f[d]=h);for(;a<i;++a)s[a]=e[a];return new Pt(s,this._parents,this._name,this._id)}function Xd(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 qd(t,e,n){var i,r,o=Xd(e)?dr:Nt;return function(){var s=o(this,t),a=s.on;a!==i&&(r=(i=a).copy()).on(e,n),s.on=r}}function Gd(t,e){var n=this._id;return arguments.length<2?vt(this.node(),n).on.on(t):this.each(qd(n,t,e))}function jd(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function Zd(){return this.on("end.remove",jd(this._id))}function Qd(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Oi(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),u,f,h=0;h<l;++h)(u=a[h])&&(f=t.call(u,u.__data__,h,a))&&("__data__"in u&&(f.__data__=u.__data__),c[h]=f,Kn(c[h],e,n,h,c,vt(u,n)));return new Pt(o,this._parents,e,n)}function Jd(t){var e=this._name,n=this._id;typeof t!="function"&&(t=So(t));for(var i=this._groups,r=i.length,o=[],s=[],a=0;a<r;++a)for(var l=i[a],c=l.length,u,f=0;f<c;++f)if(u=l[f]){for(var h=t.call(u,u.__data__,f,l),d,p=vt(u,n),g=0,m=h.length;g<m;++g)(d=h[g])&&Kn(d,e,n,g,h,p);o.push(h),s.push(u)}return new Pt(o,s,e,n)}var Kd=Oe.prototype.constructor;function tg(){return new Kd(this._groups,this._parents)}function eg(t,e){var n,i,r;return function(){var o=ye(this,t),s=(this.style.removeProperty(t),ye(this,t));return o===s?null:o===n&&s===i?r:r=e(n=o,i=s)}}function ta(t){return function(){this.style.removeProperty(t)}}function ng(t,e,n){var i,r=n+"",o;return function(){var s=ye(this,t);return s===r?null:s===i?o:o=e(i=s,n)}}function ig(t,e,n){var i,r,o;return function(){var s=ye(this,t),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),ye(this,t))),s===l?null:s===i&&l===r?o:(r=l,o=e(i=s,a))}}function rg(t,e){var n,i,r,o="style."+e,s="end."+o,a;return function(){var l=Nt(this,t),c=l.on,u=l.value[o]==null?a||(a=ta(e)):void 0;(c!==n||r!==u)&&(i=(n=c).copy()).on(s,r=u),l.on=i}}function og(t,e,n){var i=(t+="")=="transform"?md:Ks;return e==null?this.styleTween(t,eg(t,i)).on("end.style."+t,ta(t)):typeof e=="function"?this.styleTween(t,ig(t,i,xr(this,"style."+t,e))).each(rg(this._id,t)):this.styleTween(t,ng(t,i,e),n).on("end.style."+t,null)}function sg(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function ag(t,e,n){var i,r;function o(){var s=e.apply(this,arguments);return s!==r&&(i=(r=s)&&sg(t,s,n)),i}return o._value=e,o}function lg(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,ag(t,e,n??""))}function cg(t){return function(){this.textContent=t}}function ug(t){return function(){var e=t(this);this.textContent=e??""}}function fg(t){return this.tween("text",typeof t=="function"?ug(xr(this,"text",t)):cg(t==null?"":t+""))}function hg(t){return function(e){this.textContent=t.call(this,e)}}function dg(t){var e,n;function i(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&hg(r)),e}return i._value=t,i}function gg(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,dg(t))}function pg(){for(var t=this._name,e=this._id,n=ea(),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 u=vt(l,e);Kn(l,t,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Pt(i,this._parents,t,n)}function mg(){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=Nt(this,i),u=c.on;u!==t&&(e=(t=u).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),r===0&&o()})}var _g=0;function Pt(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function ea(){return++_g}var Lt=Oe.prototype;Pt.prototype={constructor:Pt,select:Qd,selectAll:Jd,selectChild:Lt.selectChild,selectChildren:Lt.selectChildren,filter:Vd,merge:Yd,selection:tg,transition:pg,call:Lt.call,nodes:Lt.nodes,node:Lt.node,size:Lt.size,empty:Lt.empty,each:Lt.each,on:Gd,attr:Ad,attrTween:Dd,style:og,styleTween:lg,text:fg,textTween:gg,remove:Zd,tween:bd,delay:zd,duration:Bd,ease:Hd,easeVarying:Wd,end:mg,[Symbol.iterator]:Lt[Symbol.iterator]};const na=t=>+t;function yg(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var vg={time:null,delay:0,duration:250,ease:yg};function xg(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 bg(t){var e,n;t instanceof Pt?(e=t._id,t=t._name):(e=ea(),(n=vg).time=cr(),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])&&Kn(l,t,e,c,s,n||xg(l,e));return new Pt(i,this._parents,t,e)}Oe.prototype.interrupt=id,Oe.prototype.transition=bg;function nt(t,e,n){if(t.nodes().forEach(i=>gr(i)),e){const i=t.transition().duration(e);return n&&i.ease(n),i}else return t}const wg=Object.assign(Object.assign({},qi),{tooltip:void 0,annotations:void 0});class kg extends xe{constructor(e,n,i){var r;super(e),this._defaultConfig=wg,this.config=this._defaultConfig,n&&(this.updateContainer(n,!0),this.component=n.component),i&&this.setData(i,!0),!((r=this.component)===null||r===void 0)&&r.datamodel.data&&this.render()}setData(e,n){var i;const{config:r}=this;this.component&&this.component.setData(e),n||this.render(),(i=r.tooltip)===null||i===void 0||i.hide()}updateContainer(e,n){super.updateContainer(e),this._removeAllChildren(),this.component=e.component,e.sizing&&(this.component.sizing=e.sizing),this.element.appendChild(this.component.element);const i=e.tooltip;i&&(i.hasContainer()||i.setContainer(this._container),i.setComponents([this.component]));const r=e.annotations;r&&this.element.appendChild(r.element),this.element.appendChild(this._svgDefs.node()),this.element.appendChild(this._svgDefsExternal.node()),n||this.render()}updateComponent(e,n){this.component.setConfig(e),n||this.render()}update(e,n,i){e&&this.updateContainer(e,!0),n&&this.updateComponent(n,!0),i&&this.setData(i,!0),this.render()}getFitWidthScale(){const{config:e,component:n}=this,i=n;if(!i.getWidth)return 1;const r=i.getWidth()+e.margin.left+e.margin.right;return this.width/r}_preRender(){var e;super._preRender(),this.component.setSize(this.width,this.height,this.containerWidth,this.containerHeight),(e=this.config.annotations)===null||e===void 0||e.setSize(this.width,this.height,this.containerWidth,this.containerHeight)}_render(e){var n;const{config:i,component:r}=this;super._render(e),r.g.attr("transform",`translate(${i.margin.left},${i.margin.top})`),r.render(e),(n=i.annotations)===null||n===void 0||n.render(e),i.tooltip&&i.tooltip.update()}render(e=this.config.duration){const{config:n,component:i}=this;if(n.sizing===Ft.Extend||n.sizing===Ft.FitWidth){const r=n.sizing===Ft.FitWidth,o=i,s=o.getWidth()+n.margin.left+n.margin.right,a=o.getHeight()+n.margin.top+n.margin.bottom,l=r?this.getFitWidthScale():1,c=this.svg.attr("width"),u=this.svg.attr("height"),f=s*l,h=a*l,d=c||u;nt(this.svg,d?e:0).attr("width",f).attr("height",h).attr("viewBox",`0 0 ${s} ${r?h:a}`).attr("preserveAspectRatio","xMinYMin")}else this.svg.attr("width",this.config.width||this.containerWidth).attr("height",this.config.height||this.containerHeight);this._resizeObserver||this._setUpResizeObserver(),cancelAnimationFrame(this._renderAnimationFrameId),this._renderAnimationFrameId=requestAnimationFrame(()=>{this._preRender(),this._render(e)})}_onResize(){var e;const{config:n}=this;super._onResize(),(e=n.tooltip)===null||e===void 0||e.hide()}destroy(){var e,n;const{component:i,config:r}=this;super.destroy(),i==null||i.destroy(),(e=r.tooltip)===null||e===void 0||e.destroy(),(n=r.annotations)===null||n===void 0||n.destroy()}}class br{constructor(e){this.data=e}get data(){return this._data}set data(e){this._data=e}}var I;(function(t){t.X="x",t.Y="y"})(I||(I={}));function bt(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function ia(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 ra=Symbol("implicit");function wr(){var t=new zo,e=[],n=[],i=ra;function r(o){let s=t.get(o);if(s===void 0){if(i!==ra)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 zo;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 wr(e,n).unknown(i)},bt.apply(r,arguments),r}function kr(){var t=wr().unknown(void 0),e=t.domain,n=t.range,i=0,r=1,o,s,a=!1,l=0,c=0,u=.5;delete t.unknown;function f(){var h=e().length,d=r<i,p=d?r:i,g=d?i:r;o=(g-p)/Math.max(1,h-l+c*2),a&&(o=Math.floor(o)),p+=(g-p-o*(h-l))*u,s=o*(1-l),a&&(p=Math.round(p),s=Math.round(s));var m=af(h).map(function(y){return p+o*y});return n(d?m.reverse():m)}return t.domain=function(h){return arguments.length?(e(h),f()):e()},t.range=function(h){return arguments.length?([i,r]=h,i=+i,r=+r,f()):[i,r]},t.rangeRound=function(h){return[i,r]=h,i=+i,r=+r,a=!0,f()},t.bandwidth=function(){return s},t.step=function(){return o},t.round=function(h){return arguments.length?(a=!!h,f()):a},t.padding=function(h){return arguments.length?(l=Math.min(1,c=+h),f()):l},t.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),f()):l},t.paddingOuter=function(h){return arguments.length?(c=+h,f()):c},t.align=function(h){return arguments.length?(u=Math.max(0,Math.min(1,h)),f()):u},t.copy=function(){return kr(e(),[i,r]).round(a).paddingInner(l).paddingOuter(c).align(u)},bt.apply(f(),arguments)}function oa(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return oa(e())},t}function Sg(){return oa(kr.apply(null,arguments).paddingInner(1))}function Tg(t){return function(){return t}}function Sr(t){return+t}var sa=[0,1];function ot(t){return t}function Tr(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Tg(isNaN(e)?NaN:.5)}function Cg(t,e){var n;return t>e&&(n=t,t=e,e=n),function(i){return Math.max(t,Math.min(e,i))}}function Mg(t,e,n){var i=t[0],r=t[1],o=e[0],s=e[1];return r<i?(i=Tr(r,i),o=n(s,o)):(i=Tr(i,r),o=n(o,s)),function(a){return o(i(a))}}function Ag(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]=Tr(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(a){var l=kn(t,a,1,i)-1;return o[l](r[l](a))}}function tn(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function ni(){var t=sa,e=sa,n=se,i,r,o,s=ot,a,l,c;function u(){var h=Math.min(t.length,e.length);return s!==ot&&(s=Cg(t[0],t[h-1])),a=h>2?Ag:Mg,l=c=null,f}function f(h){return h==null||isNaN(h=+h)?o:(l||(l=a(t.map(i),e,n)))(i(s(h)))}return f.invert=function(h){return s(r((c||(c=a(e,t.map(i),xt)))(h)))},f.domain=function(h){return arguments.length?(t=Array.from(h,Sr),u()):t.slice()},f.range=function(h){return arguments.length?(e=Array.from(h),u()):e.slice()},f.rangeRound=function(h){return e=Array.from(h),n=yr,u()},f.clamp=function(h){return arguments.length?(s=h?!0:ot,u()):s!==ot},f.interpolate=function(h){return arguments.length?(n=h,u()):n},f.unknown=function(h){return arguments.length?(o=h,f):o},function(h,d){return i=h,r=d,u()}}function aa(){return ni()(ot,ot)}function $g(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function ii(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 Ce(t){return t=ii(Math.abs(t)),t?t[1]:NaN}function Eg(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 Ng(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var Rg=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function en(t){if(!(e=Rg.exec(t)))throw new Error("invalid format: "+t);var e;return new Cr({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]})}en.prototype=Cr.prototype;function Cr(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+""}Cr.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 Dg(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 la;function Og(t,e){var n=ii(t,e);if(!n)return t+"";var i=n[0],r=n[1],o=r-(la=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")+ii(t,Math.max(0,e+o-1))[0]}function ca(t,e){var n=ii(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 ua={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:$g,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)=>ca(t*100,e),r:ca,s:Og,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function fa(t){return t}var ha=Array.prototype.map,da=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Fg(t){var e=t.grouping===void 0||t.thousands===void 0?fa:Eg(ha.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?fa:Ng(ha.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(f){f=en(f);var h=f.fill,d=f.align,p=f.sign,g=f.symbol,m=f.zero,y=f.width,v=f.comma,x=f.precision,C=f.trim,S=f.type;S==="n"?(v=!0,S="g"):ua[S]||(x===void 0&&(x=12),C=!0,S="g"),(m||h==="0"&&d==="=")&&(m=!0,h="0",d="=");var b=g==="$"?n:g==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():"",T=g==="$"?i:/[%p]/.test(S)?s:"",O=ua[S],N=/[defgprs%]/.test(S);x=x===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function H(E){var w=b,$=T,q,_t,ut;if(S==="c")$=O(E)+$,E="";else{E=+E;var ft=E<0||1/E<0;if(E=isNaN(E)?l:O(Math.abs(E),x),C&&(E=Dg(E)),ft&&+E==0&&p!=="+"&&(ft=!1),w=(ft?p==="("?p:a:p==="-"||p==="("?"":p)+w,$=(S==="s"?da[8+la/3]:"")+$+(ft&&p==="("?")":""),N){for(q=-1,_t=E.length;++q<_t;)if(ut=E.charCodeAt(q),48>ut||ut>57){$=(ut===46?r+E.slice(q+1):E.slice(q))+$,E=E.slice(0,q);break}}}v&&!m&&(E=e(E,1/0));var St=w.length+E.length+$.length,tt=St<y?new Array(y-St+1).join(h):"";switch(v&&m&&(E=e(tt+E,tt.length?y-$.length:1/0),tt=""),d){case"<":E=w+E+$+tt;break;case"=":E=w+tt+E+$;break;case"^":E=tt.slice(0,St=tt.length>>1)+w+E+$+tt.slice(St);break;default:E=tt+w+E+$;break}return o(E)}return H.toString=function(){return f+""},H}function u(f,h){var d=c((f=en(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(Ce(h)/3)))*3,g=Math.pow(10,-p),m=da[8+p/3];return function(y){return d(g*y)+m}}return{format:c,formatPrefix:u}}var ri,Mr,ga;zg({thousands:",",grouping:[3],currency:["$",""]});function zg(t){return ri=Fg(t),Mr=ri.format,ga=ri.formatPrefix,ri}function Pg(t){return Math.max(0,-Ce(Math.abs(t)))}function Lg(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ce(e)/3)))*3-Ce(Math.abs(t)))}function Bg(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Ce(e)-Ce(t))+1}function Ig(t,e,n,i){var r=Li(t,e,n),o;switch(i=en(i??",f"),i.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return i.precision==null&&!isNaN(o=Lg(r,s))&&(i.precision=o),ga(i,s)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(o=Bg(r,Math.max(Math.abs(t),Math.abs(e))))&&(i.precision=o-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(o=Pg(r))&&(i.precision=o-(i.type==="%")*2);break}}return Mr(i)}function ae(t){var e=t.domain;return t.ticks=function(n){var i=e();return zi(i[0],i[i.length-1],n??10)},t.tickFormat=function(n,i){var r=e();return Ig(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,u=10;for(a<s&&(c=s,s=a,a=c,c=r,r=o,o=c);u-- >0;){if(c=Pi(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 pa(){var t=aa();return t.copy=function(){return tn(t,pa())},bt.apply(t,arguments),ae(t)}function ma(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,Sr),n):t.slice()},n.unknown=function(i){return arguments.length?(e=i,n):e},n.copy=function(){return ma(t).unknown(e)},t=arguments.length?Array.from(t,Sr):[0,1],ae(n)}function _a(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 ya(t){return Math.log(t)}function va(t){return Math.exp(t)}function Hg(t){return-Math.log(-t)}function Ug(t){return-Math.exp(-t)}function Wg(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Vg(t){return t===10?Wg:t===Math.E?Math.exp:e=>Math.pow(t,e)}function Yg(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 xa(t){return(e,n)=>-t(-e,n)}function Xg(t){const e=t(ya,va),n=e.domain;let i=10,r,o;function s(){return r=Yg(i),o=Vg(i),n()[0]<0?(r=xa(r),o=xa(o),t(Hg,Ug)):t(ya,va),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],u=l[l.length-1];const f=u<c;f&&([c,u]=[u,c]);let h=r(c),d=r(u),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),c>0){for(;h<=d;++h)for(p=1;p<i;++p)if(g=h<0?p/o(-h):p*o(h),!(g<c)){if(g>u)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<c)){if(g>u)break;y.push(g)}y.length*2<m&&(y=zi(c,u,m))}else y=zi(h,d,Math.min(d-h,m)).map(o);return f?y.reverse():y},e.tickFormat=(a,l)=>{if(a==null&&(a=10),l==null&&(l=i===10?"s":","),typeof l!="function"&&(!(i%1)&&(l=en(l)).precision==null&&(l.trim=!0),l=Mr(l)),a===1/0)return l;const c=Math.max(1,i*a/e.ticks().length);return u=>{let f=u/o(Math.round(r(u)));return f*i<i-.5&&(f*=i),f<=c?l(u):""}},e.nice=()=>n(_a(n(),{floor:a=>o(Math.floor(r(a))),ceil:a=>o(Math.ceil(r(a)))})),e}function ba(){const t=Xg(ni()).domain([1,10]);return t.copy=()=>tn(t,ba()).base(t.base()),bt.apply(t,arguments),t}function wa(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function ka(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function qg(t){var e=1,n=t(wa(e),ka(e));return n.constant=function(i){return arguments.length?t(wa(e=+i),ka(e)):e},ae(n)}function Sa(){var t=qg(ni());return t.copy=function(){return tn(t,Sa()).constant(t.constant())},bt.apply(t,arguments)}function Ta(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Gg(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function jg(t){return t<0?-t*t:t*t}function Zg(t){var e=t(ot,ot),n=1;function i(){return n===1?t(ot,ot):n===.5?t(Gg,jg):t(Ta(n),Ta(1/n))}return e.exponent=function(r){return arguments.length?(n=+r,i()):n},ae(e)}function Ar(){var t=Zg(ni());return t.copy=function(){return tn(t,Ar()).exponent(t.exponent())},bt.apply(t,arguments),t}function Qg(){return Ar.apply(null,arguments).exponent(.5)}function Ca(){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]=nf(t,s/a);return o}function o(s){return s==null||isNaN(s=+s)?i:e[kn(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(ze),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 Ca().domain(t).range(e).unknown(i)},bt.apply(o,arguments)}function Ma(){var t=0,e=1,n=1,i=[.5],r=[0,1],o;function s(l){return l!=null&&l<=l?r[kn(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 Ma().domain([t,e]).range(r).unknown(o)},bt.apply(ae(s),arguments)}function Aa(){var t=[.5],e=[0,1],n,i=1;function r(o){return o!=null&&o<=o?e[kn(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 Aa().domain(t).range(e).unknown(n)},bt.apply(r,arguments)}const $r=new Date,Er=new Date;function G(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=>G(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)=>($r.setTime(+o),Er.setTime(+s),t($r),t(Er),Math.floor(n($r,Er))),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 oi=G(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);oi.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?G(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):oi),oi.range;const Bt=1e3,gt=Bt*60,It=gt*60,Ht=It*24,Nr=Ht*7,$a=Ht*30,Rr=Ht*365,le=G(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Bt)},(t,e)=>(e-t)/Bt,t=>t.getUTCSeconds());le.range;const Dr=G(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Bt)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getMinutes());Dr.range;const Or=G(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getUTCMinutes());Or.range;const Fr=G(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Bt-t.getMinutes()*gt)},(t,e)=>{t.setTime(+t+e*It)},(t,e)=>(e-t)/It,t=>t.getHours());Fr.range;const zr=G(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*It)},(t,e)=>(e-t)/It,t=>t.getUTCHours());zr.range;const nn=G(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*gt)/Ht,t=>t.getDate()-1);nn.range;const si=G(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Ht,t=>t.getUTCDate()-1);si.range;const Ea=G(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Ht,t=>Math.floor(t/Ht));Ea.range;function ce(t){return G(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())*gt)/Nr)}const ai=ce(0),li=ce(1),Jg=ce(2),Kg=ce(3),Me=ce(4),tp=ce(5),ep=ce(6);ai.range,li.range,Jg.range,Kg.range,Me.range,tp.range,ep.range;function ue(t){return G(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)/Nr)}const ci=ue(0),ui=ue(1),np=ue(2),ip=ue(3),Ae=ue(4),rp=ue(5),op=ue(6);ci.range,ui.range,np.range,ip.range,Ae.range,rp.range,op.range;const Pr=G(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());Pr.range;const Lr=G(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 Ut=G(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());Ut.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:G(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)}),Ut.range;const Wt=G(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());Wt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:G(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)}),Wt.range;function Na(t,e,n,i,r,o){const s=[[le,1,Bt],[le,5,5*Bt],[le,15,15*Bt],[le,30,30*Bt],[o,1,gt],[o,5,5*gt],[o,15,15*gt],[o,30,30*gt],[r,1,It],[r,3,3*It],[r,6,6*It],[r,12,12*It],[i,1,Ht],[i,2,2*Ht],[n,1,Nr],[e,1,$a],[e,3,3*$a],[t,1,Rr]];function a(c,u,f){const h=u<c;h&&([c,u]=[u,c]);const d=f&&typeof f.range=="function"?f:l(c,u,f),p=d?d.range(c,+u+1):[];return h?p.reverse():p}function l(c,u,f){const h=Math.abs(u-c)/f,d=wn(([,,m])=>m).right(s,h);if(d===s.length)return t.every(Li(c/Rr,u/Rr,f));if(d===0)return oi.every(Math.max(Li(c,u,f),1));const[p,g]=s[h/s[d-1][2]<s[d][2]/h?d-1:d];return p.every(g)}return[a,l]}const[sp,ap]=Na(Wt,Lr,ci,Ea,zr,Or),[lp,cp]=Na(Ut,Pr,ai,nn,Fr,Dr);function Br(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 Ir(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 rn(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function up(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=on(r),u=sn(r),f=on(o),h=sn(o),d=on(s),p=sn(s),g=on(a),m=sn(a),y=on(l),v=sn(l),x={a:ft,A:St,b:tt,B:Re,c:null,d:Pa,e:Pa,f:Dp,g:Wp,G:Yp,H:Ep,I:Np,j:Rp,L:La,m:Op,M:Fp,p:De,q:dn,Q:Va,s:Ya,S:zp,u:Pp,U:Lp,V:Bp,w:Ip,W:Hp,x:null,X:null,y:Up,Y:Vp,Z:Xp,"%":Wa},C={a:gn,A:Tt,b:pn,B:mn,c:null,d:Ia,e:Ia,f:Zp,g:sm,G:lm,H:qp,I:Gp,j:jp,L:Ha,m:Qp,M:Jp,p:_n,q:yn,Q:Va,s:Ya,S:Kp,u:tm,U:em,V:nm,w:im,W:rm,x:null,X:null,y:om,Y:am,Z:cm,"%":Wa},S={a:H,A:E,b:w,B:$,c:q,d:Fa,e:Fa,f:Cp,g:Oa,G:Da,H:za,I:za,j:wp,L:Tp,m:bp,M:kp,p:N,q:xp,Q:Ap,s:$p,S:Sp,u:pp,U:mp,V:_p,w:gp,W:yp,x:_t,X:ut,y:Oa,Y:Da,Z:vp,"%":Mp};x.x=b(n,x),x.X=b(i,x),x.c=b(e,x),C.x=b(n,C),C.X=b(i,C),C.c=b(e,C);function b(M,R){return function(P){var k=[],st=-1,U=0,ht=M.length,dt,_e,dc;for(P instanceof Date||(P=new Date(+P));++st<ht;)M.charCodeAt(st)===37&&(k.push(M.slice(U,st)),(_e=Ra[dt=M.charAt(++st)])!=null?dt=M.charAt(++st):_e=dt==="e"?" ":"0",(dc=R[dt])&&(dt=dc(P,_e)),k.push(dt),U=st+1);return k.push(M.slice(U,st)),k.join("")}}function T(M,R){return function(P){var k=rn(1900,void 0,1),st=O(k,M,P+="",0),U,ht;if(st!=P.length)return null;if("Q"in k)return new Date(k.Q);if("s"in k)return new Date(k.s*1e3+("L"in k?k.L:0));if(R&&!("Z"in k)&&(k.Z=0),"p"in k&&(k.H=k.H%12+k.p*12),k.m===void 0&&(k.m="q"in k?k.q:0),"V"in k){if(k.V<1||k.V>53)return null;"w"in k||(k.w=1),"Z"in k?(U=Ir(rn(k.y,0,1)),ht=U.getUTCDay(),U=ht>4||ht===0?ui.ceil(U):ui(U),U=si.offset(U,(k.V-1)*7),k.y=U.getUTCFullYear(),k.m=U.getUTCMonth(),k.d=U.getUTCDate()+(k.w+6)%7):(U=Br(rn(k.y,0,1)),ht=U.getDay(),U=ht>4||ht===0?li.ceil(U):li(U),U=nn.offset(U,(k.V-1)*7),k.y=U.getFullYear(),k.m=U.getMonth(),k.d=U.getDate()+(k.w+6)%7)}else("W"in k||"U"in k)&&("w"in k||(k.w="u"in k?k.u%7:"W"in k?1:0),ht="Z"in k?Ir(rn(k.y,0,1)).getUTCDay():Br(rn(k.y,0,1)).getDay(),k.m=0,k.d="W"in k?(k.w+6)%7+k.W*7-(ht+5)%7:k.w+k.U*7-(ht+6)%7);return"Z"in k?(k.H+=k.Z/100|0,k.M+=k.Z%100,Ir(k)):Br(k)}}function O(M,R,P,k){for(var st=0,U=R.length,ht=P.length,dt,_e;st<U;){if(k>=ht)return-1;if(dt=R.charCodeAt(st++),dt===37){if(dt=R.charAt(st++),_e=S[dt in Ra?R.charAt(st++):dt],!_e||(k=_e(M,P,k))<0)return-1}else if(dt!=P.charCodeAt(k++))return-1}return k}function N(M,R,P){var k=c.exec(R.slice(P));return k?(M.p=u.get(k[0].toLowerCase()),P+k[0].length):-1}function H(M,R,P){var k=d.exec(R.slice(P));return k?(M.w=p.get(k[0].toLowerCase()),P+k[0].length):-1}function E(M,R,P){var k=f.exec(R.slice(P));return k?(M.w=h.get(k[0].toLowerCase()),P+k[0].length):-1}function w(M,R,P){var k=y.exec(R.slice(P));return k?(M.m=v.get(k[0].toLowerCase()),P+k[0].length):-1}function $(M,R,P){var k=g.exec(R.slice(P));return k?(M.m=m.get(k[0].toLowerCase()),P+k[0].length):-1}function q(M,R,P){return O(M,e,R,P)}function _t(M,R,P){return O(M,n,R,P)}function ut(M,R,P){return O(M,i,R,P)}function ft(M){return s[M.getDay()]}function St(M){return o[M.getDay()]}function tt(M){return l[M.getMonth()]}function Re(M){return a[M.getMonth()]}function De(M){return r[+(M.getHours()>=12)]}function dn(M){return 1+~~(M.getMonth()/3)}function gn(M){return s[M.getUTCDay()]}function Tt(M){return o[M.getUTCDay()]}function pn(M){return l[M.getUTCMonth()]}function mn(M){return a[M.getUTCMonth()]}function _n(M){return r[+(M.getUTCHours()>=12)]}function yn(M){return 1+~~(M.getUTCMonth()/3)}return{format:function(M){var R=b(M+="",x);return R.toString=function(){return M},R},parse:function(M){var R=T(M+="",!1);return R.toString=function(){return M},R},utcFormat:function(M){var R=b(M+="",C);return R.toString=function(){return M},R},utcParse:function(M){var R=T(M+="",!0);return R.toString=function(){return M},R}}}var Ra={"-":"",_:" ",0:"0"},j=/^\s*\d+/,fp=/^%/,hp=/[\\^$*+?|[\]().{}]/g;function F(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 dp(t){return t.replace(hp,"\\$&")}function on(t){return new RegExp("^(?:"+t.map(dp).join("|")+")","i")}function sn(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function gp(t,e,n){var i=j.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function pp(t,e,n){var i=j.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function mp(t,e,n){var i=j.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function _p(t,e,n){var i=j.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function yp(t,e,n){var i=j.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function Da(t,e,n){var i=j.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function Oa(t,e,n){var i=j.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function vp(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 xp(t,e,n){var i=j.exec(e.slice(n,n+1));return i?(t.q=i[0]*3-3,n+i[0].length):-1}function bp(t,e,n){var i=j.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function Fa(t,e,n){var i=j.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function wp(t,e,n){var i=j.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function za(t,e,n){var i=j.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function kp(t,e,n){var i=j.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function Sp(t,e,n){var i=j.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function Tp(t,e,n){var i=j.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function Cp(t,e,n){var i=j.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function Mp(t,e,n){var i=fp.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function Ap(t,e,n){var i=j.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function $p(t,e,n){var i=j.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function Pa(t,e){return F(t.getDate(),e,2)}function Ep(t,e){return F(t.getHours(),e,2)}function Np(t,e){return F(t.getHours()%12||12,e,2)}function Rp(t,e){return F(1+nn.count(Ut(t),t),e,3)}function La(t,e){return F(t.getMilliseconds(),e,3)}function Dp(t,e){return La(t,e)+"000"}function Op(t,e){return F(t.getMonth()+1,e,2)}function Fp(t,e){return F(t.getMinutes(),e,2)}function zp(t,e){return F(t.getSeconds(),e,2)}function Pp(t){var e=t.getDay();return e===0?7:e}function Lp(t,e){return F(ai.count(Ut(t)-1,t),e,2)}function Ba(t){var e=t.getDay();return e>=4||e===0?Me(t):Me.ceil(t)}function Bp(t,e){return t=Ba(t),F(Me.count(Ut(t),t)+(Ut(t).getDay()===4),e,2)}function Ip(t){return t.getDay()}function Hp(t,e){return F(li.count(Ut(t)-1,t),e,2)}function Up(t,e){return F(t.getFullYear()%100,e,2)}function Wp(t,e){return t=Ba(t),F(t.getFullYear()%100,e,2)}function Vp(t,e){return F(t.getFullYear()%1e4,e,4)}function Yp(t,e){var n=t.getDay();return t=n>=4||n===0?Me(t):Me.ceil(t),F(t.getFullYear()%1e4,e,4)}function Xp(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+F(e/60|0,"0",2)+F(e%60,"0",2)}function Ia(t,e){return F(t.getUTCDate(),e,2)}function qp(t,e){return F(t.getUTCHours(),e,2)}function Gp(t,e){return F(t.getUTCHours()%12||12,e,2)}function jp(t,e){return F(1+si.count(Wt(t),t),e,3)}function Ha(t,e){return F(t.getUTCMilliseconds(),e,3)}function Zp(t,e){return Ha(t,e)+"000"}function Qp(t,e){return F(t.getUTCMonth()+1,e,2)}function Jp(t,e){return F(t.getUTCMinutes(),e,2)}function Kp(t,e){return F(t.getUTCSeconds(),e,2)}function tm(t){var e=t.getUTCDay();return e===0?7:e}function em(t,e){return F(ci.count(Wt(t)-1,t),e,2)}function Ua(t){var e=t.getUTCDay();return e>=4||e===0?Ae(t):Ae.ceil(t)}function nm(t,e){return t=Ua(t),F(Ae.count(Wt(t),t)+(Wt(t).getUTCDay()===4),e,2)}function im(t){return t.getUTCDay()}function rm(t,e){return F(ui.count(Wt(t)-1,t),e,2)}function om(t,e){return F(t.getUTCFullYear()%100,e,2)}function sm(t,e){return t=Ua(t),F(t.getUTCFullYear()%100,e,2)}function am(t,e){return F(t.getUTCFullYear()%1e4,e,4)}function lm(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Ae(t):Ae.ceil(t),F(t.getUTCFullYear()%1e4,e,4)}function cm(){return"+0000"}function Wa(){return"%"}function Va(t){return+t}function Ya(t){return Math.floor(+t/1e3)}var $e,Xa,qa;um({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 um(t){return $e=up(t),Xa=$e.format,$e.parse,qa=$e.utcFormat,$e.utcParse,$e}function fm(t){return new Date(t)}function hm(t){return t instanceof Date?+t:+new Date(+t)}function Hr(t,e,n,i,r,o,s,a,l,c){var u=aa(),f=u.invert,h=u.domain,d=c(".%L"),p=c(":%S"),g=c("%I:%M"),m=c("%I %p"),y=c("%a %d"),v=c("%b %d"),x=c("%B"),C=c("%Y");function S(b){return(l(b)<b?d:a(b)<b?p:s(b)<b?g:o(b)<b?m:i(b)<b?r(b)<b?y:v:n(b)<b?x:C)(b)}return u.invert=function(b){return new Date(f(b))},u.domain=function(b){return arguments.length?h(Array.from(b,hm)):h().map(fm)},u.ticks=function(b){var T=h();return t(T[0],T[T.length-1],b??10)},u.tickFormat=function(b,T){return T==null?S:c(T)},u.nice=function(b){var T=h();return(!b||typeof b.range!="function")&&(b=e(T[0],T[T.length-1],b??10)),b?h(_a(T,b)):u},u.copy=function(){return tn(u,Hr(t,e,n,i,r,o,s,a,l,c))},u}function dm(){return bt.apply(Hr(lp,cp,Ut,Pr,ai,nn,Fr,Dr,le,Xa).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function gm(){return bt.apply(Hr(sp,ap,Wt,Lr,ci,si,zr,Or,le,qa).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function pm(){var t=0,e=1,n,i,r,o,s=ot,a=!1,l;function c(f){return f==null||isNaN(f=+f)?l:s(r===0?.5:(f=(o(f)-n)*r,a?Math.max(0,Math.min(1,f)):f))}c.domain=function(f){return arguments.length?([t,e]=f,n=o(t=+t),i=o(e=+e),r=n===i?0:1/(i-n),c):[t,e]},c.clamp=function(f){return arguments.length?(a=!!f,c):a},c.interpolator=function(f){return arguments.length?(s=f,c):s};function u(f){return function(h){var d,p;return arguments.length?([d,p]=h,s=f(d,p),c):[s(0),s(1)]}}return c.range=u(se),c.rangeRound=u(yr),c.unknown=function(f){return arguments.length?(l=f,c):l},function(f){return o=f,n=f(t),i=f(e),r=n===i?0:1/(i-n),c}}function Ga(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function ja(){var t=ae(pm()(ot));return t.copy=function(){return Ga(t,ja())},ia.apply(t,arguments)}function mm(){var t=0,e=.5,n=1,i=1,r,o,s,a,l,c=ot,u,f=!1,h;function d(g){return isNaN(g=+g)?h:(g=.5+((g=+u(g))-o)*(i*g<i*o?a:l),c(f?Math.max(0,Math.min(1,g)):g))}d.domain=function(g){return arguments.length?([t,e,n]=g,r=u(t=+t),o=u(e=+e),s=u(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(g){return arguments.length?(f=!!g,d):f},d.interpolator=function(g){return arguments.length?(c=g,d):c};function p(g){return function(m){var y,v,x;return arguments.length?([y,v,x]=m,c=yd(g,[y,v,x]),d):[c(0),c(.5),c(1)]}}return d.range=p(se),d.rangeRound=p(yr),d.unknown=function(g){return arguments.length?(h=g,d):h},function(g){return u=g,r=g(t),o=g(e),s=g(n),a=r===o?0:.5/(o-r),l=o===s?0:.5/(s-o),i=o<r?-1:1,d}}function Za(){var t=ae(mm()(ot));return t.copy=function(){return Ga(t,Za())},ia.apply(t,arguments)}const Qa={scaleLinear:pa,scalePow:Ar,scaleSqrt:Qg,scaleLog:ba,scaleSymlog:Sa,scaleIdentity:ma,scaleTime:dm,scaleUtc:gm,scaleSequential:ja,scaleDiverging:Za,scaleQuantize:Ma,scaleQuantile:Ca,scaleThreshold:Aa,scaleOrdinal:wr,scaleBand:kr,scalePoint:Sg};var Y;(function(t){t.X="x",t.Y="y"})(Y||(Y={}));var fe;(function(t){t.West="west",t.East="east",t.North="north",t.South="south"})(fe||(fe={}));const _m=Object.assign(Object.assign({},qi),{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:fe.North,preventEmptyDomain:null,scaleByDomain:!1});class ym extends xe{constructor(e,n,i){var r,o;super(e),this._defaultConfig=_m,this.datamodel=new br,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",D`
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 zt(this.containerWidth-e.left-e.right,0,Number.POSITIVE_INFINITY)}get height(){const e=this._getMargin();return zt(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=I.X,this.element.appendChild(e.xAxis.element)),e.yAxis&&(this.config.yAxis.config.type=I.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=Le([...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 f of this.components)f.g.attr("transform",`translate(${l.left},${l.top})`).style("clip-path",f.clippable?`url(#${this._clipPathId})`:null).style("-webkit-clip-path",f.clippable?`url(#${this._clipPathId})`:null),f.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 u=a.crosshair;if(u){const f=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;u.accessors={x:(r=this.components[0])===null||r===void 0?void 0:r.config.x,y:Ii(f),yStacked:Ii(h),baseline:p},u.g.attr("transform",`translate(${l.left},${l.top})`).style("clip-path",`url(#${this._clipPathId})`).style("-webkit-clip-path",`url(#${this._clipPathId})`),u.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=Le(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(Y.X,n.xScale)),n.yScale&&e.forEach(i=>i.setScale(Y.Y,n.yScale)))}_updateScalesDomain(...e){const{config:n}=this;if(!e)return;const i=e.filter(r=>!r.config.excludeFromDomainCalculation);Object.values(Y).forEach(r=>{var o,s,a,l,c,u,f,h;const[d,p]=ju(sf(i.map(S=>S.getDataExtent(r,n.scaleByDomain)))),g=r===Y.Y?n.yDomain:n.xDomain,m=r===Y.Y?n.yDomainMinConstraint:n.xDomainMinConstraint,y=r===Y.Y?n.yDomainMaxConstraint:n.xDomainMaxConstraint,v=(s=(o=g==null?void 0:g[0])!==null&&o!==void 0?o:d)!==null&&s!==void 0?s:0,x=(l=(a=g==null?void 0:g[1])!==null&&a!==void 0?a:p)!==null&&l!==void 0?l:1,C=[zt(v,(c=m==null?void 0:m[0])!==null&&c!==void 0?c:Number.NEGATIVE_INFINITY,(u=m==null?void 0:m[1])!==null&&u!==void 0?u:Number.POSITIVE_INFINITY),zt(x,(f=y==null?void 0:y[0])!==null&&f!==void 0?f:Number.NEGATIVE_INFINITY,(h=y==null?void 0:y[1])!==null&&h!==void 0?h:Number.POSITIVE_INFINITY)];if(C[0]===C[1]){const S=i.some(b=>{var T;return((T=b.datamodel.data)===null||T===void 0?void 0:T.length)>0});(n.preventEmptyDomain||n.preventEmptyDomain===null&&(!S||r===Y.Y))&&(C[1]=C[0]+1)}e.forEach(S=>S.setScaleDomain(r,C))})}_updateScalesRange(...e){var n,i,r,o,s,a;const{config:l}=this;if(!e)return;const c=l.yDirection===fe.South,u=[(n=l.padding.left)!==null&&n!==void 0?n:0,this.width-((i=l.padding.right)!==null&&i!==void 0?i:0)],f=[this.height-((r=l.padding.bottom)!==null&&r!==void 0?r:0),(o=l.padding.top)!==null&&o!==void 0?o:0];c&&f.reverse();for(const d of e)d.setSize(this.width,this.height,this.containerWidth,this.containerHeight),d.setScaleRange(Y.X,(s=l.xRange)!==null&&s!==void 0?s:u),d.setScaleRange(Y.Y,(a=l.yRange)!==null&&a!==void 0?a:f);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(Y.X,[u[0]+h.left,u[1]-h.right]),d.setScaleRange(Y.Y,c?[f[0]+h.top,f[1]-h.bottom]:[f[0]-h.bottom,f[1]+h.top])}_renderAxes(e){const{config:{xAxis:n,yAxis:i}}=this,r=this._getMargin();Le([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=Le([...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),Le([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 Ur={duration:600,events:{},attributes:{}};class Ja{constructor(e=Fe.SVG){var n,i;this.type=Fe.SVG,this.datamodel=new br,this.sizing=Ft.Fit,this.events={},this._defaultConfig=Ur,this._width=400,this._height=200,this._containerWidth=void 0,this._containerHeight=void 0,this._setUpComponentEventsThrottled=Mn(this._setUpComponentEvents,500),this._setCustomAttributesThrottled=Mn(this._setCustomAttributes,500),e===Fe.SVG?this.element=document.createElementNS("http://www.w3.org/2000/svg","g"):this.element=document.createElement("div"),this.uid=ks(),this.g=et(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=Kt(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),u=e[i][r];return u==null?void 0:u(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 Ka extends br{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 an=Object.assign(Object.assign({},Ur),{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 fi extends Ja{constructor(){super(...arguments),this.datamodel=new Ka,this.clippable=!0,this.stacked=!1,this._defaultConfig=an,this._xScale=Qa.scaleLinear(),this._yScale=Qa.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===Y.X&&((i=this._xScale)===null||i===void 0||i.domain(n)),e===Y.Y&&((r=this._yScale)===null||r===void 0||r.domain(n))}setScaleRange(e,n){var i,r;e===Y.X&&((i=this._xScale)===null||i===void 0||i.range(n)),e===Y.Y&&((r=this._yScale)===null||r===void 0||r.range(n))}setScale(e,n){n&&e===Y.X&&(this._xScale=n),n&&e===Y.Y&&(this._yScale=n)}getDataExtent(e,n){const{config:i,datamodel:r}=this;switch(e){case Y.X:return this.getXDataExtent();case Y.Y:return this.getYDataExtent(n);default:return Ui(r.data,i[e])}}getXDataExtent(){const{config:e,datamodel:n}=this;return Ui(n.data,e.x)}getYDataExtent(e){const{config:n,datamodel:i}=this,r=e?Ho(i.data,this.xScale.domain(),n.x):i.data,o=Yt(n.y)?n.y:[n.y];return Ui(r,...o)}}var A;(function(t){t.Top="top",t.Bottom="bottom",t.Left="left",t.Right="right",t.Center="center",t.Auto="auto"})(A||(A={}));var tl;(function(t){t.Absolute="absolute",t.Fixed="fixed"})(tl||(tl={}));var el;(function(t){t.Inside="inside",t.Outside="outside"})(el||(el={}));var nl;(function(t){t.Horizontal="horizontal",t.Vertical="vertical"})(nl||(nl={}));const vm={components:[],container:void 0,followCursor:!0,allowHover:!0,horizontalPlacement:A.Auto,horizontalShift:0,verticalPlacement:A.Top,verticalShift:0,attributes:{},triggers:{},className:void 0},hi=D`
55
+ label: tooltip;
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
+ `,xm=hi,bm=qt`
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 ${`.${hi}`} {
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
+ `,il=D`
104
+ bottom: unset;
105
+ position: fixed;
106
+ `,Wr=D`
107
+ opacity: 1;
108
+ `,Vr=D`
109
+ display: none;
110
+ `,rl=D`
111
+ label: non-interactive;
112
+ pointer-events: none;
113
+ user-select: none;
114
+ `,wm=Object.freeze(Object.defineProperty({__proto__:null,hidden:Vr,nonInteractive:rl,positionFixed:il,root:hi,show:Wr,tooltip:xm,variables:bm},Symbol.toStringTag,{value:"Module"}));class ol{constructor(e={}){this._defaultConfig=vm,this.config=this._defaultConfig,this._setUpEventsThrottled=Mn(this._setUpEvents,500),this._setContainerPositionThrottled=Mn(this._setContainerPosition,500),this._isShown=!1,this.element=document.createElement("div"),this.div=et(this.element).attr("class",hi),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=Kt(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(Wr,!1).on("transitionend",()=>{this.div.classed(Vr,!this._isShown)}),this._isShown=!1}display(){this.div.classed(Vr,!1).classed(Wr,!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===A.Auto?A.Center:n.horizontalPlacement),s=n.verticalPlacement===A.Auto?e.y-r<0?A.Bottom:A.Top:n.verticalPlacement,a=5,l=o===A.Left?-i-a-n.horizontalShift:o===A.Center?-i/2:a+n.horizontalShift,c=s===A.Bottom?a+n.verticalShift:s===A.Center?-r/2:-5-n.verticalShift-r,[u,f]=this._constraintPosToContainer(e.x+l,e.y+c,i,r);this._applyPosition(u,f,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]:bn({clientX:l.x,clientY:l.y,pageX:l.x,pageY:l.y},this._container),u=this._overriddenHorizontalPlacement||(n.horizontalPlacement===A.Auto?c[0]-r<0?A.Right:c[0]+r>a?A.Left:A.Center:n.horizontalPlacement);let f=0;switch(u){case A.Left:f=-r-i-n.horizontalShift;break;case A.Right:f=l.width+i+n.horizontalShift;break;case A.Center:default:f=(-r+l.width)/2;break}const h=n.verticalPlacement===A.Auto?u!==A.Center?A.Center:c[1]-o<0?A.Bottom:A.Top:n.verticalPlacement;let d=-o;switch(h){case A.Center:d+=(o+l.height)/2;break;case A.Bottom:d+=o+l.height+i+n.verticalShift;break;case A.Top:default:d+=-5-n.verticalShift;break}const[p,g]=this._constraintPosToContainer(c[0]+f,c[1]+d,r,o);this._applyPosition(p,g,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(rl,!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(il,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,u=e<l,f=c?a-i-l:u?l:e,h=10,d=n>s-r-h,p=n<h,g=d?s-r-h:p?h:n;return[a<i?0:f,s<r?0:g]}_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=et(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 u=l.indexOf(c),f=et(c).datum(),h=a(f,u,l),[d,p]=this.isContainerBody()?[r.clientX,r.clientY]:bn(r,this._container);h===null?this.hide():(this.render(h),e.followCursor?this.place({x:d,y:p}):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()}}ol.selectors=wm;var Yr=Math.PI,Xr=2*Yr,he=1e-6,km=Xr-he;function qr(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ln(){return new qr}qr.prototype=ln.prototype={constructor:qr,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+o)},arcTo:function(t,e,n,i,r){t=+t,e=+e,n=+n,i=+i,r=+r;var o=this._x1,s=this._y1,a=n-t,l=i-e,c=o-t,u=s-e,f=c*c+u*u;if(r<0)throw new Error("negative radius: "+r);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(f>he)if(!(Math.abs(u*a-l*c)>he)||!r)this._+="L"+(this._x1=t)+","+(this._y1=e);else{var h=n-o,d=i-s,p=a*a+l*l,g=h*h+d*d,m=Math.sqrt(p),y=Math.sqrt(f),v=r*Math.tan((Yr-Math.acos((p+f-g)/(2*m*y)))/2),x=v/y,C=v/m;Math.abs(x-1)>he&&(this._+="L"+(t+x*c)+","+(e+x*u)),this._+="A"+r+","+r+",0,0,"+ +(u*h>c*d)+","+(this._x1=t+C*a)+","+(this._y1=e+C*l)}},arc:function(t,e,n,i,r,o){t=+t,e=+e,n=+n,o=!!o;var s=n*Math.cos(i),a=n*Math.sin(i),l=t+s,c=e+a,u=1^o,f=o?i-r:r-i;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+l+","+c:(Math.abs(this._x1-l)>he||Math.abs(this._y1-c)>he)&&(this._+="L"+l+","+c),n&&(f<0&&(f=f%Xr+Xr),f>km?this._+="A"+n+","+n+",0,1,"+u+","+(t-s)+","+(e-a)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):f>he&&(this._+="A"+n+","+n+",0,"+ +(f>=Yr)+","+u+","+(this._x1=t+n*Math.cos(r))+","+(this._y1=e+n*Math.sin(r))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};function z(t){return function(){return t}}var sl=Math.abs,J=Math.atan2,de=Math.cos,Sm=Math.max,Gr=Math.min,Rt=Math.sin,Ee=Math.sqrt,K=1e-12,Zt=Math.PI,di=Zt/2,Qt=2*Zt;function Tm(t){return t>1?0:t<-1?Zt:Math.acos(t)}function al(t){return t>=1?di:t<=-1?-di:Math.asin(t)}function Cm(t){return t.innerRadius}function Mm(t){return t.outerRadius}function Am(t){return t.startAngle}function $m(t){return t.endAngle}function Em(t){return t&&t.padAngle}function Nm(t,e,n,i,r,o,s,a){var l=n-t,c=i-e,u=s-r,f=a-o,h=f*l-u*c;if(!(h*h<K))return h=(u*(e-o)-f*(t-r))/h,[t+h*l,e+h*c]}function gi(t,e,n,i,r,o,s){var a=t-n,l=e-i,c=(s?o:-o)/Ee(a*a+l*l),u=c*l,f=-c*a,h=t+u,d=e+f,p=n+u,g=i+f,m=(h+p)/2,y=(d+g)/2,v=p-h,x=g-d,C=v*v+x*x,S=r-o,b=h*g-p*d,T=(x<0?-1:1)*Ee(Sm(0,S*S*C-b*b)),O=(b*x-v*T)/C,N=(-b*v-x*T)/C,H=(b*x+v*T)/C,E=(-b*v+x*T)/C,w=O-m,$=N-y,q=H-m,_t=E-y;return w*w+$*$>q*q+_t*_t&&(O=H,N=E),{cx:O,cy:N,x01:-u,y01:-f,x11:O*(r/S-1),y11:N*(r/S-1)}}function Rm(){var t=Cm,e=Mm,n=z(0),i=null,r=Am,o=$m,s=Em,a=null;function l(){var c,u,f=+t.apply(this,arguments),h=+e.apply(this,arguments),d=r.apply(this,arguments)-di,p=o.apply(this,arguments)-di,g=sl(p-d),m=p>d;if(a||(a=c=ln()),h<f&&(u=h,h=f,f=u),!(h>K))a.moveTo(0,0);else if(g>Qt-K)a.moveTo(h*de(d),h*Rt(d)),a.arc(0,0,h,d,p,!m),f>K&&(a.moveTo(f*de(p),f*Rt(p)),a.arc(0,0,f,p,d,m));else{var y=d,v=p,x=d,C=p,S=g,b=g,T=s.apply(this,arguments)/2,O=T>K&&(i?+i.apply(this,arguments):Ee(f*f+h*h)),N=Gr(sl(h-f)/2,+n.apply(this,arguments)),H=N,E=N,w,$;if(O>K){var q=al(O/f*Rt(T)),_t=al(O/h*Rt(T));(S-=q*2)>K?(q*=m?1:-1,x+=q,C-=q):(S=0,x=C=(d+p)/2),(b-=_t*2)>K?(_t*=m?1:-1,y+=_t,v-=_t):(b=0,y=v=(d+p)/2)}var ut=h*de(y),ft=h*Rt(y),St=f*de(C),tt=f*Rt(C);if(N>K){var Re=h*de(v),De=h*Rt(v),dn=f*de(x),gn=f*Rt(x),Tt;if(g<Zt&&(Tt=Nm(ut,ft,dn,gn,Re,De,St,tt))){var pn=ut-Tt[0],mn=ft-Tt[1],_n=Re-Tt[0],yn=De-Tt[1],M=1/Rt(Tm((pn*_n+mn*yn)/(Ee(pn*pn+mn*mn)*Ee(_n*_n+yn*yn)))/2),R=Ee(Tt[0]*Tt[0]+Tt[1]*Tt[1]);H=Gr(N,(f-R)/(M-1)),E=Gr(N,(h-R)/(M+1))}}b>K?E>K?(w=gi(dn,gn,ut,ft,h,E,m),$=gi(Re,De,St,tt,h,E,m),a.moveTo(w.cx+w.x01,w.cy+w.y01),E<N?a.arc(w.cx,w.cy,E,J(w.y01,w.x01),J($.y01,$.x01),!m):(a.arc(w.cx,w.cy,E,J(w.y01,w.x01),J(w.y11,w.x11),!m),a.arc(0,0,h,J(w.cy+w.y11,w.cx+w.x11),J($.cy+$.y11,$.cx+$.x11),!m),a.arc($.cx,$.cy,E,J($.y11,$.x11),J($.y01,$.x01),!m))):(a.moveTo(ut,ft),a.arc(0,0,h,y,v,!m)):a.moveTo(ut,ft),!(f>K)||!(S>K)?a.lineTo(St,tt):H>K?(w=gi(St,tt,Re,De,f,-H,m),$=gi(ut,ft,dn,gn,f,-H,m),a.lineTo(w.cx+w.x01,w.cy+w.y01),H<N?a.arc(w.cx,w.cy,H,J(w.y01,w.x01),J($.y01,$.x01),!m):(a.arc(w.cx,w.cy,H,J(w.y01,w.x01),J(w.y11,w.x11),!m),a.arc(0,0,f,J(w.cy+w.y11,w.cx+w.x11),J($.cy+$.y11,$.cx+$.x11),m),a.arc($.cx,$.cy,H,J($.y11,$.x11),J($.y01,$.x01),!m))):a.arc(0,0,f,C,x,m)}if(a.closePath(),c)return a=null,c+""||null}return l.centroid=function(){var c=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,u=(+r.apply(this,arguments)+ +o.apply(this,arguments))/2-Zt/2;return[de(u)*c,Rt(u)*c]},l.innerRadius=function(c){return arguments.length?(t=typeof c=="function"?c:z(+c),l):t},l.outerRadius=function(c){return arguments.length?(e=typeof c=="function"?c:z(+c),l):e},l.cornerRadius=function(c){return arguments.length?(n=typeof c=="function"?c:z(+c),l):n},l.padRadius=function(c){return arguments.length?(i=c==null?null:typeof c=="function"?c:z(+c),l):i},l.startAngle=function(c){return arguments.length?(r=typeof c=="function"?c:z(+c),l):r},l.endAngle=function(c){return arguments.length?(o=typeof c=="function"?c:z(+c),l):o},l.padAngle=function(c){return arguments.length?(s=typeof c=="function"?c:z(+c),l):s},l.context=function(c){return arguments.length?(a=c??null,l):a},l}function ll(t){this._context=t}ll.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 jr(t){return new ll(t)}function cl(t){return t[0]}function ul(t){return t[1]}function fl(){var t=cl,e=ul,n=z(!0),i=null,r=jr,o=null;function s(a){var l,c=a.length,u,f=!1,h;for(i==null&&(o=r(h=ln())),l=0;l<=c;++l)!(l<c&&n(u=a[l],l,a))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+t(u,l,a),+e(u,l,a));if(h)return o=null,h+""||null}return s.x=function(a){return arguments.length?(t=typeof a=="function"?a:z(+a),s):t},s.y=function(a){return arguments.length?(e=typeof a=="function"?a:z(+a),s):e},s.defined=function(a){return arguments.length?(n=typeof a=="function"?a:z(!!a),s):n},s.curve=function(a){return arguments.length?(r=a,i!=null&&(o=r(i)),s):r},s.context=function(a){return arguments.length?(a==null?i=o=null:o=r(i=a),s):i},s}function Dm(){var t=cl,e=null,n=z(0),i=ul,r=z(!0),o=null,s=jr,a=null;function l(u){var f,h,d,p=u.length,g,m=!1,y,v=new Array(p),x=new Array(p);for(o==null&&(a=s(y=ln())),f=0;f<=p;++f){if(!(f<p&&r(g=u[f],f,u))===m)if(m=!m)h=f,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),d=f-1;d>=h;--d)a.point(v[d],x[d]);a.lineEnd(),a.areaEnd()}m&&(v[f]=+t(g,f,u),x[f]=+n(g,f,u),a.point(e?+e(g,f,u):v[f],i?+i(g,f,u):x[f]))}if(y)return a=null,y+""||null}function c(){return fl().defined(r).curve(s).context(o)}return l.x=function(u){return arguments.length?(t=typeof u=="function"?u:z(+u),e=null,l):t},l.x0=function(u){return arguments.length?(t=typeof u=="function"?u:z(+u),l):t},l.x1=function(u){return arguments.length?(e=u==null?null:typeof u=="function"?u:z(+u),l):e},l.y=function(u){return arguments.length?(n=typeof u=="function"?u:z(+u),i=null,l):n},l.y0=function(u){return arguments.length?(n=typeof u=="function"?u:z(+u),l):n},l.y1=function(u){return arguments.length?(i=u==null?null:typeof u=="function"?u:z(+u),l):i},l.lineX0=l.lineY0=function(){return c().x(t).y(n)},l.lineY1=function(){return c().x(t).y(i)},l.lineX1=function(){return c().x(e).y(n)},l.defined=function(u){return arguments.length?(r=typeof u=="function"?u:z(!!u),l):r},l.curve=function(u){return arguments.length?(s=u,o!=null&&(a=s(o)),l):s},l.context=function(u){return arguments.length?(u==null?o=a=null:a=s(o=u),l):o},l}function Om(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Fm(t){return t}function zm(){var t=Fm,e=Om,n=null,i=z(0),r=z(Qt),o=z(0);function s(a){var l,c=a.length,u,f,h=0,d=new Array(c),p=new Array(c),g=+i.apply(this,arguments),m=Math.min(Qt,Math.max(-Qt,r.apply(this,arguments)-g)),y,v=Math.min(Math.abs(m)/c,o.apply(this,arguments)),x=v*(m<0?-1:1),C;for(l=0;l<c;++l)(C=p[d[l]=l]=+t(a[l],l,a))>0&&(h+=C);for(e!=null?d.sort(function(S,b){return e(p[S],p[b])}):n!=null&&d.sort(function(S,b){return n(a[S],a[b])}),l=0,f=h?(m-c*x)/h:0;l<c;++l,g=y)u=d[l],C=p[u],y=g+(C>0?C*f:0)+x,p[u]={data:a[u],index:l,value:C,startAngle:g,endAngle:y,padAngle:v};return p}return s.value=function(a){return arguments.length?(t=typeof a=="function"?a:z(+a),s):t},s.sortValues=function(a){return arguments.length?(e=a,n=null,s):e},s.sort=function(a){return arguments.length?(n=a,e=null,s):n},s.startAngle=function(a){return arguments.length?(i=typeof a=="function"?a:z(+a),s):i},s.endAngle=function(a){return arguments.length?(r=typeof a=="function"?a:z(+a),s):r},s.padAngle=function(a){return arguments.length?(o=typeof a=="function"?a:z(+a),s):o},s}const hl={draw:function(t,e){var n=Math.sqrt(e/Zt);t.moveTo(n,0),t.arc(0,0,n,0,Qt)}},Pm={draw:function(t,e){var n=Math.sqrt(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()}};var dl=Math.sqrt(1/3),Lm=dl*2;const Bm={draw:function(t,e){var n=Math.sqrt(e/Lm),i=n*dl;t.moveTo(0,-n),t.lineTo(i,0),t.lineTo(0,n),t.lineTo(-i,0),t.closePath()}};var Im=.8908130915292852,gl=Math.sin(Zt/10)/Math.sin(7*Zt/10),Hm=Math.sin(Qt/10)*gl,Um=-Math.cos(Qt/10)*gl;const Wm={draw:function(t,e){var n=Math.sqrt(e*Im),i=Hm*n,r=Um*n;t.moveTo(0,-n),t.lineTo(i,r);for(var o=1;o<5;++o){var s=Qt*o/5,a=Math.cos(s),l=Math.sin(s);t.lineTo(l*n,-a*n),t.lineTo(a*i-l*r,l*i+a*r)}t.closePath()}},Vm={draw:function(t,e){var n=Math.sqrt(e),i=-n/2;t.rect(i,i,n,n)}};var Zr=Math.sqrt(3);const Ym={draw:function(t,e){var n=-Math.sqrt(e/(Zr*3));t.moveTo(0,n*2),t.lineTo(-Zr*n,-n),t.lineTo(Zr*n,-n),t.closePath()}};var pt=-.5,mt=Math.sqrt(3)/2,Qr=1/Math.sqrt(12),Xm=(Qr/2+1)*3;const qm={draw:function(t,e){var n=Math.sqrt(e/Xm),i=n/2,r=n*Qr,o=i,s=n*Qr+n,a=-o,l=s;t.moveTo(i,r),t.lineTo(o,s),t.lineTo(a,l),t.lineTo(pt*i-mt*r,mt*i+pt*r),t.lineTo(pt*o-mt*s,mt*o+pt*s),t.lineTo(pt*a-mt*l,mt*a+pt*l),t.lineTo(pt*i+mt*r,pt*r-mt*i),t.lineTo(pt*o+mt*s,pt*s-mt*o),t.lineTo(pt*a+mt*l,pt*l-mt*a),t.closePath()}};function Gm(){var t=z(hl),e=z(64),n=null;function i(){var r;if(n||(n=r=ln()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return i.type=function(r){return arguments.length?(t=typeof r=="function"?r:z(r),i):t},i.size=function(r){return arguments.length?(e=typeof r=="function"?r:z(+r),i):e},i.context=function(r){return arguments.length?(n=r??null,i):n},i}function Jt(){}function pi(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 mi(t){this._context=t}mi.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:pi(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:pi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function jm(t){return new mi(t)}function pl(t){this._context=t}pl.prototype={areaStart:Jt,areaEnd:Jt,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:pi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Zm(t){return new pl(t)}function ml(t){this._context=t}ml.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:pi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Qm(t){return new ml(t)}function _l(t,e){this._basis=new mi(t),this._beta=e}_l.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 Jm=function t(e){function n(i){return e===1?new mi(i):new _l(i,e)}return n.beta=function(i){return t(+i)},n}(.85);function _i(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 Jr(t,e){this._context=t,this._k=(1-e)/6}Jr.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:_i(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:_i(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 Km=function t(e){function n(i){return new Jr(i,e)}return n.tension=function(i){return t(+i)},n}(0);function Kr(t,e){this._context=t,this._k=(1-e)/6}Kr.prototype={areaStart:Jt,areaEnd:Jt,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:_i(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 t0=function t(e){function n(i){return new Kr(i,e)}return n.tension=function(i){return t(+i)},n}(0);function to(t,e){this._context=t,this._k=(1-e)/6}to.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:_i(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 e0=function t(e){function n(i){return new to(i,e)}return n.tension=function(i){return t(+i)},n}(0);function eo(t,e,n){var i=t._x1,r=t._y1,o=t._x2,s=t._y2;if(t._l01_a>K){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>K){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/u,s=(s*c+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(i,r,o,s,t._x2,t._y2)}function yl(t,e){this._context=t,this._alpha=e}yl.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:eo(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 n0=function t(e){function n(i){return e?new yl(i,e):new Jr(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function vl(t,e){this._context=t,this._alpha=e}vl.prototype={areaStart:Jt,areaEnd:Jt,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:eo(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 i0=function t(e){function n(i){return e?new vl(i,e):new Kr(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function xl(t,e){this._context=t,this._alpha=e}xl.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:eo(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 r0=function t(e){function n(i){return e?new xl(i,e):new to(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function bl(t){this._context=t}bl.prototype={areaStart:Jt,areaEnd:Jt,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 o0(t){return new bl(t)}function wl(t){return t<0?-1:1}function kl(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(wl(o)+wl(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function Sl(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function no(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 yi(t){this._context=t}yi.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:no(this,this._t0,Sl(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,no(this,Sl(this,n=kl(this,t,e)),n);break;default:no(this,this._t0,n=kl(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function Tl(t){this._context=new Cl(t)}(Tl.prototype=Object.create(yi.prototype)).point=function(t,e){yi.prototype.point.call(this,e,t)};function Cl(t){this._context=t}Cl.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 s0(t){return new yi(t)}function a0(t){return new Tl(t)}function Ml(t){this._context=t}Ml.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=Al(t),r=Al(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 Al(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 l0(t){return new Ml(t)}function vi(t,e){this._context=t,this._t=e}vi.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 c0(t){return new vi(t,.5)}function u0(t){return new vi(t,0)}function f0(t){return new vi(t,1)}function $l(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 h0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$l(Object(n),!0).forEach(function(i){d0(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$l(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function cn(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?cn=function(e){return typeof e}:cn=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cn(t)}function d0(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xi(){return xi=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},xi.apply(this,arguments)}function g0(t,e){if(t){if(typeof t=="string")return El(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 El(t,e)}}function El(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 Nl(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=g0(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 p0(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 m0(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 _0(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=p0(i,s);n.push(a.left),i=a.right}return n.push(i),n}function y0(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]),_0(i,n).map(m0)}var v0=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,Ne={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(Ne).forEach(function(t){Ne[t.toLowerCase()]=Ne[t]});function io(t,e){for(var n=Array(t),i=0;i<t;i++)n[i]=e;return n}function x0(t){return"".concat(t.type).concat(Ne[t.type].map(function(e){return t[e]}).join(","))}function b0(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 w0(t,e,n){var i=[];if(e.type==="L"||e.type==="Q"||e.type==="C")i=i.concat(y0(t,e,n));else{var r=xi({},t);r.type==="M"&&(r.type="L"),i=i.concat(io(n-1).map(function(){return r})),i.push(e)}return i}function Rl(t,e,n){var i=t.length-1,r=e.length-1,o=i/r,s=io(r).reduce(function(l,c,u){var f=Math.floor(o*u);if(n&&f<t.length-1&&n(t[f],t[f+1])){var h=o*u%1<.5;l[f]&&(h?f>0?f-=1:f<t.length-1&&(f+=1):f<t.length-1?f+=1:f>0&&(f-=1))}return l[f]=(l[f]||0)+1,l},[]),a=s.reduce(function(l,c,u){if(u===t.length-1){var f=io(c,xi({},t[t.length-1]));return f[0].type==="M"&&f.forEach(function(h){h.type="L"}),l.concat(f)}return l.concat(w0(t[u],t[u+1],c))},[]);return a.unshift(t[0]),a}function Dl(t){for(var e=(t||"").match(v0)||[],n=[],i,r,o=0;o<e.length;++o)if(i=Ne[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 k0(t,e,n){var i=t==null?[]:t.slice(),r=e==null?[]:e.slice(),o=cn(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=Rl(i,r,s):r.length<i.length&&(r=Rl(r,i,s))),i=i.map(function(f,h){return b0(f,r[h])});var u=i.map(function(f){return h0({},f)});return l&&(u.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<u.length;++d){var p=i[d],g=r[d],m=u[d],y=Nl(Ne[m.type]),v;try{for(y.s();!(v=y.n()).done;){var x=v.value;m[x]=(1-h)*p[x]+h*g[x],(x==="largeArcFlag"||x==="sweepFlag")&&(m[x]=Math.round(m[x]))}}catch(C){y.e(C)}finally{y.f()}}return u}}function Ol(t,e,n){var i=Dl(t),r=Dl(e),o=cn(n)==="object"?n:{excludeSegment:n,snapEndsToInput:!0},s=o.excludeSegment,a=o.snapEndsToInput;if(!i.length&&!r.length)return function(){return""};var l=k0(i,r,{excludeSegment:s,snapEndsToInput:a});return function(u){if(u===1&&a)return e??"";var f=l(u),h="",d=Nl(f),p;try{for(d.s();!(p=d.n()).done;){var g=p.value;h+=x0(g)}}catch(m){d.e(m)}finally{d.f()}return h}}function wt(t,e,n,i){return Array.isArray(e)&&isFinite(n)?e[n%e.length]:An(t,e,n)||(Ct(n)&&!i?`var(${Gt(n)})`:null)}var W;(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"})(W||(W={}));const ro={[W.Basis]:jm,[W.BasisClosed]:Zm,[W.BasisOpen]:Qm,[W.Bundle]:Jm,[W.Cardinal]:Km,[W.CardinalClosed]:t0,[W.CardinalOpen]:e0,[W.CatmullRom]:n0,[W.CatmullRomClosed]:i0,[W.CatmullRomOpen]:r0,[W.Linear]:jr,[W.LinearClosed]:o0,[W.MonotoneX]:s0,[W.MonotoneY]:a0,[W.Natural]:l0,[W.Step]:c0,[W.StepAfter]:f0,[W.StepBefore]:u0},S0=Object.assign(Object.assign({},an),{curveType:W.MonotoneX,lineWidth:2,lineDashArray:void 0,fallbackValue:void 0,highlightOnHover:!1,cursor:null}),T0=qt`
116
+ :root {
117
+ --vis-line-cursor: default;
118
+ --vis-line-stroke-dasharray: none;
119
+ --vis-line-stroke-dashoffset: 0;
120
+ }
121
+ `,C0=D`
122
+ label: line-component;
123
+ `,un=D`
124
+ label: line;
125
+ transition: opacity 200ms;
126
+ cursor: var(--vis-line-cursor);
127
+ `,oo=D`
128
+ label: linePath;
129
+ fill: none;
130
+ stroke-dasharray: var(--vis-line-stroke-dasharray);
131
+ stroke-dashoffset: var(--vis-line-stroke-dashoffset);
132
+ `,so=D`
133
+ label: lineSelectionHelper;
134
+ fill: none;
135
+ stroke: rgba(0, 0, 0, 0);
136
+ stroke-width: 8px;
137
+ `,ao=D`
138
+ opacity: 0.2;
139
+ `,M0=Object.freeze(Object.defineProperty({__proto__:null,dim:ao,globalStyles:T0,line:un,linePath:oo,lineSelectionHelper:so,root:C0},Symbol.toStringTag,{value:"Module"}));class bi extends fi{constructor(e){super(),this._defaultConfig=S0,this.config=this._defaultConfig,this.curve=ro[W.MonotoneX],this.events={[bi.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]?fe.North:fe.South)===fe.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=Ct(e)?e:n.duration;this.curve=ro[n.curveType],this.lineGen=fl().x(f=>f.x).y(f=>f.y).defined(f=>f.defined).curve(this.curve);const o=Yt(n.y)?n.y:[n.y],s=i.map((f,h)=>this.xScale(V(f,n.x,h))),a=o.map(f=>{const h=i.map((g,m)=>{const y=V(g,f,m),v=(Ct(y)||y===null)&&isFinite(y)?y:n.fallbackValue;return{x:s[m],y:this.yScale(v??0),defined:isFinite(v),value:v}}),d=h.reduce((g,m)=>m.defined||g,!1),p=d&&h.some(g=>g.value!==null);return{values:h,defined:d,visible:p}}),l=this.g.selectAll(`.${un}`).data(a),c=l.enter().append("g").attr("class",un);c.append("path").attr("class",oo).attr("stroke",(f,h)=>wt(i,n.color,h)).attr("stroke-opacity",0).attr("stroke-width",n.lineWidth),c.append("path").attr("class",so).attr("d",this._emptyPath());const u=c.merge(l);u.style("cursor",(f,h)=>An(i,n.cursor,h)),u.each((f,h,d)=>{var p;const g=et(d[h]),m=g.select(`.${oo}`),y=g.select(`.${so}`),v=f.visible,x=Hi(i,n.lineDashArray,h),C=nt(m,r).attr("stroke",wt(i,n.color,h)).attr("stroke-width",n.lineWidth).attr("stroke-opacity",v?1:0).style("stroke-dasharray",(p=x==null?void 0:x.join(" "))!==null&&p!==void 0?p:null),S=f.values.some(T=>!T.defined),b=this.lineGen(f.values);if(r&&!S){const T=m.attr("d")||this._emptyPath(),O=b||this._emptyPath();C.attrTween("d",()=>Ol(T,O))}else f.visible&&C.attr("d",b);y.attr("d",b).attr("visibility",v?null:"hidden")}),nt(l.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(`.${un}`).classed(ao,i=>i!==e)}_resetHighlight(){const{config:e}=this;e.highlightOnHover&&this.g.selectAll(`.${un}`).classed(ao,!1)}}bi.selectors=M0;function A0(t){return t}var wi=1,ki=2,lo=3,fn=4,Fl=1e-6;function $0(t){return"translate("+t+",0)"}function E0(t){return"translate(0,"+t+")"}function N0(t){return e=>+t(e)}function R0(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function D0(){return!this.__axis}function Si(t,e){var n=[],i=null,r=null,o=6,s=6,a=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,c=t===wi||t===fn?-1:1,u=t===fn||t===ki?"x":"y",f=t===wi||t===lo?$0:E0;function h(d){var p=i??(e.ticks?e.ticks.apply(e,n):e.domain()),g=r??(e.tickFormat?e.tickFormat.apply(e,n):A0),m=Math.max(o,0)+a,y=e.range(),v=+y[0]+l,x=+y[y.length-1]+l,C=(e.bandwidth?R0:N0)(e.copy(),l),S=d.selection?d.selection():d,b=S.selectAll(".domain").data([null]),T=S.selectAll(".tick").data(p,e).order(),O=T.exit(),N=T.enter().append("g").attr("class","tick"),H=T.select("line"),E=T.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),T=T.merge(N),H=H.merge(N.append("line").attr("stroke","currentColor").attr(u+"2",c*o)),E=E.merge(N.append("text").attr("fill","currentColor").attr(u,c*m).attr("dy",t===wi?"0em":t===lo?"0.71em":"0.32em")),d!==S&&(b=b.transition(d),T=T.transition(d),H=H.transition(d),E=E.transition(d),O=O.transition(d).attr("opacity",Fl).attr("transform",function(w){return isFinite(w=C(w))?f(w+l):this.getAttribute("transform")}),N.attr("opacity",Fl).attr("transform",function(w){var $=this.parentNode.__axis;return f(($&&isFinite($=$(w))?$:C(w))+l)})),O.remove(),b.attr("d",t===fn||t===ki?s?"M"+c*s+","+v+"H"+l+"V"+x+"H"+c*s:"M"+l+","+v+"V"+x:s?"M"+v+","+c*s+"V"+l+"H"+x+"V"+c*s:"M"+v+","+l+"H"+x),T.attr("opacity",1).attr("transform",function(w){return f(C(w)+l)}),H.attr(u+"2",c*o),E.attr(u,c*m).text(g),S.filter(D0).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===ki?"start":t===fn?"end":"middle"),S.each(function(){this.__axis=C})}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?(l=+d,h):l},h}function zl(t){return Si(wi,t)}function Pl(t){return Si(ki,t)}function Ll(t){return Si(lo,t)}function Bl(t){return Si(fn,t)}var ge;(function(t){t.Start="start",t.Middle="middle",t.End="end"})(ge||(ge={}));var pe;(function(t){t.Top="top",t.Middle="middle",t.Bottom="bottom"})(pe||(pe={}));var Ti;(function(t){t.Wrap="wrap",t.Trim="trim"})(Ti||(Ti={}));var kt;(function(t){t.Left="left",t.Center="center",t.Right="right"})(kt||(kt={}));var Ci={exports:{}},O0=Ci.exports,Il;function F0(){return Il||(Il=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 l(p,g,m){p=p||"",g=g||[],m=m||"";let y=u(g,m);return f(p,y)}function c(p,g){p=p||[],g=g||"";let m=u(p,g);return function(v){return f(v||"",m)}}l.init_streaming_mode=c;function u(p,g){return p=h(p),{allowable_tags:p,tag_replacement:g,state:i,tag_buffer:"",depth:0,in_quote_char:""}}function f(p,g){if(typeof p!="string")throw new TypeError("'html' parameter must be a string");let m=g.allowable_tags,y=g.tag_replacement,v=g.state,x=g.tag_buffer,C=g.depth,S=g.in_quote_char,b="";for(let T=0,O=p.length;T<O;T++){let N=p[T];if(v===i)switch(N){case"<":v=r,x+=N;break;default:b+=N;break}else if(v===r)switch(N){case"<":if(S)break;C++;break;case">":if(S)break;if(C){C--;break}S="",v=i,x+=">",m.has(d(x))?b+=x:b+=y,x="";break;case'"':case"'":N===S?S="":S=S||N,x+=N;break;case"-":x==="<!-"&&(v=o),x+=N;break;case" ":case`
140
+ `:if(x==="<"){v=i,b+="< ",x="";break}x+=N;break;default:x+=N;break}else if(v===o)switch(N){case">":x.slice(-2)=="--"&&(v=i),x="";break;default:x+=N;break}}return g.state=v,g.tag_buffer=x,g.depth=C,g.in_quote_char=S,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=l:e.striptags=l})(O0)}(Ci)),Ci.exports}var z0=F0();const P0=Sh(z0);function L0(t){switch(t){case kt.Center:return"middle";case kt.Right:return"end";case kt.Left:default:return"start"}}function B0(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 I0(t){return t.replace(/['"]/g,"&#39;").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 H0(t="",e=15){return t.length>e?`…${t.substr(t.length-e,e)}`:t}function U0(t="",e=15){const n=Math.floor((e-3)/2);return t.length>e?`${t.substr(0,n)}…${t.substr(-n,n)}`:t}function W0(t="",e=15){return t.length>e?`${t.substr(0,e)}…`:t}function V0(t="",e=15,n=ge.Middle){let i=W0(t,e);return n===ge.Start?i=H0(t,e):n===ge.Middle&&(i=U0(t,e)),i}function Hl(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),l=a.map((c,u)=>`${c}${u===a.length-1?"":r}`);n[s]=l}),n=Ii(n)}return n}function Y0(t,e,n=[" ","-",".",","]){const i=t.text();if(!i)return;const r=Yt(n)?n:[n],o=Hl(i,r),s=parseFloat(t.attr("x"))||0;t.text("");let a=t.append("tspan").attr("x",s),l=`${o[0]}`;a.text(l),o.forEach((c,u)=>{if(u===0)return;const f=`${l}${c}`;a.text(f),a.node().getComputedTextLength()>e?(a.text(l.trim()),a=t.append("tspan").attr("x",s).attr("dy","1.2em").text(c),l=c):l+=c})}function X0(t,e,n,i,r,o){var s;e===void 0&&(e=50),n===void 0&&(n=ge.Middle),r===void 0&&(r=+((s=window.getComputedStyle(t.node()))===null||s===void 0?void 0:s.fontSize)||0);const a=t.text(),l=a.length,c=r*l*o,f=Math.ceil(l*e/(1.1*c));return f<l?(t.text(V0(a,f,n)),!0):!1}function Mi(t,e,n=Xh()){return t.length*e*n||0}function Ai(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 q0(t,e=void 0,n=!0,i=Fs,r=!1){const o=`${t.text}`;if(!o)return[];const s=Array.isArray(i)?i:[i];return o.split(`
141
+ `).map(l=>{const c=[];if(!e)return[l];const u=Hl(l,s);let f="";for(let h=0;h<u.length;h+=1){(n?Mi(f+u[h],t.fontSize,t.fontWidthToHeightRatio):Ai(f+u[h],t.fontFamily,t.fontSize))<e||h===0?f+=u[h]:(c.push(f.trim()),f=u[h]);const p=2;if(r)for(;f.trim().length>p&&(n?Mi(f,t.fontSize,t.fontWidthToHeightRatio):Ai(f,t.fontFamily,t.fontSize))>e;){let m=f.trim().length-p;for(;m>0;){const y=`${f.substring(0,m)}${zs}`;if((n?Mi(y,t.fontSize,t.fontWidthToHeightRatio):Ai(y,t.fontFamily,t.fontSize))<=e||m===1){c.push(y.trim()),f=f.substring(m);break}m--}}}return f&&c.push(f.trim()),c}).flat()}function G0(t,e=void 0,n=void 0,i=!0,r=Fs,o=!1){const s=Array.isArray(t)?t.map(f=>Kt(Ps,f)):[Kt(Ps,t)],a=s.map(f=>q0(f,e,i,r,o)),l=s[0];let c=-l.fontSize*(l.lineHeight-1);const u=[];return s.forEach((f,h)=>{var d;let p=a[h];const g=h>0?u[h-1]:void 0,m=g?g.marginBottom:0,y=f.marginTop,v=Math.max(m,y);c+=v;const x=f.fontSize*f.lineHeight;let C=0;for(let S=0;S<p.length;S+=1){let b=p[S];c+=x;const T=`${b} …`,O=i?Mi(T,f.fontSize,f.fontWidthToHeightRatio):Ai(T,f.fontFamily,f.fontSize);if(C=Math.max(O,C),n&&c+x>n&&S!==p.length-1){b.charAt(b.length-1)===zs&&(b=b.substr(0,p[S].length-1)),O<e?p[S]=T:p[S]=`${p[S].substr(0,p[S].length-2)}…`,p=p.slice(0,S+1);break}}u.push(Object.assign(Object.assign({},f),{_lines:p,_estimatedHeight:c-((g==null?void 0:g._estimatedHeight)||0),_maxWidth:Math.max(C,(d=g==null?void 0:g._maxWidth)!==null&&d!==void 0?d:0)}))}),u}function j0(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,l=Math.max(s,a),c={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(c).filter(([f,h])=>h).map(([f,h])=>`${B0(f)}="${I0(h.toString())}"`).join(" ")}>${i._lines.map((f,h)=>{let d;return r===0&&h===0?d=.8+l:h===0?d=l+i.lineHeight:d=i.lineHeight,`<tspan x="${e}" dy="${d}em">${f.length?f:" "}</tspan>`}).join("")}</tspan>`})}function Z0(t){return lf(t,e=>e._estimatedHeight)}const Q0=["text","tspan","textPath","altGlyph","altGlyphDef","altGlyphItem","glyphRef","textRef","textArea"];function J0(t,e,n,i){var r,o;const s=G0(e,n.width,void 0,n.fastMode,n.separator,n.wordBreak),a=(r=n.x)!==null&&r!==void 0?r:+t.getAttribute("x"),l=(o=n.y)!==null&&o!==void 0?o:+t.getAttribute("y"),c=a??0;let u=l??0;if(n.textAlign&&t.setAttribute("text-anchor",L0(n.textAlign)),n.verticalAlign&&n.verticalAlign!==pe.Top){const f=Z0(s),h=n.verticalAlign===pe.Middle?-f/2:n.verticalAlign===pe.Bottom?-f:0;u+=h}n.textRotationAngle?t.setAttribute("transform",`rotate(${n.textRotationAngle===0||n.textRotationAngle?n.textRotationAngle:0} ${c} ${u})`):t.removeAttribute("transform");{const f=new DOMParser;t.textContent="",s.forEach(h=>{const d=j0([h],c,u).join(""),p=P0(d,Q0),g=f.parseFromString(p,"image/svg+xml").firstChild;t.appendChild(g)})}}const K0=Object.assign(Object.assign({},an),{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:ge.Middle,tickTextFitMode:Ti.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}),Ul=D`
142
+ label: axis-component;
143
+ `,t_=qt`
144
+ :root {
145
+ // Undefined by default to allow proper fallback to var(--vis-font-family)
146
+ /* --vis-axis-font-family: */
147
+ --vis-axis-tick-color: #e8e9ef;
148
+ /* --vis-axis-domain-color: // Undefined by default to allow fallback to var(--vis-axis-tick-color) */
149
+ --vis-axis-grid-color: #e8e9ef;
150
+ --vis-axis-label-color: #6c778c;
151
+ --vis-axis-tick-label-color: #6c778c;
152
+ --vis-axis-tick-label-font-size: 12px;
153
+ --vis-axis-tick-label-cursor: default;
154
+ --vis-axis-tick-label-text-decoration: none;
155
+ --vis-axis-label-font-size: 14px;
156
+ --vis-axis-tick-line-width: 1px;
157
+ --vis-axis-tick-label-hide-transition: opacity 400ms ease-in-out;
158
+ --vis-axis-grid-line-width: 1px;
159
+ /* --vis-axis-domain-line-width: // Undefined by default to allow fallback to var(--vis-axis-grid-line-width) */
160
+
161
+ --vis-dark-axis-tick-color: #6c778c;
162
+ /* --vis-dark-axis-domain-color: // Undefined by default to allow fallback to var(--vis-dark-axis-tick-color) */
163
+ --vis-dark-axis-tick-label-color: #e8e9ef;
164
+ --vis-dark-axis-grid-color: #6c778c;
165
+ --vis-dark-axis-label-color: #fefefe;
166
+ }
167
+
168
+ body.theme-dark ${`.${Ul}`} {
169
+ --vis-axis-tick-color: var(--vis-dark-axis-tick-color);
170
+ --vis-axis-domain-color: var(--vis-dark-axis-domain-color);
171
+ --vis-axis-tick-label-color: var(--vis-dark-axis-tick-label-color);
172
+ --vis-axis-grid-color: var(--vis-dark-axis-grid-color);
173
+ --vis-axis-label-color: var(--vis-dark-axis-label-color);
174
+ }
175
+ `,co=D`
176
+ label: hide-tick-line;
177
+ `,uo=D`
178
+ label: hide-domain;
179
+ `,Wl=D`
180
+ label: axis;
181
+
182
+ user-select: none;
183
+
184
+ .domain {
185
+ stroke: var(--vis-axis-domain-color, var(--vis-axis-tick-color));
186
+ stroke-width: var(--vis-axis-domain-line-width, var(--vis-axis-grid-line-width));
187
+ }
188
+
189
+ &${`.${co}`} {
190
+ .tick > line {
191
+ opacity: 0;
192
+ }
193
+ }
194
+
195
+ &${`.${uo}`} {
196
+ .domain {
197
+ opacity: 0;
198
+ }
199
+ }
200
+ `,Vl=D`
201
+ label: grid;
202
+
203
+ .domain {
204
+ opacity: 0;
205
+ }
206
+
207
+ line {
208
+ stroke: var(--vis-axis-grid-color);
209
+ stroke-width: var(--vis-axis-grid-line-width);
210
+ }
211
+ `,Yl=D`
212
+ label: tick;
213
+
214
+ stroke: none;
215
+ font-size: var(--vis-axis-tick-label-font-size);
216
+
217
+ line {
218
+ stroke: var(--vis-axis-tick-color);
219
+ stroke-width: var(--vis-axis-tick-line-width);
220
+ }
221
+
222
+ text {
223
+ fill: var(--vis-axis-tick-label-color);
224
+ cursor: var(--vis-axis-tick-label-cursor);
225
+ font-family: var(--vis-axis-font-family, var(--vis-font-family));
226
+ text-decoration: var(--vis-axis-tick-label-text-decoration);
227
+ stroke: none;
228
+ }
229
+ `,fo=D`
230
+ label: label;
231
+ fill: var(--vis-axis-label-color);
232
+ font-size: var(--vis-axis-label-font-size);
233
+ font-family: var(--vis-axis-font-family, var(--vis-font-family));
234
+ text-anchor: middle;
235
+ `,Xl=D`
236
+ label: tick-label;
237
+ `,ql=D`
238
+ label: tick-label-hideable;
239
+ opacity: 0;
240
+ transition: var(--vis-axis-tick-label-hide-transition);
241
+ `,e_=Object.freeze(Object.defineProperty({__proto__:null,axis:Wl,globalStyles:t_,grid:Vl,hideDomain:uo,hideTickLine:co,label:fo,root:Ul,tick:Yl,tickLabel:Xl,tickLabelHideable:ql},Symbol.toStringTag,{value:"Module"}));class Gl extends fi{constructor(e){super(),this._defaultConfig=K0,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",Vl)}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===I.X?A.Bottom:A.Left)}_getAxisSize(e){return e.node().getBBox()}_getRequiredMargin(e=this._axisSizeBBox){const{config:{type:n,position:i}}=this;switch(n){case I.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 A.Top:return{top:e.height,left:s,right:a};case A.Bottom:default:return{bottom:e.height,left:s,right:a}}}case I.Y:{const r=e.height>this._height?(e.height-this._height)/2:0,o=r,s=r;switch(i){case A.Right:return{right:e.width,top:o,bottom:s};case A.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 I.X:switch(i){case A.Top:return{top:e.top,left:e.left};case A.Bottom:default:return{top:e.top+this._height,left:e.left}}case I.Y:switch(i){case A.Right:return{top:e.top,left:e.left+this._width};case A.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(),nt(this.gridGroup,e).call(r).style("opacity",1)}else nt(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 I.X:switch(n){case A.Top:return zl(this.xScale).ticks(r).tickPadding(i);case A.Bottom:default:return Ll(this.xScale).ticks(r).tickPadding(i)}case I.Y:switch(n){case A.Right:return Pl(this.yScale).ticks(r).tickPadding(i);case A.Left:default:return Bl(this.yScale).ticks(r).tickPadding(i)}}}_buildGrid(){const{config:{type:e,position:n}}=this,i=this._getNumTicks();switch(e){case I.X:switch(n){case A.Top:return zl(this.xScale).ticks(i*2).tickSize(-this._height).tickSizeOuter(0);case A.Bottom:default:return Ll(this.xScale).ticks(i*2).tickSize(-this._height).tickSizeOuter(0)}case I.Y:switch(n){case A.Right:return Pl(this.yScale).ticks(i*2).tickSize(-this._width).tickSizeOuter(0);case A.Left:default:return Bl(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(),nt(e,n).call(r);const s=e.selectAll("g.tick");s.classed(Yl,!0).style("font-size",i.tickTextFontSize);const a=e.selectAll("g.tick > text").filter(l=>o.some(c=>Pe(l,c))).classed(Xl,!0).classed(ql,!!i.tickTextHideOverlapping).style("fill",i.tickTextColor);if(a.nodes().forEach(l=>gr(l)),a.each((l,c,u)=>{var f,h;let d=(h=(f=i.tickFormat)===null||f===void 0?void 0:f.call(i,l,c,o))!==null&&h!==void 0?h:`${l}`;const p=u[c],g=i.tickTextWidth||(i.type===I.X?this._containerWidth/(s.size()+1):this._containerWidth/5),m=getComputedStyle(p),y=Number.parseFloat(m.fontSize),v=m.fontFamily,x={verticalAlign:i.type===I.X?pe.Top:pe.Middle,width:g,textRotationAngle:i.tickTextAngle,separator:i.tickTextSeparator,wordBreak:i.tickTextForceWordBreak};if(i.tickTextFitMode===Ti.Trim){const S=et(p).text(d);X0(S,g,i.tickTextTrimType,!0,y,.58),d=et(p).text()}J0(p,{text:d,fontFamily:v,fontSize:y},x)}),e.classed(Wl,!0).classed(co,!i.tickLine).classed(uo,!i.domainLine),i.fullSize){const l=this._getFullDomainPath(0);nt(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 u=o+1;u<s.length;u+=1){if(o===u)continue;const f=s[u];if(f._visible){const d=f.getBoundingClientRect();if(Ah(c,d,-5)){f._visible=!1;break}}}});e.each((i,r,o)=>{const s=o[r];et(s).style("opacity",s._visible?1:0)})}_getNumTicks(){const{config:{type:e,numTicks:n}}=this;if(n)return n;if(e===I.X){const i=this.xScale.range(),r=i[1]-i[0];return Math.floor(r/175)}if(e===I.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===I.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===I.X&&this._width<e.minMaxTicksOnlyWhenWidthIsLess?i:null}_getFullDomainPath(e=0){const{config:{type:n}}=this;switch(n){case I.X:return`M0.5, ${e} V0.5 H${this._width+.5} V${e}`;case I.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(`.${fo}`).remove();const a=this.getPosition(),{width:l,height:c}=(n=this._axisRawBBox)!==null&&n!==void 0?n:e.node().getBBox(),u=i===I.X?this._width/2:Math.pow(-1,+(a===A.Left))*l,f=i===I.X?Math.pow(-1,+(a===A.Top))*c:this._height/2,h=i===I.X?0:Math.pow(-1,+(a===A.Left))*o,d=i===I.X?Math.pow(-1,+(a===A.Top))*o:0,p=i===I.Y?-90:0;e.append("text").attr("class",fo).text(r).attr("dy",`${this._getLabelDY()}em`).attr("transform",`translate(${u+h},${f+d}) rotate(${p})`).style("font-size",s).style("fill",this.config.labelColor)}_getLabelDY(){const{type:e,position:n}=this.config;switch(e){case I.X:switch(n){case A.Top:return 0;case A.Bottom:default:return .75}case I.Y:switch(n){case A.Right:return .75;case A.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===I.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 kt.Left:return"start";case kt.Right:return"end";case kt.Center:return"middle";default:return null}}_getYTickTextTranslate(e,n=A.Left){const r=this._axisRawBBox.width-9;switch(e){case kt.Left:return n===A.Left?r*-1:0;case kt.Right:return n===A.Left?0:r;case kt.Center:return n===A.Left?r*-.5:r*.5;default:return 0}}}Gl.selectors=e_;var Dt;(function(t){t.Circle="circle",t.Cross="cross",t.Diamond="diamond",t.Square="square",t.Star="star",t.Triangle="triangle",t.Wye="wye"})(Dt||(Dt={}));const n_={[Dt.Circle]:hl,[Dt.Cross]:Pm,[Dt.Diamond]:Bm,[Dt.Square]:Vm,[Dt.Star]:Wm,[Dt.Triangle]:Ym,[Dt.Wye]:qm},ct=Object.assign(Object.assign({},Dt),{Line:"line"});var $i;(function(t){t.Horizontal="horizontal",t.Vertical="vertical"})($i||($i={}));const i_={items:[],labelClassName:"",onLegendItemClick:void 0,labelFontSize:null,labelMaxWidth:null,bulletSize:null,bulletShape:t=>{var e;return(e=t.shape)!==null&&e!==void 0?e:ct.Circle},orientation:$i.Horizontal,renderIntoProvidedDomNode:!1},ho=je*3,r_={[ct.Circle]:Math.PI/4,[ct.Cross]:5/9,[ct.Diamond]:Math.sqrt(3)/6,[ct.Square]:1,[ct.Star]:.3,[ct.Triangle]:Math.sqrt(3)/4,[ct.Wye]:5/11};function o_(t){t.each((e,n,i)=>{et(i[n]).append("svg").attr("width","100%").attr("height","100%").append("path")})}function s_(t,e,n){t.each((i,r,o)=>{const s=An(i,e.bulletShape,r),a=wt(i,n,r),l=ho,c=s===ct.Line?ho/2.5:ho,f=et(o[r]).select("svg").attr("viewBox",`0 0 ${l} ${c}`).select("path").attr("stroke",a),h=i.inactive?"var(--vis-legend-bullet-inactive-opacity)":1;if(s===ct.Line)f.attr("d",`M0,${c/2} L${l/2},${c/2} L${l},${c/2}`).attr("transform",null).style("opacity",h).style("stroke-width","3px").style("fill",null).style("fill-opacity",null).style("marker-start","none").style("marker-end","none");else{const d=Gm().type(n_[s]).size(l*c*r_[s]),p=(l-2)/l;let g=c/2;switch(s){case ct.Triangle:g+=c/8;break;case ct.Star:g+=c/16;break;case ct.Wye:g-=c/16;break}f.attr("d",d).attr("transform",`translate(${l/2}, ${Math.round(g)}) scale(${p})`).style("stroke-width","1px").style("opacity",null).style("fill",a).style("fill-opacity",h)}})}const go=D`
242
+ label: bullet-legend-component;
243
+ `,a_=qt`
244
+ :root {
245
+ // Undefined by default to allow proper fallback to var(--vis-font-family)
246
+ /* --vis-legend-font-family: */
247
+
248
+ --vis-legend-label-color: #6c778c;
249
+ --vis-legend-label-max-width: 300px;
250
+ --vis-legend-label-font-size: 12px;
251
+ --vis-legend-bullet-size: 9px;
252
+ --vis-legend-bullet-inactive-opacity: 0.15;
253
+ --vis-legend-item-spacing: 20px;
254
+ --vis-legend-vertical-item-spacing: 5px;
255
+ --vis-legend-bullet-label-spacing: 8px;
256
+
257
+ --vis-dark-legend-label-color: #eee;
258
+ }
259
+
260
+ body.theme-dark ${`.${go}`} {
261
+ --vis-legend-label-color: var(--vis-dark-legend-label-color);
262
+ }
263
+
264
+ body.theme-patterns {
265
+ --vis-legend-bullet-size: 14px;
266
+ }
267
+ `,Ei=D`
268
+ label: legendItem;
269
+ display: inline-flex;
270
+ align-items: center;
271
+ font-family: var(--vis-legend-font-family, var(--vis-font-family));
272
+ margin-right: var(--vis-legend-item-spacing);
273
+ white-space: nowrap;
274
+ cursor: default;
275
+ user-select: none;
276
+ max-width: min-content;
277
+ `,jl=D`
278
+ label: legendItemVertical;
279
+ display: flex;
280
+ margin-top: var(--vis-legend-vertical-item-spacing);
281
+ `,Zl=D`
282
+ cursor: pointer;
283
+ `,po=D`
284
+ label: legendItemLabel;
285
+ font-size: var(--vis-legend-label-font-size);
286
+ display: inline-block;
287
+ vertical-align: middle;
288
+ color: var(--vis-legend-label-color);
289
+ max-width: var(--vis-legend-label-max-width);
290
+ text-overflow: ellipsis;
291
+ overflow: hidden;
292
+ white-space: nowrap;
293
+ `,mo=D`
294
+ flex: 0 0 auto;
295
+ label: legendItemBullet;
296
+ margin-right: var(--vis-legend-bullet-label-spacing);
297
+ height: var(--vis-legend-bullet-size);
298
+ width: var(--vis-legend-bullet-size);
299
+
300
+ svg {
301
+ display: block;
302
+ }
303
+ `,l_=Object.freeze(Object.defineProperty({__proto__:null,bullet:mo,clickable:Zl,item:Ei,itemVertical:jl,label:po,root:go,variables:a_},Symbol.toStringTag,{value:"Module"}));class Ql{constructor(e,n){this._defaultConfig=i_,this.config=this._defaultConfig,this._colorAccessor=i=>i.color,this._container=e,this.div=n!=null&&n.renderIntoProvidedDomNode?et(this._container):et(this._container).append("div"),this.div.classed(go,!0),this.element=this.div.node(),n&&this.update(n)}update(e){this.prevConfig=this.config,this.config=Kt(this._defaultConfig,e),this.render()}render(){const{config:e}=this,n=this.div.selectAll(`.${Ei}`).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`${Ei} ${(s=o.className)!==null&&s!==void 0?s:""}`}).classed(jl,e.orientation===$i.Vertical).classed(Zl,o=>!!e.onLegendItemClick&&this._isItemClickable(o)).attr("title",o=>o.name).style("display",o=>o.hidden?"none":null),i.append("span").attr("class",mo).call(o_),r.select(`.${mo}`).style("width",e.bulletSize).style("height",e.bulletSize).style("box-sizing","content-box").call(s_,this.config,this._colorAccessor),i.append("span").attr("class",po).classed(e.labelClassName,!0).style("max-width",e.labelMaxWidth).style("font-size",e.labelFontSize),r.select(`.${po}`).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(`.${Ei}`).nodes().indexOf(e.currentTarget);i&&i(n,o)}destroy(){this.element!==this._container&&this.div.remove()}}Ql.selectors=l_;const c_=Object.assign(Object.assign({},an),{yStacked:void 0,baseline:null,duration:100,tooltip:void 0,template:(t,e)=>"",hideWhenFarFromPointer:!0,hideWhenFarFromPointerDistance:100,snapToData:!0,getCircles:void 0,color:void 0,strokeColor:void 0,strokeWidth:void 0}),u_=qt`
304
+ :root {
305
+ --vis-crosshair-line-stroke-color: #888;
306
+ --vis-crosshair-line-stroke-width: 1px;
307
+ --vis-crosshair-line-stroke-opacity: 1;
308
+ --vis-crosshair-circle-stroke-color: #fff;
309
+ --vis-crosshair-circle-stroke-width: 1px;
310
+ --vis-crosshair-circle-stroke-opacity: 0.75;
311
+ }
312
+ `,f_=D`
313
+ label: crosshair-component;
314
+ `,Jl=D`
315
+ stroke: var(--vis-crosshair-line-stroke-color);
316
+ stroke-width: var(--vis-crosshair-line-stroke-width);
317
+ stroke-opacity: var(--vis-crosshair-line-stroke-opacity);
318
+ pointer-events: none;
319
+ `,Kl=D`
320
+ stroke: var(--vis-crosshair-circle-stroke-color);
321
+ stroke-width: var(--vis-crosshair-circle-stroke-width);
322
+ stroke-opacity: var(--vis-crosshair-circle-stroke-opacity);
323
+ pointer-events: none;
324
+ `,h_=Object.freeze(Object.defineProperty({__proto__:null,circle:Kl,globalStyles:u_,line:Jl,root:f_},Symbol.toStringTag,{value:"Module"}));class tc extends fi{constructor(e){super(),this.clippable=!0,this._defaultConfig=c_,this.config=this._defaultConfig,this.x=0,this.show=!1,this._animFrameId=null,this._accessors={x:void 0,y:void 0,yStacked:void 0,baseline:void 0},e&&this.setConfig(e),this.g.style("opacity",this.show?1:0),this.line=this.g.append("line").attr("class",Jl)}set accessors(e){this._accessors=e}get accessors(){var e;const{config:n}=this,i=!!(n.x||n.y||n.yStacked),r=i?n.x:this._accessors.x,o=i?n.y:this._accessors.y,s=o?Yt(o)?o:[o]:void 0,a=i?n.yStacked:this._accessors.yStacked,l=(e=n.baseline)!==null&&e!==void 0?e:this._accessors.baseline;return{x:r,y:s,yStacked:a,baseline:l}}setContainer(e){this.container=e,this.container.on("mousemove.crosshair",this._onMouseMove.bind(this)),this.container.on("mouseout.crosshair",this._onMouseOut.bind(this))}_render(e){const{config:n}=this;if(n.snapToData&&!this.datum)return;const i=Ct(e)?e:n.duration;nt(this.g,i).style("opacity",this.show?1:0),this.line.attr("y1",0).attr("y1",this._height),nt(this.line,i,na).attr("x1",this.x).attr("x2",this.x);const r=this.getCircleData(),o=this.g.selectAll("circle").data(r,(a,l)=>{var c;return(c=a.id)!==null&&c!==void 0?c:l}),s=o.enter().append("circle").attr("class",Kl).attr("r",0).attr("cx",this.x).attr("cy",a=>a.y).style("fill",a=>a.color).style("stroke",a=>a.strokeColor).style("stroke-width",a=>a.strokeWidth);nt(s.merge(o),i,na).attr("cx",this.x).attr("cy",a=>a.y).attr("r",4).style("opacity",a=>a.opacity).style("fill",a=>a.color).style("stroke",a=>a.strokeColor).style("stroke-width",a=>a.strokeWidth),o.exit().remove()}hide(){this._onMouseOut()}_onMouseMove(e){var n,i;const{config:r,datamodel:o,element:s}=this;!this.accessors.x&&(!((n=o.data)===null||n===void 0)&&n.length)&&console.warn("Unovis | Crosshair: X accessor function has not been configured. Please check if it's present in the configuration object");const[a]=bn(e,s),l=this.xScale.range();if(r.snapToData){!this.accessors.y&&!this.accessors.yStacked&&(!((i=o.data)===null||i===void 0)&&i.length)&&console.warn("Unovis | Crosshair: Y accessors have not been configured. Please check if they're present in the configuration object");const c=this.xScale,u=c.invert(a);if(this.datum=mf(o.data,u,this.accessors.x),this.datumIndex=o.data.indexOf(this.datum),!this.datum)return;this.x=zt(Math.round(c(V(this.datum,this.accessors.x,this.datumIndex))),0,this._width),this.show=this.x>=0&&this.x<=this._width&&(!r.hideWhenFarFromPointer||Math.abs(this.x-a)<r.hideWhenFarFromPointerDistance)}else this.x=zt(a,l[0],l[1]),this.show=a>=l[0]-2&&a<=l[1]+2;window.cancelAnimationFrame(this._animFrameId),this._animFrameId=window.requestAnimationFrame(()=>{this._render()}),this.show?this._showTooltip(e):this._hideTooltip()}_onMouseOut(){this.show=!1,window.cancelAnimationFrame(this._animFrameId),this._animFrameId=window.requestAnimationFrame(()=>{this._render()}),this._hideTooltip()}_showTooltip(e){var n;const{config:i}=this,r=(n=i.tooltip)!==null&&n!==void 0?n:this.tooltip;if(!r)return;const o=r.getContainer()||this.container.node(),[s,a]=r.isContainerBody()?[e.clientX,e.clientY]:bn(e,o),l=i.template(this.datum,this.xScale.invert(this.x));if(r.config.followCursor=!0,!r.config.horizontalPlacement||r.config.horizontalPlacement===A.Auto){const c=r.isContainerBody()?s-this.container.node().getBoundingClientRect().left:s;r.overrideHorizontalPlacement(c>this._containerWidth/2?A.Left:A.Right)}l&&r.show(l,{x:s,y:a})}_hideTooltip(){var e;const{config:n}=this,i=(e=n.tooltip)!==null&&e!==void 0?e:this.tooltip;i==null||i.hide()}getYDataExtent(){return[void 0,void 0]}getCircleData(){var e,n;const{config:i,datamodel:{data:r}}=this;if(Bi(i.getCircles))return i.getCircles(this.xScale.invert(this.x),r,this.yScale);if(i.snapToData&&this.datum){const o=(e=this.accessors.y)!==null&&e!==void 0?e:[],s=(n=this.accessors.yStacked)!==null&&n!==void 0?n:[],a=V(this.datum,this.accessors.baseline,this.datumIndex)||0,l=hf(this.datum,this.datumIndex,...s).map((u,f,h)=>({y:this.yScale(u+a),opacity:Ct(V(this.datum,s[f]))?1:0,color:wt(this.datum,i.color,f),strokeColor:i.strokeColor?wt(this.datum,i.strokeColor,f):void 0,strokeWidth:i.strokeWidth?V(this.datum,i.strokeWidth,f):void 0})),c=o.map((u,f)=>{const h=V(this.datum,u);return{y:this.yScale(h),opacity:Ct(h)?1:0,color:wt(this.datum,i.color,l.length+f),strokeColor:i.strokeColor?wt(this.datum,i.strokeColor,f):void 0,strokeWidth:i.strokeWidth?V(this.datum,i.strokeWidth,f):void 0}});return l.concat(c)}return[]}}tc.selectors=h_;const d_=Object.assign(Object.assign({},an),{color:void 0,curveType:W.MonotoneX,baseline:()=>0,opacity:1,cursor:null,minHeight1Px:!1}),ec=D`
325
+ label: area-component;
326
+ `,g_=qt`
327
+ :root {
328
+ --vis-area-cursor: default;
329
+ --vis-area-fill-opacity: 1;
330
+ --vis-area-stroke-color: none;
331
+ --vis-area-stroke-width: 0px;
332
+ --vis-area-stroke-dasharray: none;
333
+ --vis-area-stroke-opacity: 1;
334
+ --vis-area-hover-fill-opacity: none;
335
+ --vis-area-hover-stroke-width: none;
336
+
337
+ /* Dark Theme */
338
+ --vis-dark-area-stroke-color: none;
339
+ }
340
+
341
+ body.theme-dark ${`.${ec}`} {
342
+ --vis-area-stroke-color: var(--vis-dark-area-stroke-color);
343
+ }
344
+
345
+ `,_o=D`
346
+ label: area;
347
+ cursor: var(--vis-area-cursor);
348
+ fill-opacity: var(--vis-area-fill-opacity);
349
+ stroke-width: var(--vis-area-stroke-width);
350
+ stroke-dasharray: var(--vis-area-stroke-dasharray);
351
+ stroke: var(--vis-area-stroke-color);
352
+ stroke-opacity: var(--vis-area-stroke-opacity);
353
+
354
+ &:hover {
355
+ fill-opacity: var(--vis-area-hover-fill-opacity);
356
+ stroke-width: var(--vis-area-hover-stroke-width);
357
+ }
358
+ `,p_=Object.freeze(Object.defineProperty({__proto__:null,area:_o,globalStyles:g_,root:ec},Symbol.toStringTag,{value:"Module"}));class Ni extends fi{constructor(e){super(),this._defaultConfig=d_,this.config=this._defaultConfig,this.stacked=!0,this.events={[Ni.selectors.area]:{}},e&&this.setConfig(e),this.stacked=Array.isArray(this.config.y)}_render(e){super._render(e);const{config:n,datamodel:{data:i}}=this,r=Ct(e)?e:n.duration,o=ro[n.curveType];this._areaGen=Dm().x(g=>g.x).y0(g=>g.y0).y1(g=>{const m=Math.abs(g.y1-g.y0)<1;return g.y1-(m&&n.minHeight1Px?1:0)}).curve(o);const s=Yt(n.y)?n.y:[n.y],a=i.map((g,m)=>this.xScale(V(g,n.x,m))),l=df(i,n.baseline,s,this._prevNegative);this._prevNegative=l.map(g=>!!g.negative);const c=l.map(g=>g.map((m,y)=>({y0:this.yScale(m[0]),y1:this.yScale(m[1]),x:a[y]}))),u=c.length-1,f=c.reverse(),h=this.g.selectAll(`.${_o}`).data(f),d=h.enter().append("path").attr("class",_o).attr("d",g=>this._areaGen(g)||this._emptyPath()).style("opacity",0).style("fill",(g,m)=>wt(i,n.color,u-m)),p=nt(d.merge(h),r).style("opacity",(g,m)=>g.some(v=>v.y0-v.y1!==0)?V(i,n.opacity,u-m):0).style("fill",(g,m)=>wt(i,n.color,u-m)).style("cursor",(g,m)=>An(i,n.cursor,u-m));r?p.attrTween("d",(m,y,v)=>{const x=et(v[y]).attr("d"),C=this._areaGen(m)||this._emptyPath();return Ol(x,C)}):p.attr("d",g=>this._areaGen(g)||this._emptyPath()),nt(h.exit(),r).style("opacity",0).remove()}getYDataExtent(e){const{config:n,datamodel:i}=this,r=Yt(n.y)?n.y:[n.y],o=e?Ho(i.data,this.xScale.domain(),n.x):i.data;return ff(o,n.baseline,...r)}_emptyPath(){const e=this.xScale.range(),n=this.yScale.domain(),i=this.yScale((n[0]+n[1])/2),r=i;return this._areaGen([{y0:i,y1:r,x:e[0]},{y0:i,y1:r,x:e[1]}])}}Ni.selectors=p_;const m_=Object.assign(Object.assign({},Ur),{id:(t,e)=>{var n;return(n=t.id)!==null&&n!==void 0?n:e},value:void 0,angleRange:[0,2*Math.PI],padAngle:0,sortFunction:void 0,cornerRadius:0,color:void 0,radius:void 0,arcWidth:20,centralLabel:void 0,centralSubLabel:void 0,centralSubLabelWrap:!0,showEmptySegments:!1,emptySegmentAngle:.5*Math.PI/180,showBackground:!0,backgroundAngleRange:void 0});function __(t,e){t.style("fill",n=>wt(n.data,e.color,n.index)).style("opacity",0).each((n,i,r)=>{const o=r[i],s=(n.startAngle+n.endAngle)/2,a=(n.endAngle-n.startAngle)/2;o._animState={startAngle:s-a,endAngle:s+a,innerRadius:n.innerRadius,outerRadius:n.outerRadius,padAngle:n.padAngle}})}function y_(t,e,n,i){t.style("transition",`fill ${i}ms`).style("fill",o=>wt(o.data,e.color,o.index));const r=o=>e.showEmptySegments||o.value?1:0;i?nt(t,i).style("opacity",r).attrTween("d",(s,a,l)=>{const c=l[a],u={startAngle:s.startAngle,endAngle:s.endAngle,innerRadius:s.innerRadius,outerRadius:s.outerRadius,padAngle:s.padAngle},f=se(c._animState,u);return h=>(c._animState=f(h),n(c._animState))}):t.attr("d",n).style("opacity",r)}function v_(t,e){nt(t,e).style("opacity",0).remove()}const nc=D`
359
+ label: donut-component;
360
+ `,x_=qt`
361
+ :root {
362
+ --vis-donut-central-label-font-size: 16px;
363
+ --vis-donut-central-label-text-color: #5b5f6d;
364
+ // Undefined by default to allow proper fallback to var(--vis-font-family)
365
+ /* --vis-donut-central-label-font-family: */
366
+ --vis-donut-central-label-font-weight: 600;
367
+
368
+ --vis-donut-central-sub-label-font-size: 12px;
369
+ --vis-donut-central-sub-label-text-color: #5b5f6d;
370
+ // Undefined by default to allow proper fallback to var(--vis-font-family)
371
+ /* --vis-donut-central-sub-label-font-family: */
372
+ --vis-donut-central-sub-label-font-weight: 500;
373
+
374
+ --vis-donut-background-color: #E7E9F3;
375
+ --vis-donut-segment-stroke-width: 0;
376
+ // The line segment color variable is not defined by default
377
+ // to allow it to fallback to the donut background color
378
+ /* --vis-donut-segment-stroke-color: none; */
379
+
380
+ --vis-dark-donut-central-label-text-color: #C2BECE;
381
+ --vis-dark-donut-central-sub-label-text-color: #C2BECE;
382
+ --vis-dark-donut-background-color: #18160C;
383
+ }
384
+
385
+ body.theme-dark ${`.${nc}`} {
386
+ --vis-donut-central-label-text-color: var(--vis-dark-donut-central-label-text-color);
387
+ --vis-donut-central-sub-label-text-color: var(--vis-dark-donut-central-sub-label-text-color);
388
+ --vis-donut-background-color: var(--vis-dark-donut-background-color);
389
+ }
390
+ `,ic=D`
391
+ label: background;
392
+ fill: var(--vis-donut-background-color);
393
+ `,yo=D`
394
+ label: segment;
395
+ stroke-width: var(--vis-donut-segment-stroke-width);
396
+ stroke: var(--vis-donut-segment-stroke-color, var(--vis-donut-background-color));
397
+ `,rc=D`
398
+ label: segment-exit;
399
+ `,oc=D`
400
+ label: central-label;
401
+ text-anchor: middle;
402
+ dominant-baseline: middle;
403
+ font-size: var(--vis-donut-central-label-font-size);
404
+ font-family: var(--vis-donut-central-label-font-family, var(--vis-font-family));
405
+ font-weight: var(--vis-donut-central-label-font-weight);
406
+ fill: var(--vis-donut-central-label-text-color);
407
+ `,sc=D`
408
+ label: central-label;
409
+ text-anchor: middle;
410
+ dominant-baseline: middle;
411
+ font-size: var(--vis-donut-central-sub-label-font-size);
412
+ font-family: var(--vis-donut-central-sub-label-font-family, var(--vis-font-family));
413
+ font-weight: var(--vis-donut-central-sub-label-font-weight);
414
+ fill: var(--vis-donut-central-sub-label-text-color);
415
+ `,b_=Object.freeze(Object.defineProperty({__proto__:null,background:ic,centralLabel:oc,centralSubLabel:sc,root:nc,segment:yo,segmentExit:rc,variables:x_},Symbol.toStringTag,{value:"Module"}));class Ri extends Ja{constructor(e){super(),this._defaultConfig=m_,this.config=this._defaultConfig,this.datamodel=new Ka,this.arcGen=Rm(),this.events={},e&&this.setConfig(e),this.arcBackground=this.g.append("path"),this.arcGroup=this.g.append("g"),this.centralLabel=this.g.append("text").attr("class",oc),this.centralSubLabel=this.g.append("text").attr("class",sc)}get bleed(){return{top:0,bottom:0,left:0,right:0}}_render(e){var n,i,r,o,s,a,l,c,u,f,h,d,p,g;const{config:m,datamodel:y,bleed:v}=this,x=y.data.map((w,$)=>({index:$,datum:w})).filter(w=>m.showEmptySegments||V(w.datum,m.value,w.index)),C=Ct(e)?e:m.duration,S=m.radius||Math.min(this._width-v.left-v.right,this._height-v.top-v.bottom)/2,b=m.arcWidth===0?0:zt(S-m.arcWidth,0,S-1);this.arcGen.startAngle(w=>w.startAngle).endAngle(w=>w.endAngle).innerRadius(w=>w.innerRadius).outerRadius(w=>w.outerRadius).padAngle(w=>w.padAngle).cornerRadius(m.cornerRadius);const T=zm().startAngle((i=(n=m.angleRange)===null||n===void 0?void 0:n[0])!==null&&i!==void 0?i:0).endAngle((o=(r=m.angleRange)===null||r===void 0?void 0:r[1])!==null&&o!==void 0?o:2*Math.PI).padAngle(m.padAngle).value(w=>V(w.datum,m.value,w.index)||0).sort((w,$)=>{var q;return(q=m.sortFunction)===null||q===void 0?void 0:q.call(m,w.datum,$.datum)});this.arcGroup.attr("transform",`translate(${this._width/2},${this._height/2})`);const O=T(x).map(w=>{const $=Object.assign(Object.assign({},w),{data:w.data.datum,index:w.data.index,innerRadius:b,outerRadius:S});return m.showEmptySegments&&w.endAngle-w.startAngle-w.padAngle<=Number.EPSILON&&($.endAngle=w.startAngle+Math.max(m.emptySegmentAngle,m.padAngle),$.padAngle=w.padAngle/2),$}),N=this.arcGroup.selectAll(`.${yo}`).data(O,w=>m.id(w.data,w.index)),H=N.enter().append("path").attr("class",yo).call(__,m),E=N.merge(H);E.call(y_,m,this.arcGen,C),E.sort((w,$)=>$.value-w.value),N.exit().attr("class",rc).call(v_,C),this.centralLabel.attr("transform",`translate(${this._width/2},${this._height/2})`).attr("dy",m.centralSubLabel?"-0.55em":null).text((s=m.centralLabel)!==null&&s!==void 0?s:null),this.centralSubLabel.attr("transform",`translate(${this._width/2},${this._height/2})`).attr("dy",m.centralLabel?"0.55em":null).text((a=m.centralSubLabel)!==null&&a!==void 0?a:null),m.centralSubLabelWrap&&Y0(this.centralSubLabel,b*1.9),this.arcBackground.attr("class",ic).attr("visibility",m.showBackground?null:"hidden").attr("transform",`translate(${this._width/2},${this._height/2})`),nt(this.arcBackground,C).attr("d",this.arcGen({startAngle:(f=(c=(l=m.backgroundAngleRange)===null||l===void 0?void 0:l[0])!==null&&c!==void 0?c:(u=m.angleRange)===null||u===void 0?void 0:u[0])!==null&&f!==void 0?f:0,endAngle:(g=(d=(h=m.backgroundAngleRange)===null||h===void 0?void 0:h[1])!==null&&d!==void 0?d:(p=m.angleRange)===null||p===void 0?void 0:p[1])!==null&&g!==void 0?g:2*Math.PI,innerRadius:b,outerRadius:S}))}}Ri.selectors=b_;const hn=Symbol("componentAccessorKey"),vo=Symbol("tooltipAccessorKey"),ac=Symbol("crosshairAccessorKey"),lc=Symbol("axisAccessorKey"),cc=Symbol("annotationsAccessorKey");function me(t,e){return Pe(t,e)}function Vt(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 w_=_.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=Vt(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 l;s.components.map(c=>c.config),(l=o.value)==null||l.updateContainer({..._.toRaw(r.value),..._.toRaw(s)})}),_.onMounted(()=>{a.value&&(o.value=new ym(a.value,{..._.toRaw(s)},i.value))}),_.onUnmounted(()=>{var l;return(l=o.value)==null?void 0:l.destroy()}),_.provide(hn,{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())}}),_.provide(lc,{data:i,update:l=>s[`${l.config.type}Axis`]=l,destroy:l=>{s[`${l}Axis`]=void 0}}),_.provide(ac,{data:i,update:l=>s.crosshair=l,destroy:()=>{s.crosshair=void 0}}),_.provide(vo,{data:i,update:l=>s.tooltip=l,destroy:()=>{s.tooltip=void 0}}),_.provide(cc,{data:i,update:l=>s.annotations=l,destroy:()=>{s.annotations=void 0}}),e({component:o}),(l,c)=>(_.openBlock(),_.createElementBlock("div",{"data-vis-xy-container":"",ref_key:"elRef",ref:a,class:"unovis-xy-container"},[_.renderSlot(l.$slots,"default")],512))}}),k_=_.defineComponent({__name:"index",props:{component:{},tooltip:{},annotations:{},duration:{},margin:{},padding:{},sizing:{},width:{},height:{},svgDefs:{},ariaLabel:{},data:{}},setup(t,{expose:e}){const n=t,{data:i}=_.toRefs(n),r=Vt(n);let o;const s=_.reactive({component:void 0,tooltip:void 0,annotations:void 0}),a=_.ref(),l=()=>{o||a.value&&s.component&&(o=new kg(a.value,{..._.toRaw(s)},i.value))};return _.watchEffect(()=>{var c;l(),(c=s.component)==null||c.config,o==null||o.updateContainer({..._.toRaw(r.value),..._.toRaw(s)})}),_.watch(i,()=>{o?o.setData(i.value,!0):l()}),_.onUnmounted(()=>o==null?void 0:o.destroy()),_.provide(hn,{data:i,update:c=>s.component=c,destroy:()=>s.component=void 0}),_.provide(vo,{data:i,update:c=>s.tooltip=c,destroy:()=>{s.tooltip=void 0}}),_.provide(cc,{data:i,update:c=>s.annotations=c,destroy:()=>{s.annotations=void 0}}),e({component:o}),(c,u)=>(_.openBlock(),_.createElementBlock("div",{"data-vis-single-container":"",ref_key:"elRef",ref:a,class:"unovis-single-container"},[_.renderSlot(c.$slots,"default")],512))}}),S_={"data-vis-component":""},T_=_.defineComponent({__name:"index",props:{color:{},curveType:{},baseline:{},opacity:{},cursor:{},minHeight1Px:{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(hn),i=t,r=_.computed(()=>n.data.value??i.data),o=Vt(i),s=_.ref();return _.onMounted(()=>{_.nextTick(()=>{var a;s.value=new Ni(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,l)=>{var c;me(a,l)||(c=s.value)==null||c.setConfig(o.value)}),_.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(_.openBlock(),_.createElementBlock("div",S_))}}),C_={"data-vis-axis":""},uc=_.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(lc),i=t,r=_.computed(()=>n.data.value??i.data),o=Vt(i),s=_.ref();return _.onMounted(()=>{_.nextTick(()=>{var a;s.value=new Gl(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,l)=>{var c;me(a,l)||(c=s.value)==null||c.setConfig(o.value)}),_.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(_.openBlock(),_.createElementBlock("div",C_))}}),M_={"data-vis-crosshair":""},A_=_.defineComponent({__name:"index",props:{data:{}},setup(t,{expose:e}){const n=_.inject(ac),i=t,r=_.computed(()=>n.data.value??i.data),o=Vt(i),s=_.ref();return _.onMounted(()=>{_.nextTick(()=>{var a;s.value=new tc(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,l)=>{var c;me(a,l)||(c=s.value)==null||c.setConfig(o.value)}),_.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(_.openBlock(),_.createElementBlock("div",M_))}}),$_={"data-vis-component":""},E_=_.defineComponent({__name:"index",props:{color:{},curveType:{},lineWidth:{},lineDashArray:{},fallbackValue:{},highlightOnHover:{type:Boolean},cursor:{},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(hn),i=t,r=_.computed(()=>n.data.value??i.data),o=Vt(i),s=_.ref();return _.onMounted(()=>{_.nextTick(()=>{var a;s.value=new bi(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,l)=>{var c;me(a,l)||(c=s.value)==null||c.setConfig(o.value)}),_.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(_.openBlock(),_.createElementBlock("div",$_))}}),N_={"data-vis-component":""};Ri.selectors;const R_=_.defineComponent({__name:"index",props:{id:{type:Function},value:{},angleRange:{},padAngle:{},sortFunction:{type:Function},cornerRadius:{},color:{},radius:{},arcWidth:{},centralLabel:{},centralSubLabel:{},centralSubLabelWrap:{type:Boolean},showEmptySegments:{type:Boolean},emptySegmentAngle:{},showBackground:{type:Boolean},backgroundAngleRange:{},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=_.inject(hn),i=t,r=_.computed(()=>n.data.value??i.data),o=Vt(i),s=_.ref();return _.onMounted(()=>{_.nextTick(()=>{var a;s.value=new Ri(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,l)=>{var c;me(a,l)||(c=s.value)==null||c.setConfig(o.value)}),_.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(_.openBlock(),_.createElementBlock("div",N_))}}),D_={"data-vis-tooltip":""},fc=_.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=_.inject(vo),i=Vt(t),r=_.ref();return _.onMounted(()=>{_.nextTick(()=>{r.value=new ol(i.value),n.update(r.value)})}),_.onUnmounted(()=>{var o;(o=r.value)==null||o.destroy(),n.destroy()}),_.watch(i,(o,s)=>{var a;me(o,s)||(a=r.value)==null||a.setConfig(i.value)}),e({component:r}),(o,s)=>(_.openBlock(),_.createElementBlock("div",D_))}}),hc=_.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;_.computed(()=>n.data);const i=Vt(n),r=_.ref(),o=_.ref();return _.onMounted(()=>{_.nextTick(()=>{o.value&&(r.value=new Ql(o.value,{...i.value,renderIntoProvidedDomNode:!0}))})}),_.onUnmounted(()=>{var s;(s=r.value)==null||s.destroy()}),_.watch(i,(s,a)=>{var l;me(s,a)||(l=r.value)==null||l.update(i.value)}),e({component:r}),(s,a)=>(_.openBlock(),_.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 O_={class:"space-y-2"},F_=_.defineComponent({__name:"Area",props:{data:{},xLabel:{},yLabel:{},categories:{},displayProps:{},xFormatter:{type:Function},crossHairTemplate:{type:Function},curveType:{},yNumTicks:{},xNumTicks:{}},setup(t){const e=t,n=Object.values(e.categories).map(o=>o.color);function i(o){var s;return{y:a=>Number(a[o]),color:((s=e.categories[o])==null?void 0:s.color)??"#3b82f6"}}const r=n.map((o,s)=>`
416
+ <linearGradient id="gradient${s}-${o}" gradientTransform="rotate(90)">
417
+ <stop offset="0%" stop-color="${o}" stop-opacity="1" />
418
+ <stop offset="100%" stop-color="${o}" stop-opacity="0" />
419
+ </linearGradient>
420
+ `).join("");return(o,s)=>(_.openBlock(),_.createElementBlock("div",O_,[_.createVNode(_.unref(hc),{items:Object.values(o.categories)},null,8,["items"]),_.createVNode(_.unref(w_),{data:o.data,height:275,"svg-defs":_.unref(r),class:""},{default:_.withCtx(()=>[_.createVNode(_.unref(fc),{"follow-cursor":!1,"horizontal-placement":_.unref(A).Right,"vertical-placement":_.unref(A).Top},null,8,["horizontal-placement","vertical-placement"]),(_.openBlock(!0),_.createElementBlock(_.Fragment,null,_.renderList(e.displayProps,(a,l)=>(_.openBlock(),_.createElementBlock(_.Fragment,{key:l},[_.createVNode(_.unref(T_),_.mergeProps({x:(c,u)=>u,ref_for:!0},i(a),{color:`url(#gradient${l}-${_.unref(n)[l]})`,opacity:.5,"curve-type":o.curveType??_.unref(W).MonotoneX}),null,16,["x","color","curve-type"]),_.createVNode(_.unref(E_),{x:(c,u)=>u,y:c=>c[a],color:_.unref(n)[l],"curve-type":o.curveType??_.unref(W).MonotoneX},null,8,["x","y","color","curve-type"])],64))),128)),_.createVNode(_.unref(uc),{type:"x","grid-line":!1,"domain-line":!1,"tick-format":o.xFormatter,"num-ticks":o.xNumTicks??4},null,8,["tick-format","num-ticks"]),_.createVNode(_.unref(uc),{type:"y","num-ticks":o.yNumTicks??4,"domain-line":!1,label:o.yLabel},null,8,["num-ticks","label"]),_.createVNode(_.unref(A_),{color:"#666",template:o.crossHairTemplate},null,8,["template"])]),_:1},8,["data","svg-defs"])]))}}),xo=_.defineComponent({__name:"AreaChart",props:{data:{},categories:{},xLabel:{},yLabel:{},displayProps:{},xFormatter:{type:Function},generateChartTooltip:{type:Function}},setup(t){const e=t;return(n,i)=>(_.openBlock(),_.createBlock(F_,_.mergeProps(e,{"cross-hair-template":n.generateChartTooltip}),null,16,["cross-hair-template"]))}}),z_={class:"flex items-center justify-center"},P_={class:"flex items-center justify-center mt-4"},L_=_.defineComponent({__name:"Donut",props:{type:{},data:{},radius:{},labels:{}},setup(t){const e=t,n=r=>r,i=e.type==="half";return(r,o)=>(_.openBlock(),_.createElementBlock(_.Fragment,null,[_.createElementVNode("div",z_,[_.createVNode(_.unref(k_),{class:_.normalizeClass(i?"mt-24":""),data:r.data,height:i?300:200,margin:{}},{default:_.withCtx(()=>[_.createVNode(_.unref(fc),{"horizontal-shift":20,"vertical-shift":20,triggers:{[_.unref(Ri).selectors.segment]:s=>(console.log(),`<div class='flex items-center'><div class='w-2 h-2 rounded-full mr-2' style='background-color: ${r.labels[s.index].color} ;'></div>
421
+ <div>${s.data}</div>
422
+ </vistooltip>
423
+ </vissinglecontainer>
424
+ </div>`)}},null,8,["triggers"]),_.createVNode(_.unref(R_),{value:n,"corner-radius":r.radius,color:e.labels.map(s=>s.color),"angle-range":i?[-1.5707963267948966,1.5707963267948966]:[]},null,8,["corner-radius","color","angle-range"])]),_:1},8,["class","data","height"]),_.renderSlot(r.$slots,"default")]),_.createElementVNode("div",P_,[_.createVNode(_.unref(hc),{items:r.labels},null,8,["items"])])],64))}}),bo=_.defineComponent({__name:"DonutChart",props:{type:{},data:{},radius:{},labels:{}},setup(t){const e=t;return(n,i)=>(_.openBlock(),_.createBlock(L_,_.normalizeProps(_.guardReactiveProps(e)),{default:_.withCtx(()=>[_.renderSlot(n.$slots,"default")]),_:3},16))}}),B_={install(t){t.components(xo.name,xo),t.components(bo.name,bo)}};Ot.AreaChart=xo,Ot.DonutChart=bo,Ot.default=B_,Object.defineProperties(Ot,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});