function j4(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function bd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var p5={exports:{}},wd={},h5={exports:{}},Be={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Bl=Symbol.for("react.element"),N4=Symbol.for("react.portal"),V4=Symbol.for("react.fragment"),z4=Symbol.for("react.strict_mode"),B4=Symbol.for("react.profiler"),W4=Symbol.for("react.provider"),H4=Symbol.for("react.context"),U4=Symbol.for("react.forward_ref"),Y4=Symbol.for("react.suspense"),G4=Symbol.for("react.memo"),K4=Symbol.for("react.lazy"),Og=Symbol.iterator;function q4(e){return e===null||typeof e!="object"?null:(e=Og&&e[Og]||e["@@iterator"],typeof e=="function"?e:null)}var m5={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g5=Object.assign,y5={};function qs(e,t,n){this.props=e,this.context=t,this.refs=y5,this.updater=n||m5}qs.prototype.isReactComponent={};qs.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};qs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function v5(){}v5.prototype=qs.prototype;function c0(e,t,n){this.props=e,this.context=t,this.refs=y5,this.updater=n||m5}var u0=c0.prototype=new v5;u0.constructor=c0;g5(u0,qs.prototype);u0.isPureReactComponent=!0;var Ig=Array.isArray,x5=Object.prototype.hasOwnProperty,d0={current:null},C5={key:!0,ref:!0,__self:!0,__source:!0};function b5(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)x5.call(t,r)&&!C5.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1=0)&&(n[o]=e[o]);return n}function S5(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var mC=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,gC=S5(function(e){return mC.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function yC(e){if(e.sheet)return e.sheet;for(var t=0;t0?Wt(Zs,--Cn):0,Ds--,Ot===10&&(Ds=1,kd--),Ot}function Pn(){return Ot=Cn2||ul(Ot)>3?"":" "}function DC(e,t){for(;--t&&Pn()&&!(Ot<48||Ot>102||Ot>57&&Ot<65||Ot>70&&Ot<97););return Wl(e,nu()+(t<6&&Dr()==32&&Pn()==32))}function Sh(e){for(;Pn();)switch(Ot){case e:return Cn;case 34:case 39:e!==34&&e!==39&&Sh(Ot);break;case 40:e===41&&Sh(e);break;case 92:Pn();break}return Cn}function _C(e,t){for(;Pn()&&e+Ot!==57;)if(e+Ot===84&&Dr()===47)break;return"/*"+Wl(t,Cn-1)+"*"+Sd(e===47?e:Pn())}function OC(e){for(;!ul(Dr());)Pn();return Wl(e,Cn)}function IC(e){return R5(ou("",null,null,null,[""],e=T5(e),0,[0],e))}function ou(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,f=s,p=0,v=0,y=0,g=1,S=1,h=1,m=0,C="",w=o,k=i,P=r,E=C;S;)switch(y=m,m=Pn()){case 40:if(y!=108&&Wt(E,f-1)==58){wh(E+=et(ru(m),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:E+=ru(m);break;case 9:case 10:case 13:case 32:E+=RC(y);break;case 92:E+=DC(nu()-1,7);continue;case 47:switch(Dr()){case 42:case 47:mc($C(_C(Pn(),nu()),t,n),l);break;default:E+="/"}break;case 123*g:a[c++]=wr(E)*h;case 125*g:case 59:case 0:switch(m){case 0:case 125:S=0;case 59+u:h==-1&&(E=et(E,/\f/g,"")),v>0&&wr(E)-f&&mc(v>32?Ag(E+";",r,n,f-1):Ag(et(E," ","")+";",r,n,f-2),l);break;case 59:E+=";";default:if(mc(P=Fg(E,t,n,c,u,o,a,C,w=[],k=[],f),i),m===123)if(u===0)ou(E,t,P,P,w,i,f,a,k);else switch(p===99&&Wt(E,3)===110?100:p){case 100:case 108:case 109:case 115:ou(e,P,P,r&&mc(Fg(e,P,P,0,0,o,a,C,o,w=[],f),k),o,k,f,a,r?w:k);break;default:ou(E,P,P,P,[""],k,0,a,k)}}c=u=v=0,g=h=1,C=E="",f=s;break;case 58:f=1+wr(E),v=y;default:if(g<1){if(m==123)--g;else if(m==125&&g++==0&&TC()==125)continue}switch(E+=Sd(m),m*g){case 38:h=u>0?1:(E+="\f",-1);break;case 44:a[c++]=(wr(E)-1)*h,h=1;break;case 64:Dr()===45&&(E+=ru(Pn())),p=Dr(),u=f=wr(C=E+=OC(nu())),m++;break;case 45:y===45&&wr(E)==2&&(g=0)}}return i}function Fg(e,t,n,r,o,i,s,a,l,c,u){for(var f=o-1,p=o===0?i:[""],v=m0(p),y=0,g=0,S=0;y0?p[h]+" "+m:et(m,/&\f/g,p[h])))&&(l[S++]=C);return Ed(e,t,n,o===0?p0:a,l,c,u)}function $C(e,t,n){return Ed(e,t,n,k5,Sd(MC()),cl(e,2,-2),0)}function Ag(e,t,n,r){return Ed(e,t,n,h0,cl(e,0,r),cl(e,r+1,-1),r)}function ys(e,t){for(var n="",r=m0(e),o=0;o6)switch(Wt(e,t+1)){case 109:if(Wt(e,t+4)!==45)break;case 102:return et(e,/(.+:)(.+)-([^]+)/,"$1"+Qe+"$2-$3$1"+Ru+(Wt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~wh(e,"stretch")?D5(et(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Wt(e,t+1)!==115)break;case 6444:switch(Wt(e,wr(e)-3-(~wh(e,"!important")&&10))){case 107:return et(e,":",":"+Qe)+e;case 101:return et(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Qe+(Wt(e,14)===45?"inline-":"")+"box$3$1"+Qe+"$2$3$1"+qt+"$2box$3")+e}break;case 5936:switch(Wt(e,t+11)){case 114:return Qe+e+qt+et(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Qe+e+qt+et(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Qe+e+qt+et(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Qe+e+qt+e+e}return e}var WC=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case h0:t.return=D5(t.value,t.length);break;case E5:return ys([ca(t,{value:et(t.value,"@","@"+Qe)})],o);case p0:if(t.length)return PC(t.props,function(i){switch(EC(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ys([ca(t,{props:[et(i,/:(read-\w+)/,":"+Ru+"$1")]})],o);case"::placeholder":return ys([ca(t,{props:[et(i,/:(plac\w+)/,":"+Qe+"input-$1")]}),ca(t,{props:[et(i,/:(plac\w+)/,":"+Ru+"$1")]}),ca(t,{props:[et(i,/:(plac\w+)/,qt+"input-$1")]})],o)}return""})}},HC=[WC],UC=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var S=g.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||HC,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var S=g.getAttribute("data-emotion").split(" "),h=1;h=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var rb={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ob=/[A-Z]|^ms/g,ib=/_EMO_([^_]+?)_([^]*?)_EMO_/g,L5=function(t){return t.charCodeAt(1)===45},jg=function(t){return t!=null&&typeof t!="boolean"},mp=S5(function(e){return L5(e)?e:e.replace(ob,"-$&").toLowerCase()}),Ng=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(ib,function(r,o,i){return Sr={name:o,styles:i,next:Sr},o})}return rb[t]!==1&&!L5(t)&&typeof n=="number"&&n!==0?n+"px":n};function dl(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Sr={name:n.name,styles:n.styles,next:Sr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Sr={name:r.name,styles:r.styles,next:Sr},r=r.next;var o=n.styles+";";return o}return sb(e,t,n)}case"function":{if(e!==void 0){var i=Sr,s=n(e);return Sr=i,dl(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function sb(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?ub:db},Wg=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},fb=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return F5(n,r,o),lb(function(){return A5(n,r,o)}),null},pb=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=Wg(t,n,r),l=a||Bg(o),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var p=u.length,v=1;vt(Cb(o)?n:o):t;return d.jsx(cb,{styles:r})}function H5(e,t){return Eh(e,t)}const wb=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function qr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function U5(e){if(!qr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=U5(e[n])}),t}function Xt(e,t,n={clone:!0}){const r=n.clone?b({},e):e;return qr(e)&&qr(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(qr(t[o])&&o in e&&qr(e[o])?r[o]=Xt(e[o],t[o],n):n.clone?r[o]=qr(t[o])?U5(t[o]):t[o]:r[o]=t[o])}),r}const Sb=N.oneOfType([N.func,N.object]),Y5=Sb;function te(e){if(typeof e!="string")throw new Error(zo(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ph(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function G5(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function iu(e,t){var n,r;return x.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Pt(e){return e&&e.ownerDocument||document}function wi(e){return Pt(e).defaultView||window}function Mh(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Lt=typeof window<"u"?x.useLayoutEffect:x.useEffect;let Hg=0;function kb(e){const[t,n]=x.useState(e),r=e||t;return x.useEffect(()=>{t==null&&(Hg+=1,n(`mui-${Hg}`))},[t]),r}const Ug=bh.useId;function ho(e){if(Ug!==void 0){const t=Ug();return e??t}return kb(e)}function bn({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=x.useRef(e!==void 0),[i,s]=x.useState(t),a=o?e:i,l=x.useCallback(c=>{o||s(c)},[]);return[a,l]}function Me(e){const t=x.useRef(e);return Lt(()=>{t.current=e}),x.useRef((...n)=>(0,t.current)(...n)).current}function tt(...e){return x.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Mh(n,t)})},e)}let Ld=!0,Th=!1,Yg;const Eb={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Pb(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Eb[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Mb(e){e.metaKey||e.altKey||e.ctrlKey||(Ld=!0)}function gp(){Ld=!1}function Tb(){this.visibilityState==="hidden"&&Th&&(Ld=!0)}function Rb(e){e.addEventListener("keydown",Mb,!0),e.addEventListener("mousedown",gp,!0),e.addEventListener("pointerdown",gp,!0),e.addEventListener("touchstart",gp,!0),e.addEventListener("visibilitychange",Tb,!0)}function Db(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ld||Pb(t)}function jd(){const e=x.useCallback(o=>{o!=null&&Rb(o.ownerDocument)},[]),t=x.useRef(!1);function n(){return t.current?(Th=!0,window.clearTimeout(Yg),Yg=window.setTimeout(()=>{Th=!1},100),t.current=!1,!0):!1}function r(o){return Db(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function K5(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const _b={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},q5=_b;function C0(e,t){const n=b({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=b({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=b({},i),Object.keys(o).forEach(s=>{n[r][s]=C0(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function De(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const Gg=e=>e,Ob=()=>{let e=Gg;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Gg}}},Ib=Ob(),Z5=Ib,X5={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function _e(e,t,n="Mui"){const r=X5[t];return r?`${n}-${r}`:`${Z5.generate(e)}-${t}`}function Pe(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=_e(e,o,n)}),r}function li(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const $b=["values","unit","step"],Fb=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>b({},n,{[r.key]:r.val}),{})};function Ab(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Q(e,$b),i=Fb(t),s=Object.keys(i);function a(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function c(p,v){const y=s.indexOf(v);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(y!==-1&&typeof t[s[y]]=="number"?t[s[y]]:v)-r/100}${n})`}function u(p){return s.indexOf(p)+1`@media (min-width:${b0[e]}px)`};function hr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Kg;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||Kg;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||b0).indexOf(a)!==-1){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function J5(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Q5(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Nb(e,...t){const n=J5(e),r=[n,...t].reduce((o,i)=>Xt(o,i),{});return Q5(Object.keys(n),r)}function Vb(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function yp({values:e,breakpoints:t,base:n}){const r=n||Vb(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((s,a,l)=>(Array.isArray(e)?(s[a]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[i],i=a):s[a]=e,s),{})}function _s(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Du(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=_s(e,n)||r,t&&(o=t(o,r,e)),o}function Dt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=_s(l,r)||{};return hr(s,a,f=>{let p=Du(c,o,f);return f===p&&typeof f=="string"&&(p=Du(c,o,`${t}${f==="default"?"":te(f)}`,f)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}function zb(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Bb={m:"margin",p:"padding"},Wb={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},qg={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Hb=zb(e=>{if(e.length>2)if(qg[e])e=qg[e];else return[e];const[t,n]=e.split(""),r=Bb[t],o=Wb[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),w0=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],S0=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...w0,...S0];function Ul(e,t,n,r){var o;const i=(o=_s(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function k0(e){return Ul(e,"spacing",8)}function Si(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function Ub(e,t){return n=>e.reduce((r,o)=>(r[o]=Si(t,n),r),{})}function Yb(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=Hb(n),i=Ub(o,r),s=e[n];return hr(e,s,i)}function e8(e,t){const n=k0(e.theme);return Object.keys(e).map(r=>Yb(e,t,r,n)).reduce(za,{})}function wt(e){return e8(e,w0)}wt.propTypes={};wt.filterProps=w0;function St(e){return e8(e,S0)}St.propTypes={};St.filterProps=S0;function Gb(e=8){if(e.mui)return e;const t=k0({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Nd(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?za(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Vn(e){return typeof e!="number"?e:`${e}px solid`}function Qn(e,t){return Dt({prop:e,themeKey:"borders",transform:t})}const Kb=Qn("border",Vn),qb=Qn("borderTop",Vn),Zb=Qn("borderRight",Vn),Xb=Qn("borderBottom",Vn),Jb=Qn("borderLeft",Vn),Qb=Qn("borderColor"),e9=Qn("borderTopColor"),t9=Qn("borderRightColor"),n9=Qn("borderBottomColor"),r9=Qn("borderLeftColor"),o9=Qn("outline",Vn),i9=Qn("outlineColor"),Vd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ul(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Si(t,r)});return hr(e,e.borderRadius,n)}return null};Vd.propTypes={};Vd.filterProps=["borderRadius"];Nd(Kb,qb,Zb,Xb,Jb,Qb,e9,t9,n9,r9,Vd,o9,i9);const zd=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ul(e.theme,"spacing",8),n=r=>({gap:Si(t,r)});return hr(e,e.gap,n)}return null};zd.propTypes={};zd.filterProps=["gap"];const Bd=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ul(e.theme,"spacing",8),n=r=>({columnGap:Si(t,r)});return hr(e,e.columnGap,n)}return null};Bd.propTypes={};Bd.filterProps=["columnGap"];const Wd=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ul(e.theme,"spacing",8),n=r=>({rowGap:Si(t,r)});return hr(e,e.rowGap,n)}return null};Wd.propTypes={};Wd.filterProps=["rowGap"];const s9=Dt({prop:"gridColumn"}),a9=Dt({prop:"gridRow"}),l9=Dt({prop:"gridAutoFlow"}),c9=Dt({prop:"gridAutoColumns"}),u9=Dt({prop:"gridAutoRows"}),d9=Dt({prop:"gridTemplateColumns"}),f9=Dt({prop:"gridTemplateRows"}),p9=Dt({prop:"gridTemplateAreas"}),h9=Dt({prop:"gridArea"});Nd(zd,Bd,Wd,s9,a9,l9,c9,u9,d9,f9,p9,h9);function vs(e,t){return t==="grey"?t:e}const m9=Dt({prop:"color",themeKey:"palette",transform:vs}),g9=Dt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:vs}),y9=Dt({prop:"backgroundColor",themeKey:"palette",transform:vs});Nd(m9,g9,y9);function kn(e){return e<=1&&e!==0?`${e*100}%`:e}const v9=Dt({prop:"width",transform:kn}),E0=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||b0[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:kn(n)}};return hr(e,e.maxWidth,t)}return null};E0.filterProps=["maxWidth"];const x9=Dt({prop:"minWidth",transform:kn}),C9=Dt({prop:"height",transform:kn}),b9=Dt({prop:"maxHeight",transform:kn}),w9=Dt({prop:"minHeight",transform:kn});Dt({prop:"size",cssProperty:"width",transform:kn});Dt({prop:"size",cssProperty:"height",transform:kn});const S9=Dt({prop:"boxSizing"});Nd(v9,E0,x9,C9,b9,w9,S9);const k9={border:{themeKey:"borders",transform:Vn},borderTop:{themeKey:"borders",transform:Vn},borderRight:{themeKey:"borders",transform:Vn},borderBottom:{themeKey:"borders",transform:Vn},borderLeft:{themeKey:"borders",transform:Vn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Vn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Vd},color:{themeKey:"palette",transform:vs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:vs},backgroundColor:{themeKey:"palette",transform:vs},p:{style:St},pt:{style:St},pr:{style:St},pb:{style:St},pl:{style:St},px:{style:St},py:{style:St},padding:{style:St},paddingTop:{style:St},paddingRight:{style:St},paddingBottom:{style:St},paddingLeft:{style:St},paddingX:{style:St},paddingY:{style:St},paddingInline:{style:St},paddingInlineStart:{style:St},paddingInlineEnd:{style:St},paddingBlock:{style:St},paddingBlockStart:{style:St},paddingBlockEnd:{style:St},m:{style:wt},mt:{style:wt},mr:{style:wt},mb:{style:wt},ml:{style:wt},mx:{style:wt},my:{style:wt},margin:{style:wt},marginTop:{style:wt},marginRight:{style:wt},marginBottom:{style:wt},marginLeft:{style:wt},marginX:{style:wt},marginY:{style:wt},marginInline:{style:wt},marginInlineStart:{style:wt},marginInlineEnd:{style:wt},marginBlock:{style:wt},marginBlockStart:{style:wt},marginBlockEnd:{style:wt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:zd},rowGap:{style:Wd},columnGap:{style:Bd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:kn},maxWidth:{style:E0},minWidth:{transform:kn},height:{transform:kn},maxHeight:{transform:kn},minHeight:{transform:kn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Hd=k9;function E9(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function P9(e,t){return typeof e=="function"?e(t):e}function M9(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=_s(o,c)||{};return f?f(s):hr(s,r,y=>{let g=Du(p,u,y);return y===g&&typeof y=="string"&&(g=Du(p,u,`${n}${y==="default"?"":te(y)}`,y)),l===!1?g:{[l]:g}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:Hd;function a(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const u=J5(i.breakpoints),f=Object.keys(u);let p=u;return Object.keys(c).forEach(v=>{const y=P9(c[v],i);if(y!=null)if(typeof y=="object")if(s[v])p=za(p,e(v,y,i,s));else{const g=hr({theme:i},y,S=>({[v]:S}));E9(g,y)?p[v]=t({sx:y,theme:i}):p=za(p,g)}else p=za(p,e(v,y,i,s))}),Q5(f,p)}return Array.isArray(o)?o.map(a):a(o)}return t}const Yl=M9();Yl.filterProps=["sx"];const T9=["breakpoints","palette","spacing","shape"];function Ud(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=Q(e,T9),a=Ab(n),l=Gb(o);let c=Xt({breakpoints:a,direction:"ltr",components:{},palette:b({mode:"light"},r),spacing:l,shape:b({},jb,i)},s);return c=t.reduce((u,f)=>Xt(u,f),c),c.unstable_sxConfig=b({},Hd,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(f){return Yl({sx:f,theme:this})},c}function R9(e){return Object.keys(e).length===0}function Yd(e=null){const t=x.useContext(Ad);return!t||R9(t)?e:t}const D9=Ud();function Xs(e=D9){return Yd(e)}function _9({styles:e,themeId:t,defaultTheme:n={}}){const r=Xs(n),o=typeof e=="function"?e(t&&r[t]||r):e;return d.jsx(bb,{styles:o})}const O9=["sx"],I9=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Hd;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function P0(e){const{sx:t}=e,n=Q(e,O9),{systemProps:r,otherProps:o}=I9(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return qr(a)?b({},r,a):r}:i=b({},r,t),b({},o,{sx:i})}function t8(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ta!=="theme"&&a!=="sx"&&a!=="as"})(Yl);return x.forwardRef(function(l,c){const u=Xs(n),f=P0(l),{className:p,component:v="div"}=f,y=Q(f,$9);return d.jsx(i,b({as:v,ref:c,className:le(p,o?o(r):r),theme:t&&u[t]||u},y))})}const A9=["variant"];function Zg(e){return e.length===0}function n8(e){const{variant:t}=e,n=Q(e,A9);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=Zg(r)?e[o]:te(e[o]):r+=`${Zg(r)?o:te(o)}${te(e[o].toString())}`}),r}const L9=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function j9(e){return Object.keys(e).length===0}function N9(e){return typeof e=="string"&&e.charCodeAt(0)>96}const V9=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,_u=e=>{let t=0;const n={};return e&&e.forEach(r=>{let o="";typeof r.props=="function"?(o=`callback${t}`,t+=1):o=n8(r.props),n[o]=r.style}),n},z9=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),_u(n)},Ou=(e,t,n)=>{const{ownerState:r={}}=e,o=[];let i=0;return n&&n.forEach(s=>{let a=!0;if(typeof s.props=="function"){const l=b({},e,r);a=s.props(l)}else Object.keys(s.props).forEach(l=>{r[l]!==s.props[l]&&e[l]!==s.props[l]&&(a=!1)});a&&(typeof s.props=="function"?o.push(t[`callback${i}`]):o.push(t[n8(s.props)])),typeof s.props=="function"&&(i+=1)}),o},B9=(e,t,n,r)=>{var o;const i=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return Ou(e,t,i)};function Ba(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const W9=Ud(),H9=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function su({defaultTheme:e,theme:t,themeId:n}){return j9(t)?e:t[n]||t}function U9(e){return e?(t,n)=>n[e]:null}const Xg=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(b({},t,{theme:su(b({},t,{defaultTheme:n,themeId:r}))}));let i;if(o&&o.variants&&(i=o.variants,delete o.variants),i){const s=Ou(t,_u(i),i);return[o,...s]}return o};function r8(e={}){const{themeId:t,defaultTheme:n=W9,rootShouldForwardProp:r=Ba,slotShouldForwardProp:o=Ba}=e,i=s=>Yl(b({},s,{theme:su(b({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{wb(s,w=>w.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:f,overridesResolver:p=U9(H9(c))}=a,v=Q(a,L9),y=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,g=f||!1;let S,h=Ba;c==="Root"||c==="root"?h=r:c?h=o:N9(s)&&(h=void 0);const m=H5(s,b({shouldForwardProp:h,label:S},v)),C=(w,...k)=>{const P=k?k.map(R=>{if(typeof R=="function"&&R.__emotion_real!==R)return O=>Xg({styledArg:R,props:O,defaultTheme:n,themeId:t});if(qr(R)){let O=R,A;return R&&R.variants&&(A=R.variants,delete O.variants,O=$=>{let D=R;return Ou($,_u(A),A).forEach(L=>{D=Xt(D,L)}),D}),O}return R}):[];let E=w;if(qr(w)){let R;w&&w.variants&&(R=w.variants,delete E.variants,E=O=>{let A=w;return Ou(O,_u(R),R).forEach(D=>{A=Xt(A,D)}),A})}else typeof w=="function"&&w.__emotion_real!==w&&(E=R=>Xg({styledArg:w,props:R,defaultTheme:n,themeId:t}));l&&p&&P.push(R=>{const O=su(b({},R,{defaultTheme:n,themeId:t})),A=V9(l,O);if(A){const $={};return Object.entries(A).forEach(([D,_])=>{$[D]=typeof _=="function"?_(b({},R,{theme:O})):_}),p(R,$)}return null}),l&&!y&&P.push(R=>{const O=su(b({},R,{defaultTheme:n,themeId:t}));return B9(R,z9(l,O),O,l)}),g||P.push(i);const M=P.length-k.length;if(Array.isArray(w)&&M>0){const R=new Array(M).fill("");E=[...w,...R],E.raw=[...w.raw,...R]}const T=m(E,...P);return s.muiName&&(T.muiName=s.muiName),T};return m.withConfig&&(C.withConfig=m.withConfig),C}}const Y9=r8();function o8(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:C0(t.components[n].defaultProps,r)}function i8({props:e,name:t,defaultTheme:n,themeId:r}){let o=Xs(n);return r&&(o=o[r]||o),o8({theme:o,name:t,props:e})}function M0(e,t=0,n=1){return li(e,t,n)}function G9(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function ki(e){if(e.type)return e;if(e.charAt(0)==="#")return ki(G9(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(zo(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(zo(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function Gd(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function K9(e){e=ki(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),Gd({type:a,values:l})}function Jg(e){e=ki(e);let t=e.type==="hsl"||e.type==="hsla"?ki(K9(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function q9(e,t){const n=Jg(e),r=Jg(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ne(e,t){return e=ki(e),t=M0(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Gd(e)}function s8(e,t){if(e=ki(e),t=M0(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Gd(e)}function a8(e,t){if(e=ki(e),t=M0(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Gd(e)}const Z9=x.createContext(null),l8=Z9;function c8(){return x.useContext(l8)}const X9=typeof Symbol=="function"&&Symbol.for,J9=X9?Symbol.for("mui.nested"):"__THEME_NESTED__";function Q9(e,t){return typeof t=="function"?t(e):b({},e,t)}function ew(e){const{children:t,theme:n}=e,r=c8(),o=x.useMemo(()=>{const i=r===null?n:Q9(r,n);return i!=null&&(i[J9]=r!==null),i},[n,r]);return d.jsx(l8.Provider,{value:o,children:t})}const Qg={};function e2(e,t,n,r=!1){return x.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),s=e?b({},t,{[e]:i}):i;return r?()=>s:s}return e?b({},t,{[e]:n}):b({},t,n)},[e,t,n,r])}function tw(e){const{children:t,theme:n,themeId:r}=e,o=Yd(Qg),i=c8()||Qg,s=e2(r,o,n),a=e2(r,i,n,!0);return d.jsx(ew,{theme:a,children:d.jsx(Ad.Provider,{value:s,children:t})})}const nw=["component","direction","spacing","divider","children","className","useFlexGap"],rw=Ud(),ow=Y9("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function iw(e){return i8({props:e,name:"MuiStack",defaultTheme:rw})}function sw(e,t){const n=x.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],lw=({ownerState:e,theme:t})=>{let n=b({display:"flex",flexDirection:"column"},hr({theme:t},yp({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=k0(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=yp({values:e.direction,base:o}),s=yp({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const p=c>0?i[u[c-1]]:"column";i[l]=p}}),n=Xt(n,hr({theme:t},s,(l,c)=>e.useFlexGap?{gap:Si(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${aw(c?i[c]:e.direction)}`]:Si(r,l)}}))}return n=Nb(t.breakpoints,n),n};function cw(e={}){const{createStyledComponent:t=ow,useThemeProps:n=iw,componentName:r="MuiStack"}=e,o=()=>De({root:["root"]},l=>_e(r,l),{}),i=t(lw);return x.forwardRef(function(l,c){const u=n(l),f=P0(u),{component:p="div",direction:v="column",spacing:y=0,divider:g,children:S,className:h,useFlexGap:m=!1}=f,C=Q(f,nw),w={direction:v,spacing:y,useFlexGap:m},k=o();return d.jsx(i,b({as:p,ownerState:w,ref:c,className:le(k.root,h)},C,{children:g?sw(S,g):S}))})}function uw(e,t){return b({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const dw=["mode","contrastThreshold","tonalOffset"],t2={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ll.white,default:ll.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},vp={text:{primary:ll.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ll.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function n2(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=a8(e.main,o):t==="dark"&&(e.dark=s8(e.main,i)))}function fw(e="light"){return e==="dark"?{main:Wi[200],light:Wi[50],dark:Wi[400]}:{main:Wi[700],light:Wi[400],dark:Wi[800]}}function pw(e="light"){return e==="dark"?{main:Bi[200],light:Bi[50],dark:Bi[400]}:{main:Bi[500],light:Bi[300],dark:Bi[700]}}function hw(e="light"){return e==="dark"?{main:zi[500],light:zi[300],dark:zi[700]}:{main:zi[700],light:zi[400],dark:zi[800]}}function mw(e="light"){return e==="dark"?{main:Hi[400],light:Hi[300],dark:Hi[700]}:{main:Hi[700],light:Hi[500],dark:Hi[900]}}function gw(e="light"){return e==="dark"?{main:Ui[400],light:Ui[300],dark:Ui[700]}:{main:Ui[800],light:Ui[500],dark:Ui[900]}}function yw(e="light"){return e==="dark"?{main:la[400],light:la[300],dark:la[700]}:{main:"#ed6c02",light:la[500],dark:la[900]}}function vw(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Q(e,dw),i=e.primary||fw(t),s=e.secondary||pw(t),a=e.error||hw(t),l=e.info||mw(t),c=e.success||gw(t),u=e.warning||yw(t);function f(g){return q9(g,vp.text.primary)>=n?vp.text.primary:t2.text.primary}const p=({color:g,name:S,mainShade:h=500,lightShade:m=300,darkShade:C=700})=>{if(g=b({},g),!g.main&&g[h]&&(g.main=g[h]),!g.hasOwnProperty("main"))throw new Error(zo(11,S?` (${S})`:"",h));if(typeof g.main!="string")throw new Error(zo(12,S?` (${S})`:"",JSON.stringify(g.main)));return n2(g,"light",m,r),n2(g,"dark",C,r),g.contrastText||(g.contrastText=f(g.main)),g},v={dark:vp,light:t2};return Xt(b({common:b({},ll),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:hC,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},v[t]),o)}const xw=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Cw(e){return Math.round(e*1e5)/1e5}const r2={textTransform:"uppercase"},o2='"Roboto", "Helvetica", "Arial", sans-serif';function bw(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=o2,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:f}=n,p=Q(n,xw),v=o/14,y=f||(h=>`${h/c*v}rem`),g=(h,m,C,w,k)=>b({fontFamily:r,fontWeight:h,fontSize:y(m),lineHeight:C},r===o2?{letterSpacing:`${Cw(w/m)}em`}:{},k,u),S={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(a,14,1.75,.4,r2),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,r2),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Xt(b({htmlFontSize:c,pxToRem:y,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},S),p,{clone:!1})}const ww=.2,Sw=.14,kw=.12;function mt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${ww})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Sw})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${kw})`].join(",")}const Ew=["none",mt(0,2,1,-1,0,1,1,0,0,1,3,0),mt(0,3,1,-2,0,2,2,0,0,1,5,0),mt(0,3,3,-2,0,3,4,0,0,1,8,0),mt(0,2,4,-1,0,4,5,0,0,1,10,0),mt(0,3,5,-1,0,5,8,0,0,1,14,0),mt(0,3,5,-1,0,6,10,0,0,1,18,0),mt(0,4,5,-2,0,7,10,1,0,2,16,1),mt(0,5,5,-3,0,8,10,1,0,3,14,2),mt(0,5,6,-3,0,9,12,1,0,3,16,2),mt(0,6,6,-3,0,10,14,1,0,4,18,3),mt(0,6,7,-4,0,11,15,1,0,4,20,3),mt(0,7,8,-4,0,12,17,2,0,5,22,4),mt(0,7,8,-4,0,13,19,2,0,5,24,4),mt(0,7,9,-4,0,14,21,2,0,5,26,4),mt(0,8,9,-5,0,15,22,2,0,6,28,5),mt(0,8,10,-5,0,16,24,2,0,6,30,5),mt(0,8,11,-5,0,17,26,2,0,6,32,5),mt(0,9,11,-5,0,18,28,2,0,7,34,6),mt(0,9,12,-6,0,19,29,2,0,7,36,6),mt(0,10,13,-6,0,20,31,3,0,8,38,7),mt(0,10,13,-6,0,21,33,3,0,8,40,7),mt(0,10,14,-6,0,22,35,3,0,8,42,7),mt(0,11,14,-7,0,23,36,3,0,9,44,8),mt(0,11,15,-7,0,24,38,3,0,9,46,8)],Pw=["duration","easing","delay"],Mw={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Tw={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function i2(e){return`${Math.round(e)}ms`}function Rw(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Dw(e){const t=b({},Mw,e.easing),n=b({},Tw,e.duration);return b({getAutoHeightDuration:Rw,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=i;return Q(i,Pw),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof s=="string"?s:i2(s)} ${a} ${typeof l=="string"?l:i2(l)}`).join(",")}},e,{easing:t,duration:n})}const _w={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ow=_w,Iw=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function tn(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=Q(e,Iw);if(e.vars)throw new Error(zo(18));const a=vw(r),l=Ud(e);let c=Xt(l,{mixins:uw(l.breakpoints,n),palette:a,shadows:Ew.slice(),typography:bw(a,i),transitions:Dw(o),zIndex:b({},Ow)});return c=Xt(c,s),c=t.reduce((u,f)=>Xt(u,f),c),c.unstable_sxConfig=b({},Hd,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(f){return Yl({sx:f,theme:this})},c}function $w(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Fw(e){return parseFloat(e)}const Aw=tn(),Kd=Aw;function Le(){const e=Xs(Kd);return e[bi]||e}function Te({props:e,name:t}){return i8({props:e,name:t,defaultTheme:Kd,themeId:bi})}const nn=e=>Ba(e)&&e!=="classes",qd=Ba,H=r8({themeId:bi,defaultTheme:Kd,rootShouldForwardProp:nn}),Lw=["theme"];function u8(e){let{theme:t}=e,n=Q(e,Lw);const r=t[bi];return d.jsx(tw,b({},n,{themeId:r?bi:void 0,theme:r||t}))}const s2=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function jw(e){return _e("MuiSvgIcon",e)}Pe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Nw=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Vw=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${te(t)}`,`fontSize${te(n)}`]};return De(o,jw,r)},zw=H("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${te(n.color)}`],t[`fontSize${te(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,a,l,c,u,f,p,v,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(s=i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),Rh=x.forwardRef(function(t,n){const r=Te({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,v=Q(r,Nw),y=x.isValidElement(o)&&o.type==="svg",g=b({},r,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:y}),S={};u||(S.viewBox=p);const h=Vw(g);return d.jsxs(zw,b({as:a,className:le(h.root,i),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},S,v,y&&o.props,{ownerState:g,children:[y?o.props.children:o,f?d.jsx("title",{children:f}):null]}))});Rh.muiName="SvgIcon";function Yt(e,t){function n(r,o){return d.jsx(Rh,b({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=Rh.muiName,x.memo(x.forwardRef(n))}var it={};/** * @license React * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var T0=Symbol.for("react.element"),R0=Symbol.for("react.portal"),Zd=Symbol.for("react.fragment"),Xd=Symbol.for("react.strict_mode"),Jd=Symbol.for("react.profiler"),Qd=Symbol.for("react.provider"),ef=Symbol.for("react.context"),Bw=Symbol.for("react.server_context"),tf=Symbol.for("react.forward_ref"),nf=Symbol.for("react.suspense"),rf=Symbol.for("react.suspense_list"),of=Symbol.for("react.memo"),sf=Symbol.for("react.lazy"),Ww=Symbol.for("react.offscreen"),d8;d8=Symbol.for("react.module.reference");function er(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case T0:switch(e=e.type,e){case Zd:case Jd:case Xd:case nf:case rf:return e;default:switch(e=e&&e.$$typeof,e){case Bw:case ef:case tf:case sf:case of:case Qd:return e;default:return t}}case R0:return t}}}it.ContextConsumer=ef;it.ContextProvider=Qd;it.Element=T0;it.ForwardRef=tf;it.Fragment=Zd;it.Lazy=sf;it.Memo=of;it.Portal=R0;it.Profiler=Jd;it.StrictMode=Xd;it.Suspense=nf;it.SuspenseList=rf;it.isAsyncMode=function(){return!1};it.isConcurrentMode=function(){return!1};it.isContextConsumer=function(e){return er(e)===ef};it.isContextProvider=function(e){return er(e)===Qd};it.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===T0};it.isForwardRef=function(e){return er(e)===tf};it.isFragment=function(e){return er(e)===Zd};it.isLazy=function(e){return er(e)===sf};it.isMemo=function(e){return er(e)===of};it.isPortal=function(e){return er(e)===R0};it.isProfiler=function(e){return er(e)===Jd};it.isStrictMode=function(e){return er(e)===Xd};it.isSuspense=function(e){return er(e)===nf};it.isSuspenseList=function(e){return er(e)===rf};it.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Zd||e===Jd||e===Xd||e===nf||e===rf||e===Ww||typeof e=="object"&&e!==null&&(e.$$typeof===sf||e.$$typeof===of||e.$$typeof===Qd||e.$$typeof===ef||e.$$typeof===tf||e.$$typeof===d8||e.getModuleId!==void 0)};it.typeOf=er;function Dh(e,t){return Dh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Dh(e,t)}function D0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Dh(e,t)}function Hw(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Uw(e,t){e.classList?e.classList.add(t):Hw(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function a2(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Yw(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=a2(e.className,t):e.setAttribute("class",a2(e.className&&e.className.baseVal||"",t))}var f8={exports:{}},$n={},p8={exports:{}},h8={};/** * @license React * scheduler.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */(function(e){function t(I,F){var z=I.length;I.push(F);e:for(;0>>1,re=I[ae];if(0>>1;aeo(ne,z))peo(Y,ne)?(I[ae]=Y,I[pe]=z,ae=pe):(I[ae]=ne,I[W]=z,ae=W);else if(peo(Y,z))I[ae]=Y,I[pe]=z,ae=pe;else break e}}return F}function o(I,F){var z=I.sortIndex-F.sortIndex;return z!==0?z:I.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,f=null,p=3,v=!1,y=!1,g=!1,S=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(I){for(var F=n(c);F!==null;){if(F.callback===null)r(c);else if(F.startTime<=I)r(c),F.sortIndex=F.expirationTime,t(l,F);else break;F=n(c)}}function w(I){if(g=!1,C(I),!y)if(n(l)!==null)y=!0,L(k);else{var F=n(c);F!==null&&V(w,F.startTime-I)}}function k(I,F){y=!1,g&&(g=!1,h(M),M=-1),v=!0;var z=p;try{for(C(F),f=n(l);f!==null&&(!(f.expirationTime>F)||I&&!O());){var ae=f.callback;if(typeof ae=="function"){f.callback=null,p=f.priorityLevel;var re=ae(f.expirationTime<=F);F=e.unstable_now(),typeof re=="function"?f.callback=re:f===n(l)&&r(l),C(F)}else r(l);f=n(l)}if(f!==null)var de=!0;else{var W=n(c);W!==null&&V(w,W.startTime-F),de=!1}return de}finally{f=null,p=z,v=!1}}var P=!1,E=null,M=-1,T=5,R=-1;function O(){return!(e.unstable_now()-RI||125ae?(I.sortIndex=z,t(c,I),n(l)===null&&I===n(c)&&(g?(h(M),M=-1):g=!0,V(w,z-ae))):(I.sortIndex=re,t(l,I),y||v||(y=!0,L(k))),I},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(I){var F=p;return function(){var z=p;p=F;try{return I.apply(this,arguments)}finally{p=z}}}})(h8);p8.exports=h8;var Gw=p8.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var m8=x,Tn=Gw;function oe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_h=Object.prototype.hasOwnProperty,Kw=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,l2={},c2={};function qw(e){return _h.call(c2,e)?!0:_h.call(l2,e)?!1:Kw.test(e)?c2[e]=!0:(l2[e]=!0,!1)}function Zw(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Xw(e,t,n,r){if(t===null||typeof t>"u"||Zw(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ln(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Ut={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ut[e]=new ln(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ut[t]=new ln(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ut[e]=new ln(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ut[e]=new ln(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ut[e]=new ln(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ut[e]=new ln(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ut[e]=new ln(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ut[e]=new ln(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ut[e]=new ln(e,5,!1,e.toLowerCase(),null,!1,!1)});var _0=/[\-:]([a-z])/g;function O0(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(_0,O0);Ut[t]=new ln(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(_0,O0);Ut[t]=new ln(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(_0,O0);Ut[t]=new ln(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ut[e]=new ln(e,1,!1,e.toLowerCase(),null,!1,!1)});Ut.xlinkHref=new ln("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ut[e]=new ln(e,1,!1,e.toLowerCase(),null,!0,!0)});function I0(e,t,n,r){var o=Ut.hasOwnProperty(t)?Ut[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` `+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Cp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Fa(e):""}function Jw(e){switch(e.tag){case 5:return Fa(e.type);case 16:return Fa("Lazy");case 13:return Fa("Suspense");case 19:return Fa("SuspenseList");case 0:case 2:case 15:return e=bp(e.type,!1),e;case 11:return e=bp(e.type.render,!1),e;case 1:return e=bp(e.type,!0),e;default:return""}}function Fh(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case rs:return"Fragment";case ns:return"Portal";case Oh:return"Profiler";case $0:return"StrictMode";case Ih:return"Suspense";case $h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case v8:return(e.displayName||"Context")+".Consumer";case y8:return(e._context.displayName||"Context")+".Provider";case F0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case A0:return t=e.displayName||null,t!==null?t:Fh(e.type)||"Memo";case So:t=e._payload,e=e._init;try{return Fh(e(t))}catch{}}return null}function Qw(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Fh(t);case 8:return t===$0?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Bo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function C8(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function eS(e){var t=C8(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yc(e){e._valueTracker||(e._valueTracker=eS(e))}function b8(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=C8(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Iu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ah(e,t){var n=t.checked;return Ct({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function d2(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Bo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function w8(e,t){t=t.checked,t!=null&&I0(e,"checked",t,!1)}function Lh(e,t){w8(e,t);var n=Bo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?jh(e,t.type,n):t.hasOwnProperty("defaultValue")&&jh(e,t.type,Bo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function f2(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function jh(e,t,n){(t!=="number"||Iu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Aa=Array.isArray;function xs(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=vc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function pl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Wa={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tS=["Webkit","ms","Moz","O"];Object.keys(Wa).forEach(function(e){tS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Wa[t]=Wa[e]})});function P8(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Wa.hasOwnProperty(e)&&Wa[e]?(""+t).trim():t+"px"}function M8(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=P8(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var nS=Ct({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function zh(e,t){if(t){if(nS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(oe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(oe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(oe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(oe(62))}}function Bh(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Wh=null;function L0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hh=null,Cs=null,bs=null;function m2(e){if(e=ql(e)){if(typeof Hh!="function")throw Error(oe(280));var t=e.stateNode;t&&(t=df(t),Hh(e.stateNode,e.type,t))}}function T8(e){Cs?bs?bs.push(e):bs=[e]:Cs=e}function R8(){if(Cs){var e=Cs,t=bs;if(bs=Cs=null,m2(e),t)for(e=0;e>>=0,e===0?32:31-(pS(e)/hS|0)|0}var xc=64,Cc=4194304;function La(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Lu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=La(a):(i&=s,i!==0&&(r=La(i)))}else s=n&~o,s!==0?r=La(s):i!==0&&(r=La(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Gl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-fr(t),e[t]=n}function vS(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ua),k2=" ",E2=!1;function q8(e,t){switch(e){case"keyup":return YS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Z8(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var os=!1;function KS(e,t){switch(e){case"compositionend":return Z8(t);case"keypress":return t.which!==32?null:(E2=!0,k2);case"textInput":return e=t.data,e===k2&&E2?null:e;default:return null}}function qS(e,t){if(os)return e==="compositionend"||!U0&&q8(e,t)?(e=G8(),lu=B0=Mo=null,os=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=R2(n)}}function e3(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?e3(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function t3(){for(var e=window,t=Iu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Iu(e.document)}return t}function Y0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function ok(e){var t=t3(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&e3(n.ownerDocument.documentElement,n)){if(r!==null&&Y0(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=D2(n,i);var s=D2(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,is=null,Zh=null,Ga=null,Xh=!1;function _2(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Xh||is==null||is!==Iu(r)||(r=is,"selectionStart"in r&&Y0(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ga&&xl(Ga,r)||(Ga=r,r=Vu(Zh,"onSelect"),0ls||(e.current=r1[ls],r1[ls]=null,ls--)}function lt(e,t){ls++,r1[ls]=e.current,e.current=t}var Wo={},en=Yo(Wo),hn=Yo(!1),Ei=Wo;function Is(e,t){var n=e.type.contextTypes;if(!n)return Wo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function mn(e){return e=e.childContextTypes,e!=null}function Bu(){ft(hn),ft(en)}function j2(e,t,n){if(en.current!==Wo)throw Error(oe(168));lt(en,t),lt(hn,n)}function u3(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(oe(108,Qw(e)||"Unknown",o));return Ct({},n,r)}function Wu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wo,Ei=en.current,lt(en,e),lt(hn,hn.current),!0}function N2(e,t,n){var r=e.stateNode;if(!r)throw Error(oe(169));n?(e=u3(e,t,Ei),r.__reactInternalMemoizedMergedChildContext=e,ft(hn),ft(en),lt(en,e)):ft(hn),lt(hn,n)}var Kr=null,ff=!1,Fp=!1;function d3(e){Kr===null?Kr=[e]:Kr.push(e)}function gk(e){ff=!0,d3(e)}function Go(){if(!Fp&&Kr!==null){Fp=!0;var e=0,t=nt;try{var n=Kr;for(nt=1;e>=s,o-=s,Xr=1<<32-fr(t)+o|n<M?(T=E,E=null):T=E.sibling;var R=p(h,E,C[M],w);if(R===null){E===null&&(E=T);break}e&&E&&R.alternate===null&&t(h,E),m=i(R,m,M),P===null?k=R:P.sibling=R,P=R,E=T}if(M===C.length)return n(h,E),yt&&ni(h,M),k;if(E===null){for(;MM?(T=E,E=null):T=E.sibling;var O=p(h,E,R.value,w);if(O===null){E===null&&(E=T);break}e&&E&&O.alternate===null&&t(h,E),m=i(O,m,M),P===null?k=O:P.sibling=O,P=O,E=T}if(R.done)return n(h,E),yt&&ni(h,M),k;if(E===null){for(;!R.done;M++,R=C.next())R=f(h,R.value,w),R!==null&&(m=i(R,m,M),P===null?k=R:P.sibling=R,P=R);return yt&&ni(h,M),k}for(E=r(h,E);!R.done;M++,R=C.next())R=v(E,h,M,R.value,w),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?M:R.key),m=i(R,m,M),P===null?k=R:P.sibling=R,P=R);return e&&E.forEach(function(A){return t(h,A)}),yt&&ni(h,M),k}function S(h,m,C,w){if(typeof C=="object"&&C!==null&&C.type===rs&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case gc:e:{for(var k=C.key,P=m;P!==null;){if(P.key===k){if(k=C.type,k===rs){if(P.tag===7){n(h,P.sibling),m=o(P,C.props.children),m.return=h,h=m;break e}}else if(P.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===So&&Y2(k)===P.type){n(h,P.sibling),m=o(P,C.props),m.ref=ma(h,P,C),m.return=h,h=m;break e}n(h,P);break}else t(h,P);P=P.sibling}C.type===rs?(m=gi(C.props.children,h.mode,w,C.key),m.return=h,h=m):(w=gu(C.type,C.key,C.props,null,h.mode,w),w.ref=ma(h,m,C),w.return=h,h=w)}return s(h);case ns:e:{for(P=C.key;m!==null;){if(m.key===P)if(m.tag===4&&m.stateNode.containerInfo===C.containerInfo&&m.stateNode.implementation===C.implementation){n(h,m.sibling),m=o(m,C.children||[]),m.return=h,h=m;break e}else{n(h,m);break}else t(h,m);m=m.sibling}m=Wp(C,h.mode,w),m.return=h,h=m}return s(h);case So:return P=C._init,S(h,m,P(C._payload),w)}if(Aa(C))return y(h,m,C,w);if(ua(C))return g(h,m,C,w);Mc(h,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,m!==null&&m.tag===6?(n(h,m.sibling),m=o(m,C),m.return=h,h=m):(n(h,m),m=Bp(C,h.mode,w),m.return=h,h=m),s(h)):n(h,m)}return S}var Fs=x3(!0),C3=x3(!1),Zl={},Or=Yo(Zl),Sl=Yo(Zl),kl=Yo(Zl);function fi(e){if(e===Zl)throw Error(oe(174));return e}function tm(e,t){switch(lt(kl,t),lt(Sl,e),lt(Or,Zl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Vh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Vh(t,e)}ft(Or),lt(Or,t)}function As(){ft(Or),ft(Sl),ft(kl)}function b3(e){fi(kl.current);var t=fi(Or.current),n=Vh(t,e.type);t!==n&&(lt(Sl,e),lt(Or,n))}function nm(e){Sl.current===e&&(ft(Or),ft(Sl))}var vt=Yo(0);function qu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ap=[];function rm(){for(var e=0;en?n:4,e(!0);var r=Lp.transition;Lp.transition={};try{e(!1),t()}finally{nt=n,Lp.transition=r}}function L3(){return qn().memoizedState}function Ck(e,t,n){var r=jo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},j3(e))N3(t,n);else if(n=m3(e,t,n,r),n!==null){var o=sn();pr(n,e,r,o),V3(n,t,r)}}function bk(e,t,n){var r=jo(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(j3(e))N3(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,mr(a,s)){var l=t.interleaved;l===null?(o.next=o,Q0(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=m3(e,t,o,r),n!==null&&(o=sn(),pr(n,e,r,o),V3(n,t,r))}}function j3(e){var t=e.alternate;return e===xt||t!==null&&t===xt}function N3(e,t){Ka=Zu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function V3(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,N0(e,n)}}var Xu={readContext:Kn,useCallback:Gt,useContext:Gt,useEffect:Gt,useImperativeHandle:Gt,useInsertionEffect:Gt,useLayoutEffect:Gt,useMemo:Gt,useReducer:Gt,useRef:Gt,useState:Gt,useDebugValue:Gt,useDeferredValue:Gt,useTransition:Gt,useMutableSource:Gt,useSyncExternalStore:Gt,useId:Gt,unstable_isNewReconciler:!1},wk={readContext:Kn,useCallback:function(e,t){return br().memoizedState=[e,t===void 0?null:t],e},useContext:Kn,useEffect:K2,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,fu(4194308,4,O3.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fu(4194308,4,e,t)},useInsertionEffect:function(e,t){return fu(4,2,e,t)},useMemo:function(e,t){var n=br();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=br();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ck.bind(null,xt,e),[r.memoizedState,e]},useRef:function(e){var t=br();return e={current:e},t.memoizedState=e},useState:G2,useDebugValue:lm,useDeferredValue:function(e){return br().memoizedState=e},useTransition:function(){var e=G2(!1),t=e[0];return e=xk.bind(null,e[1]),br().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=xt,o=br();if(yt){if(n===void 0)throw Error(oe(407));n=n()}else{if(n=t(),Nt===null)throw Error(oe(349));Mi&30||k3(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,K2(P3.bind(null,r,i,e),[e]),r.flags|=2048,Ml(9,E3.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=br(),t=Nt.identifierPrefix;if(yt){var n=Jr,r=Xr;n=(r&~(1<<32-fr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=El++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Er]=t,e[wl]=r,q3(e,t,!1,!1),t.stateNode=e;e:{switch(s=Bh(n,r),n){case"dialog":dt("cancel",e),dt("close",e),o=r;break;case"iframe":case"object":case"embed":dt("load",e),o=r;break;case"video":case"audio":for(o=0;ojs&&(t.flags|=128,r=!0,ga(i,!1),t.lanes=4194304)}else{if(!r)if(e=qu(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ga(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!yt)return Kt(t),null}else 2*Tt()-i.renderingStartTime>js&&n!==1073741824&&(t.flags|=128,r=!0,ga(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Tt(),t.sibling=null,n=vt.current,lt(vt,r?n&1|2:n&1),t):(Kt(t),null);case 22:case 23:return hm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Sn&1073741824&&(Kt(t),t.subtreeFlags&6&&(t.flags|=8192)):Kt(t),null;case 24:return null;case 25:return null}throw Error(oe(156,t.tag))}function Dk(e,t){switch(K0(t),t.tag){case 1:return mn(t.type)&&Bu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return As(),ft(hn),ft(en),rm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return nm(t),null;case 13:if(ft(vt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(oe(340));$s()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ft(vt),null;case 4:return As(),null;case 10:return J0(t.type._context),null;case 22:case 23:return hm(),null;case 24:return null;default:return null}}var Rc=!1,Zt=!1,_k=typeof WeakSet=="function"?WeakSet:Set,be=null;function fs(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){kt(e,t,r)}else n.current=null}function m1(e,t,n){try{n()}catch(r){kt(e,t,r)}}var ry=!1;function Ok(e,t){if(Jh=ju,e=t3(),Y0(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,u=0,f=e,p=null;t:for(;;){for(var v;f!==n||o!==0&&f.nodeType!==3||(a=s+o),f!==i||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(v=f.firstChild)!==null;)p=f,f=v;for(;;){if(f===e)break t;if(p===n&&++c===o&&(a=s),p===i&&++u===r&&(l=s),(v=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=v}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qh={focusedElem:e,selectionRange:n},ju=!1,be=t;be!==null;)if(t=be,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,be=e;else for(;be!==null;){t=be;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var g=y.memoizedProps,S=y.memoizedState,h=t.stateNode,m=h.getSnapshotBeforeUpdate(t.elementType===t.type?g:sr(t.type,g),S);h.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(oe(163))}}catch(w){kt(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,be=e;break}be=t.return}return y=ry,ry=!1,y}function qa(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&m1(t,n,i)}o=o.next}while(o!==r)}}function mf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function g1(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function J3(e){var t=e.alternate;t!==null&&(e.alternate=null,J3(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Er],delete t[wl],delete t[n1],delete t[hk],delete t[mk])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Q3(e){return e.tag===5||e.tag===3||e.tag===4}function oy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Q3(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function y1(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=zu));else if(r!==4&&(e=e.child,e!==null))for(y1(e,t,n),e=e.sibling;e!==null;)y1(e,t,n),e=e.sibling}function v1(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(v1(e,t,n),e=e.sibling;e!==null;)v1(e,t,n),e=e.sibling}var Bt=null,ar=!1;function Co(e,t,n){for(n=n.child;n!==null;)e6(e,t,n),n=n.sibling}function e6(e,t,n){if(_r&&typeof _r.onCommitFiberUnmount=="function")try{_r.onCommitFiberUnmount(af,n)}catch{}switch(n.tag){case 5:Zt||fs(n,t);case 6:var r=Bt,o=ar;Bt=null,Co(e,t,n),Bt=r,ar=o,Bt!==null&&(ar?(e=Bt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Bt.removeChild(n.stateNode));break;case 18:Bt!==null&&(ar?(e=Bt,n=n.stateNode,e.nodeType===8?$p(e.parentNode,n):e.nodeType===1&&$p(e,n),yl(e)):$p(Bt,n.stateNode));break;case 4:r=Bt,o=ar,Bt=n.stateNode.containerInfo,ar=!0,Co(e,t,n),Bt=r,ar=o;break;case 0:case 11:case 14:case 15:if(!Zt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&m1(n,t,s),o=o.next}while(o!==r)}Co(e,t,n);break;case 1:if(!Zt&&(fs(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){kt(n,t,a)}Co(e,t,n);break;case 21:Co(e,t,n);break;case 22:n.mode&1?(Zt=(r=Zt)||n.memoizedState!==null,Co(e,t,n),Zt=r):Co(e,t,n);break;default:Co(e,t,n)}}function iy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new _k),t.forEach(function(r){var o=zk.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ir(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=Tt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$k(r/1960))-r,10e?16:e,To===null)var r=!1;else{if(e=To,To=null,ed=0,Ge&6)throw Error(oe(331));var o=Ge;for(Ge|=4,be=e.current;be!==null;){var i=be,s=i.child;if(be.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lTt()-fm?mi(e,0):dm|=n),gn(e,t)}function l6(e,t){t===0&&(e.mode&1?(t=Cc,Cc<<=1,!(Cc&130023424)&&(Cc=4194304)):t=1);var n=sn();e=ao(e,t),e!==null&&(Gl(e,t,n),gn(e,n))}function Vk(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),l6(e,n)}function zk(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(oe(314))}r!==null&&r.delete(t),l6(e,n)}var c6;c6=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||hn.current)pn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pn=!1,Tk(e,t,n);pn=!!(e.flags&131072)}else pn=!1,yt&&t.flags&1048576&&f3(t,Uu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;pu(e,t),e=t.pendingProps;var o=Is(t,en.current);Ss(t,n),o=im(null,t,r,e,o,n);var i=sm();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,mn(r)?(i=!0,Wu(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,em(t),o.updater=pf,t.stateNode=o,o._reactInternals=t,l1(t,r,e,n),t=d1(null,t,r,!0,i,n)):(t.tag=0,yt&&i&&G0(t),rn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(pu(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Wk(r),e=sr(r,e),o){case 0:t=u1(null,t,r,e,n);break e;case 1:t=ey(null,t,r,e,n);break e;case 11:t=J2(null,t,r,e,n);break e;case 14:t=Q2(null,t,r,sr(r.type,e),n);break e}throw Error(oe(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:sr(r,o),u1(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:sr(r,o),ey(e,t,r,o,n);case 3:e:{if(Y3(t),e===null)throw Error(oe(387));r=t.pendingProps,i=t.memoizedState,o=i.element,g3(e,t),Ku(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Ls(Error(oe(423)),t),t=ty(e,t,r,n,o);break e}else if(r!==o){o=Ls(Error(oe(424)),t),t=ty(e,t,r,n,o);break e}else for(En=Fo(t.stateNode.containerInfo.firstChild),Mn=t,yt=!0,lr=null,n=C3(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($s(),r===o){t=lo(e,t,n);break e}rn(e,t,r,n)}t=t.child}return t;case 5:return b3(t),e===null&&i1(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,e1(r,o)?s=null:i!==null&&e1(r,i)&&(t.flags|=32),U3(e,t),rn(e,t,s,n),t.child;case 6:return e===null&&i1(t),null;case 13:return G3(e,t,n);case 4:return tm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Fs(t,null,r,n):rn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:sr(r,o),J2(e,t,r,o,n);case 7:return rn(e,t,t.pendingProps,n),t.child;case 8:return rn(e,t,t.pendingProps.children,n),t.child;case 12:return rn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,lt(Yu,r._currentValue),r._currentValue=s,i!==null)if(mr(i.value,s)){if(i.children===o.children&&!hn.current){t=lo(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=to(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),s1(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(oe(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),s1(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}rn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ss(t,n),o=Kn(o),r=r(o),t.flags|=1,rn(e,t,r,n),t.child;case 14:return r=t.type,o=sr(r,t.pendingProps),o=sr(r.type,o),Q2(e,t,r,o,n);case 15:return W3(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:sr(r,o),pu(e,t),t.tag=1,mn(r)?(e=!0,Wu(t)):e=!1,Ss(t,n),v3(t,r,o),l1(t,r,o,n),d1(null,t,r,!0,e,n);case 19:return K3(e,t,n);case 22:return H3(e,t,n)}throw Error(oe(156,t.tag))};function u6(e,t){return A8(e,t)}function Bk(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Hn(e,t,n,r){return new Bk(e,t,n,r)}function gm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wk(e){if(typeof e=="function")return gm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===F0)return 11;if(e===A0)return 14}return 2}function No(e,t){var n=e.alternate;return n===null?(n=Hn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function gu(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")gm(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case rs:return gi(n.children,o,i,t);case $0:s=8,o|=8;break;case Oh:return e=Hn(12,n,t,o|2),e.elementType=Oh,e.lanes=i,e;case Ih:return e=Hn(13,n,t,o),e.elementType=Ih,e.lanes=i,e;case $h:return e=Hn(19,n,t,o),e.elementType=$h,e.lanes=i,e;case x8:return yf(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case y8:s=10;break e;case v8:s=9;break e;case F0:s=11;break e;case A0:s=14;break e;case So:s=16,r=null;break e}throw Error(oe(130,e==null?e:typeof e,""))}return t=Hn(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function gi(e,t,n,r){return e=Hn(7,e,r,t),e.lanes=n,e}function yf(e,t,n,r){return e=Hn(22,e,r,t),e.elementType=x8,e.lanes=n,e.stateNode={isHidden:!1},e}function Bp(e,t,n){return e=Hn(6,e,null,t),e.lanes=n,e}function Wp(e,t,n){return t=Hn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Hk(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Sp(0),this.expirationTimes=Sp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sp(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ym(e,t,n,r,o,i,s,a,l){return e=new Hk(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Hn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},em(i),e}function Uk(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(h6)}catch(e){console.error(e)}}h6(),f8.exports=$n;var Xl=f8.exports;const Oc=bd(Xl),py={disabled:!1},rd=Fe.createContext(null);var m6=function(t){return t.scrollTop},Na="unmounted",oi="exited",ii="entering",Qi="entered",S1="exiting",go=function(e){D0(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=oi,i.appearStatus=ii):l=Qi:r.unmountOnExit||r.mountOnEnter?l=Na:l=oi,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Na?{status:oi}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==ii&&s!==Qi&&(i=ii):(s===ii||s===Qi)&&(i=S1)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===ii){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Oc.findDOMNode(this);s&&m6(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===oi&&this.setState({status:Na})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[Oc.findDOMNode(this),a],c=l[0],u=l[1],f=this.getTimeouts(),p=a?f.appear:f.enter;if(!o&&!s||py.disabled){this.safeSetState({status:Qi},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:ii},function(){i.props.onEntering(c,u),i.onTransitionEnd(p,function(){i.safeSetState({status:Qi},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Oc.findDOMNode(this);if(!i||py.disabled){this.safeSetState({status:oi},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:S1},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:oi},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Oc.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Na)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=Q(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Fe.createElement(rd.Provider,{value:null},typeof s=="function"?s(o,a):Fe.cloneElement(Fe.Children.only(s),a))},t}(Fe.Component);go.contextType=rd;go.propTypes={};function Gi(){}go.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Gi,onEntering:Gi,onEntered:Gi,onExit:Gi,onExiting:Gi,onExited:Gi};go.UNMOUNTED=Na;go.EXITED=oi;go.ENTERING=ii;go.ENTERED=Qi;go.EXITING=S1;const bm=go;var Zk=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Uw(t,r)})},Hp=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Yw(t,r)})},wm=function(e){D0(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),s=0;se.scrollTop;function od(e,t){var n,r;const{timeout:o,easing:i,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:s.transitionDelay}}function oE(e){return _e("MuiPaper",e)}Pe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const iE=["className","component","elevation","square","variant"],sE=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return De(i,oE,o)},aE=H("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return b({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&b({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ne("#fff",s2(t.elevation))}, ${Ne("#fff",s2(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),lE=x.forwardRef(function(t,n){const r=Te({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:a=!1,variant:l="elevation"}=r,c=Q(r,iE),u=b({},r,{component:i,elevation:s,square:a,variant:l}),f=sE(u);return d.jsx(aE,b({as:i,ownerState:u,className:le(f.root,o),ref:n},c))}),Jl=lE;function Ir(e){return typeof e=="string"}function cE(e,t,n){return e===void 0||Ir(e)?t:b({},t,{ownerState:b({},t.ownerState,n)})}function uE(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const dE={disableDefaultClasses:!1},fE=x.createContext(dE);function pE(e){const{disableDefaultClasses:t}=x.useContext(fE);return n=>t?"":e(n)}function Ja(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Pm(e,t,n){return typeof e=="function"?e(t,n):e}function hy(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function hE(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const v=le(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),y=b({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),g=b({},n,o,r);return v.length>0&&(g.className=v),Object.keys(y).length>0&&(g.style=y),{props:g,internalRef:void 0}}const s=Ja(b({},o,r)),a=hy(r),l=hy(o),c=t(s),u=le(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f=b({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=b({},c,n,l,a);return u.length>0&&(p.className=u),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}const mE=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function We(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=Q(e,mE),a=i?{}:Pm(r,o),{props:l,internalRef:c}=hE(b({},s,{externalSlotProps:a})),u=tt(c,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return cE(n,b({},l,{ref:u}),o)}function gE(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:a,onExited:l,timeout:c}=e,[u,f]=x.useState(!1),p=le(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},y=le(n.child,u&&n.childLeaving,r&&n.childPulsate);return!a&&!u&&f(!0),x.useEffect(()=>{if(!a&&l!=null){const g=setTimeout(l,c);return()=>{clearTimeout(g)}}},[l,a,c]),d.jsx("span",{className:p,style:v,children:d.jsx("span",{className:y})})}const Nn=Pe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),yE=["center","classes","className"];let wf=e=>e,my,gy,yy,vy;const k1=550,vE=80,xE=Hl(my||(my=wf` 0% { transform: scale(0); opacity: 0.1; } 100% { transform: scale(1); opacity: 0.3; } `)),CE=Hl(gy||(gy=wf` 0% { opacity: 1; } 100% { opacity: 0; } `)),bE=Hl(yy||(yy=wf` 0% { transform: scale(1); } 50% { transform: scale(0.92); } 100% { transform: scale(1); } `)),wE=H("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),SE=H(gE,{name:"MuiTouchRipple",slot:"Ripple"})(vy||(vy=wf` opacity: 0; position: absolute; &.${0} { opacity: 0.3; transform: scale(1); animation-name: ${0}; animation-duration: ${0}ms; animation-timing-function: ${0}; } &.${0} { animation-duration: ${0}ms; } & .${0} { opacity: 1; display: block; width: 100%; height: 100%; border-radius: 50%; background-color: currentColor; } & .${0} { opacity: 0; animation-name: ${0}; animation-duration: ${0}ms; animation-timing-function: ${0}; } & .${0} { position: absolute; /* @noflip */ left: 0px; top: 0; animation-name: ${0}; animation-duration: 2500ms; animation-timing-function: ${0}; animation-iteration-count: infinite; animation-delay: 200ms; } `),Nn.rippleVisible,xE,k1,({theme:e})=>e.transitions.easing.easeInOut,Nn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Nn.child,Nn.childLeaving,CE,k1,({theme:e})=>e.transitions.easing.easeInOut,Nn.childPulsate,bE,({theme:e})=>e.transitions.easing.easeInOut),kE=x.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=Q(r,yE),[l,c]=x.useState([]),u=x.useRef(0),f=x.useRef(null);x.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=x.useRef(!1),v=x.useRef(0),y=x.useRef(null),g=x.useRef(null);x.useEffect(()=>()=>{v.current&&clearTimeout(v.current)},[]);const S=x.useCallback(w=>{const{pulsate:k,rippleX:P,rippleY:E,rippleSize:M,cb:T}=w;c(R=>[...R,d.jsx(SE,{classes:{ripple:le(i.ripple,Nn.ripple),rippleVisible:le(i.rippleVisible,Nn.rippleVisible),ripplePulsate:le(i.ripplePulsate,Nn.ripplePulsate),child:le(i.child,Nn.child),childLeaving:le(i.childLeaving,Nn.childLeaving),childPulsate:le(i.childPulsate,Nn.childPulsate)},timeout:k1,pulsate:k,rippleX:P,rippleY:E,rippleSize:M},u.current)]),u.current+=1,f.current=T},[i]),h=x.useCallback((w={},k={},P=()=>{})=>{const{pulsate:E=!1,center:M=o||k.pulsate,fakeElement:T=!1}=k;if((w==null?void 0:w.type)==="mousedown"&&p.current){p.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(p.current=!0);const R=T?null:g.current,O=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let A,$,D;if(M||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)A=Math.round(O.width/2),$=Math.round(O.height/2);else{const{clientX:_,clientY:L}=w.touches&&w.touches.length>0?w.touches[0]:w;A=Math.round(_-O.left),$=Math.round(L-O.top)}if(M)D=Math.sqrt((2*O.width**2+O.height**2)/3),D%2===0&&(D+=1);else{const _=Math.max(Math.abs((R?R.clientWidth:0)-A),A)*2+2,L=Math.max(Math.abs((R?R.clientHeight:0)-$),$)*2+2;D=Math.sqrt(_**2+L**2)}w!=null&&w.touches?y.current===null&&(y.current=()=>{S({pulsate:E,rippleX:A,rippleY:$,rippleSize:D,cb:P})},v.current=setTimeout(()=>{y.current&&(y.current(),y.current=null)},vE)):S({pulsate:E,rippleX:A,rippleY:$,rippleSize:D,cb:P})},[o,S]),m=x.useCallback(()=>{h({},{pulsate:!0})},[h]),C=x.useCallback((w,k)=>{if(clearTimeout(v.current),(w==null?void 0:w.type)==="touchend"&&y.current){y.current(),y.current=null,v.current=setTimeout(()=>{C(w,k)});return}y.current=null,c(P=>P.length>0?P.slice(1):P),f.current=k},[]);return x.useImperativeHandle(n,()=>({pulsate:m,start:h,stop:C}),[m,h,C]),d.jsx(wE,b({className:le(Nn.root,i.root,s),ref:g},a,{children:d.jsx(Em,{component:null,exit:!0,children:l})}))}),EE=kE;function PE(e){return _e("MuiButtonBase",e)}const ME=Pe("MuiButtonBase",["root","disabled","focusVisible"]),TE=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],RE=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=De({root:["root",t&&"disabled",n&&"focusVisible"]},PE,o);return n&&r&&(s.root+=` ${r}`),s},DE=H("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"},[`&.${ME.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),_E=x.forwardRef(function(t,n){const r=Te({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:v="a",onBlur:y,onClick:g,onContextMenu:S,onDragLeave:h,onFocus:m,onFocusVisible:C,onKeyDown:w,onKeyUp:k,onMouseDown:P,onMouseLeave:E,onMouseUp:M,onTouchEnd:T,onTouchMove:R,onTouchStart:O,tabIndex:A=0,TouchRippleProps:$,touchRippleRef:D,type:_}=r,L=Q(r,TE),V=x.useRef(null),I=x.useRef(null),F=tt(I,D),{isFocusVisibleRef:z,onFocus:ae,onBlur:re,ref:de}=jd(),[W,ne]=x.useState(!1);c&&W&&ne(!1),x.useImperativeHandle(o,()=>({focusVisible:()=>{ne(!0),V.current.focus()}}),[]);const[pe,Y]=x.useState(!1);x.useEffect(()=>{Y(!0)},[]);const me=pe&&!u&&!c;x.useEffect(()=>{W&&p&&!u&&pe&&I.current.pulsate()},[u,p,W,pe]);function Se(ye,Ke,Ve=f){return Me(He=>(Ke&&Ke(He),!Ve&&I.current&&I.current[ye](He),!0))}const Ee=Se("start",P),ee=Se("stop",S),X=Se("stop",h),j=Se("stop",M),U=Se("stop",ye=>{W&&ye.preventDefault(),E&&E(ye)}),K=Se("start",O),xe=Se("stop",T),Ie=Se("stop",R),se=Se("stop",ye=>{re(ye),z.current===!1&&ne(!1),y&&y(ye)},!1),fe=Me(ye=>{V.current||(V.current=ye.currentTarget),ae(ye),z.current===!0&&(ne(!0),C&&C(ye)),m&&m(ye)}),B=()=>{const ye=V.current;return l&&l!=="button"&&!(ye.tagName==="A"&&ye.href)},Z=x.useRef(!1),we=Me(ye=>{p&&!Z.current&&W&&I.current&&ye.key===" "&&(Z.current=!0,I.current.stop(ye,()=>{I.current.start(ye)})),ye.target===ye.currentTarget&&B()&&ye.key===" "&&ye.preventDefault(),w&&w(ye),ye.target===ye.currentTarget&&B()&&ye.key==="Enter"&&!c&&(ye.preventDefault(),g&&g(ye))}),$e=Me(ye=>{p&&ye.key===" "&&I.current&&W&&!ye.defaultPrevented&&(Z.current=!1,I.current.stop(ye,()=>{I.current.pulsate(ye)})),k&&k(ye),g&&ye.target===ye.currentTarget&&B()&&ye.key===" "&&!ye.defaultPrevented&&g(ye)});let ke=l;ke==="button"&&(L.href||L.to)&&(ke=v);const q={};ke==="button"?(q.type=_===void 0?"button":_,q.disabled=c):(!L.href&&!L.to&&(q.role="button"),c&&(q["aria-disabled"]=c));const he=tt(n,de,V),ve=b({},r,{centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:p,tabIndex:A,focusVisible:W}),ge=RE(ve);return d.jsxs(DE,b({as:ke,className:le(ge.root,a),ownerState:ve,onBlur:se,onClick:g,onContextMenu:ee,onFocus:fe,onKeyDown:we,onKeyUp:$e,onMouseDown:Ee,onMouseLeave:U,onMouseUp:j,onDragLeave:X,onTouchEnd:xe,onTouchMove:Ie,onTouchStart:K,ref:he,tabIndex:c?-1:A,type:_},q,L,{children:[s,me?d.jsx(EE,b({ref:F,center:i},$)):null]}))}),Fr=_E;function OE(e){return _e("MuiIconButton",e)}const IE=Pe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),$E=["edge","children","className","color","disabled","disableFocusRipple","size"],FE=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${te(r)}`,o&&`edge${te(o)}`,`size${te(i)}`]};return De(s,OE,t)},AE=H(Fr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${te(n.color)}`],n.edge&&t[`edge${te(n.edge)}`],t[`size${te(n.size)}`]]}})(({theme:e,ownerState:t})=>b({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return b({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&b({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":b({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${IE.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),LE=x.forwardRef(function(t,n){const r=Te({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,f=Q(r,$E),p=b({},r,{edge:o,color:a,disabled:l,disableFocusRipple:c,size:u}),v=FE(p);return d.jsx(AE,b({className:le(v.root,s),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,ownerState:p},f,{children:i}))}),ea=LE;function jE(e){return _e("MuiTypography",e)}Pe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const NE=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],VE=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${te(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return De(a,jE,s)},zE=H("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${te(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>b({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),xy={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},BE={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},WE=e=>BE[e]||e,HE=x.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTypography"}),o=WE(r.color),i=P0(b({},r,{color:o})),{align:s="inherit",className:a,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:f=!1,variant:p="body1",variantMapping:v=xy}=i,y=Q(i,NE),g=b({},i,{align:s,color:o,className:a,component:l,gutterBottom:c,noWrap:u,paragraph:f,variant:p,variantMapping:v}),S=l||(f?"p":v[p]||xy[p])||"span",h=VE(g);return d.jsx(zE,b({as:S,ref:n,ownerState:g,className:le(h.root,a)},y))}),Re=HE,y6="base";function UE(e){return`${y6}--${e}`}function YE(e,t){return`${y6}-${e}-${t}`}function v6(e,t){const n=X5[t];return n?UE(n):YE(e,t)}function GE(e,t){const n={};return t.forEach(r=>{n[r]=v6(e,r)}),n}const KE=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function qE(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function ZE(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function XE(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||ZE(e))}function JE(e){const t=[],n=[];return Array.from(e.querySelectorAll(KE)).forEach((r,o)=>{const i=qE(r);i===-1||!XE(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function QE(){return!0}function x6(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=JE,isEnabled:s=QE,open:a}=e,l=x.useRef(!1),c=x.useRef(null),u=x.useRef(null),f=x.useRef(null),p=x.useRef(null),v=x.useRef(!1),y=x.useRef(null),g=tt(t.ref,y),S=x.useRef(null);x.useEffect(()=>{!a||!y.current||(v.current=!n)},[n,a]),x.useEffect(()=>{if(!a||!y.current)return;const C=Pt(y.current);return y.current.contains(C.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),v.current&&y.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[a]),x.useEffect(()=>{if(!a||!y.current)return;const C=Pt(y.current),w=E=>{S.current=E,!(r||!s()||E.key!=="Tab")&&C.activeElement===y.current&&E.shiftKey&&(l.current=!0,u.current&&u.current.focus())},k=()=>{const E=y.current;if(E===null)return;if(!C.hasFocus()||!s()||l.current){l.current=!1;return}if(E.contains(C.activeElement)||r&&C.activeElement!==c.current&&C.activeElement!==u.current)return;if(C.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!v.current)return;let M=[];if((C.activeElement===c.current||C.activeElement===u.current)&&(M=i(y.current)),M.length>0){var T,R;const O=!!((T=S.current)!=null&&T.shiftKey&&((R=S.current)==null?void 0:R.key)==="Tab"),A=M[0],$=M[M.length-1];typeof A!="string"&&typeof $!="string"&&(O?$.focus():A.focus())}else E.focus()};C.addEventListener("focusin",k),C.addEventListener("keydown",w,!0);const P=setInterval(()=>{C.activeElement&&C.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(P),C.removeEventListener("focusin",k),C.removeEventListener("keydown",w,!0)}},[n,r,o,s,a,i]);const h=C=>{f.current===null&&(f.current=C.relatedTarget),v.current=!0,p.current=C.target;const w=t.props.onFocus;w&&w(C)},m=C=>{f.current===null&&(f.current=C.relatedTarget),v.current=!0};return d.jsxs(x.Fragment,{children:[d.jsx("div",{tabIndex:a?0:-1,onFocus:m,ref:c,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:g,onFocus:h}),d.jsx("div",{tabIndex:a?0:-1,onFocus:m,ref:u,"data-testid":"sentinelEnd"})]})}var yn="top",Zn="bottom",Xn="right",vn="left",Mm="auto",Ql=[yn,Zn,Xn,vn],Ns="start",Rl="end",eP="clippingParents",C6="viewport",va="popper",tP="reference",Cy=Ql.reduce(function(e,t){return e.concat([t+"-"+Ns,t+"-"+Rl])},[]),b6=[].concat(Ql,[Mm]).reduce(function(e,t){return e.concat([t,t+"-"+Ns,t+"-"+Rl])},[]),nP="beforeRead",rP="read",oP="afterRead",iP="beforeMain",sP="main",aP="afterMain",lP="beforeWrite",cP="write",uP="afterWrite",dP=[nP,rP,oP,iP,sP,aP,lP,cP,uP];function Ar(e){return e?(e.nodeName||"").toLowerCase():null}function Rn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Di(e){var t=Rn(e).Element;return e instanceof t||e instanceof Element}function Yn(e){var t=Rn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Tm(e){if(typeof ShadowRoot>"u")return!1;var t=Rn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function fP(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Yn(i)||!Ar(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function pP(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!Yn(o)||!Ar(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const hP={name:"applyStyles",enabled:!0,phase:"write",fn:fP,effect:pP,requires:["computeStyles"]};function $r(e){return e.split("-")[0]}var yi=Math.max,id=Math.min,Vs=Math.round;function E1(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function w6(){return!/^((?!chrome|android).)*safari/i.test(E1())}function zs(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Yn(e)&&(o=e.offsetWidth>0&&Vs(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Vs(r.height)/e.offsetHeight||1);var s=Di(e)?Rn(e):window,a=s.visualViewport,l=!w6()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/i,f=r.width/o,p=r.height/i;return{width:f,height:p,top:u,right:c+f,bottom:u+p,left:c,x:c,y:u}}function Rm(e){var t=zs(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function S6(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Tm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function co(e){return Rn(e).getComputedStyle(e)}function mP(e){return["table","td","th"].indexOf(Ar(e))>=0}function Ko(e){return((Di(e)?e.ownerDocument:e.document)||window.document).documentElement}function Sf(e){return Ar(e)==="html"?e:e.assignedSlot||e.parentNode||(Tm(e)?e.host:null)||Ko(e)}function by(e){return!Yn(e)||co(e).position==="fixed"?null:e.offsetParent}function gP(e){var t=/firefox/i.test(E1()),n=/Trident/i.test(E1());if(n&&Yn(e)){var r=co(e);if(r.position==="fixed")return null}var o=Sf(e);for(Tm(o)&&(o=o.host);Yn(o)&&["html","body"].indexOf(Ar(o))<0;){var i=co(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function ec(e){for(var t=Rn(e),n=by(e);n&&mP(n)&&co(n).position==="static";)n=by(n);return n&&(Ar(n)==="html"||Ar(n)==="body"&&co(n).position==="static")?t:n||gP(e)||t}function Dm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Qa(e,t,n){return yi(e,id(t,n))}function yP(e,t,n){var r=Qa(e,t,n);return r>n?n:r}function k6(){return{top:0,right:0,bottom:0,left:0}}function E6(e){return Object.assign({},k6(),e)}function P6(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var vP=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,E6(typeof t!="number"?t:P6(t,Ql))};function xP(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=$r(n.placement),l=Dm(a),c=[vn,Xn].indexOf(a)>=0,u=c?"height":"width";if(!(!i||!s)){var f=vP(o.padding,n),p=Rm(i),v=l==="y"?yn:vn,y=l==="y"?Zn:Xn,g=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],S=s[l]-n.rects.reference[l],h=ec(i),m=h?l==="y"?h.clientHeight||0:h.clientWidth||0:0,C=g/2-S/2,w=f[v],k=m-p[u]-f[y],P=m/2-p[u]/2+C,E=Qa(w,P,k),M=l;n.modifiersData[r]=(t={},t[M]=E,t.centerOffset=E-P,t)}}function CP(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||S6(t.elements.popper,o)&&(t.elements.arrow=o))}const bP={name:"arrow",enabled:!0,phase:"main",fn:xP,effect:CP,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Bs(e){return e.split("-")[1]}var wP={top:"auto",right:"auto",bottom:"auto",left:"auto"};function SP(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Vs(n*o)/o||0,y:Vs(r*o)/o||0}}function wy(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,p=s.x,v=p===void 0?0:p,y=s.y,g=y===void 0?0:y,S=typeof u=="function"?u({x:v,y:g}):{x:v,y:g};v=S.x,g=S.y;var h=s.hasOwnProperty("x"),m=s.hasOwnProperty("y"),C=vn,w=yn,k=window;if(c){var P=ec(n),E="clientHeight",M="clientWidth";if(P===Rn(n)&&(P=Ko(n),co(P).position!=="static"&&a==="absolute"&&(E="scrollHeight",M="scrollWidth")),P=P,o===yn||(o===vn||o===Xn)&&i===Rl){w=Zn;var T=f&&P===k&&k.visualViewport?k.visualViewport.height:P[E];g-=T-r.height,g*=l?1:-1}if(o===vn||(o===yn||o===Zn)&&i===Rl){C=Xn;var R=f&&P===k&&k.visualViewport?k.visualViewport.width:P[M];v-=R-r.width,v*=l?1:-1}}var O=Object.assign({position:a},c&&wP),A=u===!0?SP({x:v,y:g},Rn(n)):{x:v,y:g};if(v=A.x,g=A.y,l){var $;return Object.assign({},O,($={},$[w]=m?"0":"",$[C]=h?"0":"",$.transform=(k.devicePixelRatio||1)<=1?"translate("+v+"px, "+g+"px)":"translate3d("+v+"px, "+g+"px, 0)",$))}return Object.assign({},O,(t={},t[w]=m?g+"px":"",t[C]=h?v+"px":"",t.transform="",t))}function kP(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:$r(t.placement),variation:Bs(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,wy(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,wy(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const EP={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:kP,data:{}};var Ic={passive:!0};function PP(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=Rn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,Ic)}),a&&l.addEventListener("resize",n.update,Ic),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Ic)}),a&&l.removeEventListener("resize",n.update,Ic)}}const MP={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:PP,data:{}};var TP={left:"right",right:"left",bottom:"top",top:"bottom"};function yu(e){return e.replace(/left|right|bottom|top/g,function(t){return TP[t]})}var RP={start:"end",end:"start"};function Sy(e){return e.replace(/start|end/g,function(t){return RP[t]})}function _m(e){var t=Rn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Om(e){return zs(Ko(e)).left+_m(e).scrollLeft}function DP(e,t){var n=Rn(e),r=Ko(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var c=w6();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+Om(e),y:l}}function _P(e){var t,n=Ko(e),r=_m(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=yi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=yi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Om(e),l=-r.scrollTop;return co(o||n).direction==="rtl"&&(a+=yi(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function Im(e){var t=co(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function M6(e){return["html","body","#document"].indexOf(Ar(e))>=0?e.ownerDocument.body:Yn(e)&&Im(e)?e:M6(Sf(e))}function el(e,t){var n;t===void 0&&(t=[]);var r=M6(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Rn(r),s=o?[i].concat(i.visualViewport||[],Im(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(el(Sf(s)))}function P1(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function OP(e,t){var n=zs(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function ky(e,t,n){return t===C6?P1(DP(e,n)):Di(t)?OP(t,n):P1(_P(Ko(e)))}function IP(e){var t=el(Sf(e)),n=["absolute","fixed"].indexOf(co(e).position)>=0,r=n&&Yn(e)?ec(e):e;return Di(r)?t.filter(function(o){return Di(o)&&S6(o,r)&&Ar(o)!=="body"}):[]}function $P(e,t,n,r){var o=t==="clippingParents"?IP(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,c){var u=ky(e,c,r);return l.top=yi(u.top,l.top),l.right=id(u.right,l.right),l.bottom=id(u.bottom,l.bottom),l.left=yi(u.left,l.left),l},ky(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function T6(e){var t=e.reference,n=e.element,r=e.placement,o=r?$r(r):null,i=r?Bs(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case yn:l={x:s,y:t.y-n.height};break;case Zn:l={x:s,y:t.y+t.height};break;case Xn:l={x:t.x+t.width,y:a};break;case vn:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?Dm(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Ns:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Rl:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Dl(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?eP:a,c=n.rootBoundary,u=c===void 0?C6:c,f=n.elementContext,p=f===void 0?va:f,v=n.altBoundary,y=v===void 0?!1:v,g=n.padding,S=g===void 0?0:g,h=E6(typeof S!="number"?S:P6(S,Ql)),m=p===va?tP:va,C=e.rects.popper,w=e.elements[y?m:p],k=$P(Di(w)?w:w.contextElement||Ko(e.elements.popper),l,u,s),P=zs(e.elements.reference),E=T6({reference:P,element:C,strategy:"absolute",placement:o}),M=P1(Object.assign({},C,E)),T=p===va?M:P,R={top:k.top-T.top+h.top,bottom:T.bottom-k.bottom+h.bottom,left:k.left-T.left+h.left,right:T.right-k.right+h.right},O=e.modifiersData.offset;if(p===va&&O){var A=O[o];Object.keys(R).forEach(function($){var D=[Xn,Zn].indexOf($)>=0?1:-1,_=[yn,Zn].indexOf($)>=0?"y":"x";R[$]+=A[_]*D})}return R}function FP(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?b6:l,u=Bs(r),f=u?a?Cy:Cy.filter(function(y){return Bs(y)===u}):Ql,p=f.filter(function(y){return c.indexOf(y)>=0});p.length===0&&(p=f);var v=p.reduce(function(y,g){return y[g]=Dl(e,{placement:g,boundary:o,rootBoundary:i,padding:s})[$r(g)],y},{});return Object.keys(v).sort(function(y,g){return v[y]-v[g]})}function AP(e){if($r(e)===Mm)return[];var t=yu(e);return[Sy(e),t,Sy(t)]}function LP(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,p=n.altBoundary,v=n.flipVariations,y=v===void 0?!0:v,g=n.allowedAutoPlacements,S=t.options.placement,h=$r(S),m=h===S,C=l||(m||!y?[yu(S)]:AP(S)),w=[S].concat(C).reduce(function(W,ne){return W.concat($r(ne)===Mm?FP(t,{placement:ne,boundary:u,rootBoundary:f,padding:c,flipVariations:y,allowedAutoPlacements:g}):ne)},[]),k=t.rects.reference,P=t.rects.popper,E=new Map,M=!0,T=w[0],R=0;R=0,_=D?"width":"height",L=Dl(t,{placement:O,boundary:u,rootBoundary:f,altBoundary:p,padding:c}),V=D?$?Xn:vn:$?Zn:yn;k[_]>P[_]&&(V=yu(V));var I=yu(V),F=[];if(i&&F.push(L[A]<=0),a&&F.push(L[V]<=0,L[I]<=0),F.every(function(W){return W})){T=O,M=!1;break}E.set(O,F)}if(M)for(var z=y?3:1,ae=function(ne){var pe=w.find(function(Y){var me=E.get(Y);if(me)return me.slice(0,ne).every(function(Se){return Se})});if(pe)return T=pe,"break"},re=z;re>0;re--){var de=ae(re);if(de==="break")break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}const jP={name:"flip",enabled:!0,phase:"main",fn:LP,requiresIfExists:["offset"],data:{_skip:!1}};function Ey(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Py(e){return[yn,Xn,Zn,vn].some(function(t){return e[t]>=0})}function NP(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Dl(t,{elementContext:"reference"}),a=Dl(t,{altBoundary:!0}),l=Ey(s,r),c=Ey(a,o,i),u=Py(l),f=Py(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const VP={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:NP};function zP(e,t,n){var r=$r(e),o=[vn,yn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[vn,Xn].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function BP(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=b6.reduce(function(u,f){return u[f]=zP(f,t.rects,i),u},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const WP={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:BP};function HP(e){var t=e.state,n=e.name;t.modifiersData[n]=T6({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const UP={name:"popperOffsets",enabled:!0,phase:"read",fn:HP,data:{}};function YP(e){return e==="x"?"y":"x"}function GP(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,p=n.tether,v=p===void 0?!0:p,y=n.tetherOffset,g=y===void 0?0:y,S=Dl(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),h=$r(t.placement),m=Bs(t.placement),C=!m,w=Dm(h),k=YP(w),P=t.modifiersData.popperOffsets,E=t.rects.reference,M=t.rects.popper,T=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,R=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(P){if(i){var $,D=w==="y"?yn:vn,_=w==="y"?Zn:Xn,L=w==="y"?"height":"width",V=P[w],I=V+S[D],F=V-S[_],z=v?-M[L]/2:0,ae=m===Ns?E[L]:M[L],re=m===Ns?-M[L]:-E[L],de=t.elements.arrow,W=v&&de?Rm(de):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:k6(),pe=ne[D],Y=ne[_],me=Qa(0,E[L],W[L]),Se=C?E[L]/2-z-me-pe-R.mainAxis:ae-me-pe-R.mainAxis,Ee=C?-E[L]/2+z+me+Y+R.mainAxis:re+me+Y+R.mainAxis,ee=t.elements.arrow&&ec(t.elements.arrow),X=ee?w==="y"?ee.clientTop||0:ee.clientLeft||0:0,j=($=O==null?void 0:O[w])!=null?$:0,U=V+Se-j-X,K=V+Ee-j,xe=Qa(v?id(I,U):I,V,v?yi(F,K):F);P[w]=xe,A[w]=xe-V}if(a){var Ie,se=w==="x"?yn:vn,fe=w==="x"?Zn:Xn,B=P[k],Z=k==="y"?"height":"width",we=B+S[se],$e=B-S[fe],ke=[yn,vn].indexOf(h)!==-1,q=(Ie=O==null?void 0:O[k])!=null?Ie:0,he=ke?we:B-E[Z]-M[Z]-q+R.altAxis,ve=ke?B+E[Z]+M[Z]-q-R.altAxis:$e,ge=v&&ke?yP(he,B,ve):Qa(v?he:we,B,v?ve:$e);P[k]=ge,A[k]=ge-B}t.modifiersData[r]=A}}const KP={name:"preventOverflow",enabled:!0,phase:"main",fn:GP,requiresIfExists:["offset"]};function qP(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ZP(e){return e===Rn(e)||!Yn(e)?_m(e):qP(e)}function XP(e){var t=e.getBoundingClientRect(),n=Vs(t.width)/e.offsetWidth||1,r=Vs(t.height)/e.offsetHeight||1;return n!==1||r!==1}function JP(e,t,n){n===void 0&&(n=!1);var r=Yn(t),o=Yn(t)&&XP(t),i=Ko(t),s=zs(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ar(t)!=="body"||Im(i))&&(a=ZP(t)),Yn(t)?(l=zs(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Om(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function QP(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function eM(e){var t=QP(e);return dP.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function tM(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function nM(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var My={placement:"bottom",modifiers:[],strategy:"absolute"};function Ty(){for(var e=arguments.length,t=new Array(e),n=0;n{i||a(sM(o)||document.body)},[o,i]),Lt(()=>{if(s&&!i)return Mh(n,s),()=>{Mh(n,null)}},[n,s,i]),i){if(x.isValidElement(r)){const c={ref:l};return x.cloneElement(r,c)}return d.jsx(x.Fragment,{children:r})}return d.jsx(x.Fragment,{children:s&&Xl.createPortal(r,s)})}),D6="Popper";function aM(e){return v6(D6,e)}GE(D6,["root"]);const lM=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],cM=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function uM(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function M1(e){return typeof e=="function"?e():e}function dM(e){return e.nodeType!==void 0}const fM=()=>De({root:["root"]},pE(aM)),pM={},hM=x.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:s,disablePortal:a,modifiers:l,open:c,placement:u,popperOptions:f,popperRef:p,slotProps:v={},slots:y={},TransitionProps:g}=t,S=Q(t,lM),h=x.useRef(null),m=tt(h,n),C=x.useRef(null),w=tt(C,p),k=x.useRef(w);Lt(()=>{k.current=w},[w]),x.useImperativeHandle(p,()=>C.current,[]);const P=uM(u,s),[E,M]=x.useState(P),[T,R]=x.useState(M1(o));x.useEffect(()=>{C.current&&C.current.forceUpdate()}),x.useEffect(()=>{o&&R(M1(o))},[o]),Lt(()=>{if(!T||!c)return;const _=I=>{M(I.placement)};let L=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:I})=>{_(I)}}];l!=null&&(L=L.concat(l)),f&&f.modifiers!=null&&(L=L.concat(f.modifiers));const V=iM(T,h.current,b({placement:P},f,{modifiers:L}));return k.current(V),()=>{V.destroy(),k.current(null)}},[T,a,l,c,f,P]);const O={placement:E};g!==null&&(O.TransitionProps=g);const A=fM(),$=(r=y.root)!=null?r:"div",D=We({elementType:$,externalSlotProps:v.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:A.root});return d.jsx($,b({},D,{children:typeof i=="function"?i(O):i}))}),mM=x.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:p=pM,popperRef:v,style:y,transition:g=!1,slotProps:S={},slots:h={}}=t,m=Q(t,cM),[C,w]=x.useState(!0),k=()=>{w(!1)},P=()=>{w(!0)};if(!l&&!u&&(!g||C))return null;let E;if(i)E=i;else if(r){const R=M1(r);E=R&&dM(R)?Pt(R).body:Pt(null).body}const M=!u&&l&&(!g||C)?"none":void 0,T=g?{in:u,onEnter:k,onExited:P}:void 0;return d.jsx(R6,{disablePortal:a,container:E,children:d.jsx(hM,b({anchorEl:r,direction:s,disablePortal:a,modifiers:c,ref:n,open:g?!C:u,placement:f,popperOptions:p,popperRef:v,slotProps:S,slots:h},m,{style:b({position:"fixed",top:0,left:0,display:M},y),TransitionProps:T,children:o}))})});function gM(e){const t=Pt(e);return t.body===e?wi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function tl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ry(e){return parseInt(wi(e).getComputedStyle(e).paddingRight,10)||0}function yM(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Dy(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,l=!yM(s);a&&l&&tl(s,o)})}function Up(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function vM(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(gM(r)){const s=K5(Pt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Ry(r)+s}px`;const a=Pt(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Ry(l)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Pt(r).body;else{const s=r.parentElement,a=wi(r);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function xM(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class CM{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&tl(t.modalRef,!1);const o=xM(n);Dy(n,t.mount,t.modalRef,o,!0);const i=Up(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Up(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=vM(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Up(this.containers,s=>s.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&tl(t.modalRef,n),Dy(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&tl(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function bM(e){return typeof e=="function"?e():e}function wM(e){return e?e.props.hasOwnProperty("in"):!1}const SM=new CM;function kM(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=SM,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:u,rootRef:f}=e,p=x.useRef({}),v=x.useRef(null),y=x.useRef(null),g=tt(y,f),[S,h]=x.useState(!u),m=wM(l);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const w=()=>Pt(v.current),k=()=>(p.current.modalRef=y.current,p.current.mount=v.current,p.current),P=()=>{o.mount(k(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},E=Me(()=>{const L=bM(t)||w().body;o.add(k(),L),y.current&&P()}),M=x.useCallback(()=>o.isTopModal(k()),[o]),T=Me(L=>{v.current=L,L&&(u&&M()?P():y.current&&tl(y.current,C))}),R=x.useCallback(()=>{o.remove(k(),C)},[C,o]);x.useEffect(()=>()=>{R()},[R]),x.useEffect(()=>{u?E():(!m||!i)&&R()},[u,R,m,i,E]);const O=L=>V=>{var I;(I=L.onKeyDown)==null||I.call(L,V),!(V.key!=="Escape"||V.which===229||!M())&&(n||(V.stopPropagation(),c&&c(V,"escapeKeyDown")))},A=L=>V=>{var I;(I=L.onClick)==null||I.call(L,V),V.target===V.currentTarget&&c&&c(V,"backdropClick")};return{getRootProps:(L={})=>{const V=Ja(e);delete V.onTransitionEnter,delete V.onTransitionExited;const I=b({},V,L);return b({role:"presentation"},I,{onKeyDown:O(I),ref:g})},getBackdropProps:(L={})=>{const V=L;return b({"aria-hidden":!0},V,{onClick:A(V),open:u})},getTransitionProps:()=>{const L=()=>{h(!1),s&&s()},V=()=>{h(!0),a&&a(),i&&R()};return{onEnter:Ph(L,l==null?void 0:l.props.onEnter),onExited:Ph(V,l==null?void 0:l.props.onExited)}},rootRef:g,portalRef:T,isTopModal:M,exited:S,hasTransition:m}}const EM=2;function _6(e,t){return e-t}function _y(e,t){var n;const{index:r}=(n=e.reduce((o,i,s)=>{const a=Math.abs(t-i);return o===null||a({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}%`})}},DM=e=>e;let Lc;function Iy(){return Lc===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Lc=CSS.supports("touch-action","none"):Lc=!0),Lc}function _M(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:a=100,min:l=0,name:c,onChange:u,onChangeCommitted:f,orientation:p="horizontal",rootRef:v,scale:y=DM,step:g=1,tabIndex:S,value:h}=e,m=x.useRef(),[C,w]=x.useState(-1),[k,P]=x.useState(-1),[E,M]=x.useState(!1),T=x.useRef(0),[R,O]=bn({controlled:h,default:n??l,name:"Slider"}),A=u&&((q,he,ve)=>{const ge=q.nativeEvent||q,ye=new ge.constructor(ge.type,ge);Object.defineProperty(ye,"target",{writable:!0,value:{value:he,name:c}}),u(ye,he,ve)}),$=Array.isArray(R);let D=$?R.slice().sort(_6):[R];D=D.map(q=>q==null?l:li(q,l,a));const _=s===!0&&g!==null?[...Array(Math.floor((a-l)/g)+1)].map((q,he)=>({value:l+g*he})):s||[],L=_.map(q=>q.value),{isFocusVisibleRef:V,onBlur:I,onFocus:F,ref:z}=jd(),[ae,re]=x.useState(-1),de=x.useRef(),W=tt(z,de),ne=tt(v,W),pe=q=>he=>{var ve;const ge=Number(he.currentTarget.getAttribute("data-index"));F(he),V.current===!0&&re(ge),P(ge),q==null||(ve=q.onFocus)==null||ve.call(q,he)},Y=q=>he=>{var ve;I(he),V.current===!1&&re(-1),P(-1),q==null||(ve=q.onBlur)==null||ve.call(q,he)};Lt(()=>{if(r&&de.current.contains(document.activeElement)){var q;(q=document.activeElement)==null||q.blur()}},[r]),r&&C!==-1&&w(-1),r&&ae!==-1&&re(-1);const me=q=>he=>{var ve;(ve=q.onChange)==null||ve.call(q,he);const ge=Number(he.currentTarget.getAttribute("data-index")),ye=D[ge],Ke=L.indexOf(ye);let Ve=he.target.valueAsNumber;if(_&&g==null){const He=L[L.length-1];Ve>He?Ve=He:Ve{const{current:ve}=de,{width:ge,height:ye,bottom:Ke,left:Ve}=ve.getBoundingClientRect();let He;Ee.indexOf("vertical")===0?He=(Ke-q.y)/ye:He=(q.x-Ve)/ge,Ee.indexOf("-reverse")!==-1&&(He=1-He);let ue;if(ue=PM(He,l,a),g)ue=TM(ue,g,l);else{const ut=_y(L,ue);ue=L[ut]}ue=li(ue,l,a);let je=0;if($){he?je=Se.current:je=_y(D,ue),o&&(ue=li(ue,D[je-1]||-1/0,D[je+1]||1/0));const ut=ue;ue=Oy({values:D,newValue:ue,index:je}),o&&he||(je=ue.indexOf(ut),Se.current=je)}return{newValue:ue,activeIndex:je}},X=Me(q=>{const he=$c(q,m);if(!he)return;if(T.current+=1,q.type==="mousemove"&&q.buttons===0){j(q);return}const{newValue:ve,activeIndex:ge}=ee({finger:he,move:!0});Fc({sliderRef:de,activeIndex:ge,setActive:w}),O(ve),!E&&T.current>EM&&M(!0),A&&!Ac(ve,R)&&A(q,ve,ge)}),j=Me(q=>{const he=$c(q,m);if(M(!1),!he)return;const{newValue:ve}=ee({finger:he,move:!0});w(-1),q.type==="touchend"&&P(-1),f&&f(q,ve),m.current=void 0,K()}),U=Me(q=>{if(r)return;Iy()||q.preventDefault();const he=q.changedTouches[0];he!=null&&(m.current=he.identifier);const ve=$c(q,m);if(ve!==!1){const{newValue:ye,activeIndex:Ke}=ee({finger:ve});Fc({sliderRef:de,activeIndex:Ke,setActive:w}),O(ye),A&&!Ac(ye,R)&&A(q,ye,Ke)}T.current=0;const ge=Pt(de.current);ge.addEventListener("touchmove",X,{passive:!0}),ge.addEventListener("touchend",j,{passive:!0})}),K=x.useCallback(()=>{const q=Pt(de.current);q.removeEventListener("mousemove",X),q.removeEventListener("mouseup",j),q.removeEventListener("touchmove",X),q.removeEventListener("touchend",j)},[j,X]);x.useEffect(()=>{const{current:q}=de;return q.addEventListener("touchstart",U,{passive:Iy()}),()=>{q.removeEventListener("touchstart",U),K()}},[K,U]),x.useEffect(()=>{r&&K()},[r,K]);const xe=q=>he=>{var ve;if((ve=q.onMouseDown)==null||ve.call(q,he),r||he.defaultPrevented||he.button!==0)return;he.preventDefault();const ge=$c(he,m);if(ge!==!1){const{newValue:Ke,activeIndex:Ve}=ee({finger:ge});Fc({sliderRef:de,activeIndex:Ve,setActive:w}),O(Ke),A&&!Ac(Ke,R)&&A(he,Ke,Ve)}T.current=0;const ye=Pt(de.current);ye.addEventListener("mousemove",X,{passive:!0}),ye.addEventListener("mouseup",j)},Ie=sd($?D[0]:l,l,a),se=sd(D[D.length-1],l,a)-Ie,fe=(q={})=>{const he=Ja(q),ve={onMouseDown:xe(he||{})},ge=b({},he,ve);return b({},q,{ref:ne},ge)},B=q=>he=>{var ve;(ve=q.onMouseOver)==null||ve.call(q,he);const ge=Number(he.currentTarget.getAttribute("data-index"));P(ge)},Z=q=>he=>{var ve;(ve=q.onMouseLeave)==null||ve.call(q,he),P(-1)};return{active:C,axis:Ee,axisProps:RM,dragging:E,focusedThumbIndex:ae,getHiddenInputProps:(q={})=>{var he;const ve=Ja(q),ge={onChange:me(ve||{}),onFocus:pe(ve||{}),onBlur:Y(ve||{})},ye=b({},ve,ge);return b({tabIndex:S,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":y(a),"aria-valuemin":y(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(he=e.step)!=null?he:void 0,disabled:r},q,ye,{style:b({},q5,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:fe,getThumbProps:(q={})=>{const he=Ja(q),ve={onMouseOver:B(he||{}),onMouseLeave:Z(he||{})};return b({},q,he,ve)},marks:_,open:k,range:$,rootRef:ne,trackLeap:se,trackOffset:Ie,values:D,getThumbStyle:q=>({pointerEvents:C!==-1&&C!==q?"none":void 0})}}const OM=["onChange","maxRows","minRows","style","value"];function jc(e){return parseInt(e,10)||0}const IM={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function $y(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const $M=x.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a}=t,l=Q(t,OM),{current:c}=x.useRef(a!=null),u=x.useRef(null),f=tt(n,u),p=x.useRef(null),v=x.useRef(0),[y,g]=x.useState({outerHeightStyle:0}),S=x.useCallback(()=>{const w=u.current,P=wi(w).getComputedStyle(w);if(P.width==="0px")return{outerHeightStyle:0};const E=p.current;E.style.width=P.width,E.value=w.value||t.placeholder||"x",E.value.slice(-1)===` `&&(E.value+=" ");const M=P.boxSizing,T=jc(P.paddingBottom)+jc(P.paddingTop),R=jc(P.borderBottomWidth)+jc(P.borderTopWidth),O=E.scrollHeight;E.value="x";const A=E.scrollHeight;let $=O;i&&($=Math.max(Number(i)*A,$)),o&&($=Math.min(Number(o)*A,$)),$=Math.max($,A);const D=$+(M==="border-box"?T+R:0),_=Math.abs($-O)<=1;return{outerHeightStyle:D,overflow:_}},[o,i,t.placeholder]),h=(w,k)=>{const{outerHeightStyle:P,overflow:E}=k;return v.current<20&&(P>0&&Math.abs((w.outerHeightStyle||0)-P)>1||w.overflow!==E)?(v.current+=1,{overflow:E,outerHeightStyle:P}):w},m=x.useCallback(()=>{const w=S();$y(w)||g(k=>h(k,w))},[S]);Lt(()=>{const w=()=>{const O=S();$y(O)||Xl.flushSync(()=>{g(A=>h(A,O))})},k=()=>{v.current=0,w()};let P;const E=G5(k),M=u.current,T=wi(M);T.addEventListener("resize",E);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(k),R.observe(M)),()=>{E.clear(),cancelAnimationFrame(P),T.removeEventListener("resize",E),R&&R.disconnect()}},[S]),Lt(()=>{m()}),x.useEffect(()=>{v.current=0},[a]);const C=w=>{v.current=0,c||m(),r&&r(w)};return d.jsxs(x.Fragment,{children:[d.jsx("textarea",b({value:a,onChange:C,ref:f,rows:i,style:b({height:y.outerHeightStyle,overflow:y.overflow?"hidden":void 0},s)},l)),d.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:b({},IM.shadow,s,{paddingTop:0,paddingBottom:0})})]})}),FM=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],AM=H(mM,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),LM=x.forwardRef(function(t,n){var r;const o=Yd(),i=Te({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:c,container:u,disablePortal:f,keepMounted:p,modifiers:v,open:y,placement:g,popperOptions:S,popperRef:h,transition:m,slots:C,slotProps:w}=i,k=Q(i,FM),P=(r=C==null?void 0:C.root)!=null?r:l==null?void 0:l.Root,E=b({anchorEl:s,container:u,disablePortal:f,keepMounted:p,modifiers:v,open:y,placement:g,popperOptions:S,popperRef:h,transition:m},k);return d.jsx(AM,b({as:a,direction:o==null?void 0:o.direction,slots:{root:P},slotProps:w??c},E,{ref:n}))}),jM=LM,NM=Yt(d.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function VM(e){return _e("MuiChip",e)}const zM=Pe("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),qe=zM,BM=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],WM=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:s,clickable:a,variant:l}=e,c={root:["root",l,n&&"disabled",`size${te(r)}`,`color${te(o)}`,a&&"clickable",a&&`clickableColor${te(o)}`,s&&"deletable",s&&`deletableColor${te(o)}`,`${l}${te(o)}`],label:["label",`label${te(r)}`],avatar:["avatar",`avatar${te(r)}`,`avatarColor${te(o)}`],icon:["icon",`icon${te(r)}`,`iconColor${te(i)}`],deleteIcon:["deleteIcon",`deleteIcon${te(r)}`,`deleteIconColor${te(o)}`,`deleteIcon${te(l)}Color${te(o)}`]};return De(c,VM,t)},HM=H("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:s,size:a,variant:l}=n;return[{[`& .${qe.avatar}`]:t.avatar},{[`& .${qe.avatar}`]:t[`avatar${te(a)}`]},{[`& .${qe.avatar}`]:t[`avatarColor${te(r)}`]},{[`& .${qe.icon}`]:t.icon},{[`& .${qe.icon}`]:t[`icon${te(a)}`]},{[`& .${qe.icon}`]:t[`iconColor${te(o)}`]},{[`& .${qe.deleteIcon}`]:t.deleteIcon},{[`& .${qe.deleteIcon}`]:t[`deleteIcon${te(a)}`]},{[`& .${qe.deleteIcon}`]:t[`deleteIconColor${te(r)}`]},{[`& .${qe.deleteIcon}`]:t[`deleteIcon${te(l)}Color${te(r)}`]},t.root,t[`size${te(a)}`],t[`color${te(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${te(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${te(r)}`],t[l],t[`${l}${te(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return b({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${qe.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${qe.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${qe.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${qe.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${qe.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${qe.icon}`]:b({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&b({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${qe.deleteIcon}`]:b({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Ne(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Ne(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Ne(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${qe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${qe.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>b({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ne(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${qe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${qe.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>b({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${qe.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${qe.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${qe.avatar}`]:{marginLeft:4},[`& .${qe.avatarSmall}`]:{marginLeft:2},[`& .${qe.icon}`]:{marginLeft:4},[`& .${qe.iconSmall}`]:{marginLeft:2},[`& .${qe.deleteIcon}`]:{marginRight:5},[`& .${qe.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ne(e.palette[t.color].main,.7)}`,[`&.${qe.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${qe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ne(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${qe.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ne(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),UM=H("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${te(r)}`]]}})(({ownerState:e})=>b({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function Fy(e){return e.key==="Backspace"||e.key==="Delete"}const YM=x.forwardRef(function(t,n){const r=Te({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:p,onClick:v,onDelete:y,onKeyDown:g,onKeyUp:S,size:h="medium",variant:m="filled",tabIndex:C,skipFocusWhenDisabled:w=!1}=r,k=Q(r,BM),P=x.useRef(null),E=tt(P,n),M=F=>{F.stopPropagation(),y&&y(F)},T=F=>{F.currentTarget===F.target&&Fy(F)&&F.preventDefault(),g&&g(F)},R=F=>{F.currentTarget===F.target&&(y&&Fy(F)?y(F):F.key==="Escape"&&P.current&&P.current.blur()),S&&S(F)},O=s!==!1&&v?!0:s,A=O||y?Fr:l||"div",$=b({},r,{component:A,disabled:u,size:h,color:a,iconColor:x.isValidElement(f)&&f.props.color||a,onDelete:!!y,clickable:O,variant:m}),D=WM($),_=A===Fr?b({component:l||"div",focusVisibleClassName:D.focusVisible},y&&{disableRipple:!0}):{};let L=null;y&&(L=c&&x.isValidElement(c)?x.cloneElement(c,{className:le(c.props.className,D.deleteIcon),onClick:M}):d.jsx(NM,{className:le(D.deleteIcon),onClick:M}));let V=null;o&&x.isValidElement(o)&&(V=x.cloneElement(o,{className:le(D.avatar,o.props.className)}));let I=null;return f&&x.isValidElement(f)&&(I=x.cloneElement(f,{className:le(D.icon,f.props.className)})),d.jsxs(HM,b({as:A,className:le(D.root,i),disabled:O&&u?!0:void 0,onClick:v,onKeyDown:T,onKeyUp:R,ref:E,tabIndex:w&&u?-1:C,ownerState:$},_,k,{children:[V||I,d.jsx(UM,{className:le(D.label),ownerState:$,children:p}),L]}))}),GM=YM;function qo({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const KM=x.createContext(void 0),kf=KM;function jr(){return x.useContext(kf)}function O6(e){return d.jsx(_9,b({},e,{defaultTheme:Kd,themeId:bi}))}function Ay(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ad(e,t=!1){return e&&(Ay(e.value)&&e.value!==""||t&&Ay(e.defaultValue)&&e.defaultValue!=="")}function qM(e){return e.startAdornment}function ZM(e){return _e("MuiInputBase",e)}const XM=Pe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ws=XM,JM=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Ef=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${te(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Pf=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},QM=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:f,size:p,startAdornment:v,type:y}=e,g={root:["root",`color${te(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",p&&p!=="medium"&&`size${te(p)}`,u&&"multiline",v&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",u&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",v&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return De(g,ZM,t)},Mf=H("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ef})(({theme:e,ownerState:t})=>b({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ws.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&b({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Tf=H("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Pf})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=b({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return b({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ws.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Ws.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),eT=d.jsx(O6,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),tT=x.forwardRef(function(t,n){var r;const o=Te({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:l,components:c={},componentsProps:u={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:v,endAdornment:y,fullWidth:g=!1,id:S,inputComponent:h="input",inputProps:m={},inputRef:C,maxRows:w,minRows:k,multiline:P=!1,name:E,onBlur:M,onChange:T,onClick:R,onFocus:O,onKeyDown:A,onKeyUp:$,placeholder:D,readOnly:_,renderSuffix:L,rows:V,slotProps:I={},slots:F={},startAdornment:z,type:ae="text",value:re}=o,de=Q(o,JM),W=m.value!=null?m.value:re,{current:ne}=x.useRef(W!=null),pe=x.useRef(),Y=x.useCallback(ge=>{},[]),me=tt(pe,C,m.ref,Y),[Se,Ee]=x.useState(!1),ee=jr(),X=qo({props:o,muiFormControl:ee,states:["color","disabled","error","hiddenLabel","size","required","filled"]});X.focused=ee?ee.focused:Se,x.useEffect(()=>{!ee&&p&&Se&&(Ee(!1),M&&M())},[ee,p,Se,M]);const j=ee&&ee.onFilled,U=ee&&ee.onEmpty,K=x.useCallback(ge=>{ad(ge)?j&&j():U&&U()},[j,U]);Lt(()=>{ne&&K({value:W})},[W,K,ne]);const xe=ge=>{if(X.disabled){ge.stopPropagation();return}O&&O(ge),m.onFocus&&m.onFocus(ge),ee&&ee.onFocus?ee.onFocus(ge):Ee(!0)},Ie=ge=>{M&&M(ge),m.onBlur&&m.onBlur(ge),ee&&ee.onBlur?ee.onBlur(ge):Ee(!1)},se=(ge,...ye)=>{if(!ne){const Ke=ge.target||pe.current;if(Ke==null)throw new Error(zo(1));K({value:Ke.value})}m.onChange&&m.onChange(ge,...ye),T&&T(ge,...ye)};x.useEffect(()=>{K(pe.current)},[]);const fe=ge=>{pe.current&&ge.currentTarget===ge.target&&pe.current.focus(),R&&R(ge)};let B=h,Z=m;P&&B==="input"&&(V?Z=b({type:void 0,minRows:V,maxRows:V},Z):Z=b({type:void 0,maxRows:w,minRows:k},Z),B=$M);const we=ge=>{K(ge.animationName==="mui-auto-fill-cancel"?pe.current:{value:"x"})};x.useEffect(()=>{ee&&ee.setAdornedStart(!!z)},[ee,z]);const $e=b({},o,{color:X.color||"primary",disabled:X.disabled,endAdornment:y,error:X.error,focused:X.focused,formControl:ee,fullWidth:g,hiddenLabel:X.hiddenLabel,multiline:P,size:X.size,startAdornment:z,type:ae}),ke=QM($e),q=F.root||c.Root||Mf,he=I.root||u.root||{},ve=F.input||c.Input||Tf;return Z=b({},Z,(r=I.input)!=null?r:u.input),d.jsxs(x.Fragment,{children:[!v&&eT,d.jsxs(q,b({},he,!Ir(q)&&{ownerState:b({},$e,he.ownerState)},{ref:n,onClick:fe},de,{className:le(ke.root,he.className,l,_&&"MuiInputBase-readOnly"),children:[z,d.jsx(kf.Provider,{value:null,children:d.jsx(ve,b({ownerState:$e,"aria-invalid":X.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:f,disabled:X.disabled,id:S,onAnimationStart:we,name:E,placeholder:D,readOnly:_,required:X.required,rows:V,value:W,onKeyDown:A,onKeyUp:$,type:ae},Z,!Ir(ve)&&{as:B,ownerState:b({},$e,Z.ownerState)},{ref:me,className:le(ke.input,Z.className,_&&"MuiInputBase-readOnly"),onBlur:Ie,onChange:se,onFocus:xe}))}),y,L?L(b({},X,{startAdornment:z})):null]}))]})}),$m=tT;function nT(e){return _e("MuiInput",e)}const rT=b({},Ws,Pe("MuiInput",["root","underline","input"])),xa=rT;function oT(e){return _e("MuiOutlinedInput",e)}const iT=b({},Ws,Pe("MuiOutlinedInput",["root","notchedOutline","input"])),bo=iT;function sT(e){return _e("MuiFilledInput",e)}const aT=b({},Ws,Pe("MuiFilledInput",["root","underline","input"])),Qo=aT,lT=Yt(d.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),cT=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],uT={entering:{opacity:1},entered:{opacity:1}},dT=x.forwardRef(function(t,n){const r=Le(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:l,in:c,onEnter:u,onEntered:f,onEntering:p,onExit:v,onExited:y,onExiting:g,style:S,timeout:h=o,TransitionComponent:m=bm}=t,C=Q(t,cT),w=x.useRef(null),k=tt(w,a.ref,n),P=D=>_=>{if(D){const L=w.current;_===void 0?D(L):D(L,_)}},E=P(p),M=P((D,_)=>{g6(D);const L=od({style:S,timeout:h,easing:l},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",L),D.style.transition=r.transitions.create("opacity",L),u&&u(D,_)}),T=P(f),R=P(g),O=P(D=>{const _=od({style:S,timeout:h,easing:l},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",_),D.style.transition=r.transitions.create("opacity",_),v&&v(D)}),A=P(y),$=D=>{i&&i(w.current,D)};return d.jsx(m,b({appear:s,in:c,nodeRef:w,onEnter:M,onEntered:T,onEntering:E,onExit:O,onExited:A,onExiting:R,addEndListener:$,timeout:h},C,{children:(D,_)=>x.cloneElement(a,b({style:b({opacity:0,visibility:D==="exited"&&!c?"hidden":void 0},uT[D],S,a.props.style),ref:k},_))}))}),ta=dT;function fT(e){return _e("MuiBackdrop",e)}Pe("MuiBackdrop",["root","invisible"]);const pT=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],hT=e=>{const{classes:t,invisible:n}=e;return De({root:["root",n&&"invisible"]},fT,t)},mT=H("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>b({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),gT=x.forwardRef(function(t,n){var r,o,i;const s=Te({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:c="div",components:u={},componentsProps:f={},invisible:p=!1,open:v,slotProps:y={},slots:g={},TransitionComponent:S=ta,transitionDuration:h}=s,m=Q(s,pT),C=b({},s,{component:c,invisible:p}),w=hT(C),k=(r=y.root)!=null?r:f.root;return d.jsx(S,b({in:v,timeout:h},m,{children:d.jsx(mT,b({"aria-hidden":!0},k,{as:(o=(i=g.root)!=null?i:u.Root)!=null?o:c,className:le(w.root,l,k==null?void 0:k.className),ownerState:b({},C,k==null?void 0:k.ownerState),classes:w,ref:n,children:a}))}))}),I6=gT,yT=Pe("MuiBox",["root"]),vT=yT,xT=tn(),CT=F9({themeId:bi,defaultTheme:xT,defaultClassName:vT.root,generateClassName:Z5.generate}),J=CT;function bT(e){return _e("MuiButton",e)}const wT=Pe("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Nc=wT,ST=x.createContext({}),kT=ST,ET=x.createContext(void 0),PT=ET,MT=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],TT=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${te(t)}`,`size${te(o)}`,`${i}Size${te(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${te(o)}`],endIcon:["endIcon",`iconSize${te(o)}`]},l=De(a,bT,s);return b({},s,l)},$6=e=>b({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),RT=H(Fr,{shouldForwardProp:e=>nn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${te(n.color)}`],t[`size${te(n.size)}`],t[`${n.variant}Size${te(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return b({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":b({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":b({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Nc.focusVisible}`]:b({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Nc.disabled}`]:b({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Ne(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Nc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Nc.disabled}`]:{boxShadow:"none"}}),DT=H("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${te(n.size)}`]]}})(({ownerState:e})=>b({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},$6(e))),_T=H("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${te(n.size)}`]]}})(({ownerState:e})=>b({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},$6(e))),OT=x.forwardRef(function(t,n){const r=x.useContext(kT),o=x.useContext(PT),i=C0(r,t),s=Te({props:i,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:v=!1,endIcon:y,focusVisibleClassName:g,fullWidth:S=!1,size:h="medium",startIcon:m,type:C,variant:w="text"}=s,k=Q(s,MT),P=b({},s,{color:l,component:c,disabled:f,disableElevation:p,disableFocusRipple:v,fullWidth:S,size:h,type:C,variant:w}),E=TT(P),M=m&&d.jsx(DT,{className:E.startIcon,ownerState:P,children:m}),T=y&&d.jsx(_T,{className:E.endIcon,ownerState:P,children:y}),R=o||"";return d.jsxs(RT,b({ownerState:P,className:le(r.className,E.root,u,R),component:c,disabled:f,focusRipple:!v,focusVisibleClassName:le(E.focusVisible,g),ref:n,type:C},k,{classes:E,children:[M,a,T]}))}),Mr=OT;function IT(e){return _e("PrivateSwitchBase",e)}Pe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const $T=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],FT=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${te(o)}`],input:["input"]};return De(i,IT,t)},AT=H(Fr)(({ownerState:e})=>b({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),LT=H("input",{shouldForwardProp:nn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),jT=x.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:s,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:f,id:p,inputProps:v,inputRef:y,name:g,onBlur:S,onChange:h,onFocus:m,readOnly:C,required:w=!1,tabIndex:k,type:P,value:E}=t,M=Q(t,$T),[T,R]=bn({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),O=jr(),A=F=>{m&&m(F),O&&O.onFocus&&O.onFocus(F)},$=F=>{S&&S(F),O&&O.onBlur&&O.onBlur(F)},D=F=>{if(F.nativeEvent.defaultPrevented)return;const z=F.target.checked;R(z),h&&h(F,z)};let _=l;O&&typeof _>"u"&&(_=O.disabled);const L=P==="checkbox"||P==="radio",V=b({},t,{checked:T,disabled:_,disableFocusRipple:c,edge:u}),I=FT(V);return d.jsxs(AT,b({component:"span",className:le(I.root,s),centerRipple:!0,focusRipple:!c,disabled:_,tabIndex:null,role:void 0,onFocus:A,onBlur:$,ownerState:V,ref:n},M,{children:[d.jsx(LT,b({autoFocus:r,checked:o,defaultChecked:a,className:I.input,disabled:_,id:L?p:void 0,name:g,onChange:D,readOnly:C,ref:y,required:w,ownerState:V,tabIndex:k,type:P},P==="checkbox"&&E===void 0?{}:{value:E},v)),T?i:f]}))}),F6=jT,NT=Yt(d.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),VT=Yt(d.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),zT=Yt(d.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function BT(e){return _e("MuiCheckbox",e)}const WT=Pe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Yp=WT,HT=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],UT=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${te(r)}`,`size${te(o)}`]},s=De(i,BT,t);return b({},t,s)},YT=H(F6,{shouldForwardProp:e=>nn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${te(n.size)}`],n.color!=="default"&&t[`color${te(n.color)}`]]}})(({theme:e,ownerState:t})=>b({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Yp.checked}, &.${Yp.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Yp.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),GT=d.jsx(VT,{}),KT=d.jsx(NT,{}),qT=d.jsx(zT,{}),ZT=x.forwardRef(function(t,n){var r,o;const i=Te({props:t,name:"MuiCheckbox"}),{checkedIcon:s=GT,color:a="primary",icon:l=KT,indeterminate:c=!1,indeterminateIcon:u=qT,inputProps:f,size:p="medium",className:v}=i,y=Q(i,HT),g=c?u:l,S=c?u:s,h=b({},i,{color:a,indeterminate:c,size:p}),m=UT(h);return d.jsx(YT,b({type:"checkbox",inputProps:b({"data-indeterminate":c},f),icon:x.cloneElement(g,{fontSize:(r=g.props.fontSize)!=null?r:p}),checkedIcon:x.cloneElement(S,{fontSize:(o=S.props.fontSize)!=null?o:p}),ownerState:h,ref:n,className:le(m.root,v)},y,{classes:m}))}),A6=ZT,XT=(e,t)=>b({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),JT=e=>b({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),QT=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,a])=>{var l;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=a.palette)==null?void 0:l.mode}});let o=b({html:XT(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:b({margin:0},JT(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return i&&(o=[o,i]),o};function eR(e){const t=Te({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return d.jsxs(x.Fragment,{children:[d.jsx(O6,{styles:o=>QT(o,r)}),n]})}function tR(e){return _e("MuiModal",e)}Pe("MuiModal",["root","hidden","backdrop"]);const nR=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],rR=e=>{const{open:t,exited:n,classes:r}=e;return De({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},tR,r)},oR=H("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>b({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),iR=H(I6,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),sR=x.forwardRef(function(t,n){var r,o,i,s,a,l;const c=Te({name:"MuiModal",props:t}),{BackdropComponent:u=iR,BackdropProps:f,className:p,closeAfterTransition:v=!1,children:y,container:g,component:S,components:h={},componentsProps:m={},disableAutoFocus:C=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:k=!1,disablePortal:P=!1,disableRestoreFocus:E=!1,disableScrollLock:M=!1,hideBackdrop:T=!1,keepMounted:R=!1,onBackdropClick:O,open:A,slotProps:$,slots:D}=c,_=Q(c,nR),L=b({},c,{closeAfterTransition:v,disableAutoFocus:C,disableEnforceFocus:w,disableEscapeKeyDown:k,disablePortal:P,disableRestoreFocus:E,disableScrollLock:M,hideBackdrop:T,keepMounted:R}),{getRootProps:V,getBackdropProps:I,getTransitionProps:F,portalRef:z,isTopModal:ae,exited:re,hasTransition:de}=kM(b({},L,{rootRef:n})),W=b({},L,{exited:re}),ne=rR(W),pe={};if(y.props.tabIndex===void 0&&(pe.tabIndex="-1"),de){const{onEnter:j,onExited:U}=F();pe.onEnter=j,pe.onExited=U}const Y=(r=(o=D==null?void 0:D.root)!=null?o:h.Root)!=null?r:oR,me=(i=(s=D==null?void 0:D.backdrop)!=null?s:h.Backdrop)!=null?i:u,Se=(a=$==null?void 0:$.root)!=null?a:m.root,Ee=(l=$==null?void 0:$.backdrop)!=null?l:m.backdrop,ee=We({elementType:Y,externalSlotProps:Se,externalForwardedProps:_,getSlotProps:V,additionalProps:{ref:n,as:S},ownerState:W,className:le(p,Se==null?void 0:Se.className,ne==null?void 0:ne.root,!W.open&&W.exited&&(ne==null?void 0:ne.hidden))}),X=We({elementType:me,externalSlotProps:Ee,additionalProps:f,getSlotProps:j=>I(b({},j,{onClick:U=>{O&&O(U),j!=null&&j.onClick&&j.onClick(U)}})),className:le(Ee==null?void 0:Ee.className,f==null?void 0:f.className,ne==null?void 0:ne.backdrop),ownerState:W});return!R&&!A&&(!de||re)?null:d.jsx(R6,{ref:z,container:g,disablePortal:P,children:d.jsxs(Y,b({},ee,{children:[!T&&u?d.jsx(me,b({},X)):null,d.jsx(x6,{disableEnforceFocus:w,disableAutoFocus:C,disableRestoreFocus:E,isEnabled:ae,open:A,children:x.cloneElement(y,pe)})]}))})}),Fm=sR;function aR(e){return _e("MuiDialog",e)}const nl=Pe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),lR=x.createContext({}),cR=lR,uR=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],dR=H(I6,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),fR=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${te(n)}`],paper:["paper",`paperScroll${te(n)}`,`paperWidth${te(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return De(s,aR,t)},pR=H(Fm,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),hR=H("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${te(n.scroll)}`]]}})(({ownerState:e})=>b({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),mR=H(Jl,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${te(n.scroll)}`],t[`paperWidth${te(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>b({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${nl.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${nl.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${nl.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),gR=x.forwardRef(function(t,n){const r=Te({props:t,name:"MuiDialog"}),o=Le(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:l,BackdropProps:c,children:u,className:f,disableEscapeKeyDown:p=!1,fullScreen:v=!1,fullWidth:y=!1,maxWidth:g="sm",onBackdropClick:S,onClose:h,open:m,PaperComponent:C=Jl,PaperProps:w={},scroll:k="paper",TransitionComponent:P=ta,transitionDuration:E=i,TransitionProps:M}=r,T=Q(r,uR),R=b({},r,{disableEscapeKeyDown:p,fullScreen:v,fullWidth:y,maxWidth:g,scroll:k}),O=fR(R),A=x.useRef(),$=V=>{A.current=V.target===V.currentTarget},D=V=>{A.current&&(A.current=null,S&&S(V),h&&h(V,"backdropClick"))},_=ho(a),L=x.useMemo(()=>({titleId:_}),[_]);return d.jsx(pR,b({className:le(O.root,f),closeAfterTransition:!0,components:{Backdrop:dR},componentsProps:{backdrop:b({transitionDuration:E,as:l},c)},disableEscapeKeyDown:p,onClose:h,open:m,ref:n,onClick:D,ownerState:R},T,{children:d.jsx(P,b({appear:!0,in:m,timeout:E,role:"presentation"},M,{children:d.jsx(hR,{className:le(O.container),onMouseDown:$,ownerState:R,children:d.jsx(mR,b({as:C,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":_},w,{className:le(O.paper,w.className),ownerState:R,children:d.jsx(cR.Provider,{value:L,children:u})}))})}))}))}),yR=gR;function vR(e){return _e("MuiDialogActions",e)}Pe("MuiDialogActions",["root","spacing"]);const xR=["className","disableSpacing"],CR=e=>{const{classes:t,disableSpacing:n}=e;return De({root:["root",!n&&"spacing"]},vR,t)},bR=H("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>b({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),wR=x.forwardRef(function(t,n){const r=Te({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,s=Q(r,xR),a=b({},r,{disableSpacing:i}),l=CR(a);return d.jsx(bR,b({className:le(l.root,o),ownerState:a,ref:n},s))}),SR=wR;function kR(e){return _e("MuiDialogContent",e)}Pe("MuiDialogContent",["root","dividers"]);const ER=Pe("MuiDialogTitle",["root"]),PR=ER,MR=["className","dividers"],TR=e=>{const{classes:t,dividers:n}=e;return De({root:["root",n&&"dividers"]},kR,t)},RR=H("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>b({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${PR.root} + &`]:{paddingTop:0}})),DR=x.forwardRef(function(t,n){const r=Te({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=Q(r,MR),a=b({},r,{dividers:i}),l=TR(a);return d.jsx(RR,b({className:le(l.root,o),ownerState:a,ref:n},s))}),_R=DR,OR=Pe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Ly=OR,IR=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],$R=e=>{const{classes:t,disableUnderline:n}=e,o=De({root:["root",!n&&"underline"],input:["input"]},sT,t);return b({},t,o)},FR=H(Mf,{shouldForwardProp:e=>nn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ef(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return b({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Qo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Qo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Qo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Qo.disabled}, .${Qo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Qo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&b({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),AR=H(Tf,{name:"MuiFilledInput",slot:"Input",overridesResolver:Pf})(({theme:e,ownerState:t})=>b({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),L6=x.forwardRef(function(t,n){var r,o,i,s;const a=Te({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:f="input",multiline:p=!1,slotProps:v,slots:y={},type:g="text"}=a,S=Q(a,IR),h=b({},a,{fullWidth:u,inputComponent:f,multiline:p,type:g}),m=$R(a),C={root:{ownerState:h},input:{ownerState:h}},w=v??c?Xt(C,v??c):C,k=(r=(o=y.root)!=null?o:l.Root)!=null?r:FR,P=(i=(s=y.input)!=null?s:l.Input)!=null?i:AR;return d.jsx($m,b({slots:{root:k,input:P},componentsProps:w,fullWidth:u,inputComponent:f,multiline:p,ref:n,type:g},S,{classes:m}))});L6.muiName="Input";const j6=L6;function LR(e){return _e("MuiFormControl",e)}Pe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const jR=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],NR=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${te(n)}`,r&&"fullWidth"]};return De(o,LR,t)},VR=H("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>b({},t.root,t[`margin${te(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>b({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),zR=x.forwardRef(function(t,n){const r=Te({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:f=!1,hiddenLabel:p=!1,margin:v="none",required:y=!1,size:g="medium",variant:S="outlined"}=r,h=Q(r,jR),m=b({},r,{color:s,component:a,disabled:l,error:c,fullWidth:f,hiddenLabel:p,margin:v,required:y,size:g,variant:S}),C=NR(m),[w,k]=x.useState(()=>{let $=!1;return o&&x.Children.forEach(o,D=>{if(!iu(D,["Input","Select"]))return;const _=iu(D,["Select"])?D.props.input:D;_&&qM(_.props)&&($=!0)}),$}),[P,E]=x.useState(()=>{let $=!1;return o&&x.Children.forEach(o,D=>{iu(D,["Input","Select"])&&(ad(D.props,!0)||ad(D.props.inputProps,!0))&&($=!0)}),$}),[M,T]=x.useState(!1);l&&M&&T(!1);const R=u!==void 0&&!l?u:M;let O;const A=x.useMemo(()=>({adornedStart:w,setAdornedStart:k,color:s,disabled:l,error:c,filled:P,focused:R,fullWidth:f,hiddenLabel:p,size:g,onBlur:()=>{T(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{T(!0)},registerEffect:O,required:y,variant:S}),[w,s,l,c,P,R,f,p,O,y,g,S]);return d.jsx(kf.Provider,{value:A,children:d.jsx(VR,b({as:a,ownerState:m,className:le(C.root,i),ref:n},h,{children:o}))})}),Rf=zR,BR=cw({createStyledComponent:H("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Te({props:e,name:"MuiStack"})}),WR=BR;function HR(e){return _e("MuiFormControlLabel",e)}const UR=Pe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Va=UR,YR=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],GR=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${te(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return De(s,HR,t)},KR=H("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Va.label}`]:t.label},t.root,t[`labelPlacement${te(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>b({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Va.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Va.label}`]:{[`&.${Va.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),qR=H("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Va.error}`]:{color:(e.vars||e).palette.error.main}})),ZR=x.forwardRef(function(t,n){var r,o;const i=Te({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:l,disabled:c,disableTypography:u,label:f,labelPlacement:p="end",required:v,slotProps:y={}}=i,g=Q(i,YR),S=jr(),h=(r=c??l.props.disabled)!=null?r:S==null?void 0:S.disabled,m=v??l.props.required,C={disabled:h,required:m};["checked","name","onChange","value","inputRef"].forEach(T=>{typeof l.props[T]>"u"&&typeof i[T]<"u"&&(C[T]=i[T])});const w=qo({props:i,muiFormControl:S,states:["error"]}),k=b({},i,{disabled:h,labelPlacement:p,required:m,error:w.error}),P=GR(k),E=(o=y.typography)!=null?o:a.typography;let M=f;return M!=null&&M.type!==Re&&!u&&(M=d.jsx(Re,b({component:"span"},E,{className:le(P.label,E==null?void 0:E.className),children:M}))),d.jsxs(KR,b({className:le(P.root,s),ownerState:k,ref:n},g,{children:[x.cloneElement(l,C),m?d.jsxs(WR,{display:"block",children:[M,d.jsxs(qR,{ownerState:k,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):M]}))}),tc=ZR;function XR(e){return _e("MuiFormGroup",e)}Pe("MuiFormGroup",["root","row","error"]);const JR=["className","row"],QR=e=>{const{classes:t,row:n,error:r}=e;return De({root:["root",n&&"row",r&&"error"]},XR,t)},eD=H("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>b({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),tD=x.forwardRef(function(t,n){const r=Te({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,s=Q(r,JR),a=jr(),l=qo({props:r,muiFormControl:a,states:["error"]}),c=b({},r,{row:i,error:l.error}),u=QR(c);return d.jsx(eD,b({className:le(u.root,o),ownerState:c,ref:n},s))}),N6=tD;function nD(e){return _e("MuiFormHelperText",e)}const rD=Pe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),jy=rD;var Ny;const oD=["children","className","component","disabled","error","filled","focused","margin","required","variant"],iD=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${te(r)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return De(c,nD,t)},sD=H("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${te(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>b({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${jy.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${jy.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),aD=x.forwardRef(function(t,n){const r=Te({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,a=Q(r,oD),l=jr(),c=qo({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=b({},r,{component:s,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=iD(u);return d.jsx(sD,b({as:s,ownerState:u,className:le(f.root,i),ref:n},a,{children:o===" "?Ny||(Ny=d.jsx("span",{className:"notranslate",children:"​"})):o}))}),lD=aD;function cD(e){return _e("MuiFormLabel",e)}const uD=Pe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),rl=uD,dD=["children","className","color","component","disabled","error","filled","focused","required"],fD=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,l={root:["root",`color${te(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return De(l,cD,t)},pD=H("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>b({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>b({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${rl.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${rl.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${rl.error}`]:{color:(e.vars||e).palette.error.main}})),hD=H("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${rl.error}`]:{color:(e.vars||e).palette.error.main}})),mD=x.forwardRef(function(t,n){const r=Te({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,a=Q(r,dD),l=jr(),c=qo({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=b({},r,{color:c.color||"primary",component:s,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),f=fD(u);return d.jsxs(pD,b({as:s,ownerState:u,className:le(f.root,i),ref:n},a,{children:[o,c.required&&d.jsxs(hD,{ownerState:u,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),gD=mD,yD=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function T1(e){return`scale(${e}, ${e**2})`}const vD={entering:{opacity:1,transform:T1(1)},entered:{opacity:1,transform:"none"}},Gp=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),V6=x.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:p,onExiting:v,style:y,timeout:g="auto",TransitionComponent:S=bm}=t,h=Q(t,yD),m=x.useRef(),C=x.useRef(),w=Le(),k=x.useRef(null),P=tt(k,i.ref,n),E=_=>L=>{if(_){const V=k.current;L===void 0?_(V):_(V,L)}},M=E(u),T=E((_,L)=>{g6(_);const{duration:V,delay:I,easing:F}=od({style:y,timeout:g,easing:s},{mode:"enter"});let z;g==="auto"?(z=w.transitions.getAutoHeightDuration(_.clientHeight),C.current=z):z=V,_.style.transition=[w.transitions.create("opacity",{duration:z,delay:I}),w.transitions.create("transform",{duration:Gp?z:z*.666,delay:I,easing:F})].join(","),l&&l(_,L)}),R=E(c),O=E(v),A=E(_=>{const{duration:L,delay:V,easing:I}=od({style:y,timeout:g,easing:s},{mode:"exit"});let F;g==="auto"?(F=w.transitions.getAutoHeightDuration(_.clientHeight),C.current=F):F=L,_.style.transition=[w.transitions.create("opacity",{duration:F,delay:V}),w.transitions.create("transform",{duration:Gp?F:F*.666,delay:Gp?V:V||F*.333,easing:I})].join(","),_.style.opacity=0,_.style.transform=T1(.75),f&&f(_)}),$=E(p),D=_=>{g==="auto"&&(m.current=setTimeout(_,C.current||0)),r&&r(k.current,_)};return x.useEffect(()=>()=>{clearTimeout(m.current)},[]),d.jsx(S,b({appear:o,in:a,nodeRef:k,onEnter:T,onEntered:R,onEntering:M,onExit:A,onExited:$,onExiting:O,addEndListener:D,timeout:g==="auto"?null:g},h,{children:(_,L)=>x.cloneElement(i,b({style:b({opacity:0,transform:T1(.75),visibility:_==="exited"&&!a?"hidden":void 0},vD[_],y,i.props.style),ref:P},L))}))});V6.muiSupportAuto=!0;const z6=V6;function xD(e,t,n,r,o){const[i,s]=x.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Lt(()=>{let a=!0;if(!n)return;const l=n(e),c=()=>{a&&s(l.matches)};return c(),l.addListener(c),()=>{a=!1,l.removeListener(c)}},[e,n]),i}const B6=x.useSyncExternalStore;function CD(e,t,n,r,o){const i=x.useCallback(()=>t,[t]),s=x.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return i},[i,e,r,o,n]),[a,l]=x.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const u=n(e);return[()=>u.matches,f=>(u.addListener(f),()=>{u.removeListener(f)})]},[i,n,e]);return B6(l,a,s)}function W6(e,t={}){const n=Yd(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:a=!1}=o8({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(B6!==void 0?CD:xD)(l,o,i,s,a)}const bD=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],wD=e=>{const{classes:t,disableUnderline:n}=e,o=De({root:["root",!n&&"underline"],input:["input"]},nT,t);return b({},t,o)},SD=H(Mf,{shouldForwardProp:e=>nn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ef(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),b({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xa.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xa.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xa.disabled}, .${xa.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${xa.disabled}:before`]:{borderBottomStyle:"dotted"}})}),kD=H(Tf,{name:"MuiInput",slot:"Input",overridesResolver:Pf})({}),H6=x.forwardRef(function(t,n){var r,o,i,s;const a=Te({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:f=!1,inputComponent:p="input",multiline:v=!1,slotProps:y,slots:g={},type:S="text"}=a,h=Q(a,bD),m=wD(a),w={root:{ownerState:{disableUnderline:l}}},k=y??u?Xt(y??u,w):w,P=(r=(o=g.root)!=null?o:c.Root)!=null?r:SD,E=(i=(s=g.input)!=null?s:c.Input)!=null?i:kD;return d.jsx($m,b({slots:{root:P,input:E},slotProps:k,fullWidth:f,inputComponent:p,multiline:v,ref:n,type:S},h,{classes:m}))});H6.muiName="Input";const U6=H6;function ED(e){return _e("MuiInputAdornment",e)}const PD=Pe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),Vy=PD;var zy;const MD=["children","className","component","disablePointerEvents","disableTypography","position","variant"],TD=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${te(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},RD=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${te(o)}`,s,r&&"hiddenLabel",i&&`size${te(i)}`]};return De(a,ED,t)},DD=H("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:TD})(({theme:e,ownerState:t})=>b({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${Vy.positionStart}&:not(.${Vy.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),_D=x.forwardRef(function(t,n){const r=Te({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:u}=r,f=Q(r,MD),p=jr()||{};let v=u;u&&p.variant,p&&!v&&(v=p.variant);const y=b({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:a,position:c,variant:v}),g=RD(y);return d.jsx(kf.Provider,{value:null,children:d.jsx(DD,b({as:s,ownerState:y,className:le(g.root,i),ref:n},f,{children:typeof o=="string"&&!l?d.jsx(Re,{color:"text.secondary",children:o}):d.jsxs(x.Fragment,{children:[c==="start"?zy||(zy=d.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),Am=_D;function OD(e){return _e("MuiInputLabel",e)}Pe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ID=["disableAnimation","margin","shrink","variant","className"],$D=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${te(r)}`,s],asterisk:[a&&"asterisk"]},c=De(l,OD,t);return b({},t,c)},FD=H(gD,{shouldForwardProp:e=>nn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${rl.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>b({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&b({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&b({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&b({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),AD=x.forwardRef(function(t,n){const r=Te({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:s}=r,a=Q(r,ID),l=jr();let c=i;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=qo({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),f=b({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),p=$D(f);return d.jsx(FD,b({"data-shrink":c,ownerState:f,ref:n,className:le(p.root,s)},a,{classes:p}))}),LD=AD;function jD(e){return _e("MuiLink",e)}const ND=Pe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),VD=ND,Y6={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},zD=e=>Y6[e]||e,BD=({theme:e,ownerState:t})=>{const n=zD(t.color),r=_s(e,`palette.${n}`,!1)||t.color,o=_s(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Ne(r,.4)},WD=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],HD=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${te(o)}`,n==="button"&&"button",r&&"focusVisible"]};return De(i,jD,t)},UD=H(Re,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${te(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>b({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&b({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:BD({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${VD.focusVisible}`]:{outline:"auto"}})),YD=x.forwardRef(function(t,n){const r=Te({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:s="a",onBlur:a,onFocus:l,TypographyClasses:c,underline:u="always",variant:f="inherit",sx:p}=r,v=Q(r,WD),{isFocusVisibleRef:y,onBlur:g,onFocus:S,ref:h}=jd(),[m,C]=x.useState(!1),w=tt(n,h),k=T=>{g(T),y.current===!1&&C(!1),a&&a(T)},P=T=>{S(T),y.current===!0&&C(!0),l&&l(T)},E=b({},r,{color:i,component:s,focusVisible:m,underline:u,variant:f}),M=HD(E);return d.jsx(UD,b({color:i,className:le(M.root,o),classes:c,component:s,onBlur:k,onFocus:P,ref:w,ownerState:E,variant:f,sx:[...Object.keys(Y6).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},v))}),ld=YD,GD=x.createContext({}),vi=GD;function KD(e){return _e("MuiList",e)}Pe("MuiList",["root","padding","dense","subheader"]);const qD=["children","className","component","dense","disablePadding","subheader"],ZD=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return De({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},KD,t)},XD=H("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>b({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),JD=x.forwardRef(function(t,n){const r=Te({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c}=r,u=Q(r,qD),f=x.useMemo(()=>({dense:a}),[a]),p=b({},r,{component:s,dense:a,disablePadding:l}),v=ZD(p);return d.jsx(vi.Provider,{value:f,children:d.jsxs(XD,b({as:s,className:le(v.root,i),ref:n,ownerState:p},u,{children:[c,o]}))})}),G6=JD;function QD(e){return _e("MuiListItem",e)}const e_=Pe("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),es=e_,t_=Pe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),n_=t_;function r_(e){return _e("MuiListItemSecondaryAction",e)}Pe("MuiListItemSecondaryAction",["root","disableGutters"]);const o_=["className"],i_=e=>{const{disableGutters:t,classes:n}=e;return De({root:["root",t&&"disableGutters"]},r_,n)},s_=H("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>b({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),K6=x.forwardRef(function(t,n){const r=Te({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=Q(r,o_),s=x.useContext(vi),a=b({},r,{disableGutters:s.disableGutters}),l=i_(a);return d.jsx(s_,b({className:le(l.root,o),ownerState:a,ref:n},i))});K6.muiName="ListItemSecondaryAction";const a_=K6,l_=["className"],c_=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],u_=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},d_=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:s,disablePadding:a,divider:l,hasSecondaryAction:c,selected:u}=e;return De({root:["root",o&&"dense",!s&&"gutters",!a&&"padding",l&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},QD,r)},f_=H("div",{name:"MuiListItem",slot:"Root",overridesResolver:u_})(({theme:e,ownerState:t})=>b({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&b({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${n_.root}`]:{paddingRight:48}},{[`&.${es.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${es.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${es.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${es.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${es.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),p_=H("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),h_=x.forwardRef(function(t,n){const r=Te({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:s=!1,children:a,className:l,component:c,components:u={},componentsProps:f={},ContainerComponent:p="li",ContainerProps:{className:v}={},dense:y=!1,disabled:g=!1,disableGutters:S=!1,disablePadding:h=!1,divider:m=!1,focusVisibleClassName:C,secondaryAction:w,selected:k=!1,slotProps:P={},slots:E={}}=r,M=Q(r.ContainerProps,l_),T=Q(r,c_),R=x.useContext(vi),O=x.useMemo(()=>({dense:y||R.dense||!1,alignItems:o,disableGutters:S}),[o,R.dense,y,S]),A=x.useRef(null);Lt(()=>{i&&A.current&&A.current.focus()},[i]);const $=x.Children.toArray(a),D=$.length&&iu($[$.length-1],["ListItemSecondaryAction"]),_=b({},r,{alignItems:o,autoFocus:i,button:s,dense:O.dense,disabled:g,disableGutters:S,disablePadding:h,divider:m,hasSecondaryAction:D,selected:k}),L=d_(_),V=tt(A,n),I=E.root||u.Root||f_,F=P.root||f.root||{},z=b({className:le(L.root,F.className,l),disabled:g},T);let ae=c||"li";return s&&(z.component=c||"div",z.focusVisibleClassName=le(es.focusVisible,C),ae=Fr),D?(ae=!z.component&&!c?"div":ae,p==="li"&&(ae==="li"?ae="div":z.component==="li"&&(z.component="div")),d.jsx(vi.Provider,{value:O,children:d.jsxs(p_,b({as:p,className:le(L.container,v),ref:V,ownerState:_},M,{children:[d.jsx(I,b({},F,!Ir(I)&&{as:ae,ownerState:b({},_,F.ownerState)},z,{children:$})),$.pop()]}))})):d.jsx(vi.Provider,{value:O,children:d.jsxs(I,b({},F,{as:ae,ref:V},!Ir(I)&&{ownerState:b({},_,F.ownerState)},z,{children:[$,w&&d.jsx(a_,{children:w})]}))})}),m_=h_,g_=Pe("MuiListItemIcon",["root","alignItemsFlexStart"]),By=g_,y_=Pe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Wy=y_,v_=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Kp(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Hy(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function q6(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Ca(e,t,n,r,o,i){let s=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!q6(a,i)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const x_=x.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:f="selectedMenu"}=t,p=Q(t,v_),v=x.useRef(null),y=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Lt(()=>{o&&v.current.focus()},[o]),x.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(C,w)=>{const k=!v.current.style.width;if(C.clientHeight{const w=v.current,k=C.key,P=Pt(w).activeElement;if(k==="ArrowDown")C.preventDefault(),Ca(w,P,c,l,Kp);else if(k==="ArrowUp")C.preventDefault(),Ca(w,P,c,l,Hy);else if(k==="Home")C.preventDefault(),Ca(w,null,c,l,Kp);else if(k==="End")C.preventDefault(),Ca(w,null,c,l,Hy);else if(k.length===1){const E=y.current,M=k.toLowerCase(),T=performance.now();E.keys.length>0&&(T-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&M!==E.keys[0]&&(E.repeating=!1)),E.lastTime=T,E.keys.push(M);const R=P&&!E.repeating&&q6(P,E);E.previousKeyMatched&&(R||Ca(w,P,!1,l,Kp,E))?C.preventDefault():E.previousKeyMatched=!1}u&&u(C)},S=tt(v,n);let h=-1;x.Children.forEach(s,(C,w)=>{if(!x.isValidElement(C)){h===w&&(h+=1,h>=s.length&&(h=-1));return}C.props.disabled||(f==="selectedMenu"&&C.props.selected||h===-1)&&(h=w),h===w&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(h+=1,h>=s.length&&(h=-1))});const m=x.Children.map(s,(C,w)=>{if(w===h){const k={};return i&&(k.autoFocus=!0),C.props.tabIndex===void 0&&f==="selectedMenu"&&(k.tabIndex=0),x.cloneElement(C,k)}return C});return d.jsx(G6,b({role:"menu",ref:S,className:a,onKeyDown:g,tabIndex:o?0:-1},p,{children:m}))}),C_=x_;function b_(e){return _e("MuiPopover",e)}Pe("MuiPopover",["root","paper"]);const w_=["onEntering"],S_=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],k_=["slotProps"];function Uy(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Yy(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Gy(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function qp(e){return typeof e=="function"?e():e}const E_=e=>{const{classes:t}=e;return De({root:["root"],paper:["paper"]},b_,t)},P_=H(Fm,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Z6=H(Jl,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),M_=x.forwardRef(function(t,n){var r,o,i;const s=Te({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:f="anchorEl",children:p,className:v,container:y,elevation:g=8,marginThreshold:S=16,open:h,PaperProps:m={},slots:C,slotProps:w,transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:P=z6,transitionDuration:E="auto",TransitionProps:{onEntering:M}={},disableScrollLock:T=!1}=s,R=Q(s.TransitionProps,w_),O=Q(s,S_),A=(r=w==null?void 0:w.paper)!=null?r:m,$=x.useRef(),D=tt($,A.ref),_=b({},s,{anchorOrigin:c,anchorReference:f,elevation:g,marginThreshold:S,externalPaperSlotProps:A,transformOrigin:k,TransitionComponent:P,transitionDuration:E,TransitionProps:R}),L=E_(_),V=x.useCallback(()=>{if(f==="anchorPosition")return u;const j=qp(l),K=(j&&j.nodeType===1?j:Pt($.current).body).getBoundingClientRect();return{top:K.top+Uy(K,c.vertical),left:K.left+Yy(K,c.horizontal)}},[l,c.horizontal,c.vertical,u,f]),I=x.useCallback(j=>({vertical:Uy(j,k.vertical),horizontal:Yy(j,k.horizontal)}),[k.horizontal,k.vertical]),F=x.useCallback(j=>{const U={width:j.offsetWidth,height:j.offsetHeight},K=I(U);if(f==="none")return{top:null,left:null,transformOrigin:Gy(K)};const xe=V();let Ie=xe.top-K.vertical,se=xe.left-K.horizontal;const fe=Ie+U.height,B=se+U.width,Z=wi(qp(l)),we=Z.innerHeight-S,$e=Z.innerWidth-S;if(S!==null&&Iewe){const ke=fe-we;Ie-=ke,K.vertical+=ke}if(S!==null&&se$e){const ke=B-$e;se-=ke,K.horizontal+=ke}return{top:`${Math.round(Ie)}px`,left:`${Math.round(se)}px`,transformOrigin:Gy(K)}},[l,f,V,I,S]),[z,ae]=x.useState(h),re=x.useCallback(()=>{const j=$.current;if(!j)return;const U=F(j);U.top!==null&&(j.style.top=U.top),U.left!==null&&(j.style.left=U.left),j.style.transformOrigin=U.transformOrigin,ae(!0)},[F]);x.useEffect(()=>(T&&window.addEventListener("scroll",re),()=>window.removeEventListener("scroll",re)),[l,T,re]);const de=(j,U)=>{M&&M(j,U),re()},W=()=>{ae(!1)};x.useEffect(()=>{h&&re()}),x.useImperativeHandle(a,()=>h?{updatePosition:()=>{re()}}:null,[h,re]),x.useEffect(()=>{if(!h)return;const j=G5(()=>{re()}),U=wi(l);return U.addEventListener("resize",j),()=>{j.clear(),U.removeEventListener("resize",j)}},[l,h,re]);let ne=E;E==="auto"&&!P.muiSupportAuto&&(ne=void 0);const pe=y||(l?Pt(qp(l)).body:void 0),Y=(o=C==null?void 0:C.root)!=null?o:P_,me=(i=C==null?void 0:C.paper)!=null?i:Z6,Se=We({elementType:me,externalSlotProps:b({},A,{style:z?A.style:b({},A.style,{opacity:0})}),additionalProps:{elevation:g,ref:D},ownerState:_,className:le(L.paper,A==null?void 0:A.className)}),Ee=We({elementType:Y,externalSlotProps:(w==null?void 0:w.root)||{},externalForwardedProps:O,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:pe,open:h},ownerState:_,className:le(L.root,v)}),{slotProps:ee}=Ee,X=Q(Ee,k_);return d.jsx(Y,b({},X,!Ir(Y)&&{slotProps:ee,disableScrollLock:T},{children:d.jsx(P,b({appear:!0,in:h,onEntering:de,onExited:W,timeout:ne},R,{children:d.jsx(me,b({},Se,{children:p}))}))}))}),T_=M_;function R_(e){return _e("MuiMenu",e)}Pe("MuiMenu",["root","paper","list"]);const D_=["onEntering"],__=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],O_={vertical:"top",horizontal:"right"},I_={vertical:"top",horizontal:"left"},$_=e=>{const{classes:t}=e;return De({root:["root"],paper:["paper"],list:["list"]},R_,t)},F_=H(T_,{shouldForwardProp:e=>nn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),A_=H(Z6,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),L_=H(C_,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),j_=x.forwardRef(function(t,n){var r,o;const i=Te({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:f,open:p,PaperProps:v={},PopoverClasses:y,transitionDuration:g="auto",TransitionProps:{onEntering:S}={},variant:h="selectedMenu",slots:m={},slotProps:C={}}=i,w=Q(i.TransitionProps,D_),k=Q(i,__),P=Le(),E=P.direction==="rtl",M=b({},i,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:u,onEntering:S,PaperProps:v,transitionDuration:g,TransitionProps:w,variant:h}),T=$_(M),R=s&&!c&&p,O=x.useRef(null),A=(F,z)=>{O.current&&O.current.adjustStyleForScrollbar(F,P),S&&S(F,z)},$=F=>{F.key==="Tab"&&(F.preventDefault(),f&&f(F,"tabKeyDown"))};let D=-1;x.Children.map(a,(F,z)=>{x.isValidElement(F)&&(F.props.disabled||(h==="selectedMenu"&&F.props.selected||D===-1)&&(D=z))});const _=(r=m.paper)!=null?r:A_,L=(o=C.paper)!=null?o:v,V=We({elementType:m.root,externalSlotProps:C.root,ownerState:M,className:[T.root,l]}),I=We({elementType:_,externalSlotProps:L,ownerState:M,className:T.paper});return d.jsx(F_,b({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?O_:I_,slots:{paper:_,root:m.root},slotProps:{root:V,paper:I},open:p,ref:n,transitionDuration:g,TransitionProps:b({onEntering:A},w),ownerState:M},k,{classes:y,children:d.jsx(L_,b({onKeyDown:$,actions:O,autoFocus:s&&(D===-1||c),autoFocusItem:R,variant:h},u,{className:le(T.list,u.className),children:a}))}))}),N_=j_;function V_(e){return _e("MuiMenuItem",e)}const z_=Pe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),ba=z_,B_=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],W_=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},H_=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,l=De({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},V_,s);return b({},s,l)},U_=H(Fr,{shouldForwardProp:e=>nn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:W_})(({theme:e,ownerState:t})=>b({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ba.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ba.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ba.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ne(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ba.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ba.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Ly.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Ly.inset}`]:{marginLeft:52},[`& .${Wy.root}`]:{marginTop:0,marginBottom:0},[`& .${Wy.inset}`]:{paddingLeft:36},[`& .${By.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&b({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${By.root} svg`]:{fontSize:"1.25rem"}}))),Y_=x.forwardRef(function(t,n){const r=Te({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:f,className:p}=r,v=Q(r,B_),y=x.useContext(vi),g=x.useMemo(()=>({dense:s||y.dense||!1,disableGutters:l}),[y.dense,s,l]),S=x.useRef(null);Lt(()=>{o&&S.current&&S.current.focus()},[o]);const h=b({},r,{dense:g.dense,divider:a,disableGutters:l}),m=H_(r),C=tt(S,n);let w;return r.disabled||(w=f!==void 0?f:-1),d.jsx(vi.Provider,{value:g,children:d.jsx(U_,b({ref:C,role:u,tabIndex:w,component:i,focusVisibleClassName:le(m.focusVisible,c),className:le(m.root,p)},v,{ownerState:h,classes:m}))})}),G_=Y_;function K_(e){return _e("MuiNativeSelect",e)}const q_=Pe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Lm=q_,Z_=["className","disabled","error","IconComponent","inputRef","variant"],X_=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${te(n)}`,i&&"iconOpen",r&&"disabled"]};return De(a,K_,t)},X6=({ownerState:e,theme:t})=>b({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":b({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Lm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),J_=H("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:nn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Lm.multiple}`]:t.multiple}]}})(X6),J6=({ownerState:e,theme:t})=>b({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Lm.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Q_=H("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${te(n.variant)}`],n.open&&t.iconOpen]}})(J6),eO=x.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:l="standard"}=t,c=Q(t,Z_),u=b({},t,{disabled:o,variant:l,error:i}),f=X_(u);return d.jsxs(x.Fragment,{children:[d.jsx(J_,b({ownerState:u,className:le(f.select,r),disabled:o,ref:a||n},c)),t.multiple?null:d.jsx(Q_,{as:s,ownerState:u,className:f.icon})]})}),tO=eO;var Ky;const nO=["children","classes","className","label","notched"],rO=H("fieldset",{shouldForwardProp:nn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),oO=H("legend",{shouldForwardProp:nn})(({ownerState:e,theme:t})=>b({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&b({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function iO(e){const{className:t,label:n,notched:r}=e,o=Q(e,nO),i=n!=null&&n!=="",s=b({},e,{notched:r,withLabel:i});return d.jsx(rO,b({"aria-hidden":!0,className:t,ownerState:s},o,{children:d.jsx(oO,{ownerState:s,children:i?d.jsx("span",{children:n}):Ky||(Ky=d.jsx("span",{className:"notranslate",children:"​"}))})}))}const sO=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],aO=e=>{const{classes:t}=e,r=De({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},oT,t);return b({},t,r)},lO=H(Mf,{shouldForwardProp:e=>nn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ef})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return b({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${bo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${bo.focused} .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${bo.error} .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${bo.disabled} .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&b({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),cO=H(iO,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),uO=H(Tf,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Pf})(({theme:e,ownerState:t})=>b({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Q6=x.forwardRef(function(t,n){var r,o,i,s,a;const l=Te({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:f="input",label:p,multiline:v=!1,notched:y,slots:g={},type:S="text"}=l,h=Q(l,sO),m=aO(l),C=jr(),w=qo({props:l,muiFormControl:C,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k=b({},l,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:C,fullWidth:u,hiddenLabel:w.hiddenLabel,multiline:v,size:w.size,type:S}),P=(r=(o=g.root)!=null?o:c.Root)!=null?r:lO,E=(i=(s=g.input)!=null?s:c.Input)!=null?i:uO;return d.jsx($m,b({slots:{root:P,input:E},renderSuffix:M=>d.jsx(cO,{ownerState:k,className:m.notchedOutline,label:p!=null&&p!==""&&w.required?a||(a=d.jsxs(x.Fragment,{children:[p," ","*"]})):p,notched:typeof y<"u"?y:!!(M.startAdornment||M.filled||M.focused)}),fullWidth:u,inputComponent:f,multiline:v,ref:n,type:S},h,{classes:b({},m,{notchedOutline:null})}))});Q6.muiName="Input";const ex=Q6,dO=Yt(d.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),fO=Yt(d.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),pO=H("span",{shouldForwardProp:nn})({position:"relative",display:"flex"}),hO=H(dO)({transform:"scale(1)"}),mO=H(fO)(({theme:e,ownerState:t})=>b({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function tx(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=b({},e,{checked:t});return d.jsxs(pO,{className:n.root,ownerState:o,children:[d.jsx(hO,{fontSize:r,className:n.background,ownerState:o}),d.jsx(mO,{fontSize:r,className:n.dot,ownerState:o})]})}const gO=x.createContext(void 0),nx=gO;function yO(){return x.useContext(nx)}function vO(e){return _e("MuiRadio",e)}const qy=Pe("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),xO=["checked","checkedIcon","color","icon","name","onChange","size","className"],CO=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${te(n)}`,r!=="medium"&&`size${te(r)}`]};return b({},t,De(o,vO,t))},bO=H(F6,{shouldForwardProp:e=>nn(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${te(n.size)}`],t[`color${te(n.color)}`]]}})(({theme:e,ownerState:t})=>b({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${qy.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${qy.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function wO(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const Zy=d.jsx(tx,{checked:!0}),Xy=d.jsx(tx,{}),SO=x.forwardRef(function(t,n){var r,o;const i=Te({props:t,name:"MuiRadio"}),{checked:s,checkedIcon:a=Zy,color:l="primary",icon:c=Xy,name:u,onChange:f,size:p="medium",className:v}=i,y=Q(i,xO),g=b({},i,{color:l,size:p}),S=CO(g),h=yO();let m=s;const C=Ph(f,h&&h.onChange);let w=u;return h&&(typeof m>"u"&&(m=wO(h.value,i.value)),typeof w>"u"&&(w=h.name)),d.jsx(bO,b({type:"radio",icon:x.cloneElement(c,{fontSize:(r=Xy.props.fontSize)!=null?r:p}),checkedIcon:x.cloneElement(a,{fontSize:(o=Zy.props.fontSize)!=null?o:p}),ownerState:g,classes:S,name:w,checked:m,onChange:C,ref:n,className:le(S.root,v)},y))}),Df=SO,kO=["actions","children","defaultValue","name","onChange","value"],EO=x.forwardRef(function(t,n){const{actions:r,children:o,defaultValue:i,name:s,onChange:a,value:l}=t,c=Q(t,kO),u=x.useRef(null),[f,p]=bn({controlled:l,default:i,name:"RadioGroup"});x.useImperativeHandle(r,()=>({focus:()=>{let S=u.current.querySelector("input:not(:disabled):checked");S||(S=u.current.querySelector("input:not(:disabled)")),S&&S.focus()}}),[]);const v=tt(n,u),y=ho(s),g=x.useMemo(()=>({name:y,onChange(S){p(S.target.value),a&&a(S,S.target.value)},value:f}),[y,a,p,f]);return d.jsx(nx.Provider,{value:g,children:d.jsx(N6,b({role:"radiogroup",ref:v},c,{children:o}))})}),_f=EO,PO=Yt(d.jsx("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),MO=Yt(d.jsx("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarBorder");function TO(e){return _e("MuiRating",e)}const RO=Pe("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]),wa=RO,DO=["value"],_O=["className","defaultValue","disabled","emptyIcon","emptyLabelText","getLabelText","highlightSelectedOnly","icon","IconContainerComponent","max","name","onChange","onChangeActive","onMouseLeave","onMouseMove","precision","readOnly","size","value"];function OO(e){const t=e.toString().split(".")[1];return t?t.length:0}function Zp(e,t){if(e==null)return e;const n=Math.round(e/t)*t;return Number(n.toFixed(OO(t)))}const IO=e=>{const{classes:t,size:n,readOnly:r,disabled:o,emptyValueFocused:i,focusVisible:s}=e,a={root:["root",`size${te(n)}`,o&&"disabled",s&&"focusVisible",r&&"readOnly"],label:["label","pristine"],labelEmptyValue:[i&&"labelEmptyValueActive"],icon:["icon"],iconEmpty:["iconEmpty"],iconFilled:["iconFilled"],iconHover:["iconHover"],iconFocus:["iconFocus"],iconActive:["iconActive"],decimal:["decimal"],visuallyHidden:["visuallyHidden"]};return De(a,TO,t)},$O=H("span",{name:"MuiRating",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${wa.visuallyHidden}`]:t.visuallyHidden},t.root,t[`size${te(n.size)}`],n.readOnly&&t.readOnly]}})(({theme:e,ownerState:t})=>b({display:"inline-flex",position:"relative",fontSize:e.typography.pxToRem(24),color:"#faaf00",cursor:"pointer",textAlign:"left",WebkitTapHighlightColor:"transparent",[`&.${wa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${wa.focusVisible} .${wa.iconActive}`]:{outline:"1px solid #999"},[`& .${wa.visuallyHidden}`]:q5},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(30)},t.readOnly&&{pointerEvents:"none"})),rx=H("label",{name:"MuiRating",slot:"Label",overridesResolver:({ownerState:e},t)=>[t.label,e.emptyValueFocused&&t.labelEmptyValueActive]})(({ownerState:e})=>b({cursor:"inherit"},e.emptyValueFocused&&{top:0,bottom:0,position:"absolute",outline:"1px solid #999",width:"100%"})),FO=H("span",{name:"MuiRating",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.iconEmpty&&t.iconEmpty,n.iconFilled&&t.iconFilled,n.iconHover&&t.iconHover,n.iconFocus&&t.iconFocus,n.iconActive&&t.iconActive]}})(({theme:e,ownerState:t})=>b({display:"flex",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),pointerEvents:"none"},t.iconActive&&{transform:"scale(1.2)"},t.iconEmpty&&{color:(e.vars||e).palette.action.disabled})),AO=H("span",{name:"MuiRating",slot:"Decimal",shouldForwardProp:e=>qd(e)&&e!=="iconActive",overridesResolver:(e,t)=>{const{iconActive:n}=e;return[t.decimal,n&&t.iconActive]}})(({iconActive:e})=>b({position:"relative"},e&&{transform:"scale(1.2)"}));function LO(e){const t=Q(e,DO);return d.jsx("span",b({},t))}function Jy(e){const{classes:t,disabled:n,emptyIcon:r,focus:o,getLabelText:i,highlightSelectedOnly:s,hover:a,icon:l,IconContainerComponent:c,isActive:u,itemValue:f,labelProps:p,name:v,onBlur:y,onChange:g,onClick:S,onFocus:h,readOnly:m,ownerState:C,ratingValue:w,ratingValueRounded:k}=e,P=s?f===w:f<=w,E=f<=a,M=f<=o,T=f===k,R=ho(),O=d.jsx(FO,{as:c,value:f,className:le(t.icon,P?t.iconFilled:t.iconEmpty,E&&t.iconHover,M&&t.iconFocus,u&&t.iconActive),ownerState:b({},C,{iconEmpty:!P,iconFilled:P,iconHover:E,iconFocus:M,iconActive:u}),children:r&&!P?r:l});return m?d.jsx("span",b({},p,{children:O})):d.jsxs(x.Fragment,{children:[d.jsxs(rx,b({ownerState:b({},C,{emptyValueFocused:void 0}),htmlFor:R},p,{children:[O,d.jsx("span",{className:t.visuallyHidden,children:i(f)})]})),d.jsx("input",{className:t.visuallyHidden,onFocus:h,onBlur:y,onChange:g,onClick:S,disabled:n,value:f,id:R,type:"radio",name:v,checked:T})]})}const jO=d.jsx(PO,{fontSize:"inherit"}),NO=d.jsx(MO,{fontSize:"inherit"});function VO(e){return`${e} Star${e!==1?"s":""}`}const zO=x.forwardRef(function(t,n){const r=Te({name:"MuiRating",props:t}),{className:o,defaultValue:i=null,disabled:s=!1,emptyIcon:a=NO,emptyLabelText:l="Empty",getLabelText:c=VO,highlightSelectedOnly:u=!1,icon:f=jO,IconContainerComponent:p=LO,max:v=5,name:y,onChange:g,onChangeActive:S,onMouseLeave:h,onMouseMove:m,precision:C=1,readOnly:w=!1,size:k="medium",value:P}=r,E=Q(r,_O),M=ho(y),[T,R]=bn({controlled:P,default:i,name:"Rating"}),O=Zp(T,C),A=Le(),[{hover:$,focus:D},_]=x.useState({hover:-1,focus:-1});let L=O;$!==-1&&(L=$),D!==-1&&(L=D);const{isFocusVisibleRef:V,onBlur:I,onFocus:F,ref:z}=jd(),[ae,re]=x.useState(!1),de=x.useRef(),W=tt(z,de,n),ne=K=>{m&&m(K);const xe=de.current,{right:Ie,left:se,width:fe}=xe.getBoundingClientRect();let B;A.direction==="rtl"?B=(Ie-K.clientX)/fe:B=(K.clientX-se)/fe;let Z=Zp(v*B+C/2,C);Z=li(Z,C,v),_(we=>we.hover===Z&&we.focus===Z?we:{hover:Z,focus:Z}),re(!1),S&&$!==Z&&S(K,Z)},pe=K=>{h&&h(K);const xe=-1;_({hover:xe,focus:xe}),S&&$!==xe&&S(K,xe)},Y=K=>{let xe=K.target.value===""?null:parseFloat(K.target.value);$!==-1&&(xe=$),R(xe),g&&g(K,xe)},me=K=>{K.clientX===0&&K.clientY===0||(_({hover:-1,focus:-1}),R(null),g&&parseFloat(K.target.value)===O&&g(K,null))},Se=K=>{F(K),V.current===!0&&re(!0);const xe=parseFloat(K.target.value);_(Ie=>({hover:Ie.hover,focus:xe}))},Ee=K=>{if($!==-1)return;I(K),V.current===!1&&re(!1);const xe=-1;_(Ie=>({hover:Ie.hover,focus:xe}))},[ee,X]=x.useState(!1),j=b({},r,{defaultValue:i,disabled:s,emptyIcon:a,emptyLabelText:l,emptyValueFocused:ee,focusVisible:ae,getLabelText:c,icon:f,IconContainerComponent:p,max:v,precision:C,readOnly:w,size:k}),U=IO(j);return d.jsxs($O,b({ref:W,onMouseMove:ne,onMouseLeave:pe,className:le(U.root,o,w&&"MuiRating-readOnly"),ownerState:j,role:w?"img":null,"aria-label":w?c(L):null},E,{children:[Array.from(new Array(v)).map((K,xe)=>{const Ie=xe+1,se={classes:U,disabled:s,emptyIcon:a,focus:D,getLabelText:c,highlightSelectedOnly:u,hover:$,icon:f,IconContainerComponent:p,name:M,onBlur:Ee,onChange:Y,onClick:me,onFocus:Se,ratingValue:L,ratingValueRounded:O,readOnly:w,ownerState:j},fe=Ie===Math.ceil(L)&&($!==-1||D!==-1);if(C<1){const B=Array.from(new Array(1/C));return d.jsx(AO,{className:le(U.decimal,fe&&U.iconActive),ownerState:j,iconActive:fe,children:B.map((Z,we)=>{const $e=Zp(Ie-1+(we+1)*C,C);return d.jsx(Jy,b({},se,{isActive:!1,itemValue:$e,labelProps:{style:B.length-1===we?{}:{width:$e===L?`${(we+1)*C*100}%`:"0%",overflow:"hidden",position:"absolute"}}}),$e)})},Ie)}return d.jsx(Jy,b({},se,{isActive:fe,itemValue:Ie}),Ie)}),!w&&!s&&d.jsxs(rx,{className:le(U.label,U.labelEmptyValue),ownerState:j,children:[d.jsx("input",{className:U.visuallyHidden,value:"",id:`${M}-empty`,type:"radio",name:M,checked:O==null,onFocus:()=>X(!0),onBlur:()=>X(!1),onChange:Y}),d.jsx("span",{className:U.visuallyHidden,children:l})]})]}))}),BO=zO;function WO(e){return _e("MuiSelect",e)}const Sa=Pe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Qy;const HO=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],UO=H("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Sa.select}`]:t.select},{[`&.${Sa.select}`]:t[n.variant]},{[`&.${Sa.error}`]:t.error},{[`&.${Sa.multiple}`]:t.multiple}]}})(X6,{[`&.${Sa.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),YO=H("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${te(n.variant)}`],n.open&&t.iconOpen]}})(J6),GO=H("input",{shouldForwardProp:e=>qd(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function ev(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function KO(e){return e==null||typeof e=="string"&&!e.trim()}const qO=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${te(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return De(a,WO,t)},ZO=x.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":i,autoFocus:s,autoWidth:a,children:l,className:c,defaultOpen:u,defaultValue:f,disabled:p,displayEmpty:v,error:y=!1,IconComponent:g,inputRef:S,labelId:h,MenuProps:m={},multiple:C,name:w,onBlur:k,onChange:P,onClose:E,onFocus:M,onOpen:T,open:R,readOnly:O,renderValue:A,SelectDisplayProps:$={},tabIndex:D,value:_,variant:L="standard"}=t,V=Q(t,HO),[I,F]=bn({controlled:_,default:f,name:"Select"}),[z,ae]=bn({controlled:R,default:u,name:"Select"}),re=x.useRef(null),de=x.useRef(null),[W,ne]=x.useState(null),{current:pe}=x.useRef(R!=null),[Y,me]=x.useState(),Se=tt(n,S),Ee=x.useCallback(ue=>{de.current=ue,ue&&ne(ue)},[]),ee=W==null?void 0:W.parentNode;x.useImperativeHandle(Se,()=>({focus:()=>{de.current.focus()},node:re.current,value:I}),[I]),x.useEffect(()=>{u&&z&&W&&!pe&&(me(a?null:ee.clientWidth),de.current.focus())},[W,a]),x.useEffect(()=>{s&&de.current.focus()},[s]),x.useEffect(()=>{if(!h)return;const ue=Pt(de.current).getElementById(h);if(ue){const je=()=>{getSelection().isCollapsed&&de.current.focus()};return ue.addEventListener("click",je),()=>{ue.removeEventListener("click",je)}}},[h]);const X=(ue,je)=>{ue?T&&T(je):E&&E(je),pe||(me(a?null:ee.clientWidth),ae(ue))},j=ue=>{ue.button===0&&(ue.preventDefault(),de.current.focus(),X(!0,ue))},U=ue=>{X(!1,ue)},K=x.Children.toArray(l),xe=ue=>{const je=K.find(ut=>ut.props.value===ue.target.value);je!==void 0&&(F(je.props.value),P&&P(ue,je))},Ie=ue=>je=>{let ut;if(je.currentTarget.hasAttribute("tabindex")){if(C){ut=Array.isArray(I)?I.slice():[];const bt=I.indexOf(ue.props.value);bt===-1?ut.push(ue.props.value):ut.splice(bt,1)}else ut=ue.props.value;if(ue.props.onClick&&ue.props.onClick(je),I!==ut&&(F(ut),P)){const bt=je.nativeEvent||je,xo=new bt.constructor(bt.type,bt);Object.defineProperty(xo,"target",{writable:!0,value:{value:ut,name:w}}),P(xo,ue)}C||X(!1,je)}},se=ue=>{O||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ue.key)!==-1&&(ue.preventDefault(),X(!0,ue))},fe=W!==null&&z,B=ue=>{!fe&&k&&(Object.defineProperty(ue,"target",{writable:!0,value:{value:I,name:w}}),k(ue))};delete V["aria-invalid"];let Z,we;const $e=[];let ke=!1;(ad({value:I})||v)&&(A?Z=A(I):ke=!0);const q=K.map(ue=>{if(!x.isValidElement(ue))return null;let je;if(C){if(!Array.isArray(I))throw new Error(zo(2));je=I.some(ut=>ev(ut,ue.props.value)),je&&ke&&$e.push(ue.props.children)}else je=ev(I,ue.props.value),je&&ke&&(we=ue.props.children);return x.cloneElement(ue,{"aria-selected":je?"true":"false",onClick:Ie(ue),onKeyUp:ut=>{ut.key===" "&&ut.preventDefault(),ue.props.onKeyUp&&ue.props.onKeyUp(ut)},role:"option",selected:je,value:void 0,"data-value":ue.props.value})});ke&&(C?$e.length===0?Z=null:Z=$e.reduce((ue,je,ut)=>(ue.push(je),ut<$e.length-1&&ue.push(", "),ue),[]):Z=we);let he=Y;!a&&pe&&W&&(he=ee.clientWidth);let ve;typeof D<"u"?ve=D:ve=p?null:0;const ge=$.id||(w?`mui-component-select-${w}`:void 0),ye=b({},t,{variant:L,value:I,open:fe,error:y}),Ke=qO(ye),Ve=b({},m.PaperProps,(r=m.slotProps)==null?void 0:r.paper),He=ho();return d.jsxs(x.Fragment,{children:[d.jsx(UO,b({ref:Ee,tabIndex:ve,role:"combobox","aria-controls":He,"aria-disabled":p?"true":void 0,"aria-expanded":fe?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[h,ge].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:se,onMouseDown:p||O?null:j,onBlur:B,onFocus:M},$,{ownerState:ye,className:le($.className,Ke.select,c),id:ge,children:KO(Z)?Qy||(Qy=d.jsx("span",{className:"notranslate",children:"​"})):Z})),d.jsx(GO,b({"aria-invalid":y,value:Array.isArray(I)?I.join(","):I,name:w,ref:re,"aria-hidden":!0,onChange:xe,tabIndex:-1,disabled:p,className:Ke.nativeInput,autoFocus:s,ownerState:ye},V)),d.jsx(YO,{as:g,className:Ke.icon,ownerState:ye}),d.jsx(N_,b({id:`menu-${w||""}`,anchorEl:ee,open:fe,onClose:U,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},m,{MenuListProps:b({"aria-labelledby":h,role:"listbox","aria-multiselectable":C?"true":void 0,disableListWrap:!0,id:He},m.MenuListProps),slotProps:b({},m.slotProps,{paper:b({},Ve,{style:b({minWidth:he},Ve!=null?Ve.style:null)})}),children:q}))]})}),XO=ZO,JO=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],QO=["root"],eI=e=>{const{classes:t}=e;return t},jm={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>nn(e)&&e!=="variant",slot:"Root"},tI=H(U6,jm)(""),nI=H(ex,jm)(""),rI=H(j6,jm)(""),ox=x.forwardRef(function(t,n){const r=Te({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=lT,id:f,input:p,inputProps:v,label:y,labelId:g,MenuProps:S,multiple:h=!1,native:m=!1,onClose:C,onOpen:w,open:k,renderValue:P,SelectDisplayProps:E,variant:M="outlined"}=r,T=Q(r,JO),R=m?tO:XO,O=jr(),A=qo({props:r,muiFormControl:O,states:["variant","error"]}),$=A.variant||M,D=b({},r,{variant:$,classes:s}),_=eI(D),L=Q(_,QO),V=p||{standard:d.jsx(tI,{ownerState:D}),outlined:d.jsx(nI,{label:y,ownerState:D}),filled:d.jsx(rI,{ownerState:D})}[$],I=tt(n,V.ref);return d.jsx(x.Fragment,{children:x.cloneElement(V,b({inputComponent:R,inputProps:b({children:i,error:A.error,IconComponent:u,variant:$,type:void 0,multiple:h},m?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:g,MenuProps:S,onClose:C,onOpen:w,open:k,renderValue:P,SelectDisplayProps:b({id:f},E)},v,{classes:v?Xt(L,v.classes):L},p?p.props.inputProps:{})},h&&m&&$==="outlined"?{notched:!0}:{},{ref:I,className:le(V.props.className,a,_.root)},!p&&{variant:$},T))})});ox.muiName="Select";const ix=ox;function oI(e){return _e("MuiSkeleton",e)}Pe("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const iI=["animation","className","component","height","style","variant","width"];let cd=e=>e,tv,nv,rv,ov;const sI=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:s}=e;return De({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!s&&"heightAuto"]},oI,t)},aI=Hl(tv||(tv=cd` 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } `)),lI=Hl(nv||(nv=cd` 0% { transform: translateX(-100%); } 50% { /* +0.5s of delay between each loop */ transform: translateX(100%); } 100% { transform: translateX(100%); } `)),cI=H("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=$w(e.shape.borderRadius)||"px",r=Fw(e.shape.borderRadius);return b({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:Ne(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&kh(rv||(rv=cd` animation: ${0} 2s ease-in-out 0.5s infinite; `),aI),({ownerState:e,theme:t})=>e.animation==="wave"&&kh(ov||(ov=cd` position: relative; overflow: hidden; /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */ -webkit-mask-image: -webkit-radial-gradient(white, black); &::after { animation: ${0} 2s linear 0.5s infinite; background: linear-gradient( 90deg, transparent, ${0}, transparent ); content: ''; position: absolute; transform: translateX(-100%); /* Avoid flash during server-side hydration */ bottom: 0; left: 0; right: 0; top: 0; } `),lI,(t.vars||t).palette.action.hover)),uI=x.forwardRef(function(t,n){const r=Te({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:s="span",height:a,style:l,variant:c="text",width:u}=r,f=Q(r,iI),p=b({},r,{animation:o,component:s,variant:c,hasChildren:!!f.children}),v=sI(p);return d.jsx(cI,b({as:s,ref:n,className:le(v.root,i),ownerState:p},f,{style:b({width:u,height:a},l)}))}),dI=uI,fI=e=>!e||!Ir(e);function pI(e){return _e("MuiSlider",e)}const ur=Pe("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"]),hI=e=>{const{open:t}=e;return{offset:le(t&&ur.valueLabelOpen),circle:ur.valueLabelCircle,label:ur.valueLabelLabel}};function mI(e){const{children:t,className:n,value:r}=e,o=hI(e);return t?x.cloneElement(t,{className:le(t.props.className)},d.jsxs(x.Fragment,{children:[t.props.children,d.jsx("span",{className:le(o.offset,n),"aria-hidden":!0,children:d.jsx("span",{className:o.circle,children:d.jsx("span",{className:o.label,children:r})})})]})):null}const gI=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function iv(e){return e}const yI=H("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${te(n.color)}`],n.size!=="medium"&&t[`size${te(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>b({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&b({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&b({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${ur.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${ur.dragging}`]:{[`& .${ur.thumb}, & .${ur.track}`]:{transition:"none"}}})),vI=H("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>b({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),xI=H("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?a8(e.palette[t.color].main,.62):s8(e.palette[t.color].main,.5);return b({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})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),CI=H("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${te(n.color)}`],n.size!=="medium"&&t[`thumbSize${te(n.size)}`]]}})(({theme:e,ownerState:t})=>b({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})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&::before":b({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${ur.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Ne(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${ur.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Ne(e.palette[t.color].main,.16)}`},[`&.${ur.disabled}`]:{"&:hover":{boxShadow:"none"}}})),bI=H(mI,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>b({[`&.${ur.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{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%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"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%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),wI=H("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>qd(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>b({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),SI=H("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>qd(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>b({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),kI=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:s,color:a,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",a&&`color${te(a)}`,l&&`size${te(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${te(l)}`,a&&`thumbColor${te(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return De(c,pI,s)},EI=({children:e})=>e,PI=x.forwardRef(function(t,n){var r,o,i,s,a,l,c,u,f,p,v,y,g,S,h,m,C,w,k,P,E,M,T,R;const O=Te({props:t,name:"MuiSlider"}),$=Le().direction==="rtl",{"aria-label":D,"aria-valuetext":_,"aria-labelledby":L,component:V="span",components:I={},componentsProps:F={},color:z="primary",classes:ae,className:re,disableSwap:de=!1,disabled:W=!1,getAriaLabel:ne,getAriaValueText:pe,marks:Y=!1,max:me=100,min:Se=0,orientation:Ee="horizontal",size:ee="medium",step:X=1,scale:j=iv,slotProps:U,slots:K,track:xe="normal",valueLabelDisplay:Ie="off",valueLabelFormat:se=iv}=O,fe=Q(O,gI),B=b({},O,{isRtl:$,max:me,min:Se,classes:ae,disabled:W,disableSwap:de,orientation:Ee,marks:Y,color:z,size:ee,step:X,scale:j,track:xe,valueLabelDisplay:Ie,valueLabelFormat:se}),{axisProps:Z,getRootProps:we,getHiddenInputProps:$e,getThumbProps:ke,open:q,active:he,axis:ve,focusedThumbIndex:ge,range:ye,dragging:Ke,marks:Ve,values:He,trackOffset:ue,trackLeap:je,getThumbStyle:ut}=_M(b({},B,{rootRef:n}));B.marked=Ve.length>0&&Ve.some(_t=>_t.label),B.dragging=Ke,B.focusedThumbIndex=ge;const bt=kI(B),xo=(r=(o=K==null?void 0:K.root)!=null?o:I.Root)!=null?r:yI,ji=(i=(s=K==null?void 0:K.rail)!=null?s:I.Rail)!=null?i:vI,sa=(a=(l=K==null?void 0:K.track)!=null?l:I.Track)!=null?a:xI,Ni=(c=(u=K==null?void 0:K.thumb)!=null?u:I.Thumb)!=null?c:CI,Vi=(f=(p=K==null?void 0:K.valueLabel)!=null?p:I.ValueLabel)!=null?f:bI,Xo=(v=(y=K==null?void 0:K.mark)!=null?y:I.Mark)!=null?v:wI,aa=(g=(S=K==null?void 0:K.markLabel)!=null?S:I.MarkLabel)!=null?g:SI,at=(h=(m=K==null?void 0:K.input)!=null?m:I.Input)!=null?h:"input",un=(C=U==null?void 0:U.root)!=null?C:F.root,Jo=(w=U==null?void 0:U.rail)!=null?w:F.rail,Ln=(k=U==null?void 0:U.track)!=null?k:F.track,lp=(P=U==null?void 0:U.thumb)!=null?P:F.thumb,cp=(E=U==null?void 0:U.valueLabel)!=null?E:F.valueLabel,D4=(M=U==null?void 0:U.mark)!=null?M:F.mark,_4=(T=U==null?void 0:U.markLabel)!=null?T:F.markLabel,O4=(R=U==null?void 0:U.input)!=null?R:F.input,I4=We({elementType:xo,getSlotProps:we,externalSlotProps:un,externalForwardedProps:fe,additionalProps:b({},fI(xo)&&{as:V}),ownerState:b({},B,un==null?void 0:un.ownerState),className:[bt.root,re]}),$4=We({elementType:ji,externalSlotProps:Jo,ownerState:B,className:bt.rail}),F4=We({elementType:sa,externalSlotProps:Ln,additionalProps:{style:b({},Z[ve].offset(ue),Z[ve].leap(je))},ownerState:b({},B,Ln==null?void 0:Ln.ownerState),className:bt.track}),up=We({elementType:Ni,getSlotProps:ke,externalSlotProps:lp,ownerState:b({},B,lp==null?void 0:lp.ownerState),className:bt.thumb}),A4=We({elementType:Vi,externalSlotProps:cp,ownerState:b({},B,cp==null?void 0:cp.ownerState),className:bt.valueLabel}),dp=We({elementType:Xo,externalSlotProps:D4,ownerState:B,className:bt.mark}),fp=We({elementType:aa,externalSlotProps:_4,ownerState:B,className:bt.markLabel}),L4=We({elementType:at,getSlotProps:$e,externalSlotProps:O4,ownerState:B});return d.jsxs(xo,b({},I4,{children:[d.jsx(ji,b({},$4)),d.jsx(sa,b({},F4)),Ve.filter(_t=>_t.value>=Se&&_t.value<=me).map((_t,zt)=>{const pp=sd(_t.value,Se,me),pc=Z[ve].offset(pp);let Br;return xe===!1?Br=He.indexOf(_t.value)!==-1:Br=xe==="normal"&&(ye?_t.value>=He[0]&&_t.value<=He[He.length-1]:_t.value<=He[0])||xe==="inverted"&&(ye?_t.value<=He[0]||_t.value>=He[He.length-1]:_t.value>=He[0]),d.jsxs(x.Fragment,{children:[d.jsx(Xo,b({"data-index":zt},dp,!Ir(Xo)&&{markActive:Br},{style:b({},pc,dp.style),className:le(dp.className,Br&&bt.markActive)})),_t.label!=null?d.jsx(aa,b({"aria-hidden":!0,"data-index":zt},fp,!Ir(aa)&&{markLabelActive:Br},{style:b({},pc,fp.style),className:le(bt.markLabel,fp.className,Br&&bt.markLabelActive),children:_t.label})):null]},zt)}),He.map((_t,zt)=>{const pp=sd(_t,Se,me),pc=Z[ve].offset(pp),Br=Ie==="off"?EI:Vi;return d.jsx(Br,b({},!Ir(Br)&&{valueLabelFormat:se,valueLabelDisplay:Ie,value:typeof se=="function"?se(j(_t),zt):se,index:zt,open:q===zt||he===zt||Ie==="on",disabled:W},A4,{children:d.jsx(Ni,b({"data-index":zt},up,{className:le(bt.thumb,up.className,he===zt&&bt.active,ge===zt&&bt.focusVisible),style:b({},pc,ut(zt),up.style),children:d.jsx(at,b({"data-index":zt,"aria-label":ne?ne(zt):D,"aria-valuenow":j(_t),"aria-labelledby":L,"aria-valuetext":pe?pe(j(_t),zt):_,value:He[zt]},L4))}))}),zt)})]}))}),MI=PI;function TI(e){return _e("MuiTextField",e)}Pe("MuiTextField",["root"]);const RI=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],DI={standard:U6,filled:j6,outlined:ex},_I=e=>{const{classes:t}=e;return De({root:["root"]},TI,t)},OI=H(Rf,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),II=x.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:l="primary",defaultValue:c,disabled:u=!1,error:f=!1,FormHelperTextProps:p,fullWidth:v=!1,helperText:y,id:g,InputLabelProps:S,inputProps:h,InputProps:m,inputRef:C,label:w,maxRows:k,minRows:P,multiline:E=!1,name:M,onBlur:T,onChange:R,onFocus:O,placeholder:A,required:$=!1,rows:D,select:_=!1,SelectProps:L,type:V,value:I,variant:F="outlined"}=r,z=Q(r,RI),ae=b({},r,{autoFocus:i,color:l,disabled:u,error:f,fullWidth:v,multiline:E,required:$,select:_,variant:F}),re=_I(ae),de={};F==="outlined"&&(S&&typeof S.shrink<"u"&&(de.notched=S.shrink),de.label=w),_&&((!L||!L.native)&&(de.id=void 0),de["aria-describedby"]=void 0);const W=ho(g),ne=y&&W?`${W}-helper-text`:void 0,pe=w&&W?`${W}-label`:void 0,Y=DI[F],me=d.jsx(Y,b({"aria-describedby":ne,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:v,multiline:E,name:M,rows:D,maxRows:k,minRows:P,type:V,value:I,id:W,inputRef:C,onBlur:T,onChange:R,onFocus:O,placeholder:A,inputProps:h},de,m));return d.jsxs(OI,b({className:le(re.root,a),disabled:u,error:f,fullWidth:v,ref:n,required:$,color:l,variant:F,ownerState:ae},z,{children:[w!=null&&w!==""&&d.jsx(LD,b({htmlFor:W,id:pe},S,{children:w})),_?d.jsx(ix,b({"aria-describedby":ne,id:W,labelId:pe,value:I,input:me},L,{children:s})):me,y&&d.jsx(lD,b({id:ne},p,{children:y}))]}))}),Of=II,$I=["localeText"],R1=x.createContext(null),Nm=function(t){var n;const{localeText:r}=t,o=Q(t,$I),{utils:i,localeText:s}=(n=x.useContext(R1))!=null?n:{utils:void 0,localeText:void 0},a=Te({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:f,adapterLocale:p,localeText:v}=a,y=x.useMemo(()=>b({},v,s,r),[v,s,r]),g=x.useMemo(()=>{if(!c)return i||null;const m=new c({locale:p,formats:u,instance:f});if(!m.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` `));return m},[c,p,u,f,i]),S=x.useMemo(()=>g?{minDate:g.date("1900-01-01T00:00:00.000"),maxDate:g.date("2099-12-31T00:00:00.000")}:null,[g]),h=x.useMemo(()=>({utils:g,defaultDates:S,localeText:y}),[S,g,y]);return d.jsx(R1.Provider,{value:h,children:l})},sx=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:b({},e)}}}}),ax={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},FI=ax;sx(ax);const Fi=()=>{const e=x.useContext(R1);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` `));if(e.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` `));const t=x.useMemo(()=>b({},FI,e.localeText),[e.localeText]);return x.useMemo(()=>b({},e,{localeText:t}),[e,t])},ct=()=>Fi().utils,nc=()=>Fi().defaultDates,Zo=()=>Fi().localeText,rc=e=>{const t=ct(),n=x.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},AI=Yt(d.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),LI=Yt(d.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),jI=Yt(d.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),NI=Yt(d.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");Yt(d.jsxs(x.Fragment,{children:[d.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),d.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");Yt(d.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");Yt(d.jsxs(x.Fragment,{children:[d.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),d.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const VI=Yt(d.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function zI(e){return _e("MuiPickersArrowSwitcher",e)}Pe("MuiPickersArrowSwitcher",["root","spacer","button"]);const BI=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],WI=["ownerState"],HI=["ownerState"],UI=H("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),YI=H("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),sv=H(ea,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>b({},e.hidden&&{visibility:"hidden"})),GI=e=>{const{classes:t}=e;return De({root:["root"],spacer:["spacer"],button:["button"]},zI,t)},KI=x.forwardRef(function(t,n){var r,o,i,s;const l=Le().direction==="rtl",c=Te({props:t,name:"MuiPickersArrowSwitcher"}),{children:u,className:f,slots:p,slotProps:v,isNextDisabled:y,isNextHidden:g,onGoToNext:S,nextLabel:h,isPreviousDisabled:m,isPreviousHidden:C,onGoToPrevious:w,previousLabel:k}=c,P=Q(c,BI),E=c,M=GI(E),T={isDisabled:y,isHidden:g,goTo:S,label:h},R={isDisabled:m,isHidden:C,goTo:w,label:k},O=(r=p==null?void 0:p.previousIconButton)!=null?r:sv,A=We({elementType:O,externalSlotProps:v==null?void 0:v.previousIconButton,additionalProps:{size:"medium",title:R.label,"aria-label":R.label,disabled:R.isDisabled,edge:"end",onClick:R.goTo},ownerState:b({},E,{hidden:R.isHidden}),className:M.button}),$=(o=p==null?void 0:p.nextIconButton)!=null?o:sv,D=We({elementType:$,externalSlotProps:v==null?void 0:v.nextIconButton,additionalProps:{size:"medium",title:T.label,"aria-label":T.label,disabled:T.isDisabled,edge:"start",onClick:T.goTo},ownerState:b({},E,{hidden:T.isHidden}),className:M.button}),_=(i=p==null?void 0:p.leftArrowIcon)!=null?i:LI,L=We({elementType:_,externalSlotProps:v==null?void 0:v.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),V=Q(L,WI),I=(s=p==null?void 0:p.rightArrowIcon)!=null?s:jI,F=We({elementType:I,externalSlotProps:v==null?void 0:v.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),z=Q(F,HI);return d.jsxs(UI,b({ref:n,className:le(M.root,f),ownerState:E},P,{children:[d.jsx(O,b({},A,{children:l?d.jsx(I,b({},z)):d.jsx(_,b({},V))})),u?d.jsx(Re,{variant:"subtitle1",component:"span",children:u}):d.jsx(YI,{className:M.spacer,ownerState:E}),d.jsx($,b({},D,{children:l?d.jsx(_,b({},V)):d.jsx(I,b({},z))}))]}))}),ka=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),qI=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let i;if(e!=null)i=e;else if(o.includes(t))i=t;else if(o.length>0)i=o[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:o,openTo:i}},ZI=["hours","minutes","seconds"],XI=e=>ZI.includes(e),av=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),JI=(e,t)=>(n,r)=>e?t.isAfter(n,r):av(n,t)>av(r,t);function lx({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:i,focusedView:s,onFocusedViewChange:a}){var l,c;const u=x.useRef(n),f=x.useRef(o),p=x.useRef(o.includes(n)?n:o[0]),[v,y]=bn({name:"useViews",state:"view",controlled:r,default:p.current}),g=x.useRef(i?v:null),[S,h]=bn({name:"useViews",state:"focusedView",controlled:s,default:g.current});x.useEffect(()=>{(u.current&&u.current!==n||f.current&&f.current.some(T=>!o.includes(T)))&&(y(o.includes(n)?n:o[0]),f.current=o,u.current=n)},[n,y,v,o]);const m=o.indexOf(v),C=(l=o[m-1])!=null?l:null,w=(c=o[m+1])!=null?c:null,k=Me((T,R)=>{h(R?T:O=>T===O?null:O),a==null||a(T,R)}),P=Me(T=>{k(T,!0),T!==v&&(y(T),t&&t(T))}),E=Me(()=>{w&&P(w)}),M=Me((T,R,O)=>{const A=R==="finish",$=O?o.indexOf(O){const i=o.dateWithTimezone(void 0,r),s=o.startOfMonth(t&&o.isBefore(i,n)?i:n);return!o.isAfter(s,e)},[t,n,e,o,r])}function e$(e,{disablePast:t,minDate:n,timezone:r}){const o=ct();return x.useMemo(()=>{const i=o.dateWithTimezone(void 0,r),s=o.startOfMonth(t&&o.isAfter(i,n)?i:n);return!o.isBefore(s,e)},[t,n,e,o,r])}const _l=36,If=2,$f=320,t$=280,Vm=334,n$=H("div")({overflow:"hidden",width:$f,maxHeight:Vm,display:"flex",flexDirection:"column",margin:"0 auto"}),ol=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:s,timezone:a})=>{const l=s.startOfDay(s.dateWithTimezone(void 0,a));n&&s.isBefore(o,l)&&(o=l),t&&s.isAfter(r,l)&&(r=l);let c=e,u=e;for(s.isBefore(e,o)&&(c=o,u=null),s.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&s.isAfter(c,r)&&(c=null),u&&s.isBefore(u,o)&&(u=null),c){if(!i(c))return c;c=s.addDays(c,1)}if(u){if(!i(u))return u;u=s.addDays(u,-1)}}return null},r$=(e,t)=>t==null||!e.isValid(t)?null:t,Jn=(e,t,n)=>t==null||!e.isValid(t)?n:t,o$=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),zm=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},D1=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},cx=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),i$=["year","month","day"],lv=e=>i$.includes(e),Bm=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return ka(n,["year"])?o.year:ka(n,["month"])?o.month:ka(n,["day"])?o.dayOfMonth:ka(n,["month","year"])?`${o.month} ${o.year}`:ka(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},s$=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},Wm=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{var i,s;const a=ct(),l=x.useRef(n),c=(i=t??l.current)!=null?i:o.emptyValue,u=x.useMemo(()=>o.getTimezone(a,c),[a,o,c]),f=Me(g=>u==null?g:o.setTimezone(a,u,g)),p=(s=e??u)!=null?s:"default",v=x.useMemo(()=>o.setTimezone(a,p,c),[o,a,p,c]),y=Me((g,...S)=>{const h=f(g);r==null||r(h,...S)});return{value:v,handleValueChange:y,timezone:p}},Hm=({name:e,timezone:t,value:n,defaultValue:r,onChange:o,valueManager:i})=>{const[s,a]=bn({name:e,state:"value",controlled:n,default:r??i.emptyValue}),l=Me((c,...u)=>{a(c),o==null||o(c,...u)});return Wm({timezone:t,value:s,defaultValue:void 0,onChange:l,valueManager:i})},kr={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},a$=e=>Math.max(...e.map(t=>{var n;return(n=kr[t.type])!=null?n:1})),Ea=(e,t,n)=>{if(t===kr.year)return e.startOfYear(n);if(t===kr.month)return e.startOfMonth(n);if(t===kr.day)return e.startOfDay(n);let r=n;return t{var i;let s=o?o():Ea(t,n,cx(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,s)&&(s=Ea(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,s)&&(s=Ea(t,n,e.maxDate));const a=JI((i=e.disableIgnoringDatePartForTimeValidation)!=null?i:!1,t);return e.minTime!=null&&a(e.minTime,s)&&(s=Ea(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:D1(t,s,e.minTime))),e.maxTime!=null&&a(s,e.maxTime)&&(s=Ea(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:D1(t,s,e.maxTime))),s},ux=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` `));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},c$=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Ff=(e,t,n)=>{const r=[],o=e.dateWithTimezone(void 0,t),i=e.startOfWeek(o),s=e.endOfWeek(o);let a=i;for(;e.isBefore(a,s);)r.push(a),a=e.addDays(a,1);return r.map(l=>e.formatByString(l,n))},dx=(e,t,n,r)=>{switch(n){case"month":return zm(e,e.dateWithTimezone(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return Ff(e,t,r);case"meridiem":{const o=e.dateWithTimezone(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(i=>e.formatByString(i,r))}default:return[]}},fx=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if(o.type==="day"&&o.contentType==="digit-with-letter"){const s=e.setDate(r.longestMonth,n);return e.formatByString(s,o.format)}const i=n.toString();return o.hasLeadingZerosInInput?fx(e,i,o.maxLength):i},u$=(e,t,n,r,o,i,s)=>{const a=c$(r),l=r==="Home",c=r==="End",u=n.value===""||l||c,f=()=>{const v=o[n.type]({currentDate:i,format:n.format,contentType:n.contentType}),y=m=>px(e,t,m,v,n),g=n.type==="minutes"&&s!=null&&s.minutesStep?s.minutesStep:1;let h=parseInt(n.value,10)+a*g;if(u){if(n.type==="year"&&!c&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);a>0||l?h=v.minimum:h=v.maximum}return h%g!==0&&((a<0||l)&&(h+=g-(g+h)%g),(a>0||c)&&(h-=h%g)),h>v.maximum?y(v.minimum+(h-v.maximum-1)%(v.maximum-v.minimum+1)):h{const v=dx(e,t,n.type,n.format);if(v.length===0)return n.value;if(u)return a>0||l?v[0]:v[v.length-1];const g=(v.indexOf(n.value)+v.length+a)%v.length;return v[g]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():p()},Um=(e,t)=>{let n=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},hs=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),hx=(e,t)=>{let n=0,r=t?1:0;const o=[];for(let i=0;i{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),o).length,format:o});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType,format:o});case"day":return n.fieldDayPlaceholder({format:o});case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType,format:o});case"hours":return n.fieldHoursPlaceholder({format:o});case"minutes":return n.fieldMinutesPlaceholder({format:o});case"seconds":return n.fieldSecondsPlaceholder({format:o});case"meridiem":return n.fieldMeridiemPlaceholder({format:o});default:return o}},cv=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),mx=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,gx=(e,t,n,r,o)=>{if(n!=="digit")return!1;const i=e.dateWithTimezone(void 0,t);switch(r){case"year":return mx(e,t,o)?e.formatByString(e.setYear(i,1),o)==="0001":e.formatByString(e.setYear(i,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(i),o).length>1;case"day":return e.formatByString(e.startOfMonth(i),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(i),o).length>1;case"hours":return e.formatByString(e.setHours(i,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(i,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(i,1),o).length>1;default:throw new Error("Invalid section type")}},f$=(e,t)=>{const n=[],{start:r,end:o}=e.escapedCharacters,i=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let s=null;for(;s=i.exec(t);)n.push({start:s.index,end:i.lastIndex-1});return n},uv=(e,t,n,r,o,i,s,a)=>{let l="";const c=[],u=e.date(),f=C=>{if(C==="")return null;const w=ux(e,C),k=gx(e,t,w.contentType,w.type,C),P=s?k:w.contentType==="digit",E=o!=null&&e.isValid(o);let M=E?e.formatByString(o,C):"",T=null;if(P)if(k)T=M===""?e.formatByString(u,C).length:M.length;else{if(w.maxLength==null)throw new Error(`MUI: The token ${C} should have a 'maxDigitNumber' property on it's adapter`);T=w.maxLength,E&&(M=fx(e,M,T))}return c.push(b({},w,{format:C,maxLength:T,value:M,placeholder:d$(e,t,n,w,C),hasLeadingZeros:k,hasLeadingZerosInFormat:k,hasLeadingZerosInInput:P,startSeparator:c.length===0?l:"",endSeparator:"",modified:!1})),null};let p=10,v=r,y=e.expandFormat(r);for(;y!==v;)if(v=y,y=e.expandFormat(v),p-=1,p<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const g=y,S=f$(e,g),h=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((C,w)=>w.length-C.length).join("|")})`,"g");let m="";for(let C=0;CT.start<=C&&T.end>=C),k=g[C],P=w!=null,E=`${m}${g.slice(C)}`,M=h.test(E);!P&&k.match(/([A-Za-z]+)/)&&M?(m=E.slice(0,h.lastIndex),C+=h.lastIndex-1):P&&(w==null?void 0:w.start)===C||(w==null?void 0:w.end)===C||(f(m),m="",c.length===0?l+=k:c[c.length-1].endSeparator+=k)}return f(m),c.map(C=>{const w=k=>{let P=k;return a&&P!==null&&P.includes(" ")&&(P=`⁩${P}⁦`),i==="spacious"&&["/",".","-"].includes(P)&&(P=` ${P} `),P};return C.startSeparator=w(C.startSeparator),C.endSeparator=w(C.endSeparator),C})},p$=(e,t)=>{const n=t.some(a=>a.type==="day"),r=[],o=[];for(let a=0;a{const r=e.map(o=>{const i=Um(o,t?"input-rtl":"input-ltr");return`${o.startSeparator}${i}${o.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},m$=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:i,longestMonth:s}=zm(e,n).reduce((a,l)=>{const c=e.getDaysInMonth(l);return c>a.maxDaysInMonth?{maxDaysInMonth:c,longestMonth:l}:a},{maxDaysInMonth:0,longestMonth:null});return{year:({format:a})=>({minimum:0,maximum:mx(e,t,a)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:a})=>({minimum:1,maximum:a!=null&&e.isValid(a)?e.getDaysInMonth(a):i,longestMonth:s}),weekDay:({format:a,contentType:l})=>{if(l==="digit"){const c=Ff(e,t,a).map(Number);return{minimum:Math.min(...c),maximum:Math.max(...c)}}return{minimum:1,maximum:7}},hours:({format:a})=>{const l=e.getHours(o);return e.formatByString(e.endOfDay(n),a)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),a))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}},g$=(e,t,n,r,o)=>{switch(n.type){case"year":return e.setYear(o,e.getYear(r));case"month":return e.setMonth(o,e.getMonth(r));case"weekDay":{const i=Ff(e,t,n.format),s=e.formatByString(r,n.format),a=i.indexOf(s),c=i.indexOf(n.value)-a;return e.addDays(r,c)}case"day":return e.setDate(o,e.getDate(r));case"meridiem":{const i=e.getHours(r)<12,s=e.getHours(o);return i&&s>=12?e.addHours(o,-12):!i&&s<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(r));case"minutes":return e.setMinutes(o,e.getMinutes(r));case"seconds":return e.setSeconds(o,e.getSeconds(r));default:return o}},dv={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},fv=(e,t,n,r,o,i)=>[...r].sort((s,a)=>dv[s.type]-dv[a.type]).reduce((s,a)=>!i||a.modified?g$(e,t,a,n,s):s,o),y$=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,v$=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,f=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let i=0,s=0,a=e.length-1;for(;a>=0;){s=e.findIndex((l,c)=>{var u;return c>=i&&((u=l.endSeparator)==null?void 0:u.includes(" "))&&l.endSeparator!==" / "}),s===-1&&(s=e.length-1);for(let l=s;l>=i;l-=1)o[l]=a,r[a]=l,a-=1;i=s+1}return e.forEach((l,c)=>{const u=o[c],f=u===0?null:r[u-1],p=u===e.length-1?null:r[u+1];n[c]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},x$=["value","referenceDate"],uo={emptyValue:null,getTodayValue:cx,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Q(e,x$);return t!=null&&r.utils.isValid(t)?t:n??l$(r)},cleanValue:r$,areValuesEqual:o$,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},C$={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:hx(o(t),r),getValueStrFromSections:h$,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},yx=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>b({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function b$(e){return _e("MuiPickersDay",e)}const ei=Pe("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),w$=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],S$=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:i,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:a,classes:l}=e,c=s&&!a;return De({root:["root",t&&!c&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",s&&a&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},b$,l)},vx=({theme:e,ownerState:t})=>b({},e.typography.caption,{width:_l,height:_l,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ne(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${ei.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${ei.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${ei.disabled}:not(.${ei.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${ei.disabled}&.${ei.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${If}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${ei.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),xx=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},k$=H(Fr,{name:"MuiPickersDay",slot:"Root",overridesResolver:xx})(vx),E$=H("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:xx})(({theme:e,ownerState:t})=>b({},vx({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),Pa=()=>{},P$=x.forwardRef(function(t,n){const r=Te({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,day:s,disabled:a=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:f,onDaySelect:p,onFocus:v=Pa,onBlur:y=Pa,onKeyDown:g=Pa,onMouseDown:S=Pa,onMouseEnter:h=Pa,outsideCurrentMonth:m,selected:C=!1,showDaysOutsideCurrentMonth:w=!1,children:k,today:P=!1}=r,E=Q(r,w$),M=b({},r,{autoFocus:o,disabled:a,disableHighlightToday:l,disableMargin:c,selected:C,showDaysOutsideCurrentMonth:w,today:P}),T=S$(M),R=ct(),O=x.useRef(null),A=tt(O,n);Lt(()=>{o&&!a&&!u&&!m&&O.current.focus()},[o,a,u,m]);const $=_=>{S(_),m&&_.preventDefault()},D=_=>{a||p(s),m&&_.currentTarget.focus(),f&&f(_)};return m&&!w?d.jsx(E$,{className:le(T.root,T.hiddenDaySpacingFiller,i),ownerState:M,role:E.role}):d.jsx(k$,b({className:le(T.root,i),ref:A,centerRipple:!0,disabled:a,tabIndex:C?0:-1,onKeyDown:_=>g(_,s),onFocus:_=>v(_,s),onBlur:_=>y(_,s),onMouseEnter:_=>h(_,s),onClick:D,onMouseDown:$},E,{ownerState:M,children:k||R.format(s,"dayOfMonth")}))}),M$=x.memo(P$),pv={hours:"часы",minutes:"минуты",seconds:"секунды",meridiem:"меридием"},T$={previousMonth:"Предыдущий месяц",nextMonth:"Следующий месяц",openPreviousView:"открыть предыдущий вид",openNextView:"открыть следующий вид",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"открыт годовой вид, переключить на календарный вид":"открыт календарный вид, переключить на годовой вид",start:"Начало",end:"Конец",cancelButtonLabel:"Отмена",clearButtonLabel:"Очистить",okButtonLabel:"Ок",todayButtonLabel:"Сегодня",datePickerToolbarTitle:"Выбрать дату",dateTimePickerToolbarTitle:"Выбрать дату и время",timePickerToolbarTitle:"Выбрать время",dateRangePickerToolbarTitle:"Выбрать период",clockLabelText:(e,t,n)=>`Выбрать ${pv[e]}. ${t===null?"Время не выбрано":`Выбрано время ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} часов`,minutesClockNumberText:e=>`${e} минут`,secondsClockNumberText:e=>`${e} секунд`,selectViewText:e=>`Выбрать ${pv[e]}`,calendarWeekNumberHeaderLabel:"Номер недели",calendarWeekNumberHeaderText:"№",calendarWeekNumberAriaLabelText:e=>`Неделя ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите дату, выбрана дата ${t.format(e,"fullDate")}`:"Выберите дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите время, выбрано время ${t.format(e,"fullTime")}`:"Выберите время",fieldClearLabel:"Очистить значение",timeTableLabel:"выбрать время",dateTableLabel:"выбрать дату",fieldYearPlaceholder:e=>"Г".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"ММММ":"ММ",fieldDayPlaceholder:()=>"ДД",fieldHoursPlaceholder:()=>"чч",fieldMinutesPlaceholder:()=>"мм",fieldSecondsPlaceholder:()=>"сс",fieldMeridiemPlaceholder:()=>"(д|п)п"},R$=sx(T$);function Cx(e,t,n,r){const{value:o,onError:i}=e,s=Fi(),a=x.useRef(r),l=t({adapter:s,value:o,props:e});return x.useEffect(()=>{i&&!n(l,a.current)&&i(l,o),a.current=l},[n,i,a,l,o]),l}const D$=e=>{const t=ct(),n=Zo(),r=Fi(),i=Le().direction==="rtl",{valueManager:s,fieldValueManager:a,valueType:l,validator:c,internalProps:u,internalProps:{value:f,defaultValue:p,referenceDate:v,onChange:y,format:g,formatDensity:S="dense",selectedSections:h,onSelectedSectionsChange:m,shouldRespectLeadingZeros:C=!1,timezone:w}}=e,{timezone:k,value:P,handleValueChange:E}=Wm({timezone:w,value:f,defaultValue:p,onChange:y,valueManager:s}),M=x.useMemo(()=>m$(t,k),[t,k]),T=x.useCallback((W,ne=null)=>a.getSectionsFromValue(t,W,ne,i,pe=>uv(t,k,n,g,pe,S,C,i)),[a,g,n,i,C,t,S,k]),R=x.useMemo(()=>a.getValueStrFromSections(T(s.emptyValue),i),[a,T,s.emptyValue,i]),[O,A]=x.useState(()=>{const W=T(P),ne={sections:W,value:P,referenceValue:s.emptyValue,tempValueStrAndroid:null},pe=a$(W),Y=s.getInitialReferenceValue({referenceDate:v,value:P,utils:t,props:u,granularity:pe,timezone:k});return b({},ne,{referenceValue:Y})}),[$,D]=bn({controlled:h,default:null,name:"useField",state:"selectedSectionIndexes"}),_=W=>{D(W),m==null||m(W),A(ne=>b({},ne,{selectedSectionQuery:null}))},L=x.useMemo(()=>{if($==null)return null;if($==="all")return{startIndex:0,endIndex:O.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof $=="number")return{startIndex:$,endIndex:$};if(typeof $=="string"){const W=O.sections.findIndex(ne=>ne.type===$);return{startIndex:W,endIndex:W}}return $},[$,O.sections]),V=({value:W,referenceValue:ne,sections:pe})=>{if(A(me=>b({},me,{sections:pe,value:W,referenceValue:ne,tempValueStrAndroid:null})),s.areValuesEqual(t,O.value,W))return;const Y={validationError:c({adapter:r,value:W,props:b({},u,{value:W,timezone:k})})};E(W,Y)},I=(W,ne)=>{const pe=[...O.sections];return pe[W]=b({},pe[W],{value:ne,modified:!0}),hx(pe,i)},F=()=>{V({value:s.emptyValue,referenceValue:O.referenceValue,sections:T(s.emptyValue)})},z=()=>{if(L==null)return;const W=O.sections[L.startIndex],ne=a.getActiveDateManager(t,O,W),Y=ne.getSections(O.sections).filter(ee=>ee.value!=="").length===(W.value===""?0:1),me=I(L.startIndex,""),Se=Y?null:t.date(new Date("")),Ee=ne.getNewValuesFromNewActiveDate(Se);(Se!=null&&!t.isValid(Se))!=(ne.date!=null&&!t.isValid(ne.date))?V(b({},Ee,{sections:me})):A(ee=>b({},ee,Ee,{sections:me,tempValueStrAndroid:null}))},ae=W=>{const ne=(me,Se)=>{const Ee=t.parse(me,g);if(Ee==null||!t.isValid(Ee))return null;const ee=uv(t,k,n,g,Ee,S,C,i);return fv(t,k,Ee,ee,Se,!1)},pe=a.parseValueStr(W,O.referenceValue,ne),Y=a.updateReferenceValue(t,pe,O.referenceValue);V({value:pe,referenceValue:Y,sections:T(pe,O.sections)})},re=({activeSection:W,newSectionValue:ne,shouldGoToNextSection:pe})=>{pe&&L&&L.startIndexb({},j,ee,{sections:me,tempValueStrAndroid:null}))},de=W=>A(ne=>b({},ne,{tempValueStrAndroid:W}));return x.useEffect(()=>{const W=T(O.value);A(ne=>b({},ne,{sections:W}))},[g,t.locale]),x.useEffect(()=>{let W=!1;s.areValuesEqual(t,O.value,P)?W=s.getTimezone(t,O.value)!==s.getTimezone(t,P):W=!0,W&&A(ne=>b({},ne,{value:P,referenceValue:a.updateReferenceValue(t,P,ne.referenceValue),sections:T(P)}))},[P]),{state:O,selectedSectionIndexes:L,setSelectedSections:_,clearValue:F,clearActiveSection:z,updateSectionValue:re,updateValueFromValueStr:ae,setTempAndroidValueStr:de,sectionsValueBoundaries:M,placeholder:R,timezone:k}},_$=5e3,Ki=e=>e.saveQuery!=null,O$=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:o})=>{const i=ct(),[s,a]=x.useState(null),l=Me(()=>a(null));x.useEffect(()=>{var v;s!=null&&((v=e[s.sectionIndex])==null?void 0:v.type)!==s.sectionType&&l()},[e,s,l]),x.useEffect(()=>{if(s!=null){const v=setTimeout(()=>l(),_$);return()=>{window.clearTimeout(v)}}return()=>{}},[s,l]);const c=({keyPressed:v,sectionIndex:y},g,S)=>{const h=v.toLowerCase(),m=e[y];if(s!=null&&(!S||S(s.value))&&s.sectionIndex===y){const w=`${s.value}${h}`,k=g(w,m);if(!Ki(k))return a({sectionIndex:y,value:w,sectionType:m.type}),k}const C=g(h,m);return Ki(C)&&!C.saveQuery?(l(),null):(a({sectionIndex:y,value:h,sectionType:m.type}),Ki(C)?null:C)},u=v=>{const y=(h,m,C)=>{const w=m.filter(k=>k.toLowerCase().startsWith(C));return w.length===0?{saveQuery:!1}:{sectionValue:w[0],shouldGoToNextSection:w.length===1}},g=(h,m,C,w)=>{const k=P=>dx(i,o,m.type,P);if(m.contentType==="letter")return y(m.format,k(m.format),h);if(C&&w!=null&&ux(i,C).contentType==="letter"){const P=k(C),E=y(C,P,h);return Ki(E)?{saveQuery:!1}:b({},E,{sectionValue:w(E.sectionValue,P)})}return{saveQuery:!1}};return c(v,(h,m)=>{switch(m.type){case"month":{const C=w=>cv(i,w,i.formats.month,m.format);return g(h,m,i.formats.month,C)}case"weekDay":{const C=(w,k)=>k.indexOf(w).toString();return g(h,m,i.formats.weekday,C)}case"meridiem":return g(h,m);default:return{saveQuery:!1}}})},f=v=>{const y=(S,h)=>{const m=+`${S}`,C=n[h.type]({currentDate:null,format:h.format,contentType:h.contentType});if(m>C.maximum)return{saveQuery:!1};if(mC.maximum||S.length===C.maximum.toString().length;return{sectionValue:px(i,o,m,C,h),shouldGoToNextSection:w}};return c(v,(S,h)=>{if(h.contentType==="digit"||h.contentType==="digit-with-letter")return y(S,h);if(h.type==="month"){const m=gx(i,o,"digit","month","MM"),C=y(S,{type:h.type,format:"MM",hasLeadingZerosInFormat:m,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Ki(C))return C;const w=cv(i,C.sectionValue,"MM",h.format);return b({},C,{sectionValue:w})}if(h.type==="weekDay"){const m=y(S,h);if(Ki(m))return m;const C=Ff(i,o,h.format)[Number(m.sectionValue)-1];return b({},m,{sectionValue:C})}return{saveQuery:!1}},S=>!Number.isNaN(Number(S)))};return{applyCharacterEditing:Me(v=>{const y=e[v.sectionIndex],S=!Number.isNaN(Number(v.keyPressed))?f(v):u(v);S==null?r(null):t({activeSection:y,newSectionValue:S.sectionValue,shouldGoToNextSection:S.shouldGoToNextSection})}),resetCharacterQuery:l}};function I$(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const $$=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},ud=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?ud(t.shadowRoot):t:null},F$="@media (pointer: fine)",A$=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],L$=e=>{const t=ct(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:i,clearActiveSection:s,updateSectionValue:a,updateValueFromValueStr:l,setTempAndroidValueStr:c,sectionsValueBoundaries:u,placeholder:f,timezone:p}=D$(e),{inputRef:v,internalProps:y,internalProps:{readOnly:g=!1,unstableFieldRef:S,minutesStep:h},forwardedProps:{onClick:m,onKeyDown:C,onFocus:w,onBlur:k,onMouseUp:P,onPaste:E,error:M,clearable:T,onClear:R,disabled:O},fieldValueManager:A,valueManager:$,validator:D}=e,_=Q(e.forwardedProps,A$),{applyCharacterEditing:L,resetCharacterQuery:V}=O$({sections:n.sections,updateSectionValue:a,sectionsValueBoundaries:u,setTempAndroidValueStr:c,timezone:p}),I=x.useRef(null),F=tt(v,I),z=x.useRef(void 0),re=Le().direction==="rtl",de=x.useMemo(()=>v$(n.sections,re),[n.sections,re]),W=()=>{var B;if(g){o(null);return}const Z=(B=I.current.selectionStart)!=null?B:0;let we;Z<=n.sections[0].startInInput||Z>=n.sections[n.sections.length-1].endInInput?we=1:we=n.sections.findIndex(ke=>ke.startInInput-ke.startSeparator.length>Z);const $e=we===-1?n.sections.length-1:we-1;o($e)},ne=Me((B,...Z)=>{B.isDefaultPrevented()||(m==null||m(B,...Z),W())}),pe=Me(B=>{P==null||P(B),B.preventDefault()}),Y=Me((...B)=>{w==null||w(...B);const Z=I.current;window.clearTimeout(z.current),z.current=setTimeout(()=>{!Z||Z!==I.current||r!=null||g||(Z.value.length&&Number(Z.selectionEnd)-Number(Z.selectionStart)===Z.value.length?o("all"):W())})}),me=Me((...B)=>{k==null||k(...B),o(null)}),Se=Me(B=>{if(E==null||E(B),g){B.preventDefault();return}const Z=B.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const we=n.sections[r.startIndex],$e=/^[a-zA-Z]+$/.test(Z),ke=/^[0-9]+$/.test(Z),q=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Z);if(we.contentType==="letter"&&$e||we.contentType==="digit"&&ke||we.contentType==="digit-with-letter"&&q){V(),a({activeSection:we,newSectionValue:Z,shouldGoToNextSection:!0}),B.preventDefault();return}if($e||ke){B.preventDefault();return}}B.preventDefault(),V(),l(Z)}),Ee=Me(B=>{if(g)return;const Z=B.target.value;if(Z===""){V(),i();return}const we=B.nativeEvent.data,$e=we&&we.length>1,ke=$e?we:Z,q=hs(ke);if(r==null||$e){l($e?we:q);return}let he;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&q.length===1)he=q;else{const ve=hs(A.getValueStrFromSections(n.sections,re));let ge=-1,ye=-1;for(let ue=0;ueKe.end)return;const He=q.length-ve.length+Ke.end-hs(Ke.endSeparator||"").length;he=q.slice(Ke.start+hs(Ke.startSeparator||"").length,He)}if(he.length===0){y$()?c(ke):(V(),s());return}L({keyPressed:he,sectionIndex:r.startIndex})}),ee=Me(B=>{switch(C==null||C(B),!0){case(B.key==="a"&&(B.ctrlKey||B.metaKey)):{B.preventDefault(),o("all");break}case B.key==="ArrowRight":{if(B.preventDefault(),r==null)o(de.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const Z=de.neighbors[r.startIndex].rightIndex;Z!==null&&o(Z)}break}case B.key==="ArrowLeft":{if(B.preventDefault(),r==null)o(de.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const Z=de.neighbors[r.startIndex].leftIndex;Z!==null&&o(Z)}break}case B.key==="Delete":{if(B.preventDefault(),g)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?i():s(),V();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(B.key):{if(B.preventDefault(),g||r==null)break;const Z=n.sections[r.startIndex],we=A.getActiveDateManager(t,n,Z),$e=u$(t,p,Z,B.key,u,we.date,{minutesStep:h});a({activeSection:Z,newSectionValue:$e,shouldGoToNextSection:!1});break}}});Lt(()=>{if(!I.current)return;if(r==null){I.current.scrollLeft&&(I.current.scrollLeft=0);return}const B=n.sections[r.startIndex],Z=n.sections[r.endIndex];let we=B.startInInput,$e=Z.endInInput;if(r.shouldSelectBoundarySelectors&&(we-=B.startSeparator.length,$e+=Z.endSeparator.length),we!==I.current.selectionStart||$e!==I.current.selectionEnd){const ke=I.current.scrollTop;I.current===ud(document)&&I.current.setSelectionRange(we,$e),I.current.scrollTop=ke}});const X=Cx(b({},y,{value:n.value,timezone:p}),D,$.isSameError,$.defaultErrorState),j=x.useMemo(()=>M!==void 0?M:$.hasError(X),[$,X,M]);x.useEffect(()=>{!j&&!r&&V()},[n.referenceValue,r,j]),x.useEffect(()=>(I.current&&I.current===document.activeElement&&o("all"),()=>window.clearTimeout(z.current)),[]),x.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(V(),s())},[n.tempValueStrAndroid]);const U=x.useMemo(()=>{var B;return(B=n.tempValueStrAndroid)!=null?B:A.getValueStrFromSections(n.sections,re)},[n.sections,A,n.tempValueStrAndroid,re]),K=x.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),xe=I.current&&I.current===ud(document),Ie=$.areValuesEqual(t,n.value,$.emptyValue),se=!xe&&Ie;x.useImperativeHandle(S,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var B,Z;const we=(B=I.current.selectionStart)!=null?B:0,$e=(Z=I.current.selectionEnd)!=null?Z:0;if(we===0&&$e===0)return null;const ke=we<=n.sections[0].startInInput?1:n.sections.findIndex(q=>q.startInInput-q.startSeparator.length>we);return ke===-1?n.sections.length-1:ke-1},setSelectedSections:B=>o(B)}));const fe=Me((B,...Z)=>{var we;B.preventDefault(),R==null||R(B,...Z),i(),I==null||(we=I.current)==null||we.focus(),o(0)});return b({placeholder:f,autoComplete:"off",disabled:!!O},_,{value:se?"":U,inputMode:K,readOnly:g,onClick:ne,onFocus:Y,onBlur:me,onPaste:Se,onChange:Ee,onKeyDown:ee,onMouseUp:pe,onClear:fe,error:j,ref:F,clearable:!!(T&&!Ie&&!g&&!O)})},Af=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:o,shouldDisableYear:i,disablePast:s,disableFuture:a,timezone:l}=e,c=n.utils.dateWithTimezone(void 0,l),u=Jn(n.utils,e.minDate,n.defaultDates.minDate),f=Jn(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(o&&o(t)):return"shouldDisableMonth";case!!(i&&i(t)):return"shouldDisableYear";case!!(a&&n.utils.isAfterDay(t,c)):return"disableFuture";case!!(s&&n.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&n.utils.isBeforeDay(t,u)):return"minDate";case!!(f&&n.utils.isAfterDay(t,f)):return"maxDate";default:return null}},_1=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],O1=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],bx=["minDateTime","maxDateTime"],j$=[..._1,...O1,...bx],wx=e=>j$.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),N$=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],V$=(e,t)=>{const n=b({},e),r={},o=i=>{n.hasOwnProperty(i)&&(r[i]=n[i],delete n[i])};return N$.forEach(o),t==="date"?_1.forEach(o):t==="time"?O1.forEach(o):t==="date-time"&&(_1.forEach(o),O1.forEach(o),bx.forEach(o)),{forwardedProps:n,internalProps:r}},z$=e=>{var t,n,r;const o=ct(),i=nc();return b({},e,{disablePast:(t=e.disablePast)!=null?t:!1,disableFuture:(n=e.disableFuture)!=null?n:!1,format:(r=e.format)!=null?r:o.formats.keyboardDate,minDate:Jn(o,e.minDate,i.minDate),maxDate:Jn(o,e.maxDate,i.maxDate)})},B$=({props:e,inputRef:t})=>{const n=z$(e),{forwardedProps:r,internalProps:o}=V$(n,"date");return L$({inputRef:t,forwardedProps:r,internalProps:o,valueManager:uo,fieldValueManager:C$,validator:Af,valueType:"date"})},W$=H(yR)({[`& .${nl.container}`]:{outline:0},[`& .${nl.paper}`]:{outline:0,minWidth:$f}}),H$=H(_R)({"&:first-of-type":{padding:0}});function U$(e){var t,n;const{children:r,onDismiss:o,open:i,slots:s,slotProps:a}=e,l=(t=s==null?void 0:s.dialog)!=null?t:W$,c=(n=s==null?void 0:s.mobileTransition)!=null?n:ta;return d.jsx(l,b({open:i,onClose:o},a==null?void 0:a.dialog,{TransitionComponent:c,TransitionProps:a==null?void 0:a.mobileTransition,PaperComponent:s==null?void 0:s.mobilePaper,PaperProps:a==null?void 0:a.mobilePaper,children:d.jsx(H$,{children:r})}))}function Y$(e){return _e("MuiPickersPopper",e)}Pe("MuiPickersPopper",["root","paper"]);const G$="@media (prefers-reduced-motion: reduce)",Es=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),hv=Es&&Es[1]?parseInt(Es[1],10):null,mv=Es&&Es[2]?parseInt(Es[2],10):null,K$=hv&&hv<10||mv&&mv<13||!1,Sx=()=>W6(G$,{defaultMatches:!1})||K$,q$=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],Z$=e=>{const{classes:t}=e;return De({root:["root"],paper:["paper"]},Y$,t)},X$=H(jM,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),J$=H(Jl,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>b({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function Q$(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){i.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),i.current=!1}},[e]);const s=Me(l=>{if(!i.current)return;const c=r.current;r.current=!1;const u=Pt(o.current);if(!o.current||"clientX"in l&&Q$(l,u))return;if(n.current){n.current=!1;return}let f;l.composedPath?f=l.composedPath().indexOf(o.current)>-1:f=!u.documentElement.contains(l.target)||o.current.contains(l.target),!f&&!c&&t(l)}),a=()=>{r.current=!0};return x.useEffect(()=>{if(e){const l=Pt(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",s),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",s),l.removeEventListener("touchmove",c)}}},[e,s]),x.useEffect(()=>{if(e){const l=Pt(o.current);return l.addEventListener("click",s),()=>{l.removeEventListener("click",s),r.current=!1}}},[e,s]),[o,a,a]}const tF=x.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:i,paperSlotProps:s,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=Q(e,q$),f=b({},o,{placement:r}),p=We({elementType:n,externalSlotProps:s,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:f});return d.jsx(n,b({},u,p,{onClick:v=>{var y;l(v),(y=p.onClick)==null||y.call(p,v)},onTouchStart:v=>{var y;c(v),(y=p.onTouchStart)==null||y.call(p,v)},ownerState:f,children:i}))});function nF(e){var t,n,r,o;const i=Te({props:e,name:"MuiPickersPopper"}),{anchorEl:s,children:a,containerRef:l=null,shouldRestoreFocus:c,onBlur:u,onDismiss:f,open:p,role:v,placement:y,slots:g,slotProps:S,reduceAnimations:h}=i;x.useEffect(()=>{function F(z){p&&(z.key==="Escape"||z.key==="Esc")&&f()}return document.addEventListener("keydown",F),()=>{document.removeEventListener("keydown",F)}},[f,p]);const m=x.useRef(null);x.useEffect(()=>{v==="tooltip"||c&&!c()||(p?m.current=ud(document):m.current&&m.current instanceof HTMLElement&&setTimeout(()=>{m.current instanceof HTMLElement&&m.current.focus()}))},[p,v,c]);const[C,w,k]=eF(p,u??f),P=x.useRef(null),E=tt(P,l),M=tt(E,C),T=i,R=Z$(T),O=Sx(),A=h??O,$=F=>{F.key==="Escape"&&(F.stopPropagation(),f())},D=((t=g==null?void 0:g.desktopTransition)!=null?t:A)?ta:z6,_=(n=g==null?void 0:g.desktopTrapFocus)!=null?n:x6,L=(r=g==null?void 0:g.desktopPaper)!=null?r:J$,V=(o=g==null?void 0:g.popper)!=null?o:X$,I=We({elementType:V,externalSlotProps:S==null?void 0:S.popper,additionalProps:{transition:!0,role:v,open:p,anchorEl:s,placement:y,onKeyDown:$},className:R.root,ownerState:i});return d.jsx(V,b({},I,{children:({TransitionProps:F,placement:z})=>d.jsx(_,b({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:v==="tooltip",isEnabled:()=>!0},S==null?void 0:S.desktopTrapFocus,{children:d.jsx(D,b({},F,S==null?void 0:S.desktopTransition,{children:d.jsx(tF,{PaperComponent:L,ownerState:T,popperPlacement:z,ref:M,onPaperClick:w,onPaperTouchStart:k,paperClasses:R.paper,paperSlotProps:S==null?void 0:S.desktopPaper,children:a})}))}))}))}function rF(e){return _e("MuiPickersToolbar",e)}Pe("MuiPickersToolbar",["root","content"]);const oF=e=>{const{classes:t,isLandscape:n}=e;return De({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},rF,t)},iF=H("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>b({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),sF=H("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),aF=x.forwardRef(function(t,n){const r=Te({props:t,name:"MuiPickersToolbar"}),{children:o,className:i,toolbarTitle:s,hidden:a,titleId:l}=r,c=r,u=oF(c);return a?null:d.jsxs(iF,{ref:n,className:le(u.root,i),ownerState:c,children:[d.jsx(Re,{color:"text.secondary",variant:"overline",id:l,children:s}),d.jsx(sF,{className:u.content,ownerState:c,children:o})]})}),lF=({open:e,onOpen:t,onClose:n})=>{const r=x.useRef(typeof e=="boolean").current,[o,i]=x.useState(!1);x.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[r,e]);const s=x.useCallback(a=>{r||i(a),a&&t&&t(),!a&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:s}},cF=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?i?!0:n(r.lastPublishedValue):!1},uF=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:i}=e,s=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?s&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&i?s?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},dF=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},fF=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:i,onChange:s,value:a,defaultValue:l,closeOnSelect:c=r==="desktop",selectedSections:u,onSelectedSectionsChange:f,timezone:p}=e,{current:v}=x.useRef(l),{current:y}=x.useRef(a!==void 0),g=ct(),S=Fi(),[h,m]=bn({controlled:u,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:C,setIsOpen:w}=lF(e),[k,P]=x.useState(()=>{let Y;return a!==void 0?Y=a:v!==void 0?Y=v:Y=t.emptyValue,{draft:Y,lastPublishedValue:Y,lastCommittedValue:Y,lastControlledValue:a,hasBeenModifiedSinceMount:!1}}),{timezone:E,handleValueChange:M}=Wm({timezone:p,value:a,defaultValue:v,onChange:s,valueManager:t});Cx(b({},e,{value:k.draft,timezone:E}),o,t.isSameError,t.defaultErrorState);const T=Me(Y=>{const me={action:Y,dateState:k,hasChanged:X=>!t.areValuesEqual(g,Y.value,X),isControlled:y,closeOnSelect:c},Se=cF(me),Ee=uF(me),ee=dF(me);if(P(X=>b({},X,{draft:Y.value,lastPublishedValue:Se?Y.value:X.lastPublishedValue,lastCommittedValue:Ee?Y.value:X.lastCommittedValue,hasBeenModifiedSinceMount:!0})),Se){const j={validationError:Y.name==="setValueFromField"?Y.context.validationError:o({adapter:S,value:Y.value,props:b({},e,{value:Y.value,timezone:E})})};Y.name==="setValueFromShortcut"&&Y.shortcut!=null&&(j.shortcut=Y.shortcut),M(Y.value,j)}Ee&&i&&i(Y.value),ee&&w(!1)});if(a!==void 0&&(k.lastControlledValue===void 0||!t.areValuesEqual(g,k.lastControlledValue,a))){const Y=t.areValuesEqual(g,k.draft,a);P(me=>b({},me,{lastControlledValue:a},Y?{}:{lastCommittedValue:a,lastPublishedValue:a,draft:a,hasBeenModifiedSinceMount:!0}))}const R=Me(()=>{T({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),O=Me(()=>{T({value:k.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),A=Me(()=>{T({value:k.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),$=Me(()=>{T({value:k.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),D=Me(()=>{T({value:t.getTodayValue(g,E,n),name:"setValueFromAction",pickerAction:"today"})}),_=Me(()=>w(!0)),L=Me(()=>w(!1)),V=Me((Y,me="partial")=>T({name:"setValueFromView",value:Y,selectionState:me})),I=Me((Y,me,Se)=>T({name:"setValueFromShortcut",value:Y,changeImportance:me??"accept",shortcut:Se})),F=Me((Y,me)=>T({name:"setValueFromField",value:Y,context:me})),z=Me(Y=>{m(Y),f==null||f(Y)}),ae={onClear:R,onAccept:O,onDismiss:A,onCancel:$,onSetToday:D,onOpen:_,onClose:L},re={value:k.draft,onChange:F,selectedSections:h,onSelectedSectionsChange:z},de=x.useMemo(()=>t.cleanValue(g,k.draft),[g,t,k.draft]),W={value:de,onChange:V,onClose:L,open:C,onSelectedSectionsChange:z},pe=b({},ae,{value:de,onChange:V,onSelectShortcut:I,isValid:Y=>{const me=o({adapter:S,value:Y,props:b({},e,{value:Y,timezone:E})});return!t.hasError(me)}});return{open:C,fieldProps:re,viewProps:W,layoutProps:pe,actions:ae}},pF=["className","sx"],hF=({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:r,autoFocusView:o})=>{const{onChange:i,open:s,onSelectedSectionsChange:a,onClose:l}=t,{views:c,openTo:u,onViewChange:f,disableOpenPicker:p,viewRenderers:v,timezone:y}=e,g=Q(e,pF),{view:S,setView:h,defaultView:m,focusedView:C,setFocusedView:w,setValueAndGoToNextView:k}=lx({view:void 0,views:c,openTo:u,onChange:i,onViewChange:f,autoFocus:o}),{hasUIView:P,viewModeLookup:E}=x.useMemo(()=>c.reduce((D,_)=>{let L;return p?L="field":v[_]!=null?L="UI":L="field",D.viewModeLookup[_]=L,L==="UI"&&(D.hasUIView=!0),D},{hasUIView:!1,viewModeLookup:{}}),[p,v,c]),M=x.useMemo(()=>c.reduce((D,_)=>v[_]!=null&&XI(_)?D+1:D,0),[v,c]),T=E[S],R=Me(()=>T==="UI"),[O,A]=x.useState(T==="UI"?S:null);return O!==S&&E[S]==="UI"&&A(S),Lt(()=>{T==="field"&&s&&(l(),setTimeout(()=>{r==null||r.current.focus(),a(S)}))},[S]),Lt(()=>{if(!s)return;let D=S;T==="field"&&O!=null&&(D=O),D!==m&&E[D]==="UI"&&E[m]==="UI"&&(D=m),D!==S&&h(D),w(D,!0)},[s]),{hasUIView:P,shouldRestoreFocus:R,layoutProps:{views:c,view:O,onViewChange:h},renderCurrentView:()=>{if(O==null)return null;const D=v[O];return D==null?null:D(b({},g,n,t,{views:c,timezone:y,onChange:k,view:O,onViewChange:h,focusedView:C,onFocusedViewChange:w,showViewSwitcher:M>1,timeViewsCount:M}))}}};function gv(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const mF=(e,t)=>{const[n,r]=x.useState(gv);return Lt(()=>{const i=()=>{r(gv())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),I$(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},gF=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,i=mF(n.views,o);return{layoutProps:b({},n,t,{isLandscape:i,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},yF=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` `):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};yF(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const kx=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:i,validator:s,autoFocusView:a})=>{const l=fF({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:s}),c=hF({props:e,inputRef:o,additionalViewProps:i,autoFocusView:a,propsFromPickerValue:l.viewProps}),u=gF({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:c.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:c.renderCurrentView,hasUIView:c.hasUIView,shouldRestoreFocus:c.shouldRestoreFocus,layoutProps:u.layoutProps}};function Ex(e){return _e("MuiPickersLayout",e)}const Xp=Pe("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),vF=["onAccept","onClear","onCancel","onSetToday","actions"];function xF(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:i}=e,s=Q(e,vF),a=Zo();if(i==null||i.length===0)return null;const l=i==null?void 0:i.map(c=>{switch(c){case"clear":return d.jsx(Mr,{onClick:n,children:a.clearButtonLabel},c);case"cancel":return d.jsx(Mr,{onClick:r,children:a.cancelButtonLabel},c);case"accept":return d.jsx(Mr,{onClick:t,children:a.okButtonLabel},c);case"today":return d.jsx(Mr,{onClick:o,children:a.todayButtonLabel},c);default:return null}});return d.jsx(SR,b({},s,{children:l}))}const CF=["items","changeImportance","isLandscape","onChange","isValid"],bF=["getValue"];function wF(e){const{items:t,changeImportance:n,onChange:r,isValid:o}=e,i=Q(e,CF);if(t==null||t.length===0)return null;const s=t.map(a=>{let{getValue:l}=a,c=Q(a,bF);const u=l({isValid:o});return{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)}});return d.jsx(G6,b({dense:!0,sx:[{maxHeight:Vm,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:s.map(a=>d.jsx(m_,{children:d.jsx(GM,b({},a))},a.label))}))}function SF(e){return e.view!==null}const kF=e=>{const{classes:t,isLandscape:n}=e;return De({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Ex,t)},EF=e=>{var t,n;const{wrapperVariant:r,onAccept:o,onClear:i,onCancel:s,onSetToday:a,view:l,views:c,onViewChange:u,value:f,onChange:p,onSelectShortcut:v,isValid:y,isLandscape:g,disabled:S,readOnly:h,children:m,components:C,componentsProps:w,slots:k,slotProps:P}=e,E=k??yx(C),M=P??w,T=kF(e),R=(t=E==null?void 0:E.actionBar)!=null?t:xF,O=We({elementType:R,externalSlotProps:M==null?void 0:M.actionBar,additionalProps:{onAccept:o,onClear:i,onCancel:s,onSetToday:a,actions:r==="desktop"?[]:["cancel","accept"],className:T.actionBar},ownerState:b({},e,{wrapperVariant:r})}),A=d.jsx(R,b({},O)),$=E==null?void 0:E.toolbar,D=We({elementType:$,externalSlotProps:M==null?void 0:M.toolbar,additionalProps:{isLandscape:g,onChange:p,value:f,view:l,onViewChange:u,views:c,disabled:S,readOnly:h,className:T.toolbar},ownerState:b({},e,{wrapperVariant:r})}),_=SF(D)&&$?d.jsx($,b({},D)):null,L=m,V=E==null?void 0:E.tabs,I=l&&V?d.jsx(V,b({view:l,onViewChange:u},M==null?void 0:M.tabs)):null,F=(n=E==null?void 0:E.shortcuts)!=null?n:wF,z=We({elementType:F,externalSlotProps:M==null?void 0:M.shortcuts,additionalProps:{isValid:y,isLandscape:g,onChange:v,className:T.shortcuts},ownerState:{isValid:y,isLandscape:g,onChange:v,className:T.shortcuts,wrapperVariant:r}}),ae=l&&F?d.jsx(F,b({},z)):null;return{toolbar:_,content:L,tabs:I,actionBar:A,shortcuts:ae}},PF=e=>{const{isLandscape:t,classes:n}=e;return De({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},Ex,n)},Px=H("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Xp.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${Xp.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${Xp.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));Px.propTypes={as:N.elementType,ownerState:N.shape({isLandscape:N.bool.isRequired}).isRequired,sx:N.oneOfType([N.arrayOf(N.oneOfType([N.func,N.object,N.bool])),N.func,N.object])};const MF=H("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Mx=function(t){const n=Te({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:i,actionBar:s,shortcuts:a}=EF(n),{sx:l,className:c,isLandscape:u,ref:f,wrapperVariant:p}=n,v=n,y=PF(v);return d.jsxs(Px,{ref:f,sx:l,className:le(c,y.root),ownerState:v,children:[u?a:r,u?r:a,d.jsx(MF,{className:y.contentWrapper,children:p==="desktop"?d.jsxs(x.Fragment,{children:[o,i]}):d.jsxs(x.Fragment,{children:[i,o]})}),s]})},TF=e=>_e("MuiPickersSlideTransition",e),jn=Pe("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),RF=["children","className","reduceAnimations","slideDirection","transKey","classes"],DF=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return De(r,TF,t)},_F=H(Em,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${jn["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${jn["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${jn.slideEnterActive}`]:t.slideEnterActive},{[`.${jn.slideExit}`]:t.slideExit},{[`.${jn["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${jn["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${jn["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${jn["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${jn.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${jn.slideExit}`]:{transform:"translate(0%)"},[`& .${jn["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${jn["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function OF(e){const t=Te({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,s=Q(t,RF),a=DF(t),l=Le();if(o)return d.jsx("div",{className:le(a.root,r),children:n});const c={exit:a.exit,enterActive:a.enterActive,enter:a.enter,exitActive:a.exitActive};return d.jsx(_F,{className:le(a.root,r),childFactory:u=>x.cloneElement(u,{classNames:c}),role:"presentation",children:d.jsx(Xk,b({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},s,{children:n}),i)})}const Tx=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:s,timezone:a})=>{const l=Fi();return x.useCallback(c=>Af({adapter:l,value:c,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:s,timezone:a}})!==null,[l,e,t,n,r,o,i,s,a])},IF=e=>_e("MuiDayCalendar",e);Pe("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const $F=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],FF=["ownerState"],AF=e=>{const{classes:t}=e;return De({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},IF,t)},Rx=(_l+If*2)*6,LF=H("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),jF=H("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),NF=H(Re,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),VF=H(Re,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),zF=H(Re,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>b({},e.typography.caption,{width:_l,height:_l,padding:0,margin:`0 ${If}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),BF=H("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Rx}),WF=H(OF,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Rx}),HF=H("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),UF=H("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${If}px 0`,display:"flex",justifyContent:"center"});function YF(e){var t,n,r;let{parentProps:o,day:i,focusableDay:s,selectedDays:a,isDateDisabled:l,currentMonthNumber:c,isViewFocused:u}=e,f=Q(e,$F);const{disabled:p,disableHighlightToday:v,isMonthSwitchingAnimating:y,showDaysOutsideCurrentMonth:g,components:S,componentsProps:h,slots:m,slotProps:C,timezone:w}=o,k=ct(),P=rc(w),E=s!==null&&k.isSameDay(i,s),M=a.some(V=>k.isSameDay(V,i)),T=k.isSameDay(i,P),R=(t=(n=m==null?void 0:m.day)!=null?n:S==null?void 0:S.Day)!=null?t:M$,O=We({elementType:R,externalSlotProps:(r=C==null?void 0:C.day)!=null?r:h==null?void 0:h.day,additionalProps:b({disableHighlightToday:v,showDaysOutsideCurrentMonth:g,role:"gridcell",isAnimating:y,"data-timestamp":k.toJsDate(i).valueOf()},f),ownerState:b({},o,{day:i,selected:M})}),A=Q(O,FF),$=x.useMemo(()=>p||l(i),[p,l,i]),D=x.useMemo(()=>k.getMonth(i)!==c,[k,i,c]),_=x.useMemo(()=>{const V=k.startOfMonth(k.setMonth(i,c));return g?k.isSameDay(i,k.startOfWeek(V)):k.isSameDay(i,V)},[c,i,g,k]),L=x.useMemo(()=>{const V=k.endOfMonth(k.setMonth(i,c));return g?k.isSameDay(i,k.endOfWeek(V)):k.isSameDay(i,V)},[c,i,g,k]);return d.jsx(R,b({},A,{day:i,disabled:$,autoFocus:u&&E,today:T,outsideCurrentMonth:D,isFirstVisibleCell:_,isLastVisibleCell:L,selected:M,tabIndex:E?0:-1,"aria-selected":M,"aria-current":T?"date":void 0}))}function GF(e){const t=Te({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:o,selectedDays:i,focusedDay:s,loading:a,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:c,readOnly:u,reduceAnimations:f,renderLoading:p=()=>d.jsx("span",{children:"..."}),slideDirection:v,TransitionProps:y,disablePast:g,disableFuture:S,minDate:h,maxDate:m,shouldDisableDate:C,shouldDisableMonth:w,shouldDisableYear:k,dayOfWeekFormatter:P,hasFocus:E,onFocusedViewChange:M,gridLabelId:T,displayWeekNumber:R,fixedWeekNumber:O,autoFocus:A,timezone:$}=t,D=rc($),_=ct(),L=AF(t),I=Le().direction==="rtl",F=P||((se,fe)=>_.format(fe,"weekdayShort").charAt(0).toUpperCase()),z=Tx({shouldDisableDate:C,shouldDisableMonth:w,shouldDisableYear:k,minDate:h,maxDate:m,disablePast:g,disableFuture:S,timezone:$}),ae=Zo(),[re,de]=bn({name:"DayCalendar",state:"hasFocus",controlled:E,default:A??!1}),[W,ne]=x.useState(()=>s||D),pe=Me(se=>{u||l(se)}),Y=se=>{z(se)||(n(se),ne(se),M==null||M(!0),de(!0))},me=Me((se,fe)=>{switch(se.key){case"ArrowUp":Y(_.addDays(fe,-7)),se.preventDefault();break;case"ArrowDown":Y(_.addDays(fe,7)),se.preventDefault();break;case"ArrowLeft":{const B=_.addDays(fe,I?1:-1),Z=_.addMonths(fe,I?1:-1),we=ol({utils:_,date:B,minDate:I?B:_.startOfMonth(Z),maxDate:I?_.endOfMonth(Z):B,isDateDisabled:z,timezone:$});Y(we||B),se.preventDefault();break}case"ArrowRight":{const B=_.addDays(fe,I?-1:1),Z=_.addMonths(fe,I?-1:1),we=ol({utils:_,date:B,minDate:I?_.startOfMonth(Z):B,maxDate:I?B:_.endOfMonth(Z),isDateDisabled:z,timezone:$});Y(we||B),se.preventDefault();break}case"Home":Y(_.startOfWeek(fe)),se.preventDefault();break;case"End":Y(_.endOfWeek(fe)),se.preventDefault();break;case"PageUp":Y(_.addMonths(fe,1)),se.preventDefault();break;case"PageDown":Y(_.addMonths(fe,-1)),se.preventDefault();break}}),Se=Me((se,fe)=>Y(fe)),Ee=Me((se,fe)=>{re&&_.isSameDay(W,fe)&&(M==null||M(!1))}),ee=_.getMonth(o),X=x.useMemo(()=>i.filter(se=>!!se).map(se=>_.startOfDay(se)),[_,i]),j=ee,U=x.useMemo(()=>x.createRef(),[j]),K=_.startOfWeek(D),xe=x.useMemo(()=>{const se=_.startOfMonth(o),fe=_.endOfMonth(o);return z(W)||_.isAfterDay(W,fe)||_.isBeforeDay(W,se)?ol({utils:_,date:W,minDate:se,maxDate:fe,disablePast:g,disableFuture:S,isDateDisabled:z,timezone:$}):W},[o,S,g,W,z,_,$]),Ie=x.useMemo(()=>{const se=_.setTimezone(o,$),fe=_.getWeekArray(se);let B=_.addMonths(se,1);for(;O&&fe.length{fe.length{var B;const Z=_.format(se,"weekdayShort");return d.jsx(NF,{variant:"caption",role:"columnheader","aria-label":_.format(_.addDays(K,fe),"weekday"),className:L.weekDayLabel,children:(B=F==null?void 0:F(Z,se))!=null?B:Z},Z+fe.toString())})]}),a?d.jsx(BF,{className:L.loadingContainer,children:p()}):d.jsx(WF,b({transKey:j,onExited:c,reduceAnimations:f,slideDirection:v,className:le(r,L.slideTransition)},y,{nodeRef:U,children:d.jsx(HF,{ref:U,role:"rowgroup",className:L.monthContainer,children:Ie.map((se,fe)=>d.jsxs(UF,{role:"row",className:L.weekContainer,"aria-rowindex":fe+1,children:[R&&d.jsx(zF,{className:L.weekNumber,role:"rowheader","aria-label":ae.calendarWeekNumberAriaLabelText(_.getWeekNumber(se[0])),children:ae.calendarWeekNumberText(_.getWeekNumber(se[0]))}),se.map((B,Z)=>d.jsx(YF,{parentProps:t,day:B,selectedDays:X,focusableDay:xe,onKeyDown:me,onFocus:Se,onBlur:Ee,onDaySelect:pe,isDateDisabled:z,currentMonthNumber:ee,isViewFocused:re,"aria-colindex":Z+1},B.toString()))]},`week-${se[0]}`))})}))]})}const KF=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return b({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return b({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const i=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return b({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:i&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},qF=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:o,disablePast:i,disableSwitchToMonthOnDayFocus:s=!1,maxDate:a,minDate:l,onMonthChange:c,reduceAnimations:u,shouldDisableDate:f,timezone:p}=e,v=rc(p),y=ct(),g=x.useRef(KF(!!u,s,y)).current,S=x.useMemo(()=>{let M=null;return n?M=n:r&&(M=y.startOfMonth(r)),uo.getInitialReferenceValue({value:t,utils:y,timezone:p,props:e,referenceDate:M,granularity:kr.day})},[]),[h,m]=x.useReducer(g,{isMonthSwitchingAnimating:!1,focusedDay:y.isValid(t)?t:v,currentMonth:y.startOfMonth(S),slideDirection:"left"}),C=x.useCallback(M=>{m(b({type:"changeMonth"},M)),c&&c(M.newMonth)},[c]),w=x.useCallback(M=>{const T=M;y.isSameMonth(T,h.currentMonth)||C({newMonth:y.startOfMonth(T),direction:y.isAfterDay(T,h.currentMonth)?"left":"right"})},[h.currentMonth,C,y]),k=Tx({shouldDisableDate:f,minDate:l,maxDate:a,disableFuture:o,disablePast:i,timezone:p}),P=x.useCallback(()=>{m({type:"finishMonthSwitchingAnimation"})},[]),E=Me((M,T)=>{k(M)||m({type:"changeFocusedDay",focusedDay:M,withoutMonthSwitchingAnimation:T})});return{referenceDate:S,calendarState:h,changeMonth:w,changeFocusedDay:E,isDateDisabled:k,onMonthSwitchingAnimationEnd:P,handleChangeMonth:C}},ZF=["ownerState"],XF=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:o,slotProps:i,components:s,componentsProps:a})=>{var l,c,u,f,p,v;const y=Zo(),g=(l=(c=o==null?void 0:o.clearButton)!=null?c:s==null?void 0:s.ClearButton)!=null?l:ea,S=We({elementType:g,externalSlotProps:(u=i==null?void 0:i.clearButton)!=null?u:a==null?void 0:a.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:y.fieldClearLabel}}),h=Q(S,ZF),m=(f=(p=o==null?void 0:o.clearIcon)!=null?p:s==null?void 0:s.ClearIcon)!=null?f:VI,C=We({elementType:m,externalSlotProps:(v=i==null?void 0:i.clearIcon)!=null?v:a==null?void 0:a.clearIcon,ownerState:{}}),w=b({},n,{endAdornment:d.jsxs(x.Fragment,{children:[e&&d.jsx(Am,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:d.jsx(g,b({},h,{onClick:r,children:d.jsx(m,b({fontSize:"small"},C))}))}),n==null?void 0:n.endAdornment]})}),k=b({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:w,fieldProps:k}},JF=["components","componentsProps","slots","slotProps","InputProps","inputProps"],QF=["inputRef"],eA=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],Dx=x.forwardRef(function(t,n){var r,o,i;const s=Te({props:t,name:"MuiDateField"}),{components:a,componentsProps:l,slots:c,slotProps:u,InputProps:f,inputProps:p}=s,v=Q(s,JF),y=s,g=(r=(o=c==null?void 0:c.textField)!=null?o:a==null?void 0:a.TextField)!=null?r:Of,S=We({elementType:g,externalSlotProps:(i=u==null?void 0:u.textField)!=null?i:l==null?void 0:l.textField,externalForwardedProps:v,ownerState:y}),{inputRef:h}=S,m=Q(S,QF);m.inputProps=b({},p,m.inputProps),m.InputProps=b({},f,m.InputProps);const C=B$({props:m,inputRef:h}),{ref:w,onPaste:k,onKeyDown:P,inputMode:E,readOnly:M,clearable:T,onClear:R}=C,O=Q(C,eA),{InputProps:A,fieldProps:$}=XF({onClear:R,clearable:T,fieldProps:O,InputProps:O.InputProps,slots:c,slotProps:u,components:a,componentsProps:l});return d.jsx(g,b({ref:n},$,{InputProps:b({},A,{readOnly:M}),inputProps:b({},O.inputProps,{inputMode:E,onPaste:k,onKeyDown:P,ref:w})}))}),tA=e=>_e("MuiPickersFadeTransitionGroup",e);Pe("MuiPickersFadeTransitionGroup",["root"]);const nA=e=>{const{classes:t}=e;return De({root:["root"]},tA,t)},rA=H(Em,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function _x(e){const t=Te({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,s=nA(t),a=Le();return o?n:d.jsx(rA,{className:le(s.root,r),children:d.jsx(ta,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:a.transitions.duration.enteringScreen,enter:a.transitions.duration.enteringScreen,exit:0},children:n},i)})}function oA(e){return _e("MuiPickersMonth",e)}const Vc=Pe("MuiPickersMonth",["root","monthButton","disabled","selected"]),iA=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],sA=e=>{const{disabled:t,selected:n,classes:r}=e;return De({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},oA,r)},aA=H("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),lA=H("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Vc.disabled}`]:t.disabled},{[`&.${Vc.selected}`]:t.selected}]})(({theme:e})=>b({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Vc.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Vc.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),cA=x.memo(function(t){const n=Te({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:o,disabled:i,selected:s,value:a,tabIndex:l,onClick:c,onKeyDown:u,onFocus:f,onBlur:p,"aria-current":v,"aria-label":y}=n,g=Q(n,iA),S=x.useRef(null),h=sA(n);return Lt(()=>{if(r){var m;(m=S.current)==null||m.focus()}},[r]),d.jsx(aA,b({className:h.root,ownerState:n},g,{children:d.jsx(lA,{ref:S,disabled:i,type:"button",role:"radio",tabIndex:i?-1:l,"aria-current":v,"aria-checked":s,"aria-label":y,onClick:m=>c(m,a),onKeyDown:m=>u(m,a),onFocus:m=>f(m,a),onBlur:m=>p(m,a),className:h.monthButton,ownerState:n,children:o})}))});function uA(e){return _e("MuiMonthCalendar",e)}Pe("MuiMonthCalendar",["root"]);const dA=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],fA=e=>{const{classes:t}=e;return De({root:["root"]},uA,t)};function pA(e,t){const n=ct(),r=nc(),o=Te({props:e,name:t});return b({disableFuture:!1,disablePast:!1},o,{minDate:Jn(n,o.minDate,r.minDate),maxDate:Jn(n,o.maxDate,r.maxDate)})}const hA=H("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:$f,boxSizing:"border-box"}),mA=x.forwardRef(function(t,n){const r=pA(t,"MuiMonthCalendar"),{className:o,value:i,defaultValue:s,referenceDate:a,disabled:l,disableFuture:c,disablePast:u,maxDate:f,minDate:p,onChange:v,shouldDisableMonth:y,readOnly:g,disableHighlightToday:S,autoFocus:h=!1,onMonthFocus:m,hasFocus:C,onFocusedViewChange:w,monthsPerRow:k=3,timezone:P,gridLabelId:E}=r,M=Q(r,dA),{value:T,handleValueChange:R,timezone:O}=Hm({name:"MonthCalendar",timezone:P,value:i,defaultValue:s,onChange:v,valueManager:uo}),A=rc(O),$=Xs(),D=ct(),_=x.useMemo(()=>uo.getInitialReferenceValue({value:T,utils:D,props:r,timezone:O,referenceDate:a,granularity:kr.month}),[]),L=r,V=fA(L),I=x.useMemo(()=>D.getMonth(A),[D,A]),F=x.useMemo(()=>T!=null?D.getMonth(T):S?null:D.getMonth(_),[T,D,S,_]),[z,ae]=x.useState(()=>F||I),[re,de]=bn({name:"MonthCalendar",state:"hasFocus",controlled:C,default:h??!1}),W=Me(ee=>{de(ee),w&&w(ee)}),ne=x.useCallback(ee=>{const X=D.startOfMonth(u&&D.isAfter(A,p)?A:p),j=D.startOfMonth(c&&D.isBefore(A,f)?A:f),U=D.startOfMonth(ee);return D.isBefore(U,X)||D.isAfter(U,j)?!0:y?y(U):!1},[c,u,f,p,A,y,D]),pe=Me((ee,X)=>{if(g)return;const j=D.setMonth(T??_,X);R(j)}),Y=Me(ee=>{ne(D.setMonth(T??_,ee))||(ae(ee),W(!0),m&&m(ee))});x.useEffect(()=>{ae(ee=>F!==null&&ee!==F?F:ee)},[F]);const me=Me((ee,X)=>{switch(ee.key){case"ArrowUp":Y((12+X-3)%12),ee.preventDefault();break;case"ArrowDown":Y((12+X+3)%12),ee.preventDefault();break;case"ArrowLeft":Y((12+X+($.direction==="ltr"?-1:1))%12),ee.preventDefault();break;case"ArrowRight":Y((12+X+($.direction==="ltr"?1:-1))%12),ee.preventDefault();break}}),Se=Me((ee,X)=>{Y(X)}),Ee=Me((ee,X)=>{z===X&&W(!1)});return d.jsx(hA,b({ref:n,className:le(V.root,o),ownerState:L,role:"radiogroup","aria-labelledby":E},M,{children:zm(D,T??_).map(ee=>{const X=D.getMonth(ee),j=D.format(ee,"monthShort"),U=D.format(ee,"month"),K=X===F,xe=l||ne(ee);return d.jsx(cA,{selected:K,value:X,onClick:pe,onKeyDown:me,autoFocus:re&&X===z,disabled:xe,tabIndex:X===z?0:-1,onFocus:Se,onBlur:Ee,"aria-current":I===X?"date":void 0,"aria-label":U,monthsPerRow:k,children:j},j)})}))});function gA(e){return _e("MuiPickersYear",e)}const zc=Pe("MuiPickersYear",["root","yearButton","selected","disabled"]),yA=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],vA=e=>{const{disabled:t,selected:n,classes:r}=e;return De({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},gA,r)},xA=H("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),CA=H("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${zc.disabled}`]:t.disabled},{[`&.${zc.selected}`]:t.selected}]})(({theme:e})=>b({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Ne(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${zc.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${zc.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),bA=x.memo(function(t){const n=Te({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:i,disabled:s,selected:a,value:l,tabIndex:c,onClick:u,onKeyDown:f,onFocus:p,onBlur:v,"aria-current":y}=n,g=Q(n,yA),S=x.useRef(null),h=vA(n);return x.useEffect(()=>{r&&S.current.focus()},[r]),d.jsx(xA,b({className:le(h.root,o),ownerState:n},g,{children:d.jsx(CA,{ref:S,disabled:s,type:"button",role:"radio",tabIndex:s?-1:c,"aria-current":y,"aria-checked":a,onClick:m=>u(m,l),onKeyDown:m=>f(m,l),onFocus:m=>p(m,l),onBlur:m=>v(m,l),className:h.yearButton,ownerState:n,children:i})}))});function wA(e){return _e("MuiYearCalendar",e)}Pe("MuiYearCalendar",["root"]);const SA=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],kA=e=>{const{classes:t}=e;return De({root:["root"]},wA,t)};function EA(e,t){var n;const r=ct(),o=nc(),i=Te({props:e,name:t});return b({disablePast:!1,disableFuture:!1},i,{yearsPerRow:(n=i.yearsPerRow)!=null?n:3,minDate:Jn(r,i.minDate,o.minDate),maxDate:Jn(r,i.maxDate,o.maxDate)})}const PA=H("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:$f,maxHeight:t$,boxSizing:"border-box",position:"relative"}),MA=x.forwardRef(function(t,n){const r=EA(t,"MuiYearCalendar"),{autoFocus:o,className:i,value:s,defaultValue:a,referenceDate:l,disabled:c,disableFuture:u,disablePast:f,maxDate:p,minDate:v,onChange:y,readOnly:g,shouldDisableYear:S,disableHighlightToday:h,onYearFocus:m,hasFocus:C,onFocusedViewChange:w,yearsPerRow:k,timezone:P,gridLabelId:E}=r,M=Q(r,SA),{value:T,handleValueChange:R,timezone:O}=Hm({name:"YearCalendar",timezone:P,value:s,defaultValue:a,onChange:y,valueManager:uo}),A=rc(O),$=Xs(),D=ct(),_=x.useMemo(()=>uo.getInitialReferenceValue({value:T,utils:D,props:r,timezone:O,referenceDate:l,granularity:kr.year}),[]),L=r,V=kA(L),I=x.useMemo(()=>D.getYear(A),[D,A]),F=x.useMemo(()=>T!=null?D.getYear(T):h?null:D.getYear(_),[T,D,h,_]),[z,ae]=x.useState(()=>F||I),[re,de]=bn({name:"YearCalendar",state:"hasFocus",controlled:C,default:o??!1}),W=Me(j=>{de(j),w&&w(j)}),ne=x.useCallback(j=>{if(f&&D.isBeforeYear(j,A)||u&&D.isAfterYear(j,A)||v&&D.isBeforeYear(j,v)||p&&D.isAfterYear(j,p))return!0;if(!S)return!1;const U=D.startOfYear(j);return S(U)},[u,f,p,v,A,S,D]),pe=Me((j,U)=>{if(g)return;const K=D.setYear(T??_,U);R(K)}),Y=Me(j=>{ne(D.setYear(T??_,j))||(ae(j),W(!0),m==null||m(j))});x.useEffect(()=>{ae(j=>F!==null&&j!==F?F:j)},[F]);const me=Me((j,U)=>{switch(j.key){case"ArrowUp":Y(U-k),j.preventDefault();break;case"ArrowDown":Y(U+k),j.preventDefault();break;case"ArrowLeft":Y(U+($.direction==="ltr"?-1:1)),j.preventDefault();break;case"ArrowRight":Y(U+($.direction==="ltr"?1:-1)),j.preventDefault();break}}),Se=Me((j,U)=>{Y(U)}),Ee=Me((j,U)=>{z===U&&W(!1)}),ee=x.useRef(null),X=tt(n,ee);return x.useEffect(()=>{if(o||ee.current===null)return;const j=ee.current.querySelector('[tabindex="0"]');if(!j)return;const U=j.offsetHeight,K=j.offsetTop,xe=ee.current.clientHeight,Ie=ee.current.scrollTop,se=K+U;U>xe||K{const U=D.getYear(j),K=U===F,xe=c||ne(j);return d.jsx(bA,{selected:K,value:U,onClick:pe,onKeyDown:me,autoFocus:re&&U===z,disabled:xe,tabIndex:U===z?0:-1,onFocus:Se,onBlur:Ee,"aria-current":I===U?"date":void 0,yearsPerRow:k,children:D.format(j,"year")},D.format(j,"year"))})}))}),TA=e=>_e("MuiPickersCalendarHeader",e),RA=Pe("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),DA=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],_A=["ownerState"],OA=e=>{const{classes:t}=e;return De({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},TA,t)},IA=H("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),$A=H("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>b({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),FA=H("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),AA=H(ea,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>b({marginRight:"auto"},e.view==="year"&&{[`.${RA.switchViewIcon}`]:{transform:"rotate(180deg)"}})),LA=H(AI,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),jA=x.forwardRef(function(t,n){var r,o,i,s;const a=Zo(),l=ct(),c=Te({props:t,name:"MuiPickersCalendarHeader"}),{slots:u,slotProps:f,components:p,currentMonth:v,disabled:y,disableFuture:g,disablePast:S,maxDate:h,minDate:m,onMonthChange:C,onViewChange:w,view:k,reduceAnimations:P,views:E,labelId:M,className:T,timezone:R}=c,O=Q(c,DA),A=c,$=OA(c),D=(r=(o=u==null?void 0:u.switchViewButton)!=null?o:p==null?void 0:p.SwitchViewButton)!=null?r:AA,_=We({elementType:D,externalSlotProps:f==null?void 0:f.switchViewButton,additionalProps:{size:"small","aria-label":a.calendarViewSwitchingButtonAriaLabel(k)},ownerState:A,className:$.switchViewButton}),L=(i=(s=u==null?void 0:u.switchViewIcon)!=null?s:p==null?void 0:p.SwitchViewIcon)!=null?i:LA,V=We({elementType:L,externalSlotProps:f==null?void 0:f.switchViewIcon,ownerState:void 0,className:$.switchViewIcon}),I=Q(V,_A),F=()=>C(l.addMonths(v,1),"left"),z=()=>C(l.addMonths(v,-1),"right"),ae=QI(v,{disableFuture:g,maxDate:h,timezone:R}),re=e$(v,{disablePast:S,minDate:m,timezone:R}),de=()=>{if(!(E.length===1||!w||y))if(E.length===2)w(E.find(W=>W!==k)||E[0]);else{const W=E.indexOf(k)!==0?0:1;w(E[W])}};return E.length===1&&E[0]==="year"?null:d.jsxs(IA,b({},O,{ownerState:A,className:le(T,$.root),ref:n,children:[d.jsxs($A,{role:"presentation",onClick:de,ownerState:A,"aria-live":"polite",className:$.labelContainer,children:[d.jsx(_x,{reduceAnimations:P,transKey:l.format(v,"monthAndYear"),children:d.jsx(FA,{id:M,ownerState:A,className:$.label,children:l.format(v,"monthAndYear")})}),E.length>1&&!y&&d.jsx(D,b({},_,{children:d.jsx(L,b({},I))}))]}),d.jsx(ta,{in:k==="day",children:d.jsx(KI,{slots:u,slotProps:f,onGoToPrevious:z,isPreviousDisabled:re,previousLabel:a.previousMonth,onGoToNext:F,isNextDisabled:ae,nextLabel:a.nextMonth})})]}))}),NA=e=>_e("MuiDateCalendar",e);Pe("MuiDateCalendar",["root","viewTransitionContainer"]);const VA=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],zA=e=>{const{classes:t}=e;return De({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},NA,t)};function BA(e,t){var n,r,o,i,s,a,l;const c=ct(),u=nc(),f=Sx(),p=Te({props:e,name:t});return b({},p,{loading:(n=p.loading)!=null?n:!1,disablePast:(r=p.disablePast)!=null?r:!1,disableFuture:(o=p.disableFuture)!=null?o:!1,openTo:(i=p.openTo)!=null?i:"day",views:(s=p.views)!=null?s:["year","day"],reduceAnimations:(a=p.reduceAnimations)!=null?a:f,renderLoading:(l=p.renderLoading)!=null?l:()=>d.jsx("span",{children:"..."}),minDate:Jn(c,p.minDate,u.minDate),maxDate:Jn(c,p.maxDate,u.maxDate)})}const WA=H(n$,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Vm}),HA=H(_x,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),UA=x.forwardRef(function(t,n){var r,o,i;const s=ct(),a=ho(),l=BA(t,"MuiDateCalendar"),{autoFocus:c,onViewChange:u,value:f,defaultValue:p,referenceDate:v,disableFuture:y,disablePast:g,defaultCalendarMonth:S,onChange:h,onYearChange:m,onMonthChange:C,reduceAnimations:w,shouldDisableDate:k,shouldDisableMonth:P,shouldDisableYear:E,view:M,views:T,openTo:R,className:O,disabled:A,readOnly:$,minDate:D,maxDate:_,disableHighlightToday:L,focusedView:V,onFocusedViewChange:I,showDaysOutsideCurrentMonth:F,fixedWeekNumber:z,dayOfWeekFormatter:ae,components:re,componentsProps:de,slots:W,slotProps:ne,loading:pe,renderLoading:Y,displayWeekNumber:me,yearsPerRow:Se,monthsPerRow:Ee,timezone:ee}=l,X=Q(l,VA),{value:j,handleValueChange:U,timezone:K}=Hm({name:"DateCalendar",timezone:ee,value:f,defaultValue:p,onChange:h,valueManager:uo}),{view:xe,setView:Ie,focusedView:se,setFocusedView:fe,goToNextView:B,setValueAndGoToNextView:Z}=lx({view:M,views:T,openTo:R,onChange:U,onViewChange:u,autoFocus:c,focusedView:V,onFocusedViewChange:I}),{referenceDate:we,calendarState:$e,changeFocusedDay:ke,changeMonth:q,handleChangeMonth:he,isDateDisabled:ve,onMonthSwitchingAnimationEnd:ge}=qF({value:j,defaultCalendarMonth:S,referenceDate:v,reduceAnimations:w,onMonthChange:C,minDate:D,maxDate:_,shouldDisableDate:k,disablePast:g,disableFuture:y,timezone:K}),ye=A&&j||D,Ke=A&&j||_,Ve=`${a}-grid-label`,He=se!==null,ue=(r=(o=W==null?void 0:W.calendarHeader)!=null?o:re==null?void 0:re.CalendarHeader)!=null?r:jA,je=We({elementType:ue,externalSlotProps:(i=ne==null?void 0:ne.calendarHeader)!=null?i:de==null?void 0:de.calendarHeader,additionalProps:{views:T,view:xe,currentMonth:$e.currentMonth,onViewChange:Ie,onMonthChange:(at,un)=>he({newMonth:at,direction:un}),minDate:ye,maxDate:Ke,disabled:A,disablePast:g,disableFuture:y,reduceAnimations:w,timezone:K,labelId:Ve,slots:W,slotProps:ne},ownerState:l}),ut=Me(at=>{const un=s.startOfMonth(at),Jo=s.endOfMonth(at),Ln=ve(at)?ol({utils:s,date:at,minDate:s.isBefore(D,un)?un:D,maxDate:s.isAfter(_,Jo)?Jo:_,disablePast:g,disableFuture:y,isDateDisabled:ve,timezone:K}):at;Ln?(Z(Ln,"finish"),C==null||C(un)):(B(),q(un)),ke(Ln,!0)}),bt=Me(at=>{const un=s.startOfYear(at),Jo=s.endOfYear(at),Ln=ve(at)?ol({utils:s,date:at,minDate:s.isBefore(D,un)?un:D,maxDate:s.isAfter(_,Jo)?Jo:_,disablePast:g,disableFuture:y,isDateDisabled:ve,timezone:K}):at;Ln?(Z(Ln,"finish"),m==null||m(Ln)):(B(),q(un)),ke(Ln,!0)}),xo=Me(at=>U(at&&D1(s,at,j??we),"finish",xe));x.useEffect(()=>{j!=null&&s.isValid(j)&&q(j)},[j]);const ji=l,sa=zA(ji),Ni={disablePast:g,disableFuture:y,maxDate:_,minDate:D},Vi={disableHighlightToday:L,readOnly:$,disabled:A,timezone:K,gridLabelId:Ve},Xo=x.useRef(xe);x.useEffect(()=>{Xo.current!==xe&&(se===Xo.current&&fe(xe,!0),Xo.current=xe)},[se,fe,xe]);const aa=x.useMemo(()=>[j],[j]);return d.jsxs(WA,b({ref:n,className:le(sa.root,O),ownerState:ji},X,{children:[d.jsx(ue,b({},je)),d.jsx(HA,{reduceAnimations:w,className:sa.viewTransitionContainer,transKey:xe,ownerState:ji,children:d.jsxs("div",{children:[xe==="year"&&d.jsx(MA,b({},Ni,Vi,{value:j,onChange:bt,shouldDisableYear:E,hasFocus:He,onFocusedViewChange:at=>fe("year",at),yearsPerRow:Se,referenceDate:we})),xe==="month"&&d.jsx(mA,b({},Ni,Vi,{hasFocus:He,className:O,value:j,onChange:ut,shouldDisableMonth:P,onFocusedViewChange:at=>fe("month",at),monthsPerRow:Ee,referenceDate:we})),xe==="day"&&d.jsx(GF,b({},$e,Ni,Vi,{onMonthSwitchingAnimationEnd:ge,onFocusedDayChange:ke,reduceAnimations:w,selectedDays:aa,onSelectedDaysChange:xo,shouldDisableDate:k,shouldDisableMonth:P,shouldDisableYear:E,hasFocus:He,onFocusedViewChange:at=>fe("day",at),showDaysOutsideCurrentMonth:F,fixedWeekNumber:z,dayOfWeekFormatter:ae,displayWeekNumber:me,components:re,componentsProps:de,slots:W,slotProps:ne,loading:pe,renderLoading:Y}))]})})]}))});function YA(e){return _e("MuiDatePickerToolbar",e)}Pe("MuiDatePickerToolbar",["root","title"]);const GA=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],KA=e=>{const{classes:t}=e;return De({root:["root"],title:["title"]},YA,t)},qA=H(aF,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ZA=H(Re,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>b({},e.isLandscape&&{margin:"auto 16px auto auto"})),XA=x.forwardRef(function(t,n){const r=Te({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:i,toolbarFormat:s,toolbarPlaceholder:a="––",views:l}=r,c=Q(r,GA),u=ct(),f=Zo(),p=KA(r),v=x.useMemo(()=>{if(!o)return a;const g=Bm(u,{format:s,views:l},!0);return u.formatByString(o,g)},[o,s,a,u,l]),y=r;return d.jsx(qA,b({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:i,className:p.root},c,{children:d.jsx(ZA,{variant:"h4",align:i?"left":"center",ownerState:y,className:p.title,children:v})}))});function Ox(e,t){var n,r,o,i;const s=ct(),a=nc(),l=Te({props:e,name:t}),c=x.useMemo(()=>{var f;return((f=l.localeText)==null?void 0:f.toolbarTitle)==null?l.localeText:b({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),u=(n=l.slots)!=null?n:yx(l.components);return b({},l,{localeText:c},qI({views:l.views,openTo:l.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(r=l.disableFuture)!=null?r:!1,disablePast:(o=l.disablePast)!=null?o:!1,minDate:Jn(s,l.minDate,a.minDate),maxDate:Jn(s,l.maxDate,a.maxDate),slots:b({toolbar:XA},u),slotProps:(i=l.slotProps)!=null?i:l.componentsProps})}const JA=["props","getOpenDialogAriaText"],QA=["ownerState"],eL=["ownerState"],tL=e=>{var t,n,r,o,i;let{props:s,getOpenDialogAriaText:a}=e,l=Q(e,JA);const{slots:c,slotProps:u,className:f,sx:p,format:v,formatDensity:y,timezone:g,name:S,label:h,inputRef:m,readOnly:C,disabled:w,autoFocus:k,localeText:P,reduceAnimations:E}=s,M=ct(),T=x.useRef(null),R=x.useRef(null),O=ho(),A=(t=u==null||(n=u.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:$,actions:D,hasUIView:_,layoutProps:L,renderCurrentView:V,shouldRestoreFocus:I,fieldProps:F}=kx(b({},l,{props:s,inputRef:T,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),z=(r=c.inputAdornment)!=null?r:Am,ae=We({elementType:z,externalSlotProps:u==null?void 0:u.inputAdornment,additionalProps:{position:"end"},ownerState:s}),re=Q(ae,QA),de=(o=c.openPickerButton)!=null?o:ea,W=We({elementType:de,externalSlotProps:u==null?void 0:u.openPickerButton,additionalProps:{disabled:w||C,onClick:$?D.onClose:D.onOpen,"aria-label":a(F.value,M),edge:re.position},ownerState:s}),ne=Q(W,eL),pe=c.openPickerIcon,Y=c.field,me=We({elementType:Y,externalSlotProps:u==null?void 0:u.field,additionalProps:b({},F,A&&{id:O},{readOnly:C,disabled:w,className:f,sx:p,format:v,formatDensity:y,timezone:g,label:h,name:S,autoFocus:k&&!s.open,focused:$?!0:void 0}),ownerState:s});_&&(me.InputProps=b({},me.InputProps,{ref:R,[`${re.position}Adornment`]:d.jsx(z,b({},re,{children:d.jsx(de,b({},ne,{children:d.jsx(pe,b({},u==null?void 0:u.openPickerIcon))}))}))}));const Se=b({textField:c.textField,clearIcon:c.clearIcon,clearButton:c.clearButton},me.slots),Ee=(i=c.layout)!=null?i:Mx,ee=tt(T,me.inputRef,m);let X=O;A&&(h?X=`${O}-label`:X=void 0);const j=b({},u,{toolbar:b({},u==null?void 0:u.toolbar,{titleId:O}),popper:b({"aria-labelledby":X},u==null?void 0:u.popper)});return{renderPicker:()=>d.jsxs(Nm,{localeText:P,children:[d.jsx(Y,b({},me,{slots:Se,slotProps:j,inputRef:ee})),d.jsx(nF,b({role:"dialog",placement:"bottom-start",anchorEl:R.current},D,{open:$,slots:c,slotProps:j,shouldRestoreFocus:I,reduceAnimations:E,children:d.jsx(Ee,b({},L,j==null?void 0:j.layout,{slots:c,slotProps:j,children:V()}))}))]})}},Ps=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:i,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:v,maxDate:y,shouldDisableDate:g,shouldDisableMonth:S,shouldDisableYear:h,reduceAnimations:m,onMonthChange:C,monthsPerRow:w,onYearChange:k,yearsPerRow:P,defaultCalendarMonth:E,components:M,componentsProps:T,slots:R,slotProps:O,loading:A,renderLoading:$,disableHighlightToday:D,readOnly:_,disabled:L,showDaysOutsideCurrentMonth:V,dayOfWeekFormatter:I,sx:F,autoFocus:z,fixedWeekNumber:ae,displayWeekNumber:re,timezone:de})=>d.jsx(UA,{view:e,onViewChange:t,views:n.filter(lv),focusedView:r&&lv(r)?r:null,onFocusedViewChange:o,value:i,defaultValue:s,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:f,disablePast:p,minDate:v,maxDate:y,shouldDisableDate:g,shouldDisableMonth:S,shouldDisableYear:h,reduceAnimations:m,onMonthChange:C,monthsPerRow:w,onYearChange:k,yearsPerRow:P,defaultCalendarMonth:E,components:M,componentsProps:T,slots:R,slotProps:O,loading:A,renderLoading:$,disableHighlightToday:D,readOnly:_,disabled:L,showDaysOutsideCurrentMonth:V,dayOfWeekFormatter:I,sx:F,autoFocus:z,fixedWeekNumber:ae,displayWeekNumber:re,timezone:de}),Ix=x.forwardRef(function(t,n){var r,o,i,s;const a=Zo(),l=ct(),c=Ox(t,"MuiDesktopDatePicker"),u=b({day:Ps,month:Ps,year:Ps},c.viewRenderers),f=b({},c,{viewRenderers:u,format:Bm(l,c,!1),yearsPerRow:(r=c.yearsPerRow)!=null?r:4,slots:b({openPickerIcon:NI,field:Dx},c.slots),slotProps:b({},c.slotProps,{field:v=>{var y;return b({},Pm((y=c.slotProps)==null?void 0:y.field,v),wx(c),{ref:n})},toolbar:b({hidden:!0},(o=c.slotProps)==null?void 0:o.toolbar)})}),{renderPicker:p}=tL({props:f,valueManager:uo,valueType:"date",getOpenDialogAriaText:(i=(s=f.localeText)==null?void 0:s.openDatePickerDialogue)!=null?i:a.openDatePickerDialogue,validator:Af});return p()});Ix.propTypes={autoFocus:N.bool,className:N.string,closeOnSelect:N.bool,components:N.object,componentsProps:N.object,dayOfWeekFormatter:N.func,defaultCalendarMonth:N.any,defaultValue:N.any,disabled:N.bool,disableFuture:N.bool,disableHighlightToday:N.bool,disableOpenPicker:N.bool,disablePast:N.bool,displayWeekNumber:N.bool,fixedWeekNumber:N.number,format:N.string,formatDensity:N.oneOf(["dense","spacious"]),inputRef:Y5,label:N.node,loading:N.bool,localeText:N.object,maxDate:N.any,minDate:N.any,monthsPerRow:N.oneOf([3,4]),name:N.string,onAccept:N.func,onChange:N.func,onClose:N.func,onError:N.func,onMonthChange:N.func,onOpen:N.func,onSelectedSectionsChange:N.func,onViewChange:N.func,onYearChange:N.func,open:N.bool,openTo:N.oneOf(["day","month","year"]),orientation:N.oneOf(["landscape","portrait"]),readOnly:N.bool,reduceAnimations:N.bool,referenceDate:N.any,renderLoading:N.func,selectedSections:N.oneOfType([N.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),N.number,N.shape({endIndex:N.number.isRequired,startIndex:N.number.isRequired})]),shouldDisableDate:N.func,shouldDisableMonth:N.func,shouldDisableYear:N.func,showDaysOutsideCurrentMonth:N.bool,slotProps:N.object,slots:N.object,sx:N.oneOfType([N.arrayOf(N.oneOfType([N.func,N.object,N.bool])),N.func,N.object]),timezone:N.string,value:N.any,view:N.oneOf(["day","month","year"]),viewRenderers:N.shape({day:N.func,month:N.func,year:N.func}),views:N.arrayOf(N.oneOf(["day","month","year"]).isRequired),yearsPerRow:N.oneOf([3,4])};const nL=["props","getOpenDialogAriaText"],rL=e=>{var t,n,r;let{props:o,getOpenDialogAriaText:i}=e,s=Q(e,nL);const{slots:a,slotProps:l,className:c,sx:u,format:f,formatDensity:p,timezone:v,name:y,label:g,inputRef:S,readOnly:h,disabled:m,localeText:C}=o,w=ct(),k=x.useRef(null),P=ho(),E=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:M,actions:T,layoutProps:R,renderCurrentView:O,fieldProps:A}=kx(b({},s,{props:o,inputRef:k,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),$=a.field,D=We({elementType:$,externalSlotProps:l==null?void 0:l.field,additionalProps:b({},A,E&&{id:P},!(m||h)&&{onClick:T.onOpen,onKeyDown:$$(T.onOpen)},{readOnly:h??!0,disabled:m,className:c,sx:u,format:f,formatDensity:p,timezone:v,label:g,name:y}),ownerState:o});D.inputProps=b({},D.inputProps,{"aria-label":i(A.value,w)});const _=b({textField:a.textField},D.slots),L=(r=a.layout)!=null?r:Mx,V=tt(k,D.inputRef,S);let I=P;E&&(g?I=`${P}-label`:I=void 0);const F=b({},l,{toolbar:b({},l==null?void 0:l.toolbar,{titleId:P}),mobilePaper:b({"aria-labelledby":I},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>d.jsxs(Nm,{localeText:C,children:[d.jsx($,b({},D,{slots:_,slotProps:F,inputRef:V})),d.jsx(U$,b({},T,{open:M,slots:a,slotProps:F,children:d.jsx(L,b({},R,F==null?void 0:F.layout,{slots:a,slotProps:F,children:O()}))}))]})}},$x=x.forwardRef(function(t,n){var r,o,i;const s=Zo(),a=ct(),l=Ox(t,"MuiMobileDatePicker"),c=b({day:Ps,month:Ps,year:Ps},l.viewRenderers),u=b({},l,{viewRenderers:c,format:Bm(a,l,!1),slots:b({field:Dx},l.slots),slotProps:b({},l.slotProps,{field:p=>{var v;return b({},Pm((v=l.slotProps)==null?void 0:v.field,p),wx(l),{ref:n})},toolbar:b({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:f}=rL({props:u,valueManager:uo,valueType:"date",getOpenDialogAriaText:(o=(i=u.localeText)==null?void 0:i.openDatePickerDialogue)!=null?o:s.openDatePickerDialogue,validator:Af});return f()});$x.propTypes={autoFocus:N.bool,className:N.string,closeOnSelect:N.bool,components:N.object,componentsProps:N.object,dayOfWeekFormatter:N.func,defaultCalendarMonth:N.any,defaultValue:N.any,disabled:N.bool,disableFuture:N.bool,disableHighlightToday:N.bool,disableOpenPicker:N.bool,disablePast:N.bool,displayWeekNumber:N.bool,fixedWeekNumber:N.number,format:N.string,formatDensity:N.oneOf(["dense","spacious"]),inputRef:Y5,label:N.node,loading:N.bool,localeText:N.object,maxDate:N.any,minDate:N.any,monthsPerRow:N.oneOf([3,4]),name:N.string,onAccept:N.func,onChange:N.func,onClose:N.func,onError:N.func,onMonthChange:N.func,onOpen:N.func,onSelectedSectionsChange:N.func,onViewChange:N.func,onYearChange:N.func,open:N.bool,openTo:N.oneOf(["day","month","year"]),orientation:N.oneOf(["landscape","portrait"]),readOnly:N.bool,reduceAnimations:N.bool,referenceDate:N.any,renderLoading:N.func,selectedSections:N.oneOfType([N.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),N.number,N.shape({endIndex:N.number.isRequired,startIndex:N.number.isRequired})]),shouldDisableDate:N.func,shouldDisableMonth:N.func,shouldDisableYear:N.func,showDaysOutsideCurrentMonth:N.bool,slotProps:N.object,slots:N.object,sx:N.oneOfType([N.arrayOf(N.oneOfType([N.func,N.object,N.bool])),N.func,N.object]),timezone:N.string,value:N.any,view:N.oneOf(["day","month","year"]),viewRenderers:N.shape({day:N.func,month:N.func,year:N.func}),views:N.arrayOf(N.oneOf(["day","month","year"]).isRequired),yearsPerRow:N.oneOf([3,4])};const oL=["desktopModeMediaQuery"],iL=x.forwardRef(function(t,n){const r=Te({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=F$}=r,i=Q(r,oL);return W6(o,{defaultMatches:!0})?d.jsx(Ix,b({ref:n},i)):d.jsx($x,b({ref:n},i))});//! moment.js //! version : 2.30.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com var Fx;function ce(){return Fx.apply(null,arguments)}function sL(e){Fx=e}function gr(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function xi(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Xe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ym(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Xe(e,t))return!1;return!0}function dn(e){return e===void 0}function fo(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function oc(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Ax(e,t){var n=[],r,o=e.length;for(r=0;r>>0,r;for(r=0;r0)for(n=0;n=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var Zm=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Bc=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Qp={},Ms={};function Oe(e,t,n,r){var o=r;typeof r=="string"&&(o=function(){return this[r]()}),e&&(Ms[e]=o),t&&(Ms[t[0]]=function(){return Lr(o.apply(this,arguments),t[1],t[2])}),n&&(Ms[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function dL(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function fL(e){var t=e.match(Zm),n,r;for(n=0,r=t.length;n=0&&Bc.test(e);)e=e.replace(Bc,r),Bc.lastIndex=0,n-=1;return e}var pL={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function hL(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Zm).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var mL="Invalid date";function gL(){return this._invalidDate}var yL="%d",vL=/\d{1,2}/;function xL(e){return this._ordinal.replace("%d",e)}var CL={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function bL(e,t,n,r){var o=this._relativeTime[n];return Vr(o)?o(e,t,n,r):o.replace(/%d/i,e)}function wL(e,t){var n=this._relativeTime[e>0?"future":"past"];return Vr(n)?n(t):n.replace(/%s/i,t)}var xv={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function nr(e){return typeof e=="string"?xv[e]||xv[e.toLowerCase()]:void 0}function Xm(e){var t={},n,r;for(r in e)Xe(e,r)&&(n=nr(r),n&&(t[n]=e[r]));return t}var SL={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function kL(e){var t=[],n;for(n in e)Xe(e,n)&&t.push({unit:n,priority:SL[n]});return t.sort(function(r,o){return r.priority-o.priority}),t}var Vx=/\d/,An=/\d\d/,zx=/\d{3}/,Jm=/\d{4}/,jf=/[+-]?\d{6}/,ht=/\d\d?/,Bx=/\d\d\d\d?/,Wx=/\d\d\d\d\d\d?/,Nf=/\d{1,3}/,Qm=/\d{1,4}/,Vf=/[+-]?\d{1,6}/,na=/\d+/,zf=/[+-]?\d+/,EL=/Z|[+-]\d\d:?\d\d/gi,Bf=/Z|[+-]\d\d(?::?\d\d)?/gi,PL=/[+-]?\d+(\.\d{1,3})?/,sc=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ra=/^[1-9]\d?/,eg=/^([1-9]\d|\d)/,dd;dd={};function Ce(e,t,n){dd[e]=Vr(t)?t:function(r,o){return r&&n?n:t}}function ML(e,t){return Xe(dd,e)?dd[e](t._strict,t._locale):new RegExp(TL(e))}function TL(e){return no(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,o,i){return n||r||o||i}))}function no(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Wn(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ze(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Wn(t)),n}var A1={};function st(e,t){var n,r=t,o;for(typeof e=="string"&&(e=[e]),fo(t)&&(r=function(i,s){s[t]=ze(i)}),o=e.length,n=0;n68?1900:2e3)};var Hx=oa("FullYear",!0);function OL(){return Wf(this.year())}function oa(e,t){return function(n){return n!=null?(Ux(this,e,n),ce.updateOffset(this,t),this):Ol(this,e)}}function Ol(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ux(e,t,n){var r,o,i,s,a;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,s=e.month(),a=e.date(),a=a===29&&s===1&&!Wf(i)?28:a,o?r.setUTCFullYear(i,s,a):r.setFullYear(i,s,a)}}function IL(e){return e=nr(e),Vr(this[e])?this[e]():this}function $L(e,t){if(typeof e=="object"){e=Xm(e);var n=kL(e),r,o=n.length;for(r=0;r=0?(a=new Date(e+400,t,n,r,o,i,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,o,i,s),a}function Il(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function fd(e,t,n){var r=7+t-n,o=(7+Il(e,0,r).getUTCDay()-t)%7;return-o+r-1}function Xx(e,t,n,r,o){var i=(7+n-r)%7,s=fd(e,r,o),a=1+7*(t-1)+i+s,l,c;return a<=0?(l=e-1,c=il(l)+a):a>il(e)?(l=e+1,c=a-il(e)):(l=e,c=a),{year:l,dayOfYear:c}}function $l(e,t,n){var r=fd(e.year(),t,n),o=Math.floor((e.dayOfYear()-r-1)/7)+1,i,s;return o<1?(s=e.year()-1,i=o+ro(s,t,n)):o>ro(e.year(),t,n)?(i=o-ro(e.year(),t,n),s=e.year()+1):(s=e.year(),i=o),{week:i,year:s}}function ro(e,t,n){var r=fd(e,t,n),o=fd(e+1,t,n);return(il(e)-r+o)/7}Oe("w",["ww",2],"wo","week");Oe("W",["WW",2],"Wo","isoWeek");Ce("w",ht,ra);Ce("ww",ht,An);Ce("W",ht,ra);Ce("WW",ht,An);ac(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=ze(e)});function GL(e){return $l(e,this._week.dow,this._week.doy).week}var KL={dow:0,doy:6};function qL(){return this._week.dow}function ZL(){return this._week.doy}function XL(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function JL(e){var t=$l(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Oe("d",0,"do","day");Oe("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Oe("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Oe("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Oe("e",0,0,"weekday");Oe("E",0,0,"isoWeekday");Ce("d",ht);Ce("e",ht);Ce("E",ht);Ce("dd",function(e,t){return t.weekdaysMinRegex(e)});Ce("ddd",function(e,t){return t.weekdaysShortRegex(e)});Ce("dddd",function(e,t){return t.weekdaysRegex(e)});ac(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);o!=null?t.d=o:Ae(n).invalidWeekday=e});ac(["d","e","E"],function(e,t,n,r){t[r]=ze(e)});function QL(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function ej(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ng(e,t){return e.slice(t,7).concat(e.slice(0,t))}var tj="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Jx="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),nj="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),rj=sc,oj=sc,ij=sc;function sj(e,t){var n=gr(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ng(n,this._week.dow):e?n[e.day()]:n}function aj(e){return e===!0?ng(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function lj(e){return e===!0?ng(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function cj(e,t,n){var r,o,i,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=Nr([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(o=Mt.call(this._weekdaysParse,s),o!==-1?o:null):t==="ddd"?(o=Mt.call(this._shortWeekdaysParse,s),o!==-1?o:null):(o=Mt.call(this._minWeekdaysParse,s),o!==-1?o:null):t==="dddd"?(o=Mt.call(this._weekdaysParse,s),o!==-1||(o=Mt.call(this._shortWeekdaysParse,s),o!==-1)?o:(o=Mt.call(this._minWeekdaysParse,s),o!==-1?o:null)):t==="ddd"?(o=Mt.call(this._shortWeekdaysParse,s),o!==-1||(o=Mt.call(this._weekdaysParse,s),o!==-1)?o:(o=Mt.call(this._minWeekdaysParse,s),o!==-1?o:null)):(o=Mt.call(this._minWeekdaysParse,s),o!==-1||(o=Mt.call(this._weekdaysParse,s),o!==-1)?o:(o=Mt.call(this._shortWeekdaysParse,s),o!==-1?o:null))}function uj(e,t,n){var r,o,i;if(this._weekdaysParseExact)return cj.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=Nr([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function dj(e){if(!this.isValid())return e!=null?this:NaN;var t=Ol(this,"Day");return e!=null?(e=QL(e,this.localeData()),this.add(e-t,"d")):t}function fj(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function pj(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=ej(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function hj(e){return this._weekdaysParseExact?(Xe(this,"_weekdaysRegex")||rg.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Xe(this,"_weekdaysRegex")||(this._weekdaysRegex=rj),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function mj(e){return this._weekdaysParseExact?(Xe(this,"_weekdaysRegex")||rg.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Xe(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=oj),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function gj(e){return this._weekdaysParseExact?(Xe(this,"_weekdaysRegex")||rg.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Xe(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ij),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function rg(){function e(u,f){return f.length-u.length}var t=[],n=[],r=[],o=[],i,s,a,l,c;for(i=0;i<7;i++)s=Nr([2e3,1]).day(i),a=no(this.weekdaysMin(s,"")),l=no(this.weekdaysShort(s,"")),c=no(this.weekdays(s,"")),t.push(a),n.push(l),r.push(c),o.push(a),o.push(l),o.push(c);t.sort(e),n.sort(e),r.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function og(){return this.hours()%12||12}function yj(){return this.hours()||24}Oe("H",["HH",2],0,"hour");Oe("h",["hh",2],0,og);Oe("k",["kk",2],0,yj);Oe("hmm",0,0,function(){return""+og.apply(this)+Lr(this.minutes(),2)});Oe("hmmss",0,0,function(){return""+og.apply(this)+Lr(this.minutes(),2)+Lr(this.seconds(),2)});Oe("Hmm",0,0,function(){return""+this.hours()+Lr(this.minutes(),2)});Oe("Hmmss",0,0,function(){return""+this.hours()+Lr(this.minutes(),2)+Lr(this.seconds(),2)});function Qx(e,t){Oe(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Qx("a",!0);Qx("A",!1);function e7(e,t){return t._meridiemParse}Ce("a",e7);Ce("A",e7);Ce("H",ht,eg);Ce("h",ht,ra);Ce("k",ht,ra);Ce("HH",ht,An);Ce("hh",ht,An);Ce("kk",ht,An);Ce("hmm",Bx);Ce("hmmss",Wx);Ce("Hmm",Bx);Ce("Hmmss",Wx);st(["H","HH"],At);st(["k","kk"],function(e,t,n){var r=ze(e);t[At]=r===24?0:r});st(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});st(["h","hh"],function(e,t,n){t[At]=ze(e),Ae(n).bigHour=!0});st("hmm",function(e,t,n){var r=e.length-2;t[At]=ze(e.substr(0,r)),t[dr]=ze(e.substr(r)),Ae(n).bigHour=!0});st("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[At]=ze(e.substr(0,r)),t[dr]=ze(e.substr(r,2)),t[eo]=ze(e.substr(o)),Ae(n).bigHour=!0});st("Hmm",function(e,t,n){var r=e.length-2;t[At]=ze(e.substr(0,r)),t[dr]=ze(e.substr(r))});st("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[At]=ze(e.substr(0,r)),t[dr]=ze(e.substr(r,2)),t[eo]=ze(e.substr(o))});function vj(e){return(e+"").toLowerCase().charAt(0)==="p"}var xj=/[ap]\.?m?\.?/i,Cj=oa("Hours",!0);function bj(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var t7={calendar:cL,longDateFormat:pL,invalidDate:mL,ordinal:yL,dayOfMonthOrdinalParse:vL,relativeTime:CL,months:AL,monthsShort:Yx,week:KL,weekdays:tj,weekdaysMin:nj,weekdaysShort:Jx,meridiemParse:xj},gt={},Ma={},Fl;function wj(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(o=Hf(i.slice(0,n).join("-")),o)return o;if(r&&r.length>=n&&wj(i,r)>=n-1)break;n--}t++}return Fl}function kj(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Hf(e){var t=null,n;if(gt[e]===void 0&&typeof module<"u"&&module&&module.exports&&kj(e))try{t=Fl._abbr,n=require,n("./locale/"+e),Vo(t)}catch{gt[e]=null}return gt[e]}function Vo(e,t){var n;return e&&(dn(t)?n=yo(e):n=ig(e,t),n?Fl=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Fl._abbr}function ig(e,t){if(t!==null){var n,r=t7;if(t.abbr=e,gt[e]!=null)jx("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=gt[e]._config;else if(t.parentLocale!=null)if(gt[t.parentLocale]!=null)r=gt[t.parentLocale]._config;else if(n=Hf(t.parentLocale),n!=null)r=n._config;else return Ma[t.parentLocale]||(Ma[t.parentLocale]=[]),Ma[t.parentLocale].push({name:e,config:t}),null;return gt[e]=new qm($1(r,t)),Ma[e]&&Ma[e].forEach(function(o){ig(o.name,o.config)}),Vo(e),gt[e]}else return delete gt[e],null}function Ej(e,t){if(t!=null){var n,r,o=t7;gt[e]!=null&>[e].parentLocale!=null?gt[e].set($1(gt[e]._config,t)):(r=Hf(e),r!=null&&(o=r._config),t=$1(o,t),r==null&&(t.abbr=e),n=new qm(t),n.parentLocale=gt[e],gt[e]=n),Vo(e)}else gt[e]!=null&&(gt[e].parentLocale!=null?(gt[e]=gt[e].parentLocale,e===Vo()&&Vo(e)):gt[e]!=null&&delete gt[e]);return gt[e]}function yo(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Fl;if(!gr(e)){if(t=Hf(e),t)return t;e=[e]}return Sj(e)}function Pj(){return F1(gt)}function sg(e){var t,n=e._a;return n&&Ae(e).overflow===-2&&(t=n[Qr]<0||n[Qr]>11?Qr:n[Pr]<1||n[Pr]>tg(n[Jt],n[Qr])?Pr:n[At]<0||n[At]>24||n[At]===24&&(n[dr]!==0||n[eo]!==0||n[hi]!==0)?At:n[dr]<0||n[dr]>59?dr:n[eo]<0||n[eo]>59?eo:n[hi]<0||n[hi]>999?hi:-1,Ae(e)._overflowDayOfYear&&(tPr)&&(t=Pr),Ae(e)._overflowWeeks&&t===-1&&(t=DL),Ae(e)._overflowWeekday&&t===-1&&(t=_L),Ae(e).overflow=t),e}var Mj=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Tj=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Rj=/Z|[+-]\d\d(?::?\d\d)?/,Wc=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],eh=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Dj=/^\/?Date\((-?\d+)/i,_j=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Oj={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function n7(e){var t,n,r=e._i,o=Mj.exec(r)||Tj.exec(r),i,s,a,l,c=Wc.length,u=eh.length;if(o){for(Ae(e).iso=!0,t=0,n=c;til(s)||e._dayOfYear===0)&&(Ae(e)._overflowDayOfYear=!0),n=Il(s,0,e._dayOfYear),e._a[Qr]=n.getUTCMonth(),e._a[Pr]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=o[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[At]===24&&e._a[dr]===0&&e._a[eo]===0&&e._a[hi]===0&&(e._nextDay=!0,e._a[At]=0),e._d=(e._useUTC?Il:YL).apply(null,r),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[At]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(Ae(e).weekdayMismatch=!0)}}function Vj(e){var t,n,r,o,i,s,a,l,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,s=4,n=ts(t.GG,e._a[Jt],$l(pt(),1,4).year),r=ts(t.W,1),o=ts(t.E,1),(o<1||o>7)&&(l=!0)):(i=e._locale._week.dow,s=e._locale._week.doy,c=$l(pt(),i,s),n=ts(t.gg,e._a[Jt],c.year),r=ts(t.w,c.week),t.d!=null?(o=t.d,(o<0||o>6)&&(l=!0)):t.e!=null?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i),r<1||r>ro(n,i,s)?Ae(e)._overflowWeeks=!0:l!=null?Ae(e)._overflowWeekday=!0:(a=Xx(n,r,o,i,s),e._a[Jt]=a.year,e._dayOfYear=a.dayOfYear)}ce.ISO_8601=function(){};ce.RFC_2822=function(){};function lg(e){if(e._f===ce.ISO_8601){n7(e);return}if(e._f===ce.RFC_2822){r7(e);return}e._a=[],Ae(e).empty=!0;var t=""+e._i,n,r,o,i,s,a=t.length,l=0,c,u;for(o=Nx(e._f,e._locale).match(Zm)||[],u=o.length,n=0;n0&&Ae(e).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),l+=r.length),Ms[i]?(r?Ae(e).empty=!1:Ae(e).unusedTokens.push(i),RL(i,r,e)):e._strict&&!r&&Ae(e).unusedTokens.push(i);Ae(e).charsLeftOver=a-l,t.length>0&&Ae(e).unusedInput.push(t),e._a[At]<=12&&Ae(e).bigHour===!0&&e._a[At]>0&&(Ae(e).bigHour=void 0),Ae(e).parsedDateParts=e._a.slice(0),Ae(e).meridiem=e._meridiem,e._a[At]=zj(e._locale,e._a[At],e._meridiem),c=Ae(e).era,c!==null&&(e._a[Jt]=e._locale.erasConvertYear(c,e._a[Jt])),ag(e),sg(e)}function zj(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function Bj(e){var t,n,r,o,i,s,a=!1,l=e._f.length;if(l===0){Ae(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;othis?this:e:Lf()});function s7(e,t){var n,r;if(t.length===1&&gr(t[0])&&(t=t[0]),!t.length)return pt();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function cN(){if(!dn(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Km(e,this),e=o7(e),e._a?(t=e._isUTC?Nr(e._a):pt(e._a),this._isDSTShifted=this.isValid()&&eN(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function uN(){return this.isValid()?!this._isUTC:!1}function dN(){return this.isValid()?this._isUTC:!1}function l7(){return this.isValid()?this._isUTC&&this._offset===0:!1}var fN=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,pN=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function vr(e,t){var n=e,r=null,o,i,s;return xu(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:fo(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=fN.exec(e))?(o=r[1]==="-"?-1:1,n={y:0,d:ze(r[Pr])*o,h:ze(r[At])*o,m:ze(r[dr])*o,s:ze(r[eo])*o,ms:ze(L1(r[hi]*1e3))*o}):(r=pN.exec(e))?(o=r[1]==="-"?-1:1,n={y:ti(r[2],o),M:ti(r[3],o),w:ti(r[4],o),d:ti(r[5],o),h:ti(r[6],o),m:ti(r[7],o),s:ti(r[8],o)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=hN(pt(n.from),pt(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),i=new Uf(n),xu(e)&&Xe(e,"_locale")&&(i._locale=e._locale),xu(e)&&Xe(e,"_isValid")&&(i._isValid=e._isValid),i}vr.fn=Uf.prototype;vr.invalid=Qj;function ti(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function bv(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function hN(e,t){var n;return e.isValid()&&t.isValid()?(t=ug(t,e),e.isBefore(t)?n=bv(e,t):(n=bv(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function c7(e,t){return function(n,r){var o,i;return r!==null&&!isNaN(+r)&&(jx(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),o=vr(n,r),u7(this,o,e),this}}function u7(e,t,n,r){var o=t._milliseconds,i=L1(t._days),s=L1(t._months);e.isValid()&&(r=r??!0,s&&Kx(e,Ol(e,"Month")+s*n),i&&Ux(e,"Date",Ol(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&ce.updateOffset(e,i||s))}var mN=c7(1,"add"),gN=c7(-1,"subtract");function d7(e){return typeof e=="string"||e instanceof String}function yN(e){return yr(e)||oc(e)||d7(e)||fo(e)||xN(e)||vN(e)||e===null||e===void 0}function vN(e){var t=xi(e)&&!Ym(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,i,s=r.length;for(o=0;on.valueOf():n.valueOf()9999?vu(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Vr(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",vu(n,"Z")):vu(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function IN(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,o,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+r+o+i)}function $N(e){e||(e=this.isUtc()?ce.defaultFormatUtc:ce.defaultFormat);var t=vu(this,e);return this.localeData().postformat(t)}function FN(e,t){return this.isValid()&&(yr(e)&&e.isValid()||pt(e).isValid())?vr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function AN(e){return this.from(pt(),e)}function LN(e,t){return this.isValid()&&(yr(e)&&e.isValid()||pt(e).isValid())?vr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function jN(e){return this.to(pt(),e)}function f7(e){var t;return e===void 0?this._locale._abbr:(t=yo(e),t!=null&&(this._locale=t),this)}var p7=tr("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function h7(){return this._locale}var pd=1e3,Ts=60*pd,hd=60*Ts,m7=(365*400+97)*24*hd;function Rs(e,t){return(e%t+t)%t}function g7(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-m7:new Date(e,t,n).valueOf()}function y7(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-m7:Date.UTC(e,t,n)}function NN(e){var t,n;if(e=nr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?y7:g7,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Rs(t+(this._isUTC?0:this.utcOffset()*Ts),hd);break;case"minute":t=this._d.valueOf(),t-=Rs(t,Ts);break;case"second":t=this._d.valueOf(),t-=Rs(t,pd);break}return this._d.setTime(t),ce.updateOffset(this,!0),this}function VN(e){var t,n;if(e=nr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?y7:g7,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=hd-Rs(t+(this._isUTC?0:this.utcOffset()*Ts),hd)-1;break;case"minute":t=this._d.valueOf(),t+=Ts-Rs(t,Ts)-1;break;case"second":t=this._d.valueOf(),t+=pd-Rs(t,pd)-1;break}return this._d.setTime(t),ce.updateOffset(this,!0),this}function zN(){return this._d.valueOf()-(this._offset||0)*6e4}function BN(){return Math.floor(this.valueOf()/1e3)}function WN(){return new Date(this.valueOf())}function HN(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function UN(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function YN(){return this.isValid()?this.toISOString():null}function GN(){return Gm(this)}function KN(){return Ro({},Ae(this))}function qN(){return Ae(this).overflow}function ZN(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Oe("N",0,0,"eraAbbr");Oe("NN",0,0,"eraAbbr");Oe("NNN",0,0,"eraAbbr");Oe("NNNN",0,0,"eraName");Oe("NNNNN",0,0,"eraNarrow");Oe("y",["y",1],"yo","eraYear");Oe("y",["yy",2],0,"eraYear");Oe("y",["yyy",3],0,"eraYear");Oe("y",["yyyy",4],0,"eraYear");Ce("N",dg);Ce("NN",dg);Ce("NNN",dg);Ce("NNNN",aV);Ce("NNNNN",lV);st(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?Ae(n).era=o:Ae(n).invalidEra=e});Ce("y",na);Ce("yy",na);Ce("yyy",na);Ce("yyyy",na);Ce("yo",cV);st(["y","yy","yyy","yyyy"],Jt);st(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Jt]=n._locale.eraYearOrdinalParse(e,o):t[Jt]=parseInt(e,10)});function XN(e,t){var n,r,o,i=this._eras||yo("en")._eras;for(n=0,r=i.length;n=0)return i[r]}function QN(e,t){var n=e.since<=e.until?1:-1;return t===void 0?ce(e.since).year():ce(e.since).year()+(t-e.offset)*n}function eV(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ei&&(t=i),gV.call(this,e,t,n,r,o))}function gV(e,t,n,r,o){var i=Xx(e,t,n,r,o),s=Il(i.year,0,i.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}Oe("Q",0,"Qo","quarter");Ce("Q",Vx);st("Q",function(e,t){t[Qr]=(ze(e)-1)*3});function yV(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Oe("D",["DD",2],"Do","date");Ce("D",ht,ra);Ce("DD",ht,An);Ce("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});st(["D","DD"],Pr);st("Do",function(e,t){t[Pr]=ze(e.match(ht)[0])});var x7=oa("Date",!0);Oe("DDD",["DDDD",3],"DDDo","dayOfYear");Ce("DDD",Nf);Ce("DDDD",zx);st(["DDD","DDDD"],function(e,t,n){n._dayOfYear=ze(e)});function vV(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Oe("m",["mm",2],0,"minute");Ce("m",ht,eg);Ce("mm",ht,An);st(["m","mm"],dr);var xV=oa("Minutes",!1);Oe("s",["ss",2],0,"second");Ce("s",ht,eg);Ce("ss",ht,An);st(["s","ss"],eo);var CV=oa("Seconds",!1);Oe("S",0,0,function(){return~~(this.millisecond()/100)});Oe(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Oe(0,["SSS",3],0,"millisecond");Oe(0,["SSSS",4],0,function(){return this.millisecond()*10});Oe(0,["SSSSS",5],0,function(){return this.millisecond()*100});Oe(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Oe(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Oe(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Oe(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Ce("S",Nf,Vx);Ce("SS",Nf,An);Ce("SSS",Nf,zx);var Do,C7;for(Do="SSSS";Do.length<=9;Do+="S")Ce(Do,na);function bV(e,t){t[hi]=ze(("0."+e)*1e3)}for(Do="S";Do.length<=9;Do+="S")st(Do,bV);C7=oa("Milliseconds",!1);Oe("z",0,0,"zoneAbbr");Oe("zz",0,0,"zoneName");function wV(){return this._isUTC?"UTC":""}function SV(){return this._isUTC?"Coordinated Universal Time":""}var ie=ic.prototype;ie.add=mN;ie.calendar=wN;ie.clone=SN;ie.diff=DN;ie.endOf=VN;ie.format=$N;ie.from=FN;ie.fromNow=AN;ie.to=LN;ie.toNow=jN;ie.get=IL;ie.invalidAt=qN;ie.isAfter=kN;ie.isBefore=EN;ie.isBetween=PN;ie.isSame=MN;ie.isSameOrAfter=TN;ie.isSameOrBefore=RN;ie.isValid=GN;ie.lang=p7;ie.locale=f7;ie.localeData=h7;ie.max=Gj;ie.min=Yj;ie.parsingFlags=KN;ie.set=$L;ie.startOf=NN;ie.subtract=gN;ie.toArray=HN;ie.toObject=UN;ie.toDate=WN;ie.toISOString=ON;ie.inspect=IN;typeof Symbol<"u"&&Symbol.for!=null&&(ie[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ie.toJSON=YN;ie.toString=_N;ie.unix=BN;ie.valueOf=zN;ie.creationData=ZN;ie.eraName=eV;ie.eraNarrow=tV;ie.eraAbbr=nV;ie.eraYear=rV;ie.year=Hx;ie.isLeapYear=OL;ie.weekYear=uV;ie.isoWeekYear=dV;ie.quarter=ie.quarters=yV;ie.month=qx;ie.daysInMonth=WL;ie.week=ie.weeks=XL;ie.isoWeek=ie.isoWeeks=JL;ie.weeksInYear=hV;ie.weeksInWeekYear=mV;ie.isoWeeksInYear=fV;ie.isoWeeksInISOWeekYear=pV;ie.date=x7;ie.day=ie.days=dj;ie.weekday=fj;ie.isoWeekday=pj;ie.dayOfYear=vV;ie.hour=ie.hours=Cj;ie.minute=ie.minutes=xV;ie.second=ie.seconds=CV;ie.millisecond=ie.milliseconds=C7;ie.utcOffset=nN;ie.utc=oN;ie.local=iN;ie.parseZone=sN;ie.hasAlignedHourOffset=aN;ie.isDST=lN;ie.isLocal=uN;ie.isUtcOffset=dN;ie.isUtc=l7;ie.isUTC=l7;ie.zoneAbbr=wV;ie.zoneName=SV;ie.dates=tr("dates accessor is deprecated. Use date instead.",x7);ie.months=tr("months accessor is deprecated. Use month instead",qx);ie.years=tr("years accessor is deprecated. Use year instead",Hx);ie.zone=tr("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",rN);ie.isDSTShifted=tr("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",cN);function kV(e){return pt(e*1e3)}function EV(){return pt.apply(null,arguments).parseZone()}function b7(e){return e}var Je=qm.prototype;Je.calendar=uL;Je.longDateFormat=hL;Je.invalidDate=gL;Je.ordinal=xL;Je.preparse=b7;Je.postformat=b7;Je.relativeTime=bL;Je.pastFuture=wL;Je.set=lL;Je.eras=XN;Je.erasParse=JN;Je.erasConvertYear=QN;Je.erasAbbrRegex=iV;Je.erasNameRegex=oV;Je.erasNarrowRegex=sV;Je.months=NL;Je.monthsShort=VL;Je.monthsParse=BL;Je.monthsRegex=UL;Je.monthsShortRegex=HL;Je.week=GL;Je.firstDayOfYear=ZL;Je.firstDayOfWeek=qL;Je.weekdays=sj;Je.weekdaysMin=lj;Je.weekdaysShort=aj;Je.weekdaysParse=uj;Je.weekdaysRegex=hj;Je.weekdaysShortRegex=mj;Je.weekdaysMinRegex=gj;Je.isPM=vj;Je.meridiem=bj;function md(e,t,n,r){var o=yo(),i=Nr().set(r,t);return o[n](i,e)}function w7(e,t,n){if(fo(e)&&(t=e,e=void 0),e=e||"",t!=null)return md(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=md(e,r,n,"month");return o}function pg(e,t,n,r){typeof e=="boolean"?(fo(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,fo(t)&&(n=t,t=void 0),t=t||"");var o=yo(),i=e?o._week.dow:0,s,a=[];if(n!=null)return md(t,(n+i)%7,r,"day");for(s=0;s<7;s++)a[s]=md(t,(s+i)%7,r,"day");return a}function PV(e,t){return w7(e,t,"months")}function MV(e,t){return w7(e,t,"monthsShort")}function TV(e,t,n){return pg(e,t,n,"weekdays")}function RV(e,t,n){return pg(e,t,n,"weekdaysShort")}function DV(e,t,n){return pg(e,t,n,"weekdaysMin")}Vo("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=ze(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});ce.lang=tr("moment.lang is deprecated. Use moment.locale instead.",Vo);ce.langData=tr("moment.langData is deprecated. Use moment.localeData instead.",yo);var Wr=Math.abs;function _V(){var e=this._data;return this._milliseconds=Wr(this._milliseconds),this._days=Wr(this._days),this._months=Wr(this._months),e.milliseconds=Wr(e.milliseconds),e.seconds=Wr(e.seconds),e.minutes=Wr(e.minutes),e.hours=Wr(e.hours),e.months=Wr(e.months),e.years=Wr(e.years),this}function S7(e,t,n,r){var o=vr(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function OV(e,t){return S7(this,e,t,1)}function IV(e,t){return S7(this,e,t,-1)}function wv(e){return e<0?Math.floor(e):Math.ceil(e)}function $V(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,o,i,s,a,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=wv(N1(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,o=Wn(e/1e3),r.seconds=o%60,i=Wn(o/60),r.minutes=i%60,s=Wn(i/60),r.hours=s%24,t+=Wn(s/24),l=Wn(k7(t)),n+=l,t-=wv(N1(l)),a=Wn(n/12),n%=12,r.days=t,r.months=n,r.years=a,this}function k7(e){return e*4800/146097}function N1(e){return e*146097/4800}function FV(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=nr(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+k7(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(N1(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function vo(e){return function(){return this.as(e)}}var E7=vo("ms"),AV=vo("s"),LV=vo("m"),jV=vo("h"),NV=vo("d"),VV=vo("w"),zV=vo("M"),BV=vo("Q"),WV=vo("y"),HV=E7;function UV(){return vr(this)}function YV(e){return e=nr(e),this.isValid()?this[e+"s"]():NaN}function Ai(e){return function(){return this.isValid()?this._data[e]:NaN}}var GV=Ai("milliseconds"),KV=Ai("seconds"),qV=Ai("minutes"),ZV=Ai("hours"),XV=Ai("days"),JV=Ai("months"),QV=Ai("years");function ez(){return Wn(this.days()/7)}var Gr=Math.round,ms={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function tz(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function nz(e,t,n,r){var o=vr(e).abs(),i=Gr(o.as("s")),s=Gr(o.as("m")),a=Gr(o.as("h")),l=Gr(o.as("d")),c=Gr(o.as("M")),u=Gr(o.as("w")),f=Gr(o.as("y")),p=i<=n.ss&&["s",i]||i0,p[4]=r,tz.apply(null,p)}function rz(e){return e===void 0?Gr:typeof e=="function"?(Gr=e,!0):!1}function oz(e,t){return ms[e]===void 0?!1:t===void 0?ms[e]:(ms[e]=t,e==="s"&&(ms.ss=t-1),!0)}function iz(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=ms,o,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},ms,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),o=this.localeData(),i=nz(this,!n,r,o),n&&(i=o.pastFuture(+this,i)),o.postformat(i)}var th=Math.abs;function qi(e){return(e>0)-(e<0)||+e}function Gf(){if(!this.isValid())return this.localeData().invalidDate();var e=th(this._milliseconds)/1e3,t=th(this._days),n=th(this._months),r,o,i,s,a=this.asSeconds(),l,c,u,f;return a?(r=Wn(e/60),o=Wn(r/60),e%=60,r%=60,i=Wn(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=a<0?"-":"",c=qi(this._months)!==qi(a)?"-":"",u=qi(this._days)!==qi(a)?"-":"",f=qi(this._milliseconds)!==qi(a)?"-":"",l+"P"+(i?c+i+"Y":"")+(n?c+n+"M":"")+(t?u+t+"D":"")+(o||r||e?"T":"")+(o?f+o+"H":"")+(r?f+r+"M":"")+(e?f+s+"S":"")):"P0D"}var Ye=Uf.prototype;Ye.isValid=Jj;Ye.abs=_V;Ye.add=OV;Ye.subtract=IV;Ye.as=FV;Ye.asMilliseconds=E7;Ye.asSeconds=AV;Ye.asMinutes=LV;Ye.asHours=jV;Ye.asDays=NV;Ye.asWeeks=VV;Ye.asMonths=zV;Ye.asQuarters=BV;Ye.asYears=WV;Ye.valueOf=HV;Ye._bubble=$V;Ye.clone=UV;Ye.get=YV;Ye.milliseconds=GV;Ye.seconds=KV;Ye.minutes=qV;Ye.hours=ZV;Ye.days=XV;Ye.weeks=ez;Ye.months=JV;Ye.years=QV;Ye.humanize=iz;Ye.toISOString=Gf;Ye.toString=Gf;Ye.toJSON=Gf;Ye.locale=f7;Ye.localeData=h7;Ye.toIsoString=tr("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Gf);Ye.lang=p7;Oe("X",0,0,"unix");Oe("x",0,0,"valueOf");Ce("x",zf);Ce("X",PL);st("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});st("x",function(e,t,n){n._d=new Date(ze(e))});//! moment.js ce.version="2.30.1";sL(pt);ce.fn=ie;ce.min=Kj;ce.max=qj;ce.now=Zj;ce.utc=Nr;ce.unix=kV;ce.months=PV;ce.isDate=oc;ce.locale=Vo;ce.invalid=Lf;ce.duration=vr;ce.isMoment=yr;ce.weekdays=TV;ce.parseZone=EV;ce.localeData=yo;ce.isDuration=xu;ce.monthsShort=MV;ce.weekdaysMin=DV;ce.defineLocale=ig;ce.updateLocale=Ej;ce.locales=Pj;ce.weekdaysShort=RV;ce.normalizeUnits=nr;ce.relativeTimeRounding=rz;ce.relativeTimeThreshold=oz;ce.calendarFormat=bN;ce.prototype=ie;ce.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const sz={Y:"year",YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},az={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Sv=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join(` `);class lz{constructor({locale:t,formats:n,instance:r}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="moment",this.moment=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=sz,this.setLocaleToValue=o=>{const i=this.getCurrentLocaleCode();return i===o.locale()?o:o.locale(i)},this.syncMomentLocale=o=>{var i;const s=ce.locale(),a=(i=this.locale)!=null?i:"en-us";if(s!==a){ce.locale(a);const l=o();return ce.locale(s),l}return o()},this.hasTimezonePlugin=()=>typeof this.moment.tz<"u",this.createSystemDate=o=>{const i=this.moment(o).local();return this.locale===void 0?i:i.locale(this.locale)},this.createUTCDate=o=>{const i=this.moment.utc(o);return this.locale===void 0?i:i.locale(this.locale)},this.createTZDate=(o,i)=>{if(!this.hasTimezonePlugin())throw new Error(Sv);const s=i==="default"?this.moment(o):this.moment.tz(o,i);return this.locale===void 0?s:s.locale(this.locale)},this.date=o=>{if(o===null)return null;const i=this.moment(o);return i.locale(this.getCurrentLocaleCode()),i},this.dateWithTimezone=(o,i)=>o===null?null:i==="UTC"?this.createUTCDate(o):i==="system"||i==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(o):this.createTZDate(o,i),this.getTimezone=o=>{var i,s,a;const l=(i=o._z)==null?void 0:i.name,c=o.isUTC()?"UTC":"system";return(s=l??((a=this.moment.defaultZone)==null?void 0:a.name))!=null?s:c},this.setTimezone=(o,i)=>{var s,a;if(this.getTimezone(o)===i)return o;if(i==="UTC")return o.clone().utc();if(i==="system")return o.clone().local();if(!this.hasTimezonePlugin()){if(i!=="default")throw new Error(Sv);return o}const l=i==="default"?(s=(a=this.moment.defaultZone)==null?void 0:a.name)!=null?s:"system":i;if(l==="system")return o.clone().local();const c=o.clone();return c.tz(l),c},this.toJsDate=o=>o.toDate(),this.parseISO=o=>this.moment(o,!0),this.toISO=o=>o.toISOString(),this.parse=(o,i)=>o===""?null:this.locale?this.moment(o,i,this.locale,!0):this.moment(o,i,!0),this.getCurrentLocaleCode=()=>this.locale||ce.locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(ce.localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=o=>{const i=/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g;return o.match(i).map(s=>{const a=s[0];return a==="L"||a===";"?ce.localeData(this.getCurrentLocaleCode()).longDateFormat(s):s}).join("")},this.getFormatHelperText=o=>this.expandFormat(o).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=o=>o===null,this.isValid=o=>this.moment(o).isValid(),this.format=(o,i)=>this.formatByString(o,this.formats[i]),this.formatByString=(o,i)=>{const s=o.clone();return s.locale(this.getCurrentLocaleCode()),s.format(i)},this.formatNumber=o=>o,this.getDiff=(o,i,s)=>o.diff(i,s),this.isEqual=(o,i)=>o===null&&i===null?!0:this.moment(o).isSame(i),this.isSameYear=(o,i)=>o.isSame(i,"year"),this.isSameMonth=(o,i)=>o.isSame(i,"month"),this.isSameDay=(o,i)=>o.isSame(i,"day"),this.isSameHour=(o,i)=>o.isSame(i,"hour"),this.isAfter=(o,i)=>o.isAfter(i),this.isAfterYear=(o,i)=>o.isAfter(i,"year"),this.isAfterDay=(o,i)=>o.isAfter(i,"day"),this.isBefore=(o,i)=>o.isBefore(i),this.isBeforeYear=(o,i)=>o.isBefore(i,"year"),this.isBeforeDay=(o,i)=>o.isBefore(i,"day"),this.isWithinRange=(o,[i,s])=>o.isBetween(i,s,null,"[]"),this.startOfYear=o=>o.clone().startOf("year"),this.startOfMonth=o=>o.clone().startOf("month"),this.startOfWeek=o=>o.clone().startOf("week"),this.startOfDay=o=>o.clone().startOf("day"),this.endOfYear=o=>o.clone().endOf("year"),this.endOfMonth=o=>o.clone().endOf("month"),this.endOfWeek=o=>o.clone().endOf("week"),this.endOfDay=o=>o.clone().endOf("day"),this.addYears=(o,i)=>i<0?o.clone().subtract(Math.abs(i),"years"):o.clone().add(i,"years"),this.addMonths=(o,i)=>i<0?o.clone().subtract(Math.abs(i),"months"):o.clone().add(i,"months"),this.addWeeks=(o,i)=>i<0?o.clone().subtract(Math.abs(i),"weeks"):o.clone().add(i,"weeks"),this.addDays=(o,i)=>i<0?o.clone().subtract(Math.abs(i),"days"):o.clone().add(i,"days"),this.addHours=(o,i)=>i<0?o.clone().subtract(Math.abs(i),"hours"):o.clone().add(i,"hours"),this.addMinutes=(o,i)=>i<0?o.clone().subtract(Math.abs(i),"minutes"):o.clone().add(i,"minutes"),this.addSeconds=(o,i)=>i<0?o.clone().subtract(Math.abs(i),"seconds"):o.clone().add(i,"seconds"),this.getYear=o=>o.get("year"),this.getMonth=o=>o.get("month"),this.getDate=o=>o.get("date"),this.getHours=o=>o.get("hours"),this.getMinutes=o=>o.get("minutes"),this.getSeconds=o=>o.get("seconds"),this.getMilliseconds=o=>o.get("milliseconds"),this.setYear=(o,i)=>o.clone().year(i),this.setMonth=(o,i)=>o.clone().month(i),this.setDate=(o,i)=>o.clone().date(i),this.setHours=(o,i)=>o.clone().hours(i),this.setMinutes=(o,i)=>o.clone().minutes(i),this.setSeconds=(o,i)=>o.clone().seconds(i),this.setMilliseconds=(o,i)=>o.clone().milliseconds(i),this.getDaysInMonth=o=>o.daysInMonth(),this.getNextMonth=o=>o.clone().add(1,"month"),this.getPreviousMonth=o=>o.clone().subtract(1,"month"),this.getMonthArray=o=>{const s=[this.startOfYear(o)];for(;s.length<12;){const a=s[s.length-1];s.push(this.getNextMonth(a))}return s},this.mergeDateAndTime=(o,i)=>o.clone().hour(i.hour()).minute(i.minute()).second(i.second()),this.getWeekdays=()=>this.syncMomentLocale(()=>ce.weekdaysShort(!0)),this.getWeekArray=o=>{const i=this.setLocaleToValue(o),s=i.clone().startOf("month").startOf("week"),a=i.clone().endOf("month").endOf("week");let l=0,c=s;const u=[];for(;c.isBefore(a);){const f=Math.floor(l/7);u[f]=u[f]||[],u[f].push(c),c=c.clone().add(1,"day"),l+=1}return u},this.getWeekNumber=o=>o.week(),this.getYearRange=(o,i)=>{const s=this.moment(o).startOf("year"),a=this.moment(i).endOf("year"),l=[];let c=s;for(;c.isBefore(a);)l.push(c),c=c.clone().add(1,"year");return l},this.getMeridiemText=o=>this.is12HourCycleInCurrentLocale()?ce.localeData(this.getCurrentLocaleCode()).meridiem(o==="am"?0:13,0,!1):o==="am"?"AM":"PM",this.moment=r||ce,this.locale=t,this.formats=b({},az,n)}}function cz({error:e}){let t="Что-то пошло не так";return e.message==="No questions found"&&(t="Нет созданных вопросов"),e.message==="Quiz already completed"&&(t="Вы уже прошли этот опрос"),d.jsx(J,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:d.jsx(Re,{sx:{textAlign:"center"},children:t})})}function uz(){return d.jsx(dI,{component:"div",variant:"rectangular",sx:{bgcolor:"grey",width:"100%",height:"100%"}})}function dz(e,t){const n={timestamp:Math.floor(Date.now()/1e3),message:e.message,callStack:e.stack,componentStack:t.componentStack};fz(n)}let bu=[],kv;function fz(e){bu.push(e),clearTimeout(kv),kv=setTimeout(()=>{pz()},1e3)}async function pz(){console.log(`Fake-sending ${bu.length} errors to server`,bu),bu=[]}function P7(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||hz,gz=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,yz=/\/\*[^]*?\*\/| +/g,Ev=/\n+/g,ci=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?ci(s,i):i+"{"+ci(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=ci(s,t?t.replace(/([^,])+/g,a=>i.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=ci.p?ci.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Hr={},M7=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+M7(e[n]);return t}return e},vz=(e,t,n,r,o)=>{let i=M7(e),s=Hr[i]||(Hr[i]=(l=>{let c=0,u=11;for(;c>>0;return"go"+u})(i));if(!Hr[s]){let l=i!==e?e:(c=>{let u,f,p=[{}];for(;u=gz.exec(c.replace(yz,""));)u[4]?p.shift():u[3]?(f=u[3].replace(Ev," ").trim(),p.unshift(p[0][f]=p[0][f]||{})):p[0][u[1]]=u[2].replace(Ev," ").trim();return p[0]})(e);Hr[s]=ci(o?{["@keyframes "+s]:l}:l,n?"":"."+s)}let a=n&&Hr.g?Hr.g:null;return n&&(Hr.g=Hr[s]),((l,c,u,f)=>{f?c.data=c.data.replace(f,l):c.data.indexOf(l)===-1&&(c.data=u?l+c.data:c.data+l)})(Hr[s],t,r,a),s},xz=(e,t,n)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let a=s(n),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;s=l?"."+l:a&&typeof a=="object"?a.props?"":ci(a,""):a===!1?"":a}return r+o+(s??"")},"");function hg(e){let t=this||{},n=e.call?e(t.p):e;return vz(n.unshift?n.raw?xz(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,mz(t.target),t.g,t.o,t.k)}hg.bind({g:1});hg.bind({k:1});function Pv(e,t){for(var n=0;n=0)&&(n[o]=e[o]);return n}function Mv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Tv=function(){return""},Cz=Fe.createContext({enqueueSnackbar:Tv,closeSnackbar:Tv}),si={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},Rv=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},mg=function(t){return""+Rv(t.vertical)+Rv(t.horizontal)},Hc=function(t){return!!t||t===0},Uc="unmounted",Zi="exited",Xi="entering",Ra="entered",Dv="exiting",gg=function(e){R7(t,e);function t(r){var o;o=e.call(this,r)||this;var i=r.appear,s;return o.appearStatus=null,r.in?i?(s=Zi,o.appearStatus=Xi):s=Ra:r.unmountOnExit||r.mountOnEnter?s=Uc:s=Zi,o.state={status:s},o.nextCallback=null,o}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Uc?{status:Zi}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Xi&&s!==Ra&&(i=Xi):(s===Xi||s===Ra)&&(i=Dv)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i=o,s=o;return o!=null&&typeof o!="number"&&typeof o!="string"&&(s=o.exit,i=o.enter),{exit:s,enter:i}},n.updateStatus=function(o,i){o===void 0&&(o=!1),i!==null?(this.cancelNextCallback(),i===Xi?this.performEnter(o):this.performExit()):this.props.unmountOnExit&&this.state.status===Zi&&this.setState({status:Uc})},n.performEnter=function(o){var i=this,s=this.props.enter,a=o,l=this.getTimeouts();if(!o&&!s){this.safeSetState({status:Ra},function(){i.props.onEntered&&i.props.onEntered(i.node,a)});return}this.props.onEnter&&this.props.onEnter(this.node,a),this.safeSetState({status:Xi},function(){i.props.onEntering&&i.props.onEntering(i.node,a),i.onTransitionEnd(l.enter,function(){i.safeSetState({status:Ra},function(){i.props.onEntered&&i.props.onEntered(i.node,a)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts();if(!i){this.safeSetState({status:Zi},function(){o.props.onExited&&o.props.onExited(o.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:Dv},function(){o.props.onExiting&&o.props.onExiting(o.node),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Zi},function(){o.props.onExited&&o.props.onExited(o.node)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(){s&&(s=!1,i.nextCallback=null,o())},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=o==null&&!this.props.addEndListener;if(!this.node||s){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Uc)return null;var i=this.props,s=i.children,a=lc(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return s(o,a)},T7(t,[{key:"node",get:function(){var o,i=(o=this.props.nodeRef)===null||o===void 0?void 0:o.current;if(!i)throw new Error("notistack - Custom snackbar is not refForwarding");return i}}]),t}(Fe.Component);function Ji(){}gg.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ji,onEntering:Ji,onEntered:Ji,onExit:Ji,onExiting:Ji,onExited:Ji};function _v(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function V1(e,t){return x.useMemo(function(){return e==null&&t==null?null:function(n){_v(e,n),_v(t,n)}},[e,t])}function gd(e){var t=e.timeout,n=e.style,r=n===void 0?{}:n,o=e.mode;return{duration:typeof t=="object"?t[o]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}var z1={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},D7=function(t){t.scrollTop=t.scrollTop},Ov=function(t){return Math.round(t)+"ms"};function gs(e,t){e===void 0&&(e=["all"]);var n=t||{},r=n.duration,o=r===void 0?300:r,i=n.easing,s=i===void 0?z1.easeInOut:i,a=n.delay,l=a===void 0?0:a,c=Array.isArray(e)?e:[e];return c.map(function(u){var f=typeof o=="string"?o:Ov(o),p=typeof l=="string"?l:Ov(l);return u+" "+f+" "+s+" "+p}).join(",")}function bz(e){return e&&e.ownerDocument||document}function _7(e){var t=bz(e);return t.defaultView||window}function wz(e,t){t===void 0&&(t=166);var n;function r(){for(var o=this,i=arguments.length,s=new Array(i),a=0;a-1,C=S.snacks.findIndex(h)>-1;if(m||C)return S}return o.handleDisplaySnack(ot({},S,{queue:[].concat(S.queue,[g])}))}),v},o.handleDisplaySnack=function(i){var s=i.snacks;return s.length>=o.maxSnack?o.handleDismissOldest(i):o.processQueue(i)},o.processQueue=function(i){var s=i.queue,a=i.snacks;return s.length>0?ot({},i,{snacks:[].concat(a,[s[0]]),queue:s.slice(1,s.length)}):i},o.handleDismissOldest=function(i){if(i.snacks.some(function(u){return!u.open||u.requestClose}))return i;var s=!1,a=!1,l=i.snacks.reduce(function(u,f){return u+(f.open&&f.persist?1:0)},0);l===o.maxSnack&&(a=!0);var c=i.snacks.map(function(u){return!s&&(!u.persist||a)?(s=!0,u.entered?(u.onClose&&u.onClose(null,"maxsnack",u.id),o.props.onClose&&o.props.onClose(null,"maxsnack",u.id),ot({},u,{open:!1})):ot({},u,{requestClose:!0})):ot({},u)});return ot({},i,{snacks:c})},o.handleEnteredSnack=function(i,s,a){if(!Hc(a))throw new Error("handleEnteredSnack Cannot be called with undefined key");o.setState(function(l){var c=l.snacks;return{snacks:c.map(function(u){return u.id===a?ot({},u,{entered:!0}):ot({},u)})}})},o.handleCloseSnack=function(i,s,a){o.props.onClose&&o.props.onClose(i,s,a);var l=a===void 0;o.setState(function(c){var u=c.snacks,f=c.queue;return{snacks:u.map(function(p){return!l&&p.id!==a?ot({},p):p.entered?ot({},p,{open:!1}):ot({},p,{requestClose:!0})}),queue:f.filter(function(p){return p.id!==a})}})},o.closeSnackbar=function(i){var s=o.state.snacks.find(function(a){return a.id===i});Hc(i)&&s&&s.onClose&&s.onClose(null,"instructed",i),o.handleCloseSnack(null,"instructed",i)},o.handleExitedSnack=function(i,s){if(!Hc(s))throw new Error("handleExitedSnack Cannot be called with undefined key");o.setState(function(a){var l=o.processQueue(ot({},a,{snacks:a.snacks.filter(function(c){return c.id!==s})}));return l.queue.length===0?l:o.handleDismissOldest(l)})},Et=o.enqueueSnackbar,o.closeSnackbar,o.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:o.enqueueSnackbar.bind(Mv(o)),closeSnackbar:o.closeSnackbar.bind(Mv(o))}},o}var n=t.prototype;return n.render=function(){var o=this,i=this.state.contextValue,s=this.props,a=s.domRoot,l=s.children,c=s.dense,u=c===void 0?!1:c,f=s.Components,p=f===void 0?{}:f,v=s.classes,y=this.state.snacks.reduce(function(S,h){var m,C=mg(h.anchorOrigin),w=S[C]||[];return ot({},S,(m={},m[C]=[].concat(w,[h]),m))},{}),g=Object.keys(y).map(function(S){var h=y[S],m=h[0];return Fe.createElement(Bz,{key:S,dense:u,anchorOrigin:m.anchorOrigin,classes:v},h.map(function(C){return Fe.createElement(Vz,{key:C.id,snack:C,classes:v,Component:p[C.variant],onClose:o.handleCloseSnack,onEnter:o.props.onEnter,onExit:o.props.onExit,onExited:sl([o.handleExitedSnack,o.props.onExited],C.id),onEntered:sl([o.handleEnteredSnack,o.props.onEntered],C.id)})}))});return Fe.createElement(Cz.Provider,{value:i},l,a?Xl.createPortal(g,a):g)},T7(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||Ci.maxSnack}}]),t}(x.Component);const Hz=x.createContext(null),lh={didCatch:!1,error:null};class Uz extends x.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=lh}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,o=arguments.length,i=new Array(o),s=0;s0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}var L7={exports:{}},j7={};/** * @license React * use-sync-external-store-shim.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Us=x;function Gz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Kz=typeof Object.is=="function"?Object.is:Gz,qz=Us.useState,Zz=Us.useEffect,Xz=Us.useLayoutEffect,Jz=Us.useDebugValue;function Qz(e,t){var n=t(),r=qz({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Xz(function(){o.value=n,o.getSnapshot=t,ch(o)&&i({inst:o})},[e,n,t]),Zz(function(){return ch(o)&&i({inst:o}),e(function(){ch(o)&&i({inst:o})})},[e]),Jz(n),n}function ch(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Kz(e,n)}catch{return!0}}function eB(e,t){return t()}var tB=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?eB:Qz;j7.useSyncExternalStore=Us.useSyncExternalStore!==void 0?Us.useSyncExternalStore:tB;L7.exports=j7;var N7=L7.exports;const _o=()=>{},on=_o(),wu=Object,Ze=e=>e===on,Tr=e=>typeof e=="function",po=(e,t)=>({...e,...t}),nB=e=>Tr(e.then),Zc=new WeakMap;let rB=0;const Al=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(wu(e)===e&&!r&&n!=RegExp){if(o=Zc.get(e),o)return o;if(o=++rB+"~",Zc.set(e,o),n==Array){for(o="@",i=0;iqf&&typeof window.requestAnimationFrame!=yg,V7=(e,t)=>{const n=Zr.get(e);return[()=>!Ze(t)&&e.get(t)||uh,r=>{if(!Ze(t)){const o=e.get(t);t in Xc||(Xc[t]=o),n[5](t,po(o,r),o||uh)}},n[6],()=>!Ze(t)&&t in Xc?Xc[t]:!Ze(t)&&e.get(t)||uh]};let W1=!0;const iB=()=>W1,[H1,U1]=qf&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[_o,_o],sB=()=>{const e=B1&&document.visibilityState;return Ze(e)||e!=="hidden"},aB=e=>(B1&&document.addEventListener("visibilitychange",e),H1("focus",e),()=>{B1&&document.removeEventListener("visibilitychange",e),U1("focus",e)}),lB=e=>{const t=()=>{W1=!0,e()},n=()=>{W1=!1};return H1("online",t),H1("offline",n),()=>{U1("online",t),U1("offline",n)}},cB={isOnline:iB,isVisible:sB},uB={initFocus:aB,initReconnect:lB},Nv=!Fe.useId,Ll=!qf||"Deno"in window,dB=e=>oB()?window.requestAnimationFrame(e):setTimeout(e,1),Su=Ll?x.useEffect:x.useLayoutEffect,dh=typeof navigator<"u"&&navigator.connection,Vv=!Ll&&dh&&(["slow-2g","2g"].includes(dh.effectiveType)||dh.saveData),vg=e=>{if(Tr(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Al(e):"",[e,t]};let fB=0;const Y1=()=>++fB,z7=0,B7=1,W7=2,pB=3;var Oa={__proto__:null,ERROR_REVALIDATE_EVENT:pB,FOCUS_EVENT:z7,MUTATE_EVENT:W7,RECONNECT_EVENT:B7};async function H7(...e){const[t,n,r,o]=e,i=po({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let s=i.populateCache;const a=i.rollbackOnError;let l=i.optimisticData;const c=i.revalidate!==!1,u=v=>typeof a=="function"?a(v):a!==!1,f=i.throwOnError;if(Tr(n)){const v=n,y=[],g=t.keys();for(const S of g)!/^\$(inf|sub)\$/.test(S)&&v(t.get(S)._k)&&y.push(S);return Promise.all(y.map(p))}return p(n);async function p(v){const[y]=vg(v);if(!y)return;const[g,S]=V7(t,y),[h,m,C,w]=Zr.get(t),k=()=>{const D=h[y];return c&&(delete C[y],delete w[y],D&&D[0])?D[0](W7).then(()=>g().data):g().data};if(e.length<3)return k();let P=r,E;const M=Y1();m[y]=[M,0];const T=!Ze(l),R=g(),O=R.data,A=R._c,$=Ze(A)?O:A;if(T&&(l=Tr(l)?l($,O):l,S({data:l,_c:$})),Tr(P))try{P=P($)}catch(D){E=D}if(P&&nB(P))if(P=await P.catch(D=>{E=D}),M!==m[y][0]){if(E)throw E;return P}else E&&T&&u(E)&&(s=!0,S({data:$,_c:on}));if(s&&!E)if(Tr(s)){const D=s(P,$);S({data:D,error:on,_c:on})}else S({data:P,error:on,_c:on});if(m[y][1]=Y1(),Promise.resolve(k()).then(()=>{S({_c:on})}),E){if(f)throw E;return}return P}}const zv=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},U7=(e,t)=>{if(!Zr.has(e)){const n=po(uB,t),r={},o=H7.bind(on,e);let i=_o;const s={},a=(u,f)=>{const p=s[u]||[];return s[u]=p,p.push(f),()=>p.splice(p.indexOf(f),1)},l=(u,f,p)=>{e.set(u,f);const v=s[u];if(v)for(const y of v)y(f,p)},c=()=>{if(!Zr.has(e)&&(Zr.set(e,[r,{},{},{},o,l,a]),!Ll)){const u=n.initFocus(setTimeout.bind(on,zv.bind(on,r,z7))),f=n.initReconnect(setTimeout.bind(on,zv.bind(on,r,B7)));i=()=>{u&&u(),f&&f(),Zr.delete(e)}}};return c(),[e,o,c,i]}return[e,Zr.get(e)[4]]},hB=(e,t,n,r,o)=>{const i=n.errorRetryCount,s=o.retryCount,a=~~((Math.random()+.5)*(1<<(s<8?s:8)))*n.errorRetryInterval;!Ze(i)&&s>i||setTimeout(r,a,o)},mB=(e,t)=>Al(e)==Al(t),[xg,gB]=U7(new Map),Y7=po({onLoadingSlow:_o,onSuccess:_o,onError:_o,onErrorRetry:hB,onDiscarded:_o,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Vv?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Vv?5e3:3e3,compare:mB,isPaused:()=>!1,cache:xg,mutate:gB,fallback:{}},cB),G7=(e,t)=>{const n=po(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:s}=t;r&&i&&(n.use=r.concat(i)),o&&s&&(n.fallback=po(o,s))}return n},G1=x.createContext({}),yB=e=>{const{value:t}=e,n=x.useContext(G1),r=Tr(t),o=x.useMemo(()=>r?t(n):t,[r,n,t]),i=x.useMemo(()=>r?o:G7(n,o),[r,n,o]),s=o&&o.provider,a=x.useRef(on);s&&!a.current&&(a.current=U7(s(i.cache||xg),o));const l=a.current;return l&&(i.cache=l[0],i.mutate=l[1]),Su(()=>{if(l)return l[2]&&l[2](),l[3]},[]),x.createElement(G1.Provider,po(e,{value:i}))},vB="$inf$",K7=qf&&window.__SWR_DEVTOOLS_USE__,xB=K7?window.__SWR_DEVTOOLS_USE__:[],CB=()=>{K7&&(window.__SWR_DEVTOOLS_REACT__=Fe)},bB=e=>Tr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],wB=()=>po(Y7,x.useContext(G1)),SB=e=>(t,n,r)=>e(t,n&&((...i)=>{const[s]=vg(t),[,,,a]=Zr.get(xg);if(s.startsWith(vB))return n(...i);const l=a[s];return Ze(l)?n(...i):(delete a[s],l)}),r),kB=xB.concat(SB),EB=e=>function(...n){const r=wB(),[o,i,s]=bB(n),a=G7(r,s);let l=e;const{use:c}=a,u=(c||[]).concat(kB);for(let f=u.length;f--;)l=u[f](l);return l(o,i||a.fetcher||null,a)},PB=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}};CB();const Bv=Fe.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),fh={dedupe:!0},MB=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:s,revalidateOnMount:a,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:f,keepPreviousData:p}=n,[v,y,g,S]=Zr.get(r),[h,m]=vg(e),C=x.useRef(!1),w=x.useRef(!1),k=x.useRef(h),P=x.useRef(t),E=x.useRef(n),M=()=>E.current,T=()=>M().isVisible()&&M().isOnline(),[R,O,A,$]=V7(r,h),D=x.useRef({}).current,_=Ze(s)?n.fallback[h]:s,L=(X,j)=>{for(const U in D){const K=U;if(K==="data"){if(!o(X[K],j[K])&&(!Ze(X[K])||!o(ne,j[K])))return!1}else if(j[K]!==X[K])return!1}return!0},V=x.useMemo(()=>{const X=!h||!t?!1:Ze(a)?M().isPaused()||i?!1:Ze(l)?!0:l:a,j=fe=>{const B=po(fe);return delete B._k,X?{isValidating:!0,isLoading:!0,...B}:B},U=R(),K=$(),xe=j(U),Ie=U===K?xe:j(K);let se=xe;return[()=>{const fe=j(R());return L(fe,se)?(se.data=fe.data,se.isLoading=fe.isLoading,se.isValidating=fe.isValidating,se.error=fe.error,se):(se=fe,fe)},()=>Ie]},[r,h]),I=N7.useSyncExternalStore(x.useCallback(X=>A(h,(j,U)=>{L(U,j)||X()}),[r,h]),V[0],V[1]),F=!C.current,z=v[h]&&v[h].length>0,ae=I.data,re=Ze(ae)?_:ae,de=I.error,W=x.useRef(re),ne=p?Ze(ae)?W.current:ae:re,pe=z&&!Ze(de)?!1:F&&!Ze(a)?a:M().isPaused()?!1:i?Ze(re)?!1:l:Ze(re)||l,Y=!!(h&&t&&F&&pe),me=Ze(I.isValidating)?Y:I.isValidating,Se=Ze(I.isLoading)?Y:I.isLoading,Ee=x.useCallback(async X=>{const j=P.current;if(!h||!j||w.current||M().isPaused())return!1;let U,K,xe=!0;const Ie=X||{},se=!g[h]||!Ie.dedupe,fe=()=>Nv?!w.current&&h===k.current&&C.current:h===k.current,B={isValidating:!1,isLoading:!1},Z=()=>{O(B)},we=()=>{const ke=g[h];ke&&ke[1]===K&&delete g[h]},$e={isValidating:!0};Ze(R().data)&&($e.isLoading=!0);try{if(se&&(O($e),n.loadingTimeout&&Ze(R().data)&&setTimeout(()=>{xe&&fe()&&M().onLoadingSlow(h,n)},n.loadingTimeout),g[h]=[j(m),Y1()]),[U,K]=g[h],U=await U,se&&setTimeout(we,n.dedupingInterval),!g[h]||g[h][1]!==K)return se&&fe()&&M().onDiscarded(h),!1;B.error=on;const ke=y[h];if(!Ze(ke)&&(K<=ke[0]||K<=ke[1]||ke[1]===0))return Z(),se&&fe()&&M().onDiscarded(h),!1;const q=R().data;B.data=o(q,U)?q:U,se&&fe()&&M().onSuccess(U,h,n)}catch(ke){we();const q=M(),{shouldRetryOnError:he}=q;q.isPaused()||(B.error=ke,se&&fe()&&(q.onError(ke,h,q),(he===!0||Tr(he)&&he(ke))&&T()&&q.onErrorRetry(ke,h,q,ve=>{const ge=v[h];ge&&ge[0]&&ge[0](Oa.ERROR_REVALIDATE_EVENT,ve)},{retryCount:(Ie.retryCount||0)+1,dedupe:!0})))}return xe=!1,Z(),!0},[h,r]),ee=x.useCallback((...X)=>H7(r,k.current,...X),[]);if(Su(()=>{P.current=t,E.current=n,Ze(ae)||(W.current=ae)}),Su(()=>{if(!h)return;const X=Ee.bind(on,fh);let j=0;const K=PB(h,v,(xe,Ie={})=>{if(xe==Oa.FOCUS_EVENT){const se=Date.now();M().revalidateOnFocus&&se>j&&T()&&(j=se+M().focusThrottleInterval,X())}else if(xe==Oa.RECONNECT_EVENT)M().revalidateOnReconnect&&T()&&X();else{if(xe==Oa.MUTATE_EVENT)return Ee();if(xe==Oa.ERROR_REVALIDATE_EVENT)return Ee(Ie)}});return w.current=!1,k.current=h,C.current=!0,O({_k:m}),pe&&(Ze(re)||Ll?X():dB(X)),()=>{w.current=!0,K()}},[h]),Su(()=>{let X;function j(){const K=Tr(c)?c(R().data):c;K&&X!==-1&&(X=setTimeout(U,K))}function U(){!R().error&&(u||M().isVisible())&&(f||M().isOnline())?Ee(fh).then(j):j()}return j(),()=>{X&&(clearTimeout(X),X=-1)}},[c,u,f,h]),x.useDebugValue(ne),i&&Ze(re)&&h){if(!Nv&&Ll)throw new Error("Fallback data is required when using suspense in SSR.");P.current=t,E.current=n,w.current=!1;const X=S[h];if(!Ze(X)){const j=ee(X);Bv(j)}if(Ze(de)){const j=Ee(fh);Ze(ne)||(j.status="fulfilled",j.value=!0),Bv(j)}else throw de}return{mutate:ee,get data(){return D.data=!0,ne},get error(){return D.error=!0,de},get isValidating(){return D.isValidating=!0,me},get isLoading(){return D.isLoading=!0,Se}}},TB=wu.defineProperty(yB,"defaultValue",{value:Y7}),RB=EB(MB);var q7=Symbol.for("immer-nothing"),Wv=Symbol.for("immer-draftable"),Dn=Symbol.for("immer-state");function cr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ys=Object.getPrototypeOf;function Gs(e){return!!e&&!!e[Dn]}function _i(e){var t;return e?Z7(e)||Array.isArray(e)||!!e[Wv]||!!((t=e.constructor)!=null&&t[Wv])||Xf(e)||Jf(e):!1}var DB=Object.prototype.constructor.toString();function Z7(e){if(!e||typeof e!="object")return!1;const t=Ys(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===DB}function jl(e,t){Zf(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function Zf(e){const t=e[Dn];return t?t.type_:Array.isArray(e)?1:Xf(e)?2:Jf(e)?3:0}function K1(e,t){return Zf(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function X7(e,t,n){const r=Zf(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function _B(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Xf(e){return e instanceof Map}function Jf(e){return e instanceof Set}function ai(e){return e.copy_||e.base_}function q1(e,t){if(Xf(e))return new Map(e);if(Jf(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Z7(e))return Ys(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Dn];let r=Reflect.ownKeys(n);for(let o=0;o1&&(e.set=e.add=e.clear=e.delete=OB),Object.freeze(e),t&&jl(e,(n,r)=>Cg(r,!0))),e}function OB(){cr(2)}function Qf(e){return Object.isFrozen(e)}var IB={};function Oi(e){const t=IB[e];return t||cr(0,e),t}var Nl;function J7(){return Nl}function $B(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Hv(e,t){t&&(Oi("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Z1(e){X1(e),e.drafts_.forEach(FB),e.drafts_=null}function X1(e){e===Nl&&(Nl=e.parent_)}function Uv(e){return Nl=$B(Nl,e)}function FB(e){const t=e[Dn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Yv(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Dn].modified_&&(Z1(t),cr(4)),_i(e)&&(e=yd(t,e),t.parent_||vd(t,e)),t.patches_&&Oi("Patches").generateReplacementPatches_(n[Dn].base_,e,t.patches_,t.inversePatches_)):e=yd(t,n,[]),Z1(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==q7?e:void 0}function yd(e,t,n){if(Qf(t))return t;const r=t[Dn];if(!r)return jl(t,(o,i)=>Gv(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return vd(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,s=!1;r.type_===3&&(i=new Set(o),o.clear(),s=!0),jl(i,(a,l)=>Gv(e,r,o,a,l,n,s)),vd(e,o,!1),n&&e.patches_&&Oi("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Gv(e,t,n,r,o,i,s){if(Gs(o)){const a=i&&t&&t.type_!==3&&!K1(t.assigned_,r)?i.concat(r):void 0,l=yd(e,o,a);if(X7(n,r,l),Gs(l))e.canAutoFreeze_=!1;else return}else s&&n.add(o);if(_i(o)&&!Qf(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;yd(e,o),(!t||!t.scope_.parent_)&&vd(e,o)}}function vd(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Cg(t,n)}function AB(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:J7(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=bg;n&&(o=[r],i=Vl);const{revoke:s,proxy:a}=Proxy.revocable(o,i);return r.draft_=a,r.revoke_=s,a}var bg={get(e,t){if(t===Dn)return e;const n=ai(e);if(!K1(n,t))return LB(e,n,t);const r=n[t];return e.finalized_||!_i(r)?r:r===ph(e.base_,t)?(hh(e),e.copy_[t]=Q1(r,e)):r},has(e,t){return t in ai(e)},ownKeys(e){return Reflect.ownKeys(ai(e))},set(e,t,n){const r=Q7(ai(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=ph(ai(e),t),i=o==null?void 0:o[Dn];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(_B(n,o)&&(n!==void 0||K1(e.base_,t)))return!0;hh(e),J1(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return ph(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,hh(e),J1(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=ai(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){cr(11)},getPrototypeOf(e){return Ys(e.base_)},setPrototypeOf(){cr(12)}},Vl={};jl(bg,(e,t)=>{Vl[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Vl.deleteProperty=function(e,t){return Vl.set.call(this,e,t,void 0)};Vl.set=function(e,t,n){return bg.set.call(this,e[0],t,n,e[0])};function ph(e,t){const n=e[Dn];return(n?ai(n):e)[t]}function LB(e,t,n){var o;const r=Q7(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function Q7(e,t){if(!(t in e))return;let n=Ys(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Ys(n)}}function J1(e){e.modified_||(e.modified_=!0,e.parent_&&J1(e.parent_))}function hh(e){e.copy_||(e.copy_=q1(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var jB=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const s=this;return function(l=i,...c){return s.produce(l,u=>n.call(this,u,...c))}}typeof n!="function"&&cr(6),r!==void 0&&typeof r!="function"&&cr(7);let o;if(_i(t)){const i=Uv(this),s=Q1(t,void 0);let a=!0;try{o=n(s),a=!1}finally{a?Z1(i):X1(i)}return Hv(i,r),Yv(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===q7&&(o=void 0),this.autoFreeze_&&Cg(o,!0),r){const i=[],s=[];Oi("Patches").generateReplacementPatches_(t,o,i,s),r(i,s)}return o}else cr(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let r,o;return[this.produce(t,n,(s,a)=>{r=s,o=a}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){_i(e)||cr(8),Gs(e)&&(e=NB(e));const t=Uv(this),n=Q1(e,void 0);return n[Dn].isManual_=!0,X1(t),n}finishDraft(e,t){const n=e&&e[Dn];(!n||!n.isManual_)&&cr(9);const{scope_:r}=n;return Hv(r,t),Yv(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=Oi("Patches").applyPatches_;return Gs(e)?r(e,t):this.produce(e,o=>r(o,t))}};function Q1(e,t){const n=Xf(e)?Oi("MapSet").proxyMap_(e,t):Jf(e)?Oi("MapSet").proxySet_(e,t):AB(e,t);return(t?t.scope_:J7()).drafts_.push(n),n}function NB(e){return Gs(e)||cr(10,e),e4(e)}function e4(e){if(!_i(e)||Qf(e))return e;const t=e[Dn];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=q1(e,t.scope_.immer_.useStrictShallowCopy_)}else n=q1(e,!0);return jl(n,(r,o)=>{X7(n,r,e4(o))}),t&&(t.finalized_=!1),n}var _n=new jB,VB=_n.produce;_n.produceWithPatches.bind(_n);_n.setAutoFreeze.bind(_n);_n.setUseStrictShallowCopy.bind(_n);_n.applyPatches.bind(_n);_n.createDraft.bind(_n);_n.finishDraft.bind(_n);let zB=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");var BB={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Kv=e=>{let t;const n=new Set,r=(u,f)=>{const p=typeof u=="function"?u(t):u;if(!Object.is(p,t)){const v=t;t=f??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(y=>y(t,v))}},o=()=>t,l={setState:r,getState:o,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(BB?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},c=t=e(r,o,l);return l},WB=e=>e?Kv(e):Kv;var t4={exports:{}},n4={};/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ep=x,HB=N7;function UB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var YB=typeof Object.is=="function"?Object.is:UB,GB=HB.useSyncExternalStore,KB=ep.useRef,qB=ep.useEffect,ZB=ep.useMemo,XB=ep.useDebugValue;n4.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=KB(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=ZB(function(){function l(v){if(!c){if(c=!0,u=v,v=r(v),o!==void 0&&s.hasValue){var y=s.value;if(o(y,v))return f=y}return f=v}if(y=f,YB(u,v))return y;var g=r(v);return o!==void 0&&o(y,g)?y:(u=v,f=g)}var c=!1,u,f,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,o]);var a=GB(e,i[0],i[1]);return qB(function(){s.hasValue=!0,s.value=a},[a]),XB(a),a};t4.exports=n4;var JB=t4.exports;const QB=bd(JB);var r4={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:eW}=Fe,{useSyncExternalStoreWithSelector:tW}=QB;let qv=!1;const nW=e=>e;function rW(e,t=nW,n){(r4?"production":void 0)!=="production"&&n&&!qv&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),qv=!0);const r=tW(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return eW(r),r}const Zv=e=>{(r4?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?WB(e):e,n=(r,o)=>rW(t,r,o);return Object.assign(n,t),n},oW=e=>e?Zv(e):Zv;var mh={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const e0=new Map,Jc=e=>{const t=e0.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},iW=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=e0.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return e0.set(n.name,o),{type:"tracked",store:e,...o}},sW=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:s,store:a,...l}=t;let c;try{c=(i??(mh?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!c)return(mh?"production":void 0)!=="production"&&i&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,o);const{connection:u,...f}=iW(a,c,l);let p=!0;o.setState=(g,S,h)=>{const m=n(g,S);if(!p)return m;const C=h===void 0?{type:s||"anonymous"}:typeof h=="string"?{type:h}:h;return a===void 0?(u==null||u.send(C,r()),m):(u==null||u.send({...C,type:`${a}/${C.type}`},{...Jc(l.name),[a]:o.getState()}),m)};const v=(...g)=>{const S=p;p=!1,n(...g),p=S},y=e(o.setState,r,o);if(f.type==="untracked"?u==null||u.init(y):(f.stores[f.store]=o,u==null||u.init(Object.fromEntries(Object.entries(f.stores).map(([g,S])=>[g,g===f.store?y:S.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let g=!1;const S=o.dispatch;o.dispatch=(...h)=>{(mh?"production":void 0)!=="production"&&h[0].type==="__setState"&&!g&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),g=!0),S(...h)}}return u.subscribe(g=>{var S;switch(g.type){case"ACTION":if(typeof g.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return gh(g.payload,h=>{if(h.type==="__setState"){if(a===void 0){v(h.state);return}Object.keys(h.state).length!==1&&console.error(` [zustand devtools middleware] Unsupported __setState action format. When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } `);const m=h.state[a];if(m==null)return;JSON.stringify(o.getState())!==JSON.stringify(m)&&v(m);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(h)});case"DISPATCH":switch(g.payload.type){case"RESET":return v(y),a===void 0?u==null?void 0:u.init(o.getState()):u==null?void 0:u.init(Jc(l.name));case"COMMIT":if(a===void 0){u==null||u.init(o.getState());return}return u==null?void 0:u.init(Jc(l.name));case"ROLLBACK":return gh(g.state,h=>{if(a===void 0){v(h),u==null||u.init(o.getState());return}v(h[a]),u==null||u.init(Jc(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return gh(g.state,h=>{if(a===void 0){v(h);return}JSON.stringify(o.getState())!==JSON.stringify(h[a])&&v(h[a])});case"IMPORT_STATE":{const{nextLiftedState:h}=g.payload,m=(S=h.computedStates.slice(-1)[0])==null?void 0:S.state;if(!m)return;v(a===void 0?m:m[a]),u==null||u.send(null,h);return}case"PAUSE_RECORDING":return p=!p}return}}),y},aW=sW,gh=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)},cn=oW()(aW((e,t)=>({answers:[],ownVariants:[],currentQuizStep:"startpage"}),{name:"quizView",enabled:!1,trace:!1}));function o4(e,t){cn.setState(n=>VB(n,e),!1,t)}const wn=(e,t)=>o4(n=>{const r=n.answers.findIndex(o=>e===o.questionId);r<0?n.answers.push({questionId:e,answer:t}):n.answers[r]={questionId:e,answer:t}},{type:"updateAnswer",questionId:e,answer:t}),uc=e=>cn.setState(t=>({answers:t.answers.filter(n=>e!==n.questionId)}),!1,{type:"deleteAnswer",questionId:e}),lW=(e,t)=>o4(n=>{const r=n.ownVariants.findIndex(o=>o.id===e);r<0?n.ownVariants.push({id:e,variant:{id:zB(),answer:t,extendedText:"",hints:"",originalImageUrl:""}}):n.ownVariants[r].variant.answer=t},{type:"updateOwnVariant",id:e,answer:t}),al=e=>cn.setState({currentQuizStep:e},!1,{type:"setCurrentQuizStep",currentQuizStep:e}),Xv=e=>!(e.title.length>0&&e.title!==" "||e.description.length>0&&e.description!==" "||e.content.back.length>0&&e.content.back!==" "||e.content.originalBack.length>0&&e.content.originalBack!==" "||e.content.innerName.length>0&&e.content.innerName!==" "||e.content.text.length>0&&e.content.text!==" "||e.content.video.length>0&&e.content.video!==" "||e.content.hint.text.length>0&&e.content.hint.text!==" ");function i4(e,t){return function(){return e.apply(t,arguments)}}const{toString:cW}=Object.prototype,{getPrototypeOf:wg}=Object,tp=(e=>t=>{const n=cW.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),zr=e=>(e=e.toLowerCase(),t=>tp(t)===e),np=e=>t=>typeof t===e,{isArray:ia}=Array,zl=np("undefined");function uW(e){return e!==null&&!zl(e)&&e.constructor!==null&&!zl(e.constructor)&&Gn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const s4=zr("ArrayBuffer");function dW(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&s4(e.buffer),t}const fW=np("string"),Gn=np("function"),a4=np("number"),rp=e=>e!==null&&typeof e=="object",pW=e=>e===!0||e===!1,ku=e=>{if(tp(e)!=="object")return!1;const t=wg(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},hW=zr("Date"),mW=zr("File"),gW=zr("Blob"),yW=zr("FileList"),vW=e=>rp(e)&&Gn(e.pipe),xW=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Gn(e.append)&&((t=tp(e))==="formdata"||t==="object"&&Gn(e.toString)&&e.toString()==="[object FormData]"))},CW=zr("URLSearchParams"),bW=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function dc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),ia(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const c4=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,u4=e=>!zl(e)&&e!==c4;function t0(){const{caseless:e}=u4(this)&&this||{},t={},n=(r,o)=>{const i=e&&l4(t,o)||o;ku(t[i])&&ku(r)?t[i]=t0(t[i],r):ku(r)?t[i]=t0({},r):ia(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(dc(t,(o,i)=>{n&&Gn(o)?e[i]=i4(o,n):e[i]=o},{allOwnKeys:r}),e),SW=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),kW=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},EW=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&wg(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},PW=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},MW=e=>{if(!e)return null;if(ia(e))return e;let t=e.length;if(!a4(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},TW=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&wg(Uint8Array)),RW=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},DW=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},_W=zr("HTMLFormElement"),OW=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Jv=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),IW=zr("RegExp"),d4=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};dc(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},$W=e=>{d4(e,(t,n)=>{if(Gn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Gn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},FW=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return ia(e)?r(e):r(String(e).split(t)),n},AW=()=>{},LW=(e,t)=>(e=+e,Number.isFinite(e)?e:t),yh="abcdefghijklmnopqrstuvwxyz",Qv="0123456789",f4={DIGIT:Qv,ALPHA:yh,ALPHA_DIGIT:yh+yh.toUpperCase()+Qv},jW=(e=16,t=f4.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function NW(e){return!!(e&&Gn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const VW=e=>{const t=new Array(10),n=(r,o)=>{if(rp(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=ia(r)?[]:{};return dc(r,(s,a)=>{const l=n(s,o+1);!zl(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},zW=zr("AsyncFunction"),BW=e=>e&&(rp(e)||Gn(e))&&Gn(e.then)&&Gn(e.catch),G={isArray:ia,isArrayBuffer:s4,isBuffer:uW,isFormData:xW,isArrayBufferView:dW,isString:fW,isNumber:a4,isBoolean:pW,isObject:rp,isPlainObject:ku,isUndefined:zl,isDate:hW,isFile:mW,isBlob:gW,isRegExp:IW,isFunction:Gn,isStream:vW,isURLSearchParams:CW,isTypedArray:TW,isFileList:yW,forEach:dc,merge:t0,extend:wW,trim:bW,stripBOM:SW,inherits:kW,toFlatObject:EW,kindOf:tp,kindOfTest:zr,endsWith:PW,toArray:MW,forEachEntry:RW,matchAll:DW,isHTMLForm:_W,hasOwnProperty:Jv,hasOwnProp:Jv,reduceDescriptors:d4,freezeMethods:$W,toObjectSet:FW,toCamelCase:OW,noop:AW,toFiniteNumber:LW,findKey:l4,global:c4,isContextDefined:u4,ALPHABET:f4,generateString:jW,isSpecCompliantForm:NW,toJSONObject:VW,isAsyncFn:zW,isThenable:BW};function Ue(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}G.inherits(Ue,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const p4=Ue.prototype,h4={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{h4[e]={value:e}});Object.defineProperties(Ue,h4);Object.defineProperty(p4,"isAxiosError",{value:!0});Ue.from=(e,t,n,r,o,i)=>{const s=Object.create(p4);return G.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Ue.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const WW=null;function n0(e){return G.isPlainObject(e)||G.isArray(e)}function m4(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function e5(e,t,n){return e?e.concat(t).map(function(o,i){return o=m4(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function HW(e){return G.isArray(e)&&!e.some(n0)}const UW=G.toFlatObject(G,{},null,function(t){return/^is[A-Z]/.test(t)});function op(e,t,n){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,S){return!G.isUndefined(S[g])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(o))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(G.isDate(y))return y.toISOString();if(!l&&G.isBlob(y))throw new Ue("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(y)||G.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function u(y,g,S){let h=y;if(y&&!S&&typeof y=="object"){if(G.endsWith(g,"{}"))g=r?g:g.slice(0,-2),y=JSON.stringify(y);else if(G.isArray(y)&&HW(y)||(G.isFileList(y)||G.endsWith(g,"[]"))&&(h=G.toArray(y)))return g=m4(g),h.forEach(function(C,w){!(G.isUndefined(C)||C===null)&&t.append(s===!0?e5([g],w,i):s===null?g:g+"[]",c(C))}),!1}return n0(y)?!0:(t.append(e5(S,g,i),c(y)),!1)}const f=[],p=Object.assign(UW,{defaultVisitor:u,convertValue:c,isVisitable:n0});function v(y,g){if(!G.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(y),G.forEach(y,function(h,m){(!(G.isUndefined(h)||h===null)&&o.call(t,h,G.isString(m)?m.trim():m,g,p))===!0&&v(h,g?g.concat(m):[m])}),f.pop()}}if(!G.isObject(e))throw new TypeError("data must be an object");return v(e),t}function t5(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Sg(e,t){this._pairs=[],e&&op(e,this,t)}const g4=Sg.prototype;g4.append=function(t,n){this._pairs.push([t,n])};g4.toString=function(t){const n=t?function(r){return t.call(this,r,t5)}:t5;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function YW(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function y4(e,t,n){if(!t)return e;const r=n&&n.encode||YW,o=n&&n.serialize;let i;if(o?i=o(t,n):i=G.isURLSearchParams(t)?t.toString():new Sg(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class n5{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){G.forEach(this.handlers,function(r){r!==null&&t(r)})}}const v4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},GW=typeof URLSearchParams<"u"?URLSearchParams:Sg,KW=typeof FormData<"u"?FormData:null,qW=typeof Blob<"u"?Blob:null,ZW={isBrowser:!0,classes:{URLSearchParams:GW,FormData:KW,Blob:qW},protocols:["http","https","file","blob","url","data"]},x4=typeof window<"u"&&typeof document<"u",XW=(e=>x4&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),JW=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",QW=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:x4,hasStandardBrowserEnv:XW,hasStandardBrowserWebWorkerEnv:JW},Symbol.toStringTag,{value:"Module"})),Rr={...QW,...ZW};function eH(e,t){return op(e,new Rr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Rr.isNode&&G.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function tH(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function nH(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return s=!s&&G.isArray(o)?o.length:s,l?(G.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!G.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&G.isArray(o[s])&&(o[s]=nH(o[s])),!a)}if(G.isFormData(e)&&G.isFunction(e.entries)){const n={};return G.forEachEntry(e,(r,o)=>{t(tH(r),o,n,0)}),n}return null}function rH(e,t,n){if(G.isString(e))try{return(t||JSON.parse)(e),G.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const kg={transitional:v4,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=G.isObject(t);if(i&&G.isHTMLForm(t)&&(t=new FormData(t)),G.isFormData(t))return o&&o?JSON.stringify(C4(t)):t;if(G.isArrayBuffer(t)||G.isBuffer(t)||G.isStream(t)||G.isFile(t)||G.isBlob(t))return t;if(G.isArrayBufferView(t))return t.buffer;if(G.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return eH(t,this.formSerializer).toString();if((a=G.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return op(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),rH(t)):t}],transformResponse:[function(t){const n=this.transitional||kg.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&G.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?Ue.from(a,Ue.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rr.classes.FormData,Blob:Rr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],e=>{kg.headers[e]={}});const Eg=kg,oH=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),iH=e=>{const t={};let n,r,o;return e&&e.split(` `).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&oH[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},r5=Symbol("internals");function Ia(e){return e&&String(e).trim().toLowerCase()}function Eu(e){return e===!1||e==null?e:G.isArray(e)?e.map(Eu):String(e)}function sH(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const aH=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function vh(e,t,n,r,o){if(G.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!G.isString(t)){if(G.isString(r))return t.indexOf(r)!==-1;if(G.isRegExp(r))return r.test(t)}}function lH(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function cH(e,t){const n=G.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}class ip{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,c){const u=Ia(l);if(!u)throw new Error("header name must be a non-empty string");const f=G.findKey(o,u);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||l]=Eu(a))}const s=(a,l)=>G.forEach(a,(c,u)=>i(c,u,l));return G.isPlainObject(t)||t instanceof this.constructor?s(t,n):G.isString(t)&&(t=t.trim())&&!aH(t)?s(iH(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=Ia(t),t){const r=G.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return sH(o);if(G.isFunction(n))return n.call(this,o,r);if(G.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ia(t),t){const r=G.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||vh(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=Ia(s),s){const a=G.findKey(r,s);a&&(!n||vh(r,r[a],a,n))&&(delete r[a],o=!0)}}return G.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||vh(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return G.forEach(this,(o,i)=>{const s=G.findKey(r,i);if(s){n[s]=Eu(o),delete n[i];return}const a=t?lH(i):String(i).trim();a!==i&&delete n[i],n[a]=Eu(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return G.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&G.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[r5]=this[r5]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Ia(s);r[a]||(cH(o,s),r[a]=!0)}return G.isArray(t)?t.forEach(i):i(t),this}}ip.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);G.reduceDescriptors(ip.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});G.freezeMethods(ip);const oo=ip;function xh(e,t){const n=this||Eg,r=t||n,o=oo.from(r.headers);let i=r.data;return G.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function b4(e){return!!(e&&e.__CANCEL__)}function fc(e,t,n){Ue.call(this,e??"canceled",Ue.ERR_CANCELED,t,n),this.name="CanceledError"}G.inherits(fc,Ue,{__CANCEL__:!0});function uH(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ue("Request failed with status code "+n.status,[Ue.ERR_BAD_REQUEST,Ue.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const dH=Rr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];G.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),G.isString(r)&&s.push("path="+r),G.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fH(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function pH(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function w4(e,t){return e&&!fH(t)?pH(e,t):t}const hH=Rr.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const a=G.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function mH(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function gH(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];s||(s=c),n[o]=l,r[o]=c;let f=i,p=0;for(;f!==o;)p+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-n,l=r(a),c=i<=s;n=i;const u={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&c?(s-i)/l:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const yH=typeof XMLHttpRequest<"u",vH=yH&&function(e){return new Promise(function(n,r){let o=e.data;const i=oo.from(e.headers).normalize();let{responseType:s,withXSRFToken:a}=e,l;function c(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let u;if(G.isFormData(o)){if(Rr.hasStandardBrowserEnv||Rr.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((u=i.getContentType())!==!1){const[g,...S]=u?u.split(";").map(h=>h.trim()).filter(Boolean):[];i.setContentType([g||"multipart/form-data",...S].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",S=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+S))}const p=w4(e.baseURL,e.url);f.open(e.method.toUpperCase(),y4(p,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function v(){if(!f)return;const g=oo.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),h={data:!s||s==="text"||s==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:g,config:e,request:f};uH(function(C){n(C),c()},function(C){r(C),c()},h),f=null}if("onloadend"in f?f.onloadend=v:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(v)},f.onabort=function(){f&&(r(new Ue("Request aborted",Ue.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new Ue("Network Error",Ue.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let S=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const h=e.transitional||v4;e.timeoutErrorMessage&&(S=e.timeoutErrorMessage),r(new Ue(S,h.clarifyTimeoutError?Ue.ETIMEDOUT:Ue.ECONNABORTED,e,f)),f=null},Rr.hasStandardBrowserEnv&&(a&&G.isFunction(a)&&(a=a(e)),a||a!==!1&&hH(p))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&dH.read(e.xsrfCookieName);g&&i.set(e.xsrfHeaderName,g)}o===void 0&&i.setContentType(null),"setRequestHeader"in f&&G.forEach(i.toJSON(),function(S,h){f.setRequestHeader(h,S)}),G.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),s&&s!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",o5(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",o5(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=g=>{f&&(r(!g||g.type?new fc(null,e,f):g),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const y=mH(p);if(y&&Rr.protocols.indexOf(y)===-1){r(new Ue("Unsupported protocol "+y+":",Ue.ERR_BAD_REQUEST,e));return}f.send(o||null)})},r0={http:WW,xhr:vH};G.forEach(r0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const i5=e=>`- ${e}`,xH=e=>G.isFunction(e)||e===null||e===!1,S4={getAdapter:e=>{e=G.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since : `+i.map(i5).join(` `):" "+i5(i[0]):"as no adapter specified";throw new Ue("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:r0};function Ch(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fc(null,e)}function s5(e){return Ch(e),e.headers=oo.from(e.headers),e.data=xh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),S4.getAdapter(e.adapter||Eg.adapter)(e).then(function(r){return Ch(e),r.data=xh.call(e,e.transformResponse,r),r.headers=oo.from(r.headers),r},function(r){return b4(r)||(Ch(e),r&&r.response&&(r.response.data=xh.call(e,e.transformResponse,r.response),r.response.headers=oo.from(r.response.headers))),Promise.reject(r)})}const a5=e=>e instanceof oo?e.toJSON():e;function Ks(e,t){t=t||{};const n={};function r(c,u,f){return G.isPlainObject(c)&&G.isPlainObject(u)?G.merge.call({caseless:f},c,u):G.isPlainObject(u)?G.merge({},u):G.isArray(u)?u.slice():u}function o(c,u,f){if(G.isUndefined(u)){if(!G.isUndefined(c))return r(void 0,c,f)}else return r(c,u,f)}function i(c,u){if(!G.isUndefined(u))return r(void 0,u)}function s(c,u){if(G.isUndefined(u)){if(!G.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,u)=>o(a5(c),a5(u),!0)};return G.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=l[u]||o,p=f(e[u],t[u],u);G.isUndefined(p)&&f!==a||(n[u]=p)}),n}const k4="1.6.5",Pg={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Pg[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const l5={};Pg.transitional=function(t,n,r){function o(i,s){return"[Axios v"+k4+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new Ue(o(s," has been removed"+(n?" in "+n:"")),Ue.ERR_DEPRECATED);return n&&!l5[s]&&(l5[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}};function CH(e,t,n){if(typeof e!="object")throw new Ue("options must be an object",Ue.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new Ue("option "+i+" must be "+l,Ue.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ue("Unknown option "+i,Ue.ERR_BAD_OPTION)}}const o0={assertOptions:CH,validators:Pg},wo=o0.validators;class xd{constructor(t){this.defaults=t,this.interceptors={request:new n5,response:new n5}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ks(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&o0.assertOptions(r,{silentJSONParsing:wo.transitional(wo.boolean),forcedJSONParsing:wo.transitional(wo.boolean),clarifyTimeoutError:wo.transitional(wo.boolean)},!1),o!=null&&(G.isFunction(o)?n.paramsSerializer={serialize:o}:o0.assertOptions(o,{encode:wo.function,serialize:wo.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&G.merge(i.common,i[n.method]);i&&G.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),n.headers=oo.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,f=0,p;if(!l){const y=[s5.bind(this),void 0];for(y.unshift.apply(y,a),y.push.apply(y,c),p=y.length,u=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new fc(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Mg(function(o){t=o}),cancel:t}}}const bH=Mg;function wH(e){return function(n){return e.apply(null,n)}}function SH(e){return G.isObject(e)&&e.isAxiosError===!0}const i0={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(i0).forEach(([e,t])=>{i0[t]=e});const kH=i0;function E4(e){const t=new Pu(e),n=i4(Pu.prototype.request,t);return G.extend(n,Pu.prototype,t,{allOwnKeys:!0}),G.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return E4(Ks(e,o))},n}const Rt=E4(Eg);Rt.Axios=Pu;Rt.CanceledError=fc;Rt.CancelToken=bH;Rt.isCancel=b4;Rt.VERSION=k4;Rt.toFormData=op;Rt.AxiosError=Ue;Rt.Cancel=Rt.CanceledError;Rt.all=function(t){return Promise.all(t)};Rt.spread=wH;Rt.isAxiosError=SH;Rt.mergeConfig=Ks;Rt.AxiosHeaders=oo;Rt.formToJSON=e=>C4(G.isHTMLForm(e)?new FormData(e):e);Rt.getAdapter=S4.getAdapter;Rt.HttpStatusCode=kH;Rt.default=Rt;let P4="";const Tg=({url:e,body:t})=>Rt(e,{data:t,headers:{"X-Sessionkey":P4,"Content-Type":"multipart/form-data"},method:"POST"});async function EH(e){try{const{data:t,headers:n}=await Rt("https://s.hbpn.link/answer/settings",{method:"POST",headers:{"Content-Type":"application/json"},data:{quiz_id:e,limit:100,page:0,need_config:!0}}),r=JSON.parse(localStorage.getItem("sessions")||"{}");return typeof r[e]=="number"&&Date.now()-r[e]<864e5?{data:t,isRecentlyCompleted:!0}:(P4=n["x-sessionkey"],{data:t,isRecentlyCompleted:!1})}catch(t){return{data:null,isRecentlyCompleted:!1,error:t.message}}}function Qt({questionId:e,body:t,qid:n}){const r=new FormData,o=[{question_id:e,content:t}];return r.append("answers",JSON.stringify(o)),r.append("qid",n),Tg({url:"https://s.hbpn.link/answer/answer",body:r,method:"POST"})}function PH({questionId:e,body:t,qid:n}){const r=new FormData,o=[{question_id:e,content:"file:"+t.name}];return r.append("answers",JSON.stringify(o)),r.append(t.name,t.file),r.append("qid",n),Tg({url:"https://s.hbpn.link/answer/answer",body:r,method:"POST"})}function MH({questionId:e,body:t,qid:n}){const r=new FormData,o=[{question_id:e,content:JSON.stringify(t),result:!0,qid:n}];return r.append("answers",JSON.stringify(o)),r.append("qid",n),Tg({url:"https://s.hbpn.link/answer/answer",body:r,method:"POST"})}function TH(e){const t=e.items.map(r=>{const o=JSON.parse(r.c);return{description:r.desc,id:r.id,page:r.p,required:r.req,title:r.title,type:r.typ,content:o}}),n={fp:e.settings.fp,rep:e.settings.rep,name:e.settings.name,cfg:JSON.parse(e==null?void 0:e.settings.cfg),lim:e.settings.lim,due:e.settings.due,delay:e.settings.delay,pausable:e.settings.pausable};return{cnt:e.cnt,settings:n,questions:t}}const M4=x.createContext(null),rr=()=>{const e=x.useContext(M4);if(e===null)throw new Error("quizId context is null");return e},s0=e=>{if(Array.isArray(e))return e.map(s0);if(!e||typeof e!="object")return e;const t={};for(const[n,r]of Object.entries(e)){if(typeof r=="string"){t[n]=r.replace("squiz.pena.digital","storage.yandexcloud.net");continue}if(typeof r=="object"){t[n]=s0(r);continue}t[n]=r}return t};function or(){const e=rr(),{data:t}=RB(["quizData",e],n=>RH(n[1]),{suspense:!0});return t}async function RH(e){const t=await EH(e),n=t.data;if(t.error)throw new Error(t.error);if(!n)throw new Error("Quiz not found");const r=s0(TH(n));return JSON.parse(JSON.stringify({data:r}).replaceAll(/\\" \\"/g,'""').replaceAll(/" "/g,'""')).data}function DH(){const{settings:e,questions:t}=or(),[n,r]=x.useState(s),o=cn(S=>S.answers),i=t.every(({content:S})=>S.rule.parentId!=="root")?t.indexOf(n):null;function s(){if(t.length===0)throw new Error("No questions found");if(e.cfg.haveRoot){const S=t.find(h=>h.id===e.cfg.haveRoot||h.content.id===e.cfg.haveRoot);if(!S)throw new Error("Root question not found");return S}return t[0]}const a=x.useMemo(()=>{var h;const S=o.find(({questionId:m})=>m===n.id);if(S&&!ce.isMoment(S.answer)){const m=Array.isArray(S.answer)?S.answer:[S.answer];for(const C of n.content.rule.main)if(m.some(w=>C.rules[0].answers.includes(w)))return C.next}if(!n.required){const m=n.content.rule.default;if(m.length>1&&m!==" ")return m;if(["date","page","text","number"].includes(n.type)&&n.content.rule.children.length===1)return n.content.rule.children[0]}return(h=t.find(m=>m.type==="result"&&m.content.rule.parentId===n.content.id))==null?void 0:h.id},[o,n,t]),l=i!==null?t[i-1]:t.find(S=>S.id===n.content.rule.parentId||S.content.id===n.content.rule.parentId),c=i!==null?t[i+1]??t.find(S=>S.type==="result"&&S.content.rule.parentId==="line"):t.find(S=>S.id===a||S.content.id===a),u=x.useCallback(()=>{if((c==null?void 0:c.type)!=="result")throw new Error("Current question is not result");if(Xv(c)){al("contactform");return}r(c),e.cfg.resultInfo.showResultForm==="after"&&al("contactform")},[c,e.cfg.resultInfo.showResultForm]),f=x.useCallback(()=>{if(n.type!=="result")throw new Error("Current question is not result");if(Xv(n)){console.warn("Result question is empty");return}al("question")},[n]),p=x.useCallback(()=>{if(!l)throw new Error("Previous question not found");r(l)},[l]),v=x.useCallback(()=>{if(!c)throw new Error("Next question not found");if(c.type==="result")return u();r(c)},[c,u]),y=!!l,g=x.useMemo(()=>{const S=o.some(({questionId:h})=>h===n.id);return"required"in n.content&&n.content.required?S:!!c},[o,n.content,n.id,c]);return x.useDebugValue({linearQuestionIndex:i,currentQuestionTitle:n.title,prevQuestionTitle:l==null?void 0:l.title,nextQuestionTitle:c==null?void 0:c.title}),{currentQuestion:n,currentQuestionStepNumber:i===null?null:i+1,isNextButtonEnabled:g,isPreviousButtonEnabled:y,moveToPrevQuestion:p,moveToNextQuestion:v,showResultAfterContactForm:f}}function Rg(e){throw new Error(`Shouldn't reach here: ${e}`)}const Ho=tn({breakpoints:{values:{xs:0,sm:560,md:900,lg:1200,xl:1536}},components:{MuiTypography:{defaultProps:{variantMapping:{p1:"p"}}},MuiButton:{variants:[{props:{variant:"contained"},style:{backgroundColor:"#7E2AEA",padding:"13px 20px",borderRadius:"8px",color:"#ffffff",boxShadow:"none","&:hover":{backgroundColor:"#581CA7"}}},{props:{variant:"outlined"},style:{backgroundColor:"#F2F3F7",padding:"10px 20px",borderRadius:"8px",border:"1px solid #7E2AEA",color:"#9A9AAF","&:hover":{backgroundColor:"#581CA7",border:"1px solid #581CA7"}}}]}},typography:{h5:{fontSize:"24px",lineHeight:"28.44px",fontWeight:500},button:{fontSize:"18px",lineHeight:"24px",fontWeight:400,textTransform:"none"},body1:{fontSize:"18px",lineHeight:"21.33px",fontWeight:400},body2:{fontSize:"16px",lineHeight:"20px",fontWeight:500},p1:{fontSize:"20px",lineHeight:"24px",fontWeight:500},fontFamily:["Rubik","-apple-system","BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(",")}});Ho.typography.h2={fontSize:"70px",lineHeight:"70px",fontWeight:500,[Ho.breakpoints.down("md")]:{fontSize:"42px",lineHeight:"50px"}};Ho.typography.h4={fontSize:"36px",lineHeight:"42.66px",fontWeight:500,[Ho.breakpoints.down("md")]:{fontSize:"24px",lineHeight:"28.44px"}};Ho.typography.infographic={fontSize:"80px",lineHeight:"94.8px",fontWeight:400,[Ho.breakpoints.down("md")]:{fontSize:"50px",lineHeight:"59px",fontWeight:400}};const xr=tn({...Ho,components:{MuiButton:{variants:[{props:{variant:"contained"},style:{padding:"13px 20px",borderRadius:"8px",boxShadow:"none"}},{props:{variant:"outlined"},style:{padding:"10px 20px",borderRadius:"8px","&:hover":{backgroundColor:"#581CA7",border:"1px solid #581CA7"}}}]}}}),_H=tn({...xr,palette:{primary:{main:"#7E2AEA"},secondary:{main:"#252734"},text:{primary:"#333647",secondary:"#7E2AEA"},background:{default:"#FFFFFF"}}}),OH=tn({...xr,palette:{primary:{main:"#7E2AEA"},secondary:{main:"#252734"},text:{primary:"#FFFFFF",secondary:"#7E2AEA"},background:{default:"#333647"}}}),IH=tn({...xr,palette:{primary:{main:"#D34085"},secondary:{main:"#252734"},text:{primary:"#333647",secondary:"#D34085"},background:{default:"#FFF9FC"}}}),$H=tn({...xr,palette:{primary:{main:"#D34085"},secondary:{main:"#252734"},text:{primary:"#FFFFFF",secondary:"#D34085"},background:{default:"#333647"}}}),FH=tn({...xr,palette:{primary:{main:"#4E4D51"},secondary:{main:"#252734"},text:{primary:"#333647",secondary:"#FFF9FC"},background:{default:"#FFFFFF"}}}),AH=tn({...xr,palette:{primary:{main:"#758E4F"},secondary:{main:"#252734"},text:{primary:"#333647",secondary:"#758E4F"},background:{default:"#F9FBF1"}}}),LH=tn({...xr,palette:{primary:{main:"#7E2AEA"},secondary:{main:"#252734"},text:{primary:"#333647",secondary:"#7E2AEA"},background:{default:"#FBF8FF"}}}),jH=tn({...xr,palette:{primary:{main:"#F2B133"},secondary:{main:"#252734"},text:{primary:"#333647",secondary:"#F2B133"},background:{default:"#FFFCF6"}}}),NH=tn({...xr,palette:{primary:{main:"#E6AA37"},secondary:{main:"#FFFCF6"},text:{primary:"#FFFFFF",secondary:"#F2B133"},background:{default:"#333647"}}}),VH=tn({...xr,palette:{primary:{main:"#4964ED"},secondary:{main:"#252734"},text:{primary:"#333647",secondary:"#4964ED"},background:{default:"#F5F7FF"}}}),zH=tn({...xr,palette:{primary:{main:"#07A0C3"},secondary:{main:"#252734"},text:{primary:"#FFFFFF",secondary:"#07A0C3"},background:{default:"#333647"}}}),xn={StandardTheme:{theme:_H,isLight:!0},StandardDarkTheme:{theme:OH,isLight:!1},PinkTheme:{theme:IH,isLight:!0},PinkDarkTheme:{theme:$H,isLight:!1},BlackWhiteTheme:{theme:FH,isLight:!0},OliveTheme:{theme:AH,isLight:!0},YellowTheme:{theme:jH,isLight:!0},GoldDarkTheme:{theme:NH,isLight:!1},PurpleTheme:{theme:LH,isLight:!0},BlueTheme:{theme:VH,isLight:!0},BlueDarkTheme:{theme:zH,isLight:!1}},T4=x.createContext(null),On=()=>{const e=x.useContext(T4);if(e===null)throw new Error("rootContainerSize context is null");return e};function BH({color:e}){return d.jsx(J,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:d.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{d:"M7.5 7.96875C8.53553 7.96875 9.375 7.12928 9.375 6.09375C9.375 5.05822 8.53553 4.21875 7.5 4.21875C6.46447 4.21875 5.625 5.05822 5.625 6.09375C5.625 7.12928 6.46447 7.96875 7.5 7.96875Z",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M12.1875 6.09375C12.1875 10.3125 7.5 13.5938 7.5 13.5938C7.5 13.5938 2.8125 10.3125 2.8125 6.09375C2.8125 4.85055 3.30636 3.65826 4.18544 2.77919C5.06451 1.90011 6.2568 1.40625 7.5 1.40625C8.7432 1.40625 9.93549 1.90011 10.8146 2.77919C11.6936 3.65826 12.1875 4.85055 12.1875 6.09375V6.09375Z",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"})]})})}function WH({color:e}){return d.jsx(J,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:d.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{d:"M1.875 3.28125H13.125V11.25C13.125 11.3743 13.0756 11.4935 12.9877 11.5815C12.8998 11.6694 12.7806 11.7188 12.6562 11.7188H2.34375C2.21943 11.7188 2.1002 11.6694 2.01229 11.5815C1.92439 11.4935 1.875 11.3743 1.875 11.25V3.28125Z",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M13.125 3.28125L7.5 8.4375L1.875 3.28125",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"})]})})}function HH({color:e}){return d.jsx(J,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:d.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{d:"M6.5 8.375C8.57107 8.375 10.25 6.69607 10.25 4.625C10.25 2.55393 8.57107 0.875 6.5 0.875C4.42893 0.875 2.75 2.55393 2.75 4.625C2.75 6.69607 4.42893 8.375 6.5 8.375Z",stroke:e,strokeMiterlimit:"10"}),d.jsx("path",{d:"M0.8125 11.6568C1.38844 10.659 2.21689 9.83044 3.21458 9.25436C4.21227 8.67828 5.34403 8.375 6.49609 8.375C7.64816 8.375 8.77992 8.67828 9.77761 9.25436C10.7753 9.83044 11.6037 10.659 12.1797 11.6568",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M0.765625 11.6914H11.9866",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"})]})})}function UH({color:e}){return d.jsx(J,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:d.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{d:"M5.41992 7.31237C5.90228 8.30847 6.70774 9.11187 7.70508 9.59166C7.77865 9.6265 7.86002 9.64157 7.94118 9.63541C8.02235 9.62925 8.10051 9.60205 8.16797 9.55651L9.63281 8.57799C9.69753 8.5341 9.77232 8.50731 9.85019 8.50014C9.92806 8.49297 10.0065 8.50564 10.0781 8.53698L12.8203 9.71471C12.914 9.75372 12.9923 9.82245 13.0432 9.91033C13.094 9.9982 13.1145 10.1004 13.1016 10.201C13.0146 10.8794 12.6835 11.5029 12.1702 11.9547C11.6568 12.4066 10.9964 12.656 10.3125 12.6561C8.19906 12.6561 6.17217 11.8166 4.67774 10.3221C3.18331 8.82769 2.34375 6.80081 2.34375 4.68737C2.3439 4.00346 2.59325 3.34304 3.04513 2.82968C3.49701 2.31633 4.12047 1.98522 4.79883 1.8983C4.89951 1.88537 5.00166 1.90589 5.08954 1.95671C5.17741 2.00754 5.24615 2.08583 5.28516 2.17955L6.46289 4.9276C6.49352 4.99812 6.50633 5.07508 6.5002 5.15172C6.49407 5.22835 6.46918 5.3023 6.42773 5.36705L5.44922 6.85534C5.40565 6.92265 5.38009 7.00001 5.37496 7.08003C5.36983 7.16005 5.38531 7.24004 5.41992 7.31237V7.31237Z",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"})})})}function YH({color:e}){return d.jsx(J,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:d.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{d:"M8.67188 1.60156L8.67188 13.3838",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M10.6016 4.21875H13.7768C13.8534 4.21875 13.9268 4.26814 13.9809 4.35604C14.035 4.44395 14.0655 4.56318 14.0655 4.6875V10.3125C14.0655 10.4368 14.035 10.556 13.9809 10.644C13.9268 10.7319 13.8534 10.7812 13.7768 10.7812H10.6016",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M8.67081 10.7812H1.58194C1.41103 10.7812 1.24711 10.7319 1.12625 10.644C1.0054 10.556 0.9375 10.4368 0.9375 10.3125V4.6875C0.9375 4.56318 1.0054 4.44395 1.12625 4.35604C1.24711 4.26814 1.41103 4.21875 1.58194 4.21875H8.67081",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M3.98438 6.5625H5.625",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M7.85156 1.60156H9.49219",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M7.85156 13.3828H9.49219",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M4.80469 6.5625V8.67188",stroke:e,strokeLinecap:"round",strokeLinejoin:"round"})]})})}const Cd=({checked:e=!1,color:t="#7E2AEA"})=>(Le(),d.jsx(J,{sx:{height:"24px",width:"24px",borderRadius:"6px",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:e?t:"#F2F3F7",border:"1px solid #9A9AAF"},children:e&&d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 25 18",fill:"none",children:d.jsx("path",{d:"M2 9L10 16.5L22.5 1.5",stroke:"#ffffff",strokeWidth:"4",strokeLinecap:"round"})})}));function GH({label:e,handleChange:t,checked:n,sx:r,dataCy:o,colorIcon:i}){return d.jsx(tc,{control:d.jsx(A6,{sx:{padding:"0px 13px 1px 11px"},disableRipple:!0,icon:d.jsx(Cd,{}),checkedIcon:d.jsx(Cd,{checked:!0,color:i}),onChange:t,checked:n,"data-cy":o}),label:e,sx:{color:"#9A9AAF",height:"26px",...r}})}const Dg=e=>d.jsxs("svg",{...e,height:"1em",viewBox:"0 0 89 81",fill:"none",children:[d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M34.5604 0.0885217C24.3105 -1.09878 17.239 9.91147 10.6615 17.8703C4.88905 24.8549 0.590996 32.7441 0.0917664 41.7955C-0.439369 51.4255 1.3075 61.4545 7.86805 68.5172C14.6258 75.7923 24.7486 80.3889 34.5604 78.9028C43.5576 77.54 47.5388 67.6598 54.2372 61.4939C61.5105 54.799 75.061 51.6851 74.8731 41.7955C74.6848 31.8908 60.3836 29.952 53.5024 22.8328C46.3747 15.4585 44.7425 1.26797 34.5604 0.0885217Z",fill:"#7E2AEA"}),d.jsx("circle",{cx:"60.0543",cy:"75.1555",r:"5.65583",fill:"#7E2AEA"}),d.jsx("circle",{cx:"54.4046",cy:"12.3947",r:"2.1546",fill:"#7E2AEA"}),d.jsx("path",{d:"M88.866 39.4685C88.2378 33.3607 85.3643 27.7037 80.8025 23.594C76.2408 19.4843 70.3156 17.2146 64.1757 17.2248C63.3039 17.2252 62.4328 17.2708 61.5658 17.3614C55.4608 18.0025 49.8093 20.8814 45.7015 25.443C41.5937 30.0046 39.3205 35.9256 39.3203 42.0642V42.0642V77.549H49.9658V62.468C54.128 65.3636 59.0787 66.9119 64.1491 66.9036C65.0208 66.9033 65.8919 66.8577 66.759 66.767C70.0031 66.426 73.1483 65.4494 76.0151 63.8929C78.8818 62.3364 81.4138 60.2305 83.4667 57.6955C85.5195 55.1604 87.0529 52.2458 87.9793 49.1181C88.9058 45.9904 89.2071 42.7109 88.866 39.4667V39.4685ZM75.1937 51.0011C74.0243 52.4537 72.5783 53.6599 70.9395 54.5498C69.3007 55.4397 67.5017 55.9956 65.6465 56.1854C65.149 56.2371 64.6492 56.2631 64.1491 56.2635C60.9296 56.2605 57.8068 55.1631 55.2932 53.1515C52.7796 51.1398 51.0245 48.3334 50.3161 45.1929C49.6077 42.0523 49.988 38.7642 51.3945 35.8683C52.8011 32.9723 55.1504 30.6406 58.0568 29.2558C60.9632 27.871 64.2541 27.5154 67.3892 28.2473C70.5244 28.9793 73.3176 30.7553 75.3103 33.284C77.303 35.8126 78.3769 38.9436 78.3558 42.1629C78.3346 45.3823 77.2196 48.4989 75.1937 51.0011Z",fill:"#151515"})]}),KH=Of,a0=/^(([^<>()[\].,:\s@"]+(\.[^<>()[\].,:\s@"]+)*)|(".+"))@(([^<>()[\].,:\s@"]+\.)+[^<>()[\].,:\s@"]{2,})$/iu,qH=({currentQuestion:e,onShowResult:t})=>{var A;const n=Le(),r=rr(),{settings:o,questions:i}=or(),[s,a]=x.useState(!1),[l,c]=x.useState(""),[u,f]=x.useState(""),[p,v]=x.useState(""),[y,g]=x.useState(""),[S,h]=x.useState(""),m=x.useRef(!0),[C,w]=x.useState(!1),k=On()<850;if(!(e.type==="result"?e:i.find($=>o!=null&&o.cfg.haveRoot?$.type==="result"&&$.content.rule.parentId===e.content.id:$.type==="result"&&$.content.rule.parentId==="line")))throw new Error("Result question not found");const E=async()=>{const $=o.cfg.formContact.fields||o.cfg.formContact,D={};if(l.length>0&&(D.name=l),u.length>0&&(D.email=u),p.length>0&&(D.phone=p),S.length>0&&(D.address=S),y.length>0&&(D.customs={[$.text.text||"Фамилия"]:y}),Object.keys(D).length>0)try{await MH({questionId:e.id,body:D,qid:r});const _=JSON.parse(localStorage.getItem("sessions")||"{}");localStorage.setItem("sessions",JSON.stringify({..._,[r]:new Date().getTime()}))}catch{Et("ответ не был засчитан")}},M=o.cfg.formContact.fields||o.cfg.formContact,T={};for(const $ in M){const D=M[$];D.used&&(T[$]=D)}const R=Object.keys(T).length>2;async function O(){if((o.cfg.formContact.fields||o.cfg.formContact).email.used!==a0.test(u))return Et("введена некорректная почта");if(w(!0),m.current){if(l.length===0&&u.length===0&&p.length===0&&y.length===0&&S.length===0)return Et("Пожалуйста, заполните поля");try{await E(),m.current=!1;const D=JSON.parse(localStorage.getItem("sessions")||"{}");D[r]=Date.now(),localStorage.setItem("sessions",JSON.stringify(D)),Et("Данные успешно отправлены")}catch{Et("повторите попытку позже")}t()}w(!1)}return d.jsx(J,{sx:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n.palette.background.default,height:"100%",overflow:"auto","&::-webkit-scrollbar":{width:"0",display:"none",msOverflowStyle:"none"},scrollbarWidth:"none",msOverflowStyle:"none"},children:d.jsxs(J,{sx:{width:R&&!k?"100%":k?void 0:"530px",borderRadius:"4px",height:"90vh",display:R&&!k?"flex":void 0},children:[d.jsxs(J,{sx:{width:R&&!k?"100%":void 0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",borderRight:R&&!k?"1px solid gray":void 0},children:[d.jsx(Re,{sx:{textAlign:"center",m:"20px 0",fontSize:"28px",color:n.palette.text.primary},children:o.cfg.formContact.title||"Заполните форму, чтобы получить результаты теста"}),o.cfg.formContact.desc&&d.jsx(Re,{sx:{color:n.palette.text.primary,textAlign:"center",m:"20px 0",fontSize:"18px"},children:o.cfg.formContact.desc})]}),d.jsxs(J,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",backgroundColor:n.palette.background.default,p:"30px"},children:[d.jsx(J,{sx:{display:"flex",flexDirection:"column",my:"20px"},children:d.jsx(ZH,{name:l,setName:c,email:u,setEmail:f,phone:p,setPhone:v,text:y,setText:g,adress:S,setAdress:h})}),d.jsx(Mr,{disabled:!(s&&!C),variant:"contained",onClick:O,children:((A=o.cfg.formContact)==null?void 0:A.button)||"Получить результаты"}),d.jsxs(J,{sx:{display:"flex",mt:"20px",width:k?"300px":"450px"},children:[d.jsx(GH,{label:"",handleChange:({target:$})=>{a($.checked)},checked:s,colorIcon:n.palette.primary.main}),d.jsxs(Re,{sx:{color:n.palette.text.primary},children:["С ",d.jsxs(ld,{href:"https://shub.pena.digital/ppdd",target:"_blank",children:["Положением об обработке персональных данных"," "]})," и ",d.jsxs(ld,{href:"https://shub.pena.digital/docs/privacy",target:"_blank",children:[" ","Политикой конфиденциальности"," "]})," ознакомлен"]})]}),d.jsxs(J,{sx:{display:"flex",alignItems:"center",mt:"20px",gap:"15px"},children:[d.jsx(Dg,{style:{fontSize:"34px",color:xn[o.cfg.theme].isLight?"#151515":"#FFFFFF"}}),d.jsx(Re,{sx:{fontSize:"20px",color:xn[o.cfg.theme].isLight?"#4D4D4D":"#F5F7FF",whiteSpace:"nowrap"},children:"Сделано на PenaQuiz"})]})]})]})})},ZH=({name:e,setName:t,email:n,setEmail:r,phone:o,setPhone:i,text:s,setText:a,adress:l,setAdress:c})=>{const{settings:u}=or(),f=u.cfg.formContact.fields||u.cfg.formContact;if(!f)return null;const p=d.jsx($a,{onChange:({target:h})=>t(h.value),id:e,title:f.name.innerText||"Введите имя",desc:f.name.text||"имя",Icon:HH}),v=d.jsx($a,{error:!a0.test(n),label:a0.test(n)?"Некорректная почта":"",onChange:({target:h})=>r(h.value),id:n,title:f.email.innerText||"Введите Email",desc:f.email.text||"Email",Icon:WH}),y=d.jsx($a,{onChange:({target:h})=>i(h.value),id:o,title:f.phone.innerText||"Введите номер телефона",desc:f.phone.text||"номер телефона",Icon:UH}),g=d.jsx($a,{onChange:({target:h})=>a(h.value),id:s,title:f.text.text||"Введите фамилию",desc:f.text.innerText||"фамилию",Icon:YH}),S=d.jsx($a,{onChange:({target:h})=>c(h.value),id:l,title:f.address.innerText||"Введите адрес",desc:f.address.text||"адрес",Icon:BH});return Object.values(f).some(h=>h.used)?d.jsxs(d.Fragment,{children:[f.name.used?p:d.jsx(d.Fragment,{}),f.email.used?v:d.jsx(d.Fragment,{}),f.phone.used?y:d.jsx(d.Fragment,{}),f.text.used?g:d.jsx(d.Fragment,{}),f.address.used?S:d.jsx(d.Fragment,{})]}):d.jsxs(d.Fragment,{children:[p,v,y]})},$a=({title:e,desc:t,Icon:n,onChange:r})=>{const o=Le(),i=On()<600;return d.jsxs(J,{m:"15px 0",children:[d.jsx(Re,{mb:"7px",color:o.palette.text.primary,children:e}),d.jsx(KH,{onChange:r,sx:{width:i?"300px":"350px"},placeholder:t,InputProps:{startAdornment:d.jsx(Am,{position:"start",children:d.jsx(n,{color:"gray"})})}})]})},XH=({stepNumber:e,nextButton:t,prevButton:n})=>{const r=Le(),{questions:o}=or();return d.jsx(J,{sx:{position:"relative",padding:"15px 0",borderTop:`1px solid ${r.palette.grey[400]}`,height:"75px",display:"flex"},children:d.jsxs(J,{sx:{width:"100%",maxWidth:"1000px",padding:"0 10px",margin:"0 auto",display:"flex",alignItems:"center",gap:"10px"},children:[e!==null&&d.jsxs(J,{sx:{display:"flex",alignItems:"center",gap:"10px",marginRight:"auto",color:r.palette.text.primary},children:[d.jsx(Re,{children:"Шаг"}),d.jsx(Re,{sx:{display:"flex",justifyContent:"center",alignItems:"center",fontWeight:"bold",borderRadius:"50%",width:"30px",height:"30px",color:"#FFF",background:r.palette.primary.main},children:e}),d.jsx(Re,{children:"Из"}),d.jsx(Re,{sx:{fontWeight:"bold"},children:o.filter(i=>i.type!=="result").length})]}),d.jsx(J,{sx:{display:"flex",alignItems:"center",gap:"10px",marginRight:"auto"}}),n,t]})})};function JH({sx:e}){return d.jsx(J,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,"&:hover path":{stroke:"#581CA7"},"&:active path":{stroke:"#FB5607"},"&:hover rect":{stroke:"#581CA7"},"&:active rect":{stroke:"#FB5607"},...e},children:d.jsxs("svg",{width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("rect",{x:"1",y:"2.5",width:"18",height:"18",rx:"5",stroke:"#7E2AEA",strokeWidth:"1.5"}),d.jsx("path",{d:"M1 7.5H19",stroke:"#7E2AEA",strokeWidth:"1.5",strokeLinejoin:"round"}),d.jsx("path",{d:"M14.5 1L14.5 4",stroke:"#7E2AEA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M5.5 1L5.5 4",stroke:"#7E2AEA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M4.5 11.5H5.5",stroke:"#7E2AEA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M9.5 11.5H10.5",stroke:"#7E2AEA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M14.5 11.5H15.5",stroke:"#7E2AEA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M4.5 15.5H5.5",stroke:"#7E2AEA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M9.5 15.5H10.5",stroke:"#7E2AEA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M14.5 15.5H15.5",stroke:"#7E2AEA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})}const QH=({currentQuestion:e})=>{var a;const t=Le(),n=rr(),{settings:r}=or(),{answers:o}=cn(),i=(a=o.find(({questionId:l})=>l===e.id))==null?void 0:a.answer,s=ce(i)||ce();return d.jsxs(J,{children:[d.jsx(Re,{variant:"h5",color:t.palette.text.primary,children:e.title}),d.jsx(J,{sx:{display:"flex",flexDirection:"column",width:"100%",marginTop:"20px"},children:d.jsx(iL,{slots:{openPickerIcon:()=>d.jsx(JH,{sx:{"& path":{stroke:t.palette.primary.main},"& rect":{stroke:t.palette.primary.main}}})},value:s,onChange:async l=>{if(console.log(l),!!l)try{await Qt({questionId:e.id,body:ce(l).format("YYYY.MM.DD"),qid:n}),wn(e.id,l)}catch{Et("ответ не был засчитан")}},slotProps:{openPickerButton:{sx:{p:0},"data-cy":"open-datepicker"},layout:{sx:{backgroundColor:t.palette.background.default}}},sx:{"& .MuiInputBase-root":{backgroundColor:xn[r.cfg.theme].isLight?"white":t.palette.background.default,borderRadius:"10px",maxWidth:"250px",pr:"22px","& input":{py:"11px",pl:"20px",lineHeight:"19px"},"& fieldset":{borderColor:"#9A9AAF"}}}})})]})};function sp({color:e="#7E2AEA"}){return Le(),d.jsx(J,{sx:{height:"26px",width:"26px",display:"flex",alignItems:"center",justifyContent:"center"},children:d.jsxs("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("rect",{x:"0.5",y:"0.5",width:"25",height:"25",rx:"12.5",fill:e,stroke:e}),d.jsx("rect",{x:"8",y:"8",width:"10",height:"10",rx:"5",fill:"white"})]})})}function ap(){return Le(),d.jsx(J,{sx:{height:"26px",width:"26px",display:"flex",alignItems:"center",justifyContent:"center"},children:d.jsx("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("rect",{x:"0.5",y:"0.5",width:"25",height:"25",rx:"12.5",fill:"#F2F3F7",stroke:"#9A9AAF"})})})}const eU=({currentQuestion:e})=>{const t=Le(),n=rr(),{answers:r}=cn(),{answer:o}=r.find(({questionId:i})=>i===e.id)??{};return d.jsxs(J,{children:[d.jsx(Re,{variant:"h5",color:t.palette.text.primary,children:e.title}),d.jsx(_f,{name:e.id,value:e.content.variants.findIndex(({id:i})=>o===i),onChange:({target:i})=>{wn(e.id,e.content.variants[Number(i.value)].answer)},sx:{display:"flex",flexWrap:"wrap",flexDirection:"row",justifyContent:"space-between",marginTop:"20px"},children:d.jsx(J,{sx:{display:"flex",width:"100%",gap:"42px",flexWrap:"wrap"},children:e.content.variants.map((i,s)=>d.jsxs(Rf,{sx:{borderRadius:"12px",border:"1px solid",borderColor:o===i.id?t.palette.primary.main:"#9A9AAF",overflow:"hidden",maxWidth:"317px",width:"100%",height:"255px"},children:[d.jsx(J,{sx:{display:"flex",alignItems:"center",height:"193px",background:"#ffffff"},children:d.jsx(J,{sx:{width:"100%",display:"flex",justifyContent:"center"},children:i.extendedText&&d.jsx(Re,{fontSize:"100px",children:i.extendedText})})}),d.jsx(tc,{sx:{margin:0,padding:"15px",color:t.palette.text.primary,display:"flex",gap:"10px"},value:s,onClick:async a=>{a.preventDefault();try{await Qt({questionId:e.id,body:e.content.variants[s].extendedText+" "+e.content.variants[s].answer,qid:n}),wn(e.id,e.content.variants[s].id)}catch{Et("ответ не был засчитан")}if(o===e.content.variants[s].id){uc(e.id);try{await Qt({questionId:e.id,body:"",qid:n})}catch{Et("ответ не был засчитан")}}},control:d.jsx(Df,{checkedIcon:d.jsx(sp,{color:t.palette.primary.main}),icon:d.jsx(ap,{})}),label:d.jsx(J,{sx:{display:"flex",gap:"10px"},children:d.jsx(Re,{sx:{wordBreak:"break-word"},children:i.answer})})},i.id)]},i.id))})})]})};function tU({width:e}){return Le(),d.jsxs("svg",{width:"35",height:"33",viewBox:"0 0 35 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsxs("g",{id:"Close",children:[d.jsx("g",{id:"Rectangle 57",opacity:"0.3",filter:"url(#filter0_d_4080_12482)",children:d.jsx("rect",{x:"6",y:"4",width:"24",height:"24",rx:"12",fill:"#9A9AAF"})}),d.jsxs("g",{id:"Group 331",children:[d.jsx("path",{id:"Vector 586",d:"M22.8516 10.9517L12.9521 20.8512",stroke:"#FDFDFF",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{id:"Vector 587",d:"M22.8516 20.8462L12.9521 10.9467",stroke:"#FDFDFF",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})]}),d.jsx("defs",{children:d.jsxs("filter",{id:"filter0_d_4080_12482",x:"0",y:"0",width:"36",height:"36",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[d.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),d.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),d.jsx("feMorphology",{radius:"1",operator:"dilate",in:"SourceAlpha",result:"effect1_dropShadow_4080_12482"}),d.jsx("feOffset",{dy:"2"}),d.jsx("feGaussianBlur",{stdDeviation:"2.5"}),d.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),d.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.416562 0 0 0 0 0.452406 0 0 0 0 0.775 0 0 0 0.18 0"}),d.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_4080_12482"}),d.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_4080_12482",result:"shape"})]})})]})}function nU({color:e="#9A9AAF"}){return Le(),d.jsx(J,{sx:{height:"32px",width:"32px",display:"flex",alignItems:"center",justifyContent:"center"},children:d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:[d.jsx("path",{d:"M10.75 10.25L16 5L21.25 10.25",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M16 19V5",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M27 19V26C27 26.2652 26.8946 26.5196 26.7071 26.7071C26.5196 26.8946 26.2652 27 26 27H6C5.73478 27 5.48043 26.8946 5.29289 26.7071C5.10536 26.5196 5 26.2652 5 26V19",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})}function rU({width:e=20,height:t=20,sx:n,onClick:r,className:o,color:i="#7e2aea"}){return d.jsx(ea,{sx:n,className:o,onClick:r,children:d.jsxs("svg",{width:e,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{d:"M10 19C14.9706 19 19 14.9706 19 10C19 5.02944 14.9706 1 10 1C5.02944 1 1 5.02944 1 10C1 14.9706 5.02944 19 10 19Z",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M9.25 9.25H10V14.5H10.75",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M9.8125 7C10.4338 7 10.9375 6.49632 10.9375 5.875C10.9375 5.25368 10.4338 4.75 9.8125 4.75C9.19118 4.75 8.6875 5.25368 8.6875 5.875C8.6875 6.49632 9.19118 7 9.8125 7Z",fill:i})]})})}const oU=({status:e})=>{switch(e){case"errorType":return d.jsx(d.Fragment,{children:d.jsx(Re,{children:"Выбран некорректный тип файла"})});case"errorSize":return d.jsx(d.Fragment,{children:d.jsx(Re,{children:"Файл слишком большой. Максимальный размер 50 МБ"})});default:return d.jsxs(d.Fragment,{children:[d.jsx(Re,{children:"Допустимые расширения файлов:"}),d.jsx(Re,{children:l0[e].join(" ")})]})}},l0={picture:[".jpeg",".jpg",".png",".ico",".gif",".tiff",".webp",".eps",".svg"],video:[".mp4",".mov",".wmv",".avi",".avchd",".flv",".f4v",".swf",".mkv",".webm",".mpeg-2"],audio:[".aac",".aiff",".dsd",".flac",".mp3",".mqa",".ogg",".wav",".wma"],document:[".doc",".docx",".dotx",".rtf",".odt",".pdf",".txt",".xls",".ppt",".xlsx",".pptx",".pages"]},c5={picture:{title:"Добавить изображение",description:"Принимает изображения"},video:{title:"Добавить видео",description:"Принимает .mp4 и .mov формат — максимум 100мб"},audio:{title:"Добавить аудиофайл",description:"Принимает аудиофайлы"},document:{title:"Добавить документ",description:"Принимает документы"}},iU=({currentQuestion:e})=>{var c;const t=Le(),{answers:n}=cn(),r=rr(),[o,i]=x.useState(""),s=(c=n.find(({questionId:u})=>u===e.id))==null?void 0:c.answer,a=On()<500,l=async({target:u})=>{var p;const f=(p=u.files)==null?void 0:p[0];if(f)if(f.size<=52428800)if(console.log(f.name.toLowerCase()),l0[e.content.type].find(v=>(console.log(v),console.log(f.name.toLowerCase().endsWith(v)),f.name.toLowerCase().endsWith(v)))){console.log(f);try{const v=await PH({questionId:e.id,body:{file:f,name:f.name},qid:r});console.log(v),await Qt({questionId:e.id,body:`https://storage.yandexcloud.net/squizanswer/${r}/${e.id}/${v.data.fileIDMap[e.id]}`,qid:r}),wn(e.id,`${f.name}|${URL.createObjectURL(f)}`)}catch(v){console.log(v),Et("ответ не был засчитан")}}else i("errorType");else i("errorSize")};return d.jsxs(d.Fragment,{children:[d.jsxs(J,{children:[d.jsx(Re,{variant:"h5",color:t.palette.text.primary,children:e.title}),d.jsxs(J,{sx:{display:"flex",flexDirection:"column",width:"100%",marginTop:"20px",maxWidth:s!=null&&s.split("|")[0]?"640px":"600px"},children:[(s==null?void 0:s.split("|")[0])&&d.jsxs(J,{sx:{display:"flex",alignItems:"center",gap:"15px"},children:[d.jsx(Re,{color:t.palette.text.primary,children:"Вы загрузили:"}),d.jsxs(J,{sx:{padding:"5px 5px 5px 16px",backgroundColor:t.palette.primary.main,borderRadius:"8px",color:"#FFFFFF",display:"flex",alignItems:"center",overflow:"hidden",gap:"15px"},children:[d.jsx(Re,{sx:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},children:s==null?void 0:s.split("|")[0]}),d.jsx(ea,{sx:{p:0},onClick:()=>{wn(e.id,"")},children:d.jsx(tU,{})})]})]}),!(s!=null&&s.split("|")[0])&&d.jsxs(J,{sx:{display:"flex",alignItems:"center"},children:[d.jsxs(Fr,{component:"label",sx:{justifyContent:"flex-start",width:"100%"},children:[d.jsx("input",{onChange:l,hidden:!0,accept:l0[e.content.type].join(","),multiple:!0,type:"file"}),d.jsxs(J,{onDragOver:u=>u.preventDefault(),sx:{width:"100%",height:a?void 0:"120px",display:"flex",gap:"50px",justifyContent:"flex-start",alignItems:"center",padding:"33px 44px 33px 55px",backgroundColor:t.palette.background.default,border:"1px solid #9A9AAF",borderRadius:"8px"},children:[d.jsx(nU,{}),d.jsxs(J,{children:[d.jsx(Re,{sx:{color:"#9A9AAF",fontWeight:500},children:c5[e.content.type].title}),d.jsx(Re,{sx:{color:"#9A9AAF",fontSize:"16px",lineHeight:"19px"},children:c5[e.content.type].description})]})]})]}),d.jsx(rU,{sx:{width:"40px",height:"40px"},color:t.palette.primary.main,onClick:()=>i(e.content.type)})]}),s&&e.content.type==="picture"&&d.jsx("img",{src:s.split("|")[1],alt:"",style:{marginTop:"15px",maxWidth:"300px",maxHeight:"300px"}}),s&&e.content.type==="video"&&d.jsx("video",{src:s.split("|")[1],style:{marginTop:"15px",maxWidth:"300px",maxHeight:"300px",objectFit:"cover"}})]})]}),d.jsx(Fm,{open:!!o,onClose:()=>i(""),children:d.jsx(J,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:a?300:400,bgcolor:"background.paper",borderRadius:3,boxShadow:24,p:4},children:d.jsx(oU,{status:o})})})]})},sU=({currentQuestion:e})=>{var a;const t=rr(),{answers:n}=cn(),r=Le(),o=(a=n.find(({questionId:l})=>l===e.id))==null?void 0:a.answer,i=On()<1e3,s=On()<500;return d.jsxs(J,{children:[d.jsx(Re,{variant:"h5",color:r.palette.text.primary,children:e.title}),d.jsx(_f,{name:e.id,value:e.content.variants.findIndex(({id:l})=>o===l),sx:{display:"flex",flexWrap:"wrap",flexDirection:"row",justifyContent:"space-between",marginTop:"20px"},children:d.jsx(J,{sx:{display:"grid",gap:"15px",gridTemplateColumns:i?s?"repeat(1, 1fr)":"repeat(2, 1fr)":"repeat(3, 1fr)",width:"100%"},children:e.content.variants.map((l,c)=>d.jsxs(J,{sx:{cursor:"pointer",borderRadius:"5px",border:"1px solid",borderColor:o===l.id?r.palette.primary.main:"#9A9AAF"},onClick:async u=>{u.preventDefault();try{await Qt({questionId:e.id,body:`${e.content.variants[c].answer} `,qid:t}),wn(e.id,e.content.variants[c].id)}catch{Et("ответ не был засчитан")}if(o===e.content.variants[c].id){uc(e.id);try{await Qt({questionId:e.id,body:"",qid:t})}catch{Et("ответ не был засчитан")}}},children:[d.jsx(J,{sx:{display:"flex",alignItems:"center",gap:"10px"},children:d.jsx(J,{sx:{width:"100%",height:"300px"},children:l.extendedText&&d.jsx("img",{src:l.extendedText,alt:"",style:{display:"block",width:"100%",height:"100%",objectFit:"cover"}})})}),d.jsx(tc,{sx:{textAlign:"center",color:r.palette.text.primary,marginTop:"10px",marginLeft:0,padding:"10px","& .MuiFormControlLabel-label":{wordBreak:"break-word"}},value:c,control:d.jsx(Df,{checkedIcon:d.jsx(sp,{color:r.palette.primary.main}),icon:d.jsx(ap,{})}),label:l.answer},l.id)]},c))})})]})};function Mu(e,t,n){var r=this,o=x.useRef(null),i=x.useRef(0),s=x.useRef(null),a=x.useRef([]),l=x.useRef(),c=x.useRef(),u=x.useRef(e),f=x.useRef(!0);x.useEffect(function(){u.current=e},[e]);var p=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var v=!!(n=n||{}).leading,y=!("trailing"in n)||!!n.trailing,g="maxWait"in n,S=g?Math.max(+n.maxWait||0,t):null;x.useEffect(function(){return f.current=!0,function(){f.current=!1}},[]);var h=x.useMemo(function(){var m=function(M){var T=a.current,R=l.current;return a.current=l.current=null,i.current=M,c.current=u.current.apply(R,T)},C=function(M,T){p&&cancelAnimationFrame(s.current),s.current=p?requestAnimationFrame(M):setTimeout(M,T)},w=function(M){if(!f.current)return!1;var T=M-o.current;return!o.current||T>=t||T<0||g&&M-i.current>=S},k=function(M){return s.current=null,y&&a.current?m(M):(a.current=l.current=null,c.current)},P=function M(){var T=Date.now();if(w(T))return k(T);if(f.current){var R=t-(T-o.current),O=g?Math.min(R,S-(T-i.current)):R;C(M,O)}},E=function(){var M=Date.now(),T=w(M);if(a.current=[].slice.call(arguments),l.current=r,o.current=M,T){if(!s.current&&f.current)return i.current=o.current,C(P,t),v?m(o.current):c.current;if(g)return C(P,t),m(o.current)}return s.current||C(P,t),c.current};return E.cancel=function(){s.current&&(p?cancelAnimationFrame(s.current):clearTimeout(s.current)),i.current=0,a.current=o.current=l.current=s.current=null},E.isPending=function(){return!!s.current},E.flush=function(){return s.current?k(Date.now()):c.current},E},[v,g,t,S,y,p]);return h}const aU=({defaultValue:e,value:t,min:n=0,max:r=100,step:o,onChange:i,onChangeCommitted:s,sx:a})=>(Le(),d.jsx(MI,{value:t,defaultValue:e,min:n,max:r,step:o,onChange:i,valueLabelDisplay:"on",onChangeCommitted:s,onMouseDown:l=>l.stopPropagation(),"data-cy":"slider",sx:{color:"#7E2AEA",padding:"0",marginTop:"75px","& .MuiSlider-valueLabel":{background:"#7E2AEA",borderRadius:"8px",minWidth:"60px",width:"auto",whiteSpace:"nowrap",textAlign:"center",height:"36px"},"& .MuiSlider-valueLabel::before":{width:"6px",height:"2px",transform:"translate(-50%, 50%) rotate(90deg)",bottom:"-5px"},"& .MuiSlider-rail":{backgroundColor:"#F2F3F7",border:"1px solid #9A9AAF",height:"12px"},"& .MuiSlider-thumb":{border:"3px #f2f3f7 solid",height:"23px",width:"23px"},"& .MuiSlider-track":{height:"12px"},...a}})),lU=Of;function Tu({placeholder:e,value:t,text:n,sx:r,error:o,onChange:i,onKeyDown:s,onBlur:a,InputProps:l}){const c=Le();return d.jsx(Rf,{fullWidth:!0,variant:"standard",sx:{p:0},children:d.jsx(lU,{defaultValue:n,fullWidth:!0,value:t,placeholder:e,error:!!o,label:o,onChange:i,onKeyDown:s,onBlur:a,sx:{"& .MuiInputBase-root":{backgroundColor:c.palette.background.default,height:"48px",borderRadius:"10px"},"& .MuiInputLabel-root":{fontSize:"13.5px",marginTop:"3px"},...r},InputProps:l,inputProps:{sx:{borderRadius:"10px",fontSize:"18px",lineHeight:"21px",py:0}},"data-cy":"textfield"})})}const cU=({currentQuestion:e})=>{var w;const t=rr(),{settings:n}=or(),[r,o]=x.useState("0"),[i,s]=x.useState("0"),[a,l]=x.useState("100000000000"),c=Le(),{answers:u}=cn(),f=On()<650,p=window.Number(e.content.range.split("—")[0]),v=window.Number(e.content.range.split("—")[1]),y=async k=>{try{await Qt({questionId:e.id,body:k,qid:t}),wn(e.id,k)}catch{Et("ответ не был засчитан")}},g=Mu(async k=>{const P=window.Number(k)window.Number(a)?a:k;o(P),await y(P)},1e3),S=Mu(async(k,P=!1)=>{const E=P?a:window.Number(k.split("—")[0]){const E=P?i:window.Number(k.split("—")[1])>v?String(v):k.split("—")[1];l(E),await y(`${k.split("—")[0]}—${E}`)},1e3),m=(w=u.find(({questionId:k})=>k===e.id))==null?void 0:w.answer,C=m||e.content.start+"—"+v;return x.useEffect(()=>{m&&(m.includes("—")?(s(m.split("—")[0]),l(m.split("—")[1])):o(m)),m||(s(String(e.content.start)),l(String(v)),o(String(e.content.start)))},[]),d.jsxs(J,{children:[d.jsx(Re,{variant:"h5",color:c.palette.text.primary,children:e.title}),d.jsxs(J,{sx:{display:"flex",flexDirection:"column",width:"100%",marginTop:"20px",gap:"30px",paddingRight:f?"10px":void 0},children:[d.jsx(aU,{value:e.content.chooseRange?C.split("—").length||0>1?C.split("—").map(k=>window.Number(k)):[p,p+1]:window.Number(C.split("—")[0]),min:p,max:v,step:e.content.step||1,onChange:(k,P)=>{const E=Array.isArray(P)?`${P[0]}—${P[1]}`:String(P);wn(e.id,E)},onChangeCommitted:async(k,P)=>{if(e.content.chooseRange&&Array.isArray(P)){s(String(P[0])),l(String(P[1])),await y(`${P[0]}—${P[1]}`);return}o(String(P)),await y(String(P))},sx:{color:c.palette.primary.main,"& .MuiSlider-valueLabel":{background:c.palette.primary.main}}}),!e.content.chooseRange&&d.jsx(Tu,{placeholder:"0",value:r,onChange:({target:k})=>{const P=k.value.replace(/\D/g,"");o(P),g(P)},sx:{maxWidth:"80px",borderColor:c.palette.text.primary,"& .MuiInputBase-input":{textAlign:"center",backgroundColor:xn[n.cfg.theme].isLight?"white":c.palette.background.default}}}),e.content.chooseRange&&d.jsxs(J,{sx:{display:"flex",gap:"15px",alignItems:"center","& .MuiFormControl-root":{width:"auto"}},children:[d.jsx(Tu,{placeholder:"0",value:i,onChange:({target:k})=>{const P=k.value.replace(/\D/g,"");if(s(P),window.Number(P)>=window.Number(a)){S(`${a}—${a}`,!0);return}S(`${P}—${a}`)},sx:{maxWidth:"80px",borderColor:c.palette.text.primary,"& .MuiInputBase-input":{textAlign:"center",backgroundColor:xn[n.cfg.theme].isLight?"white":c.palette.background.default}}}),d.jsx(Re,{color:c.palette.text.primary,children:"до"}),d.jsx(Tu,{placeholder:"0",value:a,onChange:({target:k})=>{const P=k.value.replace(/\D/g,"");if(l(P),window.Number(P)<=window.Number(i)){h(`${i}—${i}`,!0);return}h(`${i}—${P}`)},sx:{maxWidth:"80px",borderColor:c.palette.text.primary,"& .MuiInputBase-input":{textAlign:"center",backgroundColor:xn[n.cfg.theme].isLight?"white":c.palette.background.default}}})]})]})]})};function _g({videoUrl:e,containerSX:t}){var r;return(r=/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/gi.exec(e))==null||r[1],d.jsx(J,{sx:{width:"100%",height:"100%",pointerEvents:"none","& iframe":{width:"100%",height:"100%"},...t},children:d.jsx(J,{component:"video",sx:{width:"100%",height:"100%"},autoPlay:!0,muted:!0,src:e})})}const uU=({currentQuestion:e})=>{const t=Le();return d.jsxs(J,{children:[d.jsx(Re,{variant:"h5",sx:{paddingBottom:"25px",color:t.palette.text.primary},children:e.title}),d.jsx(Re,{color:t.palette.text.primary,children:e.content.text}),d.jsx(J,{sx:{display:"flex",flexDirection:"column",width:"100%",marginTop:"20px"},children:e.content.useImage?d.jsx(J,{sx:{borderRadius:"12px",border:"1px solid #9A9AAF",overflow:"hidden"},children:d.jsx("img",{src:e.content.back,alt:"",style:{display:"block",width:"100%",height:"100%",objectFit:"contain"}},e.id)}):d.jsx(_g,{containerSX:{width:"100%",height:"calc(100% - 270px)",maxHeight:"80vh",objectFit:"contain"},videoUrl:e.content.video})})]})};function dU({color:e}){return d.jsx(J,{sx:{height:"30px",width:"30px",display:"flex",alignItems:"center",justifyContent:"center"},children:d.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{d:"M5 27V6",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M5 21.0016C13 15.0016 19 27.0016 27 21.0016V6.00158C19 12.0016 13 0.00158215 5 6.00158",fill:e}),d.jsx("path",{d:"M5 21.0016C13 15.0016 19 27.0016 27 21.0016V6.00158C19 12.0016 13 0.00158203 5 6.00158",stroke:e,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]})})}function fU({color:e,width:t=30,sx:n}){return d.jsx(J,{sx:{height:"50px",width:t+"px",display:"flex",alignItems:"center",justifyContent:"center",...n},children:d.jsx("svg",{width:t,height:t,viewBox:"0 0 28 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{d:"M14.551 21.8375L20.851 25.8375C21.6635 26.35 22.6635 25.5875 22.426 24.65L20.601 17.475C20.5516 17.2762 20.5595 17.0674 20.6236 16.8728C20.6877 16.6781 20.8056 16.5056 20.9635 16.375L26.6135 11.6625C27.351 11.05 26.976 9.81253 26.0135 9.75003L18.6385 9.27503C18.4372 9.26332 18.2438 9.19325 18.0817 9.07338C17.9197 8.95351 17.7961 8.78902 17.726 8.60003L14.976 1.67503C14.9032 1.47491 14.7706 1.30204 14.5961 1.17988C14.4217 1.05772 14.2139 0.992188 14.001 0.992188C13.788 0.992188 13.5802 1.05772 13.4058 1.17988C13.2314 1.30204 13.0988 1.47491 13.026 1.67503L10.276 8.60003C10.2059 8.78902 10.0823 8.95351 9.92021 9.07338C9.75816 9.19325 9.5647 9.26332 9.36347 9.27503L1.98847 9.75003C1.02597 9.81253 0.650971 11.05 1.38847 11.6625L7.03847 16.375C7.19639 16.5056 7.3142 16.6781 7.37834 16.8728C7.44247 17.0674 7.45032 17.2762 7.40097 17.475L5.71347 24.125C5.42597 25.25 6.62597 26.1625 7.58847 25.55L13.451 21.8375C13.6154 21.733 13.8062 21.6775 14.001 21.6775C14.1958 21.6775 14.3866 21.733 14.551 21.8375Z",fill:e,stroke:e,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})})}function pU({color:e}){return d.jsx(J,{sx:{height:"30px",width:"30px",display:"flex",alignItems:"center",justifyContent:"center"},children:d.jsx("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{d:"M3 11.3333H29M3 20.6667H29M13.6364 2L8.90909 30M23.0909 2L18.3636 30",stroke:e,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})})}function hU({color:e}){return d.jsx(J,{sx:{height:"30px",width:"30px",display:"flex",alignItems:"center",justifyContent:"center"},children:d.jsx("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{d:"M16 27C16 27 3.5 20 3.5 11.5C3.5 9.99737 4.02062 8.54114 4.97328 7.37908C5.92593 6.21703 7.25178 5.42093 8.72525 5.12624C10.1987 4.83154 11.7288 5.05646 13.0551 5.76272C14.3814 6.46898 15.4221 7.61296 16 9.00001C16.5779 7.61296 17.6186 6.46898 18.9449 5.76272C20.2712 5.05646 21.8013 4.83154 23.2748 5.12624C24.7482 5.42093 26.0741 6.21703 27.0267 7.37908C27.9794 8.54114 28.5 9.99737 28.5 11.5C28.5 20 16 27 16 27Z",fill:e,stroke:e,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})})}function mU({color:e}){return d.jsx(J,{sx:{height:"30px",width:"30px",display:"flex",alignItems:"center",justifyContent:"center"},children:d.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{d:"M11 29H21",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M9.83761 20.8739C8.6471 19.9482 7.68288 18.7637 7.01801 17.4102C6.35313 16.0566 6.00504 14.5694 6.00011 13.0614C5.97511 7.6364 10.3376 3.1239 15.7626 2.9989C17.8622 2.94913 19.9242 3.56166 21.6561 4.74961C23.388 5.93756 24.7019 7.64064 25.4115 9.6173C26.1211 11.594 26.1904 13.7439 25.6094 15.7621C25.0285 17.7803 23.827 19.5644 22.1751 20.8614C21.8102 21.1435 21.5146 21.5052 21.311 21.919C21.1073 22.3328 21.001 22.7877 21.0001 23.2489V23.9989C21.0001 24.2641 20.8948 24.5185 20.7072 24.706C20.5197 24.8935 20.2653 24.9989 20.0001 24.9989H12.0001C11.7349 24.9989 11.4805 24.8935 11.293 24.706C11.1055 24.5185 11.0001 24.2641 11.0001 23.9989V23.2489C10.997 22.7912 10.8909 22.34 10.6896 21.9289C10.4884 21.5177 10.1972 21.1572 9.83761 20.8739V20.8739Z",stroke:e,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.01801 17.4102C7.68288 18.7637 8.6471 19.9482 9.83761 20.8739C10.1972 21.1572 10.4884 21.5177 10.6896 21.9289C10.8909 22.34 10.997 22.7912 11.0001 23.2489V23.9989C11.0001 24.2641 11.1055 24.5185 11.293 24.706C11.4805 24.8935 11.7349 24.9989 12.0001 24.9989H20.0001C20.2653 24.9989 20.5197 24.8935 20.7072 24.706C20.8948 24.5185 21.0001 24.2641 21.0001 23.9989V23.2489C21.001 22.7877 21.1073 22.3328 21.311 21.919C21.5146 21.5052 21.8102 21.1435 22.1751 20.8614C23.827 19.5644 25.0285 17.7803 25.6094 15.7621C26.1904 13.7439 26.1211 11.594 25.4115 9.6173C24.7019 7.64064 23.388 5.93756 21.6561 4.74961C19.9242 3.56166 17.8622 2.94913 15.7626 2.9989C10.3376 3.1239 5.97511 7.6364 6.00011 13.0614C6.00504 14.5694 6.35313 16.0566 7.01801 17.4102ZM17.1464 6.31013C16.7108 6.23629 16.2978 6.52956 16.2239 6.96517C16.1501 7.40078 16.4434 7.81378 16.879 7.88762C17.9379 8.06713 18.915 8.57088 19.6754 9.32936C20.4358 10.0878 20.9421 11.0636 21.1243 12.1221C21.1992 12.5575 21.613 12.8497 22.0484 12.7748C22.4838 12.6998 22.7761 12.2861 22.7011 11.8507C22.4627 10.4657 21.8003 9.18896 20.8053 8.19655C19.8104 7.20413 18.5319 6.545 17.1464 6.31013Z",fill:e})]})})}function gU({color:e}){return d.jsx(J,{sx:{height:"30px",width:"30px",display:"flex",alignItems:"center",justifyContent:"center"},children:d.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{d:"M8 17H14V30H8C7.73478 30 7.48043 29.8946 7.29289 29.7071C7.10536 29.5196 7 29.2652 7 29V18C7 17.7348 7.10536 17.4804 7.29289 17.2929C7.48043 17.1054 7.73478 17 8 17V17Z",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M14 17L19 7C20.0609 7 21.0783 7.42143 21.8284 8.17157C22.5786 8.92172 23 9.93913 23 11V14H30.7375C31.0211 13.9993 31.3015 14.0593 31.56 14.176C31.8185 14.2926 32.049 14.4632 32.2361 14.6764C32.4232 14.8895 32.5625 15.1402 32.6447 15.4116C32.7268 15.683 32.75 15.9689 32.7125 16.25L31.2125 28.25C31.1518 28.7317 30.918 29.1749 30.5546 29.4969C30.1912 29.8189 29.723 29.9977 29.2375 30H14",fill:e}),d.jsx("path",{d:"M14 17L19 7C20.0609 7 21.0783 7.42143 21.8284 8.17157C22.5786 8.92172 23 9.93913 23 11V14H30.7375C31.0211 13.9993 31.3015 14.0593 31.56 14.176C31.8185 14.2926 32.049 14.4632 32.2361 14.6764C32.4232 14.8895 32.5625 15.1402 32.6447 15.4116C32.7268 15.683 32.75 15.9689 32.7125 16.25L31.2125 28.25C31.1518 28.7317 30.918 29.1749 30.5546 29.4969C30.1912 29.8189 29.723 29.9977 29.2375 30H14",stroke:e,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]})})}function yU({color:e}){return d.jsx(J,{sx:{height:"30px",width:"30px",display:"flex",alignItems:"center",justifyContent:"center"},children:d.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{d:"M7 7V13.8875C7 18.85 10.975 22.9625 15.9375 23C17.1246 23.0082 18.3017 22.7815 19.4008 22.3329C20.5 21.8843 21.4995 21.2227 22.3419 20.3862C23.1843 19.5496 23.8528 18.5547 24.309 17.4586C24.7652 16.3626 25 15.1872 25 14V7C25 6.73478 24.8946 6.48043 24.7071 6.29289C24.5196 6.10536 24.2652 6 24 6H8C7.73478 6 7.48043 6.10536 7.29289 6.29289C7.10536 6.48043 7 6.73478 7 7Z",fill:e,stroke:e,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M12 28H20",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M16 23V28",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M24.7754 16H26.0004C27.0613 16 28.0787 15.5786 28.8288 14.8284C29.579 14.0783 30.0004 13.0609 30.0004 12V10C30.0004 9.73478 29.895 9.48043 29.7075 9.29289C29.52 9.10536 29.2656 9 29.0004 9H25.0004",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M7.25078 16H5.98828C4.92742 16 3.91 15.5786 3.15985 14.8284C2.40971 14.0783 1.98828 13.0609 1.98828 12V10C1.98828 9.73478 2.09364 9.48043 2.28117 9.29289C2.46871 9.10536 2.72306 9 2.98828 9H6.98828",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})}const vU=[{name:"star",icon:e=>d.jsx(fU,{width:50,color:e})},{name:"trophie",icon:e=>d.jsx(yU,{color:e})},{name:"flag",icon:e=>d.jsx(dU,{color:e})},{name:"heart",icon:e=>d.jsx(hU,{color:e})},{name:"like",icon:e=>d.jsx(gU,{color:e})},{name:"bubble",icon:e=>d.jsx(mU,{color:e})},{name:"hashtag",icon:e=>d.jsx(pU,{color:e})}],xU=({currentQuestion:e})=>{const t=rr(),{answers:n}=cn(),r=Le(),o=On()<650,{answer:i}=n.find(({questionId:a})=>a===e.id)??{},s=vU.find(({name:a})=>a===e.content.form);return d.jsxs(J,{children:[d.jsx(Re,{variant:"h5",color:r.palette.text.primary,children:e.title}),d.jsxs(J,{sx:{display:"inline-flex",alignItems:"center",gap:"20px",marginTop:"20px",flexDirection:"column",width:o?"100%":void 0},children:[d.jsx(J,{sx:{display:"inline-block",width:"100%"},children:d.jsx(BO,{value:Number(i||0),onChange:async(a,l)=>{try{await Qt({questionId:e.id,body:String(l)+" из "+e.content.steps,qid:t}),wn(e.id,String(l))}catch{Et("ответ не был засчитан")}},sx:{height:"50px",gap:o?void 0:"15px",justifyContent:o?"space-between":void 0,width:o?"100%":void 0},max:e.content.steps,icon:s==null?void 0:s.icon(r.palette.primary.main),emptyIcon:s==null?void 0:s.icon("#9A9AAF")})}),d.jsxs(J,{sx:{display:"flex",justifyContent:"space-between",gap:2,width:"100%"},children:[d.jsx(Re,{sx:{color:"#9A9AAF"},children:e.content.ratingNegativeDescription}),d.jsx(Re,{sx:{color:"#9A9AAF"},children:e.content.ratingPositiveDescription})]})]})]})};function CU(e,{color:t="#7E2AEA"}){return Le(),d.jsx(J,{...e,sx:{top:"25% !important",height:"24px",width:"24px",display:"flex",alignItems:"center",justifyContent:"center"},children:d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:d.jsx("path",{d:"M19.5 9L12 16.5L4.5 9",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})}const bU=({items:e,activeItemIndex:t=0,empty:n,onChange:r,sx:o,placeholder:i="",colorMain:s="#7E2AEA",colorPlaceholder:a="#9A9AAF"})=>{const[l,c]=x.useState(n?-1:t),u=Le();x.useEffect(()=>{c(t)},[t]);const f=p=>{const v=Number(p.target.value);if(v===l){c(-1),r==null||r("",-1);return}c(v),r==null||r(e[v],v)};return d.jsx(Rf,{fullWidth:!0,size:"small",sx:{width:"100%",height:"48px",...o},children:d.jsx(ix,{displayEmpty:!0,renderValue:p=>p?e[Number(p)]:d.jsx(Re,{sx:{color:a},children:i}),id:"display-select",variant:"outlined",value:l===-1?"":String(l),onChange:f,sx:{width:"100%",height:"48px",borderRadius:"8px","& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${s} !important`,height:"48px",borderRadius:"10px"}},MenuProps:{PaperProps:{sx:{mt:"8px",p:"4px",borderRadius:"8px",border:"1px solid #EEE4FC",boxShadow:"0px 8px 24px rgba(210, 208, 225, 0.4)"}},MenuListProps:{sx:{py:0,display:"flex",flexDirection:"column",gap:"8px","& .Mui-selected":{backgroundColor:u.palette.background.default,color:s}}}},inputProps:{sx:{color:s,display:"block",px:"9px",gap:"20px","& .MuiTypography-root":{overflow:"hidden",textOverflow:"ellipsis"}}},IconComponent:p=>d.jsx(CU,{...p}),children:e.map((p,v)=>d.jsx(G_,{value:v,sx:{display:"flex",alignItems:"center",gap:"20px",padding:"10px",borderRadius:"5px",color:a,whiteSpace:"normal"},children:p},p+v))})})},wU=({currentQuestion:e})=>{const t=Le(),n=rr(),{answers:r}=cn(),{answer:o}=r.find(({questionId:i})=>i===e.id)??{};return d.jsxs(J,{children:[d.jsx(Re,{variant:"h5",color:t.palette.text.primary,children:e.title}),d.jsx(J,{sx:{display:"flex",flexDirection:"column",width:"100%",marginTop:"20px"},children:d.jsx(bU,{placeholder:e.content.default,activeItemIndex:o?Number(o):-1,items:e.content.variants.map(({answer:i})=>i),colorMain:t.palette.primary.main,onChange:async(i,s)=>{if(s<0){uc(e.id);try{await Qt({questionId:e.id,body:"",qid:n})}catch{Et("ответ не был засчитан")}return}try{await Qt({questionId:e.id,body:String(e.content.variants[Number(s)].answer),qid:n}),wn(e.id,String(s))}catch{Et("ответ не был засчитан")}}})})]})},SU=({currentQuestion:e})=>{const t=Le(),n=rr(),{answers:r}=cn(),{answer:o}=r.find(({questionId:s})=>s===e.id)??{},i=Mu(async s=>{try{await Qt({questionId:e.id,body:s,qid:n})}catch{Et("ответ не был засчитан")}},400);return d.jsxs(J,{children:[d.jsx(Re,{variant:"h5",color:t.palette.text.primary,children:e.title}),d.jsx(J,{sx:{display:"flex",flexDirection:"column",width:"100%",marginTop:"20px"},children:d.jsx(Tu,{placeholder:e.content.placeholder,value:o||"",onChange:async({target:s})=>{wn(e.id,s.value),i(s.value)},sx:{"&:focus-visible":{borderColor:t.palette.primary.main}}})})]})},kU=Of,EU=({currentQuestion:e})=>{const t=Le(),{answers:n,ownVariants:r}=cn(),{answer:o}=n.find(({questionId:a})=>a===e.id)??{},i=r.find(a=>a.id===e.id),s=e.content.multi?N6:_f;return x.useEffect(()=>{i||lW(e.id,"")},[]),d.jsxs(J,{children:[d.jsx(Re,{variant:"h5",color:t.palette.text.primary,children:e.title}),d.jsxs(J,{sx:{display:"flex"},children:[d.jsx(s,{name:e.id.toString(),value:e.content.variants.findIndex(({id:a})=>o===a),sx:{display:"flex",flexWrap:"wrap",flexDirection:"row",justifyContent:"space-between",flexBasis:"100%",marginTop:"20px"},children:d.jsxs(J,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",width:"100%",gap:"20px"},children:[e.content.variants.map((a,l)=>d.jsx(u5,{currentQuestion:e,variant:a,answer:o,index:l},a.id)),e.content.own&&i&&d.jsx(u5,{own:!0,currentQuestion:e,variant:i.variant,answer:o,index:e.content.variants.length+2})]})}),e.content.back&&e.content.back!==" "&&d.jsx(J,{sx:{maxWidth:"400px",width:"100%",height:"300px"},children:d.jsx("img",{src:e.content.back,style:{width:"100%",height:"100%",objectFit:"cover"},alt:""},e.id)})]})]})},u5=({currentQuestion:e,variant:t,answer:n,index:r,own:o=!1})=>{const i=Le(),{settings:s}=or(),a=rr();return d.jsx(tc,{sx:{margin:"0",borderRadius:"12px",color:i.palette.text.primary,padding:"15px",border:"1px solid",borderColor:n===t.id?i.palette.primary.main:"#9A9AAF",backgroundColor:xn[s.cfg.theme].isLight?"white":i.palette.background.default,display:"flex",maxWidth:"685px",maxHeight:"85px",justifyContent:"space-between",width:"100%","&.MuiFormControl-root":{width:"100%"},"& .MuiFormControlLabel-label":{wordBreak:"break-word"}},value:r,labelPlacement:"start",control:e.content.multi?d.jsx(A6,{checked:!!(n!=null&&n.includes(t.id)),checkedIcon:d.jsx(Cd,{checked:!0,color:i.palette.primary.main}),icon:d.jsx(Cd,{})}):d.jsx(Df,{checkedIcon:d.jsx(sp,{color:i.palette.primary.main}),icon:d.jsx(ap,{})}),label:o?d.jsx(kU,{label:"Другое..."}):t.answer,onClick:async l=>{l.preventDefault();const c=e.content.variants[r].id;if(e.content.multi){const u=typeof n!="string"?n||[]:[];try{await Qt({questionId:e.id,body:u.includes(c)?u==null?void 0:u.filter(f=>f!==c):[...u,c],qid:a}),wn(e.id,u.includes(c)?u==null?void 0:u.filter(f=>f!==c):[...u,c])}catch{Et("ответ не был засчитан")}return}try{await Qt({questionId:e.id,body:e.content.variants[r].answer,qid:a}),wn(e.id,c)}catch{Et("ответ не был засчитан")}if(n===c){try{await Qt({questionId:e.id,body:"",qid:a})}catch{Et("ответ не был засчитан")}uc(e.id)}}},t.id)};function PU(){return d.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 -70 800 535",fill:"none",display:"block",preserveAspectRatio:"xMidYMax meet",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{fill:"#F0F0F0",d:"M555 47a47.003 47.003 0 0 1 29.014-43.422 46.999 46.999 0 0 1 61.408 61.408 46.997 46.997 0 0 1-76.656 15.248A47 47 0 0 1 555 47Z"}),d.jsx("path",{fill:"#F3F3F3",d:"M641.874 240.665c7.74-7.74 20.263-7.82 28.102-.181L1051 611.837 779.035 883.805 383.869 498.67l258.005-258.005Z"}),d.jsx("path",{fill:"#EDEDED",d:"M183.393 61.546c7.692-7.037 19.499-6.985 27.129.12l677.42 630.746-690.929 382.738L-397 592.531 183.393 61.546Z"})]})}const MU=({currentQuestion:e})=>{const{settings:t}=or(),{answers:n}=cn(),r=rr(),o=Le(),i=On()<650,{answer:s}=n.find(({questionId:l})=>l===e.id)??{},a=e.content.variants.find(({id:l})=>s===l);return d.jsxs(J,{children:[d.jsx(Re,{variant:"h5",color:o.palette.text.primary,children:e.title}),d.jsxs(J,{sx:{display:"flex",marginTop:"20px",flexDirection:i?"column-reverse":void 0,gap:i?"30px":void 0},children:[d.jsx(_f,{name:e.id,value:e.content.variants.findIndex(({id:l})=>s===l),sx:{display:"flex",flexWrap:"wrap",flexDirection:"row",justifyContent:"space-between",flexBasis:"100%"},children:d.jsx(J,{sx:{display:"flex",flexDirection:"column",width:"100%",gap:i?"20px":void 0},children:e.content.variants.map((l,c)=>d.jsx(tc,{sx:{marginBottom:"15px",borderRadius:"5px",padding:"15px",color:o.palette.text.primary,backgroundColor:xn[t.cfg.theme].isLight?"white":o.palette.background.default,border:"1px solid",borderColor:s===l.id?o.palette.primary.main:"#9A9AAF",display:"flex",margin:i?0:void 0,"& .MuiFormControlLabel-label":{wordBreak:"break-word"}},value:c,onClick:async u=>{u.preventDefault();try{await Qt({questionId:e.id,body:`${e.content.variants[c].answer} `,qid:r}),wn(e.id,e.content.variants[c].id)}catch{Et("ответ не был засчитан")}if(s===e.content.variants[c].id){try{await Qt({questionId:e.id,body:"",qid:r})}catch{Et("ответ не был засчитан")}uc(e.id)}},control:d.jsx(Df,{checkedIcon:d.jsx(sp,{color:o.palette.primary.main}),icon:d.jsx(ap,{})}),label:l.answer},l.id))})}),d.jsx(J,{sx:{maxWidth:"450px",width:"100%",height:"450px",border:"1px solid #9A9AAF",borderRadius:"12px",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#9A9AAF12",color:"#9A9AAF"},children:s?a!=null&&a.extendedText?d.jsx("img",{src:a==null?void 0:a.extendedText,style:{width:"100%",height:"100%",objectFit:"cover"},alt:""}):d.jsx(PU,{}):e.content.replText!==" "&&e.content.replText.length>0?e.content.replText:a!=null&&a.extendedText||i?"Выберите вариант ответа ниже":"Выберите вариант ответа слева"})]})]})},TU=e=>d.jsxs("svg",{...e,width:"750",height:"140",viewBox:"0 0 750 140",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("rect",{width:"750",height:"140",rx:"70",fill:"white"}),d.jsx("path",{d:"M129.645 88.55C126.272 88.55 123.467 87.9267 121.23 86.68C119.03 85.4333 117.362 83.6917 116.225 81.455C115.088 79.2183 114.465 76.615 114.355 73.645C114.318 72.1417 114.3 70.5283 114.3 68.805C114.3 67.0817 114.318 65.4317 114.355 63.855C114.465 60.885 115.088 58.2817 116.225 56.045C117.362 53.8083 119.03 52.0667 121.23 50.82C123.467 49.5733 126.272 48.95 129.645 48.95C132.175 48.95 134.393 49.2983 136.3 49.995C138.207 50.6917 139.783 51.6267 141.03 52.8C142.313 53.9733 143.285 55.2933 143.945 56.76C144.605 58.19 144.972 59.675 145.045 61.215C145.082 61.545 144.972 61.82 144.715 62.04C144.495 62.26 144.22 62.37 143.89 62.37H140.865C140.535 62.37 140.242 62.2783 139.985 62.095C139.765 61.9117 139.6 61.5817 139.49 61.105C138.867 58.245 137.693 56.2833 135.97 55.22C134.283 54.1567 132.157 53.625 129.59 53.625C126.657 53.625 124.328 54.4683 122.605 56.155C120.882 57.805 119.947 60.4633 119.8 64.13C119.69 67.1367 119.69 70.2167 119.8 73.37C119.947 77.0367 120.882 79.7133 122.605 81.4C124.328 83.05 126.657 83.875 129.59 83.875C132.157 83.875 134.283 83.3433 135.97 82.28C137.693 81.2167 138.867 79.255 139.49 76.395C139.6 75.9183 139.765 75.5883 139.985 75.405C140.242 75.2217 140.535 75.13 140.865 75.13H143.89C144.22 75.13 144.495 75.24 144.715 75.46C144.972 75.68 145.082 75.955 145.045 76.285C144.972 77.825 144.605 79.3283 143.945 80.795C143.285 82.225 142.313 83.5267 141.03 84.7C139.783 85.8733 138.207 86.8083 136.3 87.505C134.393 88.2017 132.175 88.55 129.645 88.55ZM150.051 94.05C149.684 94.05 149.373 93.9217 149.116 93.665C148.896 93.445 148.786 93.1517 148.786 92.785V84.865C148.786 84.4983 148.896 84.205 149.116 83.985C149.373 83.7283 149.684 83.6 150.051 83.6H150.326C151.316 83.5633 152.159 83.0133 152.856 81.95C153.553 80.85 154.084 79.145 154.451 76.835C154.818 74.4883 155.001 71.445 155.001 67.705V60.665C155.001 60.2983 155.111 60.005 155.331 59.785C155.588 59.5283 155.899 59.4 156.266 59.4H173.811C174.178 59.4 174.471 59.5283 174.691 59.785C174.948 60.005 175.076 60.2983 175.076 60.665V83.49H177.661C178.064 83.49 178.376 83.6183 178.596 83.875C178.816 84.095 178.926 84.3883 178.926 84.755V92.785C178.926 93.1517 178.816 93.445 178.596 93.665C178.376 93.9217 178.064 94.05 177.661 94.05H175.076C174.709 94.05 174.398 93.9217 174.141 93.665C173.921 93.445 173.811 93.1517 173.811 92.785V88H153.901V92.785C153.901 93.1517 153.773 93.445 153.516 93.665C153.296 93.9217 153.003 94.05 152.636 94.05H150.051ZM156.871 83.6L169.961 83.49V63.8H160.006V68.31C160.006 72.1967 159.731 75.3867 159.181 77.88C158.631 80.3367 157.861 82.2433 156.871 83.6ZM196.064 88.55C192.288 88.55 189.281 87.395 187.044 85.085C184.808 82.7383 183.579 79.5483 183.359 75.515C183.323 75.0383 183.304 74.4333 183.304 73.7C183.304 72.93 183.323 72.3067 183.359 71.83C183.506 69.2267 184.111 66.9533 185.174 65.01C186.238 63.03 187.686 61.5083 189.519 60.445C191.389 59.3817 193.571 58.85 196.064 58.85C198.851 58.85 201.179 59.4367 203.049 60.61C204.956 61.7833 206.404 63.4517 207.394 65.615C208.384 67.7783 208.879 70.3083 208.879 73.205V74.14C208.879 74.5433 208.751 74.855 208.494 75.075C208.274 75.295 207.981 75.405 207.614 75.405H188.584C188.584 75.4417 188.584 75.515 188.584 75.625C188.584 75.735 188.584 75.8267 188.584 75.9C188.658 77.4033 188.988 78.815 189.574 80.135C190.161 81.4183 191.004 82.4633 192.104 83.27C193.204 84.0767 194.524 84.48 196.064 84.48C197.384 84.48 198.484 84.2783 199.364 83.875C200.244 83.4717 200.959 83.0317 201.509 82.555C202.059 82.0417 202.426 81.6567 202.609 81.4C202.939 80.9233 203.196 80.6483 203.379 80.575C203.563 80.465 203.856 80.41 204.259 80.41H206.899C207.266 80.41 207.559 80.52 207.779 80.74C208.036 80.9233 208.146 81.1983 208.109 81.565C208.073 82.115 207.779 82.7933 207.229 83.6C206.679 84.37 205.891 85.14 204.864 85.91C203.838 86.68 202.591 87.3217 201.124 87.835C199.658 88.3117 197.971 88.55 196.064 88.55ZM188.584 71.61H203.654V71.445C203.654 69.795 203.343 68.3283 202.719 67.045C202.133 65.7617 201.271 64.7533 200.134 64.02C198.998 63.25 197.641 62.865 196.064 62.865C194.488 62.865 193.131 63.25 191.994 64.02C190.894 64.7533 190.051 65.7617 189.464 67.045C188.878 68.3283 188.584 69.795 188.584 71.445V71.61ZM214.081 88C213.714 88 213.402 87.8717 213.146 87.615C212.889 87.3583 212.761 87.0467 212.761 86.68V84.645C212.761 83.875 213.146 83.4717 213.916 83.435C215.052 83.3983 216.006 82.8667 216.776 81.84C217.546 80.7767 218.132 79.1083 218.536 76.835C218.939 74.525 219.141 71.4817 219.141 67.705V60.665C219.141 60.2983 219.251 60.005 219.471 59.785C219.727 59.5283 220.039 59.4 220.406 59.4H237.896C238.262 59.4 238.556 59.5283 238.776 59.785C239.032 60.005 239.161 60.2983 239.161 60.665V86.735C239.161 87.1017 239.032 87.4133 238.776 87.67C238.556 87.89 238.262 88 237.896 88H235.256C234.889 88 234.596 87.89 234.376 87.67C234.156 87.4133 234.046 87.1017 234.046 86.735V63.8H224.146V68.31C224.146 71.83 223.944 74.855 223.541 77.385C223.137 79.8783 222.514 81.9133 221.671 83.49C220.864 85.03 219.819 86.1667 218.536 86.9C217.289 87.6333 215.804 88 214.081 88ZM255.335 88.55C253.502 88.55 251.833 88.1833 250.33 87.45C248.827 86.7167 247.617 85.7267 246.7 84.48C245.783 83.2333 245.325 81.8217 245.325 80.245C245.325 77.715 246.352 75.6983 248.405 74.195C250.458 72.6917 253.135 71.7017 256.435 71.225L264.63 70.07V68.475C264.63 66.715 264.117 65.34 263.09 64.35C262.1 63.36 260.468 62.865 258.195 62.865C256.545 62.865 255.207 63.195 254.18 63.855C253.19 64.515 252.493 65.3583 252.09 66.385C251.87 66.935 251.485 67.21 250.935 67.21H248.46C248.057 67.21 247.745 67.1 247.525 66.88C247.342 66.6233 247.25 66.33 247.25 66C247.25 65.45 247.452 64.7717 247.855 63.965C248.295 63.1583 248.955 62.37 249.835 61.6C250.715 60.83 251.833 60.1883 253.19 59.675C254.583 59.125 256.27 58.85 258.25 58.85C260.45 58.85 262.302 59.1433 263.805 59.73C265.308 60.28 266.482 61.0317 267.325 61.985C268.205 62.9383 268.828 64.02 269.195 65.23C269.598 66.44 269.8 67.6683 269.8 68.915V86.735C269.8 87.1017 269.672 87.4133 269.415 87.67C269.195 87.89 268.902 88 268.535 88H266.005C265.602 88 265.29 87.89 265.07 87.67C264.85 87.4133 264.74 87.1017 264.74 86.735V84.37C264.263 85.03 263.622 85.69 262.815 86.35C262.008 86.9733 261 87.505 259.79 87.945C258.58 88.3483 257.095 88.55 255.335 88.55ZM256.49 84.425C257.993 84.425 259.368 84.1133 260.615 83.49C261.862 82.83 262.833 81.8217 263.53 80.465C264.263 79.1083 264.63 77.4033 264.63 75.35V73.81L258.25 74.745C255.647 75.1117 253.685 75.735 252.365 76.615C251.045 77.4583 250.385 78.54 250.385 79.86C250.385 80.8867 250.678 81.7483 251.265 82.445C251.888 83.105 252.658 83.6 253.575 83.93C254.528 84.26 255.5 84.425 256.49 84.425ZM278.972 88C278.605 88 278.293 87.89 278.037 87.67C277.817 87.4133 277.707 87.1017 277.707 86.735V60.665C277.707 60.2983 277.817 60.005 278.037 59.785C278.293 59.5283 278.605 59.4 278.972 59.4H281.612C281.978 59.4 282.272 59.5283 282.492 59.785C282.712 60.005 282.822 60.2983 282.822 60.665V71.225H297.837V60.665C297.837 60.2983 297.947 60.005 298.167 59.785C298.423 59.5283 298.735 59.4 299.102 59.4H301.687C302.053 59.4 302.347 59.5283 302.567 59.785C302.823 60.005 302.952 60.2983 302.952 60.665V86.735C302.952 87.1017 302.823 87.4133 302.567 87.67C302.347 87.89 302.053 88 301.687 88H299.102C298.735 88 298.423 87.89 298.167 87.67C297.947 87.4133 297.837 87.1017 297.837 86.735V75.625H282.822V86.735C282.822 87.1017 282.712 87.4133 282.492 87.67C282.272 87.89 281.978 88 281.612 88H278.972ZM322.937 88.55C320.151 88.55 317.822 88.0183 315.952 86.955C314.082 85.8917 312.652 84.425 311.662 82.555C310.672 80.6483 310.122 78.485 310.012 76.065C309.976 75.4417 309.957 74.6533 309.957 73.7C309.957 72.71 309.976 71.9217 310.012 71.335C310.122 68.8783 310.672 66.715 311.662 64.845C312.689 62.975 314.137 61.5083 316.007 60.445C317.877 59.3817 320.187 58.85 322.937 58.85C325.687 58.85 327.997 59.3817 329.867 60.445C331.737 61.5083 333.167 62.975 334.157 64.845C335.184 66.715 335.752 68.8783 335.862 71.335C335.899 71.9217 335.917 72.71 335.917 73.7C335.917 74.6533 335.899 75.4417 335.862 76.065C335.752 78.485 335.202 80.6483 334.212 82.555C333.222 84.425 331.792 85.8917 329.922 86.955C328.052 88.0183 325.724 88.55 322.937 88.55ZM322.937 84.315C325.211 84.315 327.026 83.6 328.382 82.17C329.739 80.7033 330.472 78.5767 330.582 75.79C330.619 75.24 330.637 74.5433 330.637 73.7C330.637 72.8567 330.619 72.16 330.582 71.61C330.472 68.8233 329.739 66.715 328.382 65.285C327.026 63.8183 325.211 63.085 322.937 63.085C320.664 63.085 318.831 63.8183 317.437 65.285C316.081 66.715 315.366 68.8233 315.292 71.61C315.256 72.16 315.237 72.8567 315.237 73.7C315.237 74.5433 315.256 75.24 315.292 75.79C315.366 78.5767 316.081 80.7033 317.437 82.17C318.831 83.6 320.664 84.315 322.937 84.315ZM357.551 88C357.184 88 356.872 87.89 356.616 87.67C356.396 87.4133 356.286 87.1017 356.286 86.735V60.665C356.286 60.2983 356.396 60.005 356.616 59.785C356.872 59.5283 357.184 59.4 357.551 59.4H360.191C360.557 59.4 360.851 59.5283 361.071 59.785C361.291 60.005 361.401 60.2983 361.401 60.665V71.225H376.416V60.665C376.416 60.2983 376.526 60.005 376.746 59.785C377.002 59.5283 377.314 59.4 377.681 59.4H380.266C380.632 59.4 380.926 59.5283 381.146 59.785C381.402 60.005 381.531 60.2983 381.531 60.665V86.735C381.531 87.1017 381.402 87.4133 381.146 87.67C380.926 87.89 380.632 88 380.266 88H377.681C377.314 88 377.002 87.89 376.746 87.67C376.526 87.4133 376.416 87.1017 376.416 86.735V75.625H361.401V86.735C361.401 87.1017 361.291 87.4133 361.071 87.67C360.851 87.89 360.557 88 360.191 88H357.551ZM397.776 88.55C395.943 88.55 394.275 88.1833 392.771 87.45C391.268 86.7167 390.058 85.7267 389.141 84.48C388.225 83.2333 387.766 81.8217 387.766 80.245C387.766 77.715 388.793 75.6983 390.846 74.195C392.9 72.6917 395.576 71.7017 398.876 71.225L407.071 70.07V68.475C407.071 66.715 406.558 65.34 405.531 64.35C404.541 63.36 402.91 62.865 400.636 62.865C398.986 62.865 397.648 63.195 396.621 63.855C395.631 64.515 394.935 65.3583 394.531 66.385C394.311 66.935 393.926 67.21 393.376 67.21H390.901C390.498 67.21 390.186 67.1 389.966 66.88C389.783 66.6233 389.691 66.33 389.691 66C389.691 65.45 389.893 64.7717 390.296 63.965C390.736 63.1583 391.396 62.37 392.276 61.6C393.156 60.83 394.275 60.1883 395.631 59.675C397.025 59.125 398.711 58.85 400.691 58.85C402.891 58.85 404.743 59.1433 406.246 59.73C407.75 60.28 408.923 61.0317 409.766 61.985C410.646 62.9383 411.27 64.02 411.636 65.23C412.04 66.44 412.241 67.6683 412.241 68.915V86.735C412.241 87.1017 412.113 87.4133 411.856 87.67C411.636 87.89 411.343 88 410.976 88H408.446C408.043 88 407.731 87.89 407.511 87.67C407.291 87.4133 407.181 87.1017 407.181 86.735V84.37C406.705 85.03 406.063 85.69 405.256 86.35C404.45 86.9733 403.441 87.505 402.231 87.945C401.021 88.3483 399.536 88.55 397.776 88.55ZM398.931 84.425C400.435 84.425 401.81 84.1133 403.056 83.49C404.303 82.83 405.275 81.8217 405.971 80.465C406.705 79.1083 407.071 77.4033 407.071 75.35V73.81L400.691 74.745C398.088 75.1117 396.126 75.735 394.806 76.615C393.486 77.4583 392.826 78.54 392.826 79.86C392.826 80.8867 393.12 81.7483 393.706 82.445C394.33 83.105 395.1 83.6 396.016 83.93C396.97 84.26 397.941 84.425 398.931 84.425Z",fill:"#4D4D4D"}),d.jsxs("g",{clipPath:"url(#clip0_4819_14395)",children:[d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M461.886 33.8256C453.446 32.8479 447.622 41.9149 442.205 48.4691C437.452 54.221 433.912 60.7178 433.501 68.1717C433.064 76.1021 434.502 84.3611 439.905 90.1773C445.47 96.1684 453.806 99.9538 461.886 98.7299C469.296 97.6077 472.574 89.4712 478.091 84.3936C484.08 78.8802 495.239 76.3159 495.084 68.1717C494.929 60.0151 483.152 58.4185 477.485 52.5557C471.616 46.483 470.272 34.7969 461.886 33.8256Z",fill:"#7E2AEA"}),d.jsx("circle",{cx:"482.884",cy:"95.6408",r:"4.65763",fill:"#7E2AEA"}),d.jsx("circle",{cx:"478.227",cy:"43.9516",r:"1.77434",fill:"#7E2AEA"}),d.jsx("path",{d:"M506.606 66.259C506.089 61.2292 503.722 56.5706 499.966 53.1862C496.209 49.8018 491.33 47.9327 486.273 47.9411C485.555 47.9414 484.838 47.979 484.124 48.0536C479.096 48.5815 474.443 50.9524 471.06 54.7089C467.677 58.4654 465.805 63.3414 465.805 68.3966V68.3966V97.6187H474.571V85.1993C477.999 87.5839 482.076 88.8589 486.251 88.8521C486.969 88.8518 487.687 88.8143 488.401 88.7396C491.072 88.4588 493.662 87.6546 496.023 86.3728C498.384 85.091 500.469 83.3568 502.16 81.2691C503.85 79.1814 505.113 76.7812 505.876 74.2056C506.639 71.6299 506.887 68.9291 506.606 66.2575V66.259ZM495.347 75.7562C494.384 76.9524 493.193 77.9458 491.843 78.6786C490.494 79.4115 489.012 79.8693 487.485 80.0255C487.075 80.0681 486.663 80.0895 486.251 80.0898C483.6 80.0874 481.028 79.1837 478.958 77.5271C476.889 75.8705 475.443 73.5593 474.86 70.9731C474.276 68.3868 474.59 65.679 475.748 63.2942C476.906 60.9093 478.841 58.9891 481.234 57.8487C483.628 56.7083 486.338 56.4155 488.92 57.0183C491.502 57.621 493.802 59.0836 495.443 61.166C497.084 63.2483 497.968 65.8267 497.951 68.4779C497.933 71.1291 497.015 73.6956 495.347 75.7562Z",fill:"#151515"}),d.jsx("path",{d:"M529.478 47.9411C528.76 47.9414 528.043 47.979 527.329 48.0536C522.119 48.6022 517.319 51.1284 513.917 55.1114C510.515 59.0944 508.771 64.2307 509.043 69.4618C509.316 74.6928 511.585 79.6198 515.383 83.2274C519.181 86.835 524.218 88.8482 529.456 88.8521C530.174 88.8518 530.891 88.8143 531.605 88.7396C535.361 88.3397 538.934 86.9109 541.93 84.6105C544.926 82.3101 547.229 79.2275 548.585 75.7021H538.592L538.551 75.7532C537.272 77.3353 535.601 78.5558 533.704 79.294C531.808 80.0322 529.752 80.2626 527.739 79.9622C525.726 79.6619 523.827 78.8412 522.229 77.5816C520.63 76.3219 519.389 74.6667 518.626 72.7799H549.456C550.105 69.7933 550.078 66.6993 549.376 63.7246C548.674 60.75 547.316 57.97 545.4 55.5884C543.485 53.2068 541.061 51.284 538.306 49.9607C535.551 48.6375 532.534 47.9474 529.478 47.9411V47.9411ZM518.626 64.0133C519.424 62.0489 520.741 60.338 522.434 59.0627C524.128 57.7875 526.136 56.9958 528.245 56.772C528.655 56.7295 529.066 56.708 529.478 56.7077C531.807 56.7038 534.083 57.3977 536.013 58.6999C537.943 60.0021 539.439 61.8528 540.308 64.0133H518.626Z",fill:"#151515"}),d.jsx("path",{d:"M571.115 47.9411C567.765 47.9358 564.478 48.8571 561.618 50.6033V47.9411H552.852V88.8521H561.618V66.2049C561.618 63.6861 562.619 61.2705 564.4 59.4894C566.181 57.7084 568.597 56.7078 571.115 56.7078C573.634 56.7078 576.05 57.7084 577.831 59.4894C579.612 61.2705 580.613 63.6861 580.613 66.2049V88.8521H589.379V66.2049C589.379 61.3611 587.455 56.7156 584.03 53.2905C580.605 49.8653 575.959 47.9411 571.115 47.9411Z",fill:"#151515"}),d.jsx("path",{d:"M633.214 71.0105V47.9411H624.447V51.5939C621.02 49.2083 616.943 47.9332 612.767 47.9411C612.049 47.9415 611.332 47.979 610.618 48.0536C605.408 48.6023 600.608 51.1284 597.206 55.1114C593.804 59.0944 592.06 64.2308 592.332 69.4618C592.605 74.6928 594.874 79.6199 598.672 83.2275C602.47 86.8351 607.507 88.8483 612.745 88.8521C613.463 88.8518 614.18 88.8143 614.894 88.7396C619.99 88.2181 624.7 85.7909 628.081 81.944C630.708 85.459 634.513 87.9111 638.8 88.8521V79.6617C637.136 78.9083 635.725 77.6919 634.734 76.1577C633.744 74.6236 633.216 72.8367 633.214 71.0105ZM621.841 75.7533C620.877 76.9493 619.687 77.9424 618.337 78.6753C616.987 79.4081 615.506 79.866 613.978 80.0226C613.569 80.0652 613.157 80.0866 612.745 80.0869C609.75 80.0868 606.869 78.9369 604.697 76.8746C602.525 74.8123 601.228 71.9949 601.073 69.0038C600.917 66.0127 601.916 63.0761 603.863 60.8001C605.81 58.524 608.556 57.0822 611.535 56.7721C611.945 56.7295 612.356 56.708 612.767 56.7078C614.974 56.7097 617.135 57.3363 619.001 58.5151C620.867 59.694 622.36 61.3769 623.31 63.3693C624.259 65.3617 624.625 67.582 624.365 69.7736C624.105 71.9651 623.23 74.0383 621.841 75.7533Z",fill:"#151515"}),d.jsx("path",{d:"M600.484 110.378V105.155C600.125 105.617 599.679 105.986 599.144 106.26C598.609 106.527 598.032 106.661 597.413 106.661C596.232 106.661 595.261 106.217 594.498 105.331C593.598 104.294 593.148 102.888 593.148 101.115C593.148 99.4454 593.569 98.1445 594.41 97.212C595.257 96.273 596.307 95.8035 597.559 95.8035C598.251 95.8035 598.847 95.9502 599.349 96.2437C599.858 96.5371 600.308 96.9805 600.699 97.5739V96.0383H603.233V110.378H600.484ZM600.572 101.105C600.572 100.042 600.354 99.2531 599.917 98.7379C599.486 98.2163 598.945 97.9554 598.293 97.9554C597.628 97.9554 597.07 98.2195 596.62 98.7477C596.177 99.2759 595.955 100.114 595.955 101.262C595.955 102.403 596.17 103.228 596.601 103.736C597.031 104.238 597.563 104.489 598.195 104.489C598.828 104.489 599.382 104.206 599.858 103.638C600.334 103.071 600.572 102.227 600.572 101.105ZM612.779 106.426V104.871C612.401 105.425 611.902 105.862 611.283 106.182C610.67 106.501 610.021 106.661 609.336 106.661C608.638 106.661 608.012 106.508 607.458 106.201C606.904 105.895 606.503 105.464 606.255 104.91C606.007 104.356 605.883 103.589 605.883 102.611V96.0383H608.632V100.812C608.632 102.272 608.681 103.169 608.779 103.501C608.883 103.828 609.069 104.088 609.336 104.284C609.603 104.473 609.943 104.568 610.353 104.568C610.823 104.568 611.243 104.44 611.615 104.186C611.987 103.925 612.241 103.606 612.378 103.228C612.515 102.843 612.584 101.907 612.584 100.42V96.0383H615.332V106.426H612.779ZM618.188 94.6297V92.0866H620.937V94.6297H618.188ZM618.188 106.426V96.0383H620.937V106.426H618.188ZM622.658 106.426V104.284L626.551 99.8139C627.19 99.0835 627.663 98.5651 627.97 98.2586C627.65 98.2782 627.229 98.2912 626.708 98.2978L623.04 98.3173V96.0383H631.628V97.9848L627.657 102.562L626.258 104.079C627.021 104.033 627.494 104.01 627.676 104.01H631.931V106.426H622.658Z",fill:"black"})]}),d.jsx("defs",{children:d.jsx("clipPath",{id:"clip0_4819_14395",children:d.jsx("rect",{width:"207",height:"80.129",fill:"white",transform:"translate(432 30)"})})})]}),RU=e=>d.jsxs("svg",{...e,width:"750",height:"140",viewBox:"0 0 750 140",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("rect",{width:"750",height:"140",rx:"70",fill:"#444757"}),d.jsx("path",{d:"M129.645 88.55C126.272 88.55 123.467 87.9267 121.23 86.68C119.03 85.4333 117.362 83.6917 116.225 81.455C115.088 79.2183 114.465 76.615 114.355 73.645C114.318 72.1417 114.3 70.5283 114.3 68.805C114.3 67.0817 114.318 65.4317 114.355 63.855C114.465 60.885 115.088 58.2817 116.225 56.045C117.362 53.8083 119.03 52.0667 121.23 50.82C123.467 49.5733 126.272 48.95 129.645 48.95C132.175 48.95 134.393 49.2983 136.3 49.995C138.207 50.6917 139.783 51.6267 141.03 52.8C142.313 53.9733 143.285 55.2933 143.945 56.76C144.605 58.19 144.972 59.675 145.045 61.215C145.082 61.545 144.972 61.82 144.715 62.04C144.495 62.26 144.22 62.37 143.89 62.37H140.865C140.535 62.37 140.242 62.2783 139.985 62.095C139.765 61.9117 139.6 61.5817 139.49 61.105C138.867 58.245 137.693 56.2833 135.97 55.22C134.283 54.1567 132.157 53.625 129.59 53.625C126.657 53.625 124.328 54.4683 122.605 56.155C120.882 57.805 119.947 60.4633 119.8 64.13C119.69 67.1367 119.69 70.2167 119.8 73.37C119.947 77.0367 120.882 79.7133 122.605 81.4C124.328 83.05 126.657 83.875 129.59 83.875C132.157 83.875 134.283 83.3433 135.97 82.28C137.693 81.2167 138.867 79.255 139.49 76.395C139.6 75.9183 139.765 75.5883 139.985 75.405C140.242 75.2217 140.535 75.13 140.865 75.13H143.89C144.22 75.13 144.495 75.24 144.715 75.46C144.972 75.68 145.082 75.955 145.045 76.285C144.972 77.825 144.605 79.3283 143.945 80.795C143.285 82.225 142.313 83.5267 141.03 84.7C139.783 85.8733 138.207 86.8083 136.3 87.505C134.393 88.2017 132.175 88.55 129.645 88.55ZM150.051 94.05C149.684 94.05 149.373 93.9217 149.116 93.665C148.896 93.445 148.786 93.1517 148.786 92.785V84.865C148.786 84.4983 148.896 84.205 149.116 83.985C149.373 83.7283 149.684 83.6 150.051 83.6H150.326C151.316 83.5633 152.159 83.0133 152.856 81.95C153.553 80.85 154.084 79.145 154.451 76.835C154.818 74.4883 155.001 71.445 155.001 67.705V60.665C155.001 60.2983 155.111 60.005 155.331 59.785C155.588 59.5283 155.899 59.4 156.266 59.4H173.811C174.178 59.4 174.471 59.5283 174.691 59.785C174.948 60.005 175.076 60.2983 175.076 60.665V83.49H177.661C178.064 83.49 178.376 83.6183 178.596 83.875C178.816 84.095 178.926 84.3883 178.926 84.755V92.785C178.926 93.1517 178.816 93.445 178.596 93.665C178.376 93.9217 178.064 94.05 177.661 94.05H175.076C174.709 94.05 174.398 93.9217 174.141 93.665C173.921 93.445 173.811 93.1517 173.811 92.785V88H153.901V92.785C153.901 93.1517 153.773 93.445 153.516 93.665C153.296 93.9217 153.003 94.05 152.636 94.05H150.051ZM156.871 83.6L169.961 83.49V63.8H160.006V68.31C160.006 72.1967 159.731 75.3867 159.181 77.88C158.631 80.3367 157.861 82.2433 156.871 83.6ZM196.064 88.55C192.288 88.55 189.281 87.395 187.044 85.085C184.808 82.7383 183.579 79.5483 183.359 75.515C183.323 75.0383 183.304 74.4333 183.304 73.7C183.304 72.93 183.323 72.3067 183.359 71.83C183.506 69.2267 184.111 66.9533 185.174 65.01C186.238 63.03 187.686 61.5083 189.519 60.445C191.389 59.3817 193.571 58.85 196.064 58.85C198.851 58.85 201.179 59.4367 203.049 60.61C204.956 61.7833 206.404 63.4517 207.394 65.615C208.384 67.7783 208.879 70.3083 208.879 73.205V74.14C208.879 74.5433 208.751 74.855 208.494 75.075C208.274 75.295 207.981 75.405 207.614 75.405H188.584C188.584 75.4417 188.584 75.515 188.584 75.625C188.584 75.735 188.584 75.8267 188.584 75.9C188.658 77.4033 188.988 78.815 189.574 80.135C190.161 81.4183 191.004 82.4633 192.104 83.27C193.204 84.0767 194.524 84.48 196.064 84.48C197.384 84.48 198.484 84.2783 199.364 83.875C200.244 83.4717 200.959 83.0317 201.509 82.555C202.059 82.0417 202.426 81.6567 202.609 81.4C202.939 80.9233 203.196 80.6483 203.379 80.575C203.563 80.465 203.856 80.41 204.259 80.41H206.899C207.266 80.41 207.559 80.52 207.779 80.74C208.036 80.9233 208.146 81.1983 208.109 81.565C208.073 82.115 207.779 82.7933 207.229 83.6C206.679 84.37 205.891 85.14 204.864 85.91C203.838 86.68 202.591 87.3217 201.124 87.835C199.658 88.3117 197.971 88.55 196.064 88.55ZM188.584 71.61H203.654V71.445C203.654 69.795 203.343 68.3283 202.719 67.045C202.133 65.7617 201.271 64.7533 200.134 64.02C198.998 63.25 197.641 62.865 196.064 62.865C194.488 62.865 193.131 63.25 191.994 64.02C190.894 64.7533 190.051 65.7617 189.464 67.045C188.878 68.3283 188.584 69.795 188.584 71.445V71.61ZM214.081 88C213.714 88 213.402 87.8717 213.146 87.615C212.889 87.3583 212.761 87.0467 212.761 86.68V84.645C212.761 83.875 213.146 83.4717 213.916 83.435C215.052 83.3983 216.006 82.8667 216.776 81.84C217.546 80.7767 218.132 79.1083 218.536 76.835C218.939 74.525 219.141 71.4817 219.141 67.705V60.665C219.141 60.2983 219.251 60.005 219.471 59.785C219.727 59.5283 220.039 59.4 220.406 59.4H237.896C238.262 59.4 238.556 59.5283 238.776 59.785C239.032 60.005 239.161 60.2983 239.161 60.665V86.735C239.161 87.1017 239.032 87.4133 238.776 87.67C238.556 87.89 238.262 88 237.896 88H235.256C234.889 88 234.596 87.89 234.376 87.67C234.156 87.4133 234.046 87.1017 234.046 86.735V63.8H224.146V68.31C224.146 71.83 223.944 74.855 223.541 77.385C223.137 79.8783 222.514 81.9133 221.671 83.49C220.864 85.03 219.819 86.1667 218.536 86.9C217.289 87.6333 215.804 88 214.081 88ZM255.335 88.55C253.502 88.55 251.833 88.1833 250.33 87.45C248.827 86.7167 247.617 85.7267 246.7 84.48C245.783 83.2333 245.325 81.8217 245.325 80.245C245.325 77.715 246.352 75.6983 248.405 74.195C250.458 72.6917 253.135 71.7017 256.435 71.225L264.63 70.07V68.475C264.63 66.715 264.117 65.34 263.09 64.35C262.1 63.36 260.468 62.865 258.195 62.865C256.545 62.865 255.207 63.195 254.18 63.855C253.19 64.515 252.493 65.3583 252.09 66.385C251.87 66.935 251.485 67.21 250.935 67.21H248.46C248.057 67.21 247.745 67.1 247.525 66.88C247.342 66.6233 247.25 66.33 247.25 66C247.25 65.45 247.452 64.7717 247.855 63.965C248.295 63.1583 248.955 62.37 249.835 61.6C250.715 60.83 251.833 60.1883 253.19 59.675C254.583 59.125 256.27 58.85 258.25 58.85C260.45 58.85 262.302 59.1433 263.805 59.73C265.308 60.28 266.482 61.0317 267.325 61.985C268.205 62.9383 268.828 64.02 269.195 65.23C269.598 66.44 269.8 67.6683 269.8 68.915V86.735C269.8 87.1017 269.672 87.4133 269.415 87.67C269.195 87.89 268.902 88 268.535 88H266.005C265.602 88 265.29 87.89 265.07 87.67C264.85 87.4133 264.74 87.1017 264.74 86.735V84.37C264.263 85.03 263.622 85.69 262.815 86.35C262.008 86.9733 261 87.505 259.79 87.945C258.58 88.3483 257.095 88.55 255.335 88.55ZM256.49 84.425C257.993 84.425 259.368 84.1133 260.615 83.49C261.862 82.83 262.833 81.8217 263.53 80.465C264.263 79.1083 264.63 77.4033 264.63 75.35V73.81L258.25 74.745C255.647 75.1117 253.685 75.735 252.365 76.615C251.045 77.4583 250.385 78.54 250.385 79.86C250.385 80.8867 250.678 81.7483 251.265 82.445C251.888 83.105 252.658 83.6 253.575 83.93C254.528 84.26 255.5 84.425 256.49 84.425ZM278.972 88C278.605 88 278.293 87.89 278.037 87.67C277.817 87.4133 277.707 87.1017 277.707 86.735V60.665C277.707 60.2983 277.817 60.005 278.037 59.785C278.293 59.5283 278.605 59.4 278.972 59.4H281.612C281.978 59.4 282.272 59.5283 282.492 59.785C282.712 60.005 282.822 60.2983 282.822 60.665V71.225H297.837V60.665C297.837 60.2983 297.947 60.005 298.167 59.785C298.423 59.5283 298.735 59.4 299.102 59.4H301.687C302.053 59.4 302.347 59.5283 302.567 59.785C302.823 60.005 302.952 60.2983 302.952 60.665V86.735C302.952 87.1017 302.823 87.4133 302.567 87.67C302.347 87.89 302.053 88 301.687 88H299.102C298.735 88 298.423 87.89 298.167 87.67C297.947 87.4133 297.837 87.1017 297.837 86.735V75.625H282.822V86.735C282.822 87.1017 282.712 87.4133 282.492 87.67C282.272 87.89 281.978 88 281.612 88H278.972ZM322.937 88.55C320.151 88.55 317.822 88.0183 315.952 86.955C314.082 85.8917 312.652 84.425 311.662 82.555C310.672 80.6483 310.122 78.485 310.012 76.065C309.976 75.4417 309.957 74.6533 309.957 73.7C309.957 72.71 309.976 71.9217 310.012 71.335C310.122 68.8783 310.672 66.715 311.662 64.845C312.689 62.975 314.137 61.5083 316.007 60.445C317.877 59.3817 320.187 58.85 322.937 58.85C325.687 58.85 327.997 59.3817 329.867 60.445C331.737 61.5083 333.167 62.975 334.157 64.845C335.184 66.715 335.752 68.8783 335.862 71.335C335.899 71.9217 335.917 72.71 335.917 73.7C335.917 74.6533 335.899 75.4417 335.862 76.065C335.752 78.485 335.202 80.6483 334.212 82.555C333.222 84.425 331.792 85.8917 329.922 86.955C328.052 88.0183 325.724 88.55 322.937 88.55ZM322.937 84.315C325.211 84.315 327.026 83.6 328.382 82.17C329.739 80.7033 330.472 78.5767 330.582 75.79C330.619 75.24 330.637 74.5433 330.637 73.7C330.637 72.8567 330.619 72.16 330.582 71.61C330.472 68.8233 329.739 66.715 328.382 65.285C327.026 63.8183 325.211 63.085 322.937 63.085C320.664 63.085 318.831 63.8183 317.437 65.285C316.081 66.715 315.366 68.8233 315.292 71.61C315.256 72.16 315.237 72.8567 315.237 73.7C315.237 74.5433 315.256 75.24 315.292 75.79C315.366 78.5767 316.081 80.7033 317.437 82.17C318.831 83.6 320.664 84.315 322.937 84.315ZM357.551 88C357.184 88 356.872 87.89 356.616 87.67C356.396 87.4133 356.286 87.1017 356.286 86.735V60.665C356.286 60.2983 356.396 60.005 356.616 59.785C356.872 59.5283 357.184 59.4 357.551 59.4H360.191C360.557 59.4 360.851 59.5283 361.071 59.785C361.291 60.005 361.401 60.2983 361.401 60.665V71.225H376.416V60.665C376.416 60.2983 376.526 60.005 376.746 59.785C377.002 59.5283 377.314 59.4 377.681 59.4H380.266C380.632 59.4 380.926 59.5283 381.146 59.785C381.402 60.005 381.531 60.2983 381.531 60.665V86.735C381.531 87.1017 381.402 87.4133 381.146 87.67C380.926 87.89 380.632 88 380.266 88H377.681C377.314 88 377.002 87.89 376.746 87.67C376.526 87.4133 376.416 87.1017 376.416 86.735V75.625H361.401V86.735C361.401 87.1017 361.291 87.4133 361.071 87.67C360.851 87.89 360.557 88 360.191 88H357.551ZM397.776 88.55C395.943 88.55 394.275 88.1833 392.771 87.45C391.268 86.7167 390.058 85.7267 389.141 84.48C388.225 83.2333 387.766 81.8217 387.766 80.245C387.766 77.715 388.793 75.6983 390.846 74.195C392.9 72.6917 395.576 71.7017 398.876 71.225L407.071 70.07V68.475C407.071 66.715 406.558 65.34 405.531 64.35C404.541 63.36 402.91 62.865 400.636 62.865C398.986 62.865 397.648 63.195 396.621 63.855C395.631 64.515 394.935 65.3583 394.531 66.385C394.311 66.935 393.926 67.21 393.376 67.21H390.901C390.498 67.21 390.186 67.1 389.966 66.88C389.783 66.6233 389.691 66.33 389.691 66C389.691 65.45 389.893 64.7717 390.296 63.965C390.736 63.1583 391.396 62.37 392.276 61.6C393.156 60.83 394.275 60.1883 395.631 59.675C397.025 59.125 398.711 58.85 400.691 58.85C402.891 58.85 404.743 59.1433 406.246 59.73C407.75 60.28 408.923 61.0317 409.766 61.985C410.646 62.9383 411.27 64.02 411.636 65.23C412.04 66.44 412.241 67.6683 412.241 68.915V86.735C412.241 87.1017 412.113 87.4133 411.856 87.67C411.636 87.89 411.343 88 410.976 88H408.446C408.043 88 407.731 87.89 407.511 87.67C407.291 87.4133 407.181 87.1017 407.181 86.735V84.37C406.705 85.03 406.063 85.69 405.256 86.35C404.45 86.9733 403.441 87.505 402.231 87.945C401.021 88.3483 399.536 88.55 397.776 88.55ZM398.931 84.425C400.435 84.425 401.81 84.1133 403.056 83.49C404.303 82.83 405.275 81.8217 405.971 80.465C406.705 79.1083 407.071 77.4033 407.071 75.35V73.81L400.691 74.745C398.088 75.1117 396.126 75.735 394.806 76.615C393.486 77.4583 392.826 78.54 392.826 79.86C392.826 80.8867 393.12 81.7483 393.706 82.445C394.33 83.105 395.1 83.6 396.016 83.93C396.97 84.26 397.941 84.425 398.931 84.425Z",fill:"#F2F3F7"}),d.jsxs("g",{clipPath:"url(#clip0_4819_14374)",children:[d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M461.886 33.8256C453.446 32.8478 447.622 41.9149 442.205 48.4691C437.452 54.2209 433.912 60.7178 433.501 68.1717C433.064 76.1021 434.502 84.3611 439.905 90.1773C445.47 96.1684 453.806 99.9538 461.886 98.7299C469.296 97.6077 472.574 89.4712 478.091 84.3936C484.08 78.8802 495.239 76.3159 495.084 68.1717C494.929 60.0151 483.152 58.4185 477.485 52.5557C471.616 46.483 470.272 34.7969 461.886 33.8256Z",fill:"#7E2AEA"}),d.jsx("circle",{cx:"482.884",cy:"95.6408",r:"4.65763",fill:"#7E2AEA"}),d.jsx("circle",{cx:"478.227",cy:"43.9516",r:"1.77434",fill:"#7E2AEA"}),d.jsx("path",{d:"M506.606 66.259C506.089 61.2292 503.722 56.5706 499.966 53.1862C496.209 49.8018 491.33 47.9327 486.273 47.9411C485.555 47.9415 484.838 47.979 484.124 48.0536C479.096 48.5815 474.443 50.9524 471.06 54.7089C467.677 58.4654 465.805 63.3414 465.805 68.3966V68.3966V97.6187H474.571V85.1993C477.999 87.5839 482.076 88.8589 486.251 88.8521C486.969 88.8518 487.687 88.8143 488.401 88.7396C491.072 88.4588 493.662 87.6546 496.023 86.3728C498.384 85.091 500.469 83.3568 502.16 81.2691C503.85 79.1814 505.113 76.7812 505.876 74.2056C506.639 71.6299 506.887 68.9291 506.606 66.2576V66.259ZM495.347 75.7562C494.384 76.9525 493.193 77.9458 491.843 78.6786C490.494 79.4115 489.012 79.8693 487.485 80.0255C487.075 80.0681 486.663 80.0896 486.251 80.0898C483.6 80.0874 481.028 79.1837 478.958 77.5271C476.889 75.8705 475.443 73.5594 474.86 70.9731C474.276 68.3868 474.59 65.679 475.748 63.2942C476.906 60.9093 478.841 58.9891 481.234 57.8487C483.628 56.7083 486.338 56.4155 488.92 57.0183C491.502 57.6211 493.802 59.0836 495.443 61.166C497.084 63.2483 497.968 65.8267 497.951 68.4779C497.933 71.1291 497.015 73.6956 495.347 75.7562Z",fill:"#F9F9F9"}),d.jsx("path",{d:"M529.478 47.9411C528.76 47.9414 528.043 47.979 527.329 48.0536C522.119 48.6022 517.319 51.1284 513.917 55.1114C510.515 59.0944 508.771 64.2307 509.043 69.4618C509.316 74.6928 511.585 79.6199 515.383 83.2274C519.181 86.835 524.218 88.8482 529.456 88.8521C530.174 88.8518 530.891 88.8143 531.605 88.7396C535.361 88.3397 538.934 86.9109 541.93 84.6105C544.926 82.3102 547.229 79.2275 548.585 75.7021H538.592L538.551 75.7532C537.272 77.3353 535.601 78.5558 533.704 79.294C531.808 80.0322 529.752 80.2626 527.739 79.9622C525.726 79.6619 523.827 78.8413 522.229 77.5816C520.63 76.3219 519.389 74.6667 518.626 72.7799H549.456C550.105 69.7933 550.078 66.6993 549.376 63.7246C548.674 60.75 547.316 57.97 545.4 55.5884C543.485 53.2068 541.061 51.284 538.306 49.9607C535.551 48.6375 532.534 47.9474 529.478 47.9411V47.9411ZM518.626 64.0133C519.424 62.0489 520.741 60.338 522.434 59.0627C524.128 57.7875 526.136 56.9958 528.245 56.772C528.655 56.7295 529.066 56.708 529.478 56.7077C531.807 56.7038 534.083 57.3977 536.013 58.6999C537.943 60.0021 539.439 61.8528 540.308 64.0133H518.626Z",fill:"#F9F9F9"}),d.jsx("path",{d:"M571.115 47.9411C567.765 47.9358 564.478 48.8571 561.618 50.6033V47.9411H552.852V88.8521H561.618V66.205C561.618 63.6861 562.619 61.2705 564.4 59.4894C566.181 57.7084 568.597 56.7078 571.115 56.7078C573.634 56.7078 576.05 57.7084 577.831 59.4894C579.612 61.2705 580.613 63.6861 580.613 66.205V88.8521H589.379V66.205C589.379 61.3611 587.455 56.7156 584.03 53.2905C580.605 49.8653 575.959 47.9411 571.115 47.9411Z",fill:"#F9F9F9"}),d.jsx("path",{d:"M633.214 71.0105V47.9411H624.447V51.5939C621.02 49.2083 616.943 47.9332 612.767 47.9411C612.049 47.9415 611.332 47.979 610.618 48.0536C605.408 48.6023 600.608 51.1284 597.206 55.1114C593.804 59.0944 592.06 64.2308 592.332 69.4618C592.605 74.6928 594.874 79.6199 598.672 83.2275C602.47 86.8351 607.507 88.8483 612.745 88.8521C613.463 88.8518 614.18 88.8143 614.894 88.7396C619.99 88.2182 624.7 85.7909 628.081 81.944C630.708 85.459 634.513 87.9112 638.8 88.8521V79.6617C637.136 78.9083 635.725 77.6919 634.734 76.1577C633.744 74.6236 633.216 72.8367 633.214 71.0105ZM621.841 75.7533C620.877 76.9493 619.687 77.9424 618.337 78.6753C616.987 79.4081 615.506 79.866 613.978 80.0226C613.569 80.0652 613.157 80.0866 612.745 80.0869C609.75 80.0868 606.869 78.9369 604.697 76.8746C602.525 74.8123 601.228 71.9949 601.073 69.0038C600.917 66.0127 601.916 63.0761 603.863 60.8001C605.81 58.524 608.556 57.0822 611.535 56.7721C611.945 56.7295 612.356 56.708 612.767 56.7078C614.974 56.7097 617.135 57.3363 619.001 58.5151C620.867 59.694 622.36 61.3769 623.31 63.3693C624.259 65.3617 624.625 67.582 624.365 69.7736C624.105 71.9651 623.23 74.0383 621.841 75.7533Z",fill:"#F9F9F9"}),d.jsx("path",{d:"M600.484 110.378V105.155C600.125 105.617 599.679 105.986 599.144 106.26C598.609 106.527 598.032 106.661 597.413 106.661C596.232 106.661 595.261 106.217 594.498 105.331C593.598 104.294 593.148 102.888 593.148 101.115C593.148 99.4454 593.569 98.1445 594.41 97.212C595.257 96.273 596.307 95.8035 597.559 95.8035C598.251 95.8035 598.847 95.9502 599.349 96.2437C599.858 96.5371 600.308 96.9805 600.699 97.5739V96.0383H603.233V110.378H600.484ZM600.572 101.105C600.572 100.042 600.354 99.2531 599.917 98.7379C599.486 98.2162 598.945 97.9554 598.293 97.9554C597.628 97.9554 597.07 98.2195 596.62 98.7477C596.177 99.2759 595.955 100.114 595.955 101.262C595.955 102.403 596.17 103.228 596.601 103.736C597.031 104.238 597.563 104.489 598.195 104.489C598.828 104.489 599.382 104.206 599.858 103.638C600.334 103.071 600.572 102.227 600.572 101.105ZM612.779 106.426V104.871C612.401 105.425 611.902 105.862 611.283 106.182C610.67 106.501 610.021 106.661 609.336 106.661C608.638 106.661 608.012 106.508 607.458 106.201C606.904 105.895 606.503 105.464 606.255 104.91C606.007 104.356 605.883 103.589 605.883 102.611V96.0383H608.632V100.812C608.632 102.272 608.681 103.169 608.779 103.501C608.883 103.827 609.069 104.088 609.336 104.284C609.603 104.473 609.943 104.568 610.353 104.568C610.823 104.568 611.243 104.44 611.615 104.186C611.987 103.925 612.241 103.606 612.378 103.228C612.515 102.843 612.584 101.907 612.584 100.42V96.0383H615.332V106.426H612.779ZM618.188 94.6297V92.0866H620.937V94.6297H618.188ZM618.188 106.426V96.0383H620.937V106.426H618.188ZM622.658 106.426V104.284L626.551 99.8139C627.19 99.0835 627.663 98.5651 627.97 98.2586C627.65 98.2782 627.229 98.2912 626.708 98.2978L623.04 98.3173V96.0383H631.628V97.9848L627.657 102.562L626.258 104.079C627.021 104.033 627.494 104.01 627.676 104.01H631.931V106.426H622.658Z",fill:"#F7F7F7"})]}),d.jsx("defs",{children:d.jsx("clipPath",{id:"clip0_4819_14374",children:d.jsx("rect",{width:"207",height:"80.129",fill:"white",transform:"translate(432 30)"})})})]}),DU=({currentQuestion:e,currentQuestionStepNumber:t,nextButton:n,prevButton:r})=>{const o=Le(),{settings:i}=or(),s=On()<650;return d.jsxs(J,{sx:{backgroundColor:o.palette.background.default,height:s?void 0:"100%"},children:[d.jsxs(J,{sx:{height:"calc(100% - 75px)",width:"100%",maxWidth:"1440px",padding:"40px 25px 20px",margin:"0 auto",overflow:"auto",display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[d.jsx(_U,{question:e}),xn[i.cfg.theme].isLight?d.jsx(TU,{style:{fontSize:"34px",width:"200px",height:"auto"}}):d.jsx(RU,{style:{fontSize:"34px",width:"200px",height:"auto"}})]}),d.jsx(XH,{stepNumber:t,prevButton:r,nextButton:n})]})};function _U({question:e}){switch(e.type){case"variant":return d.jsx(EU,{currentQuestion:e});case"images":return d.jsx(sU,{currentQuestion:e});case"varimg":return d.jsx(MU,{currentQuestion:e});case"emoji":return d.jsx(eU,{currentQuestion:e});case"text":return d.jsx(SU,{currentQuestion:e});case"select":return d.jsx(wU,{currentQuestion:e});case"date":return d.jsx(QH,{currentQuestion:e});case"number":return d.jsx(cU,{currentQuestion:e});case"file":return d.jsx(iU,{currentQuestion:e});case"page":return d.jsx(uU,{currentQuestion:e});case"rating":return d.jsx(xU,{currentQuestion:e});default:Rg(e)}}const OU=({resultQuestion:e})=>{const t=Le(),n=On()<650,{settings:r}=or();return d.jsxs(J,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"space-between",height:"100%",width:"100vw",pt:"28px",overflow:"auto"},children:[d.jsxs(J,{sx:{display:"flex",flexDirection:"column",alignItems:"start",width:n?"100%":"490px",padding:n?"0 16px":void 0},children:[!(e!=null&&e.content.useImage)&&e.content.video&&d.jsx(_g,{videoUrl:e.content.video,containerSX:{width:n?"100%":"490px",height:n?"100%":"280px"}}),(e==null?void 0:e.content.useImage)&&e.content.back&&d.jsx(J,{component:"img",src:e.content.back,sx:{width:n?"100%":"490px",height:n?"100%":"280px"}}),e.description!==""&&e.description!==" "&&d.jsx(Re,{sx:{fontSize:"23px",fontWeight:700,m:"20px 0",color:t.palette.text.primary},children:e.description}),d.jsx(Re,{sx:{m:"20px 0",color:t.palette.text.primary},children:e.title}),e.content.text!==""&&e.content.text!==" "&&d.jsx(Re,{sx:{fontSize:"18px",m:"20px 0",color:t.palette.text.primary},children:e.content.text})]}),d.jsxs(J,{width:"100%",children:[d.jsx(J,{sx:{display:"flex",width:"100%",justifyContent:"end",px:"20px"},children:d.jsxs(J,{sx:{display:"flex",alignItems:"center",mt:"15px",gap:"10px"},children:[d.jsx(Dg,{style:{fontSize:"34px",color:xn[r.cfg.theme].isLight?"#000000":"#F5F7FF"}}),d.jsx(Re,{sx:{fontSize:"20px",color:xn[r.cfg.theme].isLight?"#4D4D4D":"#F5F7FF",whiteSpace:"nowrap"},children:"Сделано на PenaQuiz"})]})}),d.jsxs(J,{sx:{boxShadow:"0 0 15px 0 rgba(0,0,0,.08)",width:"100%",flexDirection:"column",display:"flex",justifyContent:"center",alignItems:"center",p:"20px"},children:[r.cfg.resultInfo.showResultForm==="before"&&d.jsx(Mr,{onClick:()=>al("contactform"),variant:"contained",sx:{p:"10px 20px",width:"210px",height:"50px"},children:e.content.hint.text||"Узнать подробнее"}),r.cfg.resultInfo.showResultForm==="after"&&e.content.redirect&&d.jsx(Mr,{href:e.content.redirect,variant:"contained",sx:{p:"10px 20px",width:"210px",height:"50px"},children:e.content.hint.text||"Перейти на сайт"})]})]})]})};function IU(){const[e,t]=x.useState(!1);return x.useEffect(()=>{const n=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);t(n)},[navigator.userAgent]),{isMobileDevice:e}}const $U=()=>{const e=Le(),{settings:t}=or(),{isMobileDevice:n}=IU(),r=On()<650,o=()=>{navigator.clipboard.writeText(t.cfg.info.phonenumber)},i=t.cfg.startpage.background.type==="image"?t.cfg.startpage.background.desktop?d.jsx("img",{src:t.cfg.startpage.background.desktop,alt:"",style:{width:"100%",height:"100%",objectFit:"cover",overflow:"hidden"}}):null:t.cfg.startpage.background.type==="video"&&t.cfg.startpage.background.video?d.jsx(_g,{videoUrl:t.cfg.startpage.background.video,containerSX:{width:t.cfg.startpageType==="centered"?"550px":t.cfg.startpageType==="expanded"?"100vw":"100%",height:t.cfg.startpageType==="centered"?"275px":"100%",borderRadius:t.cfg.startpageType==="centered"?"10px":"0",overflow:"hidden","& iframe":{width:"100%",height:"100%",transform:t.cfg.startpageType==="centered"?"":t.cfg.startpageType==="expanded"?"scale(1.5)":"scale(2.4)"}}}):null;return d.jsx(Jl,{className:"settings-preview-draghandle",sx:{height:"100%",width:"100%",background:t.cfg.startpageType==="expanded"&&!r?t.cfg.startpage.position==="left"?"linear-gradient(90deg,#272626,transparent)":t.cfg.startpage.position==="center"?"linear-gradient(180deg,transparent,#272626)":"linear-gradient(270deg,#272626,transparent)":e.palette.background.default,color:t.cfg.startpageType==="expanded"?"white":"black"},children:d.jsx(FU,{quizHeaderBlock:d.jsxs(J,{p:t.cfg.startpageType==="standard"?"":"16px",children:[d.jsxs(J,{sx:{display:"flex",alignItems:"center",gap:"20px",mb:"7px"},children:[t.cfg.startpage.logo&&d.jsx("img",{src:t.cfg.startpage.logo,style:{height:"37px",maxWidth:"43px",objectFit:"cover"},alt:""}),d.jsx(Re,{sx:{fontSize:"14px",color:t.cfg.startpageType==="expanded"&&!r?"white":e.palette.text.primary},children:t.cfg.info.orgname})]}),d.jsx(ld,{mb:"16px",href:t.cfg.info.site,children:d.jsx(Re,{sx:{fontSize:"16px",color:e.palette.primary.main},children:t.cfg.info.site})})]}),quizMainBlock:d.jsxs(d.Fragment,{children:[d.jsxs(J,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:t.cfg.startpageType==="centered"||t.cfg.startpageType==="expanded"&&t.cfg.startpage.position==="center"?"center":"start",mt:"28px",width:"100%"},children:[d.jsx(Re,{sx:{fontWeight:"bold",fontSize:"26px",fontStyle:"normal",fontStretch:"normal",lineHeight:"1.2",overflowWrap:"break-word",width:"100%",textAlign:t.cfg.startpageType==="centered"?"center":"-moz-initial",color:t.cfg.startpageType==="expanded"&&!r?"white":e.palette.text.primary},children:t.name}),d.jsx(Re,{sx:{fontSize:"16px",m:"16px 0",overflowWrap:"break-word",width:"100%",textAlign:t.cfg.startpageType==="centered"?"center":"-moz-initial"},children:t.cfg.startpage.description}),d.jsx(J,{width:t.cfg.startpageType==="standard"?"100%":"auto",children:d.jsx(Mr,{variant:"contained",sx:{fontSize:"16px",padding:"10px 15px",width:t.cfg.startpageType==="standard"?"100%":"auto"},onClick:()=>al("question"),children:t.cfg.startpage.button.trim()?t.cfg.startpage.button:"Пройти тест"})})]}),d.jsxs(J,{sx:{mt:"46px",display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",flexDirection:r?"column":"row"},children:[d.jsxs(J,{sx:{maxWidth:"300px"},children:[t.cfg.info.clickable?n?d.jsx(ld,{href:`tel:${t.cfg.info.phonenumber}`,children:d.jsx(Re,{sx:{fontSize:"16px",color:e.palette.primary.main},children:t.cfg.info.phonenumber})}):d.jsx(Fr,{onClick:o,children:d.jsx(Re,{sx:{fontSize:"16px",color:e.palette.primary.main},children:t.cfg.info.phonenumber})}):d.jsx(Re,{sx:{fontSize:"16px",color:e.palette.primary.main},children:t.cfg.info.phonenumber}),d.jsx(Re,{sx:{width:"100%",overflowWrap:"break-word",fontSize:"12px",textAlign:"end",color:t.cfg.startpageType==="expanded"&&!r?"white":e.palette.text.primary},children:t.cfg.info.law})]}),d.jsxs(J,{sx:{display:"flex",alignItems:"center",gap:"15px"},children:[d.jsx(Dg,{style:{fontSize:"34px",color:t.cfg.startpageType==="expanded"&&!r?"#FFFFFF":xn[t.cfg.theme].isLight?"#151515":"#FFFFFF"}}),d.jsx(Re,{sx:{fontSize:"20px",color:t.cfg.startpageType==="expanded"&&!r?"#F5F7FF":xn[t.cfg.theme].isLight?"#4D4D4D":"#F5F7FF",whiteSpace:"nowrap"},children:"Сделано на PenaQuiz"})]})]})]}),backgroundBlock:i,startpageType:t.cfg.startpageType,alignType:t.cfg.startpage.position})})};function FU({quizHeaderBlock:e,quizMainBlock:t,backgroundBlock:n,startpageType:r,alignType:o}){const i=On()<650;function s(){return d.jsxs(J,{sx:{display:"flex",flexDirection:"column-reverse",flexGrow:1,justifyContent:"flex-end",height:"100%","&::-webkit-scrollbar":{width:0}},children:[d.jsxs(J,{sx:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"flex-start",p:"25px",height:"80%"},children:[e,d.jsx(J,{sx:{height:"80%",display:"flex",flexDirection:"column",justifyContent:"space-between",width:"100%"},children:t})]}),d.jsx(J,{sx:{width:"100%",overflow:"hidden"},children:n})]})}switch(r){case null:case"standard":return d.jsx(d.Fragment,{children:i?d.jsx(s,{}):d.jsxs(J,{sx:{display:"flex",flexDirection:o==="left"?i?"column-reverse":"row":"row-reverse",flexGrow:1,justifyContent:i?"flex-end":void 0,height:"100%","&::-webkit-scrollbar":{width:0}},children:[d.jsxs(J,{sx:{width:i?"100%":"40%",display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"flex-start",p:"25px",height:i?"80%":void 0},children:[e,t]}),d.jsx(J,{sx:{width:i?"100%":"60%",overflow:"hidden"},children:n})]})});case"expanded":return d.jsx(d.Fragment,{children:i?d.jsx(s,{}):d.jsxs(J,{sx:{position:"relative",display:"flex",justifyContent:AU[o],flexGrow:1,height:"100%","&::-webkit-scrollbar":{width:0}},children:[d.jsxs(J,{sx:{width:"40%",position:"relative",padding:"16px",zIndex:3,display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:o==="center"?"center":"start"},children:[e,t]}),d.jsx(J,{sx:{position:"absolute",zIndex:-1,left:0,top:0,height:"100%",width:"100%",overflow:"hidden"},children:n})]})});case"centered":return d.jsx(d.Fragment,{children:i?d.jsx(s,{}):d.jsxs(J,{sx:{padding:"16px",display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"center",height:"100%","&::-webkit-scrollbar":{width:0},overflow:"hidden"},children:[e,n&&d.jsx(J,{sx:{width:"60%",overflow:"hidden",display:"flex",justifyContent:"center"},children:n}),t]})});default:Rg(r)}}const AU={left:"start",center:"center",right:"end"};function LU(){const{settings:e,recentlyCompleted:t}=or();let n=cn(p=>p.currentQuizStep);const r=On()<382,{currentQuestion:o,currentQuestionStepNumber:i,isNextButtonEnabled:s,isPreviousButtonEnabled:a,moveToPrevQuestion:l,moveToNextQuestion:c,showResultAfterContactForm:u}=DH();if(x.useEffect(function(){const v=document.querySelector('link[rel="icon"]');v&&e.cfg.startpage.favIcon&&v.setAttribute("href",e.cfg.startpage.favIcon),document.title=e.name},[e]),t)throw new Error("Quiz already completed");n==="startpage"&&e.cfg.noStartPage&&(n="question");let f;switch(n){case"startpage":{f=d.jsx($U,{});break}case"question":{if(o.type==="result"){f=d.jsx(OU,{resultQuestion:o});break}f=d.jsx(DU,{currentQuestion:o,currentQuestionStepNumber:i,prevButton:d.jsx(Mr,{disabled:!a,variant:"contained",sx:{fontSize:"16px",padding:"10px 15px"},onClick:l,children:r?"←":"← Назад"}),nextButton:d.jsx(Mr,{disabled:!s,variant:"contained",sx:{fontSize:"16px",padding:"10px 15px"},onClick:c,children:"Далее →"})});break}case"contactform":{f=d.jsx(qH,{currentQuestion:o,onShowResult:u});break}default:Rg(n)}return d.jsx(u8,{theme:xn[e.cfg.theme||"StandardTheme"].theme,children:f})}const d5=tn({...Ho,palette:{mode:"light",primary:{main:"#000000"},secondary:{main:"#252734"},text:{primary:"#000000",secondary:"#7E2AEA"},background:{default:"#F2F3F7"},lightPurple:{main:"#333647"},darkPurple:{main:"#252734"},brightPurple:{main:"#7E2AEA"},fadePurple:{main:"#C19AF5"},grey1:{main:"#434657"},grey2:{main:"#9A9AAF"},grey3:{main:"#4D4D4D"},grey4:{main:"#333647"},orange:{main:"#FB5607"},navbarbg:{main:"#FFFFFF"}}});ce.locale("ru");const jU=R$.components.MuiLocalizationProvider.defaultProps.localeText;function NU(){return d.jsx(TB,{value:{revalidateOnFocus:!1,shouldRetryOnError:!1},children:d.jsx(Nm,{dateAdapter:lz,adapterLocale:"ru",localeText:jU,children:d.jsx(u8,{theme:d5,children:d.jsxs(Wz,{preventDuplicate:!0,style:{backgroundColor:d5.palette.brightPurple.main},children:[d.jsx(eR,{}),d.jsx(Uz,{FallbackComponent:cz,onError:dz,children:d.jsx(x.Suspense,{fallback:d.jsx(uz,{}),children:d.jsx(LU,{})})})]})})})})}function VU({quizId:e}){const[t,n]=x.useState(()=>window.innerWidth),r=x.useRef(null);return x.useEffect(()=>{const o=()=>{x.startTransition(()=>{r.current&&n(r.current.clientWidth)})};return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}},[]),d.jsx(T4.Provider,{value:t,children:d.jsx(M4.Provider,{value:e,children:d.jsx(J,{ref:r,sx:{width:"100%",height:"100%"},children:d.jsx(NU,{})})})})}var R4,f5=Xl;R4=f5.createRoot,f5.hydrateRoot;let Qc;const zU={create({selector:e,quizId:t}){const n=document.getElementById(e);if(!n)throw new Error("Element for widget doesn't exist");Qc=R4(n),Qc.render(d.jsx(VU,{quizId:t}))},unmount(){Qc&&Qc.unmount()}};export{zU as default};