@metrostar/comet-data-viz
Version:
A set of Victory Chart components provided as a Comet wrapper
1 lines • 277 kB
JavaScript
"use strict";var t=require("react/jsx-runtime"),n=require("react");function e(t){var n=Object.create(null);return t&&Object.keys(t).forEach((function(e){if("default"!==e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}})),n.default=t,Object.freeze(n)}var r=e(n);function i(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function o(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var a=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),s=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),l=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),c=Math.PI,u=c/2;function h(t){return(1-Math.cos(c*t))/2}function d(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function f(t){return((t*=2)<=1?d(1-t):2-d(t-1))/2}function p(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var g=4/11,y=6/11,m=8/11,x=9/11,v=10/11,b=21/22,_=7.5625;function A(t){return(t=+t)<g?_*t*t:t<m?_*(t-=y)*t+.75:t<v?_*(t-=x)*t+.9375:_*(t-=b)*t+.984375}var w,E,M,k,C,O,j,S,$,T,P,D,L,N,z,I,R,F,B,W,U=1.70158,V=function t(n){function e(t){return(t=+t)*t*(n*(t-1)+t)}return n=+n,e.overshoot=t,e}(U),q=function t(n){function e(t){return--t*t*((t+1)*n+t)+1}return n=+n,e.overshoot=t,e}(U),H=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}(U),Y=2*Math.PI,G=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Y);function i(t){return n*d(- --t)*Math.sin((r-t)/e)}return i.amplitude=function(n){return t(n,e*Y)},i.period=function(e){return t(n,e)},i}(1,.3),K=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Y);function i(t){return 1-n*d(t=+t)*Math.sin((t+r)/e)}return i.amplitude=function(n){return t(n,e*Y)},i.period=function(e){return t(n,e)},i}(1,.3),X=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Y);function i(t){return((t=2*t-1)<0?n*d(-t)*Math.sin((r-t)/e):2-n*d(t)*Math.sin((r+t)/e))/2}return i.amplitude=function(n){return t(n,e*Y)},i.period=function(e){return t(n,e)},i}(1,.3),Z=Object.freeze({__proto__:null,easeBack:H,easeBackIn:V,easeBackInOut:H,easeBackOut:q,easeBounce:A,easeBounceIn:function(t){return 1-A(1-t)},easeBounceInOut:function(t){return((t*=2)<=1?1-A(1-t):A(t-1)+1)/2},easeBounceOut:A,easeCircle:p,easeCircleIn:function(t){return 1-Math.sqrt(1-t*t)},easeCircleInOut:p,easeCircleOut:function(t){return Math.sqrt(1- --t*t)},easeCubic:o,easeCubicIn:function(t){return t*t*t},easeCubicInOut:o,easeCubicOut:function(t){return--t*t*t+1},easeElastic:K,easeElasticIn:G,easeElasticInOut:X,easeElasticOut:K,easeExp:f,easeExpIn:function(t){return d(1-+t)},easeExpInOut:f,easeExpOut:function(t){return 1-d(t)},easeLinear:t=>+t,easePoly:l,easePolyIn:a,easePolyInOut:l,easePolyOut:s,easeQuad:i,easeQuadIn:function(t){return t*t},easeQuadInOut:i,easeQuadOut:function(t){return t*(2-t)},easeSin:h,easeSinIn:function(t){return 1==+t?1:1-Math.cos(t*u)},easeSinInOut:h,easeSinOut:function(t){return Math.sin(t*u)}}),Q="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function J(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function tt(){if(E)return w;E=1;var t="object"==typeof Q&&Q&&Q.Object===Object&&Q;return w=t}function nt(){if(k)return M;k=1;var t=tt(),n="object"==typeof self&&self&&self.Object===Object&&self,e=t||n||Function("return this")();return M=e}function et(){if(O)return C;O=1;var t=nt().Symbol;return C=t}function rt(){if(D)return P;D=1;var t=et(),n=function(){if(S)return j;S=1;var t=et(),n=Object.prototype,e=n.hasOwnProperty,r=n.toString,i=t?t.toStringTag:void 0;return j=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(T)return $;T=1;var t=Object.prototype.toString;return $=function(n){return t.call(n)}}(),r=t?t.toStringTag:void 0;return P=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":r&&r in Object(t)?n(t):e(t)}}function it(){if(N)return L;return N=1,L=function(t,n){return function(e){return t(n(e))}}}function ot(){if(I)return z;I=1;var t=it()(Object.getPrototypeOf,Object);return z=t}function at(){if(F)return R;return F=1,R=function(t){return null!=t&&"object"==typeof t}}var st,lt,ct,ut,ht,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,qt,Ht,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,qn,Hn,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=J(function(){if(W)return B;W=1;var t=rt(),n=ot(),e=at(),r=Function.prototype,i=Object.prototype,o=r.toString,a=i.hasOwnProperty,s=o.call(Object);return B=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 ze(){if(lt)return st;return lt=1,st=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},st}function Ie(){if(ut)return ct;ut=1;var t=Array.isArray;return ct=t}function Re(){if(dt)return ht;dt=1;var t=rt(),n=at();return ht=function(e){return"symbol"==typeof e||n(e)&&"[object Symbol]"==t(e)}}function Fe(){if(pt)return ft;pt=1;var t=Ie(),n=Re(),e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return ft=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))},ft}function Be(){if(yt)return gt;return yt=1,gt=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}}function We(){if(xt)return mt;xt=1;var t=rt(),n=Be();return mt=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 Ue(){if(At)return _t;At=1;var t,n=function(){if(bt)return vt;bt=1;var t=nt()["__core-js_shared__"];return vt=t}(),e=(t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";return _t=function(t){return!!e&&e in t}}function Ve(){if(Et)return wt;Et=1;var t=Function.prototype.toString;return wt=function(n){if(null!=n){try{return t.call(n)}catch(t){}try{return n+""}catch(t){}}return""}}function qe(){if(St)return jt;St=1;var t=function(){if(kt)return Mt;kt=1;var t=We(),n=Ue(),e=Be(),r=Ve(),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 Mt=function(o){return!(!e(o)||n(o))&&(t(o)?c:i).test(r(o))}}(),n=(Ot||(Ot=1,Ct=function(t,n){return null==t?void 0:t[n]}),Ct);return jt=function(e,r){var i=n(e,r);return t(i)?i:void 0},jt}function He(){if(Tt)return $t;Tt=1;var t=qe()(Object,"create");return $t=t}function Ye(){if(Vt)return Ut;Vt=1;var t=function(){if(Dt)return Pt;Dt=1;var t=He();return Pt=function(){this.__data__=t?t(null):{},this.size=0}}(),n=Nt?Lt:(Nt=1,Lt=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}),e=function(){if(It)return zt;It=1;var t=He(),n=Object.prototype.hasOwnProperty;return zt=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(Ft)return Rt;Ft=1;var t=He(),n=Object.prototype.hasOwnProperty;return Rt=function(e){var r=this.__data__;return t?void 0!==r[e]:n.call(r,e)}}(),i=function(){if(Wt)return Bt;Wt=1;var t=He();return Bt=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,Ut=o}function Ge(){if(Gt)return Yt;return Gt=1,Yt=function(t,n){return t===n||t!=t&&n!=n}}function Ke(){if(Xt)return Kt;Xt=1;var t=Ge();return Kt=function(n,e){for(var r=n.length;r--;)if(t(n[r][0],e))return r;return-1},Kt}function Xe(){if(sn)return an;sn=1;var t=Ht?qt:(Ht=1,qt=function(){this.__data__=[],this.size=0}),n=function(){if(Qt)return Zt;Qt=1;var t=Ke(),n=Array.prototype.splice;return Zt=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(tn)return Jt;tn=1;var t=Ke();return Jt=function(n){var e=this.__data__,r=t(e,n);return r<0?void 0:e[r][1]}}(),r=function(){if(en)return nn;en=1;var t=Ke();return nn=function(n){return t(this.__data__,n)>-1}}(),i=function(){if(on)return rn;on=1;var t=Ke();return rn=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,an=o}function Ze(){if(cn)return ln;cn=1;var t=qe()(nt(),"Map");return ln=t}function Qe(){if(gn)return pn;gn=1;var t=fn?dn:(fn=1,dn=function(t){var n=typeof t;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t});return pn=function(n,e){var r=n.__data__;return t(e)?r["string"==typeof e?"string":"hash"]:r.map},pn}function Je(){if(Mn)return En;Mn=1;var t=function(){if(hn)return un;hn=1;var t=Ye(),n=Xe(),e=Ze();return un=function(){this.size=0,this.__data__={hash:new t,map:new(e||n),string:new t}}}(),n=function(){if(mn)return yn;mn=1;var t=Qe();return yn=function(n){var e=t(this,n).delete(n);return this.size-=e?1:0,e}}(),e=function(){if(vn)return xn;vn=1;var t=Qe();return xn=function(n){return t(this,n).get(n)}}(),r=function(){if(_n)return bn;_n=1;var t=Qe();return bn=function(n){return t(this,n).has(n)}}(),i=function(){if(wn)return An;wn=1;var t=Qe();return An=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,En=o}function tr(){if(Cn)return kn;Cn=1;var t=Je();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,kn=n}function nr(){if($n)return Sn;$n=1;var t=function(){if(jn)return On;jn=1;var t=tr();return On=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 Sn=r}function er(){if(Ln)return Dn;Ln=1;var t=function(){if(Pn)return Tn;Pn=1;var t=et(),n=ze(),e=Ie(),r=Re(),i=t?t.prototype:void 0,o=i?i.toString:void 0;return Tn=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},Tn}();return Dn=function(n){return null==n?"":t(n)}}function rr(){if(zn)return Nn;zn=1;var t=Ie(),n=Fe(),e=nr(),r=er();return Nn=function(i,o){return t(i)?i:n(i,o)?[i]:e(r(i))},Nn}function ir(){if(Rn)return In;Rn=1;var t=Re();return In=function(n){if("string"==typeof n||t(n))return n;var e=n+"";return"0"==e&&1/n==-1/0?"-0":e}}function or(){if(Bn)return Fn;Bn=1;var t=rr(),n=ir();return Fn=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},Fn}function ar(){if(Jn)return Qn;Jn=1;var t=Xe(),n=function(){if(Un)return Wn;Un=1;var t=Xe();return Wn=function(){this.__data__=new t,this.size=0}}(),e=qn?Vn:(qn=1,Vn=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e}),r=Yn?Hn:(Yn=1,Hn=function(t){return this.__data__.get(t)}),i=Kn?Gn:(Kn=1,Gn=function(t){return this.__data__.has(t)}),o=function(){if(Zn)return Xn;Zn=1;var t=Xe(),n=Ze(),e=Je();return Xn=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,Qn=a}function sr(){if(oe)return ie;oe=1;var t=Je(),n=ne?te:(ne=1,te=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}),e=re?ee:(re=1,ee=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,ie=r}function lr(){if(ce)return le;return ce=1,le=function(t,n){return t.has(n)}}function cr(){if(he)return ue;he=1;var t=sr(),n=(se||(se=1,ae=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}),ae),e=lr();return ue=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},ue}function ur(){if(me)return ye;return me=1,ye=function(t){var n=-1,e=Array(t.size);return t.forEach((function(t){e[++n]=t})),e}}function hr(){if(ve)return xe;ve=1;var t=et(),n=function(){if(fe)return de;fe=1;var t=nt().Uint8Array;return de=t}(),e=Ge(),r=cr(),i=(ge||(ge=1,pe=function(t){var n=-1,e=Array(t.size);return t.forEach((function(t,r){e[++n]=[r,t]})),e}),pe),o=ur(),a=t?t.prototype:void 0,s=a?a.valueOf:void 0;return xe=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},xe}function dr(){if(_e)return be;return _e=1,be=function(t,n){for(var e=-1,r=n.length,i=t.length;++e<r;)t[i+e]=n[e];return t},be}function fr(){if(we)return Ae;we=1;var t=dr(),n=Ie();return Ae=function(e,r,i){var o=r(e);return n(e)?o:t(o,i(e))},Ae}function pr(){if(Ce)return ke;return Ce=1,ke=function(){return[]}}function gr(){if(je)return Oe;je=1;var t=(Me||(Me=1,Ee=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}),Ee),n=pr(),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 Oe=i}function yr(){if(Le)return De;Le=1;var t=function(){if(Pe)return Te;Pe=1;var t=rt(),n=at();return Te=function(e){return n(e)&&"[object Arguments]"==t(e)}}(),n=at(),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 De=o}var mr,xr,vr,br,_r,Ar,wr,Er,Mr,kr,Cr,Or={exports:{}};function jr(){return vr||(vr=1,function(t,n){var e=nt(),r=xr?mr:(xr=1,mr=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}(Or,Or.exports)),Or.exports}function Sr(){if(_r)return br;_r=1;var t=/^(?:0|[1-9]\d*)$/;return br=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 $r(){if(wr)return Ar;wr=1;return Ar=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}}function Tr(){if(Cr)return kr;return Cr=1,kr=function(t){return function(n){return t(n)}}}var Pr,Dr,Lr,Nr,zr,Ir,Rr,Fr,Br,Wr,Ur,Vr,qr,Hr,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,qi,Hi,Yi,Gi,Ki,Xi,Zi,Qi,Ji,to,no,eo,ro,io,oo,ao,so,lo,co,uo={exports:{}};function ho(){return Pr||(Pr=1,function(t,n){var e=tt(),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}(uo,uo.exports)),uo.exports}function fo(){if(Lr)return Dr;Lr=1;var t=function(){if(Mr)return Er;Mr=1;var t=rt(),n=$r(),e=at(),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,Er=function(i){return e(i)&&n(i.length)&&!!r[t(i)]}}(),n=Tr(),e=ho(),r=e&&e.isTypedArray,i=r?n(r):t;return Dr=i}function po(){if(zr)return Nr;zr=1;var t=$e?Se:($e=1,Se=function(t,n){for(var e=-1,r=Array(t);++e<t;)r[e]=n(e);return r}),n=yr(),e=Ie(),r=jr(),i=Sr(),o=fo(),a=Object.prototype.hasOwnProperty;return Nr=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 go(){if(Rr)return Ir;Rr=1;var t=Object.prototype;return Ir=function(n){var e=n&&n.constructor;return n===("function"==typeof e&&e.prototype||t)}}function yo(){if(Ur)return Wr;Ur=1;var t=go(),n=function(){if(Br)return Fr;Br=1;var t=it()(Object.keys,Object);return Fr=t}(),e=Object.prototype.hasOwnProperty;return Wr=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},Wr}function mo(){if(qr)return Vr;qr=1;var t=We(),n=$r();return Vr=function(e){return null!=e&&n(e.length)&&!t(e)}}function xo(){if(Yr)return Hr;Yr=1;var t=po(),n=yo(),e=mo();return Hr=function(r){return e(r)?t(r):n(r)},Hr}function vo(){if(Zr)return Xr;Zr=1;var t=function(){if(Kr)return Gr;Kr=1;var t=fr(),n=gr(),e=xo();return Gr=function(r){return t(r,e,n)},Gr}(),n=Object.prototype.hasOwnProperty;return Xr=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},Xr}function bo(){if(ri)return ei;ri=1;var t=qe()(nt(),"Set");return ei=t}function _o(){if(si)return ai;si=1;var t=function(){if(Jr)return Qr;Jr=1;var t=qe()(nt(),"DataView");return Qr=t}(),n=Ze(),e=function(){if(ni)return ti;ni=1;var t=qe()(nt(),"Promise");return ti=t}(),r=bo(),i=function(){if(oi)return ii;oi=1;var t=qe()(nt(),"WeakMap");return ii=t}(),o=rt(),a=Ve(),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}),ai=m}function Ao(){if(hi)return ui;hi=1;var t=function(){if(ci)return li;ci=1;var t=ar(),n=cr(),e=hr(),r=vo(),i=_o(),o=Ie(),a=jr(),s=fo(),l="[object Arguments]",c="[object Array]",u="[object Object]",h=Object.prototype.hasOwnProperty;return li=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))},li}(),n=at();return ui=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))},ui}function wo(){if(gi)return pi;gi=1;var t=Be();return pi=function(n){return n==n&&!t(n)}}function Eo(){if(vi)return xi;return vi=1,xi=function(t,n){return function(e){return null!=e&&(e[t]===n&&(void 0!==n||t in Object(e)))}},xi}function Mo(){if(_i)return bi;_i=1;var t=function(){if(fi)return di;fi=1;var t=ar(),n=Ao();return di=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},di}(),n=function(){if(mi)return yi;mi=1;var t=wo(),n=xo();return yi=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},yi}(),e=Eo();return bi=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)}},bi}function ko(){if(ji)return Oi;ji=1;var t=(Mi||(Mi=1,Ei=function(t,n){return null!=t&&n in Object(t)}),Ei),n=function(){if(Ci)return ki;Ci=1;var t=rr(),n=yr(),e=Ie(),r=Sr(),i=$r(),o=ir();return ki=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))},ki}();return Oi=function(e,r){return null!=e&&n(e,r,t)},Oi}function Co(){if($i)return Si;$i=1;var t=Ao(),n=function(){if(wi)return Ai;wi=1;var t=or();return Ai=function(n,e,r){var i=null==n?void 0:t(n,e);return void 0===i?r:i},Ai}(),e=ko(),r=Fe(),i=wo(),o=Eo(),a=ir();return Si=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)}},Si}function Oo(){if(Pi)return Ti;return Pi=1,Ti=function(t){return t}}function jo(){if(Ri)return Ii;Ri=1;var t=(Li||(Li=1,Di=function(t){return function(n){return null==n?void 0:n[t]}}),Di),n=function(){if(zi)return Ni;zi=1;var t=or();return Ni=function(n){return function(e){return t(e,n)}},Ni}(),e=Fe(),r=ir();return Ii=function(i){return e(i)?t(r(i)):n(i)}}function So(){if(Bi)return Fi;Bi=1;var t=Mo(),n=Co(),e=Oo(),r=Ie(),i=jo();return Fi=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 $o(){if(qi)return Vi;qi=1;var t=(Ui||(Ui=1,Wi=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}}),Wi),n=t();return Vi=n}function To(){if(Zi)return Xi;Zi=1;var t=function(){if(Yi)return Hi;Yi=1;var t=$o(),n=xo();return Hi=function(e,r){return e&&t(e,r,n)},Hi}(),n=function(){if(Ki)return Gi;Ki=1;var t=mo();return Gi=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 Xi=n}function Po(){if(oo)return io;oo=1;var t=function(){if(ro)return eo;ro=1;var t=Re();return eo=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 io=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},io}function Do(){if(so)return ao;so=1;var t=ze(),n=or(),e=So(),r=function(){if(Ji)return Qi;Ji=1;var t=To(),n=mo();return Qi=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=(no||(no=1,to=function(t,n){var e=t.length;for(t.sort(n);e--;)t[e]=t[e].value;return t}),to),o=Tr(),a=Po(),s=Oo(),l=Ie();return ao=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)}))},ao}var Lo=J(function(){if(co)return lo;co=1;var t=Do(),n=Ie();return lo=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 No(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function zo(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function Io(){}var Ro=.7,Fo=1/Ro,Bo="\\s*([+-]?\\d+)\\s*",Wo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Uo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vo=/^#([0-9a-f]{3,8})$/,qo=new RegExp(`^rgb\\(${Bo},${Bo},${Bo}\\)$`),Ho=new RegExp(`^rgb\\(${Uo},${Uo},${Uo}\\)$`),Yo=new RegExp(`^rgba\\(${Bo},${Bo},${Bo},${Wo}\\)$`),Go=new RegExp(`^rgba\\(${Uo},${Uo},${Uo},${Wo}\\)$`),Ko=new RegExp(`^hsl\\(${Wo},${Uo},${Uo}\\)$`),Xo=new RegExp(`^hsla\\(${Wo},${Uo},${Uo},${Wo}\\)$`),Zo={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 Qo(){return this.rgb().formatHex()}function Jo(){return this.rgb().formatRgb()}function ta(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=Vo.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?na(n):3===e?new ia(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?ea(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?ea(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=qo.exec(t))?new ia(n[1],n[2],n[3],1):(n=Ho.exec(t))?new ia(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Yo.exec(t))?ea(n[1],n[2],n[3],n[4]):(n=Go.exec(t))?ea(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Ko.exec(t))?ua(n[1],n[2]/100,n[3]/100,1):(n=Xo.exec(t))?ua(n[1],n[2]/100,n[3]/100,n[4]):Zo.hasOwnProperty(t)?na(Zo[t]):"transparent"===t?new ia(NaN,NaN,NaN,0):null}function na(t){return new ia(t>>16&255,t>>8&255,255&t,1)}function ea(t,n,e,r){return r<=0&&(t=n=e=NaN),new ia(t,n,e,r)}function ra(t,n,e,r){return 1===arguments.length?((i=t)instanceof Io||(i=ta(i)),i?new ia((i=i.rgb()).r,i.g,i.b,i.opacity):new ia):new ia(t,n,e,null==r?1:r);var i}function ia(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function oa(){return`#${ca(this.r)}${ca(this.g)}${ca(this.b)}`}function aa(){const t=sa(this.opacity);return`${1===t?"rgb(":"rgba("}${la(this.r)}, ${la(this.g)}, ${la(this.b)}${1===t?")":`, ${t})`}`}function sa(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function la(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ca(t){return((t=la(t))<16?"0":"")+t.toString(16)}function ua(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new da(t,n,e,r)}function ha(t){if(t instanceof da)return new da(t.h,t.s,t.l,t.opacity);if(t instanceof Io||(t=ta(t)),!t)return new da;if(t instanceof da)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 da(a,s,l,t.opacity)}function da(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function fa(t){return(t=(t||0)%360)<0?t+360:t}function pa(t){return Math.max(0,Math.min(1,t||0))}function ga(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}No(Io,ta,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Qo,formatHex:Qo,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ha(this).formatHsl()},formatRgb:Jo,toString:Jo}),No(ia,ra,zo(Io,{brighter(t){return t=null==t?Fo:Math.pow(Fo,t),new ia(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Ro:Math.pow(Ro,t),new ia(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ia(la(this.r),la(this.g),la(this.b),sa(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:oa,formatHex:oa,formatHex8:function(){return`#${ca(this.r)}${ca(this.g)}${ca(this.b)}${ca(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:aa,toString:aa})),No(da,(function(t,n,e,r){return 1===arguments.length?ha(t):new da(t,n,e,null==r?1:r)}),zo(Io,{brighter(t){return t=null==t?Fo:Math.pow(Fo,t),new da(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Ro:Math.pow(Ro,t),new da(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 ia(ga(t>=240?t-240:t+120,i,r),ga(t,i,r),ga(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new da(fa(this.h),pa(this.s),pa(this.l),sa(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=sa(this.opacity);return`${1===t?"hsl(":"hsla("}${fa(this.h)}, ${100*pa(this.s)}%, ${100*pa(this.l)}%${1===t?")":`, ${t})`}`}}));var ya=t=>()=>t;function ma(t){return 1==(t=+t)?xa: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):ya(isNaN(n)?e:n)}}function xa(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):ya(isNaN(t)?n:t)}var va=function t(n){var e=ma(n);function r(t,n){var r=e((t=ra(t)).r,(n=ra(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=xa(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 ba(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 _a(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]=Oa(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 Aa(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}function wa(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function Ea(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]=Oa(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}}var Ma=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ka=new RegExp(Ma.source,"g");function Ca(t,n){var e,r,i,o=Ma.lastIndex=ka.lastIndex=0,a=-1,s=[],l=[];for(t+="",n+="";(e=Ma.exec(t))&&(r=ka.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:wa(e,r)})),o=ka.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 Oa(t,n){var e,r=typeof n;return null==n||"boolean"===r?ya(n):("number"===r?wa:"string"===r?(e=ta(n))?(n=e,va):Ca:n instanceof ta?va:n instanceof Date?Aa:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(n)?ba:Array.isArray(n)?_a:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?Ea:wa)(t,n)}function ja(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function Sa(t,n){void 0===n&&(n=t,t=Oa);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 $a=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)||Ne(t)}return!1},Ta=function(t,n,e){return void 0===e&&(e=0),function(r){return r<e?t:n}},Pa=function(t,n){return function(e){return e>=1?n:function(){return Oa("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n)(e)}}},Da=function(t,n){const e=(t,n)=>t!==n&&$a(t)&&$a(n)?"function"==typeof t||"function"==typeof n?Pa(t,n):"object"==typeof t&&Ne(t)||"object"==typeof n&&Ne(n)?Da(t,n):Oa(t,n):Ta(t,n),r=t=>Array.isArray(t)?Lo(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}},La=function(t,n){return t!==n&&$a(t)&&$a(n)?"function"==typeof t||"function"==typeof n?Pa(t,n):Ne(t)||Ne(n)?Da(t,n):"string"==typeof t||"string"==typeof n?function(t,n){const e=t=>"string"==typeof t?t.replace(/,/g,""):t;return Oa(e(t),e(n))}(t,n):Oa(t,n):Ta(t,n)};var Na,za,Ia=0,Ra=0,Fa=0,Ba=0,Wa=0,Ua=0,Va="object"==typeof performance&&performance.now?performance:Date,qa="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Ha(){return Wa||(qa(Ya),Wa=Va.now()+Ua)}function Ya(){Wa=0}function Ga(){this._call=this._time=this._next=null}function Ka(t,n,e){var r=new Ga;return r.restart(t,n,e),r}function Xa(){Wa=(Ba=Va.now())+Ua,Ia=Ra=0;try{!function(){Ha(),++Ia;for(var t,n=Na;n;)(t=Wa-n._time)>=0&&n._call.call(void 0,t),n=n._next;--Ia}()}finally{Ia=0,function(){var t,n,e=Na,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:Na=n);za=t,Qa(r)}(),Wa=0}}function Za(){var t=Va.now(),n=t-Ba;n>1e3&&(Ua-=n,Ba=t)}function Qa(t){Ia||(Ra&&(Ra=clearTimeout(Ra)),t-Wa>24?(t<1/0&&(Ra=setTimeout(Xa,t-Va.now()-Ua)),Fa&&(Fa=clearInterval(Fa))):(Fa||(Ba=Va.now(),Fa=setInterval(Za,1e3)),Ia=1,qa(Xa)))}Ga.prototype=Ka.prototype={constructor:Ga,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Ha():+e)+(null==n?0:+n),this._next||za===this||(za?za._next=this:Na=this,za=this),this._call=t,this._time=e,Qa()},stop:function(){this._call&&(this._call=null,this._time=1/0,Qa())}};class Ja{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(Ha()-t.startTime,t.duration)}))};start(){this.timer||(this.timer=Ka(this.loop))}stop(){this.timer&&(this.timer.stop(),this.timer=null)}subscribe(t,n){const e=this.subscribers.push({startTime:Ha(),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 ts=n.createContext({transitionTimer:new Ja,animationTimer:new Ja});ts.displayName="TimerContext";const ns=1e3,es=t=>{let{duration:e=ns,easing:r="quadInOut",delay:i=0,data:o,children:a,onEnd:s}=t;const[l,c]=n.useState({data:Array.isArray(o)?o[0]:o,animationInfo:{progress:0,animating:!1}}),u=n.useContext(ts).animationTimer,h=n.useRef(Array.isArray(o)?o.slice(1):[]),d=n.useRef(null),f=n.useRef(void 0),p=Z[(g=r,`ease${g.charAt(0).toUpperCase()+g.slice(1)}`)];var g;n.useEffect((()=>(h.current.length&&y(),()=>{f.current?u.unsubscribe(f.current):u.stop()})),[]),n.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=La(l.data,t),i?setTimeout((()=>{f.current=u.subscribe(m,e)}),i):f.current=u.subscribe(m,e)}else s&&s()},m=t=>{if(!d.current)return;const n=e?t/e:1;if(n>=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(n)),animationInfo:{progress:n,animating:n<1}})};return a(l.data,l.animationInfo)};var rs,is;var os=J(function(){if(is)return rs;is=1;var t=er(),n=0;return rs=function(e){var r=++n;return t(e)+r}}());function as(){return as=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},as.apply(this,arguments)}const ss=n.forwardRef(((t,e)=>n.createElement("svg",as({ref:e},t))));var ls,cs,us,hs,ds,fs,ps,gs,ys,ms,xs,vs,bs,_s,As,ws,Es,Ms,ks,Cs,Os,js,Ss,$s,Ts,Ps;function Ds(){if(hs)return us;hs=1;var t=cs?ls:(cs=1,ls=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 us=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)}},us}function Ls(){if(gs)return ps;gs=1;var t=qe(),n=function(){try{var n=t(Object,"defineProperty");return n({},"",{}),n}catch(t){}}();return ps=n}function Ns(){if(ms)return ys;ms=1;var t=fs?ds:(fs=1,ds=function(t){return function(){return t}}),n=Ls(),e=Oo(),r=n?function(e,r){return n(e,"toString",{configurable:!0,enumerable:!1,value:t(r),writable:!0})}:e;return ys=r}function zs(){if(_s)return bs;_s=1;var t=Ns(),n=function(){if(vs)return xs;vs=1;var t=Date.now;return xs=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)}},xs}(),e=n(t);return bs=e}function Is(){if(js)return Os;js=1;var t=Be(),n=go(),e=(Cs||(Cs=1,ks=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}),ks),r=Object.prototype.hasOwnProperty;return Os=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},Os}function Rs(){if($s)return Ss;$s=1;var t=po(),n=Is(),e=mo();return Ss=function(r){return e(r)?t(r,!0):n(r)},Ss}var Fs,Bs,Ws,Us,Vs,qs,Hs,Ys,Gs,Ks,Xs,Zs,Qs,Js,tl,nl,el,rl,il,ol,al=function(){if(Ps)return Ts;Ps=1;var t=function(){if(ws)return As;ws=1;var t=Oo(),n=Ds(),e=zs();return As=function(r,i){return e(n(r,i,t),r+"")}}(),n=Ge(),e=function(){if(Ms)return Es;Ms=1;var t=Ge(),n=mo(),e=Sr(),r=Be();return Es=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)},Es}(),r=Rs(),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 Ts=a}(),sl=J(al),ll=J(jo());function cl(){if(Bs)return Fs;Bs=1;var t=Ls();return Fs=function(n,e,r){"__proto__"==e&&t?t(n,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[e]=r},Fs}function ul(){if(qs)return Vs;qs=1;var t=function(){if(Us)return Ws;Us=1;var t=cl(),n=Ge(),e=Object.prototype.hasOwnProperty;return Ws=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)},Ws}(),n=rr(),e=Sr(),r=Be(),i=ir();return Vs=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},Vs}function hl(){if(Ys)return Hs;Ys=1;var t=or(),n=ul(),e=rr();return Hs=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},Hs}function dl(){if(Js)return Qs;Js=1;var t=dr(),n=function(){if(Zs)return Xs;Zs=1;var t=et(),n=yr(),e=Ie(),r=t?t.isConcatSpreadable:void 0;return Xs=function(t){return e(t)||n(t)||!!(r&&t&&t[r])}}();return Qs=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},Qs}function fl(){if(rl)return el;rl=1;var t=function(){if(nl)return tl;nl=1;var t=dl();return tl=function(n){return null!=n&&n.length?t(n,1):[]},tl}(),n=Ds(),e=zs();return el=function(r){return e(n(r,void 0,t),r+"")}}var pl=function(){if(ol)return il;ol=1;var t=function(){if(Ks)return Gs;Ks=1;var t=hl(),n=ko();return Gs=function(e,r){return t(e,r,(function(t,r){return n(e,r)}))},Gs}(),n=fl()((function(n,e){return null==n?{}:t(n,e)}));return il=n}(),gl=J(pl);function yl(t){return Object.entries(t).reduce(((t,n)=>(t[n[1]]=n[0],t)),{})}function ml(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 xl(t){const{_x:n,_x1:e,_x0:r,_voronoiX:i,_y:o,_y1:a,_y0:s,_voronoiY:l}=t;return sl({},{x:i??(e??n),x0:r??n,y:l??(a??o),y0:s??o},t)}function vl(t,n){const{scale:e,polar:r,horizontal:i}=t,o=xl(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 bl(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 _l(t){return"tooltip"===(t&&t.type&&t.type.role)}function Al(t,n){const{theme:e={},labelComponent:r}=t,i=e[n]&&e[n].style||{};if(!_l(r))return i;const o=e.tooltip&&e.tooltip.style||{},a=sl({},o,i.labels);return sl({},{labels:a},i)}function wl(t,n){const e="100%",r="100%";if(!t)return sl({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:sl({},a,s,{width:e,height:r}),labels:sl({},o,l),data:sl({},i,c)}}function El(t,n){return Tl(t)?t(n):t}function Ml(t,n){return n.disableInlineStyles?{}:t&&Object.keys(t).some((n=>Tl(t[n])))?Object.keys(t).reduce(((e,r)=>(e[r]=El(t[r],n),e)),{}):t}function kl(t){return"number"==typeof t?t*(Math.PI/180):t}function Cl(t){return"number"==typeof t?t/(Math.PI/180):t}function Ol(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 jl(t){const{width:n,height:e}=t,{top:r,bottom:i,left:o,right:a}=bl(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 Sl(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[kl(t.startAngle||0),kl(t.endAngle||360)];return[t.innerRadius||0,Ol({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:bl(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:bl(t.padding)})}function $l(t){return null==t}function Tl(t){return"function"==typeof t}function Pl(t){return Tl(t)?t:null==t?t=>t:ll(t)}function Dl(t,e,r){const i=ml(t.theme&&t.theme[r]?t.theme[r]:{},["style"]),o=function(t){if(void 0!==t.horizontal||!t.children)return t.horizontal;const e=t=>t.reduce(((t,r)=>{const i=r.props||{};return t||i.horizontal||!i.children?t||i.horizontal:e(n.Children.toArray(i.children))}),!1);return e(n.Children.toArray(t.children))}(t);return sl(void 0===o?{}:{horizontal:o},t,i,e)}function Ll(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 Nl(t,e,r,i,o){void 0===r&&(r={}),void 0===i&&(i=[]),void 0===o&&(o=(t,n)=>t.concat(n));const a=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],s=(t,l,c)=>t.reduce(((t,i,u)=>{let h=t;const d=i.type&&i.type.role,f=i.props.name||`${d}-${l[u]}`;if(i.props&&i.props.children){const t=Object.assign({},i.props,gl(r,a)),e=i.type&&"stack"===i.type.role&&Tl(i.type.getChildren)?i.type.getChildren(t):n.Children.toArray(i.props.children).map((e=>{const r=Object.assign({},e.props,gl(t,a));return n.cloneElement(e,r)})),l=e.map(((t,n)=>`${f}-${n}`)),c=s(e,l,i);h=o(h,c)}else{const t=e(i,f,c);t&&(h=o(h,t))}return h}),i),l=t.filter(n.isValidElement),c=l.map(((t,n)=>n));return s(l,c)}const zl={startsWith:["data-","aria-"],exactMatch:[]},Il=t=>!(!(t=>{let n=!1;return zl.startsWith.forEach((e=>{new RegExp(`\\b(${e})(\\w|-)+`,"g").test(t)&&(n=!0)})),n})(t)&&!(t=>zl.exactMatch.includes(t))(t)),Rl=t=>{const n={...t};return Object.fromEntries(Object.entries(n).filter((t=>{let[n]=t;return Il(n)})).map((n=>{let[e,r]=n;return[e,El(r,t)]})))},Fl=(t,n)=>r.cloneElement(t,Rl(n));var Bl,Wl;var Ul,Vl,ql=function(){if(Wl)return Bl;Wl=1;var t=yo(),n=_o(),e=yr(),r=Ie(),i=mo(),o=jr(),a=go(),s=fo(),l=Object.prototype.hasOwnProperty;return Bl=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}}(),Hl=J(ql);var Yl=function(){if(Vl)return Ul;Vl=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;ret