Local modifications to ClusterLabs/Anvil by Alteeve
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
24 KiB

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[485],{1184:function(e,t,n){n.d(t,{ZP:function(){return ne},TW:function(){return K}});var r=n(3366),a=n(7462),o=n(7294),i=n(6010),l=n(6087),s=n(8979);function u(e){return(0,s.Z)("MuiSlider",e)}var c=(0,l.Z)("MuiSlider",["root","active","focusVisible","disabled","dragging","marked","vertical","trackInverted","trackFalse","rail","track","mark","markActive","markLabel","markLabelActive","thumb","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel"]),d=n(5893);var b=function(e){const{children:t,className:n,value:r,theme:a}=e,l=(e=>{const{open:t}=e;return{offset:(0,i.Z)(t&&c.valueLabelOpen),circle:c.valueLabelCircle,label:c.valueLabelLabel}})(e);return o.cloneElement(t,{className:(0,i.Z)(t.props.className)},(0,d.jsxs)(o.Fragment,{children:[t.props.children,(0,d.jsx)("span",{className:(0,i.Z)(l.offset,n),theme:a,"aria-hidden":!0,children:(0,d.jsx)("span",{className:l.circle,children:(0,d.jsx)("span",{className:l.label,children:r})})})]}))},m=n(3554),v=n(8442),p=n(7192),f=n(7094),h=n(8925),g=n(9962),Z=n(67),x=n(6600),k=n(3633);var y={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function w(e,t){return e-t}function S(e,t,n){return null==e?t:Math.min(Math.max(t,e),n)}function L(e,t){var n;const{index:r}=null!=(n=e.reduce(((e,n,r)=>{const a=Math.abs(t-n);return null===e||a<e.distance||a===e.distance?{distance:a,index:r}:e}),null))?n:{};return r}function P(e,t){if(void 0!==t.current&&e.changedTouches){const n=e;for(let e=0;e<n.changedTouches.length;e+=1){const r=n.changedTouches[e];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function R(e,t,n){return 100*(e-t)/(n-t)}function B(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(function(e){if(Math.abs(e)<1){const t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}(t)))}function M({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(w)}function z({sliderRef:e,activeIndex:t,setActive:n}){var r,a;const o=(0,f.Z)(e.current);var i;null!=(r=e.current)&&r.contains(o.activeElement)&&Number(null==o||null==(a=o.activeElement)?void 0:a.getAttribute("data-index"))===t||(null==(i=e.current)||i.querySelector(`[type="range"][data-index="${t}"]`).focus());n&&n(t)}const O={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},C=e=>e;let A;function j(){return void 0===A&&(A="undefined"===typeof CSS||"function"!==typeof CSS.supports||CSS.supports("touch-action","none")),A}function E(e){const{ref:t,"aria-labelledby":n,defaultValue:r,disableSwap:i=!1,disabled:l=!1,marks:s=!1,max:u=100,min:c=0,name:d,onChange:b,onChangeCommitted:m,orientation:v="horizontal",scale:p=C,step:A=1,tabIndex:E,value:T,isRtl:$=!1}=e,I=o.useRef(),[N,V]=o.useState(-1),[F,D]=o.useState(-1),[Y,G]=o.useState(!1),_=o.useRef(0),[U,X]=(0,h.Z)({controlled:T,default:null!=r?r:c,name:"Slider"}),K=b&&((e,t,n)=>{const r=e.nativeEvent||e,a=new r.constructor(r.type,r);Object.defineProperty(a,"target",{writable:!0,value:{value:t,name:d}}),b(a,t,n)}),q=Array.isArray(U);let H=q?U.slice().sort(w):[U];H=H.map((e=>S(e,c,u)));const W=!0===s&&null!==A?[...Array(Math.floor((u-c)/A)+1)].map(((e,t)=>({value:c+A*t}))):s||[],J=W.map((e=>e.value)),{isFocusVisibleRef:Q,onBlur:ee,onFocus:te,ref:ne}=(0,g.Z)(),[re,ae]=o.useState(-1),oe=o.useRef(),ie=(0,Z.Z)(ne,oe),le=(0,Z.Z)(t,ie),se=e=>t=>{var n;const r=Number(t.currentTarget.getAttribute("data-index"));te(t),!0===Q.current&&ae(r),D(r),null==e||null==(n=e.onFocus)||n.call(e,t)},ue=e=>t=>{var n;ee(t),!1===Q.current&&ae(-1),D(-1),null==e||null==(n=e.onBlur)||n.call(e,t)};(0,x.Z)((()=>{var e;l&&oe.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[l]),l&&-1!==N&&V(-1),l&&-1!==re&&ae(-1);const ce=e=>t=>{var n;null==(n=e.onChange)||n.call(e,t);const r=Number(t.currentTarget.getAttribute("data-index")),a=H[r],o=J.indexOf(a);let l=t.target.valueAsNumber;if(W&&null==A&&(l=l<a?J[o-1]:J[o+1]),l=S(l,c,u),W&&null==A){const e=J.indexOf(H[r]);l=l<H[r]?J[e-1]:J[e+1]}if(q){i&&(l=S(l,H[r-1]||-1/0,H[r+1]||1/0));const e=l;l=M({values:H,newValue:l,index:r});let t=r;i||(t=l.indexOf(e)),z({sliderRef:oe,activeIndex:t})}X(l),ae(r),K&&K(t,l,r),m&&m(t,l)},de=o.useRef();let be=v;$&&"horizontal"===v&&(be+="-reverse");const me=({finger:e,move:t=!1,values:n})=>{const{current:r}=oe,{width:a,height:o,bottom:l,left:s}=r.getBoundingClientRect();let d,b;if(d=0===be.indexOf("vertical")?(l-e.y)/o:(e.x-s)/a,-1!==be.indexOf("-reverse")&&(d=1-d),b=function(e,t,n){return(n-t)*e+t}(d,c,u),A)b=B(b,A,c);else{const e=L(J,b);b=J[e]}b=S(b,c,u);let m=0;if(q){m=t?de.current:L(n,b),i&&(b=S(b,n[m-1]||-1/0,n[m+1]||1/0));const e=b;b=M({values:n,newValue:b,index:m}),i&&t||(m=b.indexOf(e),de.current=m)}return{newValue:b,activeIndex:m}},ve=(0,k.Z)((e=>{const t=P(e,I);if(!t)return;if(_.current+=1,"mousemove"===e.type&&0===e.buttons)return void pe(e);const{newValue:n,activeIndex:r}=me({finger:t,move:!0,values:H});z({sliderRef:oe,activeIndex:r,setActive:V}),X(n),!Y&&_.current>2&&G(!0),K&&K(e,n,r)})),pe=(0,k.Z)((e=>{const t=P(e,I);if(G(!1),!t)return;const{newValue:n}=me({finger:t,values:H});V(-1),"touchend"===e.type&&D(-1),m&&m(e,n),I.current=void 0,he()})),fe=(0,k.Z)((e=>{j()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(I.current=t.identifier);const n=P(e,I);if(!1!==n){const{newValue:t,activeIndex:r}=me({finger:n,values:H});z({sliderRef:oe,activeIndex:r,setActive:V}),X(t),K&&K(e,t,r)}_.current=0;const r=(0,f.Z)(oe.current);r.addEventListener("touchmove",ve),r.addEventListener("touchend",pe)})),he=o.useCallback((()=>{const e=(0,f.Z)(oe.current);e.removeEventListener("mousemove",ve),e.removeEventListener("mouseup",pe),e.removeEventListener("touchmove",ve),e.removeEventListener("touchend",pe)}),[pe,ve]);o.useEffect((()=>{const{current:e}=oe;return e.addEventListener("touchstart",fe,{passive:j()}),()=>{e.removeEventListener("touchstart",fe,{passive:j()}),he()}}),[he,fe]),o.useEffect((()=>{l&&he()}),[l,he]);const ge=e=>t=>{var n;if(null==(n=e.onMouseDown)||n.call(e,t),t.defaultPrevented)return;if(0!==t.button)return;t.preventDefault();const r=P(t,I);if(!1!==r){const{newValue:e,activeIndex:n}=me({finger:r,values:H});z({sliderRef:oe,activeIndex:n,setActive:V}),X(e),K&&K(t,e,n)}_.current=0;const a=(0,f.Z)(oe.current);a.addEventListener("mousemove",ve),a.addEventListener("mouseup",pe)},Ze=R(q?H[0]:c,c,u),xe=R(H[H.length-1],c,u)-Ze,ke=e=>t=>{var n;null==(n=e.onMouseOver)||n.call(e,t);const r=Number(t.currentTarget.getAttribute("data-index"));D(r)},ye=e=>t=>{var n;null==(n=e.onMouseLeave)||n.call(e,t),D(-1)};return{axis:be,axisProps:O,getRootProps:e=>{const t={onMouseDown:ge(e||{})},n=(0,a.Z)({},e,t);return(0,a.Z)({ref:le},n)},getHiddenInputProps:t=>{const r={onChange:ce(t||{}),onFocus:se(t||{}),onBlur:ue(t||{})},o=(0,a.Z)({},t,r);return(0,a.Z)({tabIndex:E,"aria-labelledby":n,"aria-orientation":v,"aria-valuemax":p(u),"aria-valuemin":p(c),name:d,type:"range",min:e.min,max:e.max,step:e.step,disabled:l},o,{style:(0,a.Z)({},y,{direction:$?"rtl":"ltr",width:"100%",height:"100%"})})},getThumbProps:e=>{const t={onMouseOver:ke(e||{}),onMouseLeave:ye(e||{})},n=(0,a.Z)({},e,t);return(0,a.Z)({},n)},dragging:Y,marks:W,values:H,active:N,focusVisible:re,open:F,range:q,trackOffset:Ze,trackLeap:xe}}const T=["aria-label","aria-valuetext","className","component","classes","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","scale","step","tabIndex","track","value","valueLabelDisplay","valueLabelFormat","isRtl","components","componentsProps"],$=e=>e,I=({children:e})=>e,N=o.forwardRef((function(e,t){var n,l,s,c,f,h,g;const{"aria-label":Z,"aria-valuetext":x,className:k,component:y,classes:w,disableSwap:S=!1,disabled:L=!1,getAriaLabel:P,getAriaValueText:B,marks:M=!1,max:z=100,min:O=0,onMouseDown:C,orientation:A="horizontal",scale:j=$,step:N=1,track:V="normal",valueLabelDisplay:F="off",valueLabelFormat:D=$,isRtl:Y=!1,components:G={},componentsProps:_={}}=e,U=(0,r.Z)(e,T),X=(0,a.Z)({},e,{mark:M,classes:w,disabled:L,isRtl:Y,max:z,min:O,orientation:A,scale:j,step:N,track:V,valueLabelDisplay:F,valueLabelFormat:D}),{axisProps:K,getRootProps:q,getHiddenInputProps:H,getThumbProps:W,open:J,active:Q,axis:ee,range:te,focusVisible:ne,dragging:re,marks:ae,values:oe,trackOffset:ie,trackLeap:le}=E((0,a.Z)({},X,{ref:t}));X.marked=ae.length>0&&ae.some((e=>e.label)),X.dragging=re;const se=null!=(n=null!=y?y:G.Root)?n:"span",ue=(0,m.Z)(se,(0,a.Z)({},U,_.root),X),ce=null!=(l=G.Rail)?l:"span",de=(0,m.Z)(ce,_.rail,X),be=null!=(s=G.Track)?s:"span",me=(0,m.Z)(be,_.track,X),ve=(0,a.Z)({},K[ee].offset(ie),K[ee].leap(le)),pe=null!=(c=G.Thumb)?c:"span",fe=(0,m.Z)(pe,_.thumb,X),he=null!=(f=G.ValueLabel)?f:b,ge=(0,m.Z)(he,_.valueLabel,X),Ze=null!=(h=G.Mark)?h:"span",xe=(0,m.Z)(Ze,_.mark,X),ke=null!=(g=G.MarkLabel)?g:"span",ye=(0,m.Z)(ke,_.markLabel,X),we=G.Input||"input",Se=(0,m.Z)(we,_.input,X),Le=H(),Pe=(e=>{const{disabled:t,dragging:n,marked:r,orientation:a,track:o,classes:i}=e,l={root:["root",t&&"disabled",n&&"dragging",r&&"marked","vertical"===a&&"vertical","inverted"===o&&"trackInverted",!1===o&&"trackFalse"],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled"],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,p.Z)(l,u,i)})(X);return(0,d.jsxs)(se,(0,a.Z)({},ue,q({onMouseDown:C}),{className:(0,i.Z)(Pe.root,ue.className,k),children:[(0,d.jsx)(ce,(0,a.Z)({},de,{className:(0,i.Z)(Pe.rail,de.className)})),(0,d.jsx)(be,(0,a.Z)({},me,{className:(0,i.Z)(Pe.track,me.className),style:(0,a.Z)({},ve,me.style)})),ae.map(((e,t)=>{const n=R(e.value,O,z),r=K[ee].offset(n);let l;return l=!1===V?-1!==oe.indexOf(e.value):"normal"===V&&(te?e.value>=oe[0]&&e.value<=oe[oe.length-1]:e.value<=oe[0])||"inverted"===V&&(te?e.value<=oe[0]||e.value>=oe[oe.length-1]:e.value>=oe[0]),(0,d.jsxs)(o.Fragment,{children:[(0,d.jsx)(Ze,(0,a.Z)({"data-index":t},xe,!(0,v.Z)(Ze)&&{markActive:l},{style:(0,a.Z)({},r,xe.style),className:(0,i.Z)(Pe.mark,xe.className,l&&Pe.markActive)})),null!=e.label?(0,d.jsx)(ke,(0,a.Z)({"aria-hidden":!0,"data-index":t},ye,!(0,v.Z)(ke)&&{markLabelActive:l},{style:(0,a.Z)({},r,ye.style),className:(0,i.Z)(Pe.markLabel,ye.className,l&&Pe.markLabelActive),children:e.label})):null]},e.value)})),oe.map(((e,t)=>{const n=R(e,O,z),r=K[ee].offset(n),l="off"===F?I:he;return(0,d.jsx)(o.Fragment,{children:(0,d.jsx)(l,(0,a.Z)({},!(0,v.Z)(l)&&{valueLabelFormat:D,valueLabelDisplay:F,value:"function"===typeof D?D(j(e),t):D,index:t,open:J===t||Q===t||"on"===F,disabled:L},ge,{className:(0,i.Z)(Pe.valueLabel,ge.className),children:(0,d.jsx)(pe,(0,a.Z)({"data-index":t},fe,W(),{className:(0,i.Z)(Pe.thumb,fe.className,Q===t&&Pe.active,ne===t&&Pe.focusVisible)},!(0,v.Z)(pe)&&{ownerState:(0,a.Z)({},X,fe.ownerState)},{style:(0,a.Z)({},r,{pointerEvents:S&&Q!==t?"none":void 0},fe.style),children:(0,d.jsx)(we,(0,a.Z)({},Le,{"data-index":t,"aria-label":P?P(t):Z,"aria-valuenow":j(e),"aria-valuetext":B?B(j(e),t):x,value:oe[t]},!(0,v.Z)(we)&&{ownerState:(0,a.Z)({},X,Se.ownerState)},Se,{style:(0,a.Z)({},Le.style,Se.style)}))}))}))},t)}))]}))}));var V=N,F=n(1796),D=n(3616),Y=n(1496),G=n(2734),_=n(6285),U=n(8216);const X=["component","components","componentsProps","color","size"],K=(0,a.Z)({},c,(0,l.Z)("MuiSlider",["colorPrimary","colorSecondary","thumbColorPrimary","thumbColorSecondary","sizeSmall","thumbSizeSmall"])),q=(0,Y.ZP)("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,r=!0===n.marksProp&&null!==n.step?[...Array(Math.floor((n.max-n.min)/n.step)+1)].map(((e,t)=>({value:n.min+n.step*t}))):n.marksProp||[],a=r.length>0&&r.some((e=>e.label));return[t.root,t[`color${(0,U.Z)(n.color)}`],"medium"!==n.size&&t[`size${(0,U.Z)(n.size)}`],a&&t.marked,"vertical"===n.orientation&&t.vertical,"inverted"===n.track&&t.trackInverted,!1===n.track&&t.trackFalse]}})((({theme:e,ownerState:t})=>(0,a.Z)({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:e.palette[t.color].main,WebkitTapHighlightColor:"transparent"},"horizontal"===t.orientation&&(0,a.Z)({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},"small"===t.size&&{height:2},t.marked&&{marginBottom:20}),"vertical"===t.orientation&&(0,a.Z)({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},"small"===t.size&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${K.disabled}`]:{pointerEvents:"none",cursor:"default",color:e.palette.grey[400]},[`&.${K.dragging}`]:{[`& .${K.thumb}, & .${K.track}`]:{transition:"none"}}}))),H=(0,Y.ZP)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})((({ownerState:e})=>(0,a.Z)({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},"horizontal"===e.orientation&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===e.orientation&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},"inverted"===e.track&&{opacity:1}))),W=(0,Y.ZP)("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?(0,F.$n)(e.palette[t.color].main,.62):(0,F._j)(e.palette[t.color].main,.5);return(0,a.Z)({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},"small"===t.size&&{border:"none"},"horizontal"===t.orientation&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===t.orientation&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},!1===t.track&&{display:"none"},"inverted"===t.track&&{backgroundColor:n,borderColor:n})})),J=(0,Y.ZP)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${(0,U.Z)(n.color)}`],"medium"!==n.size&&t[`thumbSize${(0,U.Z)(n.size)}`]]}})((({theme:e,ownerState:t})=>(0,a.Z)({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},"small"===t.size&&{width:12,height:12},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":(0,a.Z)({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:e.shadows[2]},"small"===t.size&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${K.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${(0,F.Fq)(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${K.active}`]:{boxShadow:`0px 0px 0px 14px ${(0,F.Fq)(e.palette[t.color].main,.16)}`},[`&.${K.disabled}`]:{"&:hover":{boxShadow:"none"}}}))),Q=(0,Y.ZP)(b,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((({theme:e,ownerState:t})=>(0,a.Z)({[`&.${K.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),top:-10,transformOrigin:"bottom center",transform:"translateY(-100%) scale(0)",position:"absolute",backgroundColor:e.palette.grey[600],borderRadius:2,color:e.palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},"small"===t.size&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"},{"&:before":{position:"absolute",content:'""',width:8,height:8,bottom:0,left:"50%",transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit"}}))),ee=(0,Y.ZP)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>(0,Y.Dz)(e)&&"markActive"!==e,overridesResolver:(e,t)=>t.mark})((({theme:e,ownerState:t,markActive:n})=>(0,a.Z)({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-1px, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:e.palette.background.paper,opacity:.8}))),te=(0,Y.ZP)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>(0,Y.Dz)(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((({theme:e,ownerState:t,markLabelActive:n})=>(0,a.Z)({},e.typography.body2,{color:e.palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===t.orientation&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},"vertical"===t.orientation&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:e.palette.text.primary})));var ne=o.forwardRef((function(e,t){var n,o,l,s;const c=(0,D.Z)({props:e,name:"MuiSlider"}),b="rtl"===(0,G.Z)().direction,{component:m="span",components:v={},componentsProps:p={},color:f="primary",size:h="medium"}=c,g=(0,r.Z)(c,X),Z=(e=>{const{color:t,size:n,classes:r={}}=e;return(0,a.Z)({},r,{root:(0,i.Z)(r.root,u(`color${(0,U.Z)(t)}`),r[`color${(0,U.Z)(t)}`],n&&[u(`size${(0,U.Z)(n)}`),r[`size${(0,U.Z)(n)}`]]),thumb:(0,i.Z)(r.thumb,u(`thumbColor${(0,U.Z)(t)}`),r[`thumbColor${(0,U.Z)(t)}`],n&&[u(`thumbSize${(0,U.Z)(n)}`),r[`thumbSize${(0,U.Z)(n)}`]])})})((0,a.Z)({},c,{color:f,size:h}));return(0,d.jsx)(V,(0,a.Z)({},g,{isRtl:b,components:(0,a.Z)({Root:q,Rail:H,Track:W,Thumb:J,ValueLabel:Q,Mark:ee,MarkLabel:te},v),componentsProps:(0,a.Z)({},p,{root:(0,a.Z)({},p.root,(0,_.Z)(v.Root)&&{as:m,ownerState:(0,a.Z)({},null==(n=p.root)?void 0:n.ownerState,{color:f,size:h})}),thumb:(0,a.Z)({},p.thumb,(0,_.Z)(v.Thumb)&&{ownerState:(0,a.Z)({},null==(o=p.thumb)?void 0:o.ownerState,{color:f,size:h})}),track:(0,a.Z)({},p.track,(0,_.Z)(v.Track)&&{ownerState:(0,a.Z)({},null==(l=p.track)?void 0:l.ownerState,{color:f,size:h})}),valueLabel:(0,a.Z)({},p.valueLabel,(0,_.Z)(v.ValueLabel)&&{ownerState:(0,a.Z)({},null==(s=p.valueLabel)?void 0:s.ownerState,{color:f,size:h})})}),classes:Z,ref:t}))}))},4490:function(e,t,n){n.d(t,{_d:function(){return h},gO:function(){return f}});var r=function(e,t,n){return Math.max(t,Math.min(e,n))},a={"b-B":8n,"b-kB":8000n,"b-MB":8000000n,"b-GB":8000000000n,"b-TB":8000000000000n,"b-PB":8000000000000000n,"b-EB":8000000000000000000n,"b-ZB":8000000000000000000000n,"b-YB":8000000000000000000000000n,"b-KiB":8192n,"b-MiB":8388608n,"b-GiB":8589934592n,"b-TiB":8796093022208n,"b-PiB":9007199254740992n,"b-EiB":9223372036854775808n,"b-ZiB":9444732965739290427392n,"b-YiB":9671406556917033397649408n,"b-b":1n,"b-kbit":1000n,"b-Mbit":1000000n,"b-Gbit":1000000000n,"b-Tbit":1000000000000n,"b-Pbit":1000000000000000n,"b-Ebit":1000000000000000000n,"b-Zbit":1000000000000000000000n,"b-Ybit":1000000000000000000000000n,"b-Kibit":1024n,"b-Mibit":1048576n,"b-Gibit":1073741824n,"b-Tibit":1099511627776n,"b-Pibit":1125899906842624n,"b-Eibit":1152921504606846976n,"b-Zibit":1180591620717411303424n,"b-Yibit":1208925819614629174706176n},o=["byte","ibyte","bit","ibit"],i=["B","kB","MB","GB","TB","PB","EB","ZB","YB","B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB","b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit","b","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],l=function(e){return BigInt(Math.pow(10,e))},s=function(e,t){var n=e.precision,r=e.value,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.isReverse;if("b"===t)return{precision:n,value:r};var s="b-".concat(t),u=a[s];if(i)return{precision:n,value:r*u};var c=String(u).length,d=l(c),b=r*d/u;return{precision:n+c,value:b}},u=function(e,t,n,r,a,o,i){var l=o.indexOf(n),s=t;l<0&&(l=function(e,t){var n="i"===e[1],r=/B$/.test(e),a="".concat(n?"i":"").concat(r?"byte":"bit"),o=t.findIndex((function(e){return e===a}));return{section:a,index:o}}(t,o).index);for(var u=l*i,c=u+i;u<c;u+=1){var d=a[u];e>=r["b-".concat(d)]?s=d:u=c}return s};function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(s){l=!0,a=s}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var p=function(e){var t=e.precision,n=e.value,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.bigintFormatOptions,o=r.numberFormatOptions,i=r.locale,s=l(t),u=n/s,c=n%s,b="0.",v=m(b,2),p=v[0],f=v[1],h=u.toString(),g=c.toString();if(i){var Z="string"===typeof i?i:void 0,x=.1.toLocaleString(Z,o),k=m(x,2);p=k[0],f=k[1],h=u.toLocaleString(Z,a),g=c.toLocaleString(Z,d(d({},a),{},{useGrouping:!1}))}var y=h;return t>0&&(y+="".concat(f).concat(g.padStart(t,p))),y},f=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.fromUnit,o=void 0===a?"B":a,i=n.locale,l=n.precision,u=n.toUnit;try{t=x(e)}catch(S){return}var c=k(l),d=c.max,b=c.min,m=Z(o,"B"),v=m.unit;t=s(t,v,{isReverse:!0});var f=y(t,v,{toUnit:u});t=s(t,f),t=g(t,{toPrecision:r(t.precision,b,d)}),t=w(t,b);var h=p(t,{locale:i});return{value:h,unit:f}},h=function(){var e=f.apply(void 0,arguments);return e?"".concat(e.value," ").concat(e.unit):e},g=function(e){var t=e.precision,n=e.value,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.toPrecision,o=void 0===a?0:a,i={precision:o,value:n};if(o>t)i.value*=l(o-t);else if(o<t){var s=t-o,u=l(s),c=i.value%u/l(s-1);i.value/=u,c>4&&(i.value+=1n)}return i},Z=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,r=n.indexOf(e);return r<0?{unit:t,unitIndex:0}:{unit:n[r],unitIndex:r}},x=function(e){var t,n,r=String(e).split(/\D/,2),a=null!==(t=null===(n=r[1])||void 0===n?void 0:n.length)&&void 0!==t?t:0,o=r.join("");if(0===o.length)throw Error("Value is blank.");return{value:BigInt(o),precision:a}},k=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"number"===typeof n?{max:n,min:n}:{max:null!==(e=n.max)&&void 0!==e?e:2,min:null!==(t=n.min)&&void 0!==t?t:0}},y=function(e,t){var n=e.precision,r=e.value,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=s.conversionTable,d=void 0===c?a:c,b=s.toUnit,m=s.units,v=void 0===m?i:m,p=s.unitSections,f=void 0===p?o:p,h=s.unitSectionLength,g=void 0===h?9:h,Z=v.indexOf(b);return Z>=0?v[Z]:u(r/l(n),t,b,d,v,f,g)},w=function(e,t){for(var n=e.precision,r={precision:n,value:e.value},a=n-t,o=!0,i=1;o&&i<=a;i+=1){0n===r.value%10n?(r.value/=10n,r.precision-=1):o=!1}return r}}}]);