@metrostar/comet-data-viz
Version:
A set of Victory Chart components provided as a Comet wrapper
1 lines • 277 kB
JavaScript
import{jsx as t,jsxs as n}from"react/jsx-runtime";import*as e from"react";import r,{isValidElement as i,useRef as o,useState as a,forwardRef as s,useEffect as l}from"react";function c(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function u(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var h=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),d=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),f=function t(n){function e(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,e.exponent=t,e}(3),p=Math.PI,g=p/2;function y(t){return(1-Math.cos(p*t))/2}function m(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function x(t){return((t*=2)<=1?m(1-t):2-m(t-1))/2}function v(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var b=4/11,_=6/11,A=8/11,w=9/11,E=10/11,M=21/22,k=7.5625;function C(t){return(t=+t)<b?k*t*t:t<A?k*(t-=_)*t+.75:t<E?k*(t-=w)*t+.9375:k*(t-=M)*t+.984375}var O,j,S,$,T,P,D,L,N,z,I,R,F,B,W,U,V,H,q,Y,G=1.70158,K=function t(n){function e(t){return(t=+t)*t*(n*(t-1)+t)}return n=+n,e.overshoot=t,e}(G),X=function t(n){function e(t){return--t*t*((t+1)*n+t)+1}return n=+n,e.overshoot=t,e}(G),Z=function t(n){function e(t){return((t*=2)<1?t*t*((n+1)*t-n):(t-=2)*t*((n+1)*t+n)+2)/2}return n=+n,e.overshoot=t,e}(G),Q=2*Math.PI,J=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Q);function i(t){return n*m(- --t)*Math.sin((r-t)/e)}return i.amplitude=function(n){return t(n,e*Q)},i.period=function(e){return t(n,e)},i}(1,.3),tt=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Q);function i(t){return 1-n*m(t=+t)*Math.sin((t+r)/e)}return i.amplitude=function(n){return t(n,e*Q)},i.period=function(e){return t(n,e)},i}(1,.3),nt=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Q);function i(t){return((t=2*t-1)<0?n*m(-t)*Math.sin((r-t)/e):2-n*m(t)*Math.sin((r+t)/e))/2}return i.amplitude=function(n){return t(n,e*Q)},i.period=function(e){return t(n,e)},i}(1,.3),et=Object.freeze({__proto__:null,easeBack:Z,easeBackIn:K,easeBackInOut:Z,easeBackOut:X,easeBounce:C,easeBounceIn:function(t){return 1-C(1-t)},easeBounceInOut:function(t){return((t*=2)<=1?1-C(1-t):C(t-1)+1)/2},easeBounceOut:C,easeCircle:v,easeCircleIn:function(t){return 1-Math.sqrt(1-t*t)},easeCircleInOut:v,easeCircleOut:function(t){return Math.sqrt(1- --t*t)},easeCubic:u,easeCubicIn:function(t){return t*t*t},easeCubicInOut:u,easeCubicOut:function(t){return--t*t*t+1},easeElastic:tt,easeElasticIn:J,easeElasticInOut:nt,easeElasticOut:tt,easeExp:x,easeExpIn:function(t){return m(1-+t)},easeExpInOut:x,easeExpOut:function(t){return 1-m(t)},easeLinear:t=>+t,easePoly:f,easePolyIn:h,easePolyInOut:f,easePolyOut:d,easeQuad:c,easeQuadIn:function(t){return t*t},easeQuadInOut:c,easeQuadOut:function(t){return t*(2-t)},easeSin:y,easeSinIn:function(t){return 1==+t?1:1-Math.cos(t*g)},easeSinInOut:y,easeSinOut:function(t){return Math.sin(t*g)}}),rt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function it(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ot(){if(j)return O;j=1;var t="object"==typeof rt&&rt&&rt.Object===Object&&rt;return O=t}function at(){if($)return S;$=1;var t=ot(),n="object"==typeof self&&self&&self.Object===Object&&self,e=t||n||Function("return this")();return S=e}function st(){if(P)return T;P=1;var t=at().Symbol;return T=t}function lt(){if(R)return I;R=1;var t=st(),n=function(){if(L)return D;L=1;var t=st(),n=Object.prototype,e=n.hasOwnProperty,r=n.toString,i=t?t.toStringTag:void 0;return D=function(t){var n=e.call(t,i),o=t[i];try{t[i]=void 0;var a=!0}catch(t){}var s=r.call(t);return a&&(n?t[i]=o:delete t[i]),s}}(),e=function(){if(z)return N;z=1;var t=Object.prototype.toString;return N=function(n){return t.call(n)}}(),r=t?t.toStringTag:void 0;return I=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":r&&r in Object(t)?n(t):e(t)}}function ct(){if(B)return F;return B=1,F=function(t,n){return function(e){return t(n(e))}}}function ut(){if(U)return W;U=1;var t=ct()(Object.getPrototypeOf,Object);return W=t}function ht(){if(H)return V;return H=1,V=function(t){return null!=t&&"object"==typeof t}}var dt,ft,pt,gt,yt,mt,xt,vt,bt,_t,At,wt,Et,Mt,kt,Ct,Ot,jt,St,$t,Tt,Pt,Dt,Lt,Nt,zt,It,Rt,Ft,Bt,Wt,Ut,Vt,Ht,qt,Yt,Gt,Kt,Xt,Zt,Qt,Jt,tn,nn,en,rn,on,an,sn,ln,cn,un,hn,dn,fn,pn,gn,yn,mn,xn,vn,bn,_n,An,wn,En,Mn,kn,Cn,On,jn,Sn,$n,Tn,Pn,Dn,Ln,Nn,zn,In,Rn,Fn,Bn,Wn,Un,Vn,Hn,qn,Yn,Gn,Kn,Xn,Zn,Qn,Jn,te,ne,ee,re,ie,oe,ae,se,le,ce,ue,he,de,fe,pe,ge,ye,me,xe,ve,be,_e,Ae,we,Ee,Me,ke,Ce,Oe,je,Se,$e,Te,Pe,De,Le,Ne,ze,Ie,Re,Fe,Be=it(function(){if(Y)return q;Y=1;var t=lt(),n=ut(),e=ht(),r=Function.prototype,i=Object.prototype,o=r.toString,a=i.hasOwnProperty,s=o.call(Object);return q=function(r){if(!e(r)||"[object Object]"!=t(r))return!1;var i=n(r);if(null===i)return!0;var l=a.call(i,"constructor")&&i.constructor;return"function"==typeof l&&l instanceof l&&o.call(l)==s}}());function We(){if(ft)return dt;return ft=1,dt=function(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i},dt}function Ue(){if(gt)return pt;gt=1;var t=Array.isArray;return pt=t}function Ve(){if(mt)return yt;mt=1;var t=lt(),n=ht();return yt=function(e){return"symbol"==typeof e||n(e)&&"[object Symbol]"==t(e)}}function He(){if(vt)return xt;vt=1;var t=Ue(),n=Ve(),e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return xt=function(i,o){if(t(i))return!1;var a=typeof i;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=i&&!n(i))||(r.test(i)||!e.test(i)||null!=o&&i in Object(o))},xt}function qe(){if(_t)return bt;return _t=1,bt=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}}function Ye(){if(wt)return At;wt=1;var t=lt(),n=qe();return At=function(e){if(!n(e))return!1;var r=t(e);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}function Ge(){if(Ct)return kt;Ct=1;var t,n=function(){if(Mt)return Et;Mt=1;var t=at()["__core-js_shared__"];return Et=t}(),e=(t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";return kt=function(t){return!!e&&e in t}}function Ke(){if(jt)return Ot;jt=1;var t=Function.prototype.toString;return Ot=function(n){if(null!=n){try{return t.call(n)}catch(t){}try{return n+""}catch(t){}}return""}}function Xe(){if(Lt)return Dt;Lt=1;var t=function(){if($t)return St;$t=1;var t=Ye(),n=Ge(),e=qe(),r=Ke(),i=/^\[object .+?Constructor\]$/,o=Function.prototype,a=Object.prototype,s=o.toString,l=a.hasOwnProperty,c=RegExp("^"+s.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return St=function(o){return!(!e(o)||n(o))&&(t(o)?c:i).test(r(o))}}(),n=(Pt||(Pt=1,Tt=function(t,n){return null==t?void 0:t[n]}),Tt);return Dt=function(e,r){var i=n(e,r);return t(i)?i:void 0},Dt}function Ze(){if(zt)return Nt;zt=1;var t=Xe()(Object,"create");return Nt=t}function Qe(){if(Kt)return Gt;Kt=1;var t=function(){if(Rt)return It;Rt=1;var t=Ze();return It=function(){this.__data__=t?t(null):{},this.size=0}}(),n=Bt?Ft:(Bt=1,Ft=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}),e=function(){if(Ut)return Wt;Ut=1;var t=Ze(),n=Object.prototype.hasOwnProperty;return Wt=function(e){var r=this.__data__;if(t){var i=r[e];return"__lodash_hash_undefined__"===i?void 0:i}return n.call(r,e)?r[e]:void 0}}(),r=function(){if(Ht)return Vt;Ht=1;var t=Ze(),n=Object.prototype.hasOwnProperty;return Vt=function(e){var r=this.__data__;return t?void 0!==r[e]:n.call(r,e)}}(),i=function(){if(Yt)return qt;Yt=1;var t=Ze();return qt=function(n,e){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=t&&void 0===e?"__lodash_hash_undefined__":e,this}}();function o(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}return o.prototype.clear=t,o.prototype.delete=n,o.prototype.get=e,o.prototype.has=r,o.prototype.set=i,Gt=o}function Je(){if(Jt)return Qt;return Jt=1,Qt=function(t,n){return t===n||t!=t&&n!=n}}function tr(){if(nn)return tn;nn=1;var t=Je();return tn=function(n,e){for(var r=n.length;r--;)if(t(n[r][0],e))return r;return-1},tn}function nr(){if(dn)return hn;dn=1;var t=Zt?Xt:(Zt=1,Xt=function(){this.__data__=[],this.size=0}),n=function(){if(rn)return en;rn=1;var t=tr(),n=Array.prototype.splice;return en=function(e){var r=this.__data__,i=t(r,e);return!(i<0||(i==r.length-1?r.pop():n.call(r,i,1),--this.size,0))}}(),e=function(){if(an)return on;an=1;var t=tr();return on=function(n){var e=this.__data__,r=t(e,n);return r<0?void 0:e[r][1]}}(),r=function(){if(ln)return sn;ln=1;var t=tr();return sn=function(n){return t(this.__data__,n)>-1}}(),i=function(){if(un)return cn;un=1;var t=tr();return cn=function(n,e){var r=this.__data__,i=t(r,n);return i<0?(++this.size,r.push([n,e])):r[i][1]=e,this}}();function o(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}return o.prototype.clear=t,o.prototype.delete=n,o.prototype.get=e,o.prototype.has=r,o.prototype.set=i,hn=o}function er(){if(pn)return fn;pn=1;var t=Xe()(at(),"Map");return fn=t}function rr(){if(bn)return vn;bn=1;var t=xn?mn:(xn=1,mn=function(t){var n=typeof t;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t});return vn=function(n,e){var r=n.__data__;return t(e)?r["string"==typeof e?"string":"hash"]:r.map},vn}function ir(){if(Sn)return jn;Sn=1;var t=function(){if(yn)return gn;yn=1;var t=Qe(),n=nr(),e=er();return gn=function(){this.size=0,this.__data__={hash:new t,map:new(e||n),string:new t}}}(),n=function(){if(An)return _n;An=1;var t=rr();return _n=function(n){var e=t(this,n).delete(n);return this.size-=e?1:0,e}}(),e=function(){if(En)return wn;En=1;var t=rr();return wn=function(n){return t(this,n).get(n)}}(),r=function(){if(kn)return Mn;kn=1;var t=rr();return Mn=function(n){return t(this,n).has(n)}}(),i=function(){if(On)return Cn;On=1;var t=rr();return Cn=function(n,e){var r=t(this,n),i=r.size;return r.set(n,e),this.size+=r.size==i?0:1,this}}();function o(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}return o.prototype.clear=t,o.prototype.delete=n,o.prototype.get=e,o.prototype.has=r,o.prototype.set=i,jn=o}function or(){if(Tn)return $n;Tn=1;var t=ir();function n(e,r){if("function"!=typeof e||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var i=function(){var t=arguments,n=r?r.apply(this,t):t[0],o=i.cache;if(o.has(n))return o.get(n);var a=e.apply(this,t);return i.cache=o.set(n,a)||o,a};return i.cache=new(n.Cache||t),i}return n.Cache=t,$n=n}function ar(){if(Nn)return Ln;Nn=1;var t=function(){if(Dn)return Pn;Dn=1;var t=or();return Pn=function(n){var e=t(n,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}}(),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,e=/\\(\\)?/g,r=t((function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(n,(function(t,n,i,o){r.push(i?o.replace(e,"$1"):n||t)})),r}));return Ln=r}function sr(){if(Fn)return Rn;Fn=1;var t=function(){if(In)return zn;In=1;var t=st(),n=We(),e=Ue(),r=Ve(),i=t?t.prototype:void 0,o=i?i.toString:void 0;return zn=function t(i){if("string"==typeof i)return i;if(e(i))return n(i,t)+"";if(r(i))return o?o.call(i):"";var a=i+"";return"0"==a&&1/i==-1/0?"-0":a},zn}();return Rn=function(n){return null==n?"":t(n)}}function lr(){if(Wn)return Bn;Wn=1;var t=Ue(),n=He(),e=ar(),r=sr();return Bn=function(i,o){return t(i)?i:n(i,o)?[i]:e(r(i))},Bn}function cr(){if(Vn)return Un;Vn=1;var t=Ve();return Un=function(n){if("string"==typeof n||t(n))return n;var e=n+"";return"0"==e&&1/n==-1/0?"-0":e}}function ur(){if(qn)return Hn;qn=1;var t=lr(),n=cr();return Hn=function(e,r){for(var i=0,o=(r=t(r,e)).length;null!=e&&i<o;)e=e[n(r[i++])];return i&&i==o?e:void 0},Hn}function hr(){if(ie)return re;ie=1;var t=nr(),n=function(){if(Gn)return Yn;Gn=1;var t=nr();return Yn=function(){this.__data__=new t,this.size=0}}(),e=Xn?Kn:(Xn=1,Kn=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e}),r=Qn?Zn:(Qn=1,Zn=function(t){return this.__data__.get(t)}),i=te?Jn:(te=1,Jn=function(t){return this.__data__.has(t)}),o=function(){if(ee)return ne;ee=1;var t=nr(),n=er(),e=ir();return ne=function(r,i){var o=this.__data__;if(o instanceof t){var a=o.__data__;if(!n||a.length<199)return a.push([r,i]),this.size=++o.size,this;o=this.__data__=new e(a)}return o.set(r,i),this.size=o.size,this}}();function a(n){var e=this.__data__=new t(n);this.size=e.size}return a.prototype.clear=n,a.prototype.delete=e,a.prototype.get=r,a.prototype.has=i,a.prototype.set=o,re=a}function dr(){if(ue)return ce;ue=1;var t=ir(),n=ae?oe:(ae=1,oe=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}),e=le?se:(le=1,se=function(t){return this.__data__.has(t)});function r(n){var e=-1,r=null==n?0:n.length;for(this.__data__=new t;++e<r;)this.add(n[e])}return r.prototype.add=r.prototype.push=n,r.prototype.has=e,ce=r}function fr(){if(pe)return fe;return pe=1,fe=function(t,n){return t.has(n)}}function pr(){if(ye)return ge;ye=1;var t=dr(),n=(de||(de=1,he=function(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}),he),e=fr();return ge=function(r,i,o,a,s,l){var c=1&o,u=r.length,h=i.length;if(u!=h&&!(c&&h>u))return!1;var d=l.get(r),f=l.get(i);if(d&&f)return d==i&&f==r;var p=-1,g=!0,y=2&o?new t:void 0;for(l.set(r,i),l.set(i,r);++p<u;){var m=r[p],x=i[p];if(a)var v=c?a(x,m,p,i,r,l):a(m,x,p,r,i,l);if(void 0!==v){if(v)continue;g=!1;break}if(y){if(!n(i,(function(t,n){if(!e(y,n)&&(m===t||s(m,t,o,a,l)))return y.push(n)}))){g=!1;break}}else if(m!==x&&!s(m,x,o,a,l)){g=!1;break}}return l.delete(r),l.delete(i),g},ge}function gr(){if(Ae)return _e;return Ae=1,_e=function(t){var n=-1,e=Array(t.size);return t.forEach((function(t){e[++n]=t})),e}}function yr(){if(Ee)return we;Ee=1;var t=st(),n=function(){if(xe)return me;xe=1;var t=at().Uint8Array;return me=t}(),e=Je(),r=pr(),i=(be||(be=1,ve=function(t){var n=-1,e=Array(t.size);return t.forEach((function(t,r){e[++n]=[r,t]})),e}),ve),o=gr(),a=t?t.prototype:void 0,s=a?a.valueOf:void 0;return we=function(t,a,l,c,u,h,d){switch(l){case"[object DataView]":if(t.byteLength!=a.byteLength||t.byteOffset!=a.byteOffset)return!1;t=t.buffer,a=a.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=a.byteLength||!h(new n(t),new n(a)));case"[object Boolean]":case"[object Date]":case"[object Number]":return e(+t,+a);case"[object Error]":return t.name==a.name&&t.message==a.message;case"[object RegExp]":case"[object String]":return t==a+"";case"[object Map]":var f=i;case"[object Set]":var p=1&c;if(f||(f=o),t.size!=a.size&&!p)return!1;var g=d.get(t);if(g)return g==a;c|=2,d.set(t,a);var y=r(f(t),f(a),c,u,h,d);return d.delete(t),y;case"[object Symbol]":if(s)return s.call(t)==s.call(a)}return!1},we}function mr(){if(ke)return Me;return ke=1,Me=function(t,n){for(var e=-1,r=n.length,i=t.length;++e<r;)t[i+e]=n[e];return t},Me}function xr(){if(Oe)return Ce;Oe=1;var t=mr(),n=Ue();return Ce=function(e,r,i){var o=r(e);return n(e)?o:t(o,i(e))},Ce}function vr(){if(Te)return $e;return Te=1,$e=function(){return[]}}function br(){if(De)return Pe;De=1;var t=(Se||(Se=1,je=function(t,n){for(var e=-1,r=null==t?0:t.length,i=0,o=[];++e<r;){var a=t[e];n(a,e,t)&&(o[i++]=a)}return o}),je),n=vr(),e=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,i=r?function(n){return null==n?[]:(n=Object(n),t(r(n),(function(t){return e.call(n,t)})))}:n;return Pe=i}function _r(){if(Fe)return Re;Fe=1;var t=function(){if(Ie)return ze;Ie=1;var t=lt(),n=ht();return ze=function(e){return n(e)&&"[object Arguments]"==t(e)}}(),n=ht(),e=Object.prototype,r=e.hasOwnProperty,i=e.propertyIsEnumerable,o=t(function(){return arguments}())?t:function(t){return n(t)&&r.call(t,"callee")&&!i.call(t,"callee")};return Re=o}var Ar,wr,Er,Mr,kr,Cr,Or,jr,Sr,$r,Tr,Pr={exports:{}};function Dr(){return Er||(Er=1,function(t,n){var e=at(),r=wr?Ar:(wr=1,Ar=function(){return!1}),i=n&&!n.nodeType&&n,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i?e.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;t.exports=s}(Pr,Pr.exports)),Pr.exports}function Lr(){if(kr)return Mr;kr=1;var t=/^(?:0|[1-9]\d*)$/;return Mr=function(n,e){var r=typeof n;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&t.test(n))&&n>-1&&n%1==0&&n<e}}function Nr(){if(Or)return Cr;Or=1;return Cr=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}}function zr(){if(Tr)return $r;return Tr=1,$r=function(t){return function(n){return t(n)}}}var Ir,Rr,Fr,Br,Wr,Ur,Vr,Hr,qr,Yr,Gr,Kr,Xr,Zr,Qr,Jr,ti,ni,ei,ri,ii,oi,ai,si,li,ci,ui,hi,di,fi,pi,gi,yi,mi,xi,vi,bi,_i,Ai,wi,Ei,Mi,ki,Ci,Oi,ji,Si,$i,Ti,Pi,Di,Li,Ni,zi,Ii,Ri,Fi,Bi,Wi,Ui,Vi,Hi,qi,Yi,Gi,Ki,Xi,Zi,Qi,Ji,to,no,eo,ro,io,oo,ao,so,lo,co,uo,ho,fo,po,go,yo={exports:{}};function mo(){return Ir||(Ir=1,t=yo,n=yo.exports,e=ot(),r=n&&!n.nodeType&&n,i=r&&t&&!t.nodeType&&t,o=i&&i.exports===r&&e.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}(),t.exports=a),yo.exports;var t,n,e,r,i,o,a}function xo(){if(Fr)return Rr;Fr=1;var t=function(){if(Sr)return jr;Sr=1;var t=lt(),n=Nr(),e=ht(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,jr=function(i){return e(i)&&n(i.length)&&!!r[t(i)]}}(),n=zr(),e=mo(),r=e&&e.isTypedArray,i=r?n(r):t;return Rr=i}function vo(){if(Wr)return Br;Wr=1;var t=Ne?Le:(Ne=1,Le=function(t,n){for(var e=-1,r=Array(t);++e<t;)r[e]=n(e);return r}),n=_r(),e=Ue(),r=Dr(),i=Lr(),o=xo(),a=Object.prototype.hasOwnProperty;return Br=function(s,l){var c=e(s),u=!c&&n(s),h=!c&&!u&&r(s),d=!c&&!u&&!h&&o(s),f=c||u||h||d,p=f?t(s.length,String):[],g=p.length;for(var y in s)!l&&!a.call(s,y)||f&&("length"==y||h&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||i(y,g))||p.push(y);return p}}function bo(){if(Vr)return Ur;Vr=1;var t=Object.prototype;return Ur=function(n){var e=n&&n.constructor;return n===("function"==typeof e&&e.prototype||t)}}function _o(){if(Gr)return Yr;Gr=1;var t=bo(),n=function(){if(qr)return Hr;qr=1;var t=ct()(Object.keys,Object);return Hr=t}(),e=Object.prototype.hasOwnProperty;return Yr=function(r){if(!t(r))return n(r);var i=[];for(var o in Object(r))e.call(r,o)&&"constructor"!=o&&i.push(o);return i},Yr}function Ao(){if(Xr)return Kr;Xr=1;var t=Ye(),n=Nr();return Kr=function(e){return null!=e&&n(e.length)&&!t(e)}}function wo(){if(Qr)return Zr;Qr=1;var t=vo(),n=_o(),e=Ao();return Zr=function(r){return e(r)?t(r):n(r)},Zr}function Eo(){if(ei)return ni;ei=1;var t=function(){if(ti)return Jr;ti=1;var t=xr(),n=br(),e=wo();return Jr=function(r){return t(r,e,n)},Jr}(),n=Object.prototype.hasOwnProperty;return ni=function(e,r,i,o,a,s){var l=1&i,c=t(e),u=c.length;if(u!=t(r).length&&!l)return!1;for(var h=u;h--;){var d=c[h];if(!(l?d in r:n.call(r,d)))return!1}var f=s.get(e),p=s.get(r);if(f&&p)return f==r&&p==e;var g=!0;s.set(e,r),s.set(r,e);for(var y=l;++h<u;){var m=e[d=c[h]],x=r[d];if(o)var v=l?o(x,m,d,r,e,s):o(m,x,d,e,r,s);if(!(void 0===v?m===x||a(m,x,i,o,s):v)){g=!1;break}y||(y="constructor"==d)}if(g&&!y){var b=e.constructor,_=r.constructor;b==_||!("constructor"in e)||!("constructor"in r)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(g=!1)}return s.delete(e),s.delete(r),g},ni}function Mo(){if(li)return si;li=1;var t=Xe()(at(),"Set");return si=t}function ko(){if(di)return hi;di=1;var t=function(){if(ii)return ri;ii=1;var t=Xe()(at(),"DataView");return ri=t}(),n=er(),e=function(){if(ai)return oi;ai=1;var t=Xe()(at(),"Promise");return oi=t}(),r=Mo(),i=function(){if(ui)return ci;ui=1;var t=Xe()(at(),"WeakMap");return ci=t}(),o=lt(),a=Ke(),s="[object Map]",l="[object Promise]",c="[object Set]",u="[object WeakMap]",h="[object DataView]",d=a(t),f=a(n),p=a(e),g=a(r),y=a(i),m=o;return(t&&m(new t(new ArrayBuffer(1)))!=h||n&&m(new n)!=s||e&&m(e.resolve())!=l||r&&m(new r)!=c||i&&m(new i)!=u)&&(m=function(t){var n=o(t),e="[object Object]"==n?t.constructor:void 0,r=e?a(e):"";if(r)switch(r){case d:return h;case f:return s;case p:return l;case g:return c;case y:return u}return n}),hi=m}function Co(){if(yi)return gi;yi=1;var t=function(){if(pi)return fi;pi=1;var t=hr(),n=pr(),e=yr(),r=Eo(),i=ko(),o=Ue(),a=Dr(),s=xo(),l="[object Arguments]",c="[object Array]",u="[object Object]",h=Object.prototype.hasOwnProperty;return fi=function(d,f,p,g,y,m){var x=o(d),v=o(f),b=x?c:i(d),_=v?c:i(f),A=(b=b==l?u:b)==u,w=(_=_==l?u:_)==u,E=b==_;if(E&&a(d)){if(!a(f))return!1;x=!0,A=!1}if(E&&!A)return m||(m=new t),x||s(d)?n(d,f,p,g,y,m):e(d,f,b,p,g,y,m);if(!(1&p)){var M=A&&h.call(d,"__wrapped__"),k=w&&h.call(f,"__wrapped__");if(M||k){var C=M?d.value():d,O=k?f.value():f;return m||(m=new t),y(C,O,p,g,m)}}return!!E&&(m||(m=new t),r(d,f,p,g,y,m))},fi}(),n=ht();return gi=function e(r,i,o,a,s){return r===i||(null==r||null==i||!n(r)&&!n(i)?r!=r&&i!=i:t(r,i,o,a,e,s))},gi}function Oo(){if(bi)return vi;bi=1;var t=qe();return vi=function(n){return n==n&&!t(n)}}function jo(){if(Ei)return wi;return Ei=1,wi=function(t,n){return function(e){return null!=e&&(e[t]===n&&(void 0!==n||t in Object(e)))}},wi}function So(){if(ki)return Mi;ki=1;var t=function(){if(xi)return mi;xi=1;var t=hr(),n=Co();return mi=function(e,r,i,o){var a=i.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var c=i[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=i[a])[0],h=e[u],d=c[1];if(l&&c[2]){if(void 0===h&&!(u in e))return!1}else{var f=new t;if(o)var p=o(h,d,u,e,r,f);if(!(void 0===p?n(d,h,3,o,f):p))return!1}}return!0},mi}(),n=function(){if(Ai)return _i;Ai=1;var t=Oo(),n=wo();return _i=function(e){for(var r=n(e),i=r.length;i--;){var o=r[i],a=e[o];r[i]=[o,a,t(a)]}return r},_i}(),e=jo();return Mi=function(r){var i=n(r);return 1==i.length&&i[0][2]?e(i[0][0],i[0][1]):function(n){return n===r||t(n,r,i)}},Mi}function $o(){if(Di)return Pi;Di=1;var t=(Si||(Si=1,ji=function(t,n){return null!=t&&n in Object(t)}),ji),n=function(){if(Ti)return $i;Ti=1;var t=lr(),n=_r(),e=Ue(),r=Lr(),i=Nr(),o=cr();return $i=function(a,s,l){for(var c=-1,u=(s=t(s,a)).length,h=!1;++c<u;){var d=o(s[c]);if(!(h=null!=a&&l(a,d)))break;a=a[d]}return h||++c!=u?h:!!(u=null==a?0:a.length)&&i(u)&&r(d,u)&&(e(a)||n(a))},$i}();return Pi=function(e,r){return null!=e&&n(e,r,t)},Pi}function To(){if(Ni)return Li;Ni=1;var t=Co(),n=function(){if(Oi)return Ci;Oi=1;var t=ur();return Ci=function(n,e,r){var i=null==n?void 0:t(n,e);return void 0===i?r:i},Ci}(),e=$o(),r=He(),i=Oo(),o=jo(),a=cr();return Li=function(s,l){return r(s)&&i(l)?o(a(s),l):function(r){var i=n(r,s);return void 0===i&&i===l?e(r,s):t(l,i,3)}},Li}function Po(){if(Ii)return zi;return Ii=1,zi=function(t){return t}}function Do(){if(Vi)return Ui;Vi=1;var t=(Fi||(Fi=1,Ri=function(t){return function(n){return null==n?void 0:n[t]}}),Ri),n=function(){if(Wi)return Bi;Wi=1;var t=ur();return Bi=function(n){return function(e){return t(e,n)}},Bi}(),e=He(),r=cr();return Ui=function(i){return e(i)?t(r(i)):n(i)}}function Lo(){if(qi)return Hi;qi=1;var t=So(),n=To(),e=Po(),r=Ue(),i=Do();return Hi=function(o){return"function"==typeof o?o:null==o?e:"object"==typeof o?r(o)?n(o[0],o[1]):t(o):i(o)}}function No(){if(Xi)return Ki;Xi=1;var t=(Gi||(Gi=1,Yi=function(t){return function(n,e,r){for(var i=-1,o=Object(n),a=r(n),s=a.length;s--;){var l=a[t?s:++i];if(!1===e(o[l],l,o))break}return n}}),Yi),n=t();return Ki=n}function zo(){if(eo)return no;eo=1;var t=function(){if(Qi)return Zi;Qi=1;var t=No(),n=wo();return Zi=function(e,r){return e&&t(e,r,n)},Zi}(),n=function(){if(to)return Ji;to=1;var t=Ao();return Ji=function(n,e){return function(r,i){if(null==r)return r;if(!t(r))return n(r,i);for(var o=r.length,a=e?o:-1,s=Object(r);(e?a--:++a<o)&&!1!==i(s[a],a,s););return r}}}()(t);return no=n}function Io(){if(uo)return co;uo=1;var t=function(){if(lo)return so;lo=1;var t=Ve();return so=function(n,e){if(n!==e){var r=void 0!==n,i=null===n,o=n==n,a=t(n),s=void 0!==e,l=null===e,c=e==e,u=t(e);if(!l&&!u&&!a&&n>e||a&&s&&c&&!l&&!u||i&&s&&c||!r&&c||!o)return 1;if(!i&&!a&&!u&&n<e||u&&r&&o&&!i&&!a||l&&r&&o||!s&&o||!c)return-1}return 0}}();return co=function(n,e,r){for(var i=-1,o=n.criteria,a=e.criteria,s=o.length,l=r.length;++i<s;){var c=t(o[i],a[i]);if(c)return i>=l?c:c*("desc"==r[i]?-1:1)}return n.index-e.index},co}function Ro(){if(fo)return ho;fo=1;var t=We(),n=ur(),e=Lo(),r=function(){if(io)return ro;io=1;var t=zo(),n=Ao();return ro=function(e,r){var i=-1,o=n(e)?Array(e.length):[];return t(e,(function(t,n,e){o[++i]=r(t,n,e)})),o}}(),i=(ao||(ao=1,oo=function(t,n){var e=t.length;for(t.sort(n);e--;)t[e]=t[e].value;return t}),oo),o=zr(),a=Io(),s=Po(),l=Ue();return ho=function(c,u,h){u=u.length?t(u,(function(t){return l(t)?function(e){return n(e,1===t.length?t[0]:t)}:t})):[s];var d=-1;u=t(u,o(e));var f=r(c,(function(n,e,r){return{criteria:t(u,(function(t){return t(n)})),index:++d,value:n}}));return i(f,(function(t,n){return a(t,n,h)}))},ho}var Fo=it(function(){if(go)return po;go=1;var t=Ro(),n=Ue();return po=function(e,r,i,o){return null==e?[]:(n(r)||(r=null==r?[]:[r]),n(i=o?void 0:i)||(i=null==i?[]:[i]),t(e,r,i))}}());function Bo(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function Wo(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function Uo(){}var Vo=.7,Ho=1/Vo,qo="\\s*([+-]?\\d+)\\s*",Yo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Go="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ko=/^#([0-9a-f]{3,8})$/,Xo=new RegExp(`^rgb\\(${qo},${qo},${qo}\\)$`),Zo=new RegExp(`^rgb\\(${Go},${Go},${Go}\\)$`),Qo=new RegExp(`^rgba\\(${qo},${qo},${qo},${Yo}\\)$`),Jo=new RegExp(`^rgba\\(${Go},${Go},${Go},${Yo}\\)$`),ta=new RegExp(`^hsl\\(${Yo},${Go},${Go}\\)$`),na=new RegExp(`^hsla\\(${Yo},${Go},${Go},${Yo}\\)$`),ea={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ra(){return this.rgb().formatHex()}function ia(){return this.rgb().formatRgb()}function oa(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=Ko.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?aa(n):3===e?new ca(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?sa(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?sa(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=Xo.exec(t))?new ca(n[1],n[2],n[3],1):(n=Zo.exec(t))?new ca(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Qo.exec(t))?sa(n[1],n[2],n[3],n[4]):(n=Jo.exec(t))?sa(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=ta.exec(t))?ga(n[1],n[2]/100,n[3]/100,1):(n=na.exec(t))?ga(n[1],n[2]/100,n[3]/100,n[4]):ea.hasOwnProperty(t)?aa(ea[t]):"transparent"===t?new ca(NaN,NaN,NaN,0):null}function aa(t){return new ca(t>>16&255,t>>8&255,255&t,1)}function sa(t,n,e,r){return r<=0&&(t=n=e=NaN),new ca(t,n,e,r)}function la(t,n,e,r){return 1===arguments.length?((i=t)instanceof Uo||(i=oa(i)),i?new ca((i=i.rgb()).r,i.g,i.b,i.opacity):new ca):new ca(t,n,e,null==r?1:r);var i}function ca(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function ua(){return`#${pa(this.r)}${pa(this.g)}${pa(this.b)}`}function ha(){const t=da(this.opacity);return`${1===t?"rgb(":"rgba("}${fa(this.r)}, ${fa(this.g)}, ${fa(this.b)}${1===t?")":`, ${t})`}`}function da(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function fa(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function pa(t){return((t=fa(t))<16?"0":"")+t.toString(16)}function ga(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new ma(t,n,e,r)}function ya(t){if(t instanceof ma)return new ma(t.h,t.s,t.l,t.opacity);if(t instanceof Uo||(t=oa(t)),!t)return new ma;if(t instanceof ma)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=n===o?(e-r)/s+6*(e<r):e===o?(r-n)/s+2:(n-e)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new ma(a,s,l,t.opacity)}function ma(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function xa(t){return(t=(t||0)%360)<0?t+360:t}function va(t){return Math.max(0,Math.min(1,t||0))}function ba(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}Bo(Uo,oa,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:ra,formatHex:ra,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ya(this).formatHsl()},formatRgb:ia,toString:ia}),Bo(ca,la,Wo(Uo,{brighter(t){return t=null==t?Ho:Math.pow(Ho,t),new ca(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Vo:Math.pow(Vo,t),new ca(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ca(fa(this.r),fa(this.g),fa(this.b),da(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:ua,formatHex:ua,formatHex8:function(){return`#${pa(this.r)}${pa(this.g)}${pa(this.b)}${pa(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ha,toString:ha})),Bo(ma,(function(t,n,e,r){return 1===arguments.length?ya(t):new ma(t,n,e,null==r?1:r)}),Wo(Uo,{brighter(t){return t=null==t?Ho:Math.pow(Ho,t),new ma(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Vo:Math.pow(Vo,t),new ma(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new ca(ba(t>=240?t-240:t+120,i,r),ba(t,i,r),ba(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new ma(xa(this.h),va(this.s),va(this.l),da(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=da(this.opacity);return`${1===t?"hsl(":"hsla("}${xa(this.h)}, ${100*va(this.s)}%, ${100*va(this.l)}%${1===t?")":`, ${t})`}`}}));var _a=t=>()=>t;function Aa(t){return 1==(t=+t)?wa:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):_a(isNaN(n)?e:n)}}function wa(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):_a(isNaN(t)?n:t)}var Ea=function t(n){var e=Aa(n);function r(t,n){var r=e((t=la(t)).r,(n=la(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=wa(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function Ma(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,i=n.slice();return function(o){for(e=0;e<r;++e)i[e]=t[e]*(1-o)+n[e]*o;return i}}function ka(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(e=0;e<i;++e)o[e]=Pa(t[e],n[e]);for(;e<r;++e)a[e]=n[e];return function(t){for(e=0;e<i;++e)a[e]=o[e](t);return a}}function Ca(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}function Oa(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function ja(t,n){var e,r={},i={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=Pa(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}}var Sa=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$a=new RegExp(Sa.source,"g");function Ta(t,n){var e,r,i,o=Sa.lastIndex=$a.lastIndex=0,a=-1,s=[],l=[];for(t+="",n+="";(e=Sa.exec(t))&&(r=$a.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(e=e[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:Oa(e,r)})),o=$a.lastIndex;return o<n.length&&(i=n.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(t){return function(n){return t(n)+""}}(l[0].x):function(t){return function(){return t}}(n):(n=l.length,function(t){for(var e,r=0;r<n;++r)s[(e=l[r]).i]=e.x(t);return s.join("")})}function Pa(t,n){var e,r=typeof n;return null==n||"boolean"===r?_a(n):("number"===r?Oa:"string"===r?(e=oa(n))?(n=e,Ea):Ta:n instanceof oa?Ea:n instanceof Date?Ca:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(n)?Ma:Array.isArray(n)?ka:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?ja:Oa)(t,n)}function Da(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function La(t,n){void 0===n&&(n=t,t=Pa);for(var e=0,r=n.length-1,i=n[0],o=new Array(r<0?0:r);e<r;)o[e]=t(i,i=n[++e]);return function(t){var n=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return o[n](t-n)}}const Na=function(t){if(null!==t)switch(typeof t){case"undefined":case"boolean":return!1;case"number":return!isNaN(t)&&t!==Number.POSITIVE_INFINITY&&t!==Number.NEGATIVE_INFINITY;case"string":case"function":return!0;case"object":return t instanceof Date||Array.isArray(t)||Be(t)}return!1},za=function(t,n,e){return void 0===e&&(e=0),function(r){return r<e?t:n}},Ia=function(t,n){return function(e){return e>=1?n:function(){return Pa("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n)(e)}}},Ra=function(t,n){const e=(t,n)=>t!==n&&Na(t)&&Na(n)?"function"==typeof t||"function"==typeof n?Ia(t,n):"object"==typeof t&&Be(t)||"object"==typeof n&&Be(n)?Ra(t,n):Pa(t,n):za(t,n),r=t=>Array.isArray(t)?Fo(t,"key"):t,i={},o={};let a,s=t,l=n;for(a in null!==s&&"object"==typeof s||(s={}),null!==l&&"object"==typeof l||(l={}),l)a in s?i[a]=e(r(s[a]),r(l[a])):o[a]=l[a];return function(t){for(a in i)o[a]=i[a](t);return o}},Fa=function(t,n){return t!==n&&Na(t)&&Na(n)?"function"==typeof t||"function"==typeof n?Ia(t,n):Be(t)||Be(n)?Ra(t,n):"string"==typeof t||"string"==typeof n?function(t,n){const e=t=>"string"==typeof t?t.replace(/,/g,""):t;return Pa(e(t),e(n))}(t,n):Pa(t,n):za(t,n)};var Ba,Wa,Ua=0,Va=0,Ha=0,qa=0,Ya=0,Ga=0,Ka="object"==typeof performance&&performance.now?performance:Date,Xa="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Za(){return Ya||(Xa(Qa),Ya=Ka.now()+Ga)}function Qa(){Ya=0}function Ja(){this._call=this._time=this._next=null}function ts(t,n,e){var r=new Ja;return r.restart(t,n,e),r}function ns(){Ya=(qa=Ka.now())+Ga,Ua=Va=0;try{!function(){Za(),++Ua;for(var t,n=Ba;n;)(t=Ya-n._time)>=0&&n._call.call(void 0,t),n=n._next;--Ua}()}finally{Ua=0,function(){var t,n,e=Ba,r=1/0;for(;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Ba=n);Wa=t,rs(r)}(),Ya=0}}function es(){var t=Ka.now(),n=t-qa;n>1e3&&(Ga-=n,qa=t)}function rs(t){Ua||(Va&&(Va=clearTimeout(Va)),t-Ya>24?(t<1/0&&(Va=setTimeout(ns,t-Ka.now()-Ga)),Ha&&(Ha=clearInterval(Ha))):(Ha||(qa=Ka.now(),Ha=setInterval(es,1e3)),Ua=1,Xa(ns)))}Ja.prototype=ts.prototype={constructor:Ja,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Za():+e)+(null==n?0:+n),this._next||Wa===this||(Wa?Wa._next=this:Ba=this,Wa=this),this._call=t,this._time=e,rs()},stop:function(){this._call&&(this._call=null,this._time=1/0,rs())}};class is{constructor(){this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}bypassAnimation(){this.shouldAnimate=!1}resumeAnimation(){this.shouldAnimate=!0}loop=()=>{this.subscribers.forEach((t=>{t.callback(Za()-t.startTime,t.duration)}))};start(){this.timer||(this.timer=ts(this.loop))}stop(){this.timer&&(this.timer.stop(),this.timer=null)}subscribe(t,n){const e=this.subscribers.push({startTime:Za(),callback:t,duration:this.shouldAnimate?n:0});return this.activeSubscriptions++,this.start(),e}unsubscribe(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}const os=r.createContext({transitionTimer:new is,animationTimer:new is});os.displayName="TimerContext";const as=1e3,ss=t=>{let{duration:n=as,easing:e="quadInOut",delay:i=0,data:o,children:a,onEnd:s}=t;const[l,c]=r.useState({data:Array.isArray(o)?o[0]:o,animationInfo:{progress:0,animating:!1}}),u=r.useContext(os).animationTimer,h=r.useRef(Array.isArray(o)?o.slice(1):[]),d=r.useRef(null),f=r.useRef(void 0),p=et[(g=e,`ease${g.charAt(0).toUpperCase()+g.slice(1)}`)];var g;r.useEffect((()=>(h.current.length&&y(),()=>{f.current?u.unsubscribe(f.current):u.stop()})),[]),r.useEffect((()=>{d.current&&l.animationInfo&&l.animationInfo.progress<1?c({data:d.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}):(u.unsubscribe(f.current),h.current=Array.isArray(o)?o:[o],y())}),[o]);const y=()=>{if(h.current.length){const t=h.current[0];d.current=Fa(l.data,t),i?setTimeout((()=>{f.current=u.subscribe(m,n)}),i):f.current=u.subscribe(m,n)}else s&&s()},m=t=>{if(!d.current)return;const e=n?t/n:1;if(e>=1)return c({data:d.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),f.current&&u.unsubscribe(f.current),h.current.shift(),void y();c({data:d.current(p(e)),animationInfo:{progress:e,animating:e<1}})};return a(l.data,l.animationInfo)};var ls,cs;var us=it(function(){if(cs)return ls;cs=1;var t=sr(),n=0;return ls=function(e){var r=++n;return t(e)+r}}());function hs(){return hs=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},hs.apply(this,arguments)}const ds=r.forwardRef(((t,n)=>r.createElement("svg",hs({ref:n},t))));var fs,ps,gs,ys,ms,xs,vs,bs,_s,As,ws,Es,Ms,ks,Cs,Os,js,Ss,$s,Ts,Ps,Ds,Ls,Ns,zs,Is;function Rs(){if(ys)return gs;ys=1;var t=ps?fs:(ps=1,fs=function(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}),n=Math.max;return gs=function(e,r,i){return r=n(void 0===r?e.length-1:r,0),function(){for(var o=arguments,a=-1,s=n(o.length-r,0),l=Array(s);++a<s;)l[a]=o[r+a];a=-1;for(var c=Array(r+1);++a<r;)c[a]=o[a];return c[r]=i(l),t(e,this,c)}},gs}function Fs(){if(bs)return vs;bs=1;var t=Xe(),n=function(){try{var n=t(Object,"defineProperty");return n({},"",{}),n}catch(t){}}();return vs=n}function Bs(){if(As)return _s;As=1;var t=xs?ms:(xs=1,ms=function(t){return function(){return t}}),n=Fs(),e=Po(),r=n?function(e,r){return n(e,"toString",{configurable:!0,enumerable:!1,value:t(r),writable:!0})}:e;return _s=r}function Ws(){if(ks)return Ms;ks=1;var t=Bs(),n=function(){if(Es)return ws;Es=1;var t=Date.now;return ws=function(n){var e=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++e>=800)return arguments[0]}else e=0;return n.apply(void 0,arguments)}},ws}(),e=n(t);return Ms=e}function Us(){if(Ds)return Ps;Ds=1;var t=qe(),n=bo(),e=(Ts||(Ts=1,$s=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}),$s),r=Object.prototype.hasOwnProperty;return Ps=function(i){if(!t(i))return e(i);var o=n(i),a=[];for(var s in i)("constructor"!=s||!o&&r.call(i,s))&&a.push(s);return a},Ps}function Vs(){if(Ns)return Ls;Ns=1;var t=vo(),n=Us(),e=Ao();return Ls=function(r){return e(r)?t(r,!0):n(r)},Ls}var Hs,qs,Ys,Gs,Ks,Xs,Zs,Qs,Js,tl,nl,el,rl,il,ol,al,sl,ll,cl,ul,hl=function(){if(Is)return zs;Is=1;var t=function(){if(Os)return Cs;Os=1;var t=Po(),n=Rs(),e=Ws();return Cs=function(r,i){return e(n(r,i,t),r+"")}}(),n=Je(),e=function(){if(Ss)return js;Ss=1;var t=Je(),n=Ao(),e=Lr(),r=qe();return js=function(i,o,a){if(!r(a))return!1;var s=typeof o;return!!("number"==s?n(a)&&e(o,a.length):"string"==s&&o in a)&&t(a[o],i)},js}(),r=Vs(),i=Object.prototype,o=i.hasOwnProperty,a=t((function(t,a){t=Object(t);var s=-1,l=a.length,c=l>2?a[2]:void 0;for(c&&e(a[0],a[1],c)&&(l=1);++s<l;)for(var u=a[s],h=r(u),d=-1,f=h.length;++d<f;){var p=h[d],g=t[p];(void 0===g||n(g,i[p])&&!o.call(t,p))&&(t[p]=u[p])}return t}));return zs=a}(),dl=it(hl),fl=it(Do());function pl(){if(qs)return Hs;qs=1;var t=Fs();return Hs=function(n,e,r){"__proto__"==e&&t?t(n,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[e]=r},Hs}function gl(){if(Xs)return Ks;Xs=1;var t=function(){if(Gs)return Ys;Gs=1;var t=pl(),n=Je(),e=Object.prototype.hasOwnProperty;return Ys=function(r,i,o){var a=r[i];e.call(r,i)&&n(a,o)&&(void 0!==o||i in r)||t(r,i,o)},Ys}(),n=lr(),e=Lr(),r=qe(),i=cr();return Ks=function(o,a,s,l){if(!r(o))return o;for(var c=-1,u=(a=n(a,o)).length,h=u-1,d=o;null!=d&&++c<u;){var f=i(a[c]),p=s;if("__proto__"===f||"constructor"===f||"prototype"===f)return o;if(c!=h){var g=d[f];void 0===(p=l?l(g,f,d):void 0)&&(p=r(g)?g:e(a[c+1])?[]:{})}t(d,f,p),d=d[f]}return o},Ks}function yl(){if(Qs)return Zs;Qs=1;var t=ur(),n=gl(),e=lr();return Zs=function(r,i,o){for(var a=-1,s=i.length,l={};++a<s;){var c=i[a],u=t(r,c);o(u,c)&&n(l,e(c,r),u)}return l},Zs}function ml(){if(il)return rl;il=1;var t=mr(),n=function(){if(el)return nl;el=1;var t=st(),n=_r(),e=Ue(),r=t?t.isConcatSpreadable:void 0;return nl=function(t){return e(t)||n(t)||!!(r&&t&&t[r])}}();return rl=function e(r,i,o,a,s){var l=-1,c=r.length;for(o||(o=n),s||(s=[]);++l<c;){var u=r[l];i>0&&o(u)?i>1?e(u,i-1,o,a,s):t(s,u):a||(s[s.length]=u)}return s},rl}function xl(){if(ll)return sl;ll=1;var t=function(){if(al)return ol;al=1;var t=ml();return ol=function(n){return null!=n&&n.length?t(n,1):[]},ol}(),n=Rs(),e=Ws();return sl=function(r){return e(n(r,void 0,t),r+"")}}var vl=function(){if(ul)return cl;ul=1;var t=function(){if(tl)return Js;tl=1;var t=yl(),n=$o();return Js=function(e,r){return t(e,r,(function(t,r){return n(e,r)}))},Js}(),n=xl()((function(n,e){return null==n?{}:t(n,e)}));return cl=n}(),bl=it(vl);function _l(t){return Object.entries(t).reduce(((t,n)=>(t[n[1]]=n[0],t)),{})}function Al(t,n){void 0===n&&(n=[]);const e={};for(const r in t)n.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function wl(t){const{_x:n,_x1:e,_x0:r,_voronoiX:i,_y:o,_y1:a,_y0:s,_voronoiY:l}=t;return dl({},{x:i??(e??n),x0:r??n,y:l??(a??o),y0:s??o},t)}function El(t,n){const{scale:e,polar:r,horizontal:i}=t,o=wl(n),a=t.origin||{x:0,y:0},s=i?e.y(o.y):e.x(o.x),l=i?e.y(o.y0):e.x(o.x0),c=i?e.x(o.x):e.y(o.y),u=i?e.x(o.x0):e.y(o.y0);return{x:r?c*Math.cos(s)+a.x:s,x0:r?u*Math.cos(l)+a.x:l,y:r?-c*Math.sin(s)+a.y:c,y0:r?-u*Math.sin(l)+a.x:u}}function Ml(t){const n="number"==typeof t?t:0,e="object"==typeof t?t:{};return{top:e.top||n,bottom:e.bottom||n,left:e.left||n,right:e.right||n}}function kl(t){return"tooltip"===(t&&t.type&&t.type.role)}function Cl(t,n){const{theme:e={},labelComponent:r}=t,i=e[n]&&e[n].style||{};if(!kl(r))return i;const o=e.tooltip&&e.tooltip.style||{},a=dl({},o,i.labels);return dl({},{labels:a},i)}function Ol(t,n){const e="100%",r="100%";if(!t)return dl({parent:{height:r,width:e}},n);const{data:i,labels:o,parent:a}=t,s=n&&n.parent||{},l=n&&n.labels||{},c=n&&n.data||{};return{parent:dl({},a,s,{width:e,height:r}),labels:dl({},o,l),data:dl({},i,c)}}function jl(t,n){return zl(t)?t(n):t}function Sl(t,n){return n.disableInlineStyles?{}:t&&Object.keys(t).some((n=>zl(t[n])))?Object.keys(t).reduce(((e,r)=>(e[r]=jl(t[r],n),e)),{}):t}function $l(t){return"number"==typeof t?t*(Math.PI/180):t}function Tl(t){return"number"==typeof t?t/(Math.PI/180):t}function Pl(t){const{width:n,height:e,padding:r}=t,{left:i,right:o,top:a,bottom:s}=r;return Math.min(n-i-o,e-a-s)/2}function Dl(t){const{width:n,height:e}=t,{top:r,bottom:i,left:o,right:a}=Ml(t.padding),s=Math.min(n-o-a,e-r-i)/2,l=n/2+o-a,c=e/2+r-i;return{x:l+s>n?s+o-a:l,y:c+s>e?s+r-i:c}}function Ll(t,n){return t.range&&t.range[n]?t.range[n]:t.range&&Array.isArray(t.range)?t.range:t.polar?function(t){if("x"===t.axis)return[$l(t.startAngle||0),$l(t.endAngle||360)];return[t.innerRadius||0,Pl({height:t.height,width:t.width,padding:t.padding})]}({axis:n,innerRadius:t.innerRadius,startAngle:t.startAngle,endAngle:t.endAngle,height:t.height,width:t.width,padding:Ml(t.padding)}):function(t){return"x"!==t.axis?[t.height-t.padding.bottom,t.padding.top]:[t.padding.left,t.width-t.padding.right]}({axis:n,height:t.height,width:t.width,padding:Ml(t.padding)})}function Nl(t){return null==t}function zl(t){return"function"==typeof t}function Il(t){return zl(t)?t:null==t?t=>t:fl(t)}function Rl(t,n,e){const i=Al(t.theme&&t.theme[e]?t.theme[e]:{},["style"]),o=function(t){if(void 0!==t.horizontal||!t.children)return t.horizontal;const n=t=>t.reduce(((t,e)=>{const i=e.props||{};return t||i.horizontal||!i.children?t||i.horizontal:n(r.Children.toArray(i.children))}),!1);return n(r.Children.toArray(t.children))}(t);return dl(void 0===o?{}:{horizontal:o},t,i,n)}function Fl(t,n,e){const r=n?t:0;let i=n||t;i||(i=0);const o=i-r,a=Math.abs(o),s=o/a||1,l=e||1,c=Math.max(Math.ceil(a/l),0);return Array.from(Array(c),((t,n)=>r+n*s*l))}function Bl(t,n,e,o,a){void 0===e&&(e={}),void 0===o&&(o=[]),void 0===a&&(a=(t,n)=>t.concat(n));const s=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],l=(t,i,c)=>t.reduce(((t,o,u)=>{let h=t;const d=o.type&&o.type.role,f=o.props.name||`${d}-${i[u]}`;if(o.props&&o.props.children){const t=Object.assign({},o.props,bl(e,s)),n=o.type&&"stack"===o.type.role&&zl(o.type.getChildren)?o.type.getChildren(t):r.Children.toArray(o.props.children).map((n=>{const e=Object.assign({},n.props,bl(t,s));return r.cloneElement(n,e)})),i=n.map(((t,n)=>`${f}-${n}`)),c=l(n,i,o);h=a(h,c)}else{const t=n(o,f,c);t&&(h=a(h,t))}return h}),o),c=t.filter(i),u=c.map(((t,n)=>n));return l(c,u)}const Wl={startsWith:["data-","aria-"],exactMatch:[]},Ul=t=>!(!(t=>{let n=!1;return Wl.startsWith.forEach((e=>{new RegExp(`\\b(${e})(\\w|-)+`,"g").test(t)&&(n=!0)})),n})(t)&&!(t=>Wl.exactMatch.includes(t))(t)),Vl=t=>{const n={...t};return Object.fromEntries(Object.entries(n).filter((t=>{let[n]=t;return Ul(n)})).map((n=>{let[e,r]=n;return[e,jl(r,t)]})))},Hl=(t,n)=>e.cloneElement(t,Vl(n));var ql,Yl;var Gl,Kl,Xl=function(){if(Yl)return ql;Yl=1;var t=_o(),n=ko(),e=_r(),r=Ue(),i=Ao(),o=Dr(),a=bo(),s=xo(),l=Object.prototype.hasOwnProperty;return ql=function(c){if(null==c)return!0;if(i(c)&&(r(c)||"string"==typeof c||"function"==typeof c.splice||o(c)||s(c)||e(c)))return!c.length;var u=n(c);if("[object Map]"==u||"[object Set]"==u)return!c.size;if(a(c))return!t(c).length;for(var h in c)if(l.call(c,h))return!1;return!0}}(),Zl=it(Xl);var Ql=function(){if(Kl)return Gl;Kl=1;var t="undefined"!=typeof Element,n="function"==typeof Map,e="function"==typeof Set,r="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(o,a){if(o===a)return!0;if(o&&a&&"object"==typeof o&&"object"==typeof a){if(o.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(o)){if((s=o.length)!=a.length)return!1;for(l=s;0!=l--;)if(!i(o[l],a[l]))return!1;return!0}if(n&&o instanceof Map&&a instanceof Map){if(o.size!==a.size)return!1;for(u=o.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=o.entries();!(l=u.next()).done;)if(!i(l.value[1],a.get(l.value[0])))return!1;return!0}if(e&&o instanceof Set&&a instanceof Set){if(o.size!==a.size)return!1;for(u=o.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(a)){if((s=o.length)!=a.length)return!1;for(l=s;0!=l--;)if(o[l]!==a[l])return!1;return!0}if(o.constructo