"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3648],{55895:function(e,t,r){r.d(t,{Z:function(){return k}});var a=r(67294),o=r(90512),l=r(94780),n=r(77527),i=r(2807),s=r(44001),u=r(30139),c=r(85893),d=(0,u.Z)((0,c.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person"),p=r(1588),v=r(27621);function m(e){return(0,v.ZP)("MuiAvatar",e)}(0,p.Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);var h=r(39583);let b=e=>{let{classes:t,variant:r,colorDefault:a}=e;return(0,l.Z)({root:["root",r,a&&"colorDefault"],img:["img"],fallback:["fallback"]},m,t)},f=(0,n.ZP)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})((0,i.Z)(e=>{let{theme:t}=e;return{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(t.vars||t).palette.background.default,...t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:{backgroundColor:t.palette.grey[400],...t.applyStyles("dark",{backgroundColor:t.palette.grey[600]})}}}]}})),g=(0,n.ZP)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),y=(0,n.ZP)(d,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});var k=a.forwardRef(function(e,t){let r=(0,s.i)({props:e,name:"MuiAvatar"}),{alt:l,children:n,className:i,component:u="div",slots:d={},slotProps:p={},imgProps:v,sizes:m,src:k,srcSet:x,variant:Z="circular",...S}=r,w=null,L=function(e){let{crossOrigin:t,referrerPolicy:r,src:o,srcSet:l}=e,[n,i]=a.useState(!1);return a.useEffect(()=>{if(!o&&!l)return;i(!1);let e=!0,a=new Image;return a.onload=()=>{e&&i("loaded")},a.onerror=()=>{e&&i("error")},a.crossOrigin=t,a.referrerPolicy=r,a.src=o,l&&(a.srcset=l),()=>{e=!1}},[t,r,o,l]),n}({...v,src:k,srcSet:x}),C=k||x,P=C&&"error"!==L,R={...r,colorDefault:!P,component:u,variant:Z};delete R.ownerState;let z=b(R),[A,M]=(0,h.Z)("img",{className:z.img,elementType:g,externalForwardedProps:{slots:d,slotProps:{img:{...v,...p.img}}},additionalProps:{alt:l,src:k,srcSet:x,sizes:m},ownerState:R});return w=P?(0,c.jsx)(A,{...M}):n||0===n?n:C&&l?l[0]:(0,c.jsx)(y,{ownerState:R,className:z.fallback}),(0,c.jsx)(f,{as:u,className:(0,o.Z)(z.root,i),ref:t,...S,ownerState:R,children:w})})},90193:function(e,t,r){let a;r.d(t,{ZP:function(){return Q}});var o=r(67294),l=r(90512),n=r(94780),i=r(51171),s=r(82056),u=r(82963),c=r(82690),d=r(19032),p=r(7610),v=r(33703),m=r(64),h=r(73546),b=r(59948),f=r(40375),g=r(99113),y=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(e,t)=>e===t;return e.length===t.length&&e.every((e,a)=>r(e,t[a]))};function k(e,t){return e-t}function x(e,t){var r;let{index:a}=null!==(r=e.reduce((e,r,a)=>{let o=Math.abs(t-r);return null===e||o<e.distance||o===e.distance?{distance:o,index:a}:e},null))&&void 0!==r?r:{};return a}function Z(e,t){if(void 0!==t.current&&e.changedTouches){for(let r=0;r<e.changedTouches.length;r+=1){let a=e.changedTouches[r];if(a.identifier===t.current)return{x:a.clientX,y:a.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function S(e){let{values:t,newValue:r,index:a}=e,o=t.slice();return o[a]=r,o.sort(k)}function w(e){var t,r,a;let{sliderRef:o,activeIndex:l,setActive:n}=e,i=(0,c.Z)(o.current);(null===(t=o.current)||void 0===t?void 0:t.contains(i.activeElement))&&Number(null==i?void 0:null===(r=i.activeElement)||void 0===r?void 0:r.getAttribute("data-index"))===l||null===(a=o.current)||void 0===a||a.querySelector('[type="range"][data-index="'.concat(l,'"]')).focus(),n&&n(l)}function L(e,t){return"number"==typeof e&&"number"==typeof t?e===t:"object"==typeof e&&"object"==typeof t&&y(e,t)}let C={horizontal:{offset:e=>({left:"".concat(e,"%")}),leap:e=>({width:"".concat(e,"%")})},"horizontal-reverse":{offset:e=>({right:"".concat(e,"%")}),leap:e=>({width:"".concat(e,"%")})},vertical:{offset:e=>({bottom:"".concat(e,"%")}),leap:e=>({height:"".concat(e,"%")})}},P=e=>e;function R(){return void 0===a&&("undefined"!=typeof CSS&&"function"==typeof CSS.supports?a=CSS.supports("touch-action","none"):a=!0),a}var z=r(80182),A=r(77527),M=r(2807),j=r(44001),N=r(43094),T=e=>!e||!(0,z.Z)(e),E=r(66643),F=r(95369),I=r(1588),O=r(27621);function D(e){return(0,O.ZP)("MuiSlider",e)}let Y=(0,I.Z)("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);var V=r(85893);let _=e=>{let{open:t}=e;return{offset:(0,l.Z)(t&&Y.valueLabelOpen),circle:Y.valueLabelCircle,label:Y.valueLabelLabel}};function q(e){return e}let B=(0,A.ZP)("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t["color".concat((0,E.Z)(r.color))],"medium"!==r.size&&t["size".concat((0,E.Z)(r.size))],r.marked&&t.marked,"vertical"===r.orientation&&t.vertical,"inverted"===r.track&&t.trackInverted,!1===r.track&&t.trackFalse]}})((0,M.Z)(e=>{let{theme:t}=e;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},["&.".concat(Y.disabled)]:{pointerEvents:"none",cursor:"default",color:(t.vars||t).palette.grey[400]},["&.".concat(Y.dragging)]:{["& .".concat(Y.thumb,", & .").concat(Y.track)]:{transition:"none"}},variants:[...Object.entries(t.palette).filter((0,F.Z)()).map(e=>{let[r]=e;return{props:{color:r},style:{color:(t.vars||t).palette[r].main}}}),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}})),W=(0,A.ZP)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),X=(0,A.ZP)("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((0,M.Z)(e=>{let{theme:t}=e;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(t.palette).filter((0,F.Z)()).map(e=>{let[r]=e;return{props:{color:r,track:"inverted"},style:{...t.vars?{backgroundColor:t.vars.palette.Slider["".concat(r,"Track")],borderColor:t.vars.palette.Slider["".concat(r,"Track")]}:{backgroundColor:(0,i.$n)(t.palette[r].main,.62),borderColor:(0,i.$n)(t.palette[r].main,.62),...t.applyStyles("dark",{backgroundColor:(0,i._j)(t.palette[r].main,.5)}),...t.applyStyles("dark",{borderColor:(0,i._j)(t.palette[r].main,.5)})}}}})]}})),K=(0,A.ZP)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.thumb,t["thumbColor".concat((0,E.Z)(r.color))],"medium"!==r.size&&t["thumbSize".concat((0,E.Z)(r.size))]]}})((0,M.Z)(e=>{let{theme:t}=e;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow","left","bottom"],{duration:t.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(t.vars||t).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},["&.".concat(Y.disabled)]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(t.palette).filter((0,F.Z)()).map(e=>{let[r]=e;return{props:{color:r},style:{["&:hover, &.".concat(Y.focusVisible)]:{...t.vars?{boxShadow:"0px 0px 0px 8px rgba(".concat(t.vars.palette[r].mainChannel," / 0.16)")}:{boxShadow:"0px 0px 0px 8px ".concat((0,i.Fq)(t.palette[r].main,.16))},"@media (hover: none)":{boxShadow:"none"}},["&.".concat(Y.active)]:{...t.vars?{boxShadow:"0px 0px 0px 14px rgba(".concat(t.vars.palette[r].mainChannel," / 0.16)")}:{boxShadow:"0px 0px 0px 14px ".concat((0,i.Fq)(t.palette[r].main,.16))}}}}})]}})),H=(0,A.ZP)(function(e){let{children:t,className:r,value:a}=e,n=_(e);return t?o.cloneElement(t,{className:(0,l.Z)(t.props.className)},(0,V.jsxs)(o.Fragment,{children:[t.props.children,(0,V.jsx)("span",{className:(0,l.Z)(n.offset,r),"aria-hidden":!0,children:(0,V.jsx)("span",{className:n.circle,children:(0,V.jsx)("span",{className:n.label,children:a})})})]})):null},{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((0,M.Z)(e=>{let{theme:t}=e;return{zIndex:1,whiteSpace:"nowrap",...t.typography.body2,fontWeight:500,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),position:"absolute",backgroundColor:(t.vars||t).palette.grey[600],borderRadius:2,color:(t.vars||t).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},["&.".concat(Y.valueLabelOpen)]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},["&.".concat(Y.valueLabelOpen)]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:t.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}})),U=(0,A.ZP)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>(0,N.Z)(e)&&"markActive"!==e,overridesResolver:(e,t)=>{let{markActive:r}=e;return[t.mark,r&&t.markActive]}})((0,M.Z)(e=>{let{theme:t}=e;return{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8}}]}})),$=(0,A.ZP)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>(0,N.Z)(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((0,M.Z)(e=>{let{theme:t}=e;return{...t.typography.body2,color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(t.vars||t).palette.text.primary}}]}})),G=e=>{let{disabled:t,dragging:r,marked:a,orientation:o,track:l,classes:i,color:s,size:u}=e,c={root:["root",t&&"disabled",r&&"dragging",a&&"marked","vertical"===o&&"vertical","inverted"===l&&"trackInverted",!1===l&&"trackFalse",s&&"color".concat((0,E.Z)(s)),u&&"size".concat((0,E.Z)(u))],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",u&&"thumbSize".concat((0,E.Z)(u)),s&&"thumbColor".concat((0,E.Z)(s))],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,n.Z)(c,D,i)},J=e=>{let{children:t}=e;return t};var Q=o.forwardRef(function(e,t){var r,a,n,i,y,A,M,N,E,F,I,O,D,Y,_,Q,ee,et,er,ea,eo,el,en,ei;let es=(0,j.i)({props:e,name:"MuiSlider"}),eu=(0,s.V)(),{"aria-label":ec,"aria-valuetext":ed,"aria-labelledby":ep,component:ev="span",components:em={},componentsProps:eh={},color:eb="primary",classes:ef,className:eg,disableSwap:ey=!1,disabled:ek=!1,getAriaLabel:ex,getAriaValueText:eZ,marks:eS=!1,max:ew=100,min:eL=0,name:eC,onChange:eP,onChangeCommitted:eR,orientation:ez="horizontal",shiftStep:eA=10,size:eM="medium",step:ej=1,scale:eN=q,slotProps:eT,slots:eE,tabIndex:eF,track:eI="normal",value:eO,valueLabelDisplay:eD="off",valueLabelFormat:eY=q,...eV}=es,e_={...es,isRtl:eu,max:ew,min:eL,classes:ef,disabled:ek,disableSwap:ey,orientation:ez,marks:eS,color:eb,size:eM,step:ej,shiftStep:eA,scale:eN,track:eI,valueLabelDisplay:eD,valueLabelFormat:eY},{axisProps:eq,getRootProps:eB,getHiddenInputProps:eW,getThumbProps:eX,open:eK,active:eH,axis:eU,focusedThumbIndex:e$,range:eG,dragging:eJ,marks:eQ,values:e0,trackOffset:e1,trackLeap:e5,getThumbStyle:e2}=function(e){let{"aria-labelledby":t,defaultValue:r,disabled:a=!1,disableSwap:l=!1,isRtl:n=!1,marks:i=!1,max:s=100,min:u=0,name:y,onChange:z,onChangeCommitted:A,orientation:M="horizontal",rootRef:j,scale:N=P,step:T=1,shiftStep:E=10,tabIndex:F,value:I}=e,O=o.useRef(void 0),[D,Y]=o.useState(-1),[V,_]=o.useState(-1),[q,B]=o.useState(!1),W=o.useRef(0),[X,K]=(0,d.Z)({controlled:I,default:null!=r?r:u,name:"Slider"}),H=z&&((e,t,r)=>{let a=e.nativeEvent||e,o=new a.constructor(a.type,a);Object.defineProperty(o,"target",{writable:!0,value:{value:t,name:y}}),z(o,t,r)}),U=Array.isArray(X),$=U?X.slice().sort(k):[X];$=$.map(e=>null==e?u:(0,p.Z)(e,u,s));let G=!0===i&&null!==T?[...Array(Math.floor((s-u)/T)+1)].map((e,t)=>({value:u+T*t})):i||[],J=G.map(e=>e.value),[Q,ee]=o.useState(-1),et=o.useRef(null),er=(0,v.Z)(j,et),ea=e=>t=>{var r;let a=Number(t.currentTarget.getAttribute("data-index"));(0,m.Z)(t.target)&&ee(a),_(a),null==e||null===(r=e.onFocus)||void 0===r||r.call(e,t)},eo=e=>t=>{var r;(0,m.Z)(t.target)||ee(-1),_(-1),null==e||null===(r=e.onBlur)||void 0===r||r.call(e,t)},el=(e,t)=>{let r=Number(e.currentTarget.getAttribute("data-index")),a=$[r],o=J.indexOf(a),n=t;if(G&&null==T){let e=J[J.length-1];n=n>e?e:n<J[0]?J[0]:n<a?J[o-1]:J[o+1]}if(n=(0,p.Z)(n,u,s),U){l&&(n=(0,p.Z)(n,$[r-1]||-1/0,$[r+1]||1/0));let e=n;n=S({values:$,newValue:n,index:r});let t=r;l||(t=n.indexOf(e)),w({sliderRef:et,activeIndex:t})}K(n),ee(r),H&&!L(n,X)&&H(e,n,r),A&&A(e,n)},en=e=>t=>{var r;if(null!==T){let e=$[Number(t.currentTarget.getAttribute("data-index"))],r=null;("ArrowLeft"===t.key||"ArrowDown"===t.key)&&t.shiftKey||"PageDown"===t.key?r=Math.max(e-E,u):(("ArrowRight"===t.key||"ArrowUp"===t.key)&&t.shiftKey||"PageUp"===t.key)&&(r=Math.min(e+E,s)),null!==r&&(el(t,r),t.preventDefault())}null==e||null===(r=e.onKeyDown)||void 0===r||r.call(e,t)};(0,h.Z)(()=>{if(a&&et.current.contains(document.activeElement)){var e;null===(e=document.activeElement)||void 0===e||e.blur()}},[a]),a&&-1!==D&&Y(-1),a&&-1!==Q&&ee(-1);let ei=e=>t=>{var r;null===(r=e.onChange)||void 0===r||r.call(e,t),el(t,t.target.valueAsNumber)},es=o.useRef(void 0),eu=M;n&&"horizontal"===M&&(eu+="-reverse");let ec=e=>{let t,r,{finger:a,move:o=!1}=e,{current:n}=et,{width:i,height:c,bottom:d,left:v}=n.getBoundingClientRect();if(t=eu.startsWith("vertical")?(d-a.y)/c:(a.x-v)/i,eu.includes("-reverse")&&(t=1-t),r=(s-u)*t+u,T)r=Number((Math.round((r-u)/T)*T+u).toFixed(function(e){if(1>Math.abs(e)){let t=e.toExponential().split("e-"),r=t[0].split(".")[1];return(r?r.length:0)+parseInt(t[1],10)}let t=e.toString().split(".")[1];return t?t.length:0}(T)));else{let e=x(J,r);r=J[e]}r=(0,p.Z)(r,u,s);let m=0;if(U){m=o?es.current:x($,r),l&&(r=(0,p.Z)(r,$[m-1]||-1/0,$[m+1]||1/0));let e=r;r=S({values:$,newValue:r,index:m}),l&&o||(m=r.indexOf(e),es.current=m)}return{newValue:r,activeIndex:m}},ed=(0,b.Z)(e=>{let t=Z(e,O);if(!t)return;if(W.current+=1,"mousemove"===e.type&&0===e.buttons){ep(e);return}let{newValue:r,activeIndex:a}=ec({finger:t,move:!0});w({sliderRef:et,activeIndex:a,setActive:Y}),K(r),!q&&W.current>2&&B(!0),H&&!L(r,X)&&H(e,r,a)}),ep=(0,b.Z)(e=>{let t=Z(e,O);if(B(!1),!t)return;let{newValue:r}=ec({finger:t,move:!0});Y(-1),"touchend"===e.type&&_(-1),A&&A(e,r),O.current=void 0,em()}),ev=(0,b.Z)(e=>{if(a)return;R()||e.preventDefault();let t=e.changedTouches[0];null!=t&&(O.current=t.identifier);let r=Z(e,O);if(!1!==r){let{newValue:t,activeIndex:a}=ec({finger:r});w({sliderRef:et,activeIndex:a,setActive:Y}),K(t),H&&!L(t,X)&&H(e,t,a)}W.current=0;let o=(0,c.Z)(et.current);o.addEventListener("touchmove",ed,{passive:!0}),o.addEventListener("touchend",ep,{passive:!0})}),em=o.useCallback(()=>{let e=(0,c.Z)(et.current);e.removeEventListener("mousemove",ed),e.removeEventListener("mouseup",ep),e.removeEventListener("touchmove",ed),e.removeEventListener("touchend",ep)},[ep,ed]);o.useEffect(()=>{let{current:e}=et;return e.addEventListener("touchstart",ev,{passive:R()}),()=>{e.removeEventListener("touchstart",ev),em()}},[em,ev]),o.useEffect(()=>{a&&em()},[a,em]);let eh=e=>t=>{var r;if(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),a||t.defaultPrevented||0!==t.button)return;t.preventDefault();let o=Z(t,O);if(!1!==o){let{newValue:e,activeIndex:r}=ec({finger:o});w({sliderRef:et,activeIndex:r,setActive:Y}),K(e),H&&!L(e,X)&&H(t,e,r)}W.current=0;let l=(0,c.Z)(et.current);l.addEventListener("mousemove",ed,{passive:!0}),l.addEventListener("mouseup",ep)},eb=((U?$[0]:u)-u)*100/(s-u),ef=($[$.length-1]-u)*100/(s-u)-eb,eg=e=>t=>{var r;null===(r=e.onMouseOver)||void 0===r||r.call(e,t),_(Number(t.currentTarget.getAttribute("data-index")))},ey=e=>t=>{var r;null===(r=e.onMouseLeave)||void 0===r||r.call(e,t),_(-1)};return{active:D,axis:eu,axisProps:C,dragging:q,focusedThumbIndex:Q,getHiddenInputProps:function(){var r;let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=(0,g.Z)(o),i={onChange:ei(l||{}),onFocus:ea(l||{}),onBlur:eo(l||{}),onKeyDown:en(l||{})},c={...l,...i};return{tabIndex:F,"aria-labelledby":t,"aria-orientation":M,"aria-valuemax":N(s),"aria-valuemin":N(u),name:y,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!==(r=e.step)&&void 0!==r?r:void 0,disabled:a,...o,...c,style:{...f.Z,direction:n?"rtl":"ltr",width:"100%",height:"100%"}}},getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,g.Z)(e),r={onMouseDown:eh(t||{})},a={...t,...r};return{...e,ref:er,...a}},getThumbProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,g.Z)(e),r={onMouseOver:eg(t||{}),onMouseLeave:ey(t||{})};return{...e,...t,...r}},marks:G,open:V,range:U,rootRef:er,trackLeap:ef,trackOffset:eb,values:$,getThumbStyle:e=>({pointerEvents:-1!==D&&D!==e?"none":void 0})}}({...e_,rootRef:t});e_.marked=eQ.length>0&&eQ.some(e=>e.label),e_.dragging=eJ,e_.focusedThumbIndex=e$;let e4=G(e_),e8=null!==(a=null!==(r=null==eE?void 0:eE.root)&&void 0!==r?r:em.Root)&&void 0!==a?a:B,e3=null!==(i=null!==(n=null==eE?void 0:eE.rail)&&void 0!==n?n:em.Rail)&&void 0!==i?i:W,e6=null!==(A=null!==(y=null==eE?void 0:eE.track)&&void 0!==y?y:em.Track)&&void 0!==A?A:X,e7=null!==(N=null!==(M=null==eE?void 0:eE.thumb)&&void 0!==M?M:em.Thumb)&&void 0!==N?N:K,e9=null!==(F=null!==(E=null==eE?void 0:eE.valueLabel)&&void 0!==E?E:em.ValueLabel)&&void 0!==F?F:H,te=null!==(O=null!==(I=null==eE?void 0:eE.mark)&&void 0!==I?I:em.Mark)&&void 0!==O?O:U,tt=null!==(Y=null!==(D=null==eE?void 0:eE.markLabel)&&void 0!==D?D:em.MarkLabel)&&void 0!==Y?Y:$,tr=null!==(Q=null!==(_=null==eE?void 0:eE.input)&&void 0!==_?_:em.Input)&&void 0!==Q?Q:"input",ta=null!==(ee=null==eT?void 0:eT.root)&&void 0!==ee?ee:eh.root,to=null!==(et=null==eT?void 0:eT.rail)&&void 0!==et?et:eh.rail,tl=null!==(er=null==eT?void 0:eT.track)&&void 0!==er?er:eh.track,tn=null!==(ea=null==eT?void 0:eT.thumb)&&void 0!==ea?ea:eh.thumb,ti=null!==(eo=null==eT?void 0:eT.valueLabel)&&void 0!==eo?eo:eh.valueLabel,ts=null!==(el=null==eT?void 0:eT.mark)&&void 0!==el?el:eh.mark,tu=null!==(en=null==eT?void 0:eT.markLabel)&&void 0!==en?en:eh.markLabel,tc=null!==(ei=null==eT?void 0:eT.input)&&void 0!==ei?ei:eh.input,td=(0,u.Z)({elementType:e8,getSlotProps:eB,externalSlotProps:ta,externalForwardedProps:eV,additionalProps:{...T(e8)&&{as:ev}},ownerState:{...e_,...null==ta?void 0:ta.ownerState},className:[e4.root,eg]}),tp=(0,u.Z)({elementType:e3,externalSlotProps:to,ownerState:e_,className:e4.rail}),tv=(0,u.Z)({elementType:e6,externalSlotProps:tl,additionalProps:{style:{...eq[eU].offset(e1),...eq[eU].leap(e5)}},ownerState:{...e_,...null==tl?void 0:tl.ownerState},className:e4.track}),tm=(0,u.Z)({elementType:e7,getSlotProps:eX,externalSlotProps:tn,ownerState:{...e_,...null==tn?void 0:tn.ownerState},className:e4.thumb}),th=(0,u.Z)({elementType:e9,externalSlotProps:ti,ownerState:{...e_,...null==ti?void 0:ti.ownerState},className:e4.valueLabel}),tb=(0,u.Z)({elementType:te,externalSlotProps:ts,ownerState:e_,className:e4.mark}),tf=(0,u.Z)({elementType:tt,externalSlotProps:tu,ownerState:e_,className:e4.markLabel}),tg=(0,u.Z)({elementType:tr,getSlotProps:eW,externalSlotProps:tc,ownerState:e_});return(0,V.jsxs)(e8,{...td,children:[(0,V.jsx)(e3,{...tp}),(0,V.jsx)(e6,{...tv}),eQ.filter(e=>e.value>=eL&&e.value<=ew).map((e,t)=>{let r;let a=(e.value-eL)*100/(ew-eL),n=eq[eU].offset(a);return r=!1===eI?e0.includes(e.value):"normal"===eI&&(eG?e.value>=e0[0]&&e.value<=e0[e0.length-1]:e.value<=e0[0])||"inverted"===eI&&(eG?e.value<=e0[0]||e.value>=e0[e0.length-1]:e.value>=e0[0]),(0,V.jsxs)(o.Fragment,{children:[(0,V.jsx)(te,{"data-index":t,...tb,...!(0,z.Z)(te)&&{markActive:r},style:{...n,...tb.style},className:(0,l.Z)(tb.className,r&&e4.markActive)}),null!=e.label?(0,V.jsx)(tt,{"aria-hidden":!0,"data-index":t,...tf,...!(0,z.Z)(tt)&&{markLabelActive:r},style:{...n,...tf.style},className:(0,l.Z)(e4.markLabel,tf.className,r&&e4.markLabelActive),children:e.label}):null]},t)}),e0.map((e,t)=>{let r=(e-eL)*100/(ew-eL),a=eq[eU].offset(r),o="off"===eD?J:e9;return(0,V.jsx)(o,{...!(0,z.Z)(o)&&{valueLabelFormat:eY,valueLabelDisplay:eD,value:"function"==typeof eY?eY(eN(e),t):eY,index:t,open:eK===t||eH===t||"on"===eD,disabled:ek},...th,children:(0,V.jsx)(e7,{"data-index":t,...tm,className:(0,l.Z)(e4.thumb,tm.className,eH===t&&e4.active,e$===t&&e4.focusVisible),style:{...a,...e2(t),...tm.style},children:(0,V.jsx)(tr,{"data-index":t,"aria-label":ex?ex(t):ec,"aria-valuenow":eN(e),"aria-labelledby":ep,"aria-valuetext":eZ?eZ(eN(e),t):ed,value:e0[t],...tg})})},t)})]})})}}]);