@perses-dev/bar-chart-plugin 0.10.1 → 0.11.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,102 @@
1
+ /*! For license information please see 148.2fc9171f.js.LICENSE.txt */
2
+ "use strict";(self.chunk_BarChart=self.chunk_BarChart||[]).push([["148"],{74628:function(e,t,r){r.d(t,{A:()=>g});var n=r(85967),i=r(11750),a=r(41535),o=r(92927),s=r(20523),l=r(26041),u=r(62540),c=r(71027),f=r(9408),d=r(93724);let p=(0,r(29009).A)("MuiBox",["root"]),m=(0,f.A)(),g=function(e={}){let{themeId:t,defaultTheme:r,defaultClassName:c="MuiBox-root",generateClassName:f}=e,d=(0,a.Ay)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(o.A);return n.forwardRef(function(e,n){let a=(0,l.A)(r),{className:o,component:p="div",...m}=(0,s.A)(e);return(0,u.jsx)(d,{as:p,ref:n,className:(0,i.A)(o,f?f(c):c),theme:t&&a[t]||a,...m})})}({themeId:d.A,defaultTheme:m,defaultClassName:p.root,generateClassName:c.A.generate})},7013:function(e,t,r){r.d(t,{A:()=>N});var n=r(85967),i=r(11750),a=r(52215),o=r(81023),s=r(59238),l=r(63392),u=r(83926),c=r(77308),f=r(23434),d=r(72052),p=r(1337),m=r(25742),g=r(24726),h=r(26952),b=r(29009),y=r(46733);function v(e){return(0,y.Ay)("MuiButton",e)}let x=(0,b.A)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]);var w=r(94580),S=r(30016),A=r(62540);let B=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],$=(0,c.A)(p.A,{shouldForwardProp:e=>(0,u.A)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${(0,g.A)(r.color)}`],t[`size${(0,g.A)(r.size)}`],t[`${r.variant}Size${(0,g.A)(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})((0,f.A)(({theme:e})=>{let t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],r="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${x.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${x.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${x.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${x.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter((0,h.A)()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:(0,s.X4)(e.palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.X4)(e.palette[t].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.X4)(e.palette[t].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.X4)(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${x.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${x.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${x.loading}`]:{color:"transparent"}}}]}})),D=(0,c.A)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${(0,g.A)(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...B]})),O=(0,c.A)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${(0,g.A)(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...B]})),M=(0,c.A)("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),E=(0,c.A)("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),N=n.forwardRef(function(e,t){let r=n.useContext(w.A),s=n.useContext(S.A),u=(0,a.A)(r,e),c=(0,d.b)({props:u,name:"MuiButton"}),{children:f,color:p="primary",component:h="button",className:b,disabled:y=!1,disableElevation:x=!1,disableFocusRipple:B=!1,endIcon:N,focusVisibleClassName:k,fullWidth:P=!1,id:T,loading:I=null,loadingIndicator:C,loadingPosition:F="center",size:R="medium",startIcon:j,type:L,variant:U="text",..._}=c,z=(0,l.A)(T),V=C??(0,A.jsx)(m.A,{"aria-labelledby":z,color:"inherit",size:16}),W={...c,color:p,component:h,disabled:y,disableElevation:x,disableFocusRipple:B,fullWidth:P,loading:I,loadingIndicator:V,loadingPosition:F,size:R,type:L,variant:U},G=(e=>{let{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,loading:s,loadingPosition:l,classes:u}=e,c={root:["root",s&&"loading",a,`${a}${(0,g.A)(t)}`,`size${(0,g.A)(i)}`,`${a}Size${(0,g.A)(i)}`,`color${(0,g.A)(t)}`,r&&"disableElevation",n&&"fullWidth",s&&`loadingPosition${(0,g.A)(l)}`],startIcon:["icon","startIcon",`iconSize${(0,g.A)(i)}`],endIcon:["icon","endIcon",`iconSize${(0,g.A)(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},f=(0,o.A)(c,v,u);return{...u,...f}})(W),Z=(j||I&&"start"===F)&&(0,A.jsx)(D,{className:G.startIcon,ownerState:W,children:j||(0,A.jsx)(E,{className:G.loadingIconPlaceholder,ownerState:W})}),q=(N||I&&"end"===F)&&(0,A.jsx)(O,{className:G.endIcon,ownerState:W,children:N||(0,A.jsx)(E,{className:G.loadingIconPlaceholder,ownerState:W})}),K="boolean"==typeof I?(0,A.jsx)("span",{className:G.loadingWrapper,style:{display:"contents"},children:I&&(0,A.jsx)(M,{className:G.loadingIndicator,ownerState:W,children:V})}):null;return(0,A.jsxs)($,{ownerState:W,className:(0,i.A)(r.className,G.root,b,s||""),component:h,disabled:y||I,focusRipple:!B,focusVisibleClassName:(0,i.A)(G.focusVisible,k),ref:t,type:L,id:I?z:T,..._,classes:G,children:[Z,"end"!==F&&K,f,"end"===F&&K,q]})})},1337:function(e,t,r){r.d(t,{A:()=>N});var n=r(85967),i=r(11750),a=r(81023),o=r(93399),s=r(77308),l=r(72052),u=r(29424),c=r(32398),f=r(48731);class d{static create(){return new d}static use(){let e=(0,f.A)(d.create).current,[t,r]=n.useState(!1);return e.shouldMount=t,e.setShouldMount=r,n.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){let e,t,r;return this.mounted||(this.mounted=((r=new Promise((r,n)=>{e=r,t=n})).resolve=e,r.reject=t,r),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}var p=r(44394),m=r(3725),g=r(69402),h=r(62540),b=r(29009);let y=(0,b.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),v=(0,g.keyframes)`
3
+ 0% {
4
+ transform: scale(0);
5
+ opacity: 0.1;
6
+ }
7
+
8
+ 100% {
9
+ transform: scale(1);
10
+ opacity: 0.3;
11
+ }
12
+ `,x=(0,g.keyframes)`
13
+ 0% {
14
+ opacity: 1;
15
+ }
16
+
17
+ 100% {
18
+ opacity: 0;
19
+ }
20
+ `,w=(0,g.keyframes)`
21
+ 0% {
22
+ transform: scale(1);
23
+ }
24
+
25
+ 50% {
26
+ transform: scale(0.92);
27
+ }
28
+
29
+ 100% {
30
+ transform: scale(1);
31
+ }
32
+ `,S=(0,s.A)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),A=(0,s.A)(function(e){let{className:t,classes:r,pulsate:a=!1,rippleX:o,rippleY:s,rippleSize:l,in:u,onExited:c,timeout:f}=e,[d,p]=n.useState(!1),m=(0,i.A)(t,r.ripple,r.rippleVisible,a&&r.ripplePulsate),g=(0,i.A)(r.child,d&&r.childLeaving,a&&r.childPulsate);return u||d||p(!0),n.useEffect(()=>{if(!u&&null!=c){let e=setTimeout(c,f);return()=>{clearTimeout(e)}}},[c,u,f]),(0,h.jsx)("span",{className:m,style:{width:l,height:l,top:-(l/2)+s,left:-(l/2)+o},children:(0,h.jsx)("span",{className:g})})},{name:"MuiTouchRipple",slot:"Ripple"})`
33
+ opacity: 0;
34
+ position: absolute;
35
+
36
+ &.${y.rippleVisible} {
37
+ opacity: 0.3;
38
+ transform: scale(1);
39
+ animation-name: ${v};
40
+ animation-duration: ${550}ms;
41
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
42
+ }
43
+
44
+ &.${y.ripplePulsate} {
45
+ animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
46
+ }
47
+
48
+ & .${y.child} {
49
+ opacity: 1;
50
+ display: block;
51
+ width: 100%;
52
+ height: 100%;
53
+ border-radius: 50%;
54
+ background-color: currentColor;
55
+ }
56
+
57
+ & .${y.childLeaving} {
58
+ opacity: 0;
59
+ animation-name: ${x};
60
+ animation-duration: ${550}ms;
61
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
62
+ }
63
+
64
+ & .${y.childPulsate} {
65
+ position: absolute;
66
+ /* @noflip */
67
+ left: 0px;
68
+ top: 0;
69
+ animation-name: ${w};
70
+ animation-duration: 2500ms;
71
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
72
+ animation-iteration-count: infinite;
73
+ animation-delay: 200ms;
74
+ }
75
+ `,B=n.forwardRef(function(e,t){let{center:r=!1,classes:a={},className:o,...s}=(0,l.b)({props:e,name:"MuiTouchRipple"}),[u,c]=n.useState([]),f=n.useRef(0),d=n.useRef(null);n.useEffect(()=>{d.current&&(d.current(),d.current=null)},[u]);let g=n.useRef(!1),b=(0,m.A)(),v=n.useRef(null),x=n.useRef(null),w=n.useCallback(e=>{let{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:s}=e;c(e=>[...e,(0,h.jsx)(A,{classes:{ripple:(0,i.A)(a.ripple,y.ripple),rippleVisible:(0,i.A)(a.rippleVisible,y.rippleVisible),ripplePulsate:(0,i.A)(a.ripplePulsate,y.ripplePulsate),child:(0,i.A)(a.child,y.child),childLeaving:(0,i.A)(a.childLeaving,y.childLeaving),childPulsate:(0,i.A)(a.childPulsate,y.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},f.current)]),f.current+=1,d.current=s},[a]),B=n.useCallback((e={},t={},n=()=>{})=>{let i,a,o,{pulsate:s=!1,center:l=r||t.pulsate,fakeElement:u=!1}=t;if(e?.type==="mousedown"&&g.current){g.current=!1;return}e?.type==="touchstart"&&(g.current=!0);let c=u?null:x.current,f=c?c.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(!l&&void 0!==e&&(0!==e.clientX||0!==e.clientY)&&(e.clientX||e.touches)){let{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;i=Math.round(t-f.left),a=Math.round(r-f.top)}else i=Math.round(f.width/2),a=Math.round(f.height/2);l?(o=Math.sqrt((2*f.width**2+f.height**2)/3))%2==0&&(o+=1):o=Math.sqrt((2*Math.max(Math.abs((c?c.clientWidth:0)-i),i)+2)**2+(2*Math.max(Math.abs((c?c.clientHeight:0)-a),a)+2)**2),e?.touches?null===v.current&&(v.current=()=>{w({pulsate:s,rippleX:i,rippleY:a,rippleSize:o,cb:n})},b.start(80,()=>{v.current&&(v.current(),v.current=null)})):w({pulsate:s,rippleX:i,rippleY:a,rippleSize:o,cb:n})},[r,w,b]),$=n.useCallback(()=>{B({},{pulsate:!0})},[B]),D=n.useCallback((e,t)=>{if(b.clear(),e?.type==="touchend"&&v.current){v.current(),v.current=null,b.start(0,()=>{D(e,t)});return}v.current=null,c(e=>e.length>0?e.slice(1):e),d.current=t},[b]);return n.useImperativeHandle(t,()=>({pulsate:$,start:B,stop:D}),[$,B,D]),(0,h.jsx)(S,{className:(0,i.A)(y.root,a.root,o),ref:x,...s,children:(0,h.jsx)(p.A,{component:null,exit:!0,children:u})})});var $=r(46733);function D(e){return(0,$.Ay)("MuiButtonBase",e)}let O=(0,b.A)("MuiButtonBase",["root","disabled","focusVisible"]),M=(0,s.A)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${O.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}});function E(e,t,r,n=!1){return(0,c.A)(i=>(r&&r(i),n||e[t](i),!0))}let N=n.forwardRef(function(e,t){let r=(0,l.b)({props:e,name:"MuiButtonBase"}),{action:s,centerRipple:f=!1,children:p,className:m,component:g="button",disabled:b=!1,disableRipple:y=!1,disableTouchRipple:v=!1,focusRipple:x=!1,focusVisibleClassName:w,LinkComponent:S="a",onBlur:A,onClick:$,onContextMenu:O,onDragLeave:N,onFocus:k,onFocusVisible:P,onKeyDown:T,onKeyUp:I,onMouseDown:C,onMouseLeave:F,onMouseUp:R,onTouchEnd:j,onTouchMove:L,onTouchStart:U,tabIndex:_=0,TouchRippleProps:z,touchRippleRef:V,type:W,...G}=r,Z=n.useRef(null),q=d.use(),K=(0,u.A)(q.ref,V),[H,Y]=n.useState(!1);b&&H&&Y(!1),n.useImperativeHandle(s,()=>({focusVisible:()=>{Y(!0),Z.current.focus()}}),[]);let X=q.shouldMount&&!y&&!b;n.useEffect(()=>{H&&x&&!y&&q.pulsate()},[y,x,H,q]);let J=E(q,"start",C,v),Q=E(q,"stop",O,v),ee=E(q,"stop",N,v),et=E(q,"stop",R,v),er=E(q,"stop",e=>{H&&e.preventDefault(),F&&F(e)},v),en=E(q,"start",U,v),ei=E(q,"stop",j,v),ea=E(q,"stop",L,v),eo=E(q,"stop",e=>{(0,o.A)(e.target)||Y(!1),A&&A(e)},!1),es=(0,c.A)(e=>{Z.current||(Z.current=e.currentTarget),(0,o.A)(e.target)&&(Y(!0),P&&P(e)),k&&k(e)}),el=()=>{let e=Z.current;return g&&"button"!==g&&!("A"===e.tagName&&e.href)},eu=(0,c.A)(e=>{x&&!e.repeat&&H&&" "===e.key&&q.stop(e,()=>{q.start(e)}),e.target===e.currentTarget&&el()&&" "===e.key&&e.preventDefault(),T&&T(e),e.target===e.currentTarget&&el()&&"Enter"===e.key&&!b&&(e.preventDefault(),$&&$(e))}),ec=(0,c.A)(e=>{x&&" "===e.key&&H&&!e.defaultPrevented&&q.stop(e,()=>{q.pulsate(e)}),I&&I(e),$&&e.target===e.currentTarget&&el()&&" "===e.key&&!e.defaultPrevented&&$(e)}),ef=g;"button"===ef&&(G.href||G.to)&&(ef=S);let ed={};"button"===ef?(ed.type=void 0===W?"button":W,ed.disabled=b):(G.href||G.to||(ed.role="button"),b&&(ed["aria-disabled"]=b));let ep=(0,u.A)(t,Z),em={...r,centerRipple:f,component:g,disabled:b,disableRipple:y,disableTouchRipple:v,focusRipple:x,tabIndex:_,focusVisible:H},eg=(e=>{let{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=(0,a.A)({root:["root",t&&"disabled",r&&"focusVisible"]},D,i);return r&&n&&(o.root+=` ${n}`),o})(em);return(0,h.jsxs)(M,{as:ef,className:(0,i.A)(eg.root,m),ownerState:em,onBlur:eo,onClick:$,onContextMenu:Q,onFocus:es,onKeyDown:eu,onKeyUp:ec,onMouseDown:J,onMouseLeave:er,onMouseUp:et,onDragLeave:ee,onTouchEnd:ei,onTouchMove:ea,onTouchStart:en,ref:ep,tabIndex:b?-1:_,type:W,...ed,...G,children:[p,X?(0,h.jsx)(B,{ref:K,center:f,...z}):null]})})},30016:function(e,t,r){r.d(t,{A:()=>n});let n=r(85967).createContext(void 0)},94580:function(e,t,r){r.d(t,{A:()=>n});let n=r(85967).createContext({})},25742:function(e,t,r){r.d(t,{A:()=>A});var n=r(85967),i=r(11750),a=r(81023),o=r(69402),s=r(77308),l=r(23434),u=r(72052),c=r(24726),f=r(26952),d=r(29009),p=r(46733);function m(e){return(0,p.Ay)("MuiCircularProgress",e)}(0,d.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var g=r(62540);let h=(0,o.keyframes)`
76
+ 0% {
77
+ transform: rotate(0deg);
78
+ }
79
+
80
+ 100% {
81
+ transform: rotate(360deg);
82
+ }
83
+ `,b=(0,o.keyframes)`
84
+ 0% {
85
+ stroke-dasharray: 1px, 200px;
86
+ stroke-dashoffset: 0;
87
+ }
88
+
89
+ 50% {
90
+ stroke-dasharray: 100px, 200px;
91
+ stroke-dashoffset: -15px;
92
+ }
93
+
94
+ 100% {
95
+ stroke-dasharray: 1px, 200px;
96
+ stroke-dashoffset: -126px;
97
+ }
98
+ `,y="string"!=typeof h?(0,o.css)`
99
+ animation: ${h} 1.4s linear infinite;
100
+ `:null,v="string"!=typeof b?(0,o.css)`
101
+ animation: ${b} 1.4s ease-in-out infinite;
102
+ `:null,x=(0,s.A)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t[`color${(0,c.A)(r.color)}`]]}})((0,l.A)(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:y||{animation:`${h} 1.4s linear infinite`}},...Object.entries(e.palette).filter((0,f.A)()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),w=(0,s.A)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),S=(0,s.A)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.circle,t[`circle${(0,c.A)(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})((0,l.A)(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:v||{animation:`${b} 1.4s ease-in-out infinite`}}]}))),A=n.forwardRef(function(e,t){let r=(0,u.b)({props:e,name:"MuiCircularProgress"}),{className:n,color:o="primary",disableShrink:s=!1,size:l=40,style:f,thickness:d=3.6,value:p=0,variant:h="indeterminate",...b}=r,y={...r,color:o,disableShrink:s,size:l,thickness:d,value:p,variant:h},v=(e=>{let{classes:t,variant:r,color:n,disableShrink:i}=e,o={root:["root",r,`color${(0,c.A)(n)}`],svg:["svg"],circle:["circle",`circle${(0,c.A)(r)}`,i&&"circleDisableShrink"]};return(0,a.A)(o,m,t)})(y),A={},B={},$={};if("determinate"===h){let e=2*Math.PI*((44-d)/2);A.strokeDasharray=e.toFixed(3),$["aria-valuenow"]=Math.round(p),A.strokeDashoffset=`${((100-p)/100*e).toFixed(3)}px`,B.transform="rotate(-90deg)"}return(0,g.jsx)(x,{className:(0,i.A)(v.root,n),style:{width:l,height:l,...B,...f},ownerState:y,ref:t,role:"progressbar",...$,...b,children:(0,g.jsx)(w,{className:v.svg,ownerState:y,viewBox:"22 22 44 44",children:(0,g.jsx)(S,{className:v.circle,style:A,ownerState:y,cx:44,cy:44,r:(44-d)/2,fill:"none",strokeWidth:d})})})})},26952:function(e,t,r){r.d(t,{A:()=>n});function n(e=[]){return([,t])=>t&&function(e,t=[]){if("string"!=typeof e.main)return!1;for(let r of t)if(!e.hasOwnProperty(r)||"string"!=typeof e[r])return!1;return!0}(t,e)}},32398:function(e,t,r){r.d(t,{A:()=>n});let n=r(83183).A},29424:function(e,t,r){r.d(t,{A:()=>n});let n=r(95591).A},63392:function(e,t,r){r.d(t,{A:()=>n});let n=r(54553).A},20523:function(e,t,r){r.d(t,{A:()=>a});var n=r(6121),i=r(73126);function a(e){let t,r,a,{sx:o,...s}=e,{systemProps:l,otherProps:u}=(r={systemProps:{},otherProps:{}},a=s?.theme?.unstable_sxConfig??i.A,Object.keys(s).forEach(e=>{a[e]?r.systemProps[e]=s[e]:r.otherProps[e]=s[e]}),r);return t=Array.isArray(o)?[l,...o]:"function"==typeof o?(...e)=>{let t=o(...e);return(0,n.Q)(t)?{...l,...t}:l}:{...l,...o},{...u,sx:t}}},26041:function(e,t,r){r.d(t,{A:()=>o});var n=r(80787),i=r(45827);let a=(0,n.A)(),o=function(e=a){return(0,i.A)(e)}},45827:function(e,t,r){r.d(t,{A:()=>a});var n=r(85967),i=r(69402);let a=function(e=null){let t=n.useContext(i.ThemeContext);return t&&0!==Object.keys(t).length?t:e}},93399:function(e,t,r){r.d(t,{A:()=>n});function n(e){try{return e.matches(":focus-visible")}catch(e){}return!1}},71849:function(e,t,r){r.d(t,{A:()=>n});function n(e,t){"function"==typeof e?e(t):e&&(e.current=t)}},31789:function(e,t,r){r.d(t,{A:()=>i});var n=r(85967);let i="undefined"!=typeof window?n.useLayoutEffect:n.useEffect},83183:function(e,t,r){r.d(t,{A:()=>a});var n=r(85967),i=r(31789);let a=function(e){let t=n.useRef(e);return(0,i.A)(()=>{t.current=e}),n.useRef((...e)=>(0,t.current)(...e)).current}},95591:function(e,t,r){r.d(t,{A:()=>a});var n=r(85967),i=r(71849);function a(...e){return n.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{(0,i.A)(e,t)})},e)}},54553:function(e,t,r){r.d(t,{A:()=>o});var n=r(85967);let i=0,a={...n}.useId;function o(e){if(void 0!==a){let t=a();return e??t}return function(e){let[t,r]=n.useState(e),a=e||t;return n.useEffect(()=>{null==t&&(i+=1,r(`mui-${i}`))},[t]),a}(e)}},48731:function(e,t,r){r.d(t,{A:()=>a});var n=r(85967);let i={};function a(e,t){let r=n.useRef(i);return r.current===i&&(r.current=e(t)),r}},3725:function(e,t,r){r.d(t,{E:()=>o,A:()=>s});var n=r(48731),i=r(85967);let a=[];class o{static create(){return new o}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function s(){var e;let t=(0,n.A)(o.create).current;return e=t.disposeEffect,i.useEffect(e,a),t}},12826:function(e,t,r){r.d(t,{T6:()=>eb,W5:()=>ec,x9:()=>ey,AC:()=>en,Fl:()=>ei,Se:()=>eo,px:()=>ed,GU:()=>eu,i$:()=>ep,j9:()=>em,fZ:()=>eg,Yf:()=>eh,KN:()=>el,w0:()=>er,oy:()=>ef,r_:()=>ea,CB:()=>es});var n,i,a,o,s,l,u,c,f,d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{};function p(){if(s)return o;s=1;let e=[{key:"ZiB",factor:11805916207174113e5},{key:"ZB",factor:1e21},{key:"YiB",factor:12089258196146292e8},{key:"YB",factor:1e24},{key:"TiB",factor:0x10000000000},{key:"TB",factor:1e12},{key:"PiB",factor:0x4000000000000},{key:"PB",factor:1e15},{key:"MiB",factor:1048576},{key:"MB",factor:1e6},{key:"KiB",factor:1024},{key:"KB",factor:1e3},{key:"GiB",factor:0x40000000},{key:"GB",factor:1e9},{key:"EiB",factor:0x1000000000000000},{key:"EB",factor:1e18},{key:"B",factor:1}];function t(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}return o={unformat:function(r,n){let i,a=h(),o=a.currentDelimiters(),s=a.currentCurrency().symbol,l=a.currentOrdinal(),u=a.getZeroFormat(),c=a.currentAbbreviations();if("string"==typeof r)if(function(e,t){if(!(e.indexOf(":")&&":"!==t.thousands))return!1;let r=e.split(":");if(3!==r.length)return!1;let n=+r[0],i=+r[1],a=+r[2];return!isNaN(n)&&!isNaN(i)&&!isNaN(a)}(r,o)){let e,t,n;t=+(e=r.split(":"))[0],n=+e[1],i=+e[2]+60*n+3600*t}else i=function(r,n,i="",a,o,s,l){if(""!==r)return r===o?0:function r(n,i,a,o,s,l,u){if(!isNaN(+n))return+n;let c="",f=n.replace(/(^[^(]*)\((.*)\)([^)]*$)/,"$1$2$3");if(f!==n)return -1*r(f,i,a,o,s,l);for(let t=0;t<e.length;t++){let u=e[t];if((c=n.replace(RegExp(`([0-9 ])(${u.key})$`),"$1"))!==n)return r(c,i,a,o,s,l)*u.factor}if((c=n.replace("%",""))!==n)return r(c,i,a,o,s,l)/100;let d=parseFloat(n);if(isNaN(d))return;let p=o(d);if(p&&"."!==p&&(c=n.replace(RegExp(`${t(p)}$`),""))!==n)return r(c,i,a,o,s,l);let m={};Object.keys(l).forEach(e=>{m[l[e]]=e});let g=Object.keys(m).sort().reverse(),h=g.length;for(let e=0;e<h;e++){let t=g[e],u=m[t];if((c=n.replace(t,""))!==n){let e;switch(u){case"thousand":e=1e3;break;case"million":e=1e6;break;case"billion":e=1e9;break;case"trillion":e=1e12}return r(c,i,a,o,s,l)*e}}}(r.replace(i,"").replace(RegExp(`([0-9])${t(n.thousands)}([0-9])`,"g"),"$1$2").replace(n.decimal,"."),n,i,a,o,s)}(r,o,s,l,u,c);else{if("number"!=typeof r)return;i=r}if(void 0!==i)return i}}}function m(){if(u)return l;u=1;let e=p(),t=/^[a-z]{2,3}(-[a-zA-Z]{4})?(-([A-Z]{2}|[0-9]{3}))?$/,r={output:{type:"string",validValues:["currency","percent","byte","time","ordinal","number"]},base:{type:"string",validValues:["decimal","binary","general"],restriction:(e,t)=>"byte"===t.output,message:"`base` must be provided only when the output is `byte`",mandatory:e=>"byte"===e.output},characteristic:{type:"number",restriction:e=>e>=0,message:"value must be positive"},prefix:"string",postfix:"string",forceAverage:{type:"string",validValues:["trillion","billion","million","thousand"]},average:"boolean",lowPrecision:{type:"boolean",restriction:(e,t)=>!0===t.average,message:"`lowPrecision` must be provided only when the option `average` is set"},currencyPosition:{type:"string",validValues:["prefix","infix","postfix"]},currencySymbol:"string",totalLength:{type:"number",restrictions:[{restriction:e=>e>=0,message:"value must be positive"},{restriction:(e,t)=>!t.exponential,message:"`totalLength` is incompatible with `exponential`"}]},mantissa:{type:"number",restriction:e=>e>=0,message:"value must be positive"},optionalMantissa:"boolean",trimMantissa:"boolean",roundingFunction:"function",optionalCharacteristic:"boolean",thousandSeparated:"boolean",spaceSeparated:"boolean",spaceSeparatedCurrency:"boolean",spaceSeparatedAbbreviation:"boolean",abbreviations:{type:"object",children:{thousand:"string",million:"string",billion:"string",trillion:"string"}},negative:{type:"string",validValues:["sign","parenthesis"]},forceSign:"boolean",exponential:{type:"boolean"},prefixSymbol:{type:"boolean",restriction:(e,t)=>"percent"===t.output,message:"`prefixSymbol` can be provided only when the output is `percent`"}},n={languageTag:{type:"string",mandatory:!0,restriction:e=>e.match(t),message:"the language tag must follow the BCP 47 specification (see https://tools.ieft.org/html/bcp47)"},delimiters:{type:"object",children:{thousands:"string",decimal:"string",thousandsSize:"number"},mandatory:!0},abbreviations:{type:"object",children:{thousand:{type:"string",mandatory:!0},million:{type:"string",mandatory:!0},billion:{type:"string",mandatory:!0},trillion:{type:"string",mandatory:!0}},mandatory:!0},spaceSeparated:"boolean",spaceSeparatedCurrency:"boolean",ordinal:{type:"function",mandatory:!0},bytes:{type:"object",children:{binarySuffixes:"object",decimalSuffixes:"object"}},currency:{type:"object",children:{symbol:"string",position:"string",code:"string"},mandatory:!0},defaults:"format",ordinalFormat:"format",byteFormat:"format",percentageFormat:"format",currencyFormat:"format",timeDefaults:"format",formats:{type:"object",children:{fourDigits:{type:"format",mandatory:!0},fullWithTwoDecimals:{type:"format",mandatory:!0},fullWithTwoDecimalsNoCurrency:{type:"format",mandatory:!0},fullWithNoDecimals:{type:"format",mandatory:!0}}}};function i(t){return void 0!==e.unformat(t)}function a(e,t,n,i=!1){let o=Object.keys(e).map(i=>{if(!t[i])return console.error(`${n} Invalid key: ${i}`),!1;let o=e[i],s=t[i];if("string"==typeof s&&(s={type:s}),"format"===s.type){if(!a(o,r,`[Validate ${i}]`,!0))return!1}else if(typeof o!==s.type)return console.error(`${n} ${i} type mismatched: "${s.type}" expected, "${typeof o}" provided`),!1;if(s.restrictions&&s.restrictions.length){let t=s.restrictions.length;for(let r=0;r<t;r++){let{restriction:t,message:a}=s.restrictions[r];if(!t(o,e))return console.error(`${n} ${i} invalid value: ${a}`),!1}}return s.restriction&&!s.restriction(o,e)?(console.error(`${n} ${i} invalid value: ${s.message}`),!1):s.validValues&&-1===s.validValues.indexOf(o)?(console.error(`${n} ${i} invalid value: must be among ${JSON.stringify(s.validValues)}, "${o}" provided`),!1):(!s.children||!!a(o,s.children,`[Validate ${i}]`))&&!0});return i||o.push(...Object.keys(t).map(r=>{let i=t[r];if("string"==typeof i&&(i={type:i}),i.mandatory){let t=i.mandatory;if("function"==typeof t&&(t=t(e)),t&&void 0===e[r])return console.error(`${n} Missing mandatory key "${r}"`),!1}return!0})),o.reduce((e,t)=>e&&t,!0)}function o(e){return a(e,r,"[Validate format]")}return l={validate:function(e,t){let r=i(e),n=o(t);return r&&n},validateFormat:o,validateInput:i,validateLanguage:function(e){return a(e,n,"[Validate language]")}}}var g=function(e,t={}){var r,n,i,a,o,s;let l,u,c,f,d;if("string"!=typeof e)return e;n=e=(l=(r=e).match(/^{([^}]*)}/))?(t.prefix=l[1],r.slice(l[0].length)):r,function(e,t){if(-1!==e.indexOf("$")){t.output="currency";return}if(-1!==e.indexOf("%")){t.output="percent";return}if(-1!==e.indexOf("bd")){t.output="byte",t.base="general";return}if(-1!==e.indexOf("b")){t.output="byte",t.base="binary";return}if(-1!==e.indexOf("d")){t.output="byte",t.base="decimal";return}if(-1!==e.indexOf(":")){t.output="time";return}-1!==e.indexOf("o")&&(t.output="ordinal")}(e=(u=n.match(/{([^}]*)}$/))?(t.postfix=u[1],n.slice(0,-u[0].length)):n,t),(c=e.match(/[1-9]+[0-9]*/))&&(t.totalLength=+c[0]),(f=e.split(".")[0].match(/0+/))&&(t.characteristic=f[0].length),-1!==(i=e).indexOf(".")&&(t.optionalCharacteristic=-1===i.split(".")[0].indexOf("0")),-1!==e.indexOf("a")&&(t.average=!0),-1!==(a=e).indexOf("K")?t.forceAverage="thousand":-1!==a.indexOf("M")?t.forceAverage="million":-1!==a.indexOf("B")?t.forceAverage="billion":-1!==a.indexOf("T")&&(t.forceAverage="trillion");let p=e.split(".")[1];if(p){let e=p.match(/0+/);e&&(t.mantissa=e[0].length)}return(o=e).match(/\[\.]/)?t.optionalMantissa=!0:o.match(/\./)&&(t.optionalMantissa=!1),(d=e.split(".")[1])&&(t.trimMantissa=-1!==d.indexOf("[")),-1!==e.indexOf(",")&&(t.thousandSeparated=!0),-1!==e.indexOf(" ")&&(t.spaceSeparated=!0,t.spaceSeparatedCurrency=!0,(t.average||t.forceAverage)&&(t.spaceSeparatedAbbreviation=!0)),(s=e).match(/^\+?\([^)]*\)$/)&&(t.negative="parenthesis"),s.match(/^\+?-/)&&(t.negative="sign"),e.match(/^\+/)&&(t.forceSign=!0),t};function h(){let e;if(f)return c;f=1;let t=a?i:(a=1,i={languageTag:"en-US",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},spaceSeparated:!1,ordinal:function(e){let t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},bytes:{binarySuffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],decimalSuffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},currency:{symbol:"$",position:"prefix",code:"USD"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0},fullWithTwoDecimals:{output:"currency",thousandSeparated:!0,mantissa:2},fullWithTwoDecimalsNoCurrency:{thousandSeparated:!0,mantissa:2},fullWithNoDecimals:{output:"currency",thousandSeparated:!0,mantissa:0}}}),r=m(),n={},o={},s=null,l={};function u(){return o[e]}return n.languages=()=>Object.assign({},o),n.currentLanguage=()=>e,n.currentBytes=()=>u().bytes||{},n.currentCurrency=()=>u().currency,n.currentAbbreviations=()=>u().abbreviations,n.currentDelimiters=()=>u().delimiters,n.currentOrdinal=()=>u().ordinal,n.currentDefaults=()=>Object.assign({},u().defaults,l),n.currentOrdinalDefaultFormat=()=>Object.assign({},n.currentDefaults(),u().ordinalFormat),n.currentByteDefaultFormat=()=>Object.assign({},n.currentDefaults(),u().byteFormat),n.currentPercentageDefaultFormat=()=>Object.assign({},n.currentDefaults(),u().percentageFormat),n.currentCurrencyDefaultFormat=()=>Object.assign({},n.currentDefaults(),u().currencyFormat),n.currentTimeDefaultFormat=()=>Object.assign({},n.currentDefaults(),u().timeFormat),n.setDefaults=e=>{e=g(e),r.validateFormat(e)&&(l=e)},n.getZeroFormat=()=>s,n.setZeroFormat=e=>s="string"==typeof e?e:null,n.hasZeroFormat=()=>null!==s,n.languageData=e=>{if(e){if(o[e])return o[e];throw Error(`Unknown tag "${e}"`)}return u()},n.registerLanguage=(t,n=!1)=>{if(!r.validateLanguage(t))throw Error("Invalid language data");o[t.languageTag]=t,n&&(e=t.languageTag)},n.setLanguage=(r,n=t.languageTag)=>{if(!o[r]){let t=r.split("-")[0],i=Object.keys(o).find(e=>e.split("-")[0]===t);return o[i]?void(e=i):void(e=n)}e=r},n.registerLanguage(t),e=t.languageTag,c=n}var b={exports:{}};(function(e){var t,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,n=Math.ceil,i=Math.floor,a="[BigNumber Error] ",o=a+"Number primitive has more than 15 significant digits: ",s=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function l(e){var t=0|e;return e>0||e===t?t:t-1}function u(e){for(var t,r,n=1,i=e.length,a=e[0]+"";n<i;){for(r=14-(t=e[n++]+"").length;r--;t="0"+t);a+=t}for(i=a.length;48===a.charCodeAt(--i););return a.slice(0,i+1||1)}function c(e,t){var r,n,i=e.c,a=t.c,o=e.s,s=t.s,l=e.e,u=t.e;if(!o||!s)return null;if(r=i&&!i[0],n=a&&!a[0],r||n)return r?n?0:-s:o;if(o!=s)return o;if(r=o<0,n=l==u,!i||!a)return n?0:!i^r?1:-1;if(!n)return l>u^r?1:-1;for(o=0,s=(l=i.length)<(u=a.length)?l:u;o<s;o++)if(i[o]!=a[o])return i[o]>a[o]^r?1:-1;return l==u?0:l>u^r?1:-1}function f(e,t,r,n){if(e<t||e>r||e!==i(e))throw Error(a+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function d(e){var t=e.c.length-1;return l(e.e/14)==t&&e.c[t]%2!=0}function p(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function m(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(n=e.length,++t>n){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}(t=function e(t){var g,h,b,y,v,x,w,S,A,B=j.prototype={constructor:j,toString:null,valueOf:null},$=new j(1),D=20,O=4,M=-7,E=21,N=-1e7,k=1e7,P=!1,T=1,I=0,C={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},F="0123456789abcdefghijklmnopqrstuvwxyz",R=!0;function j(e,t){var n,a,s,l,u,c,d,p,m=this;if(!(m instanceof j))return new j(e,t);if(null==t){if(e&&!0===e._isBigNumber){m.s=e.s,!e.c||e.e>k?m.c=m.e=null:e.e<N?m.c=[m.e=0]:(m.e=e.e,m.c=e.c.slice());return}if((c="number"==typeof e)&&0*e==0){if(m.s=1/e<0?(e=-e,-1):1,e===~~e){for(l=0,u=e;u>=10;u/=10,l++);l>k?m.c=m.e=null:(m.e=l,m.c=[e]);return}p=String(e)}else{if(!r.test(p=String(e)))return A(m,p,c);m.s=45==p.charCodeAt(0)?(p=p.slice(1),-1):1}(l=p.indexOf("."))>-1&&(p=p.replace(".","")),(u=p.search(/e/i))>0?(l<0&&(l=u),l+=+p.slice(u+1),p=p.substring(0,u)):l<0&&(l=p.length)}else{if(f(t,2,F.length,"Base"),10==t&&R)return z(m=new j(e),D+m.e+1,O);if(p=String(e),c="number"==typeof e){if(0*e!=0)return A(m,p,c,t);if(m.s=1/e<0?(p=p.slice(1),-1):1,j.DEBUG&&p.replace(/^0\.0*|\./,"").length>15)throw Error(o+e)}else m.s=45===p.charCodeAt(0)?(p=p.slice(1),-1):1;for(n=F.slice(0,t),l=u=0,d=p.length;u<d;u++)if(0>n.indexOf(a=p.charAt(u))){if("."==a){if(u>l){l=d;continue}}else if(!s&&(p==p.toUpperCase()&&(p=p.toLowerCase())||p==p.toLowerCase()&&(p=p.toUpperCase()))){s=!0,u=-1,l=0;continue}return A(m,String(e),c,t)}c=!1,(l=(p=S(p,t,10,m.s)).indexOf("."))>-1?p=p.replace(".",""):l=p.length}for(u=0;48===p.charCodeAt(u);u++);for(d=p.length;48===p.charCodeAt(--d););if(p=p.slice(u,++d)){if(d-=u,c&&j.DEBUG&&d>15&&(e>0x1fffffffffffff||e!==i(e)))throw Error(o+m.s*e);if((l=l-u-1)>k)m.c=m.e=null;else if(l<N)m.c=[m.e=0];else{if(m.e=l,m.c=[],u=(l+1)%14,l<0&&(u+=14),u<d){for(u&&m.c.push(+p.slice(0,u)),d-=14;u<d;)m.c.push(+p.slice(u,u+=14));u=14-(p=p.slice(u)).length}else u-=d;for(;u--;p+="0");m.c.push(+p)}}else m.c=[m.e=0]}function L(e,t,r,n){var i,a,o,s,l;if(null==r?r=O:f(r,0,8),!e.c)return e.toString();if(i=e.c[0],o=e.e,null==t)l=u(e.c),l=1==n||2==n&&(o<=M||o>=E)?p(l,o):m(l,o,"0");else if(a=(e=z(new j(e),t,r)).e,s=(l=u(e.c)).length,1==n||2==n&&(t<=a||a<=M)){for(;s<t;l+="0",s++);l=p(l,a)}else if(t-=o,l=m(l,a,"0"),a+1>s){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=a-s)>0)for(a+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function U(e,t){for(var r,n,i=1,a=new j(e[0]);i<e.length;i++)(n=new j(e[i])).s&&(r=c(a,n))!==t&&(0!==r||a.s!==t)||(a=n);return a}function _(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+14*r-1)>k?e.c=e.e=null:r<N?e.c=[e.e=0]:(e.e=r,e.c=t),e}function z(e,t,r,a){var o,l,u,c,f,d,p,m=e.c;if(m){e:{for(o=1,c=m[0];c>=10;c/=10,o++);if((l=t-o)<0)l+=14,u=t,p=i((f=m[d=0])/s[o-u-1]%10);else if((d=n((l+1)/14))>=m.length)if(a){for(;m.length<=d;m.push(0));f=p=0,o=1,l%=14,u=l-14+1}else break e;else{for(o=1,f=c=m[d];c>=10;c/=10,o++);l%=14,p=(u=l-14+o)<0?0:i(f/s[o-u-1]%10)}if(a=a||t<0||null!=m[d+1]||(u<0?f:f%s[o-u-1]),a=r<4?(p||a)&&(0==r||r==(e.s<0?3:2)):p>5||5==p&&(4==r||a||6==r&&(l>0?u>0?f/s[o-u]:0:m[d-1])%10&1||r==(e.s<0?8:7)),t<1||!m[0])return m.length=0,a?(t-=e.e+1,m[0]=s[(14-t%14)%14],e.e=-t||0):m[0]=e.e=0,e;if(0==l?(m.length=d,c=1,d--):(m.length=d+1,c=s[14-l],m[d]=u>0?i(f/s[o-u]%s[u])*c:0),a)for(;;)if(0==d){for(l=1,u=m[0];u>=10;u/=10,l++);for(u=m[0]+=c,c=1;u>=10;u/=10,c++);l!=c&&(e.e++,1e14==m[0]&&(m[0]=1));break}else{if(m[d]+=c,1e14!=m[d])break;m[d--]=0,c=1}for(l=m.length;0===m[--l];m.pop());}e.e>k?e.c=e.e=null:e.e<N&&(e.c=[e.e=0])}return e}function V(e){var t,r=e.e;return null===r?e.toString():(t=u(e.c),t=r<=M||r>=E?p(t,r):m(t,r,"0"),e.s<0?"-"+t:t)}return j.clone=e,j.ROUND_UP=0,j.ROUND_DOWN=1,j.ROUND_CEIL=2,j.ROUND_FLOOR=3,j.ROUND_HALF_UP=4,j.ROUND_HALF_DOWN=5,j.ROUND_HALF_EVEN=6,j.ROUND_HALF_CEIL=7,j.ROUND_HALF_FLOOR=8,j.EUCLID=9,j.config=j.set=function(e){var t,r;if(null!=e)if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(f(r=e[t],0,1e9,t),D=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(f(r=e[t],0,8,t),O=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(f(r[0],-1e9,0,t),f(r[1],0,1e9,t),M=r[0],E=r[1]):(f(r,-1e9,1e9,t),M=-(E=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)f(r[0],-1e9,-1,t),f(r[1],1,1e9,t),N=r[0],k=r[1];else if(f(r,-1e9,1e9,t),r)N=-(k=r<0?-r:r);else throw Error(a+t+" cannot be zero: "+r);if(e.hasOwnProperty(t="CRYPTO"))if(!!(r=e[t])===r)if(r)if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))P=r;else throw P=!r,Error(a+"crypto unavailable");else P=r;else throw Error(a+t+" not true or false: "+r);if(e.hasOwnProperty(t="MODULO_MODE")&&(f(r=e[t],0,9,t),T=r),e.hasOwnProperty(t="POW_PRECISION")&&(f(r=e[t],0,1e9,t),I=r),e.hasOwnProperty(t="FORMAT"))if("object"==typeof(r=e[t]))C=r;else throw Error(a+t+" not an object: "+r);if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(a+t+" invalid: "+r);R="0123456789"==r.slice(0,10),F=r}}else throw Error(a+"Object expected: "+e);return{DECIMAL_PLACES:D,ROUNDING_MODE:O,EXPONENTIAL_AT:[M,E],RANGE:[N,k],CRYPTO:P,MODULO_MODE:T,POW_PRECISION:I,FORMAT:C,ALPHABET:F}},j.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!j.DEBUG)return!0;var t,r,n=e.c,o=e.e,s=e.s;e:if("[object Array]"==({}).toString.call(n)){if((1===s||-1===s)&&o>=-1e9&&o<=1e9&&o===i(o)){if(0===n[0]){if(0===o&&1===n.length)return!0;break e}if((t=(o+1)%14)<1&&(t+=14),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=1e14||r!==i(r))break e;if(0!==r)return!0}}}else if(null===n&&null===o&&(null===s||1===s||-1===s))return!0;throw Error(a+"Invalid BigNumber: "+e)},j.maximum=j.max=function(){return U(arguments,-1)},j.minimum=j.min=function(){return U(arguments,1)},g=0x20000000000000*Math.random()&2097151?function(){return i(0x20000000000000*Math.random())}:function(){return(0x40000000*Math.random()|0)*8388608+(8388608*Math.random()|0)},j.random=function(e){var t,r,o,l,u,c=0,d=[],p=new j($);if(null==e?e=D:f(e,0,1e9),l=n(e/14),P)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(l*=2));c<l;)(u=131072*t[c]+(t[c+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(d.push(u%1e14),c+=2);c=l/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(l*=7);c<l;)(u=(31&t[c])*0x1000000000000+0x10000000000*t[c+1]+0x100000000*t[c+2]+0x1000000*t[c+3]+(t[c+4]<<16)+(t[c+5]<<8)+t[c+6])>=9e15?crypto.randomBytes(7).copy(t,c):(d.push(u%1e14),c+=7);c=l/7}else throw P=!1,Error(a+"crypto unavailable");if(!P)for(;c<l;)(u=g())<9e15&&(d[c++]=u%1e14);for(l=d[--c],e%=14,l&&e&&(u=s[14-e],d[c]=i(l/u)*u);0===d[c];d.pop(),c--);if(c<0)d=[o=0];else{for(o=-1;0===d[0];d.splice(0,1),o-=14);for(c=1,u=d[0];u>=10;u/=10,c++);c<14&&(o-=14-c)}return p.e=o,p.c=d,p},j.sum=function(){for(var e=1,t=arguments,r=new j(t[0]);e<t.length;)r=r.plus(t[e++]);return r},S=function(){var e="0123456789";function t(e,t,r,n){for(var i,a,o=[0],s=0,l=e.length;s<l;){for(a=o.length;a--;o[a]*=t);for(o[0]+=n.indexOf(e.charAt(s++)),i=0;i<o.length;i++)o[i]>r-1&&(null==o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/r|0,o[i]%=r)}return o.reverse()}return function(r,n,i,a,o){var s,l,c,f,d,p,g,h,b=r.indexOf("."),y=D,v=O;for(b>=0&&(f=I,I=0,r=r.replace(".",""),p=(h=new j(n)).pow(r.length-b),I=f,h.c=t(m(u(p.c),p.e,"0"),10,i,e),h.e=h.c.length),c=f=(g=t(r,n,i,o?(s=F,e):(s=e,F))).length;0==g[--f];g.pop());if(!g[0])return s.charAt(0);if(b<0?--c:(p.c=g,p.e=c,p.s=a,g=(p=w(p,h,y,v,i)).c,d=p.r,c=p.e),b=g[l=c+y+1],f=i/2,d=d||l<0||null!=g[l+1],d=v<4?(null!=b||d)&&(0==v||v==(p.s<0?3:2)):b>f||b==f&&(4==v||d||6==v&&1&g[l-1]||v==(p.s<0?8:7)),l<1||!g[0])r=d?m(s.charAt(1),-y,s.charAt(0)):s.charAt(0);else{if(g.length=l,d)for(--i;++g[--l]>i;)g[l]=0,l||(++c,g=[1].concat(g));for(f=g.length;!g[--f];);for(b=0,r="";b<=f;r+=s.charAt(g[b++]));r=m(r,c,s.charAt(0))}return r}}(),w=function(){function e(e,t,r){var n,i,a,o,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)n=c*(a=e[l]%1e7)+(o=e[l]/1e7|0)*u,s=((i=u*a+n%1e7*1e7+s)/r|0)+(n/1e7|0)+c*o,e[l]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,a;if(r!=n)a=r>n?1:-1;else for(i=a=0;i<r;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=+(e[r]<t[r]),e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,a,o,s,u){var c,f,d,p,m,g,h,b,y,v,x,w,S,A,B,$,D,O=n.s==a.s?1:-1,M=n.c,E=a.c;if(!M||!M[0]||!E||!E[0])return new j(!n.s||!a.s||(M?E&&M[0]==E[0]:!E)?NaN:M&&0==M[0]||!E?0*O:O/0);for(y=(b=new j(O)).c=[],O=o+(f=n.e-a.e)+1,u||(u=1e14,f=l(n.e/14)-l(a.e/14),O=O/14|0),d=0;E[d]==(M[d]||0);d++);if(E[d]>(M[d]||0)&&f--,O<0)y.push(1),p=!0;else{for(A=M.length,$=E.length,d=0,O+=2,(m=i(u/(E[0]+1)))>1&&(E=e(E,m,u),M=e(M,m,u),$=E.length,A=M.length),S=$,x=(v=M.slice(0,$)).length;x<$;v[x++]=0);D=[0].concat(D=E.slice()),B=E[0],E[1]>=u/2&&B++;do{if(m=0,(c=t(E,v,$,x))<0){if(w=v[0],$!=x&&(w=w*u+(v[1]||0)),(m=i(w/B))>1)for(m>=u&&(m=u-1),h=(g=e(E,m,u)).length,x=v.length;1==t(g,v,h,x);)m--,r(g,$<h?D:E,h,u),h=g.length,c=1;else 0==m&&(c=m=1),h=(g=E.slice()).length;if(h<x&&(g=[0].concat(g)),r(v,g,x,u),x=v.length,-1==c)for(;1>t(E,v,$,x);)m++,r(v,$<x?D:E,x,u),x=v.length}else 0===c&&(m++,v=[0]);y[d++]=m,v[0]?v[x++]=M[S]||0:(v=[M[S]],x=1)}while((S++<A||null!=v[0])&&O--);p=null!=v[0],y[0]||y.splice(0,1)}if(1e14==u){for(d=1,O=y[0];O>=10;O/=10,d++);z(b,o+(b.e=d+14*f-1)+1,s,p)}else b.e=f,b.r=+p;return b}}(),h=/^(-?)0([xbo])(?=\w[\w.]*$)/i,b=/^([^.]+)\.$/,y=/^\.([^.]+)$/,v=/^-?(Infinity|NaN)$/,x=/^\s*\+(?=[\w.])|^\s+|\s+$/g,A=function(e,t,r,n){var i,o=r?t:t.replace(x,"");if(v.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!r&&(o=o.replace(h,function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t}),n&&(i=n,o=o.replace(b,"$1").replace(y,"0.$1")),t!=o))return new j(o,i);if(j.DEBUG)throw Error(a+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},B.absoluteValue=B.abs=function(){var e=new j(this);return e.s<0&&(e.s=1),e},B.comparedTo=function(e,t){return c(this,new j(e,t))},B.decimalPlaces=B.dp=function(e,t){var r,n,i;if(null!=e)return f(e,0,1e9),null==t?t=O:f(t,0,8),z(new j(this),e+this.e+1,t);if(!(r=this.c))return null;if(n=((i=r.length-1)-l(this.e/14))*14,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},B.dividedBy=B.div=function(e,t){return w(this,new j(e,t),D,O)},B.dividedToIntegerBy=B.idiv=function(e,t){return w(this,new j(e,t),0,1)},B.exponentiatedBy=B.pow=function(e,t){var r,o,s,l,u,c,f,p,m,g=this;if((e=new j(e)).c&&!e.isInteger())throw Error(a+"Exponent not an integer: "+V(e));if(null!=t&&(t=new j(t)),c=e.e>14,!g.c||!g.c[0]||1==g.c[0]&&!g.e&&1==g.c.length||!e.c||!e.c[0])return m=new j(Math.pow(+V(g),c?e.s*(2-d(e)):+V(e))),t?m.mod(t):m;if(f=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new j(NaN);(o=!f&&g.isInteger()&&t.isInteger())&&(g=g.mod(t))}else{if(e.e>9&&(g.e>0||g.e<-1||(0==g.e?g.c[0]>1||c&&g.c[1]>=24e7:g.c[0]<8e13||c&&g.c[0]<=9999975e7)))return l=g.s<0&&d(e)?-0:0,g.e>-1&&(l=1/l),new j(f?1/l:l);I&&(l=n(I/14+2))}for(c?(r=new j(.5),f&&(e.s=1),p=d(e)):p=(s=Math.abs(+V(e)))%2,m=new j($);;){if(p){if(!(m=m.times(g)).c)break;l?m.c.length>l&&(m.c.length=l):o&&(m=m.mod(t))}if(s){if(0===(s=i(s/2)))break;p=s%2}else if(z(e=e.times(r),e.e+1,1),e.e>14)p=d(e);else{if(0==(s=+V(e)))break;p=s%2}g=g.times(g),l?g.c&&g.c.length>l&&(g.c.length=l):o&&(g=g.mod(t))}return o?m:(f&&(m=$.div(m)),t?m.mod(t):l?z(m,I,O,u):m)},B.integerValue=function(e){var t=new j(this);return null==e?e=O:f(e,0,8),z(t,t.e+1,e)},B.isEqualTo=B.eq=function(e,t){return 0===c(this,new j(e,t))},B.isFinite=function(){return!!this.c},B.isGreaterThan=B.gt=function(e,t){return c(this,new j(e,t))>0},B.isGreaterThanOrEqualTo=B.gte=function(e,t){return 1===(t=c(this,new j(e,t)))||0===t},B.isInteger=function(){return!!this.c&&l(this.e/14)>this.c.length-2},B.isLessThan=B.lt=function(e,t){return 0>c(this,new j(e,t))},B.isLessThanOrEqualTo=B.lte=function(e,t){return -1===(t=c(this,new j(e,t)))||0===t},B.isNaN=function(){return!this.s},B.isNegative=function(){return this.s<0},B.isPositive=function(){return this.s>0},B.isZero=function(){return!!this.c&&0==this.c[0]},B.minus=function(e,t){var r,n,i,a,o=this.s;if(t=(e=new j(e,t)).s,!o||!t)return new j(NaN);if(o!=t)return e.s=-t,this.plus(e);var s=this.e/14,u=e.e/14,c=this.c,f=e.c;if(!s||!u){if(!c||!f)return c?(e.s=-t,e):new j(f?this:NaN);if(!c[0]||!f[0])return f[0]?(e.s=-t,e):new j(c[0]?this:3==O?-0:0)}if(s=l(s),u=l(u),c=c.slice(),o=s-u){for((a=o<0)?(o=-o,i=c):(u=s,i=f),i.reverse(),t=o;t--;i.push(0));i.reverse()}else for(n=(a=(o=c.length)<(t=f.length))?o:t,o=t=0;t<n;t++)if(c[t]!=f[t]){a=c[t]<f[t];break}if(a&&(i=c,c=f,f=i,e.s=-e.s),(t=(n=f.length)-(r=c.length))>0)for(;t--;c[r++]=0);for(t=1e14-1;n>o;){if(c[--n]<f[n]){for(r=n;r&&!c[--r];c[r]=t);--c[r],c[n]+=1e14}c[n]-=f[n]}for(;0==c[0];c.splice(0,1),--u);return c[0]?_(e,c,u):(e.s=3==O?-1:1,e.c=[e.e=0],e)},B.modulo=B.mod=function(e,t){var r,n;return(e=new j(e,t),this.c&&e.s&&(!e.c||e.c[0]))?e.c&&(!this.c||this.c[0])?(9==T?(n=e.s,e.s=1,r=w(this,e,0,3),e.s=n,r.s*=n):r=w(this,e,0,T),(e=this.minus(r.times(e))).c[0]||1!=T||(e.s=this.s),e):new j(this):new j(NaN)},B.multipliedBy=B.times=function(e,t){var r,n,i,a,o,s,u,c,f,d,p,m,g,h=this.c,b=(e=new j(e,t)).c;if(!h||!b||!h[0]||!b[0])return this.s&&e.s&&(!h||h[0]||b)&&(!b||b[0]||h)?(e.s*=this.s,h&&b?(e.c=[0],e.e=0):e.c=e.e=null):e.c=e.e=e.s=null,e;for(n=l(this.e/14)+l(e.e/14),e.s*=this.s,(u=h.length)<(d=b.length)&&(g=h,h=b,b=g,i=u,u=d,d=i),i=u+d,g=[];i--;g.push(0));for(i=d;--i>=0;){for(r=0,p=b[i]%1e7,m=b[i]/1e7|0,a=i+(o=u);a>i;)s=m*(c=h[--o]%1e7)+(f=h[o]/1e7|0)*p,r=((c=p*c+s%1e7*1e7+g[a]+r)/1e14|0)+(s/1e7|0)+m*f,g[a--]=c%1e14;g[a]=r}return r?++n:g.splice(0,1),_(e,g,n)},B.negated=function(){var e=new j(this);return e.s=-e.s||null,e},B.plus=function(e,t){var r,n=this.s;if(t=(e=new j(e,t)).s,!n||!t)return new j(NaN);if(n!=t)return e.s=-t,this.minus(e);var i=this.e/14,a=e.e/14,o=this.c,s=e.c;if(!i||!a){if(!o||!s)return new j(n/0);if(!o[0]||!s[0])return s[0]?e:new j(o[0]?this:0*n)}if(i=l(i),a=l(a),o=o.slice(),n=i-a){for(n>0?(a=i,r=s):(n=-n,r=o),r.reverse();n--;r.push(0));r.reverse()}for((n=o.length)-(t=s.length)<0&&(r=s,s=o,o=r,t=n),n=0;t;)n=(o[--t]=o[t]+s[t]+n)/1e14|0,o[t]=1e14===o[t]?0:o[t]%1e14;return n&&(o=[n].concat(o),++a),_(e,o,a)},B.precision=B.sd=function(e,t){var r,n,i;if(null!=e&&!!e!==e)return f(e,1,1e9),null==t?t=O:f(t,0,8),z(new j(this),e,t);if(!(r=this.c))return null;if(n=14*(i=r.length-1)+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&this.e+1>n&&(n=this.e+1),n},B.shiftedBy=function(e){return f(e,-0x1fffffffffffff,0x1fffffffffffff),this.times("1e"+e)},B.squareRoot=B.sqrt=function(){var e,t,r,n,i,a=this.c,o=this.s,s=this.e,c=D+4,f=new j("0.5");if(1!==o||!a||!a[0])return new j(!o||o<0&&(!a||a[0])?NaN:a?this:1/0);if(0==(o=Math.sqrt(+V(this)))||o==1/0?(((t=u(a)).length+s)%2==0&&(t+="0"),o=Math.sqrt(+t),s=l((s+1)/2)-(s<0||s%2),r=new j(t=o==1/0?"5e"+s:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+s)):r=new j(o+""),r.c[0]){for((o=(s=r.e)+c)<3&&(o=0);;)if(i=r,r=f.times(i.plus(w(this,i,c,1))),u(i.c).slice(0,o)===(t=u(r.c)).slice(0,o)){if(r.e<s&&--o,"9999"!=(t=t.slice(o-3,o+1))&&(n||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(z(r,r.e+D+2,1),e=!r.times(r).eq(this));break}if(!n&&(z(i,i.e+D+2,0),i.times(i).eq(this))){r=i;break}c+=4,o+=4,n=1}}return z(r,r.e+D+1,O,e)},B.toExponential=function(e,t){return null!=e&&(f(e,0,1e9),e++),L(this,e,t,1)},B.toFixed=function(e,t){return null!=e&&(f(e,0,1e9),e=e+this.e+1),L(this,e,t)},B.toFormat=function(e,t,r){var n;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=C;else if("object"!=typeof r)throw Error(a+"Argument not an object: "+r);if(n=this.toFixed(e,t),this.c){var i,o=n.split("."),s=+r.groupSize,l=+r.secondaryGroupSize,u=r.groupSeparator||"",c=o[0],f=o[1],d=this.s<0,p=d?c.slice(1):c,m=p.length;if(l&&(i=s,s=l,l=i,m-=i),s>0&&m>0){for(i=m%s||s,c=p.substr(0,i);i<m;i+=s)c+=u+p.substr(i,s);l>0&&(c+=u+p.slice(i)),d&&(c="-"+c)}n=f?c+(r.decimalSeparator||"")+((l=+r.fractionGroupSize)?f.replace(RegExp("\\d{"+l+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):f):c}return(r.prefix||"")+n+(r.suffix||"")},B.toFraction=function(e){var t,r,n,i,o,l,c,f,d,p,m,g,h=this.c;if(null!=e&&(!(c=new j(e)).isInteger()&&(c.c||1!==c.s)||c.lt($)))throw Error(a+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+V(c));if(!h)return new j(this);for(t=new j($),d=r=new j($),n=f=new j($),g=u(h),o=t.e=g.length-this.e-1,t.c[0]=s[(l=o%14)<0?14+l:l],e=!e||c.comparedTo(t)>0?o>0?t:d:c,l=k,k=1/0,c=new j(g),f.c[0]=0;p=w(c,t,0,1),1!=(i=r.plus(p.times(n))).comparedTo(e);)r=n,n=i,d=f.plus(p.times(i=d)),f=i,t=c.minus(p.times(i=t)),c=i;return i=w(e.minus(r),n,0,1),f=f.plus(i.times(d)),r=r.plus(i.times(n)),f.s=d.s=this.s,o*=2,m=1>w(d,n,o,O).minus(this).abs().comparedTo(w(f,r,o,O).minus(this).abs())?[d,n]:[f,r],k=l,m},B.toNumber=function(){return+V(this)},B.toPrecision=function(e,t){return null!=e&&f(e,1,1e9),L(this,e,t,2)},B.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=i<=M||i>=E?p(u(r.c),i):m(u(r.c),i,"0"):10===e&&R?t=m(u((r=z(new j(r),D+i+1,O)).c),r.e,"0"):(f(e,2,F.length,"Base"),t=S(m(u(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},B.valueOf=B.toJSON=function(){return V(this)},B._isBigNumber=!0,null!=t&&j.set(t),j}()).default=t.BigNumber=t,b.exports?b.exports=t:(e||(e="undefined"!=typeof self&&self?self:window),e.BigNumber=t)})(d);var y=b.exports;let v=h(),x=m(),w={trillion:1e12,billion:1e9,million:1e6,thousand:1e3},S={totalLength:0,characteristic:0,forceAverage:!1,average:!1,mantissa:-1,optionalMantissa:!0,thousandSeparated:!1,spaceSeparated:!1,negative:"sign",forceSign:!1,roundingFunction:Math.round,spaceSeparatedAbbreviation:!1},{binarySuffixes:A,decimalSuffixes:B}=v.currentBytes(),$={scale:1024,suffixes:B,marker:"bd"},D={scale:1024,suffixes:A,marker:"b"},O={scale:1e3,suffixes:B,marker:"d"};function M(e,t,r){let n=t[0],i=Math.abs(e);if(i>=r){for(let a=1;a<t.length;++a){let o=Math.pow(r,a),s=Math.pow(r,a+1);if(i>=o&&i<s){n=t[a],e/=o;break}}n===t[0]&&(e/=Math.pow(r,t.length-1),n=t[t.length-1])}return{value:e,suffix:n}}function E(e){let t="";for(let r=0;r<e;r++)t+="0";return t}function N({instance:e,providedFormat:t,state:r=v,decimalSeparator:n,defaults:i=r.currentDefaults()}){var a,o,s,l,u;let c,f,d,p,m,g,h,b=e._value;if(0===b&&r.hasZeroFormat())return r.getZeroFormat();if(!isFinite(b))return b.toString();let x=Object.assign({},S,i,t),A=x.totalLength,B=A?0:x.characteristic,$=x.optionalCharacteristic,D=x.forceAverage,O=x.lowPrecision,M=!!A||!!D||x.average,N=A?-1:M&&void 0===t.mantissa?0:x.mantissa,k=!A&&(void 0===t.optionalMantissa?-1===N:x.optionalMantissa),P=x.trimMantissa,T=x.thousandSeparated,I=x.spaceSeparated,C=x.negative,F=x.forceSign,R=x.exponential,j=x.roundingFunction,L="";if(M){let e=function({value:e,forceAverage:t,lowPrecision:r=!0,abbreviations:n,spaceSeparated:i=!1,totalLength:a=0,roundingFunction:o=Math.round}){let s="",l=Math.abs(e),u=-1;if(t&&n[t]&&w[t]?(s=n[t],e/=w[t]):l>=w.trillion||r&&1===o(l/w.trillion)?(s=n.trillion,e/=w.trillion):l<w.trillion&&l>=w.billion||r&&1===o(l/w.billion)?(s=n.billion,e/=w.billion):l<w.billion&&l>=w.million||r&&1===o(l/w.million)?(s=n.million,e/=w.million):(l<w.million&&l>=w.thousand||r&&1===o(l/w.thousand))&&(s=n.thousand,e/=w.thousand),s&&(s=(i?" ":"")+s),a){let t=e<0,r=e.toString().split(".")[0];u=Math.max(a-(t?r.length-1:r.length),0)}return{value:e,abbreviation:s,mantissaPrecision:u}}({value:b,forceAverage:D,lowPrecision:O,abbreviations:r.currentAbbreviations(),spaceSeparated:I,roundingFunction:j,totalLength:A});b=e.value,L+=e.abbreviation,A&&(N=e.mantissaPrecision)}if(R){let e=function({value:e,characteristicPrecision:t}){let[r,n]=e.toExponential().split("e"),i=+r;return t&&1<t&&(i*=Math.pow(10,t-1),n-=t-1,n=n>=0?`+${n}`:n),{value:i,abbreviation:`e${n}`}}({value:b,characteristicPrecision:B});b=e.value,L=e.abbreviation+L}let U=function(e,t,r,n,i,a){if(-1===n)return e;let o=function(e,t,r=Math.round){return -1!==e.toString().indexOf("e")?function(e,t){let r=e.toString(),[n,i]=r.split("e"),[a,o=""]=n.split(".");if(+i>0)r=a+o+E(i-o.length);else{let e=".";e=0>+a?`-0${e}`:`0${e}`;let n=(E(-i-1)+Math.abs(a)+o).substr(0,t);n.length<t&&(n+=E(t-n.length)),r=e+n}return+i>0&&t>0&&(r+=`.${E(t)}`),r}(e,t):new y(r(+`${e}e+${t}`)/Math.pow(10,t)).toFixed(t)}(t,n,a),[s,l=""]=o.toString().split(".");if(l.match(/^0+$/)&&(r||i))return s;let u=l.match(/0+$/);return i&&u?`${s}.${l.toString().slice(0,u.index)}`:o.toString()}(b.toString(),b,k,N,P,j);return a=U=function(e,t,r,n){let i=e,[a,o]=i.toString().split(".");if(a.match(/^-?0$/)&&r)return o?`${a.replace("0","")}.${o}`:a.replace("0","");let s=t<0&&0===a.indexOf("-");if(s&&(a=a.slice(1),i=i.slice(1)),a.length<n){let e=n-a.length;for(let t=0;t<e;t++)i=`0${i}`}return s&&(i=`-${i}`),i.toString()}(U,b,$,B),o=b,s=n,f=(c=r.currentDelimiters()).thousands,s=s||c.decimal,d=c.thousandsSize||3,m=(p=a.toString()).split(".")[0],g=p.split(".")[1],h=o<0&&0===m.indexOf("-"),T&&(h&&(m=m.slice(1)),(function(e,t){let r=[],n=0;for(let i=e;i>0;i--)n===t&&(r.unshift(i),n=0),n++;return r})(m.length,d).forEach((e,t)=>{m=m.slice(0,e+t)+f+m.slice(e+t)}),h&&(m=`-${m}`)),U=p=g?m+s+g:m,(M||R)&&(U+=L),(F||b<0)&&(l=U,U=0===(u=b)?l:0==+l?l.replace("-",""):u>0?`+${l}`:"sign"===C?l:`(${l.replace("-","")})`),U}function k(e,t){if(!e)return t;let r=Object.keys(e);return 1===r.length&&"output"===r[0]?t:e}function P(e,t,r){let n=new y(e._value),i=t;return r.isNumbro(t)&&(i=t._value),i=new y(i),e._value=n.minus(i).toNumber(),e}let T=h(),I=m(),C={loadLanguagesInNode:e=>{e.forEach(e=>{let t;try{t=function(e){throw Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}(`../languages/${e}`)}catch(t){console.error(`Unable to load "${e}". No matching language file found.`)}t&&_.registerLanguage(t)})}},F=p(),R={format:(...e)=>(function(e,t={},r){if("string"==typeof t&&(t=g(t)),!x.validateFormat(t))return"ERROR: invalid format";let n=t.prefix||"",i=t.postfix||"",a=function(e,t,r){var n,i,a;switch(t.output){case"currency":let o,s,l,u,c,f,d,p,m,g;return n=t=k(t,v.currentCurrencyDefaultFormat()),o=v.currentCurrency(),l=Object.assign({},S,s=Object.assign({},n)),c="",f=!!l.totalLength||!!l.forceAverage||l.average,d=s.currencyPosition||o.position,p=s.currencySymbol||o.symbol,m=void 0!==l.spaceSeparatedCurrency?l.spaceSeparatedCurrency:l.spaceSeparated,void 0===s.lowPrecision&&(s.lowPrecision=!1),m&&(c=" "),"infix"===d&&(u=c+p+c),g=N({instance:e,providedFormat:s,state:v,decimalSeparator:u}),"prefix"===d&&(g=e._value<0&&"sign"===l.negative?`-${c}${p}${g.slice(1)}`:e._value>0&&l.forceSign?`+${c}${p}${g.slice(1)}`:p+c+g),d&&"postfix"!==d||(g=g+(c=!l.spaceSeparatedAbbreviation&&f?"":c)+p),g;case"percent":let h,b,y;return i=t=k(t,v.currentPercentageDefaultFormat()),h=i.prefixSymbol,b=N({instance:r(100*e._value),providedFormat:i,state:v}),y=Object.assign({},S,i),h?`%${y.spaceSeparated?" ":""}${b}`:`${b}${y.spaceSeparated?" ":""}%`;case"byte":return function(e,t,r,n){let i=t.base||"binary",a=Object.assign({},S,t),{binarySuffixes:o,decimalSuffixes:s}=r.currentBytes(),l={general:{scale:1024,suffixes:s||B,marker:"bd"},binary:{scale:1024,suffixes:o||A,marker:"b"},decimal:{scale:1e3,suffixes:s||B,marker:"d"}}[i],{value:u,suffix:c}=M(e._value,l.suffixes,l.scale),f=N({instance:n(u),providedFormat:t,state:r,defaults:r.currentByteDefaultFormat()});return`${f}${a.spaceSeparated?" ":""}${c}`}(e,t=k(t,v.currentByteDefaultFormat()),v,r);case"time":let x,w,$;return t=k(t,v.currentTimeDefaultFormat()),x=Math.floor(e._value/60/60),w=Math.floor((e._value-60*x*60)/60),$=Math.round(e._value-60*x*60-60*w),`${x}:${w<10?"0":""}${w}:${$<10?"0":""}${$}`;case"ordinal":let D,O,E,P;return a=t=k(t,v.currentOrdinalDefaultFormat()),D=v.currentOrdinal(),O=Object.assign({},S,a),E=N({instance:e,providedFormat:a,state:v}),P=D(e._value),`${E}${O.spaceSeparated?" ":""}${P}`;default:return N({instance:e,providedFormat:t,numbro:r})}}(e,t,r);return(a=n+a)+i})(...e,_),getByteUnit:(...e)=>(function(e){return M(e._value,$.suffixes,$.scale).suffix})(...e,_),getBinaryByteUnit:(...e)=>(function(e){return M(e._value,D.suffixes,D.scale).suffix})(...e,_),getDecimalByteUnit:(...e)=>(function(e){return M(e._value,O.suffixes,O.scale).suffix})(...e,_),formatOrDefault:k},j={add:(e,t)=>{let r,n;return r=new y(e._value),n=t,_.isNumbro(t)&&(n=t._value),n=new y(n),e._value=r.plus(n).toNumber(),e},subtract:(e,t)=>P(e,t,_),multiply:(e,t)=>{let r,n;return r=new y(e._value),n=t,_.isNumbro(t)&&(n=t._value),n=new y(n),e._value=r.times(n).toNumber(),e},divide:(e,t)=>{let r,n;return r=new y(e._value),n=t,_.isNumbro(t)&&(n=t._value),n=new y(n),e._value=r.dividedBy(n).toNumber(),e},set:(e,t)=>{let r;return r=t,_.isNumbro(t)&&(r=t._value),e._value=r,e},difference:(e,t)=>{let r;return P(r=_(e._value),t,_),Math.abs(r._value)},BigNumber:y};class L{constructor(e){this._value=e}clone(){return _(this._value)}format(e={}){return R.format(this,e)}formatCurrency(e){return"string"==typeof e&&(e=g(e)),(e=R.formatOrDefault(e,T.currentCurrencyDefaultFormat())).output="currency",R.format(this,e)}formatTime(e={}){return e.output="time",R.format(this,e)}binaryByteUnits(){return R.getBinaryByteUnit(this)}decimalByteUnits(){return R.getDecimalByteUnit(this)}byteUnits(){return R.getByteUnit(this)}difference(e){return j.difference(this,e)}add(e){return j.add(this,e)}subtract(e){return j.subtract(this,e)}multiply(e){return j.multiply(this,e)}divide(e){return j.divide(this,e)}set(e){return j.set(this,U(e))}value(){return this._value}valueOf(){return this._value}}function U(e){let t=e;return _.isNumbro(e)?t=e._value:"string"==typeof e?t=_.unformat(e):isNaN(e)&&(t=NaN),t}function _(e){return new L(U(e))}_.version="2.5.0",_.isNumbro=function(e){return e instanceof L},_.language=T.currentLanguage,_.registerLanguage=T.registerLanguage,_.setLanguage=T.setLanguage,_.languages=T.languages,_.languageData=T.languageData,_.zeroFormat=T.setZeroFormat,_.defaultFormat=T.currentDefaults,_.setDefaults=T.setDefaults,_.defaultCurrencyFormat=T.currentCurrencyDefaultFormat,_.validate=I.validate,_.loadLanguagesInNode=C.loadLanguagesInNode,_.unformat=F.unformat,_.BigNumber=j.BigNumber;var z=_&&_.__esModule&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,V=r(71065);function W(e,{unit:t="bytes",shortValues:r,decimalPlaces:n}){let i="decbytes"===t;if(!(0,V.jb)(r)||Math.abs(e)<(i?1e3:1024)){let t={style:"unit",unit:"byte",unitDisplay:"long",useGrouping:!0};return(0,V.IU)(n)?(t.minimumFractionDigits=(0,V.To)(n),t.maximumFractionDigits=(0,V.To)(n)):(0,V.jb)(r)&&(t.maximumSignificantDigits=3),Intl.NumberFormat("en-US",t).format(e)}return z(e).format({output:"byte",base:i?"decimal":"binary",spaceSeparated:!0,mantissa:(0,V.IU)(n)?n:2,trimMantissa:!(0,V.IU)(n),optionalMantissa:!(0,V.IU)(n)})}function G(e,{unit:t="bits",shortValues:r,decimalPlaces:n}){let i="decbits"===t;if(!(0,V.jb)(r)||Math.abs(e)<(i?1e3:1024)){let t={style:"decimal",useGrouping:!0};return(0,V.IU)(n)?(t.minimumFractionDigits=(0,V.To)(n),t.maximumFractionDigits=(0,V.To)(n)):(0,V.jb)(r)&&(t.maximumSignificantDigits=3),Intl.NumberFormat("en-US",t).format(e)+" bits"}return z(e).format({output:"byte",base:i?"decimal":"binary",spaceSeparated:!0,mantissa:(0,V.IU)(n)?n:2,trimMantissa:!(0,V.IU)(n),optionalMantissa:!(0,V.IU)(n)}).replace(/KB/g,"Kb").replace(/MB/g,"Mb").replace(/GB/g,"Gb").replace(/TB/g,"Tb").replace(/PB/g,"Pb").replace(/EB/g,"Eb").replace(/KiB/g,"Kib").replace(/MiB/g,"Mib").replace(/GiB/g,"Gib").replace(/TiB/g,"Tib").replace(/PiB/g,"Pib").replace(/EiB/g,"Eib")}let Z="Percent",q="Temperature",K="Time";var H=((n={}).nanoseconds="nanosecond",n.microseconds="microsecond",n.milliseconds="millisecond",n.seconds="second",n.minutes="minute",n.hours="hour",n.days="day",n.weeks="week",n.months="month",n.years="year",n);let Y={years:31536e3,months:2592e3,weeks:604800,days:86400,hours:3600,minutes:60,seconds:1,milliseconds:.001,microseconds:1e-6,nanoseconds:1e-9},X=["years","months","weeks","days","hours","minutes","seconds","milliseconds","microseconds","nanoseconds"],J="Throughput";var Q=r(40224);let ee="Currency",et="Date",er={Time:{label:"Time",decimalPlaces:!0},Percent:{label:"percent",decimalPlaces:!0},Decimal:{label:"Decimal",decimalPlaces:!0,shortValues:!0},Bytes:{label:"Bytes",decimalPlaces:!0,shortValues:!0},Bits:{label:"Bits",decimalPlaces:!0,shortValues:!0},Throughput:{label:"Throughput",decimalPlaces:!0},Currency:{label:"Currency",decimalPlaces:!0},Temperature:{label:q,decimalPlaces:!0},Date:{label:"Date & Time"}},en={nanoseconds:{group:K,label:"Nanoseconds"},microseconds:{group:K,label:"Microseconds"},milliseconds:{group:K,label:"Milliseconds"},seconds:{group:K,label:"Seconds"},minutes:{group:K,label:"Minutes"},hours:{group:K,label:"Hours"},days:{group:K,label:"Days"},weeks:{group:K,label:"Weeks"},months:{group:K,label:"Months"},years:{group:K,label:"Years"},percent:{group:Z,label:"Percent (0-100)"},"percent-decimal":{group:Z,label:"Percent (0.0-1.0)"},"%":{disableSelectorOption:!0,group:Z,label:"%"},decimal:{group:"Decimal",label:"Decimal"},bytes:{group:"Bytes",label:"Bytes (IEC)"},decbytes:{group:"Bytes",label:"Bytes (SI)"},bits:{group:"Bits",label:"Bits (IEC)"},decbits:{group:"Bits",label:"Bits (SI)"},"bits/sec":{group:J,label:"Bits/sec (IEC)"},"decbits/sec":{group:J,label:"Bits/sec (SI)"},"bytes/sec":{group:J,label:"Bytes/sec (IEC)"},"decbytes/sec":{group:J,label:"Bytes/sec (SI)"},"counts/sec":{group:J,label:"Counts/sec"},"events/sec":{group:J,label:"Events/sec"},"messages/sec":{group:J,label:"Messages/sec"},"ops/sec":{group:J,label:"Ops/sec"},"packets/sec":{group:J,label:"Packets/sec"},"reads/sec":{group:J,label:"Reads/sec"},"requests/sec":{group:J,label:"Requests/sec"},"records/sec":{group:J,label:"Records/sec"},"rows/sec":{group:J,label:"Rows/sec"},"writes/sec":{group:J,label:"Writes/sec"},aud:{group:ee,label:"Australian Dollar (A$)"},cad:{group:ee,label:"Canadian Dollar (CA$)"},chf:{group:ee,label:"Swiss Franc (CHF)"},cny:{group:ee,label:"Renminbi (CN\xa5)"},eur:{group:ee,label:"Euro (€)"},gbp:{group:ee,label:"Pound (\xa3)"},hkd:{group:ee,label:"Hong Kong Dollar (HK$)"},inr:{group:ee,label:"Indian Rupee (₹)"},jpy:{group:ee,label:"Yen (\xa5)"},krw:{group:ee,label:"South Korean Won (₩)"},nok:{group:ee,label:"Norwegian Krone (NOK)"},nzd:{group:ee,label:"New Zealand Dollar (NZ$)"},sek:{group:ee,label:"Swedish Krona (SEK)"},sgd:{group:ee,label:"Singapore Dollar (S$)"},usd:{group:ee,label:"US Dollar ($)"},celsius:{group:q,label:"Celsius (\xb0C)"},fahrenheit:{group:q,label:"Fahrenheit (\xb0F)"},"datetime-iso":{group:et,label:"DateTime (GMT)"},"datetime-us":{group:et,label:"DateTime (US-East)"},"datetime-local":{group:et,label:"DateTime (Browser Local)"},"date-iso":{group:et,label:"Date (GMT)"},"date-us":{group:et,label:"Date (US-East)"},"date-local":{group:et,label:"Date (Browser Local)"},"time-local":{group:et,label:"Time (Browser Local)"},"time-iso":{group:et,label:"Time (GMT)"},"time-us":{group:et,label:"Time (US-East)"},"relative-time":{group:et,label:"Relative Time"},"unix-timestamp":{group:et,label:"Unix Timestamp (s)"},"unix-timestamp-ms":{group:et,label:"Unix Timestamp (ms)"}};function ei(e,t){if(!t)return e.toString();if(ef(t))return W(e,t);if(ed(t))return G(e,t);if(ec(t))return function(e,{shortValues:t,decimalPlaces:r}){let n={style:"decimal",useGrouping:!0};return(0,V.jb)(t)&&(n.notation="compact"),(0,V.IU)(r)?(n.minimumFractionDigits=(0,V.To)(r),n.maximumFractionDigits=(0,V.To)(r)):(0,V.jb)(t)&&(n.maximumSignificantDigits=3),Intl.NumberFormat("en-US",n).format(e)}(e,t);if(eu(t))return function(e,{unit:t,decimalPlaces:r}){let n={style:"percent",useGrouping:!0};return(0,V.IU)(r)?(n.minimumFractionDigits=(0,V.To)(r),n.maximumFractionDigits=(0,V.To)(r)):n.maximumSignificantDigits=3,"percent"===t&&(e/=100),Intl.NumberFormat("en-US",n).format(e)}(e,t);if(el(t))return function(e,{unit:t,decimalPlaces:r}){var n;if(0===e)return"0s";let i=function(e,t){let r=e*Y[t],n=X[0]||"years",i=n,a=r/Y[n];for(i of X)if((a=r/Y[i])>=1)break;return{value:a,unit:i}}(e,t??"seconds"),a={style:"unit",unit:H[i.unit],unitDisplay:"months"===(n=i.unit)||"years"===n?"long":"narrow"};return(0,V.IU)(r)?(a.minimumFractionDigits=(0,V.To)(r),a.maximumFractionDigits=(0,V.To)(r)):a.maximumSignificantDigits=3,Intl.NumberFormat("en-US",a).format(i.value)}(e,t);if(eg(t))return function(e,{unit:t,shortValues:r,decimalPlaces:n}){if("bits/sec"===t){let t=1024>Math.abs(e)?"sec":"s";return G(e,{unit:"bits",shortValues:r,decimalPlaces:n})+"/"+t}if("decbits/sec"===t){let t=1e3>Math.abs(e)?"sec":"s";return G(e,{unit:"decbits",shortValues:r,decimalPlaces:n})+"/"+t}if("decbytes/sec"===t){let t=1e3>Math.abs(e)?"sec":"s";return W(e,{unit:"decbytes",shortValues:r,decimalPlaces:n})+"/"+t}if("bytes/sec"===t){let t=1024>Math.abs(e)?"sec":"s";return W(e,{unit:"bytes",shortValues:r,decimalPlaces:n})+"/"+t}let i={style:"decimal",useGrouping:!0};return(0,V.jb)(r)&&(i.notation="compact"),(0,V.IU)(n)?(i.minimumFractionDigits=(0,V.To)(n),i.maximumFractionDigits=(0,V.To)(n)):(0,V.jb)(r)&&(i.maximumSignificantDigits=3),Intl.NumberFormat("en-US",i).format(e)+" "+t}(e,t);if(eh(t))return function(e,{unit:t,decimalPlaces:r}){let n={style:"currency",currency:(0,Q.toUpper)(t),currencyDisplay:"symbol"};return(0,V.IU)(r)?(n.minimumFractionDigits=(0,V.To)(r),n.maximumFractionDigits=(0,V.To)(r)):n.maximumSignificantDigits=3,Intl.NumberFormat("en-US",n).format(e)}(e,t);if(eb(t))return function(e,t={}){let r=Intl.DateTimeFormat().resolvedOptions().timeZone,{unit:n="datetime-local",locale:i=(()=>{if("undefined"!=typeof navigator){if(navigator.language)return navigator.language;if(navigator.languages&&navigator.languages.length>0){let e=navigator.languages[0];if(e)return e}let e=navigator;if(e.userLanguage)return e.userLanguage;if(e.browserLanguage)return e.browserLanguage;if(e.systemLanguage)return e.systemLanguage}return Intl.DateTimeFormat().resolvedOptions().locale||"en-US"})(),timeZone:a=r,referenceTime:o=Date.now()}=t;if("unix-timestamp"===n)return(e>1e12?Math.floor(e/1e3):e).toString();if("unix-timestamp-ms"===n)return Math.floor(e<1e11?1e3*e:e).toString();let s=function(e){if(e<0)if(Math.abs(e)>1e10)return new Date(e);else return new Date(1e3*e);if(e>=25e10&&e<=26e10){let t=new Date(1e3*e);if(t.getUTCFullYear()>=9999)return t}return new Date(e<1e10?1e3*e:e)}(e);if("relative-time"===n){let e=new Date(o),t=s.getTime()-e.getTime();for(let{unit:e,ms:r}of[{unit:"year",ms:31536e6},{unit:"month",ms:2592e6},{unit:"week",ms:6048e5},{unit:"day",ms:864e5},{unit:"hour",ms:36e5},{unit:"minute",ms:6e4},{unit:"second",ms:1e3}]){let n=Math.round(t/r);if(Math.abs(n)>=1)return new Intl.RelativeTimeFormat(i,{numeric:"auto"}).format(n,e)}return new Intl.RelativeTimeFormat(i,{numeric:"auto"}).format(0,"second")}let l={timeZone:a};switch(n){case"datetime-iso":return s.toISOString();case"datetime-us":return l.timeZone="America/New_York",l.year="numeric",l.month="2-digit",l.day="2-digit",l.hour="2-digit",l.minute="2-digit",l.second="2-digit",l.hour12=!0,new Intl.DateTimeFormat("en-US",l).format(s);case"datetime-local":l.year="numeric",l.month="2-digit",l.day="2-digit",l.hour="2-digit",l.minute="2-digit",l.second="2-digit",l.hour12=!1;break;case"date-iso":return s.toISOString().split("T")[0];case"date-us":return l.timeZone="America/New_York",l.year="numeric",l.month="2-digit",l.day="2-digit",new Intl.DateTimeFormat("en-US",l).format(s);case"date-local":l.year="numeric",l.month="2-digit",l.day="2-digit";break;case"time-local":l.hour="2-digit",l.minute="2-digit",l.second="2-digit",l.hour12=!1;break;case"time-iso":return s.toISOString().split("T")[1].replace("Z","");case"time-us":return l.timeZone="America/New_York",l.hour="2-digit",l.minute="2-digit",l.second="2-digit",l.hour12=!0,new Intl.DateTimeFormat("en-US",l).format(s);default:throw Error(`Unknown date unit: ${n}`)}return new Intl.DateTimeFormat(i,l).format(s)}(e,t);if(ey(t))return((e,{unit:t,decimalPlaces:r})=>{let n={unit:t,style:"unit"};(0,V.IU)(r)?(n.minimumFractionDigits=(0,V.To)(r),n.maximumFractionDigits=(0,V.To)(r)):n.maximumSignificantDigits=3;let i="celsius"===t?"en-GB":"en-US";return Intl.NumberFormat(i,n).format(e)})(e,t);throw Error(`Unknown unit options ${t}`)}function ea(e){return en[e.unit??"decimal"]}function eo(e){return ea(e).group??"Decimal"}function es(e){return er[ea(e).group??"Decimal"]}function el(e){return"Time"===eo(e)}function eu(e){return"Percent"===eo(e)}function ec(e){return"Decimal"===eo(e)}function ef(e){return"Bytes"===eo(e)}function ed(e){return"Bits"===eo(e)}function ep(e){return!!es(e).decimalPlaces}function em(e){return!!es(e).shortValues}function eg(e){return"Throughput"===eo(e)}function eh(e){return"Currency"===eo(e)}function eb(e){return"Date"===eo(e)}function ey(e){return"Temperature"===eo(e)}},71065:function(e,t,r){function n(e){return!1!==e}function i(e){return"number"==typeof e}function a(e){return e&&(e<0?e=0:e>20&&(e=20)),e}r.d(t,{IU:()=>i,To:()=>a,jb:()=>n})},44394:function(e,t,r){r.d(t,{A:()=>p});var n=r(49257),i=r(68102),a=r(7490),o=r(85967),s=r.n(o),l=r(33477);function u(e,t){var r=Object.create(null);return e&&o.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=t&&(0,o.isValidElement)(e)?t(e):e}),r}function c(e,t,r){return null!=r[t]?r[t]:e.props[t]}var f=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},d=function(e){function t(t,r){var n=e.call(this,t,r)||this,i=n.handleExited.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},n}(0,a.A)(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,i=t.children,a=t.handleExited;return{children:t.firstRender?u(e.children,function(t){return(0,o.cloneElement)(t,{onExited:a.bind(null,t),in:!0,appear:c(t,"appear",e),enter:c(t,"enter",e),exit:c(t,"exit",e)})}):(Object.keys(n=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,i=Object.create(null),a=[];for(var o in e)o in t?a.length&&(i[o]=a,a=[]):a.push(o);var s={};for(var l in t){if(i[l])for(n=0;n<i[l].length;n++){var u=i[l][n];s[i[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<a.length;n++)s[a[n]]=r(a[n]);return s}(i,r=u(e.children))).forEach(function(t){var s=n[t];if((0,o.isValidElement)(s)){var l=t in i,u=t in r,f=i[t],d=(0,o.isValidElement)(f)&&!f.props.in;u&&(!l||d)?n[t]=(0,o.cloneElement)(s,{onExited:a.bind(null,s),in:!0,exit:c(s,"exit",e),enter:c(s,"enter",e)}):u||!l||d?u&&l&&(0,o.isValidElement)(f)&&(n[t]=(0,o.cloneElement)(s,{onExited:a.bind(null,s),in:f.props.in,exit:c(s,"exit",e),enter:c(s,"enter",e)})):n[t]=(0,o.cloneElement)(s,{in:!1})}}),n),firstRender:!1}},r.handleExited=function(e,t){var r=u(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var r=(0,i.A)({},t.children);return delete r[e.key],{children:r}}))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,i=(0,n.A)(e,["component","childFactory"]),a=this.state.contextValue,o=f(this.state.children).map(r);return(delete i.appear,delete i.enter,delete i.exit,null===t)?s().createElement(l.A.Provider,{value:a},o):s().createElement(l.A.Provider,{value:a},s().createElement(t,i,o))},t}(s().Component);d.propTypes={},d.defaultProps={component:"div",childFactory:function(e){return e}};let p=d},33477:function(e,t,r){r.d(t,{A:()=>i});var n=r(85967);let i=r.n(n)().createContext(null)},68102:function(e,t,r){r.d(t,{A:()=>n});function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}},7490:function(e,t,r){function n(e,t){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)}r.d(t,{A:()=>i})},49257:function(e,t,r){r.d(t,{A:()=>n});function n(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}}}]);