hfs 0.51.2 → 0.51.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,806 @@
1
+ var OW=Object.defineProperty,DW=Object.defineProperties;var AW=Object.getOwnPropertyDescriptors;var ag=Object.getOwnPropertySymbols;var cT=Object.prototype.hasOwnProperty,uT=Object.prototype.propertyIsEnumerable;var yw=(e,t)=>{if(t=Symbol[e])return t;throw Error("Symbol."+e+" is not defined")},no=Math.pow,bw=(e,t,n)=>t in e?OW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ye=(e,t)=>{for(var n in t||(t={}))cT.call(t,n)&&bw(e,n,t[n]);if(ag)for(var n of ag(t))uT.call(t,n)&&bw(e,n,t[n]);return e},it=(e,t)=>DW(e,AW(t));var Lt=(e,t)=>{var n={};for(var r in e)cT.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ag)for(var r of ag(e))t.indexOf(r)<0&&uT.call(e,r)&&(n[r]=e[r]);return n};var Ei=(e,t,n)=>(bw(e,typeof t!="symbol"?t+"":t,n),n);var ot=(e,t,n)=>new Promise((r,o)=>{var s=a=>{try{l(n.next(a))}catch(c){o(c)}},i=a=>{try{l(n.throw(a))}catch(c){o(c)}},l=a=>a.done?r(a.value):Promise.resolve(a.value).then(s,i);l((n=n.apply(e,t)).next())}),LW=function(e,t){this[0]=e,this[1]=t};var Ae=e=>{var t=e[yw("asyncIterator")],n=!1,r,o={};return t==null?(t=e[yw("iterator")](),r=s=>o[s]=i=>t[s](i)):(t=t.call(e),r=s=>o[s]=i=>{if(n){if(n=!1,s==="throw")throw i;return i}return n=!0,{done:!1,value:new LW(new Promise(l=>{var a=t[s](i);if(!(a instanceof Object))throw TypeError("Object expected");l(a)}),1)}}),o[yw("iterator")]=()=>o,r("next"),"throw"in t?r("throw"):o.throw=s=>{throw s},"return"in t&&r("return"),o};function FW(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var an=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function vi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Yi(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var _A={exports:{}},Gt={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Fh=Symbol.for("react.element"),NW=Symbol.for("react.portal"),BW=Symbol.for("react.fragment"),jW=Symbol.for("react.strict_mode"),zW=Symbol.for("react.profiler"),VW=Symbol.for("react.provider"),HW=Symbol.for("react.context"),UW=Symbol.for("react.forward_ref"),WW=Symbol.for("react.suspense"),GW=Symbol.for("react.memo"),KW=Symbol.for("react.lazy"),dT=Symbol.iterator;function qW(e){return e===null||typeof e!="object"?null:(e=dT&&e[dT]||e["@@iterator"],typeof e=="function"?e:null)}var TA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$A=Object.assign,RA={};function Gd(e,t,n){this.props=e,this.context=t,this.refs=RA,this.updater=n||TA}Gd.prototype.isReactComponent={};Gd.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")};Gd.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function OA(){}OA.prototype=Gd.prototype;function rP(e,t,n){this.props=e,this.context=t,this.refs=RA,this.updater=n||TA}var oP=rP.prototype=new OA;oP.constructor=rP;$A(oP,Gd.prototype);oP.isPureReactComponent=!0;var fT=Array.isArray,DA=Object.prototype.hasOwnProperty,sP={current:null},AA={key:!0,ref:!0,__self:!0,__source:!0};function LA(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)DA.call(t,r)&&!AA.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var a=Array(l),c=0;c<l;c++)a[c]=arguments[c+2];o.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Fh,type:e,key:s,ref:i,props:o,_owner:sP.current}}function YW(e,t){return{$$typeof:Fh,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function iP(e){return typeof e=="object"&&e!==null&&e.$$typeof===Fh}function QW(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var pT=/\/+/g;function ww(e,t){return typeof e=="object"&&e!==null&&e.key!=null?QW(""+e.key):t.toString(36)}function Zg(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Fh:case NW:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+ww(i,0):r,fT(o)?(n="",e!=null&&(n=e.replace(pT,"$&/")+"/"),Zg(o,t,n,"",function(c){return c})):o!=null&&(iP(o)&&(o=YW(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(pT,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",fT(e))for(var l=0;l<e.length;l++){s=e[l];var a=r+ww(s,l);i+=Zg(s,t,n,a,o)}else if(a=qW(e),typeof a=="function")for(e=a.call(e),l=0;!(s=e.next()).done;)s=s.value,a=r+ww(s,l++),i+=Zg(s,t,n,a,o);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function cg(e,t,n){if(e==null)return e;var r=[],o=0;return Zg(e,r,"","",function(s){return t.call(n,s,o++)}),r}function XW(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var uo={current:null},Jg={transition:null},ZW={ReactCurrentDispatcher:uo,ReactCurrentBatchConfig:Jg,ReactCurrentOwner:sP};Gt.Children={map:cg,forEach:function(e,t,n){cg(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return cg(e,function(){t++}),t},toArray:function(e){return cg(e,function(t){return t})||[]},only:function(e){if(!iP(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Gt.Component=Gd;Gt.Fragment=BW;Gt.Profiler=zW;Gt.PureComponent=rP;Gt.StrictMode=jW;Gt.Suspense=WW;Gt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ZW;Gt.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=$A({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=sP.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)DA.call(t,a)&&!AA.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var c=0;c<a;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:Fh,type:e.type,key:o,ref:s,props:r,_owner:i}};Gt.createContext=function(e){return e={$$typeof:HW,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:VW,_context:e},e.Consumer=e};Gt.createElement=LA;Gt.createFactory=function(e){var t=LA.bind(null,e);return t.type=e,t};Gt.createRef=function(){return{current:null}};Gt.forwardRef=function(e){return{$$typeof:UW,render:e}};Gt.isValidElement=iP;Gt.lazy=function(e){return{$$typeof:KW,_payload:{_status:-1,_result:e},_init:XW}};Gt.memo=function(e,t){return{$$typeof:GW,type:e,compare:t===void 0?null:t}};Gt.startTransition=function(e){var t=Jg.transition;Jg.transition={};try{e()}finally{Jg.transition=t}};Gt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Gt.useCallback=function(e,t){return uo.current.useCallback(e,t)};Gt.useContext=function(e){return uo.current.useContext(e)};Gt.useDebugValue=function(){};Gt.useDeferredValue=function(e){return uo.current.useDeferredValue(e)};Gt.useEffect=function(e,t){return uo.current.useEffect(e,t)};Gt.useId=function(){return uo.current.useId()};Gt.useImperativeHandle=function(e,t,n){return uo.current.useImperativeHandle(e,t,n)};Gt.useInsertionEffect=function(e,t){return uo.current.useInsertionEffect(e,t)};Gt.useLayoutEffect=function(e,t){return uo.current.useLayoutEffect(e,t)};Gt.useMemo=function(e,t){return uo.current.useMemo(e,t)};Gt.useReducer=function(e,t,n){return uo.current.useReducer(e,t,n)};Gt.useRef=function(e){return uo.current.useRef(e)};Gt.useState=function(e){return uo.current.useState(e)};Gt.useSyncExternalStore=function(e,t,n){return uo.current.useSyncExternalStore(e,t,n)};Gt.useTransition=function(){return uo.current.useTransition()};Gt.version="18.2.0";_A.exports=Gt;var u=_A.exports;const Yo=vi(u),Up=FW({__proto__:null,default:Yo},[u]);var FA={exports:{}},as={},NA={exports:{}},BA={};/**
10
+ * @license React
11
+ * scheduler.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */(function(e){function t(A,F){var H=A.length;A.push(F);e:for(;0<H;){var K=H-1>>>1,Y=A[K];if(0<o(Y,F))A[K]=F,A[H]=Y,H=K;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var F=A[0],H=A.pop();if(H!==F){A[0]=H;e:for(var K=0,Y=A.length,J=Y>>>1;K<J;){var Q=2*(K+1)-1,X=A[Q],ee=Q+1,oe=A[ee];if(0>o(X,H))ee<Y&&0>o(oe,X)?(A[K]=oe,A[ee]=H,K=ee):(A[K]=X,A[Q]=H,K=Q);else if(ee<Y&&0>o(oe,H))A[K]=oe,A[ee]=H,K=ee;else break e}}return F}function o(A,F){var H=A.sortIndex-F.sortIndex;return H!==0?H:A.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var a=[],c=[],f=1,p=null,h=3,y=!1,v=!1,m=!1,C=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(A){for(var F=n(c);F!==null;){if(F.callback===null)r(c);else if(F.startTime<=A)r(c),F.sortIndex=F.expirationTime,t(a,F);else break;F=n(c)}}function P(A){if(m=!1,x(A),!v)if(n(a)!==null)v=!0,B(k);else{var F=n(c);F!==null&&V(P,F.startTime-A)}}function k(A,F){v=!1,m&&(m=!1,w(R),R=-1),y=!0;var H=h;try{for(x(F),p=n(a);p!==null&&(!(p.expirationTime>F)||A&&!L());){var K=p.callback;if(typeof K=="function"){p.callback=null,h=p.priorityLevel;var Y=K(p.expirationTime<=F);F=e.unstable_now(),typeof Y=="function"?p.callback=Y:p===n(a)&&r(a),x(F)}else r(a);p=n(a)}if(p!==null)var J=!0;else{var Q=n(c);Q!==null&&V(P,Q.startTime-F),J=!1}return J}finally{p=null,h=H,y=!1}}var E=!1,I=null,R=-1,O=5,$=-1;function L(){return!(e.unstable_now()-$<O)}function j(){if(I!==null){var A=e.unstable_now();$=A;var F=!0;try{F=I(!0,A)}finally{F?N():(E=!1,I=null)}}else E=!1}var N;if(typeof b=="function")N=function(){b(j)};else if(typeof MessageChannel!="undefined"){var _=new MessageChannel,T=_.port2;_.port1.onmessage=j,N=function(){T.postMessage(null)}}else N=function(){C(j,0)};function B(A){I=A,E||(E=!0,N())}function V(A,F){R=C(function(){A(e.unstable_now())},F)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(A){A.callback=null},e.unstable_continueExecution=function(){v||y||(v=!0,B(k))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(A){switch(h){case 1:case 2:case 3:var F=3;break;default:F=h}var H=h;h=F;try{return A()}finally{h=H}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,F){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var H=h;h=A;try{return F()}finally{h=H}},e.unstable_scheduleCallback=function(A,F,H){var K=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?K+H:K):H=K,A){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=H+Y,A={id:f++,callback:F,priorityLevel:A,startTime:H,expirationTime:Y,sortIndex:-1},H>K?(A.sortIndex=H,t(c,A),n(a)===null&&A===n(c)&&(m?(w(R),R=-1):m=!0,V(P,H-K))):(A.sortIndex=Y,t(a,A),v||y||(v=!0,B(k))),A},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(A){var F=h;return function(){var H=h;h=F;try{return A.apply(this,arguments)}finally{h=H}}}})(BA);NA.exports=BA;var JW=NA.exports;/**
18
+ * @license React
19
+ * react-dom.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var jA=u,es=JW;function He(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var zA=new Set,Wp={};function Vc(e,t){yd(e,t),yd(e+"Capture",t)}function yd(e,t){for(Wp[e]=t,e=0;e<t.length;e++)zA.add(t[e])}var Sl=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),YC=Object.prototype.hasOwnProperty,eG=/^[: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]*$/,hT={},mT={};function tG(e){return YC.call(mT,e)?!0:YC.call(hT,e)?!1:eG.test(e)?mT[e]=!0:(hT[e]=!0,!1)}function nG(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 rG(e,t,n,r){if(t===null||typeof t=="undefined"||nG(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 fo(e,t,n,r,o,s,i){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=s,this.removeEmptyString=i}var Lr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Lr[e]=new fo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Lr[t]=new fo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Lr[e]=new fo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Lr[e]=new fo(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){Lr[e]=new fo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Lr[e]=new fo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Lr[e]=new fo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Lr[e]=new fo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Lr[e]=new fo(e,5,!1,e.toLowerCase(),null,!1,!1)});var lP=/[\-:]([a-z])/g;function aP(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(lP,aP);Lr[t]=new fo(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(lP,aP);Lr[t]=new fo(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(lP,aP);Lr[t]=new fo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Lr[e]=new fo(e,1,!1,e.toLowerCase(),null,!1,!1)});Lr.xlinkHref=new fo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Lr[e]=new fo(e,1,!1,e.toLowerCase(),null,!0,!0)});function cP(e,t,n,r){var o=Lr.hasOwnProperty(t)?Lr[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(rG(t,n,o,r)&&(n=null),r||o===null?tG(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Al=jA.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ug=Symbol.for("react.element"),Lu=Symbol.for("react.portal"),Fu=Symbol.for("react.fragment"),uP=Symbol.for("react.strict_mode"),QC=Symbol.for("react.profiler"),VA=Symbol.for("react.provider"),HA=Symbol.for("react.context"),dP=Symbol.for("react.forward_ref"),XC=Symbol.for("react.suspense"),ZC=Symbol.for("react.suspense_list"),fP=Symbol.for("react.memo"),sa=Symbol.for("react.lazy"),UA=Symbol.for("react.offscreen"),gT=Symbol.iterator;function Ff(e){return e===null||typeof e!="object"?null:(e=gT&&e[gT]||e["@@iterator"],typeof e=="function"?e:null)}var Vn=Object.assign,Cw;function ap(e){if(Cw===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Cw=t&&t[1]||""}return`
26
+ `+Cw+e}var xw=!1;function Sw(e,t){if(!e||xw)return"";xw=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(`
27
+ `),s=r.stack.split(`
28
+ `),i=o.length-1,l=s.length-1;1<=i&&0<=l&&o[i]!==s[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==s[l]){if(i!==1||l!==1)do if(i--,l--,0>l||o[i]!==s[l]){var a=`
29
+ `+o[i].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=i&&0<=l);break}}}finally{xw=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ap(e):""}function oG(e){switch(e.tag){case 5:return ap(e.type);case 16:return ap("Lazy");case 13:return ap("Suspense");case 19:return ap("SuspenseList");case 0:case 2:case 15:return e=Sw(e.type,!1),e;case 11:return e=Sw(e.type.render,!1),e;case 1:return e=Sw(e.type,!0),e;default:return""}}function JC(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 Fu:return"Fragment";case Lu:return"Portal";case QC:return"Profiler";case uP:return"StrictMode";case XC:return"Suspense";case ZC:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case HA:return(e.displayName||"Context")+".Consumer";case VA:return(e._context.displayName||"Context")+".Provider";case dP:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fP:return t=e.displayName||null,t!==null?t:JC(e.type)||"Memo";case sa:t=e._payload,e=e._init;try{return JC(e(t))}catch(n){}}return null}function sG(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 JC(t);case 8:return t===uP?"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 Ra(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function WA(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function iG(e){var t=WA(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function dg(e){e._valueTracker||(e._valueTracker=iG(e))}function GA(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=WA(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Tv(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function ex(e,t){var n=t.checked;return Vn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function vT(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ra(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 KA(e,t){t=t.checked,t!=null&&cP(e,"checked",t,!1)}function tx(e,t){KA(e,t);var n=Ra(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")?nx(e,t.type,n):t.hasOwnProperty("defaultValue")&&nx(e,t.type,Ra(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function yT(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 nx(e,t,n){(t!=="number"||Tv(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var cp=Array.isArray;function nd(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ra(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function rx(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(He(91));return Vn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function bT(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(He(92));if(cp(n)){if(1<n.length)throw Error(He(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ra(n)}}function qA(e,t){var n=Ra(t.value),r=Ra(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function wT(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function YA(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ox(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?YA(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var fg,QA=function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(fg=fg||document.createElement("div"),fg.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=fg.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Gp(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Sp={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},lG=["Webkit","ms","Moz","O"];Object.keys(Sp).forEach(function(e){lG.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Sp[t]=Sp[e]})});function XA(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Sp.hasOwnProperty(e)&&Sp[e]?(""+t).trim():t+"px"}function ZA(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=XA(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var aG=Vn({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 sx(e,t){if(t){if(aG[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(He(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(He(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(He(61))}if(t.style!=null&&typeof t.style!="object")throw Error(He(62))}}function ix(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 lx=null;function pP(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ax=null,rd=null,od=null;function CT(e){if(e=jh(e)){if(typeof ax!="function")throw Error(He(280));var t=e.stateNode;t&&(t=Yy(t),ax(e.stateNode,e.type,t))}}function JA(e){rd?od?od.push(e):od=[e]:rd=e}function eL(){if(rd){var e=rd,t=od;if(od=rd=null,CT(e),t)for(e=0;e<t.length;e++)CT(t[e])}}function tL(e,t){return e(t)}function nL(){}var Pw=!1;function rL(e,t,n){if(Pw)return e(t,n);Pw=!0;try{return tL(e,t,n)}finally{Pw=!1,(rd!==null||od!==null)&&(nL(),eL())}}function Kp(e,t){var n=e.stateNode;if(n===null)return null;var r=Yy(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(He(231,t,typeof n));return n}var cx=!1;if(Sl)try{var Nf={};Object.defineProperty(Nf,"passive",{get:function(){cx=!0}}),window.addEventListener("test",Nf,Nf),window.removeEventListener("test",Nf,Nf)}catch(e){cx=!1}function cG(e,t,n,r,o,s,i,l,a){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(f){this.onError(f)}}var Pp=!1,$v=null,Rv=!1,ux=null,uG={onError:function(e){Pp=!0,$v=e}};function dG(e,t,n,r,o,s,i,l,a){Pp=!1,$v=null,cG.apply(uG,arguments)}function fG(e,t,n,r,o,s,i,l,a){if(dG.apply(this,arguments),Pp){if(Pp){var c=$v;Pp=!1,$v=null}else throw Error(He(198));Rv||(Rv=!0,ux=c)}}function Hc(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function oL(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function xT(e){if(Hc(e)!==e)throw Error(He(188))}function pG(e){var t=e.alternate;if(!t){if(t=Hc(e),t===null)throw Error(He(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return xT(o),e;if(s===r)return xT(o),t;s=s.sibling}throw Error(He(188))}if(n.return!==r.return)n=o,r=s;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,r=s;break}if(l===r){i=!0,r=o,n=s;break}l=l.sibling}if(!i){for(l=s.child;l;){if(l===n){i=!0,n=s,r=o;break}if(l===r){i=!0,r=s,n=o;break}l=l.sibling}if(!i)throw Error(He(189))}}if(n.alternate!==r)throw Error(He(190))}if(n.tag!==3)throw Error(He(188));return n.stateNode.current===n?e:t}function sL(e){return e=pG(e),e!==null?iL(e):null}function iL(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=iL(e);if(t!==null)return t;e=e.sibling}return null}var lL=es.unstable_scheduleCallback,ST=es.unstable_cancelCallback,hG=es.unstable_shouldYield,mG=es.unstable_requestPaint,tr=es.unstable_now,gG=es.unstable_getCurrentPriorityLevel,hP=es.unstable_ImmediatePriority,aL=es.unstable_UserBlockingPriority,Ov=es.unstable_NormalPriority,vG=es.unstable_LowPriority,cL=es.unstable_IdlePriority,Wy=null,Ai=null;function yG(e){if(Ai&&typeof Ai.onCommitFiberRoot=="function")try{Ai.onCommitFiberRoot(Wy,e,void 0,(e.current.flags&128)===128)}catch(t){}}var ui=Math.clz32?Math.clz32:CG,bG=Math.log,wG=Math.LN2;function CG(e){return e>>>=0,e===0?32:31-(bG(e)/wG|0)|0}var pg=64,hg=4194304;function up(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 Dv(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~o;l!==0?r=up(l):(s&=i,s!==0&&(r=up(s)))}else i=n&~o,i!==0?r=up(i):s!==0&&(r=up(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-ui(t),o=1<<n,r|=e[n],t&=~o;return r}function xG(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function SG(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-ui(s),l=1<<i,a=o[i];a===-1?(!(l&n)||l&r)&&(o[i]=xG(l,t)):a<=t&&(e.expiredLanes|=l),s&=~l}}function dx(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function uL(){var e=pg;return pg<<=1,!(pg&4194240)&&(pg=64),e}function Ew(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Nh(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ui(t),e[t]=n}function PG(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<n;){var o=31-ui(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function mP(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ui(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var fn=0;function dL(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var fL,gP,pL,hL,mL,fx=!1,mg=[],ba=null,wa=null,Ca=null,qp=new Map,Yp=new Map,ua=[],EG="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function PT(e,t){switch(e){case"focusin":case"focusout":ba=null;break;case"dragenter":case"dragleave":wa=null;break;case"mouseover":case"mouseout":Ca=null;break;case"pointerover":case"pointerout":qp.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yp.delete(t.pointerId)}}function Bf(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=jh(t),t!==null&&gP(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function kG(e,t,n,r,o){switch(t){case"focusin":return ba=Bf(ba,e,t,n,r,o),!0;case"dragenter":return wa=Bf(wa,e,t,n,r,o),!0;case"mouseover":return Ca=Bf(Ca,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return qp.set(s,Bf(qp.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,Yp.set(s,Bf(Yp.get(s)||null,e,t,n,r,o)),!0}return!1}function gL(e){var t=pc(e.target);if(t!==null){var n=Hc(t);if(n!==null){if(t=n.tag,t===13){if(t=oL(n),t!==null){e.blockedOn=t,mL(e.priority,function(){pL(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ev(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=px(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);lx=r,n.target.dispatchEvent(r),lx=null}else return t=jh(n),t!==null&&gP(t),e.blockedOn=n,!1;t.shift()}return!0}function ET(e,t,n){ev(e)&&n.delete(t)}function IG(){fx=!1,ba!==null&&ev(ba)&&(ba=null),wa!==null&&ev(wa)&&(wa=null),Ca!==null&&ev(Ca)&&(Ca=null),qp.forEach(ET),Yp.forEach(ET)}function jf(e,t){e.blockedOn===t&&(e.blockedOn=null,fx||(fx=!0,es.unstable_scheduleCallback(es.unstable_NormalPriority,IG)))}function Qp(e){function t(o){return jf(o,e)}if(0<mg.length){jf(mg[0],e);for(var n=1;n<mg.length;n++){var r=mg[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ba!==null&&jf(ba,e),wa!==null&&jf(wa,e),Ca!==null&&jf(Ca,e),qp.forEach(t),Yp.forEach(t),n=0;n<ua.length;n++)r=ua[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ua.length&&(n=ua[0],n.blockedOn===null);)gL(n),n.blockedOn===null&&ua.shift()}var sd=Al.ReactCurrentBatchConfig,Av=!0;function MG(e,t,n,r){var o=fn,s=sd.transition;sd.transition=null;try{fn=1,vP(e,t,n,r)}finally{fn=o,sd.transition=s}}function _G(e,t,n,r){var o=fn,s=sd.transition;sd.transition=null;try{fn=4,vP(e,t,n,r)}finally{fn=o,sd.transition=s}}function vP(e,t,n,r){if(Av){var o=px(e,t,n,r);if(o===null)Aw(e,t,r,Lv,n),PT(e,r);else if(kG(o,e,t,n,r))r.stopPropagation();else if(PT(e,r),t&4&&-1<EG.indexOf(e)){for(;o!==null;){var s=jh(o);if(s!==null&&fL(s),s=px(e,t,n,r),s===null&&Aw(e,t,r,Lv,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else Aw(e,t,r,null,n)}}var Lv=null;function px(e,t,n,r){if(Lv=null,e=pP(r),e=pc(e),e!==null)if(t=Hc(e),t===null)e=null;else if(n=t.tag,n===13){if(e=oL(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Lv=e,null}function vL(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(gG()){case hP:return 1;case aL:return 4;case Ov:case vG:return 16;case cL:return 536870912;default:return 16}default:return 16}}var pa=null,yP=null,tv=null;function yL(){if(tv)return tv;var e,t=yP,n=t.length,r,o="value"in pa?pa.value:pa.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[s-r];r++);return tv=o.slice(e,1<r?1-r:void 0)}function nv(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function gg(){return!0}function kT(){return!1}function cs(e){function t(n,r,o,s,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?gg:kT,this.isPropagationStopped=kT,this}return Vn(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=gg)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=gg)},persist:function(){},isPersistent:gg}),t}var Kd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bP=cs(Kd),Bh=Vn({},Kd,{view:0,detail:0}),TG=cs(Bh),kw,Iw,zf,Gy=Vn({},Bh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wP,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==zf&&(zf&&e.type==="mousemove"?(kw=e.screenX-zf.screenX,Iw=e.screenY-zf.screenY):Iw=kw=0,zf=e),kw)},movementY:function(e){return"movementY"in e?e.movementY:Iw}}),IT=cs(Gy),$G=Vn({},Gy,{dataTransfer:0}),RG=cs($G),OG=Vn({},Bh,{relatedTarget:0}),Mw=cs(OG),DG=Vn({},Kd,{animationName:0,elapsedTime:0,pseudoElement:0}),AG=cs(DG),LG=Vn({},Kd,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),FG=cs(LG),NG=Vn({},Kd,{data:0}),MT=cs(NG),BG={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jG={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},zG={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function VG(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=zG[e])?!!t[e]:!1}function wP(){return VG}var HG=Vn({},Bh,{key:function(e){if(e.key){var t=BG[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=nv(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?jG[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wP,charCode:function(e){return e.type==="keypress"?nv(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?nv(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),UG=cs(HG),WG=Vn({},Gy,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_T=cs(WG),GG=Vn({},Bh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wP}),KG=cs(GG),qG=Vn({},Kd,{propertyName:0,elapsedTime:0,pseudoElement:0}),YG=cs(qG),QG=Vn({},Gy,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),XG=cs(QG),ZG=[9,13,27,32],CP=Sl&&"CompositionEvent"in window,Ep=null;Sl&&"documentMode"in document&&(Ep=document.documentMode);var JG=Sl&&"TextEvent"in window&&!Ep,bL=Sl&&(!CP||Ep&&8<Ep&&11>=Ep),TT=String.fromCharCode(32),$T=!1;function wL(e,t){switch(e){case"keyup":return ZG.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function CL(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nu=!1;function eK(e,t){switch(e){case"compositionend":return CL(t);case"keypress":return t.which!==32?null:($T=!0,TT);case"textInput":return e=t.data,e===TT&&$T?null:e;default:return null}}function tK(e,t){if(Nu)return e==="compositionend"||!CP&&wL(e,t)?(e=yL(),tv=yP=pa=null,Nu=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return bL&&t.locale!=="ko"?null:t.data;default:return null}}var nK={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function RT(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!nK[e.type]:t==="textarea"}function xL(e,t,n,r){JA(r),t=Fv(t,"onChange"),0<t.length&&(n=new bP("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var kp=null,Xp=null;function rK(e){OL(e,0)}function Ky(e){var t=zu(e);if(GA(t))return e}function oK(e,t){if(e==="change")return t}var SL=!1;if(Sl){var _w;if(Sl){var Tw="oninput"in document;if(!Tw){var OT=document.createElement("div");OT.setAttribute("oninput","return;"),Tw=typeof OT.oninput=="function"}_w=Tw}else _w=!1;SL=_w&&(!document.documentMode||9<document.documentMode)}function DT(){kp&&(kp.detachEvent("onpropertychange",PL),Xp=kp=null)}function PL(e){if(e.propertyName==="value"&&Ky(Xp)){var t=[];xL(t,Xp,e,pP(e)),rL(rK,t)}}function sK(e,t,n){e==="focusin"?(DT(),kp=t,Xp=n,kp.attachEvent("onpropertychange",PL)):e==="focusout"&&DT()}function iK(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ky(Xp)}function lK(e,t){if(e==="click")return Ky(t)}function aK(e,t){if(e==="input"||e==="change")return Ky(t)}function cK(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mi=typeof Object.is=="function"?Object.is:cK;function Zp(e,t){if(mi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!YC.call(t,o)||!mi(e[o],t[o]))return!1}return!0}function AT(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function LT(e,t){var n=AT(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=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=AT(n)}}function EL(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?EL(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function kL(){for(var e=window,t=Tv();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch(r){n=!1}if(n)e=t.contentWindow;else break;t=Tv(e.document)}return t}function xP(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 uK(e){var t=kL(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&EL(n.ownerDocument.documentElement,n)){if(r!==null&&xP(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,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=LT(n,s);var i=LT(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var dK=Sl&&"documentMode"in document&&11>=document.documentMode,Bu=null,hx=null,Ip=null,mx=!1;function FT(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mx||Bu==null||Bu!==Tv(r)||(r=Bu,"selectionStart"in r&&xP(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}),Ip&&Zp(Ip,r)||(Ip=r,r=Fv(hx,"onSelect"),0<r.length&&(t=new bP("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Bu)))}function vg(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ju={animationend:vg("Animation","AnimationEnd"),animationiteration:vg("Animation","AnimationIteration"),animationstart:vg("Animation","AnimationStart"),transitionend:vg("Transition","TransitionEnd")},$w={},IL={};Sl&&(IL=document.createElement("div").style,"AnimationEvent"in window||(delete ju.animationend.animation,delete ju.animationiteration.animation,delete ju.animationstart.animation),"TransitionEvent"in window||delete ju.transitionend.transition);function qy(e){if($w[e])return $w[e];if(!ju[e])return e;var t=ju[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in IL)return $w[e]=t[n];return e}var ML=qy("animationend"),_L=qy("animationiteration"),TL=qy("animationstart"),$L=qy("transitionend"),RL=new Map,NT="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Na(e,t){RL.set(e,t),Vc(t,[e])}for(var Rw=0;Rw<NT.length;Rw++){var Ow=NT[Rw],fK=Ow.toLowerCase(),pK=Ow[0].toUpperCase()+Ow.slice(1);Na(fK,"on"+pK)}Na(ML,"onAnimationEnd");Na(_L,"onAnimationIteration");Na(TL,"onAnimationStart");Na("dblclick","onDoubleClick");Na("focusin","onFocus");Na("focusout","onBlur");Na($L,"onTransitionEnd");yd("onMouseEnter",["mouseout","mouseover"]);yd("onMouseLeave",["mouseout","mouseover"]);yd("onPointerEnter",["pointerout","pointerover"]);yd("onPointerLeave",["pointerout","pointerover"]);Vc("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Vc("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Vc("onBeforeInput",["compositionend","keypress","textInput","paste"]);Vc("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Vc("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Vc("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var dp="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),hK=new Set("cancel close invalid load scroll toggle".split(" ").concat(dp));function BT(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,fG(r,t,void 0,e),e.currentTarget=null}function OL(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],a=l.instance,c=l.currentTarget;if(l=l.listener,a!==s&&o.isPropagationStopped())break e;BT(o,l,c),s=a}else for(i=0;i<r.length;i++){if(l=r[i],a=l.instance,c=l.currentTarget,l=l.listener,a!==s&&o.isPropagationStopped())break e;BT(o,l,c),s=a}}}if(Rv)throw e=ux,Rv=!1,ux=null,e}function En(e,t){var n=t[wx];n===void 0&&(n=t[wx]=new Set);var r=e+"__bubble";n.has(r)||(DL(t,e,2,!1),n.add(r))}function Dw(e,t,n){var r=0;t&&(r|=4),DL(n,e,r,t)}var yg="_reactListening"+Math.random().toString(36).slice(2);function Jp(e){if(!e[yg]){e[yg]=!0,zA.forEach(function(n){n!=="selectionchange"&&(hK.has(n)||Dw(n,!1,e),Dw(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[yg]||(t[yg]=!0,Dw("selectionchange",!1,t))}}function DL(e,t,n,r){switch(vL(t)){case 1:var o=MG;break;case 4:o=_G;break;default:o=vP}n=o.bind(null,t,n,e),o=void 0,!cx||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Aw(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var a=i.tag;if((a===3||a===4)&&(a=i.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;i=i.return}for(;l!==null;){if(i=pc(l),i===null)return;if(a=i.tag,a===5||a===6){r=s=i;continue e}l=l.parentNode}}r=r.return}rL(function(){var c=s,f=pP(n),p=[];e:{var h=RL.get(e);if(h!==void 0){var y=bP,v=e;switch(e){case"keypress":if(nv(n)===0)break e;case"keydown":case"keyup":y=UG;break;case"focusin":v="focus",y=Mw;break;case"focusout":v="blur",y=Mw;break;case"beforeblur":case"afterblur":y=Mw;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=IT;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=RG;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=KG;break;case ML:case _L:case TL:y=AG;break;case $L:y=YG;break;case"scroll":y=TG;break;case"wheel":y=XG;break;case"copy":case"cut":case"paste":y=FG;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=_T}var m=(t&4)!==0,C=!m&&e==="scroll",w=m?h!==null?h+"Capture":null:h;m=[];for(var b=c,x;b!==null;){x=b;var P=x.stateNode;if(x.tag===5&&P!==null&&(x=P,w!==null&&(P=Kp(b,w),P!=null&&m.push(eh(b,P,x)))),C)break;b=b.return}0<m.length&&(h=new y(h,v,null,n,f),p.push({event:h,listeners:m}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",h&&n!==lx&&(v=n.relatedTarget||n.fromElement)&&(pc(v)||v[Pl]))break e;if((y||h)&&(h=f.window===f?f:(h=f.ownerDocument)?h.defaultView||h.parentWindow:window,y?(v=n.relatedTarget||n.toElement,y=c,v=v?pc(v):null,v!==null&&(C=Hc(v),v!==C||v.tag!==5&&v.tag!==6)&&(v=null)):(y=null,v=c),y!==v)){if(m=IT,P="onMouseLeave",w="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(m=_T,P="onPointerLeave",w="onPointerEnter",b="pointer"),C=y==null?h:zu(y),x=v==null?h:zu(v),h=new m(P,b+"leave",y,n,f),h.target=C,h.relatedTarget=x,P=null,pc(f)===c&&(m=new m(w,b+"enter",v,n,f),m.target=x,m.relatedTarget=C,P=m),C=P,y&&v)t:{for(m=y,w=v,b=0,x=m;x;x=pu(x))b++;for(x=0,P=w;P;P=pu(P))x++;for(;0<b-x;)m=pu(m),b--;for(;0<x-b;)w=pu(w),x--;for(;b--;){if(m===w||w!==null&&m===w.alternate)break t;m=pu(m),w=pu(w)}m=null}else m=null;y!==null&&jT(p,h,y,m,!1),v!==null&&C!==null&&jT(p,C,v,m,!0)}}e:{if(h=c?zu(c):window,y=h.nodeName&&h.nodeName.toLowerCase(),y==="select"||y==="input"&&h.type==="file")var k=oK;else if(RT(h))if(SL)k=aK;else{k=iK;var E=sK}else(y=h.nodeName)&&y.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(k=lK);if(k&&(k=k(e,c))){xL(p,k,n,f);break e}E&&E(e,h,c),e==="focusout"&&(E=h._wrapperState)&&E.controlled&&h.type==="number"&&nx(h,"number",h.value)}switch(E=c?zu(c):window,e){case"focusin":(RT(E)||E.contentEditable==="true")&&(Bu=E,hx=c,Ip=null);break;case"focusout":Ip=hx=Bu=null;break;case"mousedown":mx=!0;break;case"contextmenu":case"mouseup":case"dragend":mx=!1,FT(p,n,f);break;case"selectionchange":if(dK)break;case"keydown":case"keyup":FT(p,n,f)}var I;if(CP)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else Nu?wL(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(bL&&n.locale!=="ko"&&(Nu||R!=="onCompositionStart"?R==="onCompositionEnd"&&Nu&&(I=yL()):(pa=f,yP="value"in pa?pa.value:pa.textContent,Nu=!0)),E=Fv(c,R),0<E.length&&(R=new MT(R,e,null,n,f),p.push({event:R,listeners:E}),I?R.data=I:(I=CL(n),I!==null&&(R.data=I)))),(I=JG?eK(e,n):tK(e,n))&&(c=Fv(c,"onBeforeInput"),0<c.length&&(f=new MT("onBeforeInput","beforeinput",null,n,f),p.push({event:f,listeners:c}),f.data=I))}OL(p,t)})}function eh(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Fv(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=Kp(e,n),s!=null&&r.unshift(eh(e,s,o)),s=Kp(e,t),s!=null&&r.push(eh(e,s,o))),e=e.return}return r}function pu(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function jT(e,t,n,r,o){for(var s=t._reactName,i=[];n!==null&&n!==r;){var l=n,a=l.alternate,c=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&c!==null&&(l=c,o?(a=Kp(n,s),a!=null&&i.unshift(eh(n,a,l))):o||(a=Kp(n,s),a!=null&&i.push(eh(n,a,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var mK=/\r\n?/g,gK=/\u0000|\uFFFD/g;function zT(e){return(typeof e=="string"?e:""+e).replace(mK,`
30
+ `).replace(gK,"")}function bg(e,t,n){if(t=zT(t),zT(e)!==t&&n)throw Error(He(425))}function Nv(){}var gx=null,vx=null;function yx(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var bx=typeof setTimeout=="function"?setTimeout:void 0,vK=typeof clearTimeout=="function"?clearTimeout:void 0,VT=typeof Promise=="function"?Promise:void 0,yK=typeof queueMicrotask=="function"?queueMicrotask:typeof VT!="undefined"?function(e){return VT.resolve(null).then(e).catch(bK)}:bx;function bK(e){setTimeout(function(){throw e})}function Lw(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Qp(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Qp(t)}function xa(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function HT(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var qd=Math.random().toString(36).slice(2),Oi="__reactFiber$"+qd,th="__reactProps$"+qd,Pl="__reactContainer$"+qd,wx="__reactEvents$"+qd,wK="__reactListeners$"+qd,CK="__reactHandles$"+qd;function pc(e){var t=e[Oi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Pl]||n[Oi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=HT(e);e!==null;){if(n=e[Oi])return n;e=HT(e)}return t}e=n,n=e.parentNode}return null}function jh(e){return e=e[Oi]||e[Pl],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function zu(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(He(33))}function Yy(e){return e[th]||null}var Cx=[],Vu=-1;function Ba(e){return{current:e}}function Mn(e){0>Vu||(e.current=Cx[Vu],Cx[Vu]=null,Vu--)}function Cn(e,t){Vu++,Cx[Vu]=e.current,e.current=t}var Oa={},Yr=Ba(Oa),Io=Ba(!1),_c=Oa;function bd(e,t){var n=e.type.contextTypes;if(!n)return Oa;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Mo(e){return e=e.childContextTypes,e!=null}function Bv(){Mn(Io),Mn(Yr)}function UT(e,t,n){if(Yr.current!==Oa)throw Error(He(168));Cn(Yr,t),Cn(Io,n)}function AL(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(He(108,sG(e)||"Unknown",o));return Vn({},n,r)}function jv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oa,_c=Yr.current,Cn(Yr,e),Cn(Io,Io.current),!0}function WT(e,t,n){var r=e.stateNode;if(!r)throw Error(He(169));n?(e=AL(e,t,_c),r.__reactInternalMemoizedMergedChildContext=e,Mn(Io),Mn(Yr),Cn(Yr,e)):Mn(Io),Cn(Io,n)}var dl=null,Qy=!1,Fw=!1;function LL(e){dl===null?dl=[e]:dl.push(e)}function xK(e){Qy=!0,LL(e)}function ja(){if(!Fw&&dl!==null){Fw=!0;var e=0,t=fn;try{var n=dl;for(fn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}dl=null,Qy=!1}catch(o){throw dl!==null&&(dl=dl.slice(e+1)),lL(hP,ja),o}finally{fn=t,Fw=!1}}return null}var Hu=[],Uu=0,zv=null,Vv=0,_s=[],Ts=0,Tc=null,ml=1,gl="";function ac(e,t){Hu[Uu++]=Vv,Hu[Uu++]=zv,zv=e,Vv=t}function FL(e,t,n){_s[Ts++]=ml,_s[Ts++]=gl,_s[Ts++]=Tc,Tc=e;var r=ml;e=gl;var o=32-ui(r)-1;r&=~(1<<o),n+=1;var s=32-ui(t)+o;if(30<s){var i=o-o%5;s=(r&(1<<i)-1).toString(32),r>>=i,o-=i,ml=1<<32-ui(t)+o|n<<o|r,gl=s+e}else ml=1<<s|n<<o|r,gl=e}function SP(e){e.return!==null&&(ac(e,1),FL(e,1,0))}function PP(e){for(;e===zv;)zv=Hu[--Uu],Hu[Uu]=null,Vv=Hu[--Uu],Hu[Uu]=null;for(;e===Tc;)Tc=_s[--Ts],_s[Ts]=null,gl=_s[--Ts],_s[Ts]=null,ml=_s[--Ts],_s[Ts]=null}var Xo=null,Qo=null,An=!1,oi=null;function NL(e,t){var n=Rs(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function GT(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Xo=e,Qo=xa(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Xo=e,Qo=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Tc!==null?{id:ml,overflow:gl}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Rs(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Xo=e,Qo=null,!0):!1;default:return!1}}function xx(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Sx(e){if(An){var t=Qo;if(t){var n=t;if(!GT(e,t)){if(xx(e))throw Error(He(418));t=xa(n.nextSibling);var r=Xo;t&&GT(e,t)?NL(r,n):(e.flags=e.flags&-4097|2,An=!1,Xo=e)}}else{if(xx(e))throw Error(He(418));e.flags=e.flags&-4097|2,An=!1,Xo=e}}}function KT(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Xo=e}function wg(e){if(e!==Xo)return!1;if(!An)return KT(e),An=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!yx(e.type,e.memoizedProps)),t&&(t=Qo)){if(xx(e))throw BL(),Error(He(418));for(;t;)NL(e,t),t=xa(t.nextSibling)}if(KT(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(He(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Qo=xa(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Qo=null}}else Qo=Xo?xa(e.stateNode.nextSibling):null;return!0}function BL(){for(var e=Qo;e;)e=xa(e.nextSibling)}function wd(){Qo=Xo=null,An=!1}function EP(e){oi===null?oi=[e]:oi.push(e)}var SK=Al.ReactCurrentBatchConfig;function ti(e,t){if(e&&e.defaultProps){t=Vn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Hv=Ba(null),Uv=null,Wu=null,kP=null;function IP(){kP=Wu=Uv=null}function MP(e){var t=Hv.current;Mn(Hv),e._currentValue=t}function Px(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function id(e,t){Uv=e,kP=Wu=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ko=!0),e.firstContext=null)}function Ls(e){var t=e._currentValue;if(kP!==e)if(e={context:e,memoizedValue:t,next:null},Wu===null){if(Uv===null)throw Error(He(308));Wu=e,Uv.dependencies={lanes:0,firstContext:e}}else Wu=Wu.next=e;return t}var hc=null;function _P(e){hc===null?hc=[e]:hc.push(e)}function jL(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,_P(t)):(n.next=o.next,o.next=n),t.interleaved=n,El(e,r)}function El(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ia=!1;function TP(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zL(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function wl(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Sa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Xt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,El(e,n)}return o=r.interleaved,o===null?(t.next=t,_P(r)):(t.next=o.next,o.next=t),r.interleaved=t,El(e,n)}function rv(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mP(e,n)}}function qT(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Wv(e,t,n,r){var o=e.updateQueue;ia=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,c=a.next;a.next=null,i===null?s=c:i.next=c,i=a;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==i&&(l===null?f.firstBaseUpdate=c:l.next=c,f.lastBaseUpdate=a))}if(s!==null){var p=o.baseState;i=0,f=c=a=null,l=s;do{var h=l.lane,y=l.eventTime;if((r&h)===h){f!==null&&(f=f.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=e,m=l;switch(h=t,y=n,m.tag){case 1:if(v=m.payload,typeof v=="function"){p=v.call(y,p,h);break e}p=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=m.payload,h=typeof v=="function"?v.call(y,p,h):v,h==null)break e;p=Vn({},p,h);break e;case 2:ia=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[l]:h.push(l))}else y={eventTime:y,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(c=f=y,a=p):f=f.next=y,i|=h;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;h=l,l=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(1);if(f===null&&(a=p),o.baseState=a,o.firstBaseUpdate=c,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Rc|=i,e.lanes=i,e.memoizedState=p}}function YT(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(He(191,o));o.call(r)}}}var VL=new jA.Component().refs;function Ex(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Vn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Xy={isMounted:function(e){return(e=e._reactInternals)?Hc(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ao(),o=Ea(e),s=wl(r,o);s.payload=t,n!=null&&(s.callback=n),t=Sa(e,s,o),t!==null&&(di(t,e,o,r),rv(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ao(),o=Ea(e),s=wl(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Sa(e,s,o),t!==null&&(di(t,e,o,r),rv(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ao(),r=Ea(e),o=wl(n,r);o.tag=2,t!=null&&(o.callback=t),t=Sa(e,o,r),t!==null&&(di(t,e,r,n),rv(t,e,r))}};function QT(e,t,n,r,o,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,i):t.prototype&&t.prototype.isPureReactComponent?!Zp(n,r)||!Zp(o,s):!0}function HL(e,t,n){var r=!1,o=Oa,s=t.contextType;return typeof s=="object"&&s!==null?s=Ls(s):(o=Mo(t)?_c:Yr.current,r=t.contextTypes,s=(r=r!=null)?bd(e,o):Oa),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Xy,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function XT(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Xy.enqueueReplaceState(t,t.state,null)}function kx(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=VL,TP(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=Ls(s):(s=Mo(t)?_c:Yr.current,o.context=bd(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Ex(e,t,s,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Xy.enqueueReplaceState(o,o.state,null),Wv(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Vf(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(He(309));var r=n.stateNode}if(!r)throw Error(He(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(i){var l=o.refs;l===VL&&(l=o.refs={}),i===null?delete l[s]:l[s]=i},t._stringRef=s,t)}if(typeof e!="string")throw Error(He(284));if(!n._owner)throw Error(He(290,e))}return e}function Cg(e,t){throw e=Object.prototype.toString.call(t),Error(He(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ZT(e){var t=e._init;return t(e._payload)}function UL(e){function t(w,b){if(e){var x=w.deletions;x===null?(w.deletions=[b],w.flags|=16):x.push(b)}}function n(w,b){if(!e)return null;for(;b!==null;)t(w,b),b=b.sibling;return null}function r(w,b){for(w=new Map;b!==null;)b.key!==null?w.set(b.key,b):w.set(b.index,b),b=b.sibling;return w}function o(w,b){return w=ka(w,b),w.index=0,w.sibling=null,w}function s(w,b,x){return w.index=x,e?(x=w.alternate,x!==null?(x=x.index,x<b?(w.flags|=2,b):x):(w.flags|=2,b)):(w.flags|=1048576,b)}function i(w){return e&&w.alternate===null&&(w.flags|=2),w}function l(w,b,x,P){return b===null||b.tag!==6?(b=Uw(x,w.mode,P),b.return=w,b):(b=o(b,x),b.return=w,b)}function a(w,b,x,P){var k=x.type;return k===Fu?f(w,b,x.props.children,P,x.key):b!==null&&(b.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===sa&&ZT(k)===b.type)?(P=o(b,x.props),P.ref=Vf(w,b,x),P.return=w,P):(P=cv(x.type,x.key,x.props,null,w.mode,P),P.ref=Vf(w,b,x),P.return=w,P)}function c(w,b,x,P){return b===null||b.tag!==4||b.stateNode.containerInfo!==x.containerInfo||b.stateNode.implementation!==x.implementation?(b=Ww(x,w.mode,P),b.return=w,b):(b=o(b,x.children||[]),b.return=w,b)}function f(w,b,x,P,k){return b===null||b.tag!==7?(b=Cc(x,w.mode,P,k),b.return=w,b):(b=o(b,x),b.return=w,b)}function p(w,b,x){if(typeof b=="string"&&b!==""||typeof b=="number")return b=Uw(""+b,w.mode,x),b.return=w,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case ug:return x=cv(b.type,b.key,b.props,null,w.mode,x),x.ref=Vf(w,null,b),x.return=w,x;case Lu:return b=Ww(b,w.mode,x),b.return=w,b;case sa:var P=b._init;return p(w,P(b._payload),x)}if(cp(b)||Ff(b))return b=Cc(b,w.mode,x,null),b.return=w,b;Cg(w,b)}return null}function h(w,b,x,P){var k=b!==null?b.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return k!==null?null:l(w,b,""+x,P);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case ug:return x.key===k?a(w,b,x,P):null;case Lu:return x.key===k?c(w,b,x,P):null;case sa:return k=x._init,h(w,b,k(x._payload),P)}if(cp(x)||Ff(x))return k!==null?null:f(w,b,x,P,null);Cg(w,x)}return null}function y(w,b,x,P,k){if(typeof P=="string"&&P!==""||typeof P=="number")return w=w.get(x)||null,l(b,w,""+P,k);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case ug:return w=w.get(P.key===null?x:P.key)||null,a(b,w,P,k);case Lu:return w=w.get(P.key===null?x:P.key)||null,c(b,w,P,k);case sa:var E=P._init;return y(w,b,x,E(P._payload),k)}if(cp(P)||Ff(P))return w=w.get(x)||null,f(b,w,P,k,null);Cg(b,P)}return null}function v(w,b,x,P){for(var k=null,E=null,I=b,R=b=0,O=null;I!==null&&R<x.length;R++){I.index>R?(O=I,I=null):O=I.sibling;var $=h(w,I,x[R],P);if($===null){I===null&&(I=O);break}e&&I&&$.alternate===null&&t(w,I),b=s($,b,R),E===null?k=$:E.sibling=$,E=$,I=O}if(R===x.length)return n(w,I),An&&ac(w,R),k;if(I===null){for(;R<x.length;R++)I=p(w,x[R],P),I!==null&&(b=s(I,b,R),E===null?k=I:E.sibling=I,E=I);return An&&ac(w,R),k}for(I=r(w,I);R<x.length;R++)O=y(I,w,R,x[R],P),O!==null&&(e&&O.alternate!==null&&I.delete(O.key===null?R:O.key),b=s(O,b,R),E===null?k=O:E.sibling=O,E=O);return e&&I.forEach(function(L){return t(w,L)}),An&&ac(w,R),k}function m(w,b,x,P){var k=Ff(x);if(typeof k!="function")throw Error(He(150));if(x=k.call(x),x==null)throw Error(He(151));for(var E=k=null,I=b,R=b=0,O=null,$=x.next();I!==null&&!$.done;R++,$=x.next()){I.index>R?(O=I,I=null):O=I.sibling;var L=h(w,I,$.value,P);if(L===null){I===null&&(I=O);break}e&&I&&L.alternate===null&&t(w,I),b=s(L,b,R),E===null?k=L:E.sibling=L,E=L,I=O}if($.done)return n(w,I),An&&ac(w,R),k;if(I===null){for(;!$.done;R++,$=x.next())$=p(w,$.value,P),$!==null&&(b=s($,b,R),E===null?k=$:E.sibling=$,E=$);return An&&ac(w,R),k}for(I=r(w,I);!$.done;R++,$=x.next())$=y(I,w,R,$.value,P),$!==null&&(e&&$.alternate!==null&&I.delete($.key===null?R:$.key),b=s($,b,R),E===null?k=$:E.sibling=$,E=$);return e&&I.forEach(function(j){return t(w,j)}),An&&ac(w,R),k}function C(w,b,x,P){if(typeof x=="object"&&x!==null&&x.type===Fu&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case ug:e:{for(var k=x.key,E=b;E!==null;){if(E.key===k){if(k=x.type,k===Fu){if(E.tag===7){n(w,E.sibling),b=o(E,x.props.children),b.return=w,w=b;break e}}else if(E.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===sa&&ZT(k)===E.type){n(w,E.sibling),b=o(E,x.props),b.ref=Vf(w,E,x),b.return=w,w=b;break e}n(w,E);break}else t(w,E);E=E.sibling}x.type===Fu?(b=Cc(x.props.children,w.mode,P,x.key),b.return=w,w=b):(P=cv(x.type,x.key,x.props,null,w.mode,P),P.ref=Vf(w,b,x),P.return=w,w=P)}return i(w);case Lu:e:{for(E=x.key;b!==null;){if(b.key===E)if(b.tag===4&&b.stateNode.containerInfo===x.containerInfo&&b.stateNode.implementation===x.implementation){n(w,b.sibling),b=o(b,x.children||[]),b.return=w,w=b;break e}else{n(w,b);break}else t(w,b);b=b.sibling}b=Ww(x,w.mode,P),b.return=w,w=b}return i(w);case sa:return E=x._init,C(w,b,E(x._payload),P)}if(cp(x))return v(w,b,x,P);if(Ff(x))return m(w,b,x,P);Cg(w,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,b!==null&&b.tag===6?(n(w,b.sibling),b=o(b,x),b.return=w,w=b):(n(w,b),b=Uw(x,w.mode,P),b.return=w,w=b),i(w)):n(w,b)}return C}var Cd=UL(!0),WL=UL(!1),zh={},Li=Ba(zh),nh=Ba(zh),rh=Ba(zh);function mc(e){if(e===zh)throw Error(He(174));return e}function $P(e,t){switch(Cn(rh,t),Cn(nh,e),Cn(Li,zh),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ox(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ox(t,e)}Mn(Li),Cn(Li,t)}function xd(){Mn(Li),Mn(nh),Mn(rh)}function GL(e){mc(rh.current);var t=mc(Li.current),n=ox(t,e.type);t!==n&&(Cn(nh,e),Cn(Li,n))}function RP(e){nh.current===e&&(Mn(Li),Mn(nh))}var Bn=Ba(0);function Gv(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 Nw=[];function OP(){for(var e=0;e<Nw.length;e++)Nw[e]._workInProgressVersionPrimary=null;Nw.length=0}var ov=Al.ReactCurrentDispatcher,Bw=Al.ReactCurrentBatchConfig,$c=0,zn=null,hr=null,Cr=null,Kv=!1,Mp=!1,oh=0,PK=0;function Br(){throw Error(He(321))}function DP(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!mi(e[n],t[n]))return!1;return!0}function AP(e,t,n,r,o,s){if($c=s,zn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ov.current=e===null||e.memoizedState===null?MK:_K,e=n(r,o),Mp){s=0;do{if(Mp=!1,oh=0,25<=s)throw Error(He(301));s+=1,Cr=hr=null,t.updateQueue=null,ov.current=TK,e=n(r,o)}while(Mp)}if(ov.current=qv,t=hr!==null&&hr.next!==null,$c=0,Cr=hr=zn=null,Kv=!1,t)throw Error(He(300));return e}function LP(){var e=oh!==0;return oh=0,e}function Mi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Cr===null?zn.memoizedState=Cr=e:Cr=Cr.next=e,Cr}function Fs(){if(hr===null){var e=zn.alternate;e=e!==null?e.memoizedState:null}else e=hr.next;var t=Cr===null?zn.memoizedState:Cr.next;if(t!==null)Cr=t,hr=e;else{if(e===null)throw Error(He(310));hr=e,e={memoizedState:hr.memoizedState,baseState:hr.baseState,baseQueue:hr.baseQueue,queue:hr.queue,next:null},Cr===null?zn.memoizedState=Cr=e:Cr=Cr.next=e}return Cr}function sh(e,t){return typeof t=="function"?t(e):t}function jw(e){var t=Fs(),n=t.queue;if(n===null)throw Error(He(311));n.lastRenderedReducer=e;var r=hr,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var i=o.next;o.next=s.next,s.next=i}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var l=i=null,a=null,c=s;do{var f=c.lane;if(($c&f)===f)a!==null&&(a=a.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var p={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};a===null?(l=a=p,i=r):a=a.next=p,zn.lanes|=f,Rc|=f}c=c.next}while(c!==null&&c!==s);a===null?i=r:a.next=l,mi(r,t.memoizedState)||(ko=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,zn.lanes|=s,Rc|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function zw(e){var t=Fs(),n=t.queue;if(n===null)throw Error(He(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do s=e(s,i.action),i=i.next;while(i!==o);mi(s,t.memoizedState)||(ko=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function KL(){}function qL(e,t){var n=zn,r=Fs(),o=t(),s=!mi(r.memoizedState,o);if(s&&(r.memoizedState=o,ko=!0),r=r.queue,FP(XL.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Cr!==null&&Cr.memoizedState.tag&1){if(n.flags|=2048,ih(9,QL.bind(null,n,r,o,t),void 0,null),Sr===null)throw Error(He(349));$c&30||YL(n,t,o)}return o}function YL(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=zn.updateQueue,t===null?(t={lastEffect:null,stores:null},zn.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function QL(e,t,n,r){t.value=n,t.getSnapshot=r,ZL(t)&&JL(e)}function XL(e,t,n){return n(function(){ZL(t)&&JL(e)})}function ZL(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!mi(e,n)}catch(r){return!0}}function JL(e){var t=El(e,1);t!==null&&di(t,e,1,-1)}function JT(e){var t=Mi();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:sh,lastRenderedState:e},t.queue=e,e=e.dispatch=IK.bind(null,zn,e),[t.memoizedState,e]}function ih(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=zn.updateQueue,t===null?(t={lastEffect:null,stores:null},zn.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function eF(){return Fs().memoizedState}function sv(e,t,n,r){var o=Mi();zn.flags|=e,o.memoizedState=ih(1|t,n,void 0,r===void 0?null:r)}function Zy(e,t,n,r){var o=Fs();r=r===void 0?null:r;var s=void 0;if(hr!==null){var i=hr.memoizedState;if(s=i.destroy,r!==null&&DP(r,i.deps)){o.memoizedState=ih(t,n,s,r);return}}zn.flags|=e,o.memoizedState=ih(1|t,n,s,r)}function e$(e,t){return sv(8390656,8,e,t)}function FP(e,t){return Zy(2048,8,e,t)}function tF(e,t){return Zy(4,2,e,t)}function nF(e,t){return Zy(4,4,e,t)}function rF(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function oF(e,t,n){return n=n!=null?n.concat([e]):null,Zy(4,4,rF.bind(null,t,e),n)}function NP(){}function sF(e,t){var n=Fs();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&DP(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function iF(e,t){var n=Fs();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&DP(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function lF(e,t,n){return $c&21?(mi(n,t)||(n=uL(),zn.lanes|=n,Rc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ko=!0),e.memoizedState=n)}function EK(e,t){var n=fn;fn=n!==0&&4>n?n:4,e(!0);var r=Bw.transition;Bw.transition={};try{e(!1),t()}finally{fn=n,Bw.transition=r}}function aF(){return Fs().memoizedState}function kK(e,t,n){var r=Ea(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},cF(e))uF(t,n);else if(n=jL(e,t,n,r),n!==null){var o=ao();di(n,e,r,o),dF(n,t,r)}}function IK(e,t,n){var r=Ea(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(cF(e))uF(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,l=s(i,n);if(o.hasEagerState=!0,o.eagerState=l,mi(l,i)){var a=t.interleaved;a===null?(o.next=o,_P(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch(c){}finally{}n=jL(e,t,o,r),n!==null&&(o=ao(),di(n,e,r,o),dF(n,t,r))}}function cF(e){var t=e.alternate;return e===zn||t!==null&&t===zn}function uF(e,t){Mp=Kv=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dF(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mP(e,n)}}var qv={readContext:Ls,useCallback:Br,useContext:Br,useEffect:Br,useImperativeHandle:Br,useInsertionEffect:Br,useLayoutEffect:Br,useMemo:Br,useReducer:Br,useRef:Br,useState:Br,useDebugValue:Br,useDeferredValue:Br,useTransition:Br,useMutableSource:Br,useSyncExternalStore:Br,useId:Br,unstable_isNewReconciler:!1},MK={readContext:Ls,useCallback:function(e,t){return Mi().memoizedState=[e,t===void 0?null:t],e},useContext:Ls,useEffect:e$,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,sv(4194308,4,rF.bind(null,t,e),n)},useLayoutEffect:function(e,t){return sv(4194308,4,e,t)},useInsertionEffect:function(e,t){return sv(4,2,e,t)},useMemo:function(e,t){var n=Mi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mi();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=kK.bind(null,zn,e),[r.memoizedState,e]},useRef:function(e){var t=Mi();return e={current:e},t.memoizedState=e},useState:JT,useDebugValue:NP,useDeferredValue:function(e){return Mi().memoizedState=e},useTransition:function(){var e=JT(!1),t=e[0];return e=EK.bind(null,e[1]),Mi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=zn,o=Mi();if(An){if(n===void 0)throw Error(He(407));n=n()}else{if(n=t(),Sr===null)throw Error(He(349));$c&30||YL(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,e$(XL.bind(null,r,s,e),[e]),r.flags|=2048,ih(9,QL.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Mi(),t=Sr.identifierPrefix;if(An){var n=gl,r=ml;n=(r&~(1<<32-ui(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=oh++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=PK++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},_K={readContext:Ls,useCallback:sF,useContext:Ls,useEffect:FP,useImperativeHandle:oF,useInsertionEffect:tF,useLayoutEffect:nF,useMemo:iF,useReducer:jw,useRef:eF,useState:function(){return jw(sh)},useDebugValue:NP,useDeferredValue:function(e){var t=Fs();return lF(t,hr.memoizedState,e)},useTransition:function(){var e=jw(sh)[0],t=Fs().memoizedState;return[e,t]},useMutableSource:KL,useSyncExternalStore:qL,useId:aF,unstable_isNewReconciler:!1},TK={readContext:Ls,useCallback:sF,useContext:Ls,useEffect:FP,useImperativeHandle:oF,useInsertionEffect:tF,useLayoutEffect:nF,useMemo:iF,useReducer:zw,useRef:eF,useState:function(){return zw(sh)},useDebugValue:NP,useDeferredValue:function(e){var t=Fs();return hr===null?t.memoizedState=e:lF(t,hr.memoizedState,e)},useTransition:function(){var e=zw(sh)[0],t=Fs().memoizedState;return[e,t]},useMutableSource:KL,useSyncExternalStore:qL,useId:aF,unstable_isNewReconciler:!1};function Sd(e,t){try{var n="",r=t;do n+=oG(r),r=r.return;while(r);var o=n}catch(s){o=`
31
+ Error generating stack: `+s.message+`
32
+ `+s.stack}return{value:e,source:t,stack:o,digest:null}}function Vw(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function Ix(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var $K=typeof WeakMap=="function"?WeakMap:Map;function fF(e,t,n){n=wl(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Qv||(Qv=!0,Fx=r),Ix(e,t)},n}function pF(e,t,n){n=wl(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Ix(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Ix(e,t),typeof r!="function"&&(Pa===null?Pa=new Set([this]):Pa.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function t$(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new $K;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=WK.bind(null,e,t,n),t.then(e,e))}function n$(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function r$(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=wl(-1,1),t.tag=2,Sa(n,t,1))),n.lanes|=1),e)}var RK=Al.ReactCurrentOwner,ko=!1;function oo(e,t,n,r){t.child=e===null?WL(t,null,n,r):Cd(t,e.child,n,r)}function o$(e,t,n,r,o){n=n.render;var s=t.ref;return id(t,o),r=AP(e,t,n,r,s,o),n=LP(),e!==null&&!ko?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,kl(e,t,o)):(An&&n&&SP(t),t.flags|=1,oo(e,t,r,o),t.child)}function s$(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!GP(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,hF(e,t,s,r,o)):(e=cv(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var i=s.memoizedProps;if(n=n.compare,n=n!==null?n:Zp,n(i,r)&&e.ref===t.ref)return kl(e,t,o)}return t.flags|=1,e=ka(s,r),e.ref=t.ref,e.return=t,t.child=e}function hF(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(Zp(s,r)&&e.ref===t.ref)if(ko=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(ko=!0);else return t.lanes=e.lanes,kl(e,t,o)}return Mx(e,t,n,r,o)}function mF(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Cn(Ku,Vo),Vo|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Cn(Ku,Vo),Vo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,Cn(Ku,Vo),Vo|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,Cn(Ku,Vo),Vo|=r;return oo(e,t,o,n),t.child}function gF(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Mx(e,t,n,r,o){var s=Mo(n)?_c:Yr.current;return s=bd(t,s),id(t,o),n=AP(e,t,n,r,s,o),r=LP(),e!==null&&!ko?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,kl(e,t,o)):(An&&r&&SP(t),t.flags|=1,oo(e,t,n,o),t.child)}function i$(e,t,n,r,o){if(Mo(n)){var s=!0;jv(t)}else s=!1;if(id(t,o),t.stateNode===null)iv(e,t),HL(t,n,r),kx(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var a=i.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ls(c):(c=Mo(n)?_c:Yr.current,c=bd(t,c));var f=n.getDerivedStateFromProps,p=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function";p||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||a!==c)&&XT(t,i,r,c),ia=!1;var h=t.memoizedState;i.state=h,Wv(t,r,i,o),a=t.memoizedState,l!==r||h!==a||Io.current||ia?(typeof f=="function"&&(Ex(t,n,f,r),a=t.memoizedState),(l=ia||QT(t,n,l,r,h,a,c))?(p||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),i.props=r,i.state=a,i.context=c,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,zL(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:ti(t.type,l),i.props=c,p=t.pendingProps,h=i.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ls(a):(a=Mo(n)?_c:Yr.current,a=bd(t,a));var y=n.getDerivedStateFromProps;(f=typeof y=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==p||h!==a)&&XT(t,i,r,a),ia=!1,h=t.memoizedState,i.state=h,Wv(t,r,i,o);var v=t.memoizedState;l!==p||h!==v||Io.current||ia?(typeof y=="function"&&(Ex(t,n,y,r),v=t.memoizedState),(c=ia||QT(t,n,c,r,h,v,a)||!1)?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,v,a),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,v,a)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),i.props=r,i.state=v,i.context=a,r=c):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return _x(e,t,n,r,s,o)}function _x(e,t,n,r,o,s){gF(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&WT(t,n,!1),kl(e,t,s);r=t.stateNode,RK.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Cd(t,e.child,null,s),t.child=Cd(t,null,l,s)):oo(e,t,l,s),t.memoizedState=r.state,o&&WT(t,n,!0),t.child}function vF(e){var t=e.stateNode;t.pendingContext?UT(e,t.pendingContext,t.pendingContext!==t.context):t.context&&UT(e,t.context,!1),$P(e,t.containerInfo)}function l$(e,t,n,r,o){return wd(),EP(o),t.flags|=256,oo(e,t,n,r),t.child}var Tx={dehydrated:null,treeContext:null,retryLane:0};function $x(e){return{baseLanes:e,cachePool:null,transitions:null}}function yF(e,t,n){var r=t.pendingProps,o=Bn.current,s=!1,i=(t.flags&128)!==0,l;if((l=i)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Cn(Bn,o&1),e===null)return Sx(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,s?(r=t.mode,s=t.child,i={mode:"hidden",children:i},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=t1(i,r,0,null),e=Cc(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=$x(n),t.memoizedState=Tx,e):BP(t,i));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return OK(e,t,i,r,l,o,n);if(s){s=r.fallback,i=t.mode,o=e.child,l=o.sibling;var a={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=ka(o,a),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?s=ka(l,s):(s=Cc(s,i,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,i=e.child.memoizedState,i=i===null?$x(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=Tx,r}return s=e.child,e=s.sibling,r=ka(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function BP(e,t){return t=t1({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function xg(e,t,n,r){return r!==null&&EP(r),Cd(t,e.child,null,n),e=BP(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function OK(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=Vw(Error(He(422))),xg(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=t1({mode:"visible",children:r.children},o,0,null),s=Cc(s,o,i,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Cd(t,e.child,null,i),t.child.memoizedState=$x(i),t.memoizedState=Tx,s);if(!(t.mode&1))return xg(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(He(419)),r=Vw(s,r,void 0),xg(e,t,i,r)}if(l=(i&e.childLanes)!==0,ko||l){if(r=Sr,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,El(e,o),di(r,e,o,-1))}return WP(),r=Vw(Error(He(421))),xg(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=GK.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,Qo=xa(o.nextSibling),Xo=t,An=!0,oi=null,e!==null&&(_s[Ts++]=ml,_s[Ts++]=gl,_s[Ts++]=Tc,ml=e.id,gl=e.overflow,Tc=t),t=BP(t,r.children),t.flags|=4096,t)}function a$(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Px(e.return,t,n)}function Hw(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function bF(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(oo(e,t,r.children,n),r=Bn.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&a$(e,n,t);else if(e.tag===19)a$(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Cn(Bn,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Gv(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Hw(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Gv(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Hw(t,!0,n,null,s);break;case"together":Hw(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function iv(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function kl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Rc|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(He(153));if(t.child!==null){for(e=t.child,n=ka(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ka(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function DK(e,t,n){switch(t.tag){case 3:vF(t),wd();break;case 5:GL(t);break;case 1:Mo(t.type)&&jv(t);break;case 4:$P(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Cn(Hv,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Cn(Bn,Bn.current&1),t.flags|=128,null):n&t.child.childLanes?yF(e,t,n):(Cn(Bn,Bn.current&1),e=kl(e,t,n),e!==null?e.sibling:null);Cn(Bn,Bn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return bF(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Cn(Bn,Bn.current),r)break;return null;case 22:case 23:return t.lanes=0,mF(e,t,n)}return kl(e,t,n)}var wF,Rx,CF,xF;wF=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Rx=function(){};CF=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,mc(Li.current);var s=null;switch(n){case"input":o=ex(e,o),r=ex(e,r),s=[];break;case"select":o=Vn({},o,{value:void 0}),r=Vn({},r,{value:void 0}),s=[];break;case"textarea":o=rx(e,o),r=rx(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Nv)}sx(n,r);var i;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Wp.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var a=r[c];if(l=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&a!==l&&(a!=null||l!=null))if(c==="style")if(l){for(i in l)!l.hasOwnProperty(i)||a&&a.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in a)a.hasOwnProperty(i)&&l[i]!==a[i]&&(n||(n={}),n[i]=a[i])}else n||(s||(s=[]),s.push(c,n)),n=a;else c==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(s=s||[]).push(c,a)):c==="children"?typeof a!="string"&&typeof a!="number"||(s=s||[]).push(c,""+a):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Wp.hasOwnProperty(c)?(a!=null&&c==="onScroll"&&En("scroll",e),s||l===a||(s=[])):(s=s||[]).push(c,a))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}};xF=function(e,t,n,r){n!==r&&(t.flags|=4)};function Hf(e,t){if(!An)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function jr(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function AK(e,t,n){var r=t.pendingProps;switch(PP(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jr(t),null;case 1:return Mo(t.type)&&Bv(),jr(t),null;case 3:return r=t.stateNode,xd(),Mn(Io),Mn(Yr),OP(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(wg(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,oi!==null&&(jx(oi),oi=null))),Rx(e,t),jr(t),null;case 5:RP(t);var o=mc(rh.current);if(n=t.type,e!==null&&t.stateNode!=null)CF(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(He(166));return jr(t),null}if(e=mc(Li.current),wg(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Oi]=t,r[th]=s,e=(t.mode&1)!==0,n){case"dialog":En("cancel",r),En("close",r);break;case"iframe":case"object":case"embed":En("load",r);break;case"video":case"audio":for(o=0;o<dp.length;o++)En(dp[o],r);break;case"source":En("error",r);break;case"img":case"image":case"link":En("error",r),En("load",r);break;case"details":En("toggle",r);break;case"input":vT(r,s),En("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},En("invalid",r);break;case"textarea":bT(r,s),En("invalid",r)}sx(n,s),o=null;for(var i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="children"?typeof l=="string"?r.textContent!==l&&(s.suppressHydrationWarning!==!0&&bg(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&bg(r.textContent,l,e),o=["children",""+l]):Wp.hasOwnProperty(i)&&l!=null&&i==="onScroll"&&En("scroll",r)}switch(n){case"input":dg(r),yT(r,s,!0);break;case"textarea":dg(r),wT(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Nv)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=YA(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Oi]=t,e[th]=r,wF(e,t,!1,!1),t.stateNode=e;e:{switch(i=ix(n,r),n){case"dialog":En("cancel",e),En("close",e),o=r;break;case"iframe":case"object":case"embed":En("load",e),o=r;break;case"video":case"audio":for(o=0;o<dp.length;o++)En(dp[o],e);o=r;break;case"source":En("error",e),o=r;break;case"img":case"image":case"link":En("error",e),En("load",e),o=r;break;case"details":En("toggle",e),o=r;break;case"input":vT(e,r),o=ex(e,r),En("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Vn({},r,{value:void 0}),En("invalid",e);break;case"textarea":bT(e,r),o=rx(e,r),En("invalid",e);break;default:o=r}sx(n,o),l=o;for(s in l)if(l.hasOwnProperty(s)){var a=l[s];s==="style"?ZA(e,a):s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&QA(e,a)):s==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Gp(e,a):typeof a=="number"&&Gp(e,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Wp.hasOwnProperty(s)?a!=null&&s==="onScroll"&&En("scroll",e):a!=null&&cP(e,s,a,i))}switch(n){case"input":dg(e),yT(e,r,!1);break;case"textarea":dg(e),wT(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ra(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?nd(e,!!r.multiple,s,!1):r.defaultValue!=null&&nd(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Nv)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return jr(t),null;case 6:if(e&&t.stateNode!=null)xF(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(He(166));if(n=mc(rh.current),mc(Li.current),wg(t)){if(r=t.stateNode,n=t.memoizedProps,r[Oi]=t,(s=r.nodeValue!==n)&&(e=Xo,e!==null))switch(e.tag){case 3:bg(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&bg(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Oi]=t,t.stateNode=r}return jr(t),null;case 13:if(Mn(Bn),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(An&&Qo!==null&&t.mode&1&&!(t.flags&128))BL(),wd(),t.flags|=98560,s=!1;else if(s=wg(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(He(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(He(317));s[Oi]=t}else wd(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jr(t),s=!1}else oi!==null&&(jx(oi),oi=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Bn.current&1?gr===0&&(gr=3):WP())),t.updateQueue!==null&&(t.flags|=4),jr(t),null);case 4:return xd(),Rx(e,t),e===null&&Jp(t.stateNode.containerInfo),jr(t),null;case 10:return MP(t.type._context),jr(t),null;case 17:return Mo(t.type)&&Bv(),jr(t),null;case 19:if(Mn(Bn),s=t.memoizedState,s===null)return jr(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)Hf(s,!1);else{if(gr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Gv(e),i!==null){for(t.flags|=128,Hf(s,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,i=s.alternate,i===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Cn(Bn,Bn.current&1|2),t.child}e=e.sibling}s.tail!==null&&tr()>Pd&&(t.flags|=128,r=!0,Hf(s,!1),t.lanes=4194304)}else{if(!r)if(e=Gv(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Hf(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!An)return jr(t),null}else 2*tr()-s.renderingStartTime>Pd&&n!==1073741824&&(t.flags|=128,r=!0,Hf(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=tr(),t.sibling=null,n=Bn.current,Cn(Bn,r?n&1|2:n&1),t):(jr(t),null);case 22:case 23:return UP(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Vo&1073741824&&(jr(t),t.subtreeFlags&6&&(t.flags|=8192)):jr(t),null;case 24:return null;case 25:return null}throw Error(He(156,t.tag))}function LK(e,t){switch(PP(t),t.tag){case 1:return Mo(t.type)&&Bv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xd(),Mn(Io),Mn(Yr),OP(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return RP(t),null;case 13:if(Mn(Bn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(He(340));wd()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Mn(Bn),null;case 4:return xd(),null;case 10:return MP(t.type._context),null;case 22:case 23:return UP(),null;case 24:return null;default:return null}}var Sg=!1,Ur=!1,FK=typeof WeakSet=="function"?WeakSet:Set,ct=null;function Gu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Gn(e,t,r)}else n.current=null}function Ox(e,t,n){try{n()}catch(r){Gn(e,t,r)}}var c$=!1;function NK(e,t){if(gx=Av,e=kL(),xP(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,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(P){n=null;break e}var i=0,l=-1,a=-1,c=0,f=0,p=e,h=null;t:for(;;){for(var y;p!==n||o!==0&&p.nodeType!==3||(l=i+o),p!==s||r!==0&&p.nodeType!==3||(a=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(y=p.firstChild)!==null;)h=p,p=y;for(;;){if(p===e)break t;if(h===n&&++c===o&&(l=i),h===s&&++f===r&&(a=i),(y=p.nextSibling)!==null)break;p=h,h=p.parentNode}p=y}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(vx={focusedElem:e,selectionRange:n},Av=!1,ct=t;ct!==null;)if(t=ct,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ct=e;else for(;ct!==null;){t=ct;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var m=v.memoizedProps,C=v.memoizedState,w=t.stateNode,b=w.getSnapshotBeforeUpdate(t.elementType===t.type?m:ti(t.type,m),C);w.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(He(163))}}catch(P){Gn(t,t.return,P)}if(e=t.sibling,e!==null){e.return=t.return,ct=e;break}ct=t.return}return v=c$,c$=!1,v}function _p(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 s=o.destroy;o.destroy=void 0,s!==void 0&&Ox(t,n,s)}o=o.next}while(o!==r)}}function Jy(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 Dx(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 SF(e){var t=e.alternate;t!==null&&(e.alternate=null,SF(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Oi],delete t[th],delete t[wx],delete t[wK],delete t[CK])),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 PF(e){return e.tag===5||e.tag===3||e.tag===4}function u$(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||PF(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 Ax(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=Nv));else if(r!==4&&(e=e.child,e!==null))for(Ax(e,t,n),e=e.sibling;e!==null;)Ax(e,t,n),e=e.sibling}function Lx(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(Lx(e,t,n),e=e.sibling;e!==null;)Lx(e,t,n),e=e.sibling}var Rr=null,ri=!1;function Ql(e,t,n){for(n=n.child;n!==null;)EF(e,t,n),n=n.sibling}function EF(e,t,n){if(Ai&&typeof Ai.onCommitFiberUnmount=="function")try{Ai.onCommitFiberUnmount(Wy,n)}catch(l){}switch(n.tag){case 5:Ur||Gu(n,t);case 6:var r=Rr,o=ri;Rr=null,Ql(e,t,n),Rr=r,ri=o,Rr!==null&&(ri?(e=Rr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Rr.removeChild(n.stateNode));break;case 18:Rr!==null&&(ri?(e=Rr,n=n.stateNode,e.nodeType===8?Lw(e.parentNode,n):e.nodeType===1&&Lw(e,n),Qp(e)):Lw(Rr,n.stateNode));break;case 4:r=Rr,o=ri,Rr=n.stateNode.containerInfo,ri=!0,Ql(e,t,n),Rr=r,ri=o;break;case 0:case 11:case 14:case 15:if(!Ur&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&Ox(n,t,i),o=o.next}while(o!==r)}Ql(e,t,n);break;case 1:if(!Ur&&(Gu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Gn(n,t,l)}Ql(e,t,n);break;case 21:Ql(e,t,n);break;case 22:n.mode&1?(Ur=(r=Ur)||n.memoizedState!==null,Ql(e,t,n),Ur=r):Ql(e,t,n);break;default:Ql(e,t,n)}}function d$(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new FK),t.forEach(function(r){var o=KK.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Zs(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 5:Rr=l.stateNode,ri=!1;break e;case 3:Rr=l.stateNode.containerInfo,ri=!0;break e;case 4:Rr=l.stateNode.containerInfo,ri=!0;break e}l=l.return}if(Rr===null)throw Error(He(160));EF(s,i,o),Rr=null,ri=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(c){Gn(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)kF(t,e),t=t.sibling}function kF(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Zs(t,e),ki(e),r&4){try{_p(3,e,e.return),Jy(3,e)}catch(m){Gn(e,e.return,m)}try{_p(5,e,e.return)}catch(m){Gn(e,e.return,m)}}break;case 1:Zs(t,e),ki(e),r&512&&n!==null&&Gu(n,n.return);break;case 5:if(Zs(t,e),ki(e),r&512&&n!==null&&Gu(n,n.return),e.flags&32){var o=e.stateNode;try{Gp(o,"")}catch(m){Gn(e,e.return,m)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,i=n!==null?n.memoizedProps:s,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&KA(o,s),ix(l,i);var c=ix(l,s);for(i=0;i<a.length;i+=2){var f=a[i],p=a[i+1];f==="style"?ZA(o,p):f==="dangerouslySetInnerHTML"?QA(o,p):f==="children"?Gp(o,p):cP(o,f,p,c)}switch(l){case"input":tx(o,s);break;case"textarea":qA(o,s);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var y=s.value;y!=null?nd(o,!!s.multiple,y,!1):h!==!!s.multiple&&(s.defaultValue!=null?nd(o,!!s.multiple,s.defaultValue,!0):nd(o,!!s.multiple,s.multiple?[]:"",!1))}o[th]=s}catch(m){Gn(e,e.return,m)}}break;case 6:if(Zs(t,e),ki(e),r&4){if(e.stateNode===null)throw Error(He(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(m){Gn(e,e.return,m)}}break;case 3:if(Zs(t,e),ki(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Qp(t.containerInfo)}catch(m){Gn(e,e.return,m)}break;case 4:Zs(t,e),ki(e);break;case 13:Zs(t,e),ki(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(VP=tr())),r&4&&d$(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Ur=(c=Ur)||f,Zs(t,e),Ur=c):Zs(t,e),ki(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!f&&e.mode&1)for(ct=e,f=e.child;f!==null;){for(p=ct=f;ct!==null;){switch(h=ct,y=h.child,h.tag){case 0:case 11:case 14:case 15:_p(4,h,h.return);break;case 1:Gu(h,h.return);var v=h.stateNode;if(typeof v.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(m){Gn(r,n,m)}}break;case 5:Gu(h,h.return);break;case 22:if(h.memoizedState!==null){p$(p);continue}}y!==null?(y.return=h,ct=y):p$(p)}f=f.sibling}e:for(f=null,p=e;;){if(p.tag===5){if(f===null){f=p;try{o=p.stateNode,c?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=p.stateNode,a=p.memoizedProps.style,i=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=XA("display",i))}catch(m){Gn(e,e.return,m)}}}else if(p.tag===6){if(f===null)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(m){Gn(e,e.return,m)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;f===p&&(f=null),p=p.return}f===p&&(f=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:Zs(t,e),ki(e),r&4&&d$(e);break;case 21:break;default:Zs(t,e),ki(e)}}function ki(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(PF(n)){var r=n;break e}n=n.return}throw Error(He(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Gp(o,""),r.flags&=-33);var s=u$(e);Lx(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,l=u$(e);Ax(e,l,i);break;default:throw Error(He(161))}}catch(a){Gn(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function BK(e,t,n){ct=e,IF(e)}function IF(e,t,n){for(var r=(e.mode&1)!==0;ct!==null;){var o=ct,s=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||Sg;if(!i){var l=o.alternate,a=l!==null&&l.memoizedState!==null||Ur;l=Sg;var c=Ur;if(Sg=i,(Ur=a)&&!c)for(ct=o;ct!==null;)i=ct,a=i.child,i.tag===22&&i.memoizedState!==null?h$(o):a!==null?(a.return=i,ct=a):h$(o);for(;s!==null;)ct=s,IF(s),s=s.sibling;ct=o,Sg=l,Ur=c}f$(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,ct=s):f$(e)}}function f$(e){for(;ct!==null;){var t=ct;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ur||Jy(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ur)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ti(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&YT(t,s,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}YT(t,i,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var f=c.memoizedState;if(f!==null){var p=f.dehydrated;p!==null&&Qp(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(He(163))}Ur||t.flags&512&&Dx(t)}catch(h){Gn(t,t.return,h)}}if(t===e){ct=null;break}if(n=t.sibling,n!==null){n.return=t.return,ct=n;break}ct=t.return}}function p$(e){for(;ct!==null;){var t=ct;if(t===e){ct=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ct=n;break}ct=t.return}}function h$(e){for(;ct!==null;){var t=ct;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Jy(4,t)}catch(a){Gn(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){Gn(t,o,a)}}var s=t.return;try{Dx(t)}catch(a){Gn(t,s,a)}break;case 5:var i=t.return;try{Dx(t)}catch(a){Gn(t,i,a)}}}catch(a){Gn(t,t.return,a)}if(t===e){ct=null;break}var l=t.sibling;if(l!==null){l.return=t.return,ct=l;break}ct=t.return}}var jK=Math.ceil,Yv=Al.ReactCurrentDispatcher,jP=Al.ReactCurrentOwner,Os=Al.ReactCurrentBatchConfig,Xt=0,Sr=null,ur=null,Ar=0,Vo=0,Ku=Ba(0),gr=0,lh=null,Rc=0,e1=0,zP=0,Tp=null,xo=null,VP=0,Pd=1/0,ul=null,Qv=!1,Fx=null,Pa=null,Pg=!1,ha=null,Xv=0,$p=0,Nx=null,lv=-1,av=0;function ao(){return Xt&6?tr():lv!==-1?lv:lv=tr()}function Ea(e){return e.mode&1?Xt&2&&Ar!==0?Ar&-Ar:SK.transition!==null?(av===0&&(av=uL()),av):(e=fn,e!==0||(e=window.event,e=e===void 0?16:vL(e.type)),e):1}function di(e,t,n,r){if(50<$p)throw $p=0,Nx=null,Error(He(185));Nh(e,n,r),(!(Xt&2)||e!==Sr)&&(e===Sr&&(!(Xt&2)&&(e1|=n),gr===4&&da(e,Ar)),_o(e,r),n===1&&Xt===0&&!(t.mode&1)&&(Pd=tr()+500,Qy&&ja()))}function _o(e,t){var n=e.callbackNode;SG(e,t);var r=Dv(e,e===Sr?Ar:0);if(r===0)n!==null&&ST(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ST(n),t===1)e.tag===0?xK(m$.bind(null,e)):LL(m$.bind(null,e)),yK(function(){!(Xt&6)&&ja()}),n=null;else{switch(dL(r)){case 1:n=hP;break;case 4:n=aL;break;case 16:n=Ov;break;case 536870912:n=cL;break;default:n=Ov}n=AF(n,MF.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function MF(e,t){if(lv=-1,av=0,Xt&6)throw Error(He(327));var n=e.callbackNode;if(ld()&&e.callbackNode!==n)return null;var r=Dv(e,e===Sr?Ar:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Zv(e,r);else{t=r;var o=Xt;Xt|=2;var s=TF();(Sr!==e||Ar!==t)&&(ul=null,Pd=tr()+500,wc(e,t));do try{HK();break}catch(l){_F(e,l)}while(1);IP(),Yv.current=s,Xt=o,ur!==null?t=0:(Sr=null,Ar=0,t=gr)}if(t!==0){if(t===2&&(o=dx(e),o!==0&&(r=o,t=Bx(e,o))),t===1)throw n=lh,wc(e,0),da(e,r),_o(e,tr()),n;if(t===6)da(e,r);else{if(o=e.current.alternate,!(r&30)&&!zK(o)&&(t=Zv(e,r),t===2&&(s=dx(e),s!==0&&(r=s,t=Bx(e,s))),t===1))throw n=lh,wc(e,0),da(e,r),_o(e,tr()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(He(345));case 2:cc(e,xo,ul);break;case 3:if(da(e,r),(r&130023424)===r&&(t=VP+500-tr(),10<t)){if(Dv(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){ao(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=bx(cc.bind(null,e,xo,ul),t);break}cc(e,xo,ul);break;case 4:if(da(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-ui(r);s=1<<i,i=t[i],i>o&&(o=i),r&=~s}if(r=o,r=tr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*jK(r/1960))-r,10<r){e.timeoutHandle=bx(cc.bind(null,e,xo,ul),r);break}cc(e,xo,ul);break;case 5:cc(e,xo,ul);break;default:throw Error(He(329))}}}return _o(e,tr()),e.callbackNode===n?MF.bind(null,e):null}function Bx(e,t){var n=Tp;return e.current.memoizedState.isDehydrated&&(wc(e,t).flags|=256),e=Zv(e,t),e!==2&&(t=xo,xo=n,t!==null&&jx(t)),e}function jx(e){xo===null?xo=e:xo.push.apply(xo,e)}function zK(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],s=o.getSnapshot;o=o.value;try{if(!mi(s(),o))return!1}catch(i){return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function da(e,t){for(t&=~zP,t&=~e1,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ui(t),r=1<<n;e[n]=-1,t&=~r}}function m$(e){if(Xt&6)throw Error(He(327));ld();var t=Dv(e,0);if(!(t&1))return _o(e,tr()),null;var n=Zv(e,t);if(e.tag!==0&&n===2){var r=dx(e);r!==0&&(t=r,n=Bx(e,r))}if(n===1)throw n=lh,wc(e,0),da(e,t),_o(e,tr()),n;if(n===6)throw Error(He(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,cc(e,xo,ul),_o(e,tr()),null}function HP(e,t){var n=Xt;Xt|=1;try{return e(t)}finally{Xt=n,Xt===0&&(Pd=tr()+500,Qy&&ja())}}function Oc(e){ha!==null&&ha.tag===0&&!(Xt&6)&&ld();var t=Xt;Xt|=1;var n=Os.transition,r=fn;try{if(Os.transition=null,fn=1,e)return e()}finally{fn=r,Os.transition=n,Xt=t,!(Xt&6)&&ja()}}function UP(){Vo=Ku.current,Mn(Ku)}function wc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,vK(n)),ur!==null)for(n=ur.return;n!==null;){var r=n;switch(PP(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Bv();break;case 3:xd(),Mn(Io),Mn(Yr),OP();break;case 5:RP(r);break;case 4:xd();break;case 13:Mn(Bn);break;case 19:Mn(Bn);break;case 10:MP(r.type._context);break;case 22:case 23:UP()}n=n.return}if(Sr=e,ur=e=ka(e.current,null),Ar=Vo=t,gr=0,lh=null,zP=e1=Rc=0,xo=Tp=null,hc!==null){for(t=0;t<hc.length;t++)if(n=hc[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var i=s.next;s.next=o,r.next=i}n.pending=r}hc=null}return e}function _F(e,t){do{var n=ur;try{if(IP(),ov.current=qv,Kv){for(var r=zn.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Kv=!1}if($c=0,Cr=hr=zn=null,Mp=!1,oh=0,jP.current=null,n===null||n.return===null){gr=1,lh=t,ur=null;break}e:{var s=e,i=n.return,l=n,a=t;if(t=Ar,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var c=a,f=l,p=f.tag;if(!(f.mode&1)&&(p===0||p===11||p===15)){var h=f.alternate;h?(f.updateQueue=h.updateQueue,f.memoizedState=h.memoizedState,f.lanes=h.lanes):(f.updateQueue=null,f.memoizedState=null)}var y=n$(i);if(y!==null){y.flags&=-257,r$(y,i,l,s,t),y.mode&1&&t$(s,c,t),t=y,a=c;var v=t.updateQueue;if(v===null){var m=new Set;m.add(a),t.updateQueue=m}else v.add(a);break e}else{if(!(t&1)){t$(s,c,t),WP();break e}a=Error(He(426))}}else if(An&&l.mode&1){var C=n$(i);if(C!==null){!(C.flags&65536)&&(C.flags|=256),r$(C,i,l,s,t),EP(Sd(a,l));break e}}s=a=Sd(a,l),gr!==4&&(gr=2),Tp===null?Tp=[s]:Tp.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var w=fF(s,a,t);qT(s,w);break e;case 1:l=a;var b=s.type,x=s.stateNode;if(!(s.flags&128)&&(typeof b.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Pa===null||!Pa.has(x)))){s.flags|=65536,t&=-t,s.lanes|=t;var P=pF(s,l,t);qT(s,P);break e}}s=s.return}while(s!==null)}RF(n)}catch(k){t=k,ur===n&&n!==null&&(ur=n=n.return);continue}break}while(1)}function TF(){var e=Yv.current;return Yv.current=qv,e===null?qv:e}function WP(){(gr===0||gr===3||gr===2)&&(gr=4),Sr===null||!(Rc&268435455)&&!(e1&268435455)||da(Sr,Ar)}function Zv(e,t){var n=Xt;Xt|=2;var r=TF();(Sr!==e||Ar!==t)&&(ul=null,wc(e,t));do try{VK();break}catch(o){_F(e,o)}while(1);if(IP(),Xt=n,Yv.current=r,ur!==null)throw Error(He(261));return Sr=null,Ar=0,gr}function VK(){for(;ur!==null;)$F(ur)}function HK(){for(;ur!==null&&!hG();)$F(ur)}function $F(e){var t=DF(e.alternate,e,Vo);e.memoizedProps=e.pendingProps,t===null?RF(e):ur=t,jP.current=null}function RF(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=LK(n,t),n!==null){n.flags&=32767,ur=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{gr=6,ur=null;return}}else if(n=AK(n,t,Vo),n!==null){ur=n;return}if(t=t.sibling,t!==null){ur=t;return}ur=t=e}while(t!==null);gr===0&&(gr=5)}function cc(e,t,n){var r=fn,o=Os.transition;try{Os.transition=null,fn=1,UK(e,t,n,r)}finally{Os.transition=o,fn=r}return null}function UK(e,t,n,r){do ld();while(ha!==null);if(Xt&6)throw Error(He(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(He(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(PG(e,s),e===Sr&&(ur=Sr=null,Ar=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Pg||(Pg=!0,AF(Ov,function(){return ld(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Os.transition,Os.transition=null;var i=fn;fn=1;var l=Xt;Xt|=4,jP.current=null,NK(e,n),kF(n,e),uK(vx),Av=!!gx,vx=gx=null,e.current=n,BK(n),mG(),Xt=l,fn=i,Os.transition=s}else e.current=n;if(Pg&&(Pg=!1,ha=e,Xv=o),s=e.pendingLanes,s===0&&(Pa=null),yG(n.stateNode),_o(e,tr()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Qv)throw Qv=!1,e=Fx,Fx=null,e;return Xv&1&&e.tag!==0&&ld(),s=e.pendingLanes,s&1?e===Nx?$p++:($p=0,Nx=e):$p=0,ja(),null}function ld(){if(ha!==null){var e=dL(Xv),t=Os.transition,n=fn;try{if(Os.transition=null,fn=16>e?16:e,ha===null)var r=!1;else{if(e=ha,ha=null,Xv=0,Xt&6)throw Error(He(331));var o=Xt;for(Xt|=4,ct=e.current;ct!==null;){var s=ct,i=s.child;if(ct.flags&16){var l=s.deletions;if(l!==null){for(var a=0;a<l.length;a++){var c=l[a];for(ct=c;ct!==null;){var f=ct;switch(f.tag){case 0:case 11:case 15:_p(8,f,s)}var p=f.child;if(p!==null)p.return=f,ct=p;else for(;ct!==null;){f=ct;var h=f.sibling,y=f.return;if(SF(f),f===c){ct=null;break}if(h!==null){h.return=y,ct=h;break}ct=y}}}var v=s.alternate;if(v!==null){var m=v.child;if(m!==null){v.child=null;do{var C=m.sibling;m.sibling=null,m=C}while(m!==null)}}ct=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,ct=i;else e:for(;ct!==null;){if(s=ct,s.flags&2048)switch(s.tag){case 0:case 11:case 15:_p(9,s,s.return)}var w=s.sibling;if(w!==null){w.return=s.return,ct=w;break e}ct=s.return}}var b=e.current;for(ct=b;ct!==null;){i=ct;var x=i.child;if(i.subtreeFlags&2064&&x!==null)x.return=i,ct=x;else e:for(i=b;ct!==null;){if(l=ct,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Jy(9,l)}}catch(k){Gn(l,l.return,k)}if(l===i){ct=null;break e}var P=l.sibling;if(P!==null){P.return=l.return,ct=P;break e}ct=l.return}}if(Xt=o,ja(),Ai&&typeof Ai.onPostCommitFiberRoot=="function")try{Ai.onPostCommitFiberRoot(Wy,e)}catch(k){}r=!0}return r}finally{fn=n,Os.transition=t}}return!1}function g$(e,t,n){t=Sd(n,t),t=fF(e,t,1),e=Sa(e,t,1),t=ao(),e!==null&&(Nh(e,1,t),_o(e,t))}function Gn(e,t,n){if(e.tag===3)g$(e,e,n);else for(;t!==null;){if(t.tag===3){g$(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Pa===null||!Pa.has(r))){e=Sd(n,e),e=pF(t,e,1),t=Sa(t,e,1),e=ao(),t!==null&&(Nh(t,1,e),_o(t,e));break}}t=t.return}}function WK(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ao(),e.pingedLanes|=e.suspendedLanes&n,Sr===e&&(Ar&n)===n&&(gr===4||gr===3&&(Ar&130023424)===Ar&&500>tr()-VP?wc(e,0):zP|=n),_o(e,t)}function OF(e,t){t===0&&(e.mode&1?(t=hg,hg<<=1,!(hg&130023424)&&(hg=4194304)):t=1);var n=ao();e=El(e,t),e!==null&&(Nh(e,t,n),_o(e,n))}function GK(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),OF(e,n)}function KK(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(He(314))}r!==null&&r.delete(t),OF(e,n)}var DF;DF=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Io.current)ko=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ko=!1,DK(e,t,n);ko=!!(e.flags&131072)}else ko=!1,An&&t.flags&1048576&&FL(t,Vv,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;iv(e,t),e=t.pendingProps;var o=bd(t,Yr.current);id(t,n),o=AP(null,t,r,e,o,n);var s=LP();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,Mo(r)?(s=!0,jv(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,TP(t),o.updater=Xy,t.stateNode=o,o._reactInternals=t,kx(t,r,e,n),t=_x(null,t,r,!0,s,n)):(t.tag=0,An&&s&&SP(t),oo(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(iv(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=YK(r),e=ti(r,e),o){case 0:t=Mx(null,t,r,e,n);break e;case 1:t=i$(null,t,r,e,n);break e;case 11:t=o$(null,t,r,e,n);break e;case 14:t=s$(null,t,r,ti(r.type,e),n);break e}throw Error(He(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ti(r,o),Mx(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ti(r,o),i$(e,t,r,o,n);case 3:e:{if(vF(t),e===null)throw Error(He(387));r=t.pendingProps,s=t.memoizedState,o=s.element,zL(e,t),Wv(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Sd(Error(He(423)),t),t=l$(e,t,r,n,o);break e}else if(r!==o){o=Sd(Error(He(424)),t),t=l$(e,t,r,n,o);break e}else for(Qo=xa(t.stateNode.containerInfo.firstChild),Xo=t,An=!0,oi=null,n=WL(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wd(),r===o){t=kl(e,t,n);break e}oo(e,t,r,n)}t=t.child}return t;case 5:return GL(t),e===null&&Sx(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,yx(r,o)?i=null:s!==null&&yx(r,s)&&(t.flags|=32),gF(e,t),oo(e,t,i,n),t.child;case 6:return e===null&&Sx(t),null;case 13:return yF(e,t,n);case 4:return $P(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Cd(t,null,r,n):oo(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ti(r,o),o$(e,t,r,o,n);case 7:return oo(e,t,t.pendingProps,n),t.child;case 8:return oo(e,t,t.pendingProps.children,n),t.child;case 12:return oo(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,Cn(Hv,r._currentValue),r._currentValue=i,s!==null)if(mi(s.value,i)){if(s.children===o.children&&!Io.current){t=kl(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){i=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=wl(-1,n&-n),a.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?a.next=a:(a.next=f.next,f.next=a),c.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Px(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(He(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Px(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}oo(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,id(t,n),o=Ls(o),r=r(o),t.flags|=1,oo(e,t,r,n),t.child;case 14:return r=t.type,o=ti(r,t.pendingProps),o=ti(r.type,o),s$(e,t,r,o,n);case 15:return hF(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ti(r,o),iv(e,t),t.tag=1,Mo(r)?(e=!0,jv(t)):e=!1,id(t,n),HL(t,r,o),kx(t,r,o,n),_x(null,t,r,!0,e,n);case 19:return bF(e,t,n);case 22:return mF(e,t,n)}throw Error(He(156,t.tag))};function AF(e,t){return lL(e,t)}function qK(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 Rs(e,t,n,r){return new qK(e,t,n,r)}function GP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function YK(e){if(typeof e=="function")return GP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===dP)return 11;if(e===fP)return 14}return 2}function ka(e,t){var n=e.alternate;return n===null?(n=Rs(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 cv(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")GP(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Fu:return Cc(n.children,o,s,t);case uP:i=8,o|=8;break;case QC:return e=Rs(12,n,t,o|2),e.elementType=QC,e.lanes=s,e;case XC:return e=Rs(13,n,t,o),e.elementType=XC,e.lanes=s,e;case ZC:return e=Rs(19,n,t,o),e.elementType=ZC,e.lanes=s,e;case UA:return t1(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case VA:i=10;break e;case HA:i=9;break e;case dP:i=11;break e;case fP:i=14;break e;case sa:i=16,r=null;break e}throw Error(He(130,e==null?e:typeof e,""))}return t=Rs(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function Cc(e,t,n,r){return e=Rs(7,e,r,t),e.lanes=n,e}function t1(e,t,n,r){return e=Rs(22,e,r,t),e.elementType=UA,e.lanes=n,e.stateNode={isHidden:!1},e}function Uw(e,t,n){return e=Rs(6,e,null,t),e.lanes=n,e}function Ww(e,t,n){return t=Rs(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function QK(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=Ew(0),this.expirationTimes=Ew(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ew(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function KP(e,t,n,r,o,s,i,l,a){return e=new QK(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Rs(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},TP(s),e}function XK(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Lu,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function LF(e){if(!e)return Oa;e=e._reactInternals;e:{if(Hc(e)!==e||e.tag!==1)throw Error(He(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(He(171))}if(e.tag===1){var n=e.type;if(Mo(n))return AL(e,n,t)}return t}function FF(e,t,n,r,o,s,i,l,a){return e=KP(n,r,!0,e,o,s,i,l,a),e.context=LF(null),n=e.current,r=ao(),o=Ea(n),s=wl(r,o),s.callback=t!=null?t:null,Sa(n,s,o),e.current.lanes=o,Nh(e,o,r),_o(e,r),e}function n1(e,t,n,r){var o=t.current,s=ao(),i=Ea(o);return n=LF(n),t.context===null?t.context=n:t.pendingContext=n,t=wl(s,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Sa(o,t,i),e!==null&&(di(e,o,i,s),rv(e,o,i)),i}function Jv(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function v$(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function qP(e,t){v$(e,t),(e=e.alternate)&&v$(e,t)}function ZK(){return null}var NF=typeof reportError=="function"?reportError:function(e){console.error(e)};function YP(e){this._internalRoot=e}r1.prototype.render=YP.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(He(409));n1(e,t,null,null)};r1.prototype.unmount=YP.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Oc(function(){n1(null,e,null,null)}),t[Pl]=null}};function r1(e){this._internalRoot=e}r1.prototype.unstable_scheduleHydration=function(e){if(e){var t=hL();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ua.length&&t!==0&&t<ua[n].priority;n++);ua.splice(n,0,e),n===0&&gL(e)}};function QP(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o1(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function y$(){}function JK(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var c=Jv(i);s.call(c)}}var i=FF(t,r,e,0,null,!1,!1,"",y$);return e._reactRootContainer=i,e[Pl]=i.current,Jp(e.nodeType===8?e.parentNode:e),Oc(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var c=Jv(a);l.call(c)}}var a=KP(e,0,!1,null,null,!1,!1,"",y$);return e._reactRootContainer=a,e[Pl]=a.current,Jp(e.nodeType===8?e.parentNode:e),Oc(function(){n1(t,a,n,r)}),a}function s1(e,t,n,r,o){var s=n._reactRootContainer;if(s){var i=s;if(typeof o=="function"){var l=o;o=function(){var a=Jv(i);l.call(a)}}n1(t,i,e,o)}else i=JK(n,t,e,o,r);return Jv(i)}fL=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=up(t.pendingLanes);n!==0&&(mP(t,n|1),_o(t,tr()),!(Xt&6)&&(Pd=tr()+500,ja()))}break;case 13:Oc(function(){var r=El(e,1);if(r!==null){var o=ao();di(r,e,1,o)}}),qP(e,1)}};gP=function(e){if(e.tag===13){var t=El(e,134217728);if(t!==null){var n=ao();di(t,e,134217728,n)}qP(e,134217728)}};pL=function(e){if(e.tag===13){var t=Ea(e),n=El(e,t);if(n!==null){var r=ao();di(n,e,t,r)}qP(e,t)}};hL=function(){return fn};mL=function(e,t){var n=fn;try{return fn=e,t()}finally{fn=n}};ax=function(e,t,n){switch(t){case"input":if(tx(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Yy(r);if(!o)throw Error(He(90));GA(r),tx(r,o)}}}break;case"textarea":qA(e,n);break;case"select":t=n.value,t!=null&&nd(e,!!n.multiple,t,!1)}};tL=HP;nL=Oc;var eq={usingClientEntryPoint:!1,Events:[jh,zu,Yy,JA,eL,HP]},Uf={findFiberByHostInstance:pc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},tq={bundleType:Uf.bundleType,version:Uf.version,rendererPackageName:Uf.rendererPackageName,rendererConfig:Uf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Al.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=sL(e),e===null?null:e.stateNode},findFiberByHostInstance:Uf.findFiberByHostInstance||ZK,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var Eg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Eg.isDisabled&&Eg.supportsFiber)try{Wy=Eg.inject(tq),Ai=Eg}catch(e){}}as.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eq;as.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!QP(t))throw Error(He(200));return XK(e,t,null,n)};as.createRoot=function(e,t){if(!QP(e))throw Error(He(299));var n=!1,r="",o=NF;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=KP(e,1,!1,null,null,n,!1,r,o),e[Pl]=t.current,Jp(e.nodeType===8?e.parentNode:e),new YP(t)};as.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(He(188)):(e=Object.keys(e).join(","),Error(He(268,e)));return e=sL(t),e=e===null?null:e.stateNode,e};as.flushSync=function(e){return Oc(e)};as.hydrate=function(e,t,n){if(!o1(t))throw Error(He(200));return s1(null,e,t,!0,n)};as.hydrateRoot=function(e,t,n){if(!QP(e))throw Error(He(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=NF;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=FF(t,null,e,1,n!=null?n:null,o,!1,s,i),e[Pl]=t.current,Jp(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new r1(t)};as.render=function(e,t,n){if(!o1(t))throw Error(He(200));return s1(null,e,t,!1,n)};as.unmountComponentAtNode=function(e){if(!o1(e))throw Error(He(40));return e._reactRootContainer?(Oc(function(){s1(null,null,e,!1,function(){e._reactRootContainer=null,e[Pl]=null})}),!0):!1};as.unstable_batchedUpdates=HP;as.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!o1(n))throw Error(He(200));if(e==null||e._reactInternals===void 0)throw Error(He(38));return s1(e,t,n,!1,r)};as.version="18.2.0-next-9e3b772b8-20220608";function BF(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(BF)}catch(e){console.error(e)}}BF(),FA.exports=as;var Vh=FA.exports;const kg=vi(Vh);var jF,b$=Vh;jF=b$.createRoot,b$.hydrateRoot;const nq="modulepreload",rq=function(e){return"/"+e},w$={},oq=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=rq(s),s in w$)return;w$[s]=!0;const i=s.endsWith(".css"),l=i?'[rel="stylesheet"]':"";if(!!r)for(let f=o.length-1;f>=0;f--){const p=o[f];if(p.href===s&&(!i||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${l}`))return;const c=document.createElement("link");if(c.rel=i?"stylesheet":nq,i||(c.as="script",c.crossOrigin=""),c.href=s,document.head.appendChild(c),i)return new Promise((f,p)=>{c.addEventListener("load",f),c.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s})};var MA;if(!((MA=window.crypto)!=null&&MA.subtle)){let t;console.debug("poly subtle");const e={digest(n,r){return ot(this,null,function*(){if(n!=="SHA-512")return alert(n+" required but not supported");const s=(yield oq(()=>import("./sha512-b955fb88.js").then(i=>i.s),[])).default.arrayBuffer;return s(r)})}};window.crypto||(window.crypto={subtle:e}),crypto.subtle||(crypto.subtle=e)}/**
33
+ * @remix-run/router v1.14.2
34
+ *
35
+ * Copyright (c) Remix Software Inc.
36
+ *
37
+ * This source code is licensed under the MIT license found in the
38
+ * LICENSE.md file in the root directory of this source tree.
39
+ *
40
+ * @license MIT
41
+ */function ah(){return ah=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ah.apply(this,arguments)}var ma;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ma||(ma={}));const C$="popstate";function sq(e){e===void 0&&(e={});function t(o,s){let{pathname:i="/",search:l="",hash:a=""}=Uc(o.location.hash.substr(1));return!i.startsWith("/")&&!i.startsWith(".")&&(i="/"+i),zx("",{pathname:i,search:l,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(o,s){let i=o.document.querySelector("base"),l="";if(i&&i.getAttribute("href")){let a=o.location.href,c=a.indexOf("#");l=c===-1?a:a.slice(0,c)}return l+"#"+(typeof s=="string"?s:ey(s))}function r(o,s){i1(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(s)+")")}return lq(t,n,r,e)}function Zn(e,t){if(e===!1||e===null||typeof e=="undefined")throw new Error(t)}function i1(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function iq(){return Math.random().toString(36).substr(2,8)}function x$(e,t){return{usr:e.state,key:e.key,idx:t}}function zx(e,t,n,r){return n===void 0&&(n=null),ah({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Uc(t):t,{state:n,key:t&&t.key||r||iq()})}function ey(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Uc(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function lq(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,l=ma.Pop,a=null,c=f();c==null&&(c=0,i.replaceState(ah({},i.state,{idx:c}),""));function f(){return(i.state||{idx:null}).idx}function p(){l=ma.Pop;let C=f(),w=C==null?null:C-c;c=C,a&&a({action:l,location:m.location,delta:w})}function h(C,w){l=ma.Push;let b=zx(m.location,C,w);n&&n(b,C),c=f()+1;let x=x$(b,c),P=m.createHref(b);try{i.pushState(x,"",P)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(P)}s&&a&&a({action:l,location:m.location,delta:1})}function y(C,w){l=ma.Replace;let b=zx(m.location,C,w);n&&n(b,C),c=f();let x=x$(b,c),P=m.createHref(b);i.replaceState(x,"",P),s&&a&&a({action:l,location:m.location,delta:0})}function v(C){let w=o.location.origin!=="null"?o.location.origin:o.location.href,b=typeof C=="string"?C:ey(C);return Zn(w,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,w)}let m={get action(){return l},get location(){return e(o,i)},listen(C){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(C$,p),a=C,()=>{o.removeEventListener(C$,p),a=null}},createHref(C){return t(o,C)},createURL:v,encodeLocation(C){let w=v(C);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:h,replace:y,go(C){return i.go(C)}};return m}var S$;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(S$||(S$={}));function aq(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Uc(t):t,o=Ed(r.pathname||"/",n);if(o==null)return null;let s=zF(e);cq(s);let i=null;for(let l=0;i==null&&l<s.length;++l)i=yq(s[l],wq(o));return i}function zF(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(s,i,l)=>{let a={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};a.relativePath.startsWith("/")&&(Zn(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let c=Ia([r,a.relativePath]),f=n.concat(a);s.children&&s.children.length>0&&(Zn(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),zF(s.children,t,f,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:gq(c,s.index),routesMeta:f})};return e.forEach((s,i)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))o(s,i);else for(let a of VF(s.path))o(s,i,a)}),t}function VF(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=VF(r.join("/")),l=[];return l.push(...i.map(a=>a===""?s:[s,a].join("/"))),o&&l.push(...i),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function cq(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:vq(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const uq=/^:[\w-]+$/,dq=3,fq=2,pq=1,hq=10,mq=-2,P$=e=>e==="*";function gq(e,t){let n=e.split("/"),r=n.length;return n.some(P$)&&(r+=mq),t&&(r+=fq),n.filter(o=>!P$(o)).reduce((o,s)=>o+(uq.test(s)?dq:s===""?pq:hq),r)}function vq(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function yq(e,t){let{routesMeta:n}=e,r={},o="/",s=[];for(let i=0;i<n.length;++i){let l=n[i],a=i===n.length-1,c=o==="/"?t:t.slice(o.length)||"/",f=Vx({path:l.relativePath,caseSensitive:l.caseSensitive,end:a},c);if(!f)return null;Object.assign(r,f.params);let p=l.route;s.push({params:r,pathname:Ia([o,f.pathname]),pathnameBase:Eq(Ia([o,f.pathnameBase])),route:p}),f.pathnameBase!=="/"&&(o=Ia([o,f.pathnameBase]))}return s}function Vx(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=bq(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],i=s.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((c,f,p)=>{let{paramName:h,isOptional:y}=f;if(h==="*"){let m=l[p]||"";i=s.slice(0,s.length-m.length).replace(/(.)\/+$/,"$1")}const v=l[p];return y&&!v?c[h]=void 0:c[h]=Cq(v||"",h),c},{}),pathname:s,pathnameBase:i,pattern:e}}function bq(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),i1(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function wq(e){try{return decodeURI(e)}catch(t){return i1(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Cq(e,t){try{return decodeURIComponent(e)}catch(n){return i1(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Ed(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function xq(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Uc(e):e;return{pathname:n?n.startsWith("/")?n:Sq(n,t):t,search:kq(r),hash:Iq(o)}}function Sq(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Gw(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Pq(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function HF(e,t){let n=Pq(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function UF(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Uc(e):(o=ah({},e),Zn(!o.pathname||!o.pathname.includes("?"),Gw("?","pathname","search",o)),Zn(!o.pathname||!o.pathname.includes("#"),Gw("#","pathname","hash",o)),Zn(!o.search||!o.search.includes("#"),Gw("#","search","hash",o)));let s=e===""||o.pathname==="",i=s?"/":o.pathname,l;if(i==null)l=n;else{let p=t.length-1;if(!r&&i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),p-=1;o.pathname=h.join("/")}l=p>=0?t[p]:"/"}let a=xq(o,l),c=i&&i!=="/"&&i.endsWith("/"),f=(s||i===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(c||f)&&(a.pathname+="/"),a}const Ia=e=>e.join("/").replace(/\/\/+/g,"/"),Eq=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),kq=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Iq=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Mq(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const WF=["post","put","patch","delete"];new Set(WF);const _q=["get",...WF];new Set(_q);/**
42
+ * React Router v6.21.3
43
+ *
44
+ * Copyright (c) Remix Software Inc.
45
+ *
46
+ * This source code is licensed under the MIT license found in the
47
+ * LICENSE.md file in the root directory of this source tree.
48
+ *
49
+ * @license MIT
50
+ */function ch(){return ch=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ch.apply(this,arguments)}const l1=u.createContext(null),GF=u.createContext(null),za=u.createContext(null),a1=u.createContext(null),Wc=u.createContext({outlet:null,matches:[],isDataRoute:!1}),KF=u.createContext(null);function Tq(e,t){let{relative:n}=t===void 0?{}:t;Hh()||Zn(!1);let{basename:r,navigator:o}=u.useContext(za),{hash:s,pathname:i,search:l}=c1(e,{relative:n}),a=i;return r!=="/"&&(a=i==="/"?r:Ia([r,i])),o.createHref({pathname:a,search:l,hash:s})}function Hh(){return u.useContext(a1)!=null}function Yd(){return Hh()||Zn(!1),u.useContext(a1).location}function qF(e){u.useContext(za).static||u.useLayoutEffect(e)}function YF(){let{isDataRoute:e}=u.useContext(Wc);return e?Hq():$q()}function $q(){Hh()||Zn(!1);let e=u.useContext(l1),{basename:t,future:n,navigator:r}=u.useContext(za),{matches:o}=u.useContext(Wc),{pathname:s}=Yd(),i=JSON.stringify(HF(o,n.v7_relativeSplatPath)),l=u.useRef(!1);return qF(()=>{l.current=!0}),u.useCallback(function(c,f){if(f===void 0&&(f={}),!l.current)return;if(typeof c=="number"){r.go(c);return}let p=UF(c,JSON.parse(i),s,f.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Ia([t,p.pathname])),(f.replace?r.replace:r.push)(p,f.state,f)},[t,r,i,s,e])}function c1(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=u.useContext(za),{matches:o}=u.useContext(Wc),{pathname:s}=Yd(),i=JSON.stringify(HF(o,r.v7_relativeSplatPath));return u.useMemo(()=>UF(e,JSON.parse(i),s,n==="path"),[e,i,s,n])}function Rq(e,t){return Oq(e,t)}function Oq(e,t,n,r){Hh()||Zn(!1);let{navigator:o}=u.useContext(za),{matches:s}=u.useContext(Wc),i=s[s.length-1],l=i?i.params:{};i&&i.pathname;let a=i?i.pathnameBase:"/";i&&i.route;let c=Yd(),f;if(t){var p;let C=typeof t=="string"?Uc(t):t;a==="/"||(p=C.pathname)!=null&&p.startsWith(a)||Zn(!1),f=C}else f=c;let h=f.pathname||"/",y=a==="/"?h:h.slice(a.length)||"/",v=aq(e,{pathname:y}),m=Nq(v&&v.map(C=>Object.assign({},C,{params:Object.assign({},l,C.params),pathname:Ia([a,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?a:Ia([a,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),s,n,r);return t&&m?u.createElement(a1.Provider,{value:{location:ch({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:ma.Pop}},m):m}function Dq(){let e=Vq(),t=Mq(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},s=null;return u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},t),n?u.createElement("pre",{style:o},n):null,s)}const Aq=u.createElement(Dq,null);class Lq extends u.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?u.createElement(Wc.Provider,{value:this.props.routeContext},u.createElement(KF.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Fq(e){let{routeContext:t,match:n,children:r}=e,o=u.useContext(l1);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),u.createElement(Wc.Provider,{value:t},r)}function Nq(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if((s=n)!=null&&s.errors)e=n.matches;else return null}let i=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let f=i.findIndex(p=>p.route.id&&(l==null?void 0:l[p.route.id]));f>=0||Zn(!1),i=i.slice(0,Math.min(i.length,f+1))}let a=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<i.length;f++){let p=i[f];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(c=f),p.route.id){let{loaderData:h,errors:y}=n,v=p.route.loader&&h[p.route.id]===void 0&&(!y||y[p.route.id]===void 0);if(p.route.lazy||v){a=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((f,p,h)=>{let y,v=!1,m=null,C=null;n&&(y=l&&p.route.id?l[p.route.id]:void 0,m=p.route.errorElement||Aq,a&&(c<0&&h===0?(Uq("route-fallback",!1),v=!0,C=null):c===h&&(v=!0,C=p.route.hydrateFallbackElement||null)));let w=t.concat(i.slice(0,h+1)),b=()=>{let x;return y?x=m:v?x=C:p.route.Component?x=u.createElement(p.route.Component,null):p.route.element?x=p.route.element:x=f,u.createElement(Fq,{match:p,routeContext:{outlet:f,matches:w,isDataRoute:n!=null},children:x})};return n&&(p.route.ErrorBoundary||p.route.errorElement||h===0)?u.createElement(Lq,{location:n.location,revalidation:n.revalidation,component:m,error:y,children:b(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):b()},null)}var QF=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(QF||{}),ty=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ty||{});function Bq(e){let t=u.useContext(l1);return t||Zn(!1),t}function jq(e){let t=u.useContext(GF);return t||Zn(!1),t}function zq(e){let t=u.useContext(Wc);return t||Zn(!1),t}function XF(e){let t=zq(),n=t.matches[t.matches.length-1];return n.route.id||Zn(!1),n.route.id}function Vq(){var e;let t=u.useContext(KF),n=jq(ty.UseRouteError),r=XF(ty.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Hq(){let{router:e}=Bq(QF.UseNavigateStable),t=XF(ty.UseNavigateStable),n=u.useRef(!1);return qF(()=>{n.current=!0}),u.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ch({fromRouteId:t},s)))},[e,t])}const E$={};function Uq(e,t,n){!t&&!E$[e]&&(E$[e]=!0)}function Hx(e){Zn(!1)}function Wq(e){let{basename:t="/",children:n=null,location:r,navigationType:o=ma.Pop,navigator:s,static:i=!1,future:l}=e;Hh()&&Zn(!1);let a=t.replace(/^\/*/,"/"),c=u.useMemo(()=>({basename:a,navigator:s,static:i,future:ch({v7_relativeSplatPath:!1},l)}),[a,l,s,i]);typeof r=="string"&&(r=Uc(r));let{pathname:f="/",search:p="",hash:h="",state:y=null,key:v="default"}=r,m=u.useMemo(()=>{let C=Ed(f,a);return C==null?null:{location:{pathname:C,search:p,hash:h,state:y,key:v},navigationType:o}},[a,f,p,h,y,v,o]);return m==null?null:u.createElement(za.Provider,{value:c},u.createElement(a1.Provider,{children:n,value:m}))}function Gq(e){let{children:t,location:n}=e;return Rq(Ux(t),n)}new Promise(()=>{});function Ux(e,t){t===void 0&&(t=[]);let n=[];return u.Children.forEach(e,(r,o)=>{if(!u.isValidElement(r))return;let s=[...t,o];if(r.type===u.Fragment){n.push.apply(n,Ux(r.props.children,s));return}r.type!==Hx&&Zn(!1),!r.props.index||!r.props.children||Zn(!1);let i={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Ux(r.props.children,s)),n.push(i)}),n}/**
51
+ * React Router DOM v6.21.3
52
+ *
53
+ * Copyright (c) Remix Software Inc.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE.md file in the root directory of this source tree.
57
+ *
58
+ * @license MIT
59
+ */function ny(){return ny=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ny.apply(this,arguments)}function ZF(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Kq(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function qq(e,t){return e.button===0&&(!t||t==="_self")&&!Kq(e)}const Yq=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Qq=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],Xq=u.createContext({isTransitioning:!1}),Zq="startTransition",k$=Up[Zq];function Jq(e){let{basename:t,children:n,future:r,window:o}=e,s=u.useRef();s.current==null&&(s.current=sq({window:o,v5Compat:!0}));let i=s.current,[l,a]=u.useState({action:i.action,location:i.location}),{v7_startTransition:c}=r||{},f=u.useCallback(p=>{c&&k$?k$(()=>a(p)):a(p)},[a,c]);return u.useLayoutEffect(()=>i.listen(f),[i,f]),u.createElement(Wq,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:i,future:r})}const eY=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",tY=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,XP=u.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:i,state:l,target:a,to:c,preventScrollReset:f,unstable_viewTransition:p}=t,h=ZF(t,Yq),{basename:y}=u.useContext(za),v,m=!1;if(typeof c=="string"&&tY.test(c)&&(v=c,eY))try{let x=new URL(window.location.href),P=c.startsWith("//")?new URL(x.protocol+c):new URL(c),k=Ed(P.pathname,y);P.origin===x.origin&&k!=null?c=k+P.search+P.hash:m=!0}catch(x){}let C=Tq(c,{relative:o}),w=oY(c,{replace:i,state:l,target:a,preventScrollReset:f,relative:o,unstable_viewTransition:p});function b(x){r&&r(x),x.defaultPrevented||w(x)}return u.createElement("a",ny({},h,{href:v||C,onClick:m||s?r:b,ref:n,target:a}))}),nY=u.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:s="",end:i=!1,style:l,to:a,unstable_viewTransition:c,children:f}=t,p=ZF(t,Qq),h=c1(a,{relative:p.relative}),y=Yd(),v=u.useContext(GF),{navigator:m,basename:C}=u.useContext(za),w=v!=null&&sY(h)&&c===!0,b=m.encodeLocation?m.encodeLocation(h).pathname:h.pathname,x=y.pathname,P=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;o||(x=x.toLowerCase(),P=P?P.toLowerCase():null,b=b.toLowerCase()),P&&C&&(P=Ed(P,C)||P);const k=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let E=x===b||!i&&x.startsWith(b)&&x.charAt(k)==="/",I=P!=null&&(P===b||!i&&P.startsWith(b)&&P.charAt(b.length)==="/"),R={isActive:E,isPending:I,isTransitioning:w},O=E?r:void 0,$;typeof s=="function"?$=s(R):$=[s,E?"active":null,I?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let L=typeof l=="function"?l(R):l;return u.createElement(XP,ny({},p,{"aria-current":O,className:$,ref:n,style:L,to:a,unstable_viewTransition:c}),typeof f=="function"?f(R):f)});var Wx;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Wx||(Wx={}));var I$;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(I$||(I$={}));function rY(e){let t=u.useContext(l1);return t||Zn(!1),t}function oY(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:i,unstable_viewTransition:l}=t===void 0?{}:t,a=YF(),c=Yd(),f=c1(e,{relative:i});return u.useCallback(p=>{if(qq(p,n)){p.preventDefault();let h=r!==void 0?r:ey(c)===ey(f);a(e,{replace:h,state:o,preventScrollReset:s,relative:i,unstable_viewTransition:l})}},[c,a,f,r,o,n,e,s,i,l])}function sY(e,t){t===void 0&&(t={});let n=u.useContext(Xq);n==null&&Zn(!1);let{basename:r}=rY(Wx.useViewTransitionState),o=c1(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=Ed(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=Ed(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Vx(o.pathname,i)!=null||Vx(o.pathname,s)!=null}const iY={black:"#000",white:"#fff"},uh=iY,lY={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},hu=lY,aY={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},mu=aY,cY={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},gu=cY,uY={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},vu=uY,dY={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},yu=dY,fY={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Wf=fY,pY={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},hY=pY;function Il(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const mY=Object.freeze(Object.defineProperty({__proto__:null,default:Il},Symbol.toStringTag,{value:"Module"})),Dc="$$material";function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S.apply(this,arguments)}function le(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function JF(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var gY=/^((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)-.*))$/,vY=JF(function(e){return gY.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function yY(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function bY(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var wY=function(){function e(n){var r=this;this._insertTag=function(o){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,s),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(bY(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=yY(o);try{s.insertRule(r,s.cssRules.length)}catch(i){}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),zr="-ms-",ry="-moz-",nn="-webkit-",eN="comm",ZP="rule",JP="decl",CY="@import",tN="@keyframes",xY="@layer",SY=Math.abs,u1=String.fromCharCode,PY=Object.assign;function EY(e,t){return Or(e,0)^45?(((t<<2^Or(e,0))<<2^Or(e,1))<<2^Or(e,2))<<2^Or(e,3):0}function nN(e){return e.trim()}function kY(e,t){return(e=t.exec(e))?e[0]:e}function rn(e,t,n){return e.replace(t,n)}function Gx(e,t){return e.indexOf(t)}function Or(e,t){return e.charCodeAt(t)|0}function dh(e,t,n){return e.slice(t,n)}function Ti(e){return e.length}function e2(e){return e.length}function Ig(e,t){return t.push(e),e}function IY(e,t){return e.map(t).join("")}var d1=1,kd=1,rN=0,Oo=0,cr=0,Qd="";function f1(e,t,n,r,o,s,i){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:d1,column:kd,length:i,return:""}}function Gf(e,t){return PY(f1("",null,null,"",null,null,0),e,{length:-e.length},t)}function MY(){return cr}function _Y(){return cr=Oo>0?Or(Qd,--Oo):0,kd--,cr===10&&(kd=1,d1--),cr}function Zo(){return cr=Oo<rN?Or(Qd,Oo++):0,kd++,cr===10&&(kd=1,d1++),cr}function Fi(){return Or(Qd,Oo)}function uv(){return Oo}function Uh(e,t){return dh(Qd,e,t)}function fh(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function oN(e){return d1=kd=1,rN=Ti(Qd=e),Oo=0,[]}function sN(e){return Qd="",e}function dv(e){return nN(Uh(Oo-1,Kx(e===91?e+2:e===40?e+1:e)))}function TY(e){for(;(cr=Fi())&&cr<33;)Zo();return fh(e)>2||fh(cr)>3?"":" "}function $Y(e,t){for(;--t&&Zo()&&!(cr<48||cr>102||cr>57&&cr<65||cr>70&&cr<97););return Uh(e,uv()+(t<6&&Fi()==32&&Zo()==32))}function Kx(e){for(;Zo();)switch(cr){case e:return Oo;case 34:case 39:e!==34&&e!==39&&Kx(cr);break;case 40:e===41&&Kx(e);break;case 92:Zo();break}return Oo}function RY(e,t){for(;Zo()&&e+cr!==47+10;)if(e+cr===42+42&&Fi()===47)break;return"/*"+Uh(t,Oo-1)+"*"+u1(e===47?e:Zo())}function OY(e){for(;!fh(Fi());)Zo();return Uh(e,Oo)}function DY(e){return sN(fv("",null,null,null,[""],e=oN(e),0,[0],e))}function fv(e,t,n,r,o,s,i,l,a){for(var c=0,f=0,p=i,h=0,y=0,v=0,m=1,C=1,w=1,b=0,x="",P=o,k=s,E=r,I=x;C;)switch(v=b,b=Zo()){case 40:if(v!=108&&Or(I,p-1)==58){Gx(I+=rn(dv(b),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:I+=dv(b);break;case 9:case 10:case 13:case 32:I+=TY(v);break;case 92:I+=$Y(uv()-1,7);continue;case 47:switch(Fi()){case 42:case 47:Ig(AY(RY(Zo(),uv()),t,n),a);break;default:I+="/"}break;case 123*m:l[c++]=Ti(I)*w;case 125*m:case 59:case 0:switch(b){case 0:case 125:C=0;case 59+f:w==-1&&(I=rn(I,/\f/g,"")),y>0&&Ti(I)-p&&Ig(y>32?_$(I+";",r,n,p-1):_$(rn(I," ","")+";",r,n,p-2),a);break;case 59:I+=";";default:if(Ig(E=M$(I,t,n,c,f,o,l,x,P=[],k=[],p),s),b===123)if(f===0)fv(I,t,E,E,P,s,p,l,k);else switch(h===99&&Or(I,3)===110?100:h){case 100:case 108:case 109:case 115:fv(e,E,E,r&&Ig(M$(e,E,E,0,0,o,l,x,o,P=[],p),k),o,k,p,l,r?P:k);break;default:fv(I,E,E,E,[""],k,0,l,k)}}c=f=y=0,m=w=1,x=I="",p=i;break;case 58:p=1+Ti(I),y=v;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&_Y()==125)continue}switch(I+=u1(b),b*m){case 38:w=f>0?1:(I+="\f",-1);break;case 44:l[c++]=(Ti(I)-1)*w,w=1;break;case 64:Fi()===45&&(I+=dv(Zo())),h=Fi(),f=p=Ti(x=I+=OY(uv())),b++;break;case 45:v===45&&Ti(I)==2&&(m=0)}}return s}function M$(e,t,n,r,o,s,i,l,a,c,f){for(var p=o-1,h=o===0?s:[""],y=e2(h),v=0,m=0,C=0;v<r;++v)for(var w=0,b=dh(e,p+1,p=SY(m=i[v])),x=e;w<y;++w)(x=nN(m>0?h[w]+" "+b:rn(b,/&\f/g,h[w])))&&(a[C++]=x);return f1(e,t,n,o===0?ZP:l,a,c,f)}function AY(e,t,n){return f1(e,t,n,eN,u1(MY()),dh(e,2,-2),0)}function _$(e,t,n,r){return f1(e,t,n,JP,dh(e,0,r),dh(e,r+1,-1),r)}function ad(e,t){for(var n="",r=e2(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function LY(e,t,n,r){switch(e.type){case xY:if(e.children.length)break;case CY:case JP:return e.return=e.return||e.value;case eN:return"";case tN:return e.return=e.value+"{"+ad(e.children,r)+"}";case ZP:e.value=e.props.join(",")}return Ti(n=ad(e.children,r))?e.return=e.value+"{"+n+"}":""}function FY(e){var t=e2(e);return function(n,r,o,s){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,s)||"";return i}}function NY(e){return function(t){t.root||(t=t.return)&&e(t)}}var BY=function(t,n,r){for(var o=0,s=0;o=s,s=Fi(),o===38&&s===12&&(n[r]=1),!fh(s);)Zo();return Uh(t,Oo)},jY=function(t,n){var r=-1,o=44;do switch(fh(o)){case 0:o===38&&Fi()===12&&(n[r]=1),t[r]+=BY(Oo-1,n,r);break;case 2:t[r]+=dv(o);break;case 4:if(o===44){t[++r]=Fi()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=u1(o)}while(o=Zo());return t},zY=function(t,n){return sN(jY(oN(t),n))},T$=new WeakMap,VY=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!T$.get(r))&&!o){T$.set(t,!0);for(var s=[],i=zY(n,s),l=r.props,a=0,c=0;a<i.length;a++)for(var f=0;f<l.length;f++,c++)t.props[c]=s[a]?i[a].replace(/&\f/g,l[f]):l[f]+" "+i[a]}}},HY=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function iN(e,t){switch(EY(e,t)){case 5103:return nn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return nn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return nn+e+ry+e+zr+e+e;case 6828:case 4268:return nn+e+zr+e+e;case 6165:return nn+e+zr+"flex-"+e+e;case 5187:return nn+e+rn(e,/(\w+).+(:[^]+)/,nn+"box-$1$2"+zr+"flex-$1$2")+e;case 5443:return nn+e+zr+"flex-item-"+rn(e,/flex-|-self/,"")+e;case 4675:return nn+e+zr+"flex-line-pack"+rn(e,/align-content|flex-|-self/,"")+e;case 5548:return nn+e+zr+rn(e,"shrink","negative")+e;case 5292:return nn+e+zr+rn(e,"basis","preferred-size")+e;case 6060:return nn+"box-"+rn(e,"-grow","")+nn+e+zr+rn(e,"grow","positive")+e;case 4554:return nn+rn(e,/([^-])(transform)/g,"$1"+nn+"$2")+e;case 6187:return rn(rn(rn(e,/(zoom-|grab)/,nn+"$1"),/(image-set)/,nn+"$1"),e,"")+e;case 5495:case 3959:return rn(e,/(image-set\([^]*)/,nn+"$1$`$1");case 4968:return rn(rn(e,/(.+:)(flex-)?(.*)/,nn+"box-pack:$3"+zr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+nn+e+e;case 4095:case 3583:case 4068:case 2532:return rn(e,/(.+)-inline(.+)/,nn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ti(e)-1-t>6)switch(Or(e,t+1)){case 109:if(Or(e,t+4)!==45)break;case 102:return rn(e,/(.+:)(.+)-([^]+)/,"$1"+nn+"$2-$3$1"+ry+(Or(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Gx(e,"stretch")?iN(rn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Or(e,t+1)!==115)break;case 6444:switch(Or(e,Ti(e)-3-(~Gx(e,"!important")&&10))){case 107:return rn(e,":",":"+nn)+e;case 101:return rn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+nn+(Or(e,14)===45?"inline-":"")+"box$3$1"+nn+"$2$3$1"+zr+"$2box$3")+e}break;case 5936:switch(Or(e,t+11)){case 114:return nn+e+zr+rn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return nn+e+zr+rn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return nn+e+zr+rn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return nn+e+zr+e+e}return e}var UY=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case JP:t.return=iN(t.value,t.length);break;case tN:return ad([Gf(t,{value:rn(t.value,"@","@"+nn)})],o);case ZP:if(t.length)return IY(t.props,function(s){switch(kY(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ad([Gf(t,{props:[rn(s,/:(read-\w+)/,":"+ry+"$1")]})],o);case"::placeholder":return ad([Gf(t,{props:[rn(s,/:(plac\w+)/,":"+nn+"input-$1")]}),Gf(t,{props:[rn(s,/:(plac\w+)/,":"+ry+"$1")]}),Gf(t,{props:[rn(s,/:(plac\w+)/,zr+"input-$1")]})],o)}return""})}},WY=[UY],lN=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(m){var C=m.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||WY,s={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var C=m.getAttribute("data-emotion").split(" "),w=1;w<C.length;w++)s[C[w]]=!0;l.push(m)});var a,c=[VY,HY];{var f,p=[LY,NY(function(m){f.insert(m)})],h=FY(c.concat(o,p)),y=function(C){return ad(DY(C),h)};a=function(C,w,b,x){f=b,y(C?C+"{"+w.styles+"}":w.styles),x&&(v.inserted[w.name]=!0)}}var v={key:n,sheet:new wY({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:a};return v.sheet.hydrate(l),v},aN={exports:{}},hn={};/** @license React v16.13.1
60
+ * react-is.production.min.js
61
+ *
62
+ * Copyright (c) Facebook, Inc. and its affiliates.
63
+ *
64
+ * This source code is licensed under the MIT license found in the
65
+ * LICENSE file in the root directory of this source tree.
66
+ */var kr=typeof Symbol=="function"&&Symbol.for,t2=kr?Symbol.for("react.element"):60103,n2=kr?Symbol.for("react.portal"):60106,p1=kr?Symbol.for("react.fragment"):60107,h1=kr?Symbol.for("react.strict_mode"):60108,m1=kr?Symbol.for("react.profiler"):60114,g1=kr?Symbol.for("react.provider"):60109,v1=kr?Symbol.for("react.context"):60110,r2=kr?Symbol.for("react.async_mode"):60111,y1=kr?Symbol.for("react.concurrent_mode"):60111,b1=kr?Symbol.for("react.forward_ref"):60112,w1=kr?Symbol.for("react.suspense"):60113,GY=kr?Symbol.for("react.suspense_list"):60120,C1=kr?Symbol.for("react.memo"):60115,x1=kr?Symbol.for("react.lazy"):60116,KY=kr?Symbol.for("react.block"):60121,qY=kr?Symbol.for("react.fundamental"):60117,YY=kr?Symbol.for("react.responder"):60118,QY=kr?Symbol.for("react.scope"):60119;function us(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case t2:switch(e=e.type,e){case r2:case y1:case p1:case m1:case h1:case w1:return e;default:switch(e=e&&e.$$typeof,e){case v1:case b1:case x1:case C1:case g1:return e;default:return t}}case n2:return t}}}function cN(e){return us(e)===y1}hn.AsyncMode=r2;hn.ConcurrentMode=y1;hn.ContextConsumer=v1;hn.ContextProvider=g1;hn.Element=t2;hn.ForwardRef=b1;hn.Fragment=p1;hn.Lazy=x1;hn.Memo=C1;hn.Portal=n2;hn.Profiler=m1;hn.StrictMode=h1;hn.Suspense=w1;hn.isAsyncMode=function(e){return cN(e)||us(e)===r2};hn.isConcurrentMode=cN;hn.isContextConsumer=function(e){return us(e)===v1};hn.isContextProvider=function(e){return us(e)===g1};hn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===t2};hn.isForwardRef=function(e){return us(e)===b1};hn.isFragment=function(e){return us(e)===p1};hn.isLazy=function(e){return us(e)===x1};hn.isMemo=function(e){return us(e)===C1};hn.isPortal=function(e){return us(e)===n2};hn.isProfiler=function(e){return us(e)===m1};hn.isStrictMode=function(e){return us(e)===h1};hn.isSuspense=function(e){return us(e)===w1};hn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===p1||e===y1||e===m1||e===h1||e===w1||e===GY||typeof e=="object"&&e!==null&&(e.$$typeof===x1||e.$$typeof===C1||e.$$typeof===g1||e.$$typeof===v1||e.$$typeof===b1||e.$$typeof===qY||e.$$typeof===YY||e.$$typeof===QY||e.$$typeof===KY)};hn.typeOf=us;aN.exports=hn;var XY=aN.exports,uN=XY,ZY={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},JY={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},dN={};dN[uN.ForwardRef]=ZY;dN[uN.Memo]=JY;var eQ=!0;function tQ(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var fN=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||eQ===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},pN=function(t,n,r){fN(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function nQ(e){for(var t=0,n,r=0,o=e.length;o>=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 rQ={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},oQ=/[A-Z]|^ms/g,sQ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,hN=function(t){return t.charCodeAt(1)===45},$$=function(t){return t!=null&&typeof t!="boolean"},Kw=JF(function(e){return hN(e)?e:e.replace(oQ,"-$&").toLowerCase()}),R$=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(sQ,function(r,o,s){return $i={name:o,styles:s,next:$i},o})}return rQ[t]!==1&&!hN(t)&&typeof n=="number"&&n!==0?n+"px":n};function ph(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 $i={name:n.name,styles:n.styles,next:$i},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)$i={name:r.name,styles:r.styles,next:$i},r=r.next;var o=n.styles+";";return o}return iQ(e,t,n)}case"function":{if(e!==void 0){var s=$i,i=n(e);return $i=s,ph(e,t,i)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function iQ(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ph(e,t,n[o])+";";else for(var s in n){var i=n[s];if(typeof i!="object")t!=null&&t[i]!==void 0?r+=s+"{"+t[i]+"}":$$(i)&&(r+=Kw(s)+":"+R$(s,i)+";");else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var l=0;l<i.length;l++)$$(i[l])&&(r+=Kw(s)+":"+R$(s,i[l])+";");else{var a=ph(e,t,i);switch(s){case"animation":case"animationName":{r+=Kw(s)+":"+a+";";break}default:r+=s+"{"+a+"}"}}}return r}var O$=/label:\s*([^\s;\n{]+)\s*(;|$)/g,$i,o2=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,s="";$i=void 0;var i=t[0];i==null||i.raw===void 0?(o=!1,s+=ph(r,n,i)):s+=i[0];for(var l=1;l<t.length;l++)s+=ph(r,n,t[l]),o&&(s+=i[l]);O$.lastIndex=0;for(var a="",c;(c=O$.exec(s))!==null;)a+="-"+c[1];var f=nQ(s)+a;return{name:f,styles:s,next:$i}},lQ=function(t){return t()},mN=Up["useInsertionEffect"]?Up["useInsertionEffect"]:!1,aQ=mN||lQ,D$=mN||u.useLayoutEffect,gN=u.createContext(typeof HTMLElement!="undefined"?lN({key:"css"}):null),cQ=gN.Provider,vN=function(t){return u.forwardRef(function(n,r){var o=u.useContext(gN);return t(n,o,r)})},Wh=u.createContext({}),qw={exports:{}},A$;function yN(){return A$||(A$=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(n[s]=o[s])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(qw)),qw.exports}yN();var uQ=vN(function(e,t){var n=e.styles,r=o2([n],void 0,u.useContext(Wh)),o=u.useRef();return D$(function(){var s=t.key+"-global",i=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,a=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),a!==null&&(l=!0,a.setAttribute("data-emotion",s),i.hydrate([a])),o.current=[i,l],function(){i.flush()}},[t]),D$(function(){var s=o.current,i=s[0],l=s[1];if(l){s[1]=!1;return}if(r.next!==void 0&&pN(t,r.next,!0),i.tags.length){var a=i.tags[i.tags.length-1].nextElementSibling;i.before=a,i.flush()}t.insert("",r,i,!1)},[t,r.name]),null});function Ml(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o2(t)}var yi=function(){var t=Ml.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},dQ=vY,fQ=function(t){return t!=="theme"},L$=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?dQ:fQ},F$=function(t,n,r){var o;if(n){var s=n.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(i){return t.__emotion_forwardProp(i)&&s(i)}:s}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},pQ=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return fN(n,r,o),aQ(function(){return pN(n,r,o)}),null},hQ=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,s,i;n!==void 0&&(s=n.label,i=n.target);var l=F$(t,n,r),a=l||L$(o),c=!a("as");return function(){var f=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&p.push("label:"+s+";"),f[0]==null||f[0].raw===void 0)p.push.apply(p,f);else{p.push(f[0][0]);for(var h=f.length,y=1;y<h;y++)p.push(f[y],f[0][y])}var v=vN(function(m,C,w){var b=c&&m.as||o,x="",P=[],k=m;if(m.theme==null){k={};for(var E in m)k[E]=m[E];k.theme=u.useContext(Wh)}typeof m.className=="string"?x=tQ(C.registered,P,m.className):m.className!=null&&(x=m.className+" ");var I=o2(p.concat(P),C.registered,k);x+=C.key+"-"+I.name,i!==void 0&&(x+=" "+i);var R=c&&l===void 0?L$(b):a,O={};for(var $ in m)c&&$==="as"||R($)&&(O[$]=m[$]);return O.className=x,O.ref=w,u.createElement(u.Fragment,null,u.createElement(pQ,{cache:C,serialized:I,isStringTag:typeof b=="string"}),u.createElement(b,O))});return v.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=o,v.__emotion_styles=p,v.__emotion_forwardProp=l,Object.defineProperty(v,"toString",{value:function(){return"."+i}}),v.withComponent=function(m,C){return e(m,S({},n,C,{shouldForwardProp:F$(v,C,!0)})).apply(void 0,p)},v}},mQ=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],qx=hQ.bind();mQ.forEach(function(e){qx[e]=qx(e)});var bN={exports:{}},gQ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",vQ=gQ,yQ=vQ;function wN(){}function CN(){}CN.resetWarningCache=wN;var bQ=function(){function e(r,o,s,i,l,a){if(a!==yQ){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:CN,resetWarningCache:wN};return n.PropTypes=n,n};bN.exports=bQ();var wQ=bN.exports;const W=vi(wQ);var Yw={exports:{}},Kf={};/**
67
+ * @license React
68
+ * react-jsx-runtime.production.min.js
69
+ *
70
+ * Copyright (c) Facebook, Inc. and its affiliates.
71
+ *
72
+ * This source code is licensed under the MIT license found in the
73
+ * LICENSE file in the root directory of this source tree.
74
+ */var N$;function CQ(){if(N$)return Kf;N$=1;var e=u,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(l,a,c){var f,p={},h=null,y=null;c!==void 0&&(h=""+c),a.key!==void 0&&(h=""+a.key),a.ref!==void 0&&(y=a.ref);for(f in a)r.call(a,f)&&!s.hasOwnProperty(f)&&(p[f]=a[f]);if(l&&l.defaultProps)for(f in a=l.defaultProps,a)p[f]===void 0&&(p[f]=a[f]);return{$$typeof:t,type:l,key:h,ref:y,props:p,_owner:o.current}}return Kf.Fragment=n,Kf.jsx=i,Kf.jsxs=i,Kf}var B$;function et(){return B$||(B$=1,Yw.exports=CQ()),Yw.exports}var D=et();let Yx;typeof document=="object"&&(Yx=lN({key:"css",prepend:!0}));function xQ(e){const{injectFirst:t,children:n}=e;return t&&Yx?D.jsx(cQ,{value:Yx,children:n}):n}function SQ(e){return e==null||Object.keys(e).length===0}function xN(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(SQ(o)?n:o):t;return D.jsx(uQ,{styles:r})}/**
75
+ * @mui/styled-engine v5.15.14
76
+ *
77
+ * @license MIT
78
+ * This source code is licensed under the MIT license found in the
79
+ * LICENSE file in the root directory of this source tree.
80
+ */function s2(e,t){return qx(e,t)}const SN=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},PQ=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:xN,StyledEngineProvider:xQ,ThemeContext:Wh,css:Ml,default:s2,internal_processStyles:SN,keyframes:yi},Symbol.toStringTag,{value:"Module"}));function fl(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 PN(e){if(!fl(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=PN(e[n])}),t}function co(e,t,n={clone:!0}){const r=n.clone?S({},e):e;return fl(e)&&fl(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(fl(t[o])&&o in e&&fl(e[o])?r[o]=co(e[o],t[o],n):n.clone?r[o]=fl(t[o])?PN(t[o]):t[o]:r[o]=t[o])}),r}const EQ=Object.freeze(Object.defineProperty({__proto__:null,default:co,isPlainObject:fl},Symbol.toStringTag,{value:"Module"})),kQ=["values","unit","step"],IQ=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)=>S({},n,{[r.key]:r.val}),{})};function EN(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=le(e,kQ),s=IQ(t),i=Object.keys(s);function l(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function a(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,y){const v=i.indexOf(y);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(v!==-1&&typeof t[i[v]]=="number"?t[i[v]]:y)-r/100}${n})`}function f(h){return i.indexOf(h)+1<i.length?c(h,i[i.indexOf(h)+1]):l(h)}function p(h){const y=i.indexOf(h);return y===0?l(i[1]):y===i.length-1?a(i[y]):c(h,i[i.indexOf(h)+1]).replace("@media","@media not all and")}return S({keys:i,values:s,up:l,down:a,between:c,only:f,not:p,unit:n},o)}const MQ={borderRadius:4},_Q=MQ;function Rp(e,t){return t?co(e,t,{clone:!1}):e}const i2={xs:0,sm:600,md:900,lg:1200,xl:1536},j$={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${i2[e]}px)`};function Do(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||j$;return t.reduce((i,l,a)=>(i[s.up(s.keys[a])]=n(t[a]),i),{})}if(typeof t=="object"){const s=r.breakpoints||j$;return Object.keys(t).reduce((i,l)=>{if(Object.keys(s.values||i2).indexOf(l)!==-1){const a=s.up(l);i[a]=n(t[l],l)}else{const a=l;i[a]=t[a]}return i},{})}return n(t)}function kN(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const s=e.up(o);return r[s]={},r},{}))||{}}function IN(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function TQ(e,...t){const n=kN(e),r=[n,...t].reduce((o,s)=>co(o,s),{});return IN(Object.keys(n),r)}function $Q(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,s)=>{s<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function xc({values:e,breakpoints:t,base:n}){const r=n||$Q(e,t),o=Object.keys(r);if(o.length===0)return e;let s;return o.reduce((i,l,a)=>(Array.isArray(e)?(i[l]=e[a]!=null?e[a]:e[s],s=a):typeof e=="object"?(i[l]=e[l]!=null?e[l]:e[s],s=l):i[l]=e,i),{})}function Se(e){if(typeof e!="string")throw new Error(Il(7));return e.charAt(0).toUpperCase()+e.slice(1)}const RQ=Object.freeze(Object.defineProperty({__proto__:null,default:Se},Symbol.toStringTag,{value:"Module"}));function Id(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function oy(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Id(e,n)||r,t&&(o=t(o,r,e)),o}function sr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=i=>{if(i[t]==null)return null;const l=i[t],a=i.theme,c=Id(a,r)||{};return Do(i,l,p=>{let h=oy(c,o,p);return p===h&&typeof p=="string"&&(h=oy(c,o,`${t}${p==="default"?"":Se(p)}`,p)),n===!1?h:{[n]:h}})};return s.propTypes={},s.filterProps=[t],s}function OQ(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const DQ={m:"margin",p:"padding"},AQ={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},z$={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},LQ=OQ(e=>{if(e.length>2)if(z$[e])e=z$[e];else return[e];const[t,n]=e.split(""),r=DQ[t],o=AQ[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),l2=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],a2=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...l2,...a2];function Gh(e,t,n,r){var o;const s=(o=Id(e,t,!1))!=null?o:n;return typeof s=="number"?i=>typeof i=="string"?i:s*i:Array.isArray(s)?i=>typeof i=="string"?i:s[i]:typeof s=="function"?s:()=>{}}function c2(e){return Gh(e,"spacing",8)}function Ac(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 FQ(e,t){return n=>e.reduce((r,o)=>(r[o]=Ac(t,n),r),{})}function NQ(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=LQ(n),s=FQ(o,r),i=e[n];return Do(e,i,s)}function MN(e,t){const n=c2(e.theme);return Object.keys(e).map(r=>NQ(e,t,r,n)).reduce(Rp,{})}function Un(e){return MN(e,l2)}Un.propTypes={};Un.filterProps=l2;function Wn(e){return MN(e,a2)}Wn.propTypes={};Wn.filterProps=a2;function BQ(e=8){if(e.mui)return e;const t=c2({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function S1(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?Rp(o,t[s](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function $s(e){return typeof e!="number"?e:`${e}px solid`}function Hs(e,t){return sr({prop:e,themeKey:"borders",transform:t})}const jQ=Hs("border",$s),zQ=Hs("borderTop",$s),VQ=Hs("borderRight",$s),HQ=Hs("borderBottom",$s),UQ=Hs("borderLeft",$s),WQ=Hs("borderColor"),GQ=Hs("borderTopColor"),KQ=Hs("borderRightColor"),qQ=Hs("borderBottomColor"),YQ=Hs("borderLeftColor"),QQ=Hs("outline",$s),XQ=Hs("outlineColor"),P1=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Gh(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ac(t,r)});return Do(e,e.borderRadius,n)}return null};P1.propTypes={};P1.filterProps=["borderRadius"];S1(jQ,zQ,VQ,HQ,UQ,WQ,GQ,KQ,qQ,YQ,P1,QQ,XQ);const E1=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Gh(e.theme,"spacing",8),n=r=>({gap:Ac(t,r)});return Do(e,e.gap,n)}return null};E1.propTypes={};E1.filterProps=["gap"];const k1=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Gh(e.theme,"spacing",8),n=r=>({columnGap:Ac(t,r)});return Do(e,e.columnGap,n)}return null};k1.propTypes={};k1.filterProps=["columnGap"];const I1=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Gh(e.theme,"spacing",8),n=r=>({rowGap:Ac(t,r)});return Do(e,e.rowGap,n)}return null};I1.propTypes={};I1.filterProps=["rowGap"];const ZQ=sr({prop:"gridColumn"}),JQ=sr({prop:"gridRow"}),eX=sr({prop:"gridAutoFlow"}),tX=sr({prop:"gridAutoColumns"}),nX=sr({prop:"gridAutoRows"}),rX=sr({prop:"gridTemplateColumns"}),oX=sr({prop:"gridTemplateRows"}),sX=sr({prop:"gridTemplateAreas"}),iX=sr({prop:"gridArea"});S1(E1,k1,I1,ZQ,JQ,eX,tX,nX,rX,oX,sX,iX);function cd(e,t){return t==="grey"?t:e}const lX=sr({prop:"color",themeKey:"palette",transform:cd}),aX=sr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:cd}),cX=sr({prop:"backgroundColor",themeKey:"palette",transform:cd});S1(lX,aX,cX);function Ko(e){return e<=1&&e!==0?`${e*100}%`:e}const uX=sr({prop:"width",transform:Ko}),u2=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const s=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||i2[n];return s?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:Ko(n)}};return Do(e,e.maxWidth,t)}return null};u2.filterProps=["maxWidth"];const dX=sr({prop:"minWidth",transform:Ko}),fX=sr({prop:"height",transform:Ko}),pX=sr({prop:"maxHeight",transform:Ko}),hX=sr({prop:"minHeight",transform:Ko});sr({prop:"size",cssProperty:"width",transform:Ko});sr({prop:"size",cssProperty:"height",transform:Ko});const mX=sr({prop:"boxSizing"});S1(uX,u2,dX,fX,pX,hX,mX);const gX={border:{themeKey:"borders",transform:$s},borderTop:{themeKey:"borders",transform:$s},borderRight:{themeKey:"borders",transform:$s},borderBottom:{themeKey:"borders",transform:$s},borderLeft:{themeKey:"borders",transform:$s},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$s},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:P1},color:{themeKey:"palette",transform:cd},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:cd},backgroundColor:{themeKey:"palette",transform:cd},p:{style:Wn},pt:{style:Wn},pr:{style:Wn},pb:{style:Wn},pl:{style:Wn},px:{style:Wn},py:{style:Wn},padding:{style:Wn},paddingTop:{style:Wn},paddingRight:{style:Wn},paddingBottom:{style:Wn},paddingLeft:{style:Wn},paddingX:{style:Wn},paddingY:{style:Wn},paddingInline:{style:Wn},paddingInlineStart:{style:Wn},paddingInlineEnd:{style:Wn},paddingBlock:{style:Wn},paddingBlockStart:{style:Wn},paddingBlockEnd:{style:Wn},m:{style:Un},mt:{style:Un},mr:{style:Un},mb:{style:Un},ml:{style:Un},mx:{style:Un},my:{style:Un},margin:{style:Un},marginTop:{style:Un},marginRight:{style:Un},marginBottom:{style:Un},marginLeft:{style:Un},marginX:{style:Un},marginY:{style:Un},marginInline:{style:Un},marginInlineStart:{style:Un},marginInlineEnd:{style:Un},marginBlock:{style:Un},marginBlockStart:{style:Un},marginBlockEnd:{style:Un},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:E1},rowGap:{style:I1},columnGap:{style:k1},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ko},maxWidth:{style:u2},minWidth:{transform:Ko},height:{transform:Ko},maxHeight:{transform:Ko},minHeight:{transform:Ko},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Kh=gX;function vX(...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 yX(e,t){return typeof e=="function"?e(t):e}function _N(){function e(n,r,o,s){const i={[n]:r,theme:o},l=s[n];if(!l)return{[n]:r};const{cssProperty:a=n,themeKey:c,transform:f,style:p}=l;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=Id(o,c)||{};return p?p(i):Do(i,r,v=>{let m=oy(h,f,v);return v===m&&typeof v=="string"&&(m=oy(h,f,`${n}${v==="default"?"":Se(v)}`,v)),a===!1?m:{[a]:m}})}function t(n){var r;const{sx:o,theme:s={}}=n||{};if(!o)return null;const i=(r=s.unstable_sxConfig)!=null?r:Kh;function l(a){let c=a;if(typeof a=="function")c=a(s);else if(typeof a!="object")return a;if(!c)return null;const f=kN(s.breakpoints),p=Object.keys(f);let h=f;return Object.keys(c).forEach(y=>{const v=yX(c[y],s);if(v!=null)if(typeof v=="object")if(i[y])h=Rp(h,e(y,v,s,i));else{const m=Do({theme:s},v,C=>({[y]:C}));vX(m,v)?h[y]=t({sx:v,theme:s}):h=Rp(h,m)}else h=Rp(h,e(y,v,s,i))}),IN(p,h)}return Array.isArray(o)?o.map(l):l(o)}return t}const TN=_N();TN.filterProps=["sx"];const qh=TN;function $N(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const bX=["breakpoints","palette","spacing","shape"];function Yh(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={}}=e,i=le(e,bX),l=EN(n),a=BQ(o);let c=co({breakpoints:l,direction:"ltr",components:{},palette:S({mode:"light"},r),spacing:a,shape:S({},_Q,s)},i);return c.applyStyles=$N,c=t.reduce((f,p)=>co(f,p),c),c.unstable_sxConfig=S({},Kh,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(p){return qh({sx:p,theme:this})},c}const wX=Object.freeze(Object.defineProperty({__proto__:null,default:Yh,private_createBreakpoints:EN,unstable_applyStyles:$N},Symbol.toStringTag,{value:"Module"}));function CX(e){return Object.keys(e).length===0}function d2(e=null){const t=u.useContext(Wh);return!t||CX(t)?e:t}const xX=Yh();function Xd(e=xX){return d2(e)}function SX({styles:e,themeId:t,defaultTheme:n={}}){const r=Xd(n),o=typeof e=="function"?e(t&&r[t]||r):e;return D.jsx(xN,{styles:o})}const PX=["sx"],EX=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Kh;return Object.keys(e).forEach(s=>{o[s]?r.systemProps[s]=e[s]:r.otherProps[s]=e[s]}),r};function Qh(e){const{sx:t}=e,n=le(e,PX),{systemProps:r,otherProps:o}=EX(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...i)=>{const l=t(...i);return fl(l)?S({},r,l):r}:s=S({},r,t),S({},o,{sx:s})}const kX=Object.freeze(Object.defineProperty({__proto__:null,default:qh,extendSxProp:Qh,unstable_createStyleFunctionSx:_N,unstable_defaultSxConfig:Kh},Symbol.toStringTag,{value:"Module"})),V$=e=>e,IX=()=>{let e=V$;return{configure(t){e=t},generate(t){return e(t)},reset(){e=V$}}},MX=IX(),f2=MX;function RN(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;t<o;t++)e[t]&&(n=RN(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function be(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=RN(e))&&(r&&(r+=" "),r+=t);return r}const _X=["className","component"];function TX(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,s=s2("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(qh);return u.forwardRef(function(a,c){const f=Xd(n),p=Qh(a),{className:h,component:y="div"}=p,v=le(p,_X);return D.jsx(s,S({as:y,ref:c,className:be(h,o?o(r):r),theme:t&&f[t]||f},v))})}const ON={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 Ge(e,t,n="Mui"){const r=ON[t];return r?`${n}-${r}`:`${f2.generate(e)}-${t}`}function Ue(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ge(e,o,n)}),r}var DN={exports:{}},mn={};/**
81
+ * @license React
82
+ * react-is.production.min.js
83
+ *
84
+ * Copyright (c) Facebook, Inc. and its affiliates.
85
+ *
86
+ * This source code is licensed under the MIT license found in the
87
+ * LICENSE file in the root directory of this source tree.
88
+ */var p2=Symbol.for("react.element"),h2=Symbol.for("react.portal"),M1=Symbol.for("react.fragment"),_1=Symbol.for("react.strict_mode"),T1=Symbol.for("react.profiler"),$1=Symbol.for("react.provider"),R1=Symbol.for("react.context"),$X=Symbol.for("react.server_context"),O1=Symbol.for("react.forward_ref"),D1=Symbol.for("react.suspense"),A1=Symbol.for("react.suspense_list"),L1=Symbol.for("react.memo"),F1=Symbol.for("react.lazy"),RX=Symbol.for("react.offscreen"),AN;AN=Symbol.for("react.module.reference");function Us(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case p2:switch(e=e.type,e){case M1:case T1:case _1:case D1:case A1:return e;default:switch(e=e&&e.$$typeof,e){case $X:case R1:case O1:case F1:case L1:case $1:return e;default:return t}}case h2:return t}}}mn.ContextConsumer=R1;mn.ContextProvider=$1;mn.Element=p2;mn.ForwardRef=O1;mn.Fragment=M1;mn.Lazy=F1;mn.Memo=L1;mn.Portal=h2;mn.Profiler=T1;mn.StrictMode=_1;mn.Suspense=D1;mn.SuspenseList=A1;mn.isAsyncMode=function(){return!1};mn.isConcurrentMode=function(){return!1};mn.isContextConsumer=function(e){return Us(e)===R1};mn.isContextProvider=function(e){return Us(e)===$1};mn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===p2};mn.isForwardRef=function(e){return Us(e)===O1};mn.isFragment=function(e){return Us(e)===M1};mn.isLazy=function(e){return Us(e)===F1};mn.isMemo=function(e){return Us(e)===L1};mn.isPortal=function(e){return Us(e)===h2};mn.isProfiler=function(e){return Us(e)===T1};mn.isStrictMode=function(e){return Us(e)===_1};mn.isSuspense=function(e){return Us(e)===D1};mn.isSuspenseList=function(e){return Us(e)===A1};mn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===M1||e===T1||e===_1||e===D1||e===A1||e===RX||typeof e=="object"&&e!==null&&(e.$$typeof===F1||e.$$typeof===L1||e.$$typeof===$1||e.$$typeof===R1||e.$$typeof===O1||e.$$typeof===AN||e.getModuleId!==void 0)};mn.typeOf=Us;DN.exports=mn;var H$=DN.exports;const OX=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function LN(e){const t=`${e}`.match(OX);return t&&t[1]||""}function FN(e,t=""){return e.displayName||e.name||LN(e)||t}function U$(e,t,n){const r=FN(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function DX(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return FN(e,"Component");if(typeof e=="object")switch(e.$$typeof){case H$.ForwardRef:return U$(e,e.render,"ForwardRef");case H$.Memo:return U$(e,e.type,"memo");default:return}}}const AX=Object.freeze(Object.defineProperty({__proto__:null,default:DX,getFunctionName:LN},Symbol.toStringTag,{value:"Module"})),LX=["ownerState"],FX=["variants"],NX=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function BX(e){return Object.keys(e).length===0}function jX(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Qw(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const zX=Yh(),VX=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Mg({defaultTheme:e,theme:t,themeId:n}){return BX(t)?e:t[n]||t}function HX(e){return e?(t,n)=>n[e]:null}function pv(e,t){let{ownerState:n}=t,r=le(t,LX);const o=typeof e=="function"?e(S({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(s=>pv(s,S({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:s=[]}=o;let l=le(o,FX);return s.forEach(a=>{let c=!0;typeof a.props=="function"?c=a.props(S({ownerState:n},r,n)):Object.keys(a.props).forEach(f=>{(n==null?void 0:n[f])!==a.props[f]&&r[f]!==a.props[f]&&(c=!1)}),c&&(Array.isArray(l)||(l=[l]),l.push(typeof a.style=="function"?a.style(S({ownerState:n},r,n)):a.style))}),l}return o}function UX(e={}){const{themeId:t,defaultTheme:n=zX,rootShouldForwardProp:r=Qw,slotShouldForwardProp:o=Qw}=e,s=i=>qh(S({},i,{theme:Mg(S({},i,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,(i,l={})=>{SN(i,k=>k.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:a,slot:c,skipVariantsResolver:f,skipSx:p,overridesResolver:h=HX(VX(c))}=l,y=le(l,NX),v=f!==void 0?f:c&&c!=="Root"&&c!=="root"||!1,m=p||!1;let C,w=Qw;c==="Root"||c==="root"?w=r:c?w=o:jX(i)&&(w=void 0);const b=s2(i,S({shouldForwardProp:w,label:C},y)),x=k=>typeof k=="function"&&k.__emotion_real!==k||fl(k)?E=>pv(k,S({},E,{theme:Mg({theme:E.theme,defaultTheme:n,themeId:t})})):k,P=(k,...E)=>{let I=x(k);const R=E?E.map(x):[];a&&h&&R.push(L=>{const j=Mg(S({},L,{defaultTheme:n,themeId:t}));if(!j.components||!j.components[a]||!j.components[a].styleOverrides)return null;const N=j.components[a].styleOverrides,_={};return Object.entries(N).forEach(([T,B])=>{_[T]=pv(B,S({},L,{theme:j}))}),h(L,_)}),a&&!v&&R.push(L=>{var j;const N=Mg(S({},L,{defaultTheme:n,themeId:t})),_=N==null||(j=N.components)==null||(j=j[a])==null?void 0:j.variants;return pv({variants:_},S({},L,{theme:N}))}),m||R.push(s);const O=R.length-E.length;if(Array.isArray(k)&&O>0){const L=new Array(O).fill("");I=[...k,...L],I.raw=[...k.raw,...L]}const $=b(I,...R);return i.muiName&&($.muiName=i.muiName),$};return b.withConfig&&(P.withConfig=b.withConfig),P}}const WX=UX(),Ir=WX;function N1(e,t){const n=S({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=S({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},s=t[r];n[r]={},!s||!Object.keys(s)?n[r]=o:!o||!Object.keys(o)?n[r]=s:(n[r]=S({},s),Object.keys(o).forEach(i=>{n[r][i]=N1(o[i],s[i])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function NN(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:N1(t.components[n].defaultProps,r)}function BN({props:e,name:t,defaultTheme:n,themeId:r}){let o=Xd(n);return r&&(o=o[r]||o),NN({theme:o,name:t,props:e})}const GX=typeof window!="undefined"?u.useLayoutEffect:u.useEffect,Ft=GX;function KX(e,t,n,r,o){const[s,i]=u.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Ft(()=>{let l=!0;if(!n)return;const a=n(e),c=()=>{l&&i(a.matches)};return c(),a.addListener(c),()=>{l=!1,a.removeListener(c)}},[e,n]),s}const jN=Up["useSyncExternalStore"];function qX(e,t,n,r,o){const s=u.useCallback(()=>t,[t]),i=u.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:f}=r(e);return()=>f}return s},[s,e,r,o,n]),[l,a]=u.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const f=n(e);return[()=>f.matches,p=>(f.addListener(p),()=>{f.removeListener(p)})]},[s,n,e]);return jN(a,l,i)}function B1(e,t={}){const n=d2(),r=typeof window!="undefined"&&typeof window.matchMedia!="undefined",{defaultMatches:o=!1,matchMedia:s=r?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:l=!1}=NN({name:"MuiUseMediaQuery",props:t,theme:n});let a=typeof e=="function"?e(n):e;return a=a.replace(/^@media( ?)/m,""),(jN!==void 0?qX:KX)(a,o,s,i,l)}function zN(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const YX=Object.freeze(Object.defineProperty({__proto__:null,default:zN},Symbol.toStringTag,{value:"Module"}));function m2(e,t=0,n=1){return zN(e,t,n)}function QX(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 j1(e){if(e.type)return e;if(e.charAt(0)==="#")return j1(QX(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Il(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(Il(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}function g2(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,s)=>s<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 In(e,t){return e=j1(e),t=m2(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,g2(e)}function XX(e,t){if(e=j1(e),t=m2(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 g2(e)}function ZX(e,t){if(e=j1(e),t=m2(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 g2(e)}function JX(e,t){return()=>null}const eZ=W.oneOfType([W.func,W.object]),VN=eZ;function Qx(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Va(e,t=166){let n;function r(...o){const s=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function tZ(e,t){return()=>null}function Op(e,t){var n,r;return u.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 pn(e){return e&&e.ownerDocument||document}function ts(e){return pn(e).defaultView||window}function nZ(e,t){return()=>null}function hh(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let W$=0;function rZ(e){const[t,n]=u.useState(e),r=e||t;return u.useEffect(()=>{t==null&&(W$+=1,n(`mui-${W$}`))},[t]),r}const G$=Up["useId".toString()];function Yt(e){if(G$!==void 0){const t=G$();return e!=null?e:t}return rZ(e)}function oZ(e,t,n,r,o){return null}function Kr({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=u.useRef(e!==void 0),[s,i]=u.useState(t),l=o?e:s,a=u.useCallback(c=>{o||i(c)},[]);return[l,a]}function qe(e){const t=u.useRef(e);return Ft(()=>{t.current=e}),u.useRef((...n)=>(0,t.current)(...n)).current}function Et(...e){return u.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{hh(n,t)})},e)}const K$={};function sZ(e,t){const n=u.useRef(K$);return n.current===K$&&(n.current=e(t)),n}const iZ=[];function lZ(e){u.useEffect(e,iZ)}let v2=class HN{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new HN}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}};function gc(){const e=sZ(v2.create).current;return lZ(e.disposeEffect),e}let z1=!0,Xx=!1;const aZ=new v2,cZ={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 uZ(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&cZ[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function dZ(e){e.metaKey||e.altKey||e.ctrlKey||(z1=!0)}function Xw(){z1=!1}function fZ(){this.visibilityState==="hidden"&&Xx&&(z1=!0)}function pZ(e){e.addEventListener("keydown",dZ,!0),e.addEventListener("mousedown",Xw,!0),e.addEventListener("pointerdown",Xw,!0),e.addEventListener("touchstart",Xw,!0),e.addEventListener("visibilitychange",fZ,!0)}function hZ(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return z1||uZ(t)}function V1(){const e=u.useCallback(o=>{o!=null&&pZ(o.ownerDocument)},[]),t=u.useRef(!1);function n(){return t.current?(Xx=!0,aZ.start(100,()=>{Xx=!1}),t.current=!1,!0):!1}function r(o){return hZ(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function UN(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let bu;function WN(){if(bu)return bu;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),bu="reverse",e.scrollLeft>0?bu="default":(e.scrollLeft=1,e.scrollLeft===0&&(bu="negative")),document.body.removeChild(e),bu}function mZ(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(WN()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const gZ=e=>{const t=u.useRef({});return u.useEffect(()=>{t.current=e}),t.current},y2=gZ;function _e(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((s,i)=>{if(i){const l=t(i);l!==""&&s.push(l),n&&n[i]&&s.push(n[i])}return s},[]).join(" ")}),r}const vZ=u.createContext(null),GN=vZ;function KN(){return u.useContext(GN)}const yZ=typeof Symbol=="function"&&Symbol.for,bZ=yZ?Symbol.for("mui.nested"):"__THEME_NESTED__";function wZ(e,t){return typeof t=="function"?t(e):S({},e,t)}function CZ(e){const{children:t,theme:n}=e,r=KN(),o=u.useMemo(()=>{const s=r===null?n:wZ(r,n);return s!=null&&(s[bZ]=r!==null),s},[n,r]);return D.jsx(GN.Provider,{value:o,children:t})}const xZ=["value"],qN=u.createContext();function SZ(e){let{value:t}=e,n=le(e,xZ);return D.jsx(qN.Provider,S({value:t!=null?t:!0},n))}const Gc=()=>{const e=u.useContext(qN);return e!=null?e:!1},q$={};function Y$(e,t,n,r=!1){return u.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const s=n(o),i=e?S({},t,{[e]:s}):s;return r?()=>i:i}return e?S({},t,{[e]:n}):S({},t,n)},[e,t,n,r])}function PZ(e){const{children:t,theme:n,themeId:r}=e,o=d2(q$),s=KN()||q$,i=Y$(r,o,n),l=Y$(r,s,n,!0),a=i.direction==="rtl";return D.jsx(CZ,{theme:l,children:D.jsx(Wh.Provider,{value:i,children:D.jsx(SZ,{value:a,children:t})})})}function mh(e){"@babel/helpers - typeof";return mh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mh(e)}function EZ(e,t){if(mh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(mh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gh(e){var t=EZ(e,"string");return mh(t)=="symbol"?t:t+""}const kZ=["component","direction","spacing","divider","children","className","useFlexGap"],IZ=Yh(),MZ=Ir("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function _Z(e){return BN({props:e,name:"MuiStack",defaultTheme:IZ})}function TZ(e,t){const n=u.Children.toArray(e).filter(Boolean);return n.reduce((r,o,s)=>(r.push(o),s<n.length-1&&r.push(u.cloneElement(t,{key:`separator-${s}`})),r),[])}const $Z=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],RZ=({ownerState:e,theme:t})=>{let n=S({display:"flex",flexDirection:"column"},Do({theme:t},xc({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=c2(t),o=Object.keys(t.breakpoints.values).reduce((a,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(a[c]=!0),a),{}),s=xc({values:e.direction,base:o}),i=xc({values:e.spacing,base:o});typeof s=="object"&&Object.keys(s).forEach((a,c,f)=>{if(!s[a]){const h=c>0?s[f[c-1]]:"column";s[a]=h}}),n=co(n,Do({theme:t},i,(a,c)=>e.useFlexGap?{gap:Ac(r,a)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${$Z(c?s[c]:e.direction)}`]:Ac(r,a)}}))}return n=TQ(t.breakpoints,n),n};function OZ(e={}){const{createStyledComponent:t=MZ,useThemeProps:n=_Z,componentName:r="MuiStack"}=e,o=()=>_e({root:["root"]},a=>Ge(r,a),{}),s=t(RZ);return u.forwardRef(function(a,c){const f=n(a),p=Qh(f),{component:h="div",direction:y="column",spacing:v=0,divider:m,children:C,className:w,useFlexGap:b=!1}=p,x=le(p,kZ),P={direction:y,spacing:v,useFlexGap:b},k=o();return D.jsx(s,S({as:h,ownerState:P,ref:c,className:be(k.root,w)},x,{children:m?TZ(C,m):C}))})}function DZ(e,t){return S({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ir={},YN={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(YN);var Je=YN.exports;const AZ=Yi(mY),LZ=Yi(YX);var QN=Je;Object.defineProperty(ir,"__esModule",{value:!0});var $t=ir.alpha=e4;ir.blend=KZ;ir.colorChannel=void 0;var Md=ir.darken=w2;ir.decomposeColor=Ns;ir.emphasize=GZ;var FZ=ir.getContrastRatio=VZ;ir.getLuminance=sy;ir.hexToRgb=XN;ir.hslToRgb=JN;var _d=ir.lighten=C2;ir.private_safeAlpha=HZ;ir.private_safeColorChannel=void 0;ir.private_safeDarken=UZ;ir.private_safeEmphasize=t4;ir.private_safeLighten=WZ;ir.recomposeColor=Zd;ir.rgbToHex=zZ;var Q$=QN(AZ),NZ=QN(LZ);function b2(e,t=0,n=1){return(0,NZ.default)(e,t,n)}function XN(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 BZ(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Ns(e){if(e.type)return e;if(e.charAt(0)==="#")return Ns(XN(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,Q$.default)(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((0,Q$.default)(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}const ZN=e=>{const t=Ns(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};ir.colorChannel=ZN;const jZ=(e,t)=>{try{return ZN(e)}catch(n){return e}};ir.private_safeColorChannel=jZ;function Zd(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,s)=>s<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 zZ(e){if(e.indexOf("#")===0)return e;const{values:t}=Ns(e);return`#${t.map((n,r)=>BZ(r===3?Math.round(255*n):n)).join("")}`}function JN(e){e=Ns(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),i=(c,f=(c+n/30)%12)=>o-s*Math.max(Math.min(f-3,9-f,1),-1);let l="rgb";const a=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",a.push(t[3])),Zd({type:l,values:a})}function sy(e){e=Ns(e);let t=e.type==="hsl"||e.type==="hsla"?Ns(JN(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:no((n+.055)/1.055,2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function VZ(e,t){const n=sy(e),r=sy(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function e4(e,t){return e=Ns(e),t=b2(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Zd(e)}function HZ(e,t,n){try{return e4(e,t)}catch(r){return e}}function w2(e,t){if(e=Ns(e),t=b2(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 Zd(e)}function UZ(e,t,n){try{return w2(e,t)}catch(r){return e}}function C2(e,t){if(e=Ns(e),t=b2(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 Zd(e)}function WZ(e,t,n){try{return C2(e,t)}catch(r){return e}}function GZ(e,t=.15){return sy(e)>.5?w2(e,t):C2(e,t)}function t4(e,t,n){try{return t4(e,t)}catch(r){return e}}function KZ(e,t,n,r=1){const o=(a,c)=>Math.round(no(no(a,1/r)*(1-n)+no(c,1/r)*n,r)),s=Ns(e),i=Ns(t),l=[o(s.values[0],i.values[0]),o(s.values[1],i.values[1]),o(s.values[2],i.values[2])];return Zd({type:"rgb",values:l})}const qZ=["mode","contrastThreshold","tonalOffset"],X$={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:uh.white,default:uh.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}},Zw={text:{primary:uh.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:uh.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 Z$(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=_d(e.main,o):t==="dark"&&(e.dark=Md(e.main,s)))}function YZ(e="light"){return e==="dark"?{main:gu[200],light:gu[50],dark:gu[400]}:{main:gu[700],light:gu[400],dark:gu[800]}}function QZ(e="light"){return e==="dark"?{main:mu[200],light:mu[50],dark:mu[400]}:{main:mu[500],light:mu[300],dark:mu[700]}}function XZ(e="light"){return e==="dark"?{main:hu[500],light:hu[300],dark:hu[700]}:{main:hu[700],light:hu[400],dark:hu[800]}}function ZZ(e="light"){return e==="dark"?{main:vu[400],light:vu[300],dark:vu[700]}:{main:vu[700],light:vu[500],dark:vu[900]}}function JZ(e="light"){return e==="dark"?{main:yu[400],light:yu[300],dark:yu[700]}:{main:yu[800],light:yu[500],dark:yu[900]}}function eJ(e="light"){return e==="dark"?{main:Wf[400],light:Wf[300],dark:Wf[700]}:{main:"#ed6c02",light:Wf[500],dark:Wf[900]}}function tJ(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=le(e,qZ),s=e.primary||YZ(t),i=e.secondary||QZ(t),l=e.error||XZ(t),a=e.info||ZZ(t),c=e.success||JZ(t),f=e.warning||eJ(t);function p(m){return FZ(m,Zw.text.primary)>=n?Zw.text.primary:X$.text.primary}const h=({color:m,name:C,mainShade:w=500,lightShade:b=300,darkShade:x=700})=>{if(m=S({},m),!m.main&&m[w]&&(m.main=m[w]),!m.hasOwnProperty("main"))throw new Error(Il(11,C?` (${C})`:"",w));if(typeof m.main!="string")throw new Error(Il(12,C?` (${C})`:"",JSON.stringify(m.main)));return Z$(m,"light",b,r),Z$(m,"dark",x,r),m.contrastText||(m.contrastText=p(m.main)),m},y={dark:Zw,light:X$};return co(S({common:S({},uh),mode:t,primary:h({color:s,name:"primary"}),secondary:h({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:l,name:"error"}),warning:h({color:f,name:"warning"}),info:h({color:a,name:"info"}),success:h({color:c,name:"success"}),grey:hY,contrastThreshold:n,getContrastText:p,augmentColor:h,tonalOffset:r},y[t]),o)}const nJ=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function rJ(e){return Math.round(e*1e5)/1e5}const J$={textTransform:"uppercase"},eR='"Roboto", "Helvetica", "Arial", sans-serif';function oJ(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=eR,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:c=16,allVariants:f,pxToRem:p}=n,h=le(n,nJ),y=o/14,v=p||(w=>`${w/c*y}rem`),m=(w,b,x,P,k)=>S({fontFamily:r,fontWeight:w,fontSize:v(b),lineHeight:x},r===eR?{letterSpacing:`${rJ(P/b)}em`}:{},k,f),C={h1:m(s,96,1.167,-1.5),h2:m(s,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(l,14,1.75,.4,J$),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,J$),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return co(S({htmlFontSize:c,pxToRem:v,fontFamily:r,fontSize:o,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:a},C),h,{clone:!1})}const sJ=.2,iJ=.14,lJ=.12;function Rn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${sJ})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${iJ})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${lJ})`].join(",")}const aJ=["none",Rn(0,2,1,-1,0,1,1,0,0,1,3,0),Rn(0,3,1,-2,0,2,2,0,0,1,5,0),Rn(0,3,3,-2,0,3,4,0,0,1,8,0),Rn(0,2,4,-1,0,4,5,0,0,1,10,0),Rn(0,3,5,-1,0,5,8,0,0,1,14,0),Rn(0,3,5,-1,0,6,10,0,0,1,18,0),Rn(0,4,5,-2,0,7,10,1,0,2,16,1),Rn(0,5,5,-3,0,8,10,1,0,3,14,2),Rn(0,5,6,-3,0,9,12,1,0,3,16,2),Rn(0,6,6,-3,0,10,14,1,0,4,18,3),Rn(0,6,7,-4,0,11,15,1,0,4,20,3),Rn(0,7,8,-4,0,12,17,2,0,5,22,4),Rn(0,7,8,-4,0,13,19,2,0,5,24,4),Rn(0,7,9,-4,0,14,21,2,0,5,26,4),Rn(0,8,9,-5,0,15,22,2,0,6,28,5),Rn(0,8,10,-5,0,16,24,2,0,6,30,5),Rn(0,8,11,-5,0,17,26,2,0,6,32,5),Rn(0,9,11,-5,0,18,28,2,0,7,34,6),Rn(0,9,12,-6,0,19,29,2,0,7,36,6),Rn(0,10,13,-6,0,20,31,3,0,8,38,7),Rn(0,10,13,-6,0,21,33,3,0,8,40,7),Rn(0,10,14,-6,0,22,35,3,0,8,42,7),Rn(0,11,14,-7,0,23,36,3,0,9,44,8),Rn(0,11,15,-7,0,24,38,3,0,9,46,8)],cJ=aJ,uJ=["duration","easing","delay"],dJ={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)"},n4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function tR(e){return`${Math.round(e)}ms`}function fJ(e){if(!e)return 0;const t=e/36;return Math.round((4+15*no(t,.25)+t/5)*10)}function pJ(e){const t=S({},dJ,e.easing),n=S({},n4,e.duration);return S({getAutoHeightDuration:fJ,create:(o=["all"],s={})=>{const{duration:i=n.standard,easing:l=t.easeInOut,delay:a=0}=s;return le(s,uJ),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof i=="string"?i:tR(i)} ${l} ${typeof a=="string"?a:tR(a)}`).join(",")}},e,{easing:t,duration:n})}const hJ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},mJ=hJ,gJ=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function x2(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:s={}}=e,i=le(e,gJ);if(e.vars)throw new Error(Il(18));const l=tJ(r),a=Yh(e);let c=co(a,{mixins:DZ(a.breakpoints,n),palette:l,shadows:cJ.slice(),typography:oJ(l,s),transitions:pJ(o),zIndex:S({},mJ)});return c=co(c,i),c=t.reduce((f,p)=>co(f,p),c),c.unstable_sxConfig=S({},Kh,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(p){return qh({sx:p,theme:this})},c}function vJ(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function yJ(e){return parseFloat(e)}const bJ=x2(),H1=bJ;function Fn(){const e=Xd(H1);return e[Dc]||e}function We({props:e,name:t}){return BN({props:e,name:t,defaultTheme:H1,themeId:Dc})}var Xh={},Jw={exports:{}},nR;function wJ(){return nR||(nR=1,function(e){function t(n,r){if(n==null)return{};var o={},s=Object.keys(n),i,l;for(l=0;l<s.length;l++)i=s[l],!(r.indexOf(i)>=0)&&(o[i]=n[i]);return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Jw)),Jw.exports}const r4=Yi(PQ),CJ=Yi(EQ),xJ=Yi(RQ),SJ=Yi(AX),PJ=Yi(wX),EJ=Yi(kX);var Jd=Je;Object.defineProperty(Xh,"__esModule",{value:!0});var kJ=Xh.default=BJ;Xh.shouldForwardProp=hv;Xh.systemDefaultTheme=void 0;var Ps=Jd(yN()),Zx=Jd(wJ()),rR=OJ(r4),IJ=CJ;Jd(xJ);Jd(SJ);var MJ=Jd(PJ),_J=Jd(EJ);const TJ=["ownerState"],$J=["variants"],RJ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function o4(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(o4=function(r){return r?n:t})(e)}function OJ(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=o4(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var i=o?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(r,s,i):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function DJ(e){return Object.keys(e).length===0}function AJ(e){return typeof e=="string"&&e.charCodeAt(0)>96}function hv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const LJ=Xh.systemDefaultTheme=(0,MJ.default)(),FJ=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function _g({defaultTheme:e,theme:t,themeId:n}){return DJ(t)?e:t[n]||t}function NJ(e){return e?(t,n)=>n[e]:null}function mv(e,t){let{ownerState:n}=t,r=(0,Zx.default)(t,TJ);const o=typeof e=="function"?e((0,Ps.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(s=>mv(s,(0,Ps.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:s=[]}=o;let l=(0,Zx.default)(o,$J);return s.forEach(a=>{let c=!0;typeof a.props=="function"?c=a.props((0,Ps.default)({ownerState:n},r,n)):Object.keys(a.props).forEach(f=>{(n==null?void 0:n[f])!==a.props[f]&&r[f]!==a.props[f]&&(c=!1)}),c&&(Array.isArray(l)||(l=[l]),l.push(typeof a.style=="function"?a.style((0,Ps.default)({ownerState:n},r,n)):a.style))}),l}return o}function BJ(e={}){const{themeId:t,defaultTheme:n=LJ,rootShouldForwardProp:r=hv,slotShouldForwardProp:o=hv}=e,s=i=>(0,_J.default)((0,Ps.default)({},i,{theme:_g((0,Ps.default)({},i,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,(i,l={})=>{(0,rR.internal_processStyles)(i,k=>k.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:a,slot:c,skipVariantsResolver:f,skipSx:p,overridesResolver:h=NJ(FJ(c))}=l,y=(0,Zx.default)(l,RJ),v=f!==void 0?f:c&&c!=="Root"&&c!=="root"||!1,m=p||!1;let C,w=hv;c==="Root"||c==="root"?w=r:c?w=o:AJ(i)&&(w=void 0);const b=(0,rR.default)(i,(0,Ps.default)({shouldForwardProp:w,label:C},y)),x=k=>typeof k=="function"&&k.__emotion_real!==k||(0,IJ.isPlainObject)(k)?E=>mv(k,(0,Ps.default)({},E,{theme:_g({theme:E.theme,defaultTheme:n,themeId:t})})):k,P=(k,...E)=>{let I=x(k);const R=E?E.map(x):[];a&&h&&R.push(L=>{const j=_g((0,Ps.default)({},L,{defaultTheme:n,themeId:t}));if(!j.components||!j.components[a]||!j.components[a].styleOverrides)return null;const N=j.components[a].styleOverrides,_={};return Object.entries(N).forEach(([T,B])=>{_[T]=mv(B,(0,Ps.default)({},L,{theme:j}))}),h(L,_)}),a&&!v&&R.push(L=>{var j;const N=_g((0,Ps.default)({},L,{defaultTheme:n,themeId:t})),_=N==null||(j=N.components)==null||(j=j[a])==null?void 0:j.variants;return mv({variants:_},(0,Ps.default)({},L,{theme:N}))}),m||R.push(s);const O=R.length-E.length;if(Array.isArray(k)&&O>0){const L=new Array(O).fill("");I=[...k,...L],I.raw=[...k.raw,...L]}const $=b(I,...R);return i.muiName&&($.muiName=i.muiName),$};return b.withConfig&&(P.withConfig=b.withConfig),P}}function s4(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jJ=e=>s4(e)&&e!=="classes",Qr=jJ,zJ=kJ({themeId:Dc,defaultTheme:H1,rootShouldForwardProp:Qr}),se=zJ,VJ=["theme"];function HJ(e){let{theme:t}=e,n=le(e,VJ);const r=t[Dc];return D.jsx(PZ,S({},n,{themeId:r?Dc:void 0,theme:r||t}))}const UJ=e=>{let t;return e<1?t=5.11916*no(e,2):t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},oR=UJ;function WJ(e){return Ge("MuiSvgIcon",e)}Ue("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const GJ=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],KJ=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Se(t)}`,`fontSize${Se(n)}`]};return _e(o,WJ,r)},qJ=se("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Se(n.color)}`],t[`fontSize${Se(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,s,i,l,a,c,f,p,h,y,v;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:((s=e.typography)==null||(i=s.pxToRem)==null?void 0:i.call(s,20))||"1.25rem",medium:((l=e.typography)==null||(a=l.pxToRem)==null?void 0:a.call(l,24))||"1.5rem",large:((c=e.typography)==null||(f=c.pxToRem)==null?void 0:f.call(c,35))||"2.1875rem"}[t.fontSize],color:(p=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?p:{action:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),i4=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:i="inherit",component:l="svg",fontSize:a="medium",htmlColor:c,inheritViewBox:f=!1,titleAccess:p,viewBox:h="0 0 24 24"}=r,y=le(r,GJ),v=u.isValidElement(o)&&o.type==="svg",m=S({},r,{color:i,component:l,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:h,hasSvgAsChild:v}),C={};f||(C.viewBox=h);const w=KJ(m);return D.jsxs(qJ,S({as:l,className:be(w.root,s),focusable:"false",color:c,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n},C,y,v&&o.props,{ownerState:m,children:[v?o.props.children:o,p?D.jsx("title",{children:p}):null]}))});i4.muiName="SvgIcon";const sR=i4;function bt(e,t){function n(r,o){return D.jsx(sR,S({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=sR.muiName,u.memo(u.forwardRef(n))}const YJ={configure:e=>{f2.configure(e)}},QJ=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Se,createChainedFunction:Qx,createSvgIcon:bt,debounce:Va,deprecatedPropType:tZ,isMuiElement:Op,ownerDocument:pn,ownerWindow:ts,requirePropFactory:nZ,setRef:hh,unstable_ClassNameGenerator:YJ,unstable_useEnhancedEffect:Ft,unstable_useId:Yt,unsupportedProp:oZ,useControlled:Kr,useEventCallback:qe,useForkRef:Et,useIsFocusVisible:V1},Symbol.toStringTag,{value:"Module"}));function U1(e){return We}function Jx(e,t){return Jx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Jx(e,t)}function W1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jx(e,t)}function XJ(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function ZJ(e,t){e.classList?e.classList.add(t):XJ(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function iR(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function JJ(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=iR(e.className,t):e.setAttribute("class",iR(e.className&&e.className.baseVal||"",t))}const lR={disabled:!1},iy=Yo.createContext(null);var l4=function(t){return t.scrollTop},fp="unmounted",uc="exited",dc="entering",Tu="entered",eS="exiting",Ll=function(e){W1(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=o,l=i&&!i.isMounting?r.enter:r.appear,a;return s.appearStatus=null,r.in?l?(a=uc,s.appearStatus=dc):a=Tu:r.unmountOnExit||r.mountOnEnter?a=fp:a=uc,s.state={status:a},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===fp?{status:uc}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==dc&&i!==Tu&&(s=dc):(i===dc||i===Tu)&&(s=eS)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,i,l;return s=i=l=o,o!=null&&typeof o!="number"&&(s=o.exit,i=o.enter,l=o.appear!==void 0?o.appear:i),{exit:s,enter:i,appear:l}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===dc){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:kg.findDOMNode(this);i&&l4(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===uc&&this.setState({status:fp})},n.performEnter=function(o){var s=this,i=this.props.enter,l=this.context?this.context.isMounting:o,a=this.props.nodeRef?[l]:[kg.findDOMNode(this),l],c=a[0],f=a[1],p=this.getTimeouts(),h=l?p.appear:p.enter;if(!o&&!i||lR.disabled){this.safeSetState({status:Tu},function(){s.props.onEntered(c)});return}this.props.onEnter(c,f),this.safeSetState({status:dc},function(){s.props.onEntering(c,f),s.onTransitionEnd(h,function(){s.safeSetState({status:Tu},function(){s.props.onEntered(c,f)})})})},n.performExit=function(){var o=this,s=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:kg.findDOMNode(this);if(!s||lR.disabled){this.safeSetState({status:uc},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:eS},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:uc},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,i=!0;return this.nextCallback=function(l){i&&(i=!1,s.nextCallback=null,o(l))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var i=this.props.nodeRef?this.props.nodeRef.current:kg.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!i||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=a[0],f=a[1];this.props.addEndListener(c,f)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===fp)return null;var s=this.props,i=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var l=le(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Yo.createElement(iy.Provider,{value:null},typeof i=="function"?i(o,l):Yo.cloneElement(Yo.Children.only(i),l))},t}(Yo.Component);Ll.contextType=iy;Ll.propTypes={};function wu(){}Ll.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:wu,onEntering:wu,onEntered:wu,onExit:wu,onExiting:wu,onExited:wu};Ll.UNMOUNTED=fp;Ll.EXITED=uc;Ll.ENTERING=dc;Ll.ENTERED=Tu;Ll.EXITING=eS;const Zh=Ll;var eee=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return ZJ(t,r)})},eC=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return JJ(t,r)})},S2=function(e){W1(t,e);function t(){for(var r,o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];return r=e.call.apply(e,[this].concat(s))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(l,a){var c=r.resolveArguments(l,a),f=c[0],p=c[1];r.removeClasses(f,"exit"),r.addClass(f,p?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(l,a)},r.onEntering=function(l,a){var c=r.resolveArguments(l,a),f=c[0],p=c[1],h=p?"appear":"enter";r.addClass(f,h,"active"),r.props.onEntering&&r.props.onEntering(l,a)},r.onEntered=function(l,a){var c=r.resolveArguments(l,a),f=c[0],p=c[1],h=p?"appear":"enter";r.removeClasses(f,h),r.addClass(f,h,"done"),r.props.onEntered&&r.props.onEntered(l,a)},r.onExit=function(l){var a=r.resolveArguments(l),c=a[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(l)},r.onExiting=function(l){var a=r.resolveArguments(l),c=a[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(l)},r.onExited=function(l){var a=r.resolveArguments(l),c=a[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(l)},r.resolveArguments=function(l,a){return r.props.nodeRef?[r.props.nodeRef.current,l]:[l,a]},r.getClassNames=function(l){var a=r.props.classNames,c=typeof a=="string",f=c&&a?a+"-":"",p=c?""+f+l:a[l],h=c?p+"-active":a[l+"Active"],y=c?p+"-done":a[l+"Done"];return{baseClassName:p,activeClassName:h,doneClassName:y}},r}var n=t.prototype;return n.addClass=function(o,s,i){var l=this.getClassNames(s)[i+"ClassName"],a=this.getClassNames("enter"),c=a.doneClassName;s==="appear"&&i==="done"&&c&&(l+=" "+c),i==="active"&&o&&l4(o),l&&(this.appliedClasses[s][i]=l,eee(o,l))},n.removeClasses=function(o,s){var i=this.appliedClasses[s],l=i.base,a=i.active,c=i.done;this.appliedClasses[s]={},l&&eC(o,l),a&&eC(o,a),c&&eC(o,c)},n.render=function(){var o=this.props;o.classNames;var s=le(o,["classNames"]);return Yo.createElement(Zh,S({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Yo.Component);S2.defaultProps={classNames:""};S2.propTypes={};const tee=S2;function tS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P2(e,t){var n=function(s){return t&&u.isValidElement(s)?t(s):s},r=Object.create(null);return e&&u.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function nee(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var r=Object.create(null),o=[];for(var s in e)s in t?o.length&&(r[s]=o,o=[]):o.push(s);var i,l={};for(var a in t){if(r[a])for(i=0;i<r[a].length;i++){var c=r[a][i];l[r[a][i]]=n(c)}l[a]=n(a)}for(i=0;i<o.length;i++)l[o[i]]=n(o[i]);return l}function vc(e,t,n){return n[t]!=null?n[t]:e.props[t]}function ree(e,t){return P2(e.children,function(n){return u.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:vc(n,"appear",e),enter:vc(n,"enter",e),exit:vc(n,"exit",e)})})}function oee(e,t,n){var r=P2(e.children),o=nee(t,r);return Object.keys(o).forEach(function(s){var i=o[s];if(u.isValidElement(i)){var l=s in t,a=s in r,c=t[s],f=u.isValidElement(c)&&!c.props.in;a&&(!l||f)?o[s]=u.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:vc(i,"exit",e),enter:vc(i,"enter",e)}):!a&&l&&!f?o[s]=u.cloneElement(i,{in:!1}):a&&l&&u.isValidElement(c)&&(o[s]=u.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:vc(i,"exit",e),enter:vc(i,"enter",e)}))}}),o}var see=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},iee={component:"div",childFactory:function(t){return t}},E2=function(e){W1(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=s.handleExited.bind(tS(s));return s.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,s){var i=s.children,l=s.handleExited,a=s.firstRender;return{children:a?ree(o,l):oee(o,i,l),firstRender:!1}},n.handleExited=function(o,s){var i=P2(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(l){var a=S({},l.children);return delete a[o.key],{children:a}}))},n.render=function(){var o=this.props,s=o.component,i=o.childFactory,l=le(o,["component","childFactory"]),a=this.state.contextValue,c=see(this.state.children).map(i);return delete l.appear,delete l.enter,delete l.exit,s===null?Yo.createElement(iy.Provider,{value:a},c):Yo.createElement(iy.Provider,{value:a},Yo.createElement(s,l,c))},t}(Yo.Component);E2.propTypes={};E2.defaultProps=iee;const k2=E2,I2=e=>e.scrollTop;function Da(e,t){var n,r;const{timeout:o,easing:s,style:i={}}=e;return{duration:(n=i.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=i.transitionTimingFunction)!=null?r:typeof s=="object"?s[t.mode]:s,delay:i.transitionDelay}}function lee(e){return Ge("MuiCollapse",e)}Ue("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const aee=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],cee=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return _e(r,lee,n)},uee=se("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>S({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&S({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),dee=se("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>S({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),fee=se("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>S({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),a4=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiCollapse"}),{addEndListener:o,children:s,className:i,collapsedSize:l="0px",component:a,easing:c,in:f,onEnter:p,onEntered:h,onEntering:y,onExit:v,onExited:m,onExiting:C,orientation:w="vertical",style:b,timeout:x=n4.standard,TransitionComponent:P=Zh}=r,k=le(r,aee),E=S({},r,{orientation:w,collapsedSize:l}),I=cee(E),R=Fn(),O=gc(),$=u.useRef(null),L=u.useRef(),j=typeof l=="number"?`${l}px`:l,N=w==="horizontal",_=N?"width":"height",T=u.useRef(null),B=Et(n,T),V=ee=>oe=>{if(ee){const Z=T.current;oe===void 0?ee(Z):ee(Z,oe)}},A=()=>$.current?$.current[N?"clientWidth":"clientHeight"]:0,F=V((ee,oe)=>{$.current&&N&&($.current.style.position="absolute"),ee.style[_]=j,p&&p(ee,oe)}),H=V((ee,oe)=>{const Z=A();$.current&&N&&($.current.style.position="");const{duration:pe,easing:ne}=Da({style:b,timeout:x,easing:c},{mode:"enter"});if(x==="auto"){const re=R.transitions.getAutoHeightDuration(Z);ee.style.transitionDuration=`${re}ms`,L.current=re}else ee.style.transitionDuration=typeof pe=="string"?pe:`${pe}ms`;ee.style[_]=`${Z}px`,ee.style.transitionTimingFunction=ne,y&&y(ee,oe)}),K=V((ee,oe)=>{ee.style[_]="auto",h&&h(ee,oe)}),Y=V(ee=>{ee.style[_]=`${A()}px`,v&&v(ee)}),J=V(m),Q=V(ee=>{const oe=A(),{duration:Z,easing:pe}=Da({style:b,timeout:x,easing:c},{mode:"exit"});if(x==="auto"){const ne=R.transitions.getAutoHeightDuration(oe);ee.style.transitionDuration=`${ne}ms`,L.current=ne}else ee.style.transitionDuration=typeof Z=="string"?Z:`${Z}ms`;ee.style[_]=j,ee.style.transitionTimingFunction=pe,C&&C(ee)}),X=ee=>{x==="auto"&&O.start(L.current||0,ee),o&&o(T.current,ee)};return D.jsx(P,S({in:f,onEnter:F,onEntered:K,onEntering:H,onExit:Y,onExited:J,onExiting:Q,addEndListener:X,nodeRef:T,timeout:x==="auto"?null:x},k,{children:(ee,oe)=>D.jsx(uee,S({as:a,className:be(I.root,i,{entered:I.entered,exited:!f&&j==="0px"&&I.hidden}[ee]),style:S({[N?"minWidth":"minHeight"]:j},b),ref:B},oe,{ownerState:S({},E,{state:ee}),children:D.jsx(dee,{ownerState:S({},E,{state:ee}),className:I.wrapper,ref:$,children:D.jsx(fee,{ownerState:S({},E,{state:ee}),className:I.wrapperInner,children:s})})}))}))});a4.muiSupportAuto=!0;const ly=a4;function pee(e){return Ge("MuiPaper",e)}Ue("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 hee=["className","component","elevation","square","variant"],mee=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return _e(s,pee,o)},gee=se("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 S({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"&&S({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${$t("#fff",oR(t.elevation))}, ${$t("#fff",oR(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),vee=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiPaper"}),{className:o,component:s="div",elevation:i=1,square:l=!1,variant:a="elevation"}=r,c=le(r,hee),f=S({},r,{component:s,elevation:i,square:l,variant:a}),p=mee(f);return D.jsx(gee,S({as:s,ownerState:f,className:be(p.root,o),ref:n},c))}),Ws=vee;function Lc(e){return typeof e=="string"}function qu(e,t,n){return e===void 0||Lc(e)?t:S({},t,{ownerState:S({},t.ownerState,n)})}const yee={disableDefaultClasses:!1},bee=u.createContext(yee);function wee(e){const{disableDefaultClasses:t}=u.useContext(bee);return n=>t?"":e(n)}function c4(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 u4(e,t,n){return typeof e=="function"?e(t,n):e}function aR(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 d4(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const y=be(n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),v=S({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=S({},n,o,r);return y.length>0&&(m.className=y),Object.keys(v).length>0&&(m.style=v),{props:m,internalRef:void 0}}const i=c4(S({},o,r)),l=aR(r),a=aR(o),c=t(i),f=be(c==null?void 0:c.className,n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),p=S({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),h=S({},c,n,a,l);return f.length>0&&(h.className=f),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:c.ref}}const Cee=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ns(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:s=!1}=e,i=le(e,Cee),l=s?{}:u4(r,o),{props:a,internalRef:c}=d4(S({},i,{externalSlotProps:l})),f=Et(c,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return qu(n,S({},a,{ref:f}),o)}const xee=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],See=["component","slots","slotProps"],Pee=["component"];function cR(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:s,getSlotOwnerState:i,internalForwardedProps:l}=t,a=le(t,xee),{component:c,slots:f={[e]:void 0},slotProps:p={[e]:void 0}}=s,h=le(s,See),y=f[e]||r,v=u4(p[e],o),m=d4(S({className:n},a,{externalForwardedProps:e==="root"?h:void 0,externalSlotProps:v})),{props:{component:C},internalRef:w}=m,b=le(m.props,Pee),x=Et(w,v==null?void 0:v.ref,t.ref),P=i?i(b):{},k=S({},o,P),E=e==="root"?C||c:C,I=qu(y,S({},e==="root"&&!c&&!f[e]&&l,e!=="root"&&!f[e]&&l,b,E&&{as:E},{ref:x}),k);return Object.keys(P).forEach(R=>{delete I[R]}),[y,I]}function Eee(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:s,rippleSize:i,in:l,onExited:a,timeout:c}=e,[f,p]=u.useState(!1),h=be(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:i,height:i,top:-(i/2)+s,left:-(i/2)+o},v=be(n.child,f&&n.childLeaving,r&&n.childPulsate);return!l&&!f&&p(!0),u.useEffect(()=>{if(!l&&a!=null){const m=setTimeout(a,c);return()=>{clearTimeout(m)}}},[a,l,c]),D.jsx("span",{className:h,style:y,children:D.jsx("span",{className:v})})}const kee=Ue("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Is=kee,Iee=["center","classes","className"];let G1=e=>e,uR,dR,fR,pR;const nS=550,Mee=80,_ee=yi(uR||(uR=G1`
89
+ 0% {
90
+ transform: scale(0);
91
+ opacity: 0.1;
92
+ }
93
+
94
+ 100% {
95
+ transform: scale(1);
96
+ opacity: 0.3;
97
+ }
98
+ `)),Tee=yi(dR||(dR=G1`
99
+ 0% {
100
+ opacity: 1;
101
+ }
102
+
103
+ 100% {
104
+ opacity: 0;
105
+ }
106
+ `)),$ee=yi(fR||(fR=G1`
107
+ 0% {
108
+ transform: scale(1);
109
+ }
110
+
111
+ 50% {
112
+ transform: scale(0.92);
113
+ }
114
+
115
+ 100% {
116
+ transform: scale(1);
117
+ }
118
+ `)),Ree=se("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Oee=se(Eee,{name:"MuiTouchRipple",slot:"Ripple"})(pR||(pR=G1`
119
+ opacity: 0;
120
+ position: absolute;
121
+
122
+ &.${0} {
123
+ opacity: 0.3;
124
+ transform: scale(1);
125
+ animation-name: ${0};
126
+ animation-duration: ${0}ms;
127
+ animation-timing-function: ${0};
128
+ }
129
+
130
+ &.${0} {
131
+ animation-duration: ${0}ms;
132
+ }
133
+
134
+ & .${0} {
135
+ opacity: 1;
136
+ display: block;
137
+ width: 100%;
138
+ height: 100%;
139
+ border-radius: 50%;
140
+ background-color: currentColor;
141
+ }
142
+
143
+ & .${0} {
144
+ opacity: 0;
145
+ animation-name: ${0};
146
+ animation-duration: ${0}ms;
147
+ animation-timing-function: ${0};
148
+ }
149
+
150
+ & .${0} {
151
+ position: absolute;
152
+ /* @noflip */
153
+ left: 0px;
154
+ top: 0;
155
+ animation-name: ${0};
156
+ animation-duration: 2500ms;
157
+ animation-timing-function: ${0};
158
+ animation-iteration-count: infinite;
159
+ animation-delay: 200ms;
160
+ }
161
+ `),Is.rippleVisible,_ee,nS,({theme:e})=>e.transitions.easing.easeInOut,Is.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Is.child,Is.childLeaving,Tee,nS,({theme:e})=>e.transitions.easing.easeInOut,Is.childPulsate,$ee,({theme:e})=>e.transitions.easing.easeInOut),Dee=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:i}=r,l=le(r,Iee),[a,c]=u.useState([]),f=u.useRef(0),p=u.useRef(null);u.useEffect(()=>{p.current&&(p.current(),p.current=null)},[a]);const h=u.useRef(!1),y=gc(),v=u.useRef(null),m=u.useRef(null),C=u.useCallback(P=>{const{pulsate:k,rippleX:E,rippleY:I,rippleSize:R,cb:O}=P;c($=>[...$,D.jsx(Oee,{classes:{ripple:be(s.ripple,Is.ripple),rippleVisible:be(s.rippleVisible,Is.rippleVisible),ripplePulsate:be(s.ripplePulsate,Is.ripplePulsate),child:be(s.child,Is.child),childLeaving:be(s.childLeaving,Is.childLeaving),childPulsate:be(s.childPulsate,Is.childPulsate)},timeout:nS,pulsate:k,rippleX:E,rippleY:I,rippleSize:R},f.current)]),f.current+=1,p.current=O},[s]),w=u.useCallback((P={},k={},E=()=>{})=>{const{pulsate:I=!1,center:R=o||k.pulsate,fakeElement:O=!1}=k;if((P==null?void 0:P.type)==="mousedown"&&h.current){h.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(h.current=!0);const $=O?null:m.current,L=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let j,N,_;if(R||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)j=Math.round(L.width/2),N=Math.round(L.height/2);else{const{clientX:T,clientY:B}=P.touches&&P.touches.length>0?P.touches[0]:P;j=Math.round(T-L.left),N=Math.round(B-L.top)}if(R)_=Math.sqrt((2*no(L.width,2)+no(L.height,2))/3),_%2===0&&(_+=1);else{const T=Math.max(Math.abs(($?$.clientWidth:0)-j),j)*2+2,B=Math.max(Math.abs(($?$.clientHeight:0)-N),N)*2+2;_=Math.sqrt(no(T,2)+no(B,2))}P!=null&&P.touches?v.current===null&&(v.current=()=>{C({pulsate:I,rippleX:j,rippleY:N,rippleSize:_,cb:E})},y.start(Mee,()=>{v.current&&(v.current(),v.current=null)})):C({pulsate:I,rippleX:j,rippleY:N,rippleSize:_,cb:E})},[o,C,y]),b=u.useCallback(()=>{w({},{pulsate:!0})},[w]),x=u.useCallback((P,k)=>{if(y.clear(),(P==null?void 0:P.type)==="touchend"&&v.current){v.current(),v.current=null,y.start(0,()=>{x(P,k)});return}v.current=null,c(E=>E.length>0?E.slice(1):E),p.current=k},[y]);return u.useImperativeHandle(n,()=>({pulsate:b,start:w,stop:x}),[b,w,x]),D.jsx(Ree,S({className:be(Is.root,s.root,i),ref:m},l,{children:D.jsx(k2,{component:null,exit:!0,children:a})}))}),Aee=Dee;function Lee(e){return Ge("MuiButtonBase",e)}const Fee=Ue("MuiButtonBase",["root","disabled","focusVisible"]),Nee=Fee,Bee=["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"],jee=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=_e({root:["root",t&&"disabled",n&&"focusVisible"]},Lee,o);return n&&r&&(i.root+=` ${r}`),i},zee=se("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"},[`&.${Nee.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Vee=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:i,className:l,component:a="button",disabled:c=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:h=!1,LinkComponent:y="a",onBlur:v,onClick:m,onContextMenu:C,onDragLeave:w,onFocus:b,onFocusVisible:x,onKeyDown:P,onKeyUp:k,onMouseDown:E,onMouseLeave:I,onMouseUp:R,onTouchEnd:O,onTouchMove:$,onTouchStart:L,tabIndex:j=0,TouchRippleProps:N,touchRippleRef:_,type:T}=r,B=le(r,Bee),V=u.useRef(null),A=u.useRef(null),F=Et(A,_),{isFocusVisibleRef:H,onFocus:K,onBlur:Y,ref:J}=V1(),[Q,X]=u.useState(!1);c&&Q&&X(!1),u.useImperativeHandle(o,()=>({focusVisible:()=>{X(!0),V.current.focus()}}),[]);const[ee,oe]=u.useState(!1);u.useEffect(()=>{oe(!0)},[]);const Z=ee&&!f&&!c;u.useEffect(()=>{Q&&h&&!f&&ee&&A.current.pulsate()},[f,h,Q,ee]);function pe(Fe,mt,Zt=p){return qe(Pt=>(mt&&mt(Pt),!Zt&&A.current&&A.current[Fe](Pt),!0))}const ne=pe("start",E),re=pe("stop",C),me=pe("stop",w),ce=pe("stop",R),Ce=pe("stop",Fe=>{Q&&Fe.preventDefault(),I&&I(Fe)}),Ee=pe("start",L),fe=pe("stop",O),ke=pe("stop",$),ve=pe("stop",Fe=>{Y(Fe),H.current===!1&&X(!1),v&&v(Fe)},!1),Re=qe(Fe=>{V.current||(V.current=Fe.currentTarget),K(Fe),H.current===!0&&(X(!0),x&&x(Fe)),b&&b(Fe)}),ie=()=>{const Fe=V.current;return a&&a!=="button"&&!(Fe.tagName==="A"&&Fe.href)},ue=u.useRef(!1),we=qe(Fe=>{h&&!ue.current&&Q&&A.current&&Fe.key===" "&&(ue.current=!0,A.current.stop(Fe,()=>{A.current.start(Fe)})),Fe.target===Fe.currentTarget&&ie()&&Fe.key===" "&&Fe.preventDefault(),P&&P(Fe),Fe.target===Fe.currentTarget&&ie()&&Fe.key==="Enter"&&!c&&(Fe.preventDefault(),m&&m(Fe))}),xe=qe(Fe=>{h&&Fe.key===" "&&A.current&&Q&&!Fe.defaultPrevented&&(ue.current=!1,A.current.stop(Fe,()=>{A.current.pulsate(Fe)})),k&&k(Fe),m&&Fe.target===Fe.currentTarget&&ie()&&Fe.key===" "&&!Fe.defaultPrevented&&m(Fe)});let Me=a;Me==="button"&&(B.href||B.to)&&(Me=y);const Oe={};Me==="button"?(Oe.type=T===void 0?"button":T,Oe.disabled=c):(!B.href&&!B.to&&(Oe.role="button"),c&&(Oe["aria-disabled"]=c));const Be=Et(n,J,V),Ke=S({},r,{centerRipple:s,component:a,disabled:c,disableRipple:f,disableTouchRipple:p,focusRipple:h,tabIndex:j,focusVisible:Q}),Ye=jee(Ke);return D.jsxs(zee,S({as:Me,className:be(Ye.root,l),ownerState:Ke,onBlur:ve,onClick:m,onContextMenu:re,onFocus:Re,onKeyDown:we,onKeyUp:xe,onMouseDown:ne,onMouseLeave:Ce,onMouseUp:ce,onDragLeave:me,onTouchEnd:fe,onTouchMove:ke,onTouchStart:Ee,ref:Be,tabIndex:c?-1:j,type:T},Oe,B,{children:[i,Z?D.jsx(Aee,S({ref:F,center:s},N)):null]}))}),gi=Vee;function Hee(e){return Ge("MuiAlert",e)}const Uee=Ue("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),hR=Uee;function Wee(e){return Ge("MuiIconButton",e)}const Gee=Ue("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Kee=Gee,qee=["edge","children","className","color","disabled","disableFocusRipple","size"],Yee=e=>{const{classes:t,disabled:n,color:r,edge:o,size:s}=e,i={root:["root",n&&"disabled",r!=="default"&&`color${Se(r)}`,o&&`edge${Se(o)}`,`size${Se(s)}`]};return _e(i,Wee,t)},Qee=se(gi,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Se(n.color)}`],n.edge&&t[`edge${Se(n.edge)}`],t[`size${Se(n.size)}`]]}})(({theme:e,ownerState:t})=>S({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})`:$t(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 S({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&S({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":S({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:$t(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)},{[`&.${Kee.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Xee=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:i,color:l="default",disabled:a=!1,disableFocusRipple:c=!1,size:f="medium"}=r,p=le(r,qee),h=S({},r,{edge:o,color:l,disabled:a,disableFocusRipple:c,size:f}),y=Yee(h);return D.jsx(Qee,S({className:be(y.root,i),centerRipple:!0,focusRipple:!c,disabled:a,ref:n},p,{ownerState:h,children:s}))}),xr=Xee,Zee=bt(D.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Jee=bt(D.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),ete=bt(D.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.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"}),"ErrorOutline"),tte=bt(D.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),f4=bt(D.jsx("path",{d:"M19 6.41L17.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"}),"Close"),nte=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],rte=U1(),ote=e=>{const{variant:t,color:n,severity:r,classes:o}=e,s={root:["root",`color${Se(n||r)}`,`${t}${Se(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return _e(s,Hee,o)},ste=se(Ws,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Se(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?Md:_d,n=e.palette.mode==="light"?_d:Md;return S({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${hR.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${hR.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:S({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)})}))]})}),ite=se("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),lte=se("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),mR=se("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),gR={success:D.jsx(Zee,{fontSize:"inherit"}),warning:D.jsx(Jee,{fontSize:"inherit"}),error:D.jsx(ete,{fontSize:"inherit"}),info:D.jsx(tte,{fontSize:"inherit"})},ate=u.forwardRef(function(t,n){const r=rte({props:t,name:"MuiAlert"}),{action:o,children:s,className:i,closeText:l="Close",color:a,components:c={},componentsProps:f={},icon:p,iconMapping:h=gR,onClose:y,role:v="alert",severity:m="success",slotProps:C={},slots:w={},variant:b="standard"}=r,x=le(r,nte),P=S({},r,{color:a,severity:m,variant:b,colorSeverity:a||m}),k=ote(P),E={slots:S({closeButton:c.CloseButton,closeIcon:c.CloseIcon},w),slotProps:S({},f,C)},[I,R]=cR("closeButton",{elementType:xr,externalForwardedProps:E,ownerState:P}),[O,$]=cR("closeIcon",{elementType:f4,externalForwardedProps:E,ownerState:P});return D.jsxs(ste,S({role:v,elevation:0,ownerState:P,className:be(k.root,i),ref:n},x,{children:[p!==!1?D.jsx(ite,{ownerState:P,className:k.icon,children:p||h[m]||gR[m]}):null,D.jsx(lte,{ownerState:P,className:k.message,children:s}),o!=null?D.jsx(mR,{ownerState:P,className:k.action,children:o}):null,o==null&&y?D.jsx(mR,{ownerState:P,className:k.action,children:D.jsx(I,S({size:"small","aria-label":l,title:l,color:"inherit",onClick:y},R,{children:D.jsx(O,S({fontSize:"small"},$))}))}):null]}))}),Er=ate;function cte(e){return Ge("MuiTypography",e)}Ue("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ute=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],dte=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:i}=e,l={root:["root",s,e.align!=="inherit"&&`align${Se(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return _e(l,cte,i)},fte=se("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${Se(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>S({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})),vR={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},pte={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},hte=e=>pte[e]||e,mte=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiTypography"}),o=hte(r.color),s=Qh(S({},r,{color:o})),{align:i="inherit",className:l,component:a,gutterBottom:c=!1,noWrap:f=!1,paragraph:p=!1,variant:h="body1",variantMapping:y=vR}=s,v=le(s,ute),m=S({},s,{align:i,color:o,className:l,component:a,gutterBottom:c,noWrap:f,paragraph:p,variant:h,variantMapping:y}),C=a||(p?"p":y[h]||vR[h])||"span",w=dte(m);return D.jsx(fte,S({as:C,ref:n,ownerState:m,className:be(w.root,l)},v))}),qn=mte;function gte(e){return Ge("MuiAppBar",e)}Ue("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const vte=["className","color","enableColorOnDark","position"],yte=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Se(t)}`,`position${Se(n)}`]};return _e(o,gte,r)},Tg=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,bte=se(Ws,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Se(n.position)}`],t[`color${Se(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return S({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&S({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&S({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&S({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Tg(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Tg(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Tg(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Tg(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),wte=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiAppBar"}),{className:o,color:s="primary",enableColorOnDark:i=!1,position:l="fixed"}=r,a=le(r,vte),c=S({},r,{color:s,position:l,enableColorOnDark:i}),f=yte(c);return D.jsx(bte,S({square:!0,component:"header",ownerState:c,elevation:4,className:be(f.root,o,l==="fixed"&&"mui-fixed"),ref:n},a))}),Cte=wte;function xte(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,s=y2({badgeContent:t,max:r});let i=n;n===!1&&t===0&&!o&&(i=!0);const{badgeContent:l,max:a=r}=i?s:e,c=l&&Number(l)>a?`${a}+`:l;return{badgeContent:l,invisible:i,max:a,displayValue:c}}const p4="base";function Ste(e){return`${p4}--${e}`}function Pte(e,t){return`${p4}-${e}-${t}`}function h4(e,t){const n=ON[t];return n?Ste(n):Pte(e,t)}function Ete(e,t){const n={};return t.forEach(r=>{n[r]=h4(e,r)}),n}function yR(e){return e.substring(2).toLowerCase()}function kte(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function m4(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:s="onTouchEnd"}=e,i=u.useRef(!1),l=u.useRef(null),a=u.useRef(!1),c=u.useRef(!1);u.useEffect(()=>(setTimeout(()=>{a.current=!0},0),()=>{a.current=!1}),[]);const f=Et(t.ref,l),p=qe(v=>{const m=c.current;c.current=!1;const C=pn(l.current);if(!a.current||!l.current||"clientX"in v&&kte(v,C))return;if(i.current){i.current=!1;return}let w;v.composedPath?w=v.composedPath().indexOf(l.current)>-1:w=!C.documentElement.contains(v.target)||l.current.contains(v.target),!w&&(n||!m)&&o(v)}),h=v=>m=>{c.current=!0;const C=t.props[v];C&&C(m)},y={ref:f};return s!==!1&&(y[s]=h(s)),u.useEffect(()=>{if(s!==!1){const v=yR(s),m=pn(l.current),C=()=>{i.current=!0};return m.addEventListener(v,p),m.addEventListener("touchmove",C),()=>{m.removeEventListener(v,p),m.removeEventListener("touchmove",C)}}},[p,s]),r!==!1&&(y[r]=h(r)),u.useEffect(()=>{if(r!==!1){const v=yR(r),m=pn(l.current);return m.addEventListener(v,p),()=>{m.removeEventListener(v,p)}}},[p,r]),D.jsx(u.Fragment,{children:u.cloneElement(t,y)})}const Ite=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Mte(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 _te(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 Tte(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||_te(e))}function $te(e){const t=[],n=[];return Array.from(e.querySelectorAll(Ite)).forEach((r,o)=>{const s=Mte(r);s===-1||!Tte(r)||(s===0?t.push(r):n.push({documentOrder:o,tabIndex:s,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 Rte(){return!0}function M2(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=$te,isEnabled:i=Rte,open:l}=e,a=u.useRef(!1),c=u.useRef(null),f=u.useRef(null),p=u.useRef(null),h=u.useRef(null),y=u.useRef(!1),v=u.useRef(null),m=Et(t.ref,v),C=u.useRef(null);u.useEffect(()=>{!l||!v.current||(y.current=!n)},[n,l]),u.useEffect(()=>{if(!l||!v.current)return;const x=pn(v.current);return v.current.contains(x.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),y.current&&v.current.focus()),()=>{o||(p.current&&p.current.focus&&(a.current=!0,p.current.focus()),p.current=null)}},[l]),u.useEffect(()=>{if(!l||!v.current)return;const x=pn(v.current),P=I=>{C.current=I,!(r||!i()||I.key!=="Tab")&&x.activeElement===v.current&&I.shiftKey&&(a.current=!0,f.current&&f.current.focus())},k=()=>{const I=v.current;if(I===null)return;if(!x.hasFocus()||!i()||a.current){a.current=!1;return}if(I.contains(x.activeElement)||r&&x.activeElement!==c.current&&x.activeElement!==f.current)return;if(x.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!y.current)return;let R=[];if((x.activeElement===c.current||x.activeElement===f.current)&&(R=s(v.current)),R.length>0){var O,$;const L=!!((O=C.current)!=null&&O.shiftKey&&(($=C.current)==null?void 0:$.key)==="Tab"),j=R[0],N=R[R.length-1];typeof j!="string"&&typeof N!="string"&&(L?N.focus():j.focus())}else I.focus()};x.addEventListener("focusin",k),x.addEventListener("keydown",P,!0);const E=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(E),x.removeEventListener("focusin",k),x.removeEventListener("keydown",P,!0)}},[n,r,o,i,l,s]);const w=x=>{p.current===null&&(p.current=x.relatedTarget),y.current=!0,h.current=x.target;const P=t.props.onFocus;P&&P(x)},b=x=>{p.current===null&&(p.current=x.relatedTarget),y.current=!0};return D.jsxs(u.Fragment,{children:[D.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelStart"}),u.cloneElement(t,{ref:m,onFocus:w}),D.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:f,"data-testid":"sentinelEnd"})]})}function Ote(e){return typeof e=="function"?e():e}const g4=u.forwardRef(function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[i,l]=u.useState(null),a=Et(u.isValidElement(r)?r.ref:null,n);if(Ft(()=>{s||l(Ote(o)||document.body)},[o,s]),Ft(()=>{if(i&&!s)return hh(n,i),()=>{hh(n,null)}},[n,i,s]),s){if(u.isValidElement(r)){const c={ref:a};return u.cloneElement(r,c)}return D.jsx(u.Fragment,{children:r})}return D.jsx(u.Fragment,{children:i&&Vh.createPortal(r,i)})});function Dte(e){const t=pn(e);return t.body===e?ts(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Dp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function bR(e){return parseInt(ts(e).getComputedStyle(e).paddingRight,10)||0}function Ate(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 wR(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,i=>{const l=s.indexOf(i)===-1,a=!Ate(i);l&&a&&Dp(i,o)})}function tC(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function Lte(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Dte(r)){const i=UN(pn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${bR(r)+i}px`;const l=pn(r).querySelectorAll(".mui-fixed");[].forEach.call(l,a=>{n.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${bR(a)+i}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=pn(r).body;else{const i=r.parentElement,l=ts(r);s=(i==null?void 0:i.nodeName)==="HTML"&&l.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:i,property:l})=>{s?i.style.setProperty(l,s):i.style.removeProperty(l)})}}function Fte(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Nte{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&&Dp(t.modalRef,!1);const o=Fte(n);wR(n,t.mount,t.modalRef,o,!0);const s=tC(this.containers,i=>i.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=tC(this.containers,s=>s.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=Lte(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=tC(this.containers,i=>i.modals.indexOf(t)!==-1),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&Dp(t.modalRef,n),wR(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=s.modals[s.modals.length-1];i.modalRef&&Dp(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Bte(e){return typeof e=="function"?e():e}function jte(e){return e?e.props.hasOwnProperty("in"):!1}const zte=new Nte;function Vte(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=zte,closeAfterTransition:s=!1,onTransitionEnter:i,onTransitionExited:l,children:a,onClose:c,open:f,rootRef:p}=e,h=u.useRef({}),y=u.useRef(null),v=u.useRef(null),m=Et(v,p),[C,w]=u.useState(!f),b=jte(a);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const P=()=>pn(y.current),k=()=>(h.current.modalRef=v.current,h.current.mount=y.current,h.current),E=()=>{o.mount(k(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},I=qe(()=>{const B=Bte(t)||P().body;o.add(k(),B),v.current&&E()}),R=u.useCallback(()=>o.isTopModal(k()),[o]),O=qe(B=>{y.current=B,B&&(f&&R()?E():v.current&&Dp(v.current,x))}),$=u.useCallback(()=>{o.remove(k(),x)},[x,o]);u.useEffect(()=>()=>{$()},[$]),u.useEffect(()=>{f?I():(!b||!s)&&$()},[f,$,b,s,I]);const L=B=>V=>{var A;(A=B.onKeyDown)==null||A.call(B,V),!(V.key!=="Escape"||V.which===229||!R())&&(n||(V.stopPropagation(),c&&c(V,"escapeKeyDown")))},j=B=>V=>{var A;(A=B.onClick)==null||A.call(B,V),V.target===V.currentTarget&&c&&c(V,"backdropClick")};return{getRootProps:(B={})=>{const V=c4(e);delete V.onTransitionEnter,delete V.onTransitionExited;const A=S({},V,B);return S({role:"presentation"},A,{onKeyDown:L(A),ref:m})},getBackdropProps:(B={})=>{const V=B;return S({"aria-hidden":!0},V,{onClick:j(V),open:f})},getTransitionProps:()=>{const B=()=>{w(!1),i&&i()},V=()=>{w(!0),l&&l(),s&&$()};return{onEnter:Qx(B,a==null?void 0:a.props.onEnter),onExited:Qx(V,a==null?void 0:a.props.onExited)}},rootRef:m,portalRef:O,isTopModal:R,exited:C,hasTransition:b}}var To="top",Bs="bottom",js="right",$o="left",_2="auto",Jh=[To,Bs,js,$o],Td="start",vh="end",Hte="clippingParents",v4="viewport",qf="popper",Ute="reference",CR=Jh.reduce(function(e,t){return e.concat([t+"-"+Td,t+"-"+vh])},[]),y4=[].concat(Jh,[_2]).reduce(function(e,t){return e.concat([t,t+"-"+Td,t+"-"+vh])},[]),Wte="beforeRead",Gte="read",Kte="afterRead",qte="beforeMain",Yte="main",Qte="afterMain",Xte="beforeWrite",Zte="write",Jte="afterWrite",ene=[Wte,Gte,Kte,qte,Yte,Qte,Xte,Zte,Jte];function Wi(e){return e?(e.nodeName||"").toLowerCase():null}function rs(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fc(e){var t=rs(e).Element;return e instanceof t||e instanceof Element}function Ds(e){var t=rs(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function T2(e){if(typeof ShadowRoot=="undefined")return!1;var t=rs(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function tne(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Ds(s)||!Wi(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(i){var l=o[i];l===!1?s.removeAttribute(i):s.setAttribute(i,l===!0?"":l)}))})}function nne(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],s=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=i.reduce(function(a,c){return a[c]="",a},{});!Ds(o)||!Wi(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(a){o.removeAttribute(a)}))})}}const rne={name:"applyStyles",enabled:!0,phase:"write",fn:tne,effect:nne,requires:["computeStyles"]};function Ni(e){return e.split("-")[0]}var Sc=Math.max,ay=Math.min,$d=Math.round;function rS(){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 b4(){return!/^((?!chrome|android).)*safari/i.test(rS())}function Rd(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&Ds(e)&&(o=e.offsetWidth>0&&$d(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&$d(r.height)/e.offsetHeight||1);var i=Fc(e)?rs(e):window,l=i.visualViewport,a=!b4()&&n,c=(r.left+(a&&l?l.offsetLeft:0))/o,f=(r.top+(a&&l?l.offsetTop:0))/s,p=r.width/o,h=r.height/s;return{width:p,height:h,top:f,right:c+p,bottom:f+h,left:c,x:c,y:f}}function $2(e){var t=Rd(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 w4(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&T2(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function _l(e){return rs(e).getComputedStyle(e)}function one(e){return["table","td","th"].indexOf(Wi(e))>=0}function Ha(e){return((Fc(e)?e.ownerDocument:e.document)||window.document).documentElement}function K1(e){return Wi(e)==="html"?e:e.assignedSlot||e.parentNode||(T2(e)?e.host:null)||Ha(e)}function xR(e){return!Ds(e)||_l(e).position==="fixed"?null:e.offsetParent}function sne(e){var t=/firefox/i.test(rS()),n=/Trident/i.test(rS());if(n&&Ds(e)){var r=_l(e);if(r.position==="fixed")return null}var o=K1(e);for(T2(o)&&(o=o.host);Ds(o)&&["html","body"].indexOf(Wi(o))<0;){var s=_l(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function em(e){for(var t=rs(e),n=xR(e);n&&one(n)&&_l(n).position==="static";)n=xR(n);return n&&(Wi(n)==="html"||Wi(n)==="body"&&_l(n).position==="static")?t:n||sne(e)||t}function R2(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ap(e,t,n){return Sc(e,ay(t,n))}function ine(e,t,n){var r=Ap(e,t,n);return r>n?n:r}function C4(){return{top:0,right:0,bottom:0,left:0}}function x4(e){return Object.assign({},C4(),e)}function S4(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var lne=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,x4(typeof t!="number"?t:S4(t,Jh))};function ane(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,l=Ni(n.placement),a=R2(l),c=[$o,js].indexOf(l)>=0,f=c?"height":"width";if(!(!s||!i)){var p=lne(o.padding,n),h=$2(s),y=a==="y"?To:$o,v=a==="y"?Bs:js,m=n.rects.reference[f]+n.rects.reference[a]-i[a]-n.rects.popper[f],C=i[a]-n.rects.reference[a],w=em(s),b=w?a==="y"?w.clientHeight||0:w.clientWidth||0:0,x=m/2-C/2,P=p[y],k=b-h[f]-p[v],E=b/2-h[f]/2+x,I=Ap(P,E,k),R=a;n.modifiersData[r]=(t={},t[R]=I,t.centerOffset=I-E,t)}}function cne(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)||w4(t.elements.popper,o)&&(t.elements.arrow=o))}const une={name:"arrow",enabled:!0,phase:"main",fn:ane,effect:cne,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Od(e){return e.split("-")[1]}var dne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function fne(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:$d(n*o)/o||0,y:$d(r*o)/o||0}}function SR(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,i=e.offsets,l=e.position,a=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,p=e.isFixed,h=i.x,y=h===void 0?0:h,v=i.y,m=v===void 0?0:v,C=typeof f=="function"?f({x:y,y:m}):{x:y,y:m};y=C.x,m=C.y;var w=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),x=$o,P=To,k=window;if(c){var E=em(n),I="clientHeight",R="clientWidth";if(E===rs(n)&&(E=Ha(n),_l(E).position!=="static"&&l==="absolute"&&(I="scrollHeight",R="scrollWidth")),E=E,o===To||(o===$o||o===js)&&s===vh){P=Bs;var O=p&&E===k&&k.visualViewport?k.visualViewport.height:E[I];m-=O-r.height,m*=a?1:-1}if(o===$o||(o===To||o===Bs)&&s===vh){x=js;var $=p&&E===k&&k.visualViewport?k.visualViewport.width:E[R];y-=$-r.width,y*=a?1:-1}}var L=Object.assign({position:l},c&&dne),j=f===!0?fne({x:y,y:m},rs(n)):{x:y,y:m};if(y=j.x,m=j.y,a){var N;return Object.assign({},L,(N={},N[P]=b?"0":"",N[x]=w?"0":"",N.transform=(k.devicePixelRatio||1)<=1?"translate("+y+"px, "+m+"px)":"translate3d("+y+"px, "+m+"px, 0)",N))}return Object.assign({},L,(t={},t[P]=b?m+"px":"",t[x]=w?y+"px":"",t.transform="",t))}function pne(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,i=s===void 0?!0:s,l=n.roundOffsets,a=l===void 0?!0:l,c={placement:Ni(t.placement),variation:Od(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,SR(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,SR(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const hne={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:pne,data:{}};var $g={passive:!0};function mne(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,i=r.resize,l=i===void 0?!0:i,a=rs(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(f){f.addEventListener("scroll",n.update,$g)}),l&&a.addEventListener("resize",n.update,$g),function(){s&&c.forEach(function(f){f.removeEventListener("scroll",n.update,$g)}),l&&a.removeEventListener("resize",n.update,$g)}}const gne={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:mne,data:{}};var vne={left:"right",right:"left",bottom:"top",top:"bottom"};function gv(e){return e.replace(/left|right|bottom|top/g,function(t){return vne[t]})}var yne={start:"end",end:"start"};function PR(e){return e.replace(/start|end/g,function(t){return yne[t]})}function O2(e){var t=rs(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function D2(e){return Rd(Ha(e)).left+O2(e).scrollLeft}function bne(e,t){var n=rs(e),r=Ha(e),o=n.visualViewport,s=r.clientWidth,i=r.clientHeight,l=0,a=0;if(o){s=o.width,i=o.height;var c=b4();(c||!c&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:s,height:i,x:l+D2(e),y:a}}function wne(e){var t,n=Ha(e),r=O2(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=Sc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Sc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+D2(e),a=-r.scrollTop;return _l(o||n).direction==="rtl"&&(l+=Sc(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:l,y:a}}function A2(e){var t=_l(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function P4(e){return["html","body","#document"].indexOf(Wi(e))>=0?e.ownerDocument.body:Ds(e)&&A2(e)?e:P4(K1(e))}function Lp(e,t){var n;t===void 0&&(t=[]);var r=P4(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=rs(r),i=o?[s].concat(s.visualViewport||[],A2(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(Lp(K1(i)))}function oS(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Cne(e,t){var n=Rd(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 ER(e,t,n){return t===v4?oS(bne(e,n)):Fc(t)?Cne(t,n):oS(wne(Ha(e)))}function xne(e){var t=Lp(K1(e)),n=["absolute","fixed"].indexOf(_l(e).position)>=0,r=n&&Ds(e)?em(e):e;return Fc(r)?t.filter(function(o){return Fc(o)&&w4(o,r)&&Wi(o)!=="body"}):[]}function Sne(e,t,n,r){var o=t==="clippingParents"?xne(e):[].concat(t),s=[].concat(o,[n]),i=s[0],l=s.reduce(function(a,c){var f=ER(e,c,r);return a.top=Sc(f.top,a.top),a.right=ay(f.right,a.right),a.bottom=ay(f.bottom,a.bottom),a.left=Sc(f.left,a.left),a},ER(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function E4(e){var t=e.reference,n=e.element,r=e.placement,o=r?Ni(r):null,s=r?Od(r):null,i=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,a;switch(o){case To:a={x:i,y:t.y-n.height};break;case Bs:a={x:i,y:t.y+t.height};break;case js:a={x:t.x+t.width,y:l};break;case $o:a={x:t.x-n.width,y:l};break;default:a={x:t.x,y:t.y}}var c=o?R2(o):null;if(c!=null){var f=c==="y"?"height":"width";switch(s){case Td:a[c]=a[c]-(t[f]/2-n[f]/2);break;case vh:a[c]=a[c]+(t[f]/2-n[f]/2);break}}return a}function yh(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,i=s===void 0?e.strategy:s,l=n.boundary,a=l===void 0?Hte:l,c=n.rootBoundary,f=c===void 0?v4:c,p=n.elementContext,h=p===void 0?qf:p,y=n.altBoundary,v=y===void 0?!1:y,m=n.padding,C=m===void 0?0:m,w=x4(typeof C!="number"?C:S4(C,Jh)),b=h===qf?Ute:qf,x=e.rects.popper,P=e.elements[v?b:h],k=Sne(Fc(P)?P:P.contextElement||Ha(e.elements.popper),a,f,i),E=Rd(e.elements.reference),I=E4({reference:E,element:x,strategy:"absolute",placement:o}),R=oS(Object.assign({},x,I)),O=h===qf?R:E,$={top:k.top-O.top+w.top,bottom:O.bottom-k.bottom+w.bottom,left:k.left-O.left+w.left,right:O.right-k.right+w.right},L=e.modifiersData.offset;if(h===qf&&L){var j=L[o];Object.keys($).forEach(function(N){var _=[js,Bs].indexOf(N)>=0?1:-1,T=[To,Bs].indexOf(N)>=0?"y":"x";$[N]+=j[T]*_})}return $}function Pne(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,i=n.padding,l=n.flipVariations,a=n.allowedAutoPlacements,c=a===void 0?y4:a,f=Od(r),p=f?l?CR:CR.filter(function(v){return Od(v)===f}):Jh,h=p.filter(function(v){return c.indexOf(v)>=0});h.length===0&&(h=p);var y=h.reduce(function(v,m){return v[m]=yh(e,{placement:m,boundary:o,rootBoundary:s,padding:i})[Ni(m)],v},{});return Object.keys(y).sort(function(v,m){return y[v]-y[m]})}function Ene(e){if(Ni(e)===_2)return[];var t=gv(e);return[PR(e),t,PR(t)]}function kne(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,l=i===void 0?!0:i,a=n.fallbackPlacements,c=n.padding,f=n.boundary,p=n.rootBoundary,h=n.altBoundary,y=n.flipVariations,v=y===void 0?!0:y,m=n.allowedAutoPlacements,C=t.options.placement,w=Ni(C),b=w===C,x=a||(b||!v?[gv(C)]:Ene(C)),P=[C].concat(x).reduce(function(Q,X){return Q.concat(Ni(X)===_2?Pne(t,{placement:X,boundary:f,rootBoundary:p,padding:c,flipVariations:v,allowedAutoPlacements:m}):X)},[]),k=t.rects.reference,E=t.rects.popper,I=new Map,R=!0,O=P[0],$=0;$<P.length;$++){var L=P[$],j=Ni(L),N=Od(L)===Td,_=[To,Bs].indexOf(j)>=0,T=_?"width":"height",B=yh(t,{placement:L,boundary:f,rootBoundary:p,altBoundary:h,padding:c}),V=_?N?js:$o:N?Bs:To;k[T]>E[T]&&(V=gv(V));var A=gv(V),F=[];if(s&&F.push(B[j]<=0),l&&F.push(B[V]<=0,B[A]<=0),F.every(function(Q){return Q})){O=L,R=!1;break}I.set(L,F)}if(R)for(var H=v?3:1,K=function(X){var ee=P.find(function(oe){var Z=I.get(oe);if(Z)return Z.slice(0,X).every(function(pe){return pe})});if(ee)return O=ee,"break"},Y=H;Y>0;Y--){var J=K(Y);if(J==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const Ine={name:"flip",enabled:!0,phase:"main",fn:kne,requiresIfExists:["offset"],data:{_skip:!1}};function kR(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 IR(e){return[To,js,Bs,$o].some(function(t){return e[t]>=0})}function Mne(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,i=yh(t,{elementContext:"reference"}),l=yh(t,{altBoundary:!0}),a=kR(i,r),c=kR(l,o,s),f=IR(a),p=IR(c);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}const _ne={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Mne};function Tne(e,t,n){var r=Ni(e),o=[$o,To].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=s[0],l=s[1];return i=i||0,l=(l||0)*o,[$o,js].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}function $ne(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=y4.reduce(function(f,p){return f[p]=Tne(p,t.rects,s),f},{}),l=i[t.placement],a=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const Rne={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$ne};function One(e){var t=e.state,n=e.name;t.modifiersData[n]=E4({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Dne={name:"popperOffsets",enabled:!0,phase:"read",fn:One,data:{}};function Ane(e){return e==="x"?"y":"x"}function Lne(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,l=i===void 0?!1:i,a=n.boundary,c=n.rootBoundary,f=n.altBoundary,p=n.padding,h=n.tether,y=h===void 0?!0:h,v=n.tetherOffset,m=v===void 0?0:v,C=yh(t,{boundary:a,rootBoundary:c,padding:p,altBoundary:f}),w=Ni(t.placement),b=Od(t.placement),x=!b,P=R2(w),k=Ane(P),E=t.modifiersData.popperOffsets,I=t.rects.reference,R=t.rects.popper,O=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,$=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(E){if(s){var N,_=P==="y"?To:$o,T=P==="y"?Bs:js,B=P==="y"?"height":"width",V=E[P],A=V+C[_],F=V-C[T],H=y?-R[B]/2:0,K=b===Td?I[B]:R[B],Y=b===Td?-R[B]:-I[B],J=t.elements.arrow,Q=y&&J?$2(J):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:C4(),ee=X[_],oe=X[T],Z=Ap(0,I[B],Q[B]),pe=x?I[B]/2-H-Z-ee-$.mainAxis:K-Z-ee-$.mainAxis,ne=x?-I[B]/2+H+Z+oe+$.mainAxis:Y+Z+oe+$.mainAxis,re=t.elements.arrow&&em(t.elements.arrow),me=re?P==="y"?re.clientTop||0:re.clientLeft||0:0,ce=(N=L==null?void 0:L[P])!=null?N:0,Ce=V+pe-ce-me,Ee=V+ne-ce,fe=Ap(y?ay(A,Ce):A,V,y?Sc(F,Ee):F);E[P]=fe,j[P]=fe-V}if(l){var ke,ve=P==="x"?To:$o,Re=P==="x"?Bs:js,ie=E[k],ue=k==="y"?"height":"width",we=ie+C[ve],xe=ie-C[Re],Me=[To,$o].indexOf(w)!==-1,Oe=(ke=L==null?void 0:L[k])!=null?ke:0,Be=Me?we:ie-I[ue]-R[ue]-Oe+$.altAxis,Ke=Me?ie+I[ue]+R[ue]-Oe-$.altAxis:xe,Ye=y&&Me?ine(Be,ie,Ke):Ap(y?Be:we,ie,y?Ke:xe);E[k]=Ye,j[k]=Ye-ie}t.modifiersData[r]=j}}const Fne={name:"preventOverflow",enabled:!0,phase:"main",fn:Lne,requiresIfExists:["offset"]};function Nne(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Bne(e){return e===rs(e)||!Ds(e)?O2(e):Nne(e)}function jne(e){var t=e.getBoundingClientRect(),n=$d(t.width)/e.offsetWidth||1,r=$d(t.height)/e.offsetHeight||1;return n!==1||r!==1}function zne(e,t,n){n===void 0&&(n=!1);var r=Ds(t),o=Ds(t)&&jne(t),s=Ha(t),i=Rd(e,o,n),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((Wi(t)!=="body"||A2(s))&&(l=Bne(t)),Ds(t)?(a=Rd(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):s&&(a.x=D2(s))),{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function Vne(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(l){if(!n.has(l)){var a=t.get(l);a&&o(a)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function Hne(e){var t=Vne(e);return ene.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Une(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Wne(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 MR={placement:"bottom",modifiers:[],strategy:"absolute"};function _R(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Gne(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?MR:o;return function(l,a,c){c===void 0&&(c=s);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},MR,s),modifiersData:{},elements:{reference:l,popper:a},attributes:{},styles:{}},p=[],h=!1,y={state:f,setOptions:function(w){var b=typeof w=="function"?w(f.options):w;m(),f.options=Object.assign({},s,f.options,b),f.scrollParents={reference:Fc(l)?Lp(l):l.contextElement?Lp(l.contextElement):[],popper:Lp(a)};var x=Hne(Wne([].concat(r,f.options.modifiers)));return f.orderedModifiers=x.filter(function(P){return P.enabled}),v(),y.update()},forceUpdate:function(){if(!h){var w=f.elements,b=w.reference,x=w.popper;if(_R(b,x)){f.rects={reference:zne(b,em(x),f.options.strategy==="fixed"),popper:$2(x)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function($){return f.modifiersData[$.name]=Object.assign({},$.data)});for(var P=0;P<f.orderedModifiers.length;P++){if(f.reset===!0){f.reset=!1,P=-1;continue}var k=f.orderedModifiers[P],E=k.fn,I=k.options,R=I===void 0?{}:I,O=k.name;typeof E=="function"&&(f=E({state:f,options:R,name:O,instance:y})||f)}}}},update:Une(function(){return new Promise(function(C){y.forceUpdate(),C(f)})}),destroy:function(){m(),h=!0}};if(!_R(l,a))return y;y.setOptions(c).then(function(C){!h&&c.onFirstUpdate&&c.onFirstUpdate(C)});function v(){f.orderedModifiers.forEach(function(C){var w=C.name,b=C.options,x=b===void 0?{}:b,P=C.effect;if(typeof P=="function"){var k=P({state:f,name:w,instance:y,options:x}),E=function(){};p.push(k||E)}})}function m(){p.forEach(function(C){return C()}),p=[]}return y}}var Kne=[gne,Dne,hne,rne,Rne,Ine,Fne,une,_ne],qne=Gne({defaultModifiers:Kne});const k4="Popper";function Yne(e){return h4(k4,e)}Ete(k4,["root"]);const Qne=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Xne=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Zne(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 sS(e){return typeof e=="function"?e():e}function Jne(e){return e.nodeType!==void 0}const ere=()=>_e({root:["root"]},wee(Yne)),tre={},nre=u.forwardRef(function(t,n){var r;const{anchorEl:o,children:s,direction:i,disablePortal:l,modifiers:a,open:c,placement:f,popperOptions:p,popperRef:h,slotProps:y={},slots:v={},TransitionProps:m}=t,C=le(t,Qne),w=u.useRef(null),b=Et(w,n),x=u.useRef(null),P=Et(x,h),k=u.useRef(P);Ft(()=>{k.current=P},[P]),u.useImperativeHandle(h,()=>x.current,[]);const E=Zne(f,i),[I,R]=u.useState(E),[O,$]=u.useState(sS(o));u.useEffect(()=>{x.current&&x.current.forceUpdate()}),u.useEffect(()=>{o&&$(sS(o))},[o]),Ft(()=>{if(!O||!c)return;const T=A=>{R(A.placement)};let B=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:A})=>{T(A)}}];a!=null&&(B=B.concat(a)),p&&p.modifiers!=null&&(B=B.concat(p.modifiers));const V=qne(O,w.current,S({placement:E},p,{modifiers:B}));return k.current(V),()=>{V.destroy(),k.current(null)}},[O,l,a,c,p,E]);const L={placement:I};m!==null&&(L.TransitionProps=m);const j=ere(),N=(r=v.root)!=null?r:"div",_=ns({elementType:N,externalSlotProps:y.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:b},ownerState:t,className:j.root});return D.jsx(N,S({},_,{children:typeof s=="function"?s(L):s}))}),rre=u.forwardRef(function(t,n){const{anchorEl:r,children:o,container:s,direction:i="ltr",disablePortal:l=!1,keepMounted:a=!1,modifiers:c,open:f,placement:p="bottom",popperOptions:h=tre,popperRef:y,style:v,transition:m=!1,slotProps:C={},slots:w={}}=t,b=le(t,Xne),[x,P]=u.useState(!0),k=()=>{P(!1)},E=()=>{P(!0)};if(!a&&!f&&(!m||x))return null;let I;if(s)I=s;else if(r){const $=sS(r);I=$&&Jne($)?pn($).body:pn(null).body}const R=!f&&a&&(!m||x)?"none":void 0,O=m?{in:f,onEnter:k,onExited:E}:void 0;return D.jsx(g4,{disablePortal:l,container:I,children:D.jsx(nre,S({anchorEl:r,direction:i,disablePortal:l,modifiers:c,ref:n,open:m?!x:f,placement:p,popperOptions:h,popperRef:y,slotProps:C,slots:w},b,{style:S({position:"fixed",top:0,left:0,display:R},v),TransitionProps:O,children:o}))})}),ore=["onChange","maxRows","minRows","style","value"];function Rg(e){return parseInt(e,10)||0}const sre={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function ire(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const lre=u.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:s=1,style:i,value:l}=t,a=le(t,ore),{current:c}=u.useRef(l!=null),f=u.useRef(null),p=Et(n,f),h=u.useRef(null),y=u.useCallback(()=>{const C=f.current,b=ts(C).getComputedStyle(C);if(b.width==="0px")return{outerHeightStyle:0,overflowing:!1};const x=h.current;x.style.width=b.width,x.value=C.value||t.placeholder||"x",x.value.slice(-1)===`
162
+ `&&(x.value+=" ");const P=b.boxSizing,k=Rg(b.paddingBottom)+Rg(b.paddingTop),E=Rg(b.borderBottomWidth)+Rg(b.borderTopWidth),I=x.scrollHeight;x.value="x";const R=x.scrollHeight;let O=I;s&&(O=Math.max(Number(s)*R,O)),o&&(O=Math.min(Number(o)*R,O)),O=Math.max(O,R);const $=O+(P==="border-box"?k+E:0),L=Math.abs(O-I)<=1;return{outerHeightStyle:$,overflowing:L}},[o,s,t.placeholder]),v=u.useCallback(()=>{const C=y();if(ire(C))return;const w=f.current;w.style.height=`${C.outerHeightStyle}px`,w.style.overflow=C.overflowing?"hidden":""},[y]);Ft(()=>{const C=()=>{v()};let w;const b=Va(C),x=f.current,P=ts(x);P.addEventListener("resize",b);let k;return typeof ResizeObserver!="undefined"&&(k=new ResizeObserver(C),k.observe(x)),()=>{b.clear(),cancelAnimationFrame(w),P.removeEventListener("resize",b),k&&k.disconnect()}},[y,v]),Ft(()=>{v()});const m=C=>{c||v(),r&&r(C)};return D.jsxs(u.Fragment,{children:[D.jsx("textarea",S({value:l,onChange:m,ref:p,rows:s,style:i},a)),D.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:S({},sre.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function TR(e){return typeof e.normalize!="undefined"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function I4(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:s,trim:i=!1}=e;return(l,{inputValue:a,getOptionLabel:c})=>{let f=i?a.trim():a;n&&(f=f.toLowerCase()),t&&(f=TR(f));const p=f?l.filter(h=>{let y=(s||c)(h);return n&&(y=y.toLowerCase()),t&&(y=TR(y)),o==="start"?y.indexOf(f)===0:y.indexOf(f)>-1}):l;return typeof r=="number"?p.slice(0,r):p}}function Og(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const are=I4(),$R=5,cre=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function ure(e){const{unstable_isActiveElementInListbox:t=cre,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:s=!1,blurOnSelect:i=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:a=!1,componentName:c="useAutocomplete",defaultValue:f=e.multiple?[]:null,disableClearable:p=!1,disableCloseOnSelect:h=!1,disabled:y,disabledItemsFocusable:v=!1,disableListWrap:m=!1,filterOptions:C=are,filterSelectedOptions:w=!1,freeSolo:b=!1,getOptionDisabled:x,getOptionKey:P,getOptionLabel:k=$e=>{var Ie;return(Ie=$e.label)!=null?Ie:$e},groupBy:E,handleHomeEndKeys:I=!e.freeSolo,id:R,includeInputInList:O=!1,inputValue:$,isOptionEqualToValue:L=($e,Ie)=>$e===Ie,multiple:j=!1,onChange:N,onClose:_,onHighlightChange:T,onInputChange:B,onOpen:V,open:A,openOnFocus:F=!1,options:H,readOnly:K=!1,selectOnFocus:Y=!e.freeSolo,value:J}=e,Q=Yt(R);let X=k;X=$e=>{const Ie=k($e);return typeof Ie!="string"?String(Ie):Ie};const ee=u.useRef(!1),oe=u.useRef(!0),Z=u.useRef(null),pe=u.useRef(null),[ne,re]=u.useState(null),[me,ce]=u.useState(-1),Ce=o?0:-1,Ee=u.useRef(Ce),[fe,ke]=Kr({controlled:J,default:f,name:c}),[ve,Re]=Kr({controlled:$,default:"",name:c,state:"inputValue"}),[ie,ue]=u.useState(!1),we=u.useCallback(($e,Ie)=>{if(!(j?fe.length<Ie.length:Ie!==null)&&!l)return;let Qe;if(j)Qe="";else if(Ie==null)Qe="";else{const St=X(Ie);Qe=typeof St=="string"?St:""}ve!==Qe&&(Re(Qe),B&&B($e,Qe,"reset"))},[X,ve,j,B,Re,l,fe]),[xe,Me]=Kr({controlled:A,default:!1,name:c,state:"open"}),[Oe,Be]=u.useState(!0),Ke=!j&&fe!=null&&ve===X(fe),Ye=xe&&!K,Fe=Ye?C(H.filter($e=>!(w&&(j?fe:[fe]).some(Ie=>Ie!==null&&L($e,Ie)))),{inputValue:Ke&&Oe?"":ve,getOptionLabel:X}):[],mt=y2({filteredOptions:Fe,value:fe,inputValue:ve});u.useEffect(()=>{const $e=fe!==mt.value;ie&&!$e||b&&!$e||we(null,fe)},[fe,we,ie,mt.value,b]);const Zt=xe&&Fe.length>0&&!K,Pt=qe($e=>{$e===-1?Z.current.focus():ne.querySelector(`[data-tag-index="${$e}"]`).focus()});u.useEffect(()=>{j&&me>fe.length-1&&(ce(-1),Pt(-1))},[fe,j,me,Pt]);function Ve($e,Ie){if(!pe.current||$e<0||$e>=Fe.length)return-1;let rt=$e;for(;;){const Qe=pe.current.querySelector(`[data-option-index="${rt}"]`),St=v?!1:!Qe||Qe.disabled||Qe.getAttribute("aria-disabled")==="true";if(Qe&&Qe.hasAttribute("tabindex")&&!St)return rt;if(Ie==="next"?rt=(rt+1)%Fe.length:rt=(rt-1+Fe.length)%Fe.length,rt===$e)return-1}}const ht=qe(({event:$e,index:Ie,reason:rt="auto"})=>{if(Ee.current=Ie,Ie===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${Q}-option-${Ie}`),T&&T($e,Ie===-1?null:Fe[Ie],rt),!pe.current)return;const Qe=pe.current.querySelector(`[role="option"].${n}-focused`);Qe&&(Qe.classList.remove(`${n}-focused`),Qe.classList.remove(`${n}-focusVisible`));let St=pe.current;if(pe.current.getAttribute("role")!=="listbox"&&(St=pe.current.parentElement.querySelector('[role="listbox"]')),!St)return;if(Ie===-1){St.scrollTop=0;return}const at=pe.current.querySelector(`[data-option-index="${Ie}"]`);if(at&&(at.classList.add(`${n}-focused`),rt==="keyboard"&&at.classList.add(`${n}-focusVisible`),St.scrollHeight>St.clientHeight&&rt!=="mouse"&&rt!=="touch")){const zt=at,ps=St.clientHeight+St.scrollTop,Ya=zt.offsetTop+zt.offsetHeight;Ya>ps?St.scrollTop=Ya-St.clientHeight:zt.offsetTop-zt.offsetHeight*(E?1.3:0)<St.scrollTop&&(St.scrollTop=zt.offsetTop-zt.offsetHeight*(E?1.3:0))}}),Ne=qe(({event:$e,diff:Ie,direction:rt="next",reason:Qe="auto"})=>{if(!Ye)return;const at=Ve((()=>{const zt=Fe.length-1;if(Ie==="reset")return Ce;if(Ie==="start")return 0;if(Ie==="end")return zt;const ps=Ee.current+Ie;return ps<0?ps===-1&&O?-1:m&&Ee.current!==-1||Math.abs(Ie)>1?0:zt:ps>zt?ps===zt+1&&O?-1:m||Math.abs(Ie)>1?zt:0:ps})(),rt);if(ht({index:at,reason:Qe,event:$e}),r&&Ie!=="reset")if(at===-1)Z.current.value=ve;else{const zt=X(Fe[at]);Z.current.value=zt,zt.toLowerCase().indexOf(ve.toLowerCase())===0&&ve.length>0&&Z.current.setSelectionRange(ve.length,zt.length)}}),Xe=()=>{const $e=(Ie,rt)=>{const Qe=Ie?X(Ie):"",St=rt?X(rt):"";return Qe===St};if(Ee.current!==-1&&mt.filteredOptions&&mt.filteredOptions.length!==Fe.length&&mt.inputValue===ve&&(j?fe.length===mt.value.length&&mt.value.every((Ie,rt)=>X(fe[rt])===X(Ie)):$e(mt.value,fe))){const Ie=mt.filteredOptions[Ee.current];if(Ie)return Og(Fe,rt=>X(rt)===X(Ie))}return-1},vt=u.useCallback(()=>{if(!Ye)return;const $e=Xe();if($e!==-1){Ee.current=$e;return}const Ie=j?fe[0]:fe;if(Fe.length===0||Ie==null){Ne({diff:"reset"});return}if(pe.current){if(Ie!=null){const rt=Fe[Ee.current];if(j&&rt&&Og(fe,St=>L(rt,St))!==-1)return;const Qe=Og(Fe,St=>L(St,Ie));Qe===-1?Ne({diff:"reset"}):ht({index:Qe});return}if(Ee.current>=Fe.length-1){ht({index:Fe.length-1});return}ht({index:Ee.current})}},[Fe.length,j?!1:fe,w,Ne,ht,Ye,ve,j]),wt=qe($e=>{hh(pe,$e),$e&&vt()});u.useEffect(()=>{vt()},[vt]);const Tt=$e=>{xe||(Me(!0),Be(!0),V&&V($e))},qt=($e,Ie)=>{xe&&(Me(!1),_&&_($e,Ie))},Qt=($e,Ie,rt,Qe)=>{if(j){if(fe.length===Ie.length&&fe.every((St,at)=>St===Ie[at]))return}else if(fe===Ie)return;N&&N($e,Ie,rt,Qe),ke(Ie)},Sn=u.useRef(!1),yn=($e,Ie,rt="selectOption",Qe="options")=>{let St=rt,at=Ie;if(j){at=Array.isArray(fe)?fe.slice():[];const zt=Og(at,ps=>L(Ie,ps));zt===-1?at.push(Ie):Qe!=="freeSolo"&&(at.splice(zt,1),St="removeOption")}we($e,at),Qt($e,at,St,{option:Ie}),!h&&(!$e||!$e.ctrlKey&&!$e.metaKey)&&qt($e,St),(i===!0||i==="touch"&&Sn.current||i==="mouse"&&!Sn.current)&&Z.current.blur()};function gt($e,Ie){if($e===-1)return-1;let rt=$e;for(;;){if(Ie==="next"&&rt===fe.length||Ie==="previous"&&rt===-1)return-1;const Qe=ne.querySelector(`[data-tag-index="${rt}"]`);if(!Qe||!Qe.hasAttribute("tabindex")||Qe.disabled||Qe.getAttribute("aria-disabled")==="true")rt+=Ie==="next"?1:-1;else return rt}}const Ot=($e,Ie)=>{if(!j)return;ve===""&&qt($e,"toggleInput");let rt=me;me===-1?ve===""&&Ie==="previous"&&(rt=fe.length-1):(rt+=Ie==="next"?1:-1,rt<0&&(rt=0),rt===fe.length&&(rt=-1)),rt=gt(rt,Ie),ce(rt),Pt(rt)},Mr=$e=>{ee.current=!0,Re(""),B&&B($e,"","clear"),Qt($e,j?[]:null,"clear")},dr=$e=>Ie=>{if($e.onKeyDown&&$e.onKeyDown(Ie),!Ie.defaultMuiPrevented&&(me!==-1&&["ArrowLeft","ArrowRight"].indexOf(Ie.key)===-1&&(ce(-1),Pt(-1)),Ie.which!==229))switch(Ie.key){case"Home":Ye&&I&&(Ie.preventDefault(),Ne({diff:"start",direction:"next",reason:"keyboard",event:Ie}));break;case"End":Ye&&I&&(Ie.preventDefault(),Ne({diff:"end",direction:"previous",reason:"keyboard",event:Ie}));break;case"PageUp":Ie.preventDefault(),Ne({diff:-$R,direction:"previous",reason:"keyboard",event:Ie}),Tt(Ie);break;case"PageDown":Ie.preventDefault(),Ne({diff:$R,direction:"next",reason:"keyboard",event:Ie}),Tt(Ie);break;case"ArrowDown":Ie.preventDefault(),Ne({diff:1,direction:"next",reason:"keyboard",event:Ie}),Tt(Ie);break;case"ArrowUp":Ie.preventDefault(),Ne({diff:-1,direction:"previous",reason:"keyboard",event:Ie}),Tt(Ie);break;case"ArrowLeft":Ot(Ie,"previous");break;case"ArrowRight":Ot(Ie,"next");break;case"Enter":if(Ee.current!==-1&&Ye){const rt=Fe[Ee.current],Qe=x?x(rt):!1;if(Ie.preventDefault(),Qe)return;yn(Ie,rt,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else b&&ve!==""&&Ke===!1&&(j&&Ie.preventDefault(),yn(Ie,ve,"createOption","freeSolo"));break;case"Escape":Ye?(Ie.preventDefault(),Ie.stopPropagation(),qt(Ie,"escape")):a&&(ve!==""||j&&fe.length>0)&&(Ie.preventDefault(),Ie.stopPropagation(),Mr(Ie));break;case"Backspace":if(j&&!K&&ve===""&&fe.length>0){const rt=me===-1?fe.length-1:me,Qe=fe.slice();Qe.splice(rt,1),Qt(Ie,Qe,"removeOption",{option:fe[rt]})}break;case"Delete":if(j&&!K&&ve===""&&fe.length>0&&me!==-1){const rt=me,Qe=fe.slice();Qe.splice(rt,1),Qt(Ie,Qe,"removeOption",{option:fe[rt]})}break}},jl=$e=>{ue(!0),F&&!ee.current&&Tt($e)},ho=$e=>{if(t(pe)){Z.current.focus();return}ue(!1),oe.current=!0,ee.current=!1,s&&Ee.current!==-1&&Ye?yn($e,Fe[Ee.current],"blur"):s&&b&&ve!==""?yn($e,ve,"blur","freeSolo"):l&&we($e,fe),qt($e,"blur")},Tn=$e=>{const Ie=$e.target.value;ve!==Ie&&(Re(Ie),Be(!1),B&&B($e,Ie,"input")),Ie===""?!p&&!j&&Qt($e,null,"clear"):Tt($e)},en=$e=>{const Ie=Number($e.currentTarget.getAttribute("data-option-index"));Ee.current!==Ie&&ht({event:$e,index:Ie,reason:"mouse"})},lr=$e=>{ht({event:$e,index:Number($e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Sn.current=!0},ar=$e=>{const Ie=Number($e.currentTarget.getAttribute("data-option-index"));yn($e,Fe[Ie],"selectOption"),Sn.current=!1},mo=$e=>Ie=>{const rt=fe.slice();rt.splice($e,1),Qt(Ie,rt,"removeOption",{option:fe[$e]})},Ci=$e=>{xe?qt($e,"toggleInput"):Tt($e)},Ao=$e=>{$e.currentTarget.contains($e.target)&&$e.target.getAttribute("id")!==Q&&$e.preventDefault()},fs=$e=>{$e.currentTarget.contains($e.target)&&(Z.current.focus(),Y&&oe.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.current.select(),oe.current=!1)},go=$e=>{!y&&(ve===""||!xe)&&Ci($e)};let Zr=b&&ve.length>0;Zr=Zr||(j?fe.length>0:fe!==null);let Ks=Fe;return E&&(Ks=Fe.reduce(($e,Ie,rt)=>{const Qe=E(Ie);return $e.length>0&&$e[$e.length-1].group===Qe?$e[$e.length-1].options.push(Ie):$e.push({key:rt,index:rt,group:Qe,options:[Ie]}),$e},[])),y&&ie&&ho(),{getRootProps:($e={})=>S({"aria-owns":Zt?`${Q}-listbox`:null},$e,{onKeyDown:dr($e),onMouseDown:Ao,onClick:fs}),getInputLabelProps:()=>({id:`${Q}-label`,htmlFor:Q}),getInputProps:()=>({id:Q,value:ve,onBlur:ho,onFocus:jl,onChange:Tn,onMouseDown:go,"aria-activedescendant":Ye?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Zt?`${Q}-listbox`:void 0,"aria-expanded":Zt,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:y}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Mr}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Ci}),getTagProps:({index:$e})=>S({key:$e,"data-tag-index":$e,tabIndex:-1},!K&&{onDelete:mo($e)}),getListboxProps:()=>({role:"listbox",id:`${Q}-listbox`,"aria-labelledby":`${Q}-label`,ref:wt,onMouseDown:$e=>{$e.preventDefault()}}),getOptionProps:({index:$e,option:Ie})=>{var rt;const Qe=(j?fe:[fe]).some(at=>at!=null&&L(Ie,at)),St=x?x(Ie):!1;return{key:(rt=P==null?void 0:P(Ie))!=null?rt:X(Ie),tabIndex:-1,role:"option",id:`${Q}-option-${$e}`,onMouseMove:en,onClick:ar,onTouchStart:lr,"data-option-index":$e,"aria-disabled":St,"aria-selected":Qe}},id:Q,inputValue:ve,value:fe,dirty:Zr,expanded:Ye&&ne,popupOpen:Ye,focused:ie||me!==-1,anchorEl:ne,setAnchorEl:re,focusedTag:me,groupedOptions:Ks}}var L2={};Object.defineProperty(L2,"__esModule",{value:!0});var M4=L2.default=void 0,dre=pre(u),fre=r4;function _4(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(_4=function(r){return r?n:t})(e)}function pre(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=_4(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var i=o?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(r,s,i):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function hre(e){return Object.keys(e).length===0}function mre(e=null){const t=dre.useContext(fre.ThemeContext);return!t||hre(t)?e:t}M4=L2.default=mre;const gre=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],vre=se(rre,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yre=u.forwardRef(function(t,n){var r;const o=M4(),s=We({props:t,name:"MuiPopper"}),{anchorEl:i,component:l,components:a,componentsProps:c,container:f,disablePortal:p,keepMounted:h,modifiers:y,open:v,placement:m,popperOptions:C,popperRef:w,transition:b,slots:x,slotProps:P}=s,k=le(s,gre),E=(r=x==null?void 0:x.root)!=null?r:a==null?void 0:a.Root,I=S({anchorEl:i,container:f,disablePortal:p,keepMounted:h,modifiers:y,open:v,placement:m,popperOptions:C,popperRef:w,transition:b},k);return D.jsx(vre,S({as:l,direction:o==null?void 0:o.direction,slots:{root:E},slotProps:P!=null?P:c},I,{ref:n}))}),Ua=yre;function bre(e){return Ge("MuiListSubheader",e)}Ue("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const wre=["className","color","component","disableGutters","disableSticky","inset"],Cre=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:s}=e,i={root:["root",n!=="default"&&`color${Se(n)}`,!r&&"gutters",o&&"inset",!s&&"sticky"]};return _e(i,bre,t)},xre=se("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Se(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>S({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),T4=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiListSubheader"}),{className:o,color:s="default",component:i="li",disableGutters:l=!1,disableSticky:a=!1,inset:c=!1}=r,f=le(r,wre),p=S({},r,{color:s,component:i,disableGutters:l,disableSticky:a,inset:c}),h=Cre(p);return D.jsx(xre,S({as:i,className:be(h.root,o),ref:n,ownerState:p},f))});T4.muiSkipListHighlight=!0;const Sre=T4,Pre=bt(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 Ere(e){return Ge("MuiChip",e)}const kre=Ue("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"]),Jt=kre,Ire=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Mre=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:s,onDelete:i,clickable:l,variant:a}=e,c={root:["root",a,n&&"disabled",`size${Se(r)}`,`color${Se(o)}`,l&&"clickable",l&&`clickableColor${Se(o)}`,i&&"deletable",i&&`deletableColor${Se(o)}`,`${a}${Se(o)}`],label:["label",`label${Se(r)}`],avatar:["avatar",`avatar${Se(r)}`,`avatarColor${Se(o)}`],icon:["icon",`icon${Se(r)}`,`iconColor${Se(s)}`],deleteIcon:["deleteIcon",`deleteIcon${Se(r)}`,`deleteIconColor${Se(o)}`,`deleteIcon${Se(a)}Color${Se(o)}`]};return _e(c,Ere,t)},_re=se("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:s,onDelete:i,size:l,variant:a}=n;return[{[`& .${Jt.avatar}`]:t.avatar},{[`& .${Jt.avatar}`]:t[`avatar${Se(l)}`]},{[`& .${Jt.avatar}`]:t[`avatarColor${Se(r)}`]},{[`& .${Jt.icon}`]:t.icon},{[`& .${Jt.icon}`]:t[`icon${Se(l)}`]},{[`& .${Jt.icon}`]:t[`iconColor${Se(o)}`]},{[`& .${Jt.deleteIcon}`]:t.deleteIcon},{[`& .${Jt.deleteIcon}`]:t[`deleteIcon${Se(l)}`]},{[`& .${Jt.deleteIcon}`]:t[`deleteIconColor${Se(r)}`]},{[`& .${Jt.deleteIcon}`]:t[`deleteIcon${Se(a)}Color${Se(r)}`]},t.root,t[`size${Se(l)}`],t[`color${Se(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${Se(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${Se(r)}`],t[a],t[`${a}${Se(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return S({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",[`&.${Jt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Jt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Jt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Jt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Jt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Jt.icon}`]:S({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&S({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Jt.deleteIcon}`]:S({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:$t(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)`:$t(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)`:$t(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&&{[`&.${Jt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:$t(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Jt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>S({},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}))`:$t(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Jt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:$t(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, &.${Jt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>S({},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]}`,[`&.${Jt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Jt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Jt.avatar}`]:{marginLeft:4},[`& .${Jt.avatarSmall}`]:{marginLeft:2},[`& .${Jt.icon}`]:{marginLeft:4},[`& .${Jt.iconSmall}`]:{marginLeft:2},[`& .${Jt.deleteIcon}`]:{marginRight:5},[`& .${Jt.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)`:$t(e.palette[t.color].main,.7)}`,[`&.${Jt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:$t(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Jt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:$t(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Jt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:$t(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Tre=se("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Se(r)}`]]}})(({ownerState:e})=>S({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 RR(e){return e.key==="Backspace"||e.key==="Delete"}const $re=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiChip"}),{avatar:o,className:s,clickable:i,color:l="default",component:a,deleteIcon:c,disabled:f=!1,icon:p,label:h,onClick:y,onDelete:v,onKeyDown:m,onKeyUp:C,size:w="medium",variant:b="filled",tabIndex:x,skipFocusWhenDisabled:P=!1}=r,k=le(r,Ire),E=u.useRef(null),I=Et(E,n),R=F=>{F.stopPropagation(),v&&v(F)},O=F=>{F.currentTarget===F.target&&RR(F)&&F.preventDefault(),m&&m(F)},$=F=>{F.currentTarget===F.target&&(v&&RR(F)?v(F):F.key==="Escape"&&E.current&&E.current.blur()),C&&C(F)},L=i!==!1&&y?!0:i,j=L||v?gi:a||"div",N=S({},r,{component:j,disabled:f,size:w,color:l,iconColor:u.isValidElement(p)&&p.props.color||l,onDelete:!!v,clickable:L,variant:b}),_=Mre(N),T=j===gi?S({component:a||"div",focusVisibleClassName:_.focusVisible},v&&{disableRipple:!0}):{};let B=null;v&&(B=c&&u.isValidElement(c)?u.cloneElement(c,{className:be(c.props.className,_.deleteIcon),onClick:R}):D.jsx(Pre,{className:be(_.deleteIcon),onClick:R}));let V=null;o&&u.isValidElement(o)&&(V=u.cloneElement(o,{className:be(_.avatar,o.props.className)}));let A=null;return p&&u.isValidElement(p)&&(A=u.cloneElement(p,{className:be(_.icon,p.props.className)})),D.jsxs(_re,S({as:j,className:be(_.root,s),disabled:L&&f?!0:void 0,onClick:y,onKeyDown:O,onKeyUp:$,ref:I,tabIndex:P&&f?-1:x,ownerState:N},T,k,{children:[V||A,D.jsx(Tre,{className:be(_.label),ownerState:N,children:h}),B]}))}),tm=$re;function Kc({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]=="undefined"&&(r[o]=n[o]),r),{})}const Rre=u.createContext(void 0),q1=Rre;function Fl(){return u.useContext(q1)}function Ore(e){return D.jsx(SX,S({},e,{defaultTheme:H1,themeId:Dc}))}function OR(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function cy(e,t=!1){return e&&(OR(e.value)&&e.value!==""||t&&OR(e.defaultValue)&&e.defaultValue!=="")}function Dre(e){return e.startAdornment}function Are(e){return Ge("MuiInputBase",e)}const Lre=Ue("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Wo=Lre,Fre=["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"],Y1=(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${Se(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Q1=(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]},Nre=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:s,focused:i,formControl:l,fullWidth:a,hiddenLabel:c,multiline:f,readOnly:p,size:h,startAdornment:y,type:v}=e,m={root:["root",`color${Se(n)}`,r&&"disabled",o&&"error",a&&"fullWidth",i&&"focused",l&&"formControl",h&&h!=="medium"&&`size${Se(h)}`,f&&"multiline",y&&"adornedStart",s&&"adornedEnd",c&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",f&&"inputMultiline",h==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",y&&"inputAdornedStart",s&&"inputAdornedEnd",p&&"readOnly"]};return _e(m,Are,t)},X1=se("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Y1})(({theme:e,ownerState:t})=>S({},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",[`&.${Wo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&S({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Z1=se("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Q1})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=S({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"},s=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return S({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] + .${Wo.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${Wo.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"})}),Bre=D.jsx(Ore,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),jre=u.forwardRef(function(t,n){var r;const o=We({props:t,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:i,autoFocus:l,className:a,components:c={},componentsProps:f={},defaultValue:p,disabled:h,disableInjectingGlobalStyles:y,endAdornment:v,fullWidth:m=!1,id:C,inputComponent:w="input",inputProps:b={},inputRef:x,maxRows:P,minRows:k,multiline:E=!1,name:I,onBlur:R,onChange:O,onClick:$,onFocus:L,onKeyDown:j,onKeyUp:N,placeholder:_,readOnly:T,renderSuffix:B,rows:V,slotProps:A={},slots:F={},startAdornment:H,type:K="text",value:Y}=o,J=le(o,Fre),Q=b.value!=null?b.value:Y,{current:X}=u.useRef(Q!=null),ee=u.useRef(),oe=u.useCallback(Ye=>{},[]),Z=Et(ee,x,b.ref,oe),[pe,ne]=u.useState(!1),re=Fl(),me=Kc({props:o,muiFormControl:re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});me.focused=re?re.focused:pe,u.useEffect(()=>{!re&&h&&pe&&(ne(!1),R&&R())},[re,h,pe,R]);const ce=re&&re.onFilled,Ce=re&&re.onEmpty,Ee=u.useCallback(Ye=>{cy(Ye)?ce&&ce():Ce&&Ce()},[ce,Ce]);Ft(()=>{X&&Ee({value:Q})},[Q,Ee,X]);const fe=Ye=>{if(me.disabled){Ye.stopPropagation();return}L&&L(Ye),b.onFocus&&b.onFocus(Ye),re&&re.onFocus?re.onFocus(Ye):ne(!0)},ke=Ye=>{R&&R(Ye),b.onBlur&&b.onBlur(Ye),re&&re.onBlur?re.onBlur(Ye):ne(!1)},ve=(Ye,...Fe)=>{if(!X){const mt=Ye.target||ee.current;if(mt==null)throw new Error(Il(1));Ee({value:mt.value})}b.onChange&&b.onChange(Ye,...Fe),O&&O(Ye,...Fe)};u.useEffect(()=>{Ee(ee.current)},[]);const Re=Ye=>{ee.current&&Ye.currentTarget===Ye.target&&ee.current.focus(),$&&$(Ye)};let ie=w,ue=b;E&&ie==="input"&&(V?ue=S({type:void 0,minRows:V,maxRows:V},ue):ue=S({type:void 0,maxRows:P,minRows:k},ue),ie=lre);const we=Ye=>{Ee(Ye.animationName==="mui-auto-fill-cancel"?ee.current:{value:"x"})};u.useEffect(()=>{re&&re.setAdornedStart(!!H)},[re,H]);const xe=S({},o,{color:me.color||"primary",disabled:me.disabled,endAdornment:v,error:me.error,focused:me.focused,formControl:re,fullWidth:m,hiddenLabel:me.hiddenLabel,multiline:E,size:me.size,startAdornment:H,type:K}),Me=Nre(xe),Oe=F.root||c.Root||X1,Be=A.root||f.root||{},Ke=F.input||c.Input||Z1;return ue=S({},ue,(r=A.input)!=null?r:f.input),D.jsxs(u.Fragment,{children:[!y&&Bre,D.jsxs(Oe,S({},Be,!Lc(Oe)&&{ownerState:S({},xe,Be.ownerState)},{ref:n,onClick:Re},J,{className:be(Me.root,Be.className,a,T&&"MuiInputBase-readOnly"),children:[H,D.jsx(q1.Provider,{value:null,children:D.jsx(Ke,S({ownerState:xe,"aria-invalid":me.error,"aria-describedby":s,autoComplete:i,autoFocus:l,defaultValue:p,disabled:me.disabled,id:C,onAnimationStart:we,name:I,placeholder:_,readOnly:T,required:me.required,rows:V,value:Q,onKeyDown:j,onKeyUp:N,type:K},ue,!Lc(Ke)&&{as:ie,ownerState:S({},xe,ue.ownerState)},{ref:Z,className:be(Me.input,ue.className,T&&"MuiInputBase-readOnly"),onBlur:ke,onChange:ve,onFocus:fe}))}),v,B?B(S({},me,{startAdornment:H})):null]}))]})}),ef=jre;function zre(e){return Ge("MuiInput",e)}const Vre=S({},Wo,Ue("MuiInput",["root","underline","input"])),fa=Vre;function Hre(e){return Ge("MuiOutlinedInput",e)}const Ure=S({},Wo,Ue("MuiOutlinedInput",["root","notchedOutline","input"])),_i=Ure;function Wre(e){return Ge("MuiFilledInput",e)}const Gre=S({},Wo,Ue("MuiFilledInput",["root","underline","input"])),Go=Gre,$4=bt(D.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Kre(e){return Ge("MuiAutocomplete",e)}const qre=Ue("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),jt=qre;var DR,AR;const Yre=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],Qre=["ref"],Xre=U1(),Zre=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:s,hasClearIcon:i,hasPopupIcon:l,inputFocused:a,popupOpen:c,size:f}=e,p={root:["root",r&&"expanded",o&&"focused",s&&"fullWidth",i&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",a&&"inputFocused"],tag:["tag",`tagSize${Se(f)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return _e(p,Kre,t)},Jre=se("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:s,inputFocused:i,size:l}=n;return[{[`& .${jt.tag}`]:t.tag},{[`& .${jt.tag}`]:t[`tagSize${Se(l)}`]},{[`& .${jt.inputRoot}`]:t.inputRoot},{[`& .${jt.input}`]:t.input},{[`& .${jt.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,s&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${jt.focused} .${jt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${jt.clearIndicator}`]:{visibility:"visible"}},[`& .${jt.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${jt.inputRoot}`]:{flexWrap:"wrap",[`.${jt.hasPopupIcon}&, .${jt.hasClearIcon}&`]:{paddingRight:26+4},[`.${jt.hasPopupIcon}.${jt.hasClearIcon}&`]:{paddingRight:52+4},[`& .${jt.input}`]:{width:0,minWidth:30}},[`& .${fa.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${fa.root}.${Wo.sizeSmall}`]:{[`& .${fa.input}`]:{padding:"2px 4px 3px 0"}},[`& .${_i.root}`]:{padding:9,[`.${jt.hasPopupIcon}&, .${jt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${jt.hasPopupIcon}.${jt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${jt.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${jt.endAdornment}`]:{right:9}},[`& .${_i.root}.${Wo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${jt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Go.root}`]:{paddingTop:19,paddingLeft:8,[`.${jt.hasPopupIcon}&, .${jt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${jt.hasPopupIcon}.${jt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Go.input}`]:{padding:"7px 4px"},[`& .${jt.endAdornment}`]:{right:9}},[`& .${Go.root}.${Wo.sizeSmall}`]:{paddingBottom:1,[`& .${Go.input}`]:{padding:"2.5px 4px"}},[`& .${Wo.hiddenLabel}`]:{paddingTop:8},[`& .${Go.root}.${Wo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${jt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Go.root}.${Wo.hiddenLabel}.${Wo.sizeSmall}`]:{[`& .${jt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${jt.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${jt.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${jt.input}`]:{opacity:1}}}]}),eoe=se("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),toe=se(xr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),noe=se(xr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>S({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),roe=se(Ua,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${jt.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),ooe=se(Ws,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>S({},e.typography.body1,{overflow:"auto"})),soe=se("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),ioe=se("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),loe=se("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${jt.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${jt.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${jt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$t(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${jt.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:$t(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${jt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:$t(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),aoe=se(Sre,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),coe=se("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${jt.option}`]:{paddingLeft:24}}),uoe=u.forwardRef(function(t,n){var r,o,s,i;const l=Xre({props:t,name:"MuiAutocomplete"}),{autoComplete:a=!1,autoHighlight:c=!1,autoSelect:f=!1,blurOnSelect:p=!1,ChipProps:h,className:y,clearIcon:v=DR||(DR=D.jsx(f4,{fontSize:"small"})),clearOnBlur:m=!l.freeSolo,clearOnEscape:C=!1,clearText:w="Clear",closeText:b="Close",componentsProps:x={},defaultValue:P=l.multiple?[]:null,disableClearable:k=!1,disableCloseOnSelect:E=!1,disabled:I=!1,disabledItemsFocusable:R=!1,disableListWrap:O=!1,disablePortal:$=!1,filterSelectedOptions:L=!1,forcePopupIcon:j="auto",freeSolo:N=!1,fullWidth:_=!1,getLimitTagsText:T=Qe=>`+${Qe}`,getOptionLabel:B,groupBy:V,handleHomeEndKeys:A=!l.freeSolo,includeInputInList:F=!1,limitTags:H=-1,ListboxComponent:K="ul",ListboxProps:Y,loading:J=!1,loadingText:Q="Loading…",multiple:X=!1,noOptionsText:ee="No options",openOnFocus:oe=!1,openText:Z="Open",PaperComponent:pe=Ws,PopperComponent:ne=Ua,popupIcon:re=AR||(AR=D.jsx($4,{})),readOnly:me=!1,renderGroup:ce,renderInput:Ce,renderOption:Ee,renderTags:fe,selectOnFocus:ke=!l.freeSolo,size:ve="medium",slotProps:Re={}}=l,ie=le(l,Yre),{getRootProps:ue,getInputProps:we,getInputLabelProps:xe,getPopupIndicatorProps:Me,getClearProps:Oe,getTagProps:Be,getListboxProps:Ke,getOptionProps:Ye,value:Fe,dirty:mt,expanded:Zt,id:Pt,popupOpen:Ve,focused:ht,focusedTag:Ne,anchorEl:Xe,setAnchorEl:vt,inputValue:wt,groupedOptions:Tt}=ure(S({},l,{componentName:"Autocomplete"})),qt=!k&&!I&&mt&&!me,Qt=(!N||j===!0)&&j!==!1,{onMouseDown:Sn}=we(),{ref:yn}=Y!=null?Y:{},gt=Ke(),{ref:Ot}=gt,Mr=le(gt,Qre),dr=Et(Ot,yn),ho=B||(Qe=>{var St;return(St=Qe.label)!=null?St:Qe}),Tn=S({},l,{disablePortal:$,expanded:Zt,focused:ht,fullWidth:_,getOptionLabel:ho,hasClearIcon:qt,hasPopupIcon:Qt,inputFocused:Ne===-1,popupOpen:Ve,size:ve}),en=Zre(Tn);let lr;if(X&&Fe.length>0){const Qe=St=>S({className:en.tag,disabled:I},Be(St));fe?lr=fe(Fe,Qe,Tn):lr=Fe.map((St,at)=>D.jsx(tm,S({label:ho(St),size:ve},Qe({index:at}),h)))}if(H>-1&&Array.isArray(lr)){const Qe=lr.length-H;!ht&&Qe>0&&(lr=lr.splice(0,H),lr.push(D.jsx("span",{className:en.tag,children:T(Qe)},lr.length)))}const mo=ce||(Qe=>D.jsxs("li",{children:[D.jsx(aoe,{className:en.groupLabel,ownerState:Tn,component:"div",children:Qe.group}),D.jsx(coe,{className:en.groupUl,ownerState:Tn,children:Qe.children})]},Qe.key)),Ao=Ee||((Qe,St)=>u.createElement("li",S({},Qe,{key:Qe.key}),ho(St))),fs=(Qe,St)=>{const at=Ye({option:Qe,index:St});return Ao(S({},at,{className:en.option}),Qe,{selected:at["aria-selected"],index:St,inputValue:wt},Tn)},go=(r=Re.clearIndicator)!=null?r:x.clearIndicator,Zr=(o=Re.paper)!=null?o:x.paper,Ks=(s=Re.popper)!=null?s:x.popper,$e=(i=Re.popupIndicator)!=null?i:x.popupIndicator,Ie=Qe=>D.jsx(roe,S({as:ne,disablePortal:$,style:{width:Xe?Xe.clientWidth:null},ownerState:Tn,role:"presentation",anchorEl:Xe,open:Ve},Ks,{className:be(en.popper,Ks==null?void 0:Ks.className),children:D.jsx(ooe,S({ownerState:Tn,as:pe},Zr,{className:be(en.paper,Zr==null?void 0:Zr.className),children:Qe}))}));let rt=null;return!J&&Tt.length>0?rt=Ie(D.jsx(loe,S({as:K,className:en.listbox,ownerState:Tn},Mr,Y,{ref:dr,children:Tt.map((Qe,St)=>V?mo({key:Qe.key,group:Qe.group,children:Qe.options.map((at,zt)=>fs(at,Qe.index+zt))}):fs(Qe,St))}))):J&&Tt.length===0?rt=Ie(D.jsx(soe,{className:en.loading,ownerState:Tn,children:Q})):Tt.length===0&&!N&&!J&&(rt=Ie(D.jsx(ioe,{className:en.noOptions,ownerState:Tn,role:"presentation",onMouseDown:Qe=>{Qe.preventDefault()},children:ee}))),D.jsxs(u.Fragment,{children:[D.jsx(Jre,S({ref:n,className:be(en.root,y),ownerState:Tn},ue(ie),{children:Ce({id:Pt,disabled:I,fullWidth:!0,size:ve==="small"?"small":void 0,InputLabelProps:xe(),InputProps:S({ref:vt,className:en.inputRoot,startAdornment:lr,onClick:Qe=>{Qe.target===Qe.currentTarget&&Sn(Qe)}},(qt||Qt)&&{endAdornment:D.jsxs(eoe,{className:en.endAdornment,ownerState:Tn,children:[qt?D.jsx(toe,S({},Oe(),{"aria-label":w,title:w,ownerState:Tn},go,{className:be(en.clearIndicator,go==null?void 0:go.className),children:v})):null,Qt?D.jsx(noe,S({},Me(),{disabled:I,"aria-label":Ve?b:Z,title:Ve?b:Z,ownerState:Tn},$e,{className:be(en.popupIndicator,$e==null?void 0:$e.className),children:re})):null]})}),inputProps:S({className:en.input,disabled:I,readOnly:me},we())})})),Xe?rt:null]})}),nm=uoe,doe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],foe={entering:{opacity:1},entered:{opacity:1}},poe=u.forwardRef(function(t,n){const r=Fn(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:i=!0,children:l,easing:a,in:c,onEnter:f,onEntered:p,onEntering:h,onExit:y,onExited:v,onExiting:m,style:C,timeout:w=o,TransitionComponent:b=Zh}=t,x=le(t,doe),P=u.useRef(null),k=Et(P,l.ref,n),E=_=>T=>{if(_){const B=P.current;T===void 0?_(B):_(B,T)}},I=E(h),R=E((_,T)=>{I2(_);const B=Da({style:C,timeout:w,easing:a},{mode:"enter"});_.style.webkitTransition=r.transitions.create("opacity",B),_.style.transition=r.transitions.create("opacity",B),f&&f(_,T)}),O=E(p),$=E(m),L=E(_=>{const T=Da({style:C,timeout:w,easing:a},{mode:"exit"});_.style.webkitTransition=r.transitions.create("opacity",T),_.style.transition=r.transitions.create("opacity",T),y&&y(_)}),j=E(v),N=_=>{s&&s(P.current,_)};return D.jsx(b,S({appear:i,in:c,nodeRef:P,onEnter:R,onEntered:O,onEntering:I,onExit:L,onExited:j,onExiting:$,addEndListener:N,timeout:w},x,{children:(_,T)=>u.cloneElement(l,S({style:S({opacity:0,visibility:_==="exited"&&!c?"hidden":void 0},foe[_],C,l.props.style),ref:k},T))}))}),tf=poe;function hoe(e){return Ge("MuiBackdrop",e)}Ue("MuiBackdrop",["root","invisible"]);const moe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],goe=e=>{const{classes:t,invisible:n}=e;return _e({root:["root",n&&"invisible"]},hoe,t)},voe=se("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>S({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"})),yoe=u.forwardRef(function(t,n){var r,o,s;const i=We({props:t,name:"MuiBackdrop"}),{children:l,className:a,component:c="div",components:f={},componentsProps:p={},invisible:h=!1,open:y,slotProps:v={},slots:m={},TransitionComponent:C=tf,transitionDuration:w}=i,b=le(i,moe),x=S({},i,{component:c,invisible:h}),P=goe(x),k=(r=v.root)!=null?r:p.root;return D.jsx(C,S({in:y,timeout:w},b,{children:D.jsx(voe,S({"aria-hidden":!0},k,{as:(o=(s=m.root)!=null?s:f.Root)!=null?o:c,className:be(P.root,a,k==null?void 0:k.className),ownerState:S({},x,k==null?void 0:k.ownerState),classes:P,ref:n,children:l}))}))}),R4=yoe;function boe(e){return Ge("MuiBadge",e)}const woe=Ue("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Xl=woe,Coe=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],nC=10,rC=4,xoe=U1(),Soe=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:s,classes:i={}}=e,l={root:["root"],badge:["badge",s,r&&"invisible",`anchorOrigin${Se(n.vertical)}${Se(n.horizontal)}`,`anchorOrigin${Se(n.vertical)}${Se(n.horizontal)}${Se(o)}`,`overlap${Se(o)}`,t!=="default"&&`color${Se(t)}`]};return _e(l,boe,i)},Poe=se("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Eoe=se("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Se(n.anchorOrigin.vertical)}${Se(n.anchorOrigin.horizontal)}${Se(n.overlap)}`],n.color!=="default"&&t[`color${Se(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:nC*2,lineHeight:1,padding:"0 6px",height:nC*2,borderRadius:nC,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:rC,height:rC*2,minWidth:rC*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Xl.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Xl.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Xl.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Xl.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Xl.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Xl.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Xl.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Xl.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),koe=u.forwardRef(function(t,n){var r,o,s,i,l,a;const c=xoe({props:t,name:"MuiBadge"}),{anchorOrigin:f={vertical:"top",horizontal:"right"},className:p,component:h,components:y={},componentsProps:v={},children:m,overlap:C="rectangular",color:w="default",invisible:b=!1,max:x=99,badgeContent:P,slots:k,slotProps:E,showZero:I=!1,variant:R="standard"}=c,O=le(c,Coe),{badgeContent:$,invisible:L,max:j,displayValue:N}=xte({max:x,invisible:b,badgeContent:P,showZero:I}),_=y2({anchorOrigin:f,color:w,overlap:C,variant:R,badgeContent:P}),T=L||$==null&&R!=="dot",{color:B=w,overlap:V=C,anchorOrigin:A=f,variant:F=R}=T?_:c,H=F!=="dot"?N:void 0,K=S({},c,{badgeContent:$,invisible:T,max:j,displayValue:H,showZero:I,anchorOrigin:A,color:B,overlap:V,variant:F}),Y=Soe(K),J=(r=(o=k==null?void 0:k.root)!=null?o:y.Root)!=null?r:Poe,Q=(s=(i=k==null?void 0:k.badge)!=null?i:y.Badge)!=null?s:Eoe,X=(l=E==null?void 0:E.root)!=null?l:v.root,ee=(a=E==null?void 0:E.badge)!=null?a:v.badge,oe=ns({elementType:J,externalSlotProps:X,externalForwardedProps:O,additionalProps:{ref:n,as:h},ownerState:K,className:be(X==null?void 0:X.className,Y.root,p)}),Z=ns({elementType:Q,externalSlotProps:ee,ownerState:K,className:be(Y.badge,ee==null?void 0:ee.className)});return D.jsxs(J,S({},oe,{children:[m,D.jsx(Q,S({},Z,{children:H}))]}))}),O4=koe,Ioe=Ue("MuiBox",["root"]),Moe=Ioe,_oe=x2(),Toe=TX({themeId:Dc,defaultTheme:_oe,defaultClassName:Moe.root,generateClassName:f2.generate}),ze=Toe;function $oe(e){return Ge("MuiButton",e)}const Roe=Ue("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Dg=Roe,Ooe=u.createContext({}),D4=Ooe,Doe=u.createContext(void 0),Aoe=Doe,Loe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Foe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:s,classes:i}=e,l={root:["root",s,`${s}${Se(t)}`,`size${Se(o)}`,`${s}Size${Se(o)}`,`color${Se(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Se(o)}`],endIcon:["icon","endIcon",`iconSize${Se(o)}`]},a=_e(l,$oe,i);return S({},i,a)},A4=e=>S({},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}}),Noe=se(gi,{shouldForwardProp:e=>Qr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Se(n.color)}`],t[`size${Se(n.size)}`],t[`${n.variant}Size${Se(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],s=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return S({},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":S({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:$t(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})`:$t(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})`:$t(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:s,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":S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Dg.focusVisible}`]:S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Dg.disabled}`]:S({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 ${$t(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"},[`&.${Dg.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Dg.disabled}`]:{boxShadow:"none"}}),Boe=se("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Se(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},A4(e))),joe=se("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Se(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},A4(e))),zoe=u.forwardRef(function(t,n){const r=u.useContext(D4),o=u.useContext(Aoe),s=N1(r,t),i=We({props:s,name:"MuiButton"}),{children:l,color:a="primary",component:c="button",className:f,disabled:p=!1,disableElevation:h=!1,disableFocusRipple:y=!1,endIcon:v,focusVisibleClassName:m,fullWidth:C=!1,size:w="medium",startIcon:b,type:x,variant:P="text"}=i,k=le(i,Loe),E=S({},i,{color:a,component:c,disabled:p,disableElevation:h,disableFocusRipple:y,fullWidth:C,size:w,type:x,variant:P}),I=Foe(E),R=b&&D.jsx(Boe,{className:I.startIcon,ownerState:E,children:b}),O=v&&D.jsx(joe,{className:I.endIcon,ownerState:E,children:v}),$=o||"";return D.jsxs(Noe,S({ownerState:E,className:be(r.className,I.root,f,$),component:c,disabled:p,focusRipple:!y,focusVisibleClassName:be(I.focusVisible,m),ref:n,type:x},k,{classes:I,children:[R,l,O]}))}),Yn=zoe;function Voe(e){return Ge("MuiCard",e)}Ue("MuiCard",["root"]);const Hoe=["className","raised"],Uoe=e=>{const{classes:t}=e;return _e({root:["root"]},Voe,t)},Woe=se(Ws,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Goe=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiCard"}),{className:o,raised:s=!1}=r,i=le(r,Hoe),l=S({},r,{raised:s}),a=Uoe(l);return D.jsx(Woe,S({className:be(a.root,o),elevation:s?8:void 0,ref:n,ownerState:l},i))}),J1=Goe;function Koe(e){return Ge("MuiCardContent",e)}Ue("MuiCardContent",["root"]);const qoe=["className","component"],Yoe=e=>{const{classes:t}=e;return _e({root:["root"]},Koe,t)},Qoe=se("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Xoe=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiCardContent"}),{className:o,component:s="div"}=r,i=le(r,qoe),l=S({},r,{component:s}),a=Yoe(l);return D.jsx(Qoe,S({as:s,className:be(a.root,o),ownerState:l,ref:n},i))}),e0=Xoe;function Zoe(e){return Ge("PrivateSwitchBase",e)}Ue("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Joe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],ese=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,s={root:["root",n&&"checked",r&&"disabled",o&&`edge${Se(o)}`],input:["input"]};return _e(s,Zoe,t)},tse=se(gi)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),nse=se("input",{shouldForwardProp:Qr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),rse=u.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:s,className:i,defaultChecked:l,disabled:a,disableFocusRipple:c=!1,edge:f=!1,icon:p,id:h,inputProps:y,inputRef:v,name:m,onBlur:C,onChange:w,onFocus:b,readOnly:x,required:P=!1,tabIndex:k,type:E,value:I}=t,R=le(t,Joe),[O,$]=Kr({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),L=Fl(),j=F=>{b&&b(F),L&&L.onFocus&&L.onFocus(F)},N=F=>{C&&C(F),L&&L.onBlur&&L.onBlur(F)},_=F=>{if(F.nativeEvent.defaultPrevented)return;const H=F.target.checked;$(H),w&&w(F,H)};let T=a;L&&typeof T=="undefined"&&(T=L.disabled);const B=E==="checkbox"||E==="radio",V=S({},t,{checked:O,disabled:T,disableFocusRipple:c,edge:f}),A=ese(V);return D.jsxs(tse,S({component:"span",className:be(A.root,i),centerRipple:!0,focusRipple:!c,disabled:T,tabIndex:null,role:void 0,onFocus:j,onBlur:N,ownerState:V,ref:n},R,{children:[D.jsx(nse,S({autoFocus:r,checked:o,defaultChecked:l,className:A.input,disabled:T,id:B?h:void 0,name:m,onChange:_,readOnly:x,ref:v,required:P,ownerState:V,tabIndex:k,type:E},E==="checkbox"&&I===void 0?{}:{value:I},y)),O?s:p]}))}),L4=rse,ose=bt(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"),sse=bt(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"),ise=bt(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 lse(e){return Ge("MuiCheckbox",e)}const ase=Ue("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),oC=ase,cse=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],use=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,s={root:["root",n&&"indeterminate",`color${Se(r)}`,`size${Se(o)}`]},i=_e(s,lse,t);return S({},t,i)},dse=se(L4,{shouldForwardProp:e=>Qr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Se(n.size)}`],n.color!=="default"&&t[`color${Se(n.color)}`]]}})(({theme:e,ownerState:t})=>S({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})`:$t(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${oC.checked}, &.${oC.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${oC.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),fse=D.jsx(sse,{}),pse=D.jsx(ose,{}),hse=D.jsx(ise,{}),mse=u.forwardRef(function(t,n){var r,o;const s=We({props:t,name:"MuiCheckbox"}),{checkedIcon:i=fse,color:l="primary",icon:a=pse,indeterminate:c=!1,indeterminateIcon:f=hse,inputProps:p,size:h="medium",className:y}=s,v=le(s,cse),m=c?f:a,C=c?f:i,w=S({},s,{color:l,indeterminate:c,size:h}),b=use(w);return D.jsx(dse,S({type:"checkbox",inputProps:S({"data-indeterminate":c},p),icon:u.cloneElement(m,{fontSize:(r=m.props.fontSize)!=null?r:h}),checkedIcon:u.cloneElement(C,{fontSize:(o=C.props.fontSize)!=null?o:h}),ownerState:w,ref:n,className:be(b.root,y)},v,{classes:b}))}),F4=mse;function gse(e){return Ge("MuiCircularProgress",e)}Ue("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const vse=["className","color","disableShrink","size","style","thickness","value","variant"];let t0=e=>e,LR,FR,NR,BR;const Zl=44,yse=yi(LR||(LR=t0`
163
+ 0% {
164
+ transform: rotate(0deg);
165
+ }
166
+
167
+ 100% {
168
+ transform: rotate(360deg);
169
+ }
170
+ `)),bse=yi(FR||(FR=t0`
171
+ 0% {
172
+ stroke-dasharray: 1px, 200px;
173
+ stroke-dashoffset: 0;
174
+ }
175
+
176
+ 50% {
177
+ stroke-dasharray: 100px, 200px;
178
+ stroke-dashoffset: -15px;
179
+ }
180
+
181
+ 100% {
182
+ stroke-dasharray: 100px, 200px;
183
+ stroke-dashoffset: -125px;
184
+ }
185
+ `)),wse=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,s={root:["root",n,`color${Se(r)}`],svg:["svg"],circle:["circle",`circle${Se(n)}`,o&&"circleDisableShrink"]};return _e(s,gse,t)},Cse=se("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Se(n.color)}`]]}})(({ownerState:e,theme:t})=>S({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Ml(NR||(NR=t0`
186
+ animation: ${0} 1.4s linear infinite;
187
+ `),yse)),xse=se("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Sse=se("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Se(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>S({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Ml(BR||(BR=t0`
188
+ animation: ${0} 1.4s ease-in-out infinite;
189
+ `),bse)),Pse=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:i=!1,size:l=40,style:a,thickness:c=3.6,value:f=0,variant:p="indeterminate"}=r,h=le(r,vse),y=S({},r,{color:s,disableShrink:i,size:l,thickness:c,value:f,variant:p}),v=wse(y),m={},C={},w={};if(p==="determinate"){const b=2*Math.PI*((Zl-c)/2);m.strokeDasharray=b.toFixed(3),w["aria-valuenow"]=Math.round(f),m.strokeDashoffset=`${((100-f)/100*b).toFixed(3)}px`,C.transform="rotate(-90deg)"}return D.jsx(Cse,S({className:be(v.root,o),style:S({width:l,height:l},C,a),ownerState:y,ref:n,role:"progressbar"},w,h,{children:D.jsx(xse,{className:v.svg,ownerState:y,viewBox:`${Zl/2} ${Zl/2} ${Zl} ${Zl}`,children:D.jsx(Sse,{className:v.circle,style:m,ownerState:y,cx:Zl,cy:Zl,r:(Zl-c)/2,fill:"none",strokeWidth:c})})}))}),Gi=Pse;function Ese(e){return Ge("MuiModal",e)}Ue("MuiModal",["root","hidden","backdrop"]);const kse=["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"],Ise=e=>{const{open:t,exited:n,classes:r}=e;return _e({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Ese,r)},Mse=se("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})=>S({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),_se=se(R4,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Tse=u.forwardRef(function(t,n){var r,o,s,i,l,a;const c=We({name:"MuiModal",props:t}),{BackdropComponent:f=_se,BackdropProps:p,className:h,closeAfterTransition:y=!1,children:v,container:m,component:C,components:w={},componentsProps:b={},disableAutoFocus:x=!1,disableEnforceFocus:P=!1,disableEscapeKeyDown:k=!1,disablePortal:E=!1,disableRestoreFocus:I=!1,disableScrollLock:R=!1,hideBackdrop:O=!1,keepMounted:$=!1,onBackdropClick:L,open:j,slotProps:N,slots:_}=c,T=le(c,kse),B=S({},c,{closeAfterTransition:y,disableAutoFocus:x,disableEnforceFocus:P,disableEscapeKeyDown:k,disablePortal:E,disableRestoreFocus:I,disableScrollLock:R,hideBackdrop:O,keepMounted:$}),{getRootProps:V,getBackdropProps:A,getTransitionProps:F,portalRef:H,isTopModal:K,exited:Y,hasTransition:J}=Vte(S({},B,{rootRef:n})),Q=S({},B,{exited:Y}),X=Ise(Q),ee={};if(v.props.tabIndex===void 0&&(ee.tabIndex="-1"),J){const{onEnter:ce,onExited:Ce}=F();ee.onEnter=ce,ee.onExited=Ce}const oe=(r=(o=_==null?void 0:_.root)!=null?o:w.Root)!=null?r:Mse,Z=(s=(i=_==null?void 0:_.backdrop)!=null?i:w.Backdrop)!=null?s:f,pe=(l=N==null?void 0:N.root)!=null?l:b.root,ne=(a=N==null?void 0:N.backdrop)!=null?a:b.backdrop,re=ns({elementType:oe,externalSlotProps:pe,externalForwardedProps:T,getSlotProps:V,additionalProps:{ref:n,as:C},ownerState:Q,className:be(h,pe==null?void 0:pe.className,X==null?void 0:X.root,!Q.open&&Q.exited&&(X==null?void 0:X.hidden))}),me=ns({elementType:Z,externalSlotProps:ne,additionalProps:p,getSlotProps:ce=>A(S({},ce,{onClick:Ce=>{L&&L(Ce),ce!=null&&ce.onClick&&ce.onClick(Ce)}})),className:be(ne==null?void 0:ne.className,p==null?void 0:p.className,X==null?void 0:X.backdrop),ownerState:Q});return!$&&!j&&(!J||Y)?null:D.jsx(g4,{ref:H,container:m,disablePortal:E,children:D.jsxs(oe,S({},re,{children:[!O&&f?D.jsx(Z,S({},me)):null,D.jsx(M2,{disableEnforceFocus:P,disableAutoFocus:x,disableRestoreFocus:I,isEnabled:K,open:j,children:u.cloneElement(v,ee)})]}))})}),n0=Tse;function $se(e){return Ge("MuiDialog",e)}const Rse=Ue("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Fp=Rse,Ose=u.createContext({}),N4=Ose,Dse=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Ase=se(R4,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Lse=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,i={root:["root"],container:["container",`scroll${Se(n)}`],paper:["paper",`paperScroll${Se(n)}`,`paperWidth${Se(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return _e(i,$se,t)},Fse=se(n0,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Nse=se("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Se(n.scroll)}`]]}})(({ownerState:e})=>S({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"}})),Bse=se(Ws,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Se(n.scroll)}`],t[`paperWidth${Se(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>S({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)`,[`&.${Fp.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}`,[`&.${Fp.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,[`&.${Fp.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),jse=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiDialog"}),o=Fn(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":l,BackdropComponent:a,BackdropProps:c,children:f,className:p,disableEscapeKeyDown:h=!1,fullScreen:y=!1,fullWidth:v=!1,maxWidth:m="sm",onBackdropClick:C,onClose:w,open:b,PaperComponent:x=Ws,PaperProps:P={},scroll:k="paper",TransitionComponent:E=tf,transitionDuration:I=s,TransitionProps:R}=r,O=le(r,Dse),$=S({},r,{disableEscapeKeyDown:h,fullScreen:y,fullWidth:v,maxWidth:m,scroll:k}),L=Lse($),j=u.useRef(),N=V=>{j.current=V.target===V.currentTarget},_=V=>{j.current&&(j.current=null,C&&C(V),w&&w(V,"backdropClick"))},T=Yt(l),B=u.useMemo(()=>({titleId:T}),[T]);return D.jsx(Fse,S({className:be(L.root,p),closeAfterTransition:!0,components:{Backdrop:Ase},componentsProps:{backdrop:S({transitionDuration:I,as:a},c)},disableEscapeKeyDown:h,onClose:w,open:b,ref:n,onClick:_,ownerState:$},O,{children:D.jsx(E,S({appear:!0,in:b,timeout:I,role:"presentation"},R,{children:D.jsx(Nse,{className:be(L.container),onMouseDown:N,ownerState:$,children:D.jsx(Bse,S({as:x,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":T},P,{className:be(L.paper,P.className),ownerState:$,children:D.jsx(N4.Provider,{value:B,children:f})}))})}))}))}),B4=jse;function zse(e){return Ge("MuiDialogActions",e)}Ue("MuiDialogActions",["root","spacing"]);const Vse=["className","disableSpacing"],Hse=e=>{const{classes:t,disableSpacing:n}=e;return _e({root:["root",!n&&"spacing"]},zse,t)},Use=se("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>S({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Wse=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1}=r,i=le(r,Vse),l=S({},r,{disableSpacing:s}),a=Hse(l);return D.jsx(Use,S({className:be(a.root,o),ownerState:l,ref:n},i))}),Gse=Wse;function Kse(e){return Ge("MuiDialogContent",e)}Ue("MuiDialogContent",["root","dividers"]);function qse(e){return Ge("MuiDialogTitle",e)}const Yse=Ue("MuiDialogTitle",["root"]),Qse=Yse,Xse=["className","dividers"],Zse=e=>{const{classes:t,dividers:n}=e;return _e({root:["root",n&&"dividers"]},Kse,t)},Jse=se("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>S({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}`}:{[`.${Qse.root} + &`]:{paddingTop:0}})),eie=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1}=r,i=le(r,Xse),l=S({},r,{dividers:s}),a=Zse(l);return D.jsx(Jse,S({className:be(a.root,o),ownerState:l,ref:n},i))}),j4=eie,tie=["className","id"],nie=e=>{const{classes:t}=e;return _e({root:["root"]},qse,t)},rie=se(qn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),oie=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiDialogTitle"}),{className:o,id:s}=r,i=le(r,tie),l=r,a=nie(l),{titleId:c=s}=u.useContext(N4);return D.jsx(rie,S({component:"h2",className:be(a.root,o),ownerState:l,ref:n,variant:"h6",id:s!=null?s:c},i))}),sie=oie;function iie(e){return Ge("MuiDivider",e)}const lie=Ue("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),jR=lie,aie=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],cie=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:s,orientation:i,textAlign:l,variant:a}=e;return _e({root:["root",t&&"absolute",a,s&&"light",i==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&i==="vertical"&&"withChildrenVertical",l==="right"&&i!=="vertical"&&"textAlignRight",l==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},iie,r)},uie=se("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>S({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:$t(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>S({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>S({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),die=se("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>S({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),z4=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiDivider"}),{absolute:o=!1,children:s,className:i,component:l=s?"div":"hr",flexItem:a=!1,light:c=!1,orientation:f="horizontal",role:p=l!=="hr"?"separator":void 0,textAlign:h="center",variant:y="fullWidth"}=r,v=le(r,aie),m=S({},r,{absolute:o,component:l,flexItem:a,light:c,orientation:f,role:p,textAlign:h,variant:y}),C=cie(m);return D.jsx(uie,S({as:l,className:be(C.root,i),role:p,ref:n,ownerState:m},v,{children:s?D.jsx(die,{className:C.wrapper,ownerState:m,children:s}):null}))});z4.muiSkipListHighlight=!0;const bh=z4,fie=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function pie(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),s=ts(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const c=s.getComputedStyle(t);i=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let l=0,a=0;if(i&&i!=="none"&&typeof i=="string"){const c=i.split("(")[1].split(")")[0].split(",");l=parseInt(c[4],10),a=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+l-r.left}px)`:`translateX(${s.innerWidth+l-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-l}px)`:`translateX(-${r.left+r.width-l}px)`:e==="up"?o?`translateY(${o.bottom+a-r.top}px)`:`translateY(${s.innerHeight+a-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-a}px)`:`translateY(-${r.top+r.height-a}px)`}function hie(e){return typeof e=="function"?e():e}function Ag(e,t,n){const r=hie(n),o=pie(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const mie=u.forwardRef(function(t,n){const r=Fn(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:l=!0,children:a,container:c,direction:f="down",easing:p=o,in:h,onEnter:y,onEntered:v,onEntering:m,onExit:C,onExited:w,onExiting:b,style:x,timeout:P=s,TransitionComponent:k=Zh}=t,E=le(t,fie),I=u.useRef(null),R=Et(a.ref,I,n),O=A=>F=>{A&&(F===void 0?A(I.current):A(I.current,F))},$=O((A,F)=>{Ag(f,A,c),I2(A),y&&y(A,F)}),L=O((A,F)=>{const H=Da({timeout:P,style:x,easing:p},{mode:"enter"});A.style.webkitTransition=r.transitions.create("-webkit-transform",S({},H)),A.style.transition=r.transitions.create("transform",S({},H)),A.style.webkitTransform="none",A.style.transform="none",m&&m(A,F)}),j=O(v),N=O(b),_=O(A=>{const F=Da({timeout:P,style:x,easing:p},{mode:"exit"});A.style.webkitTransition=r.transitions.create("-webkit-transform",F),A.style.transition=r.transitions.create("transform",F),Ag(f,A,c),C&&C(A)}),T=O(A=>{A.style.webkitTransition="",A.style.transition="",w&&w(A)}),B=A=>{i&&i(I.current,A)},V=u.useCallback(()=>{I.current&&Ag(f,I.current,c)},[f,c]);return u.useEffect(()=>{if(h||f==="down"||f==="right")return;const A=Va(()=>{I.current&&Ag(f,I.current,c)}),F=ts(I.current);return F.addEventListener("resize",A),()=>{A.clear(),F.removeEventListener("resize",A)}},[f,h,c]),u.useEffect(()=>{h||V()},[h,V]),D.jsx(k,S({nodeRef:I,onEnter:$,onEntered:j,onEntering:L,onExit:_,onExited:T,onExiting:N,addEndListener:B,appear:l,in:h,timeout:P},E,{children:(A,F)=>u.cloneElement(a,S({ref:R,style:S({visibility:A==="exited"&&!h?"hidden":void 0},x,a.props.style)},F))}))}),gie=mie;function vie(e){return Ge("MuiDrawer",e)}Ue("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const yie=["BackdropProps"],bie=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],V4=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},wie=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Se(n)}`,r!=="temporary"&&`paperAnchorDocked${Se(n)}`]};return _e(o,vie,t)},Cie=se(n0,{name:"MuiDrawer",slot:"Root",overridesResolver:V4})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),zR=se("div",{shouldForwardProp:Qr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:V4})({flex:"0 0 auto"}),xie=se(Ws,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Se(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Se(n.anchor)}`]]}})(({theme:e,ownerState:t})=>S({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),H4={left:"right",right:"left",top:"down",bottom:"up"};function Sie(e){return["left","right"].indexOf(e)!==-1}function Pie({direction:e},t){return e==="rtl"&&Sie(t)?H4[t]:t}const Eie=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiDrawer"}),o=Fn(),s=Gc(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:l="left",BackdropProps:a,children:c,className:f,elevation:p=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:y}={},onClose:v,open:m=!1,PaperProps:C={},SlideProps:w,TransitionComponent:b=gie,transitionDuration:x=i,variant:P="temporary"}=r,k=le(r.ModalProps,yie),E=le(r,bie),I=u.useRef(!1);u.useEffect(()=>{I.current=!0},[]);const R=Pie({direction:s?"rtl":"ltr"},l),$=S({},r,{anchor:l,elevation:p,open:m,variant:P},E),L=wie($),j=D.jsx(xie,S({elevation:P==="temporary"?p:0,square:!0},C,{className:be(L.paper,C.className),ownerState:$,children:c}));if(P==="permanent")return D.jsx(zR,S({className:be(L.root,L.docked,f),ownerState:$,ref:n},E,{children:j}));const N=D.jsx(b,S({in:m,direction:H4[R],timeout:x,appear:I.current},w,{children:j}));return P==="persistent"?D.jsx(zR,S({className:be(L.root,L.docked,f),ownerState:$,ref:n},E,{children:N})):D.jsx(Cie,S({BackdropProps:S({},a,y,{transitionDuration:x}),className:be(L.root,L.modal,f),open:m,ownerState:$,onClose:v,hideBackdrop:h,ref:n},E,k,{children:N}))}),kie=Eie,Iie=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Mie=e=>{const{classes:t,disableUnderline:n}=e,o=_e({root:["root",!n&&"underline"],input:["input"]},Wre,t);return S({},t,o)},_ie=se(X1,{shouldForwardProp:e=>Qr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Y1(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)",s=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return S({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s,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:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s}},[`&.${Go.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s},[`&.${Go.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!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"},[`&.${Go.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Go.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(.${Go.disabled}, .${Go.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Go.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&S({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}))}),Tie=se(Z1,{name:"MuiFilledInput",slot:"Input",overridesResolver:Q1})(({theme:e,ownerState:t})=>S({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})),U4=u.forwardRef(function(t,n){var r,o,s,i;const l=We({props:t,name:"MuiFilledInput"}),{components:a={},componentsProps:c,fullWidth:f=!1,inputComponent:p="input",multiline:h=!1,slotProps:y,slots:v={},type:m="text"}=l,C=le(l,Iie),w=S({},l,{fullWidth:f,inputComponent:p,multiline:h,type:m}),b=Mie(l),x={root:{ownerState:w},input:{ownerState:w}},P=(y!=null?y:c)?co(x,y!=null?y:c):x,k=(r=(o=v.root)!=null?o:a.Root)!=null?r:_ie,E=(s=(i=v.input)!=null?i:a.Input)!=null?s:Tie;return D.jsx(ef,S({slots:{root:k,input:E},componentsProps:P,fullWidth:f,inputComponent:p,multiline:h,ref:n,type:m},C,{classes:b}))});U4.muiName="Input";const W4=U4;function $ie(e){return Ge("MuiFormControl",e)}Ue("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Rie=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Oie=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Se(n)}`,r&&"fullWidth"]};return _e(o,$ie,t)},Die=se("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,t[`margin${Se(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>S({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%"})),Aie=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiFormControl"}),{children:o,className:s,color:i="primary",component:l="div",disabled:a=!1,error:c=!1,focused:f,fullWidth:p=!1,hiddenLabel:h=!1,margin:y="none",required:v=!1,size:m="medium",variant:C="outlined"}=r,w=le(r,Rie),b=S({},r,{color:i,component:l,disabled:a,error:c,fullWidth:p,hiddenLabel:h,margin:y,required:v,size:m,variant:C}),x=Oie(b),[P,k]=u.useState(()=>{let N=!1;return o&&u.Children.forEach(o,_=>{if(!Op(_,["Input","Select"]))return;const T=Op(_,["Select"])?_.props.input:_;T&&Dre(T.props)&&(N=!0)}),N}),[E,I]=u.useState(()=>{let N=!1;return o&&u.Children.forEach(o,_=>{Op(_,["Input","Select"])&&(cy(_.props,!0)||cy(_.props.inputProps,!0))&&(N=!0)}),N}),[R,O]=u.useState(!1);a&&R&&O(!1);const $=f!==void 0&&!a?f:R;let L;const j=u.useMemo(()=>({adornedStart:P,setAdornedStart:k,color:i,disabled:a,error:c,filled:E,focused:$,fullWidth:p,hiddenLabel:h,size:m,onBlur:()=>{O(!1)},onEmpty:()=>{I(!1)},onFilled:()=>{I(!0)},onFocus:()=>{O(!0)},registerEffect:L,required:v,variant:C}),[P,i,a,c,E,$,p,h,L,v,m,C]);return D.jsx(q1.Provider,{value:j,children:D.jsx(Die,S({as:l,ownerState:b,className:be(x.root,s),ref:n},w,{children:o}))})}),G4=Aie,Lie=OZ({createStyledComponent:se("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>We({props:e,name:"MuiStack"})}),Fie=Lie;function Nie(e){return Ge("MuiFormControlLabel",e)}const Bie=Ue("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),pp=Bie,jie=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],zie=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:s}=e,i={root:["root",n&&"disabled",`labelPlacement${Se(r)}`,o&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return _e(i,Nie,t)},Vie=se("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${pp.label}`]:t.label},t.root,t[`labelPlacement${Se(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${pp.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},{[`& .${pp.label}`]:{[`&.${pp.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),Hie=se("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${pp.error}`]:{color:(e.vars||e).palette.error.main}})),Uie=u.forwardRef(function(t,n){var r,o;const s=We({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:l={},control:a,disabled:c,disableTypography:f,label:p,labelPlacement:h="end",required:y,slotProps:v={}}=s,m=le(s,jie),C=Fl(),w=(r=c!=null?c:a.props.disabled)!=null?r:C==null?void 0:C.disabled,b=y!=null?y:a.props.required,x={disabled:w,required:b};["checked","name","onChange","value","inputRef"].forEach(O=>{typeof a.props[O]=="undefined"&&typeof s[O]!="undefined"&&(x[O]=s[O])});const P=Kc({props:s,muiFormControl:C,states:["error"]}),k=S({},s,{disabled:w,labelPlacement:h,required:b,error:P.error}),E=zie(k),I=(o=v.typography)!=null?o:l.typography;let R=p;return R!=null&&R.type!==qn&&!f&&(R=D.jsx(qn,S({component:"span"},I,{className:be(E.label,I==null?void 0:I.className),children:R}))),D.jsxs(Vie,S({className:be(E.root,i),ownerState:k,ref:n},m,{children:[u.cloneElement(a,x),b?D.jsxs(Fie,{display:"block",children:[R,D.jsxs(Hie,{ownerState:k,"aria-hidden":!0,className:E.asterisk,children:[" ","*"]})]}):R]}))}),K4=Uie;function Wie(e){return Ge("MuiFormHelperText",e)}const Gie=Ue("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),VR=Gie;var HR;const Kie=["children","className","component","disabled","error","filled","focused","margin","required","variant"],qie=e=>{const{classes:t,contained:n,size:r,disabled:o,error:s,filled:i,focused:l,required:a}=e,c={root:["root",o&&"disabled",s&&"error",r&&`size${Se(r)}`,n&&"contained",l&&"focused",i&&"filled",a&&"required"]};return _e(c,Wie,t)},Yie=se("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Se(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${VR.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${VR.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Qie=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:i="p"}=r,l=le(r,Kie),a=Fl(),c=Kc({props:r,muiFormControl:a,states:["variant","size","disabled","error","filled","focused","required"]}),f=S({},r,{component:i,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}),p=qie(f);return D.jsx(Yie,S({as:i,ownerState:f,className:be(p.root,s),ref:n},l,{children:o===" "?HR||(HR=D.jsx("span",{className:"notranslate",children:"​"})):o}))}),nf=Qie;function Xie(e){return Ge("MuiFormLabel",e)}const Zie=Ue("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Np=Zie,Jie=["children","className","color","component","disabled","error","filled","focused","required"],ele=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:i,required:l}=e,a={root:["root",`color${Se(n)}`,o&&"disabled",s&&"error",i&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",s&&"error"]};return _e(a,Xie,t)},tle=se("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Np.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Np.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Np.error}`]:{color:(e.vars||e).palette.error.main}})),nle=se("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Np.error}`]:{color:(e.vars||e).palette.error.main}})),rle=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiFormLabel"}),{children:o,className:s,component:i="label"}=r,l=le(r,Jie),a=Fl(),c=Kc({props:r,muiFormControl:a,states:["color","required","focused","disabled","error","filled"]}),f=S({},r,{color:c.color||"primary",component:i,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),p=ele(f);return D.jsxs(tle,S({as:i,ownerState:f,className:be(p.root,s),ref:n},l,{children:[o,c.required&&D.jsxs(nle,{ownerState:f,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}))}),q4=rle,ole=u.createContext(),UR=ole;function sle(e){return Ge("MuiGrid",e)}const ile=[0,1,2,3,4,5,6,7,8,9,10],lle=["column-reverse","column","row-reverse","row"],ale=["nowrap","wrap-reverse","wrap"],Yf=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],wh=Ue("MuiGrid",["root","container","item","zeroMinWidth",...ile.map(e=>`spacing-xs-${e}`),...lle.map(e=>`direction-xs-${e}`),...ale.map(e=>`wrap-xs-${e}`),...Yf.map(e=>`grid-xs-${e}`),...Yf.map(e=>`grid-sm-${e}`),...Yf.map(e=>`grid-md-${e}`),...Yf.map(e=>`grid-lg-${e}`),...Yf.map(e=>`grid-xl-${e}`)]),cle=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function ud(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function ule({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let s={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)s={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=xc({values:t.columns,breakpoints:e.breakpoints.values}),l=typeof i=="object"?i[o]:i;if(l==null)return r;const a=`${Math.round(n/l*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const f=e.spacing(t.columnSpacing);if(f!=="0px"){const p=`calc(${a} + ${ud(f)})`;c={flexBasis:p,maxWidth:p}}}s=S({flexBasis:a,flexGrow:0,maxWidth:a},c)}return e.breakpoints.values[o]===0?Object.assign(r,s):r[e.breakpoints.up(o)]=s,r},{})}function dle({theme:e,ownerState:t}){const n=xc({values:t.direction,breakpoints:e.breakpoints.values});return Do({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${wh.item}`]={maxWidth:"none"}),o})}function Y4({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,s)=>e[o]-e[s]);return r.slice(0,r.indexOf(n))}function fle({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const s=xc({values:r,breakpoints:e.breakpoints.values});let i;typeof s=="object"&&(i=Y4({breakpoints:e.breakpoints.values,values:s})),o=Do({theme:e},s,(l,a)=>{var c;const f=e.spacing(l);return f!=="0px"?{marginTop:`-${ud(f)}`,[`& > .${wh.item}`]:{paddingTop:ud(f)}}:(c=i)!=null&&c.includes(a)?{}:{marginTop:0,[`& > .${wh.item}`]:{paddingTop:0}}})}return o}function ple({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const s=xc({values:r,breakpoints:e.breakpoints.values});let i;typeof s=="object"&&(i=Y4({breakpoints:e.breakpoints.values,values:s})),o=Do({theme:e},s,(l,a)=>{var c;const f=e.spacing(l);return f!=="0px"?{width:`calc(100% + ${ud(f)})`,marginLeft:`-${ud(f)}`,[`& > .${wh.item}`]:{paddingLeft:ud(f)}}:(c=i)!=null&&c.includes(a)?{}:{width:"100%",marginLeft:0,[`& > .${wh.item}`]:{paddingLeft:0}}})}return o}function hle(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const s=e[o];Number(s)>0&&r.push(n[`spacing-${o}-${String(s)}`])}),r}const mle=se("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:s,spacing:i,wrap:l,zeroMinWidth:a,breakpoints:c}=n;let f=[];r&&(f=hle(i,c,t));const p=[];return c.forEach(h=>{const y=n[h];y&&p.push(t[`grid-${h}-${String(y)}`])}),[t.root,r&&t.container,s&&t.item,a&&t.zeroMinWidth,...f,o!=="row"&&t[`direction-xs-${String(o)}`],l!=="wrap"&&t[`wrap-xs-${String(l)}`],...p]}})(({ownerState:e})=>S({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),dle,fle,ple,ule);function gle(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const s=`spacing-${r}-${String(o)}`;n.push(s)}}),n}const vle=e=>{const{classes:t,container:n,direction:r,item:o,spacing:s,wrap:i,zeroMinWidth:l,breakpoints:a}=e;let c=[];n&&(c=gle(s,a));const f=[];a.forEach(h=>{const y=e[h];y&&f.push(`grid-${h}-${String(y)}`)});const p={root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...c,r!=="row"&&`direction-xs-${String(r)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...f]};return _e(p,sle,t)},yle=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiGrid"}),{breakpoints:o}=Fn(),s=Qh(r),{className:i,columns:l,columnSpacing:a,component:c="div",container:f=!1,direction:p="row",item:h=!1,rowSpacing:y,spacing:v=0,wrap:m="wrap",zeroMinWidth:C=!1}=s,w=le(s,cle),b=y||v,x=a||v,P=u.useContext(UR),k=f?l||12:P,E={},I=S({},w);o.keys.forEach($=>{w[$]!=null&&(E[$]=w[$],delete I[$])});const R=S({},s,{columns:k,container:f,direction:p,item:h,rowSpacing:b,columnSpacing:x,wrap:m,zeroMinWidth:C,spacing:v},E,{breakpoints:o.keys}),O=vle(R);return D.jsx(UR.Provider,{value:k,children:D.jsx(mle,S({ownerState:R,className:be(O.root,i),as:c,ref:n},I))})}),ai=yle,ble=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function iS(e){return`scale(${e}, ${no(e,2)})`}const wle={entering:{opacity:1,transform:iS(1)},entered:{opacity:1,transform:"none"}},sC=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Q4=u.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:i,in:l,onEnter:a,onEntered:c,onEntering:f,onExit:p,onExited:h,onExiting:y,style:v,timeout:m="auto",TransitionComponent:C=Zh}=t,w=le(t,ble),b=gc(),x=u.useRef(),P=Fn(),k=u.useRef(null),E=Et(k,s.ref,n),I=T=>B=>{if(T){const V=k.current;B===void 0?T(V):T(V,B)}},R=I(f),O=I((T,B)=>{I2(T);const{duration:V,delay:A,easing:F}=Da({style:v,timeout:m,easing:i},{mode:"enter"});let H;m==="auto"?(H=P.transitions.getAutoHeightDuration(T.clientHeight),x.current=H):H=V,T.style.transition=[P.transitions.create("opacity",{duration:H,delay:A}),P.transitions.create("transform",{duration:sC?H:H*.666,delay:A,easing:F})].join(","),a&&a(T,B)}),$=I(c),L=I(y),j=I(T=>{const{duration:B,delay:V,easing:A}=Da({style:v,timeout:m,easing:i},{mode:"exit"});let F;m==="auto"?(F=P.transitions.getAutoHeightDuration(T.clientHeight),x.current=F):F=B,T.style.transition=[P.transitions.create("opacity",{duration:F,delay:V}),P.transitions.create("transform",{duration:sC?F:F*.666,delay:sC?V:V||F*.333,easing:A})].join(","),T.style.opacity=0,T.style.transform=iS(.75),p&&p(T)}),N=I(h),_=T=>{m==="auto"&&b.start(x.current||0,T),r&&r(k.current,T)};return D.jsx(C,S({appear:o,in:l,nodeRef:k,onEnter:O,onEntered:$,onEntering:R,onExit:j,onExited:N,onExiting:L,addEndListener:_,timeout:m==="auto"?null:m},w,{children:(T,B)=>u.cloneElement(s,S({style:S({opacity:0,transform:iS(.75),visibility:T==="exited"&&!l?"hidden":void 0},wle[T],v,s.props.style),ref:E},B))}))});Q4.muiSupportAuto=!0;const Ch=Q4,Cle=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],xle=e=>{const{classes:t,disableUnderline:n}=e,o=_e({root:["root",!n&&"underline"],input:["input"]},zre,t);return S({},t,o)},Sle=se(X1,{shouldForwardProp:e=>Qr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Y1(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})`),S({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"},[`&.${fa.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${fa.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(.${fa.disabled}, .${fa.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${fa.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Ple=se(Z1,{name:"MuiInput",slot:"Input",overridesResolver:Q1})({}),X4=u.forwardRef(function(t,n){var r,o,s,i;const l=We({props:t,name:"MuiInput"}),{disableUnderline:a,components:c={},componentsProps:f,fullWidth:p=!1,inputComponent:h="input",multiline:y=!1,slotProps:v,slots:m={},type:C="text"}=l,w=le(l,Cle),b=xle(l),P={root:{ownerState:{disableUnderline:a}}},k=(v!=null?v:f)?co(v!=null?v:f,P):P,E=(r=(o=m.root)!=null?o:c.Root)!=null?r:Sle,I=(s=(i=m.input)!=null?i:c.Input)!=null?s:Ple;return D.jsx(ef,S({slots:{root:E,input:I},slotProps:k,fullWidth:p,inputComponent:h,multiline:y,ref:n,type:C},w,{classes:b}))});X4.muiName="Input";const Z4=X4;function Ele(e){return Ge("MuiInputAdornment",e)}const kle=Ue("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),WR=kle;var GR;const Ile=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Mle=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Se(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},_le=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:s,variant:i}=e,l={root:["root",n&&"disablePointerEvents",o&&`position${Se(o)}`,i,r&&"hiddenLabel",s&&`size${Se(s)}`]};return _e(l,Ele,t)},Tle=se("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Mle})(({theme:e,ownerState:t})=>S({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${WR.positionStart}&:not(.${WR.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),$le=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiInputAdornment"}),{children:o,className:s,component:i="div",disablePointerEvents:l=!1,disableTypography:a=!1,position:c,variant:f}=r,p=le(r,Ile),h=Fl()||{};let y=f;f&&h.variant,h&&!y&&(y=h.variant);const v=S({},r,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:l,position:c,variant:y}),m=_le(v);return D.jsx(q1.Provider,{value:null,children:D.jsx(Tle,S({as:i,ownerState:v,className:be(m.root,s),ref:n},p,{children:typeof o=="string"&&!a?D.jsx(qn,{color:"text.secondary",children:o}):D.jsxs(u.Fragment,{children:[c==="start"?GR||(GR=D.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),Tl=$le;function Rle(e){return Ge("MuiInputLabel",e)}Ue("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Ole=["disableAnimation","margin","shrink","variant","className"],Dle=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:s,variant:i,required:l}=e,a={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",r&&r!=="normal"&&`size${Se(r)}`,i],asterisk:[l&&"asterisk"]},c=_e(a,Rle,t);return S({},t,c)},Ale=se(q4,{shouldForwardProp:e=>Qr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Np.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})=>S({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"&&S({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&&S({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"&&S({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)"}))),Lle=u.forwardRef(function(t,n){const r=We({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:s,className:i}=r,l=le(r,Ole),a=Fl();let c=s;typeof c=="undefined"&&a&&(c=a.filled||a.focused||a.adornedStart);const f=Kc({props:r,muiFormControl:a,states:["size","variant","required","focused"]}),p=S({},r,{disableAnimation:o,formControl:a,shrink:c,size:f.size,variant:f.variant,required:f.required,focused:f.focused}),h=Dle(p);return D.jsx(Ale,S({"data-shrink":c,ownerState:p,ref:n,className:be(h.root,i)},l,{classes:h}))}),J4=Lle;function Fle(e){return Ge("MuiLinearProgress",e)}Ue("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Nle=["className","color","value","valueBuffer","variant"];let rf=e=>e,KR,qR,YR,QR,XR,ZR;const lS=4,Ble=yi(KR||(KR=rf`
190
+ 0% {
191
+ left: -35%;
192
+ right: 100%;
193
+ }
194
+
195
+ 60% {
196
+ left: 100%;
197
+ right: -90%;
198
+ }
199
+
200
+ 100% {
201
+ left: 100%;
202
+ right: -90%;
203
+ }
204
+ `)),jle=yi(qR||(qR=rf`
205
+ 0% {
206
+ left: -200%;
207
+ right: 100%;
208
+ }
209
+
210
+ 60% {
211
+ left: 107%;
212
+ right: -8%;
213
+ }
214
+
215
+ 100% {
216
+ left: 107%;
217
+ right: -8%;
218
+ }
219
+ `)),zle=yi(YR||(YR=rf`
220
+ 0% {
221
+ opacity: 1;
222
+ background-position: 0 -23px;
223
+ }
224
+
225
+ 60% {
226
+ opacity: 0;
227
+ background-position: 0 -23px;
228
+ }
229
+
230
+ 100% {
231
+ opacity: 1;
232
+ background-position: -200px -23px;
233
+ }
234
+ `)),Vle=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${Se(r)}`,n],dashed:["dashed",`dashedColor${Se(r)}`],bar1:["bar",`barColor${Se(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${Se(r)}`,n==="buffer"&&`color${Se(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return _e(o,Fle,t)},F2=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?_d(e.palette[t].main,.62):Md(e.palette[t].main,.5),Hle=se("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Se(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>S({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:F2(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),Ule=se("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${Se(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=F2(t,e.color);return S({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},Ml(QR||(QR=rf`
235
+ animation: ${0} 3s infinite linear;
236
+ `),zle)),Wle=se("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Se(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>S({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${lS}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${lS}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Ml(XR||(XR=rf`
237
+ width: auto;
238
+ animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
239
+ `),Ble)),Gle=se("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Se(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>S({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:F2(t,e.color),transition:`transform .${lS}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Ml(ZR||(ZR=rf`
240
+ width: auto;
241
+ animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
242
+ `),jle)),Kle=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiLinearProgress"}),{className:o,color:s="primary",value:i,valueBuffer:l,variant:a="indeterminate"}=r,c=le(r,Nle),f=S({},r,{color:s,variant:a}),p=Vle(f),h=Gc(),y={},v={bar1:{},bar2:{}};if((a==="determinate"||a==="buffer")&&i!==void 0){y["aria-valuenow"]=Math.round(i),y["aria-valuemin"]=0,y["aria-valuemax"]=100;let m=i-100;h&&(m=-m),v.bar1.transform=`translateX(${m}%)`}if(a==="buffer"&&l!==void 0){let m=(l||0)-100;h&&(m=-m),v.bar2.transform=`translateX(${m}%)`}return D.jsxs(Hle,S({className:be(p.root,o),ownerState:f,role:"progressbar"},y,{ref:n},c,{children:[a==="buffer"?D.jsx(Ule,{className:p.dashed,ownerState:f}):null,D.jsx(Wle,{className:p.bar1,ownerState:f,style:v.bar1}),a==="determinate"?null:D.jsx(Gle,{className:p.bar2,ownerState:f,style:v.bar2})]}))}),uy=Kle;function qle(e){return Ge("MuiLink",e)}const Yle=Ue("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Qle=Yle,e5={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Xle=e=>e5[e]||e,Zle=({theme:e,ownerState:t})=>{const n=Xle(t.color),r=Id(e,`palette.${n}`,!1)||t.color,o=Id(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:$t(r,.4)},Jle=Zle,eae=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],tae=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,s={root:["root",`underline${Se(o)}`,n==="button"&&"button",r&&"focusVisible"]};return _e(s,qle,t)},nae=se(qn,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Se(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>S({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&S({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:Jle({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"},[`&.${Qle.focusVisible}`]:{outline:"auto"}})),rae=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiLink"}),{className:o,color:s="primary",component:i="a",onBlur:l,onFocus:a,TypographyClasses:c,underline:f="always",variant:p="inherit",sx:h}=r,y=le(r,eae),{isFocusVisibleRef:v,onBlur:m,onFocus:C,ref:w}=V1(),[b,x]=u.useState(!1),P=Et(n,w),k=O=>{m(O),v.current===!1&&x(!1),l&&l(O)},E=O=>{C(O),v.current===!0&&x(!0),a&&a(O)},I=S({},r,{color:s,component:i,focusVisible:b,underline:f,variant:p}),R=tae(I);return D.jsx(nae,S({color:s,className:be(R.root,o),classes:c,component:i,onBlur:k,onFocus:E,ref:P,ownerState:I,variant:p,sx:[...Object.keys(e5).includes(s)?[]:[{color:s}],...Array.isArray(h)?h:[h]]},y))}),os=rae,oae=u.createContext({}),fi=oae;function sae(e){return Ge("MuiList",e)}Ue("MuiList",["root","padding","dense","subheader"]);const iae=["children","className","component","dense","disablePadding","subheader"],lae=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return _e({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},sae,t)},aae=se("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})=>S({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),cae=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiList"}),{children:o,className:s,component:i="ul",dense:l=!1,disablePadding:a=!1,subheader:c}=r,f=le(r,iae),p=u.useMemo(()=>({dense:l}),[l]),h=S({},r,{component:i,dense:l,disablePadding:a}),y=lae(h);return D.jsx(fi.Provider,{value:p,children:D.jsxs(aae,S({as:i,className:be(y.root,s),ref:n,ownerState:h},f,{children:[c,o]}))})}),rm=cae;function uae(e){return Ge("MuiListItem",e)}const dae=Ue("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),$u=dae;function fae(e){return Ge("MuiListItemButton",e)}const pae=Ue("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Ru=pae,hae=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],mae=(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]},gae=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:s,divider:i,selected:l}=e,c=_e({root:["root",r&&"dense",!s&&"gutters",i&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},fae,n);return S({},n,c)},vae=se(gi,{shouldForwardProp:e=>Qr(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:mae})(({theme:e,ownerState:t})=>S({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,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"}},[`&.${Ru.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$t(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ru.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:$t(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ru.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:$t(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})`:$t(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ru.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ru.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),yae=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:s=!1,component:i="div",children:l,dense:a=!1,disableGutters:c=!1,divider:f=!1,focusVisibleClassName:p,selected:h=!1,className:y}=r,v=le(r,hae),m=u.useContext(fi),C=u.useMemo(()=>({dense:a||m.dense||!1,alignItems:o,disableGutters:c}),[o,m.dense,a,c]),w=u.useRef(null);Ft(()=>{s&&w.current&&w.current.focus()},[s]);const b=S({},r,{alignItems:o,dense:C.dense,disableGutters:c,divider:f,selected:h}),x=gae(b),P=Et(w,n);return D.jsx(fi.Provider,{value:C,children:D.jsx(vae,S({ref:P,href:v.href||v.to,component:(v.href||v.to)&&i==="div"?"button":i,focusVisibleClassName:be(x.focusVisible,p),ownerState:b,className:be(x.root,y)},v,{classes:x,children:l}))})}),bae=yae;function wae(e){return Ge("MuiListItemSecondaryAction",e)}Ue("MuiListItemSecondaryAction",["root","disableGutters"]);const Cae=["className"],xae=e=>{const{disableGutters:t,classes:n}=e;return _e({root:["root",t&&"disableGutters"]},wae,n)},Sae=se("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>S({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),t5=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,s=le(r,Cae),i=u.useContext(fi),l=S({},r,{disableGutters:i.disableGutters}),a=xae(l);return D.jsx(Sae,S({className:be(a.root,o),ownerState:l,ref:n},s))});t5.muiName="ListItemSecondaryAction";const Pae=t5,Eae=["className"],kae=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Iae=(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]},Mae=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:s,disableGutters:i,disablePadding:l,divider:a,hasSecondaryAction:c,selected:f}=e;return _e({root:["root",o&&"dense",!i&&"gutters",!l&&"padding",a&&"divider",s&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",f&&"selected"],container:["container"]},uae,r)},_ae=se("div",{name:"MuiListItem",slot:"Root",overridesResolver:Iae})(({theme:e,ownerState:t})=>S({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&S({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Ru.root}`]:{paddingRight:48}},{[`&.${$u.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$u.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$t(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${$u.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:$t(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${$u.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"}},[`&.${$u.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:$t(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})`:$t(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Tae=se("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),$ae=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:s=!1,button:i=!1,children:l,className:a,component:c,components:f={},componentsProps:p={},ContainerComponent:h="li",ContainerProps:{className:y}={},dense:v=!1,disabled:m=!1,disableGutters:C=!1,disablePadding:w=!1,divider:b=!1,focusVisibleClassName:x,secondaryAction:P,selected:k=!1,slotProps:E={},slots:I={}}=r,R=le(r.ContainerProps,Eae),O=le(r,kae),$=u.useContext(fi),L=u.useMemo(()=>({dense:v||$.dense||!1,alignItems:o,disableGutters:C}),[o,$.dense,v,C]),j=u.useRef(null);Ft(()=>{s&&j.current&&j.current.focus()},[s]);const N=u.Children.toArray(l),_=N.length&&Op(N[N.length-1],["ListItemSecondaryAction"]),T=S({},r,{alignItems:o,autoFocus:s,button:i,dense:L.dense,disabled:m,disableGutters:C,disablePadding:w,divider:b,hasSecondaryAction:_,selected:k}),B=Mae(T),V=Et(j,n),A=I.root||f.Root||_ae,F=E.root||p.root||{},H=S({className:be(B.root,F.className,a),disabled:m},O);let K=c||"li";return i&&(H.component=c||"div",H.focusVisibleClassName=be($u.focusVisible,x),K=gi),_?(K=!H.component&&!c?"div":K,h==="li"&&(K==="li"?K="div":H.component==="li"&&(H.component="div")),D.jsx(fi.Provider,{value:L,children:D.jsxs(Tae,S({as:h,className:be(B.container,y),ref:V,ownerState:T},R,{children:[D.jsx(A,S({},F,!Lc(A)&&{as:K,ownerState:S({},T,F.ownerState)},H,{children:N})),N.pop()]}))})):D.jsx(fi.Provider,{value:L,children:D.jsxs(A,S({},F,{as:K,ref:V},!Lc(A)&&{ownerState:S({},T,F.ownerState)},H,{children:[N,P&&D.jsx(Pae,{children:P})]}))})}),N2=$ae;function Rae(e){return Ge("MuiListItemIcon",e)}const Oae=Ue("MuiListItemIcon",["root","alignItemsFlexStart"]),JR=Oae,Dae=["className"],Aae=e=>{const{alignItems:t,classes:n}=e;return _e({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Rae,n)},Lae=se("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>S({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Fae=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiListItemIcon"}),{className:o}=r,s=le(r,Dae),i=u.useContext(fi),l=S({},r,{alignItems:i.alignItems}),a=Aae(l);return D.jsx(Lae,S({className:be(a.root,o),ownerState:l,ref:n},s))}),Cl=Fae;function Nae(e){return Ge("MuiListItemText",e)}const Bae=Ue("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),dy=Bae,jae=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],zae=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:s}=e;return _e({root:["root",n&&"inset",s&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Nae,t)},Vae=se("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${dy.primary}`]:t.primary},{[`& .${dy.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>S({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Hae=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiListItemText"}),{children:o,className:s,disableTypography:i=!1,inset:l=!1,primary:a,primaryTypographyProps:c,secondary:f,secondaryTypographyProps:p}=r,h=le(r,jae),{dense:y}=u.useContext(fi);let v=a!=null?a:o,m=f;const C=S({},r,{disableTypography:i,inset:l,primary:!!v,secondary:!!m,dense:y}),w=zae(C);return v!=null&&v.type!==qn&&!i&&(v=D.jsx(qn,S({variant:y?"body2":"body1",className:w.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:v}))),m!=null&&m.type!==qn&&!i&&(m=D.jsx(qn,S({variant:"body2",className:w.secondary,color:"text.secondary",display:"block"},p,{children:m}))),D.jsxs(Vae,S({className:be(w.root,s),ownerState:C,ref:n},h,{children:[v,m]}))}),Bi=Hae,Uae=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function iC(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function eO(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function n5(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 Qf(e,t,n,r,o,s){let i=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const a=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!n5(l,s)||a)l=o(e,l,n);else return l.focus(),!0}return!1}const Wae=u.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:s=!1,children:i,className:l,disabledItemsFocusable:a=!1,disableListWrap:c=!1,onKeyDown:f,variant:p="selectedMenu"}=t,h=le(t,Uae),y=u.useRef(null),v=u.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ft(()=>{o&&y.current.focus()},[o]),u.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:P})=>{const k=!y.current.style.width;if(x.clientHeight<y.current.clientHeight&&k){const E=`${UN(pn(x))}px`;y.current.style[P==="rtl"?"paddingLeft":"paddingRight"]=E,y.current.style.width=`calc(100% + ${E})`}return y.current}}),[]);const m=x=>{const P=y.current,k=x.key,E=pn(P).activeElement;if(k==="ArrowDown")x.preventDefault(),Qf(P,E,c,a,iC);else if(k==="ArrowUp")x.preventDefault(),Qf(P,E,c,a,eO);else if(k==="Home")x.preventDefault(),Qf(P,null,c,a,iC);else if(k==="End")x.preventDefault(),Qf(P,null,c,a,eO);else if(k.length===1){const I=v.current,R=k.toLowerCase(),O=performance.now();I.keys.length>0&&(O-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&R!==I.keys[0]&&(I.repeating=!1)),I.lastTime=O,I.keys.push(R);const $=E&&!I.repeating&&n5(E,I);I.previousKeyMatched&&($||Qf(P,E,!1,a,iC,I))?x.preventDefault():I.previousKeyMatched=!1}f&&f(x)},C=Et(y,n);let w=-1;u.Children.forEach(i,(x,P)=>{if(!u.isValidElement(x)){w===P&&(w+=1,w>=i.length&&(w=-1));return}x.props.disabled||(p==="selectedMenu"&&x.props.selected||w===-1)&&(w=P),w===P&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(w+=1,w>=i.length&&(w=-1))});const b=u.Children.map(i,(x,P)=>{if(P===w){const k={};return s&&(k.autoFocus=!0),x.props.tabIndex===void 0&&p==="selectedMenu"&&(k.tabIndex=0),u.cloneElement(x,k)}return x});return D.jsx(rm,S({role:"menu",ref:C,className:l,onKeyDown:m,tabIndex:o?0:-1},h,{children:b}))}),of=Wae;function Gae(e){return Ge("MuiPopover",e)}Ue("MuiPopover",["root","paper"]);const Kae=["onEntering"],qae=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Yae=["slotProps"];function tO(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function nO(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function rO(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function lC(e){return typeof e=="function"?e():e}const Qae=e=>{const{classes:t}=e;return _e({root:["root"],paper:["paper"]},Gae,t)},Xae=se(n0,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),r5=se(Ws,{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}),Zae=u.forwardRef(function(t,n){var r,o,s;const i=We({props:t,name:"MuiPopover"}),{action:l,anchorEl:a,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:p="anchorEl",children:h,className:y,container:v,elevation:m=8,marginThreshold:C=16,open:w,PaperProps:b={},slots:x,slotProps:P,transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:E=Ch,transitionDuration:I="auto",TransitionProps:{onEntering:R}={},disableScrollLock:O=!1}=i,$=le(i.TransitionProps,Kae),L=le(i,qae),j=(r=P==null?void 0:P.paper)!=null?r:b,N=u.useRef(),_=Et(N,j.ref),T=S({},i,{anchorOrigin:c,anchorReference:p,elevation:m,marginThreshold:C,externalPaperSlotProps:j,transformOrigin:k,TransitionComponent:E,transitionDuration:I,TransitionProps:$}),B=Qae(T),V=u.useCallback(()=>{if(p==="anchorPosition")return f;const ce=lC(a),Ee=(ce&&ce.nodeType===1?ce:pn(N.current).body).getBoundingClientRect();return{top:Ee.top+tO(Ee,c.vertical),left:Ee.left+nO(Ee,c.horizontal)}},[a,c.horizontal,c.vertical,f,p]),A=u.useCallback(ce=>({vertical:tO(ce,k.vertical),horizontal:nO(ce,k.horizontal)}),[k.horizontal,k.vertical]),F=u.useCallback(ce=>{const Ce={width:ce.offsetWidth,height:ce.offsetHeight},Ee=A(Ce);if(p==="none")return{top:null,left:null,transformOrigin:rO(Ee)};const fe=V();let ke=fe.top-Ee.vertical,ve=fe.left-Ee.horizontal;const Re=ke+Ce.height,ie=ve+Ce.width,ue=ts(lC(a)),we=ue.innerHeight-C,xe=ue.innerWidth-C;if(C!==null&&ke<C){const Me=ke-C;ke-=Me,Ee.vertical+=Me}else if(C!==null&&Re>we){const Me=Re-we;ke-=Me,Ee.vertical+=Me}if(C!==null&&ve<C){const Me=ve-C;ve-=Me,Ee.horizontal+=Me}else if(ie>xe){const Me=ie-xe;ve-=Me,Ee.horizontal+=Me}return{top:`${Math.round(ke)}px`,left:`${Math.round(ve)}px`,transformOrigin:rO(Ee)}},[a,p,V,A,C]),[H,K]=u.useState(w),Y=u.useCallback(()=>{const ce=N.current;if(!ce)return;const Ce=F(ce);Ce.top!==null&&(ce.style.top=Ce.top),Ce.left!==null&&(ce.style.left=Ce.left),ce.style.transformOrigin=Ce.transformOrigin,K(!0)},[F]);u.useEffect(()=>(O&&window.addEventListener("scroll",Y),()=>window.removeEventListener("scroll",Y)),[a,O,Y]);const J=(ce,Ce)=>{R&&R(ce,Ce),Y()},Q=()=>{K(!1)};u.useEffect(()=>{w&&Y()}),u.useImperativeHandle(l,()=>w?{updatePosition:()=>{Y()}}:null,[w,Y]),u.useEffect(()=>{if(!w)return;const ce=Va(()=>{Y()}),Ce=ts(a);return Ce.addEventListener("resize",ce),()=>{ce.clear(),Ce.removeEventListener("resize",ce)}},[a,w,Y]);let X=I;I==="auto"&&!E.muiSupportAuto&&(X=void 0);const ee=v||(a?pn(lC(a)).body:void 0),oe=(o=x==null?void 0:x.root)!=null?o:Xae,Z=(s=x==null?void 0:x.paper)!=null?s:r5,pe=ns({elementType:Z,externalSlotProps:S({},j,{style:H?j.style:S({},j.style,{opacity:0})}),additionalProps:{elevation:m,ref:_},ownerState:T,className:be(B.paper,j==null?void 0:j.className)}),ne=ns({elementType:oe,externalSlotProps:(P==null?void 0:P.root)||{},externalForwardedProps:L,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:ee,open:w},ownerState:T,className:be(B.root,y)}),{slotProps:re}=ne,me=le(ne,Yae);return D.jsx(oe,S({},me,!Lc(oe)&&{slotProps:re,disableScrollLock:O},{children:D.jsx(E,S({appear:!0,in:w,onEntering:J,onExited:Q,timeout:X},$,{children:D.jsx(Z,S({},pe,{children:h}))}))}))}),Jae=Zae;function ece(e){return Ge("MuiMenu",e)}Ue("MuiMenu",["root","paper","list"]);const tce=["onEntering"],nce=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],rce={vertical:"top",horizontal:"right"},oce={vertical:"top",horizontal:"left"},sce=e=>{const{classes:t}=e;return _e({root:["root"],paper:["paper"],list:["list"]},ece,t)},ice=se(Jae,{shouldForwardProp:e=>Qr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lce=se(r5,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ace=se(of,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),cce=u.forwardRef(function(t,n){var r,o;const s=We({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:l,className:a,disableAutoFocusItem:c=!1,MenuListProps:f={},onClose:p,open:h,PaperProps:y={},PopoverClasses:v,transitionDuration:m="auto",TransitionProps:{onEntering:C}={},variant:w="selectedMenu",slots:b={},slotProps:x={}}=s,P=le(s.TransitionProps,tce),k=le(s,nce),E=Gc(),I=S({},s,{autoFocus:i,disableAutoFocusItem:c,MenuListProps:f,onEntering:C,PaperProps:y,transitionDuration:m,TransitionProps:P,variant:w}),R=sce(I),O=i&&!c&&h,$=u.useRef(null),L=(A,F)=>{$.current&&$.current.adjustStyleForScrollbar(A,{direction:E?"rtl":"ltr"}),C&&C(A,F)},j=A=>{A.key==="Tab"&&(A.preventDefault(),p&&p(A,"tabKeyDown"))};let N=-1;u.Children.map(l,(A,F)=>{u.isValidElement(A)&&(A.props.disabled||(w==="selectedMenu"&&A.props.selected||N===-1)&&(N=F))});const _=(r=b.paper)!=null?r:lce,T=(o=x.paper)!=null?o:y,B=ns({elementType:b.root,externalSlotProps:x.root,ownerState:I,className:[R.root,a]}),V=ns({elementType:_,externalSlotProps:T,ownerState:I,className:R.paper});return D.jsx(ice,S({onClose:p,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?rce:oce,slots:{paper:_,root:b.root},slotProps:{root:B,paper:V},open:h,ref:n,transitionDuration:m,TransitionProps:S({onEntering:L},P),ownerState:I},k,{classes:v,children:D.jsx(ace,S({onKeyDown:j,actions:$,autoFocus:i&&(N===-1||c),autoFocusItem:O,variant:w},f,{className:be(R.list,f.className),children:l}))}))}),o5=cce;function uce(e){return Ge("MuiMenuItem",e)}const dce=Ue("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Xf=dce,fce=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],pce=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},hce=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:s,classes:i}=e,a=_e({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",s&&"selected"]},uce,i);return S({},i,a)},mce=se(gi,{shouldForwardProp:e=>Qr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:pce})(({theme:e,ownerState:t})=>S({},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"}},[`&.${Xf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$t(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Xf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:$t(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Xf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:$t(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})`:$t(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Xf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Xf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${jR.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${jR.inset}`]:{marginLeft:52},[`& .${dy.root}`]:{marginTop:0,marginBottom:0},[`& .${dy.inset}`]:{paddingLeft:36},[`& .${JR.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&S({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${JR.root} svg`]:{fontSize:"1.25rem"}}))),gce=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:s="li",dense:i=!1,divider:l=!1,disableGutters:a=!1,focusVisibleClassName:c,role:f="menuitem",tabIndex:p,className:h}=r,y=le(r,fce),v=u.useContext(fi),m=u.useMemo(()=>({dense:i||v.dense||!1,disableGutters:a}),[v.dense,i,a]),C=u.useRef(null);Ft(()=>{o&&C.current&&C.current.focus()},[o]);const w=S({},r,{dense:m.dense,divider:l,disableGutters:a}),b=hce(r),x=Et(C,n);let P;return r.disabled||(P=p!==void 0?p:-1),D.jsx(fi.Provider,{value:m,children:D.jsx(mce,S({ref:x,role:f,tabIndex:P,component:s,focusVisibleClassName:be(b.focusVisible,c),className:be(b.root,h)},y,{ownerState:w,classes:b}))})}),Pr=gce;function vce(e){return Ge("MuiNativeSelect",e)}const yce=Ue("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),B2=yce,bce=["className","disabled","error","IconComponent","inputRef","variant"],wce=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:i}=e,l={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Se(n)}`,s&&"iconOpen",r&&"disabled"]};return _e(l,vce,t)},s5=({ownerState:e,theme:t})=>S({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":S({},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"},[`&.${B2.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}}),Cce=se("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Qr,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${B2.multiple}`]:t.multiple}]}})(s5),i5=({ownerState:e,theme:t})=>S({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${B2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),xce=se("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Se(n.variant)}`],n.open&&t.iconOpen]}})(i5),Sce=u.forwardRef(function(t,n){const{className:r,disabled:o,error:s,IconComponent:i,inputRef:l,variant:a="standard"}=t,c=le(t,bce),f=S({},t,{disabled:o,variant:a,error:s}),p=wce(f);return D.jsxs(u.Fragment,{children:[D.jsx(Cce,S({ownerState:f,className:be(p.select,r),disabled:o,ref:l||n},c)),t.multiple?null:D.jsx(xce,{as:i,ownerState:f,className:p.icon})]})}),Pce=Sce;var oO;const Ece=["children","classes","className","label","notched"],kce=se("fieldset",{shouldForwardProp:Qr})({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%"}),Ice=se("legend",{shouldForwardProp:Qr})(({ownerState:e,theme:t})=>S({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&&S({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 Mce(e){const{className:t,label:n,notched:r}=e,o=le(e,Ece),s=n!=null&&n!=="",i=S({},e,{notched:r,withLabel:s});return D.jsx(kce,S({"aria-hidden":!0,className:t,ownerState:i},o,{children:D.jsx(Ice,{ownerState:i,children:s?D.jsx("span",{children:n}):oO||(oO=D.jsx("span",{className:"notranslate",children:"​"}))})}))}const _ce=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Tce=e=>{const{classes:t}=e,r=_e({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Hre,t);return S({},t,r)},$ce=se(X1,{shouldForwardProp:e=>Qr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Y1})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return S({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${_i.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${_i.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${_i.focused} .${_i.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${_i.error} .${_i.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${_i.disabled} .${_i.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&S({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Rce=se(Mce,{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}}),Oce=se(Z1,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Q1})(({theme:e,ownerState:t})=>S({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})),l5=u.forwardRef(function(t,n){var r,o,s,i,l;const a=We({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:f=!1,inputComponent:p="input",label:h,multiline:y=!1,notched:v,slots:m={},type:C="text"}=a,w=le(a,_ce),b=Tce(a),x=Fl(),P=Kc({props:a,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k=S({},a,{color:P.color||"primary",disabled:P.disabled,error:P.error,focused:P.focused,formControl:x,fullWidth:f,hiddenLabel:P.hiddenLabel,multiline:y,size:P.size,type:C}),E=(r=(o=m.root)!=null?o:c.Root)!=null?r:$ce,I=(s=(i=m.input)!=null?i:c.Input)!=null?s:Oce;return D.jsx(ef,S({slots:{root:E,input:I},renderSuffix:R=>D.jsx(Rce,{ownerState:k,className:b.notchedOutline,label:h!=null&&h!==""&&P.required?l||(l=D.jsxs(u.Fragment,{children:[h," ","*"]})):h,notched:typeof v!="undefined"?v:!!(R.startAdornment||R.filled||R.focused)}),fullWidth:f,inputComponent:p,multiline:y,ref:n,type:C},w,{classes:S({},b,{notchedOutline:null})}))});l5.muiName="Input";const a5=l5,Dce=bt(D.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Ace=bt(D.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function Lce(e){return Ge("MuiSelect",e)}const Fce=Ue("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Zf=Fce;var sO;const Nce=["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"],Bce=se("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Zf.select}`]:t.select},{[`&.${Zf.select}`]:t[n.variant]},{[`&.${Zf.error}`]:t.error},{[`&.${Zf.multiple}`]:t.multiple}]}})(s5,{[`&.${Zf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),jce=se("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Se(n.variant)}`],n.open&&t.iconOpen]}})(i5),zce=se("input",{shouldForwardProp:e=>s4(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 iO(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Vce(e){return e==null||typeof e=="string"&&!e.trim()}const Hce=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:i}=e,l={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Se(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return _e(l,Lce,t)},Uce=u.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":s,autoFocus:i,autoWidth:l,children:a,className:c,defaultOpen:f,defaultValue:p,disabled:h,displayEmpty:y,error:v=!1,IconComponent:m,inputRef:C,labelId:w,MenuProps:b={},multiple:x,name:P,onBlur:k,onChange:E,onClose:I,onFocus:R,onOpen:O,open:$,readOnly:L,renderValue:j,SelectDisplayProps:N={},tabIndex:_,value:T,variant:B="standard"}=t,V=le(t,Nce),[A,F]=Kr({controlled:T,default:p,name:"Select"}),[H,K]=Kr({controlled:$,default:f,name:"Select"}),Y=u.useRef(null),J=u.useRef(null),[Q,X]=u.useState(null),{current:ee}=u.useRef($!=null),[oe,Z]=u.useState(),pe=Et(n,C),ne=u.useCallback(Ve=>{J.current=Ve,Ve&&X(Ve)},[]),re=Q==null?void 0:Q.parentNode;u.useImperativeHandle(pe,()=>({focus:()=>{J.current.focus()},node:Y.current,value:A}),[A]),u.useEffect(()=>{f&&H&&Q&&!ee&&(Z(l?null:re.clientWidth),J.current.focus())},[Q,l]),u.useEffect(()=>{i&&J.current.focus()},[i]),u.useEffect(()=>{if(!w)return;const Ve=pn(J.current).getElementById(w);if(Ve){const ht=()=>{getSelection().isCollapsed&&J.current.focus()};return Ve.addEventListener("click",ht),()=>{Ve.removeEventListener("click",ht)}}},[w]);const me=(Ve,ht)=>{Ve?O&&O(ht):I&&I(ht),ee||(Z(l?null:re.clientWidth),K(Ve))},ce=Ve=>{Ve.button===0&&(Ve.preventDefault(),J.current.focus(),me(!0,Ve))},Ce=Ve=>{me(!1,Ve)},Ee=u.Children.toArray(a),fe=Ve=>{const ht=Ee.find(Ne=>Ne.props.value===Ve.target.value);ht!==void 0&&(F(ht.props.value),E&&E(Ve,ht))},ke=Ve=>ht=>{let Ne;if(ht.currentTarget.hasAttribute("tabindex")){if(x){Ne=Array.isArray(A)?A.slice():[];const Xe=A.indexOf(Ve.props.value);Xe===-1?Ne.push(Ve.props.value):Ne.splice(Xe,1)}else Ne=Ve.props.value;if(Ve.props.onClick&&Ve.props.onClick(ht),A!==Ne&&(F(Ne),E)){const Xe=ht.nativeEvent||ht,vt=new Xe.constructor(Xe.type,Xe);Object.defineProperty(vt,"target",{writable:!0,value:{value:Ne,name:P}}),E(vt,Ve)}x||me(!1,ht)}},ve=Ve=>{L||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ve.key)!==-1&&(Ve.preventDefault(),me(!0,Ve))},Re=Q!==null&&H,ie=Ve=>{!Re&&k&&(Object.defineProperty(Ve,"target",{writable:!0,value:{value:A,name:P}}),k(Ve))};delete V["aria-invalid"];let ue,we;const xe=[];let Me=!1;(cy({value:A})||y)&&(j?ue=j(A):Me=!0);const Oe=Ee.map(Ve=>{if(!u.isValidElement(Ve))return null;let ht;if(x){if(!Array.isArray(A))throw new Error(Il(2));ht=A.some(Ne=>iO(Ne,Ve.props.value)),ht&&Me&&xe.push(Ve.props.children)}else ht=iO(A,Ve.props.value),ht&&Me&&(we=Ve.props.children);return u.cloneElement(Ve,{"aria-selected":ht?"true":"false",onClick:ke(Ve),onKeyUp:Ne=>{Ne.key===" "&&Ne.preventDefault(),Ve.props.onKeyUp&&Ve.props.onKeyUp(Ne)},role:"option",selected:ht,value:void 0,"data-value":Ve.props.value})});Me&&(x?xe.length===0?ue=null:ue=xe.reduce((Ve,ht,Ne)=>(Ve.push(ht),Ne<xe.length-1&&Ve.push(", "),Ve),[]):ue=we);let Be=oe;!l&&ee&&Q&&(Be=re.clientWidth);let Ke;typeof _!="undefined"?Ke=_:Ke=h?null:0;const Ye=N.id||(P?`mui-component-select-${P}`:void 0),Fe=S({},t,{variant:B,value:A,open:Re,error:v}),mt=Hce(Fe),Zt=S({},b.PaperProps,(r=b.slotProps)==null?void 0:r.paper),Pt=Yt();return D.jsxs(u.Fragment,{children:[D.jsx(Bce,S({ref:ne,tabIndex:Ke,role:"combobox","aria-controls":Pt,"aria-disabled":h?"true":void 0,"aria-expanded":Re?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[w,Ye].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:ve,onMouseDown:h||L?null:ce,onBlur:ie,onFocus:R},N,{ownerState:Fe,className:be(N.className,mt.select,c),id:Ye,children:Vce(ue)?sO||(sO=D.jsx("span",{className:"notranslate",children:"​"})):ue})),D.jsx(zce,S({"aria-invalid":v,value:Array.isArray(A)?A.join(","):A,name:P,ref:Y,"aria-hidden":!0,onChange:fe,tabIndex:-1,disabled:h,className:mt.nativeInput,autoFocus:i,ownerState:Fe},V)),D.jsx(jce,{as:m,className:mt.icon,ownerState:Fe}),D.jsx(o5,S({id:`menu-${P||""}`,anchorEl:re,open:Re,onClose:Ce,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:S({"aria-labelledby":w,role:"listbox","aria-multiselectable":x?"true":void 0,disableListWrap:!0,id:Pt},b.MenuListProps),slotProps:S({},b.slotProps,{paper:S({},Zt,{style:S({minWidth:Be},Zt!=null?Zt.style:null)})}),children:Oe}))]})}),Wce=Uce,Gce=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Kce=["root"],qce=e=>{const{classes:t}=e;return t},j2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Qr(e)&&e!=="variant",slot:"Root"},Yce=se(Z4,j2)(""),Qce=se(a5,j2)(""),Xce=se(W4,j2)(""),c5=u.forwardRef(function(t,n){const r=We({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:i={},className:l,defaultOpen:a=!1,displayEmpty:c=!1,IconComponent:f=$4,id:p,input:h,inputProps:y,label:v,labelId:m,MenuProps:C,multiple:w=!1,native:b=!1,onClose:x,onOpen:P,open:k,renderValue:E,SelectDisplayProps:I,variant:R="outlined"}=r,O=le(r,Gce),$=b?Pce:Wce,L=Fl(),j=Kc({props:r,muiFormControl:L,states:["variant","error"]}),N=j.variant||R,_=S({},r,{variant:N,classes:i}),T=qce(_),B=le(T,Kce),V=h||{standard:D.jsx(Yce,{ownerState:_}),outlined:D.jsx(Qce,{label:v,ownerState:_}),filled:D.jsx(Xce,{ownerState:_})}[N],A=Et(n,V.ref);return D.jsx(u.Fragment,{children:u.cloneElement(V,S({inputComponent:$,inputProps:S({children:s,error:j.error,IconComponent:f,variant:N,type:void 0,multiple:w},b?{id:p}:{autoWidth:o,defaultOpen:a,displayEmpty:c,labelId:m,MenuProps:C,onClose:x,onOpen:P,open:k,renderValue:E,SelectDisplayProps:S({id:p},I)},y,{classes:y?co(B,y.classes):B},h?h.props.inputProps:{})},(w&&b||c)&&N==="outlined"?{notched:!0}:{},{ref:A,className:be(V.props.className,l,T.root)},!h&&{variant:N},O))})});c5.muiName="Select";const z2=c5;function Zce(e){return Ge("MuiSkeleton",e)}Ue("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Jce=["animation","className","component","height","style","variant","width"];let fy=e=>e,lO,aO,cO,uO;const eue=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:s,height:i}=e;return _e({root:["root",n,r,o&&"withChildren",o&&!s&&"fitContent",o&&!i&&"heightAuto"]},Zce,t)},tue=yi(lO||(lO=fy`
243
+ 0% {
244
+ opacity: 1;
245
+ }
246
+
247
+ 50% {
248
+ opacity: 0.4;
249
+ }
250
+
251
+ 100% {
252
+ opacity: 1;
253
+ }
254
+ `)),nue=yi(aO||(aO=fy`
255
+ 0% {
256
+ transform: translateX(-100%);
257
+ }
258
+
259
+ 50% {
260
+ /* +0.5s of delay between each loop */
261
+ transform: translateX(100%);
262
+ }
263
+
264
+ 100% {
265
+ transform: translateX(100%);
266
+ }
267
+ `)),rue=se("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=vJ(e.shape.borderRadius)||"px",r=yJ(e.shape.borderRadius);return S({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:In(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"&&Ml(cO||(cO=fy`
268
+ animation: ${0} 2s ease-in-out 0.5s infinite;
269
+ `),tue),({ownerState:e,theme:t})=>e.animation==="wave"&&Ml(uO||(uO=fy`
270
+ position: relative;
271
+ overflow: hidden;
272
+
273
+ /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
274
+ -webkit-mask-image: -webkit-radial-gradient(white, black);
275
+
276
+ &::after {
277
+ animation: ${0} 2s linear 0.5s infinite;
278
+ background: linear-gradient(
279
+ 90deg,
280
+ transparent,
281
+ ${0},
282
+ transparent
283
+ );
284
+ content: '';
285
+ position: absolute;
286
+ transform: translateX(-100%); /* Avoid flash during server-side hydration */
287
+ bottom: 0;
288
+ left: 0;
289
+ right: 0;
290
+ top: 0;
291
+ }
292
+ `),nue,(t.vars||t).palette.action.hover)),oue=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:s,component:i="span",height:l,style:a,variant:c="text",width:f}=r,p=le(r,Jce),h=S({},r,{animation:o,component:i,variant:c,hasChildren:!!p.children}),y=eue(h);return D.jsx(rue,S({as:i,ref:n,className:be(y.root,s),ownerState:h},p,{style:S({width:f,height:l},a)}))}),sue=oue;function iue(e){return Ge("MuiTooltip",e)}const lue=Ue("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ga=lue,aue=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function cue(e){return Math.round(e*1e5)/1e5}const uue=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:s}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Se(s.split("-")[0])}`],arrow:["arrow"]};return _e(i,iue,t)},due=se(Ua,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>S({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${ga.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ga.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ga.arrow}`]:S({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${ga.arrow}`]:S({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),fue=se("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Se(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>S({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:$t(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${cue(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${ga.popper}[data-popper-placement*="left"] &`]:S({transformOrigin:"right center"},t.isRtl?S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):S({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${ga.popper}[data-popper-placement*="right"] &`]:S({transformOrigin:"left center"},t.isRtl?S({marginRight:"14px"},t.touch&&{marginRight:"24px"}):S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${ga.popper}[data-popper-placement*="top"] &`]:S({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${ga.popper}[data-popper-placement*="bottom"] &`]:S({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),pue=se("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:$t(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Lg=!1;const dO=new v2;let Jf={x:0,y:0};function Fg(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const hue=u.forwardRef(function(t,n){var r,o,s,i,l,a,c,f,p,h,y,v,m,C,w,b,x,P,k;const E=We({props:t,name:"MuiTooltip"}),{arrow:I=!1,children:R,components:O={},componentsProps:$={},describeChild:L=!1,disableFocusListener:j=!1,disableHoverListener:N=!1,disableInteractive:_=!1,disableTouchListener:T=!1,enterDelay:B=100,enterNextDelay:V=0,enterTouchDelay:A=700,followCursor:F=!1,id:H,leaveDelay:K=0,leaveTouchDelay:Y=1500,onClose:J,onOpen:Q,open:X,placement:ee="bottom",PopperComponent:oe,PopperProps:Z={},slotProps:pe={},slots:ne={},title:re,TransitionComponent:me=Ch,TransitionProps:ce}=E,Ce=le(E,aue),Ee=u.isValidElement(R)?R:D.jsx("span",{children:R}),fe=Fn(),ke=Gc(),[ve,Re]=u.useState(),[ie,ue]=u.useState(null),we=u.useRef(!1),xe=_||F,Me=gc(),Oe=gc(),Be=gc(),Ke=gc(),[Ye,Fe]=Kr({controlled:X,default:!1,name:"Tooltip",state:"open"});let mt=Ye;const Zt=Yt(H),Pt=u.useRef(),Ve=qe(()=>{Pt.current!==void 0&&(document.body.style.WebkitUserSelect=Pt.current,Pt.current=void 0),Ke.clear()});u.useEffect(()=>Ve,[Ve]);const ht=at=>{dO.clear(),Lg=!0,Fe(!0),Q&&!mt&&Q(at)},Ne=qe(at=>{dO.start(800+K,()=>{Lg=!1}),Fe(!1),J&&mt&&J(at),Me.start(fe.transitions.duration.shortest,()=>{we.current=!1})}),Xe=at=>{we.current&&at.type!=="touchstart"||(ve&&ve.removeAttribute("title"),Oe.clear(),Be.clear(),B||Lg&&V?Oe.start(Lg?V:B,()=>{ht(at)}):ht(at))},vt=at=>{Oe.clear(),Be.start(K,()=>{Ne(at)})},{isFocusVisibleRef:wt,onBlur:Tt,onFocus:qt,ref:Qt}=V1(),[,Sn]=u.useState(!1),yn=at=>{Tt(at),wt.current===!1&&(Sn(!1),vt(at))},gt=at=>{ve||Re(at.currentTarget),qt(at),wt.current===!0&&(Sn(!0),Xe(at))},Ot=at=>{we.current=!0;const zt=Ee.props;zt.onTouchStart&&zt.onTouchStart(at)},Mr=at=>{Ot(at),Be.clear(),Me.clear(),Ve(),Pt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ke.start(A,()=>{document.body.style.WebkitUserSelect=Pt.current,Xe(at)})},dr=at=>{Ee.props.onTouchEnd&&Ee.props.onTouchEnd(at),Ve(),Be.start(Y,()=>{Ne(at)})};u.useEffect(()=>{if(!mt)return;function at(zt){(zt.key==="Escape"||zt.key==="Esc")&&Ne(zt)}return document.addEventListener("keydown",at),()=>{document.removeEventListener("keydown",at)}},[Ne,mt]);const jl=Et(Ee.ref,Qt,Re,n);!re&&re!==0&&(mt=!1);const ho=u.useRef(),Tn=at=>{const zt=Ee.props;zt.onMouseMove&&zt.onMouseMove(at),Jf={x:at.clientX,y:at.clientY},ho.current&&ho.current.update()},en={},lr=typeof re=="string";L?(en.title=!mt&&lr&&!N?re:null,en["aria-describedby"]=mt?Zt:null):(en["aria-label"]=lr?re:null,en["aria-labelledby"]=mt&&!lr?Zt:null);const ar=S({},en,Ce,Ee.props,{className:be(Ce.className,Ee.props.className),onTouchStart:Ot,ref:jl},F?{onMouseMove:Tn}:{}),mo={};T||(ar.onTouchStart=Mr,ar.onTouchEnd=dr),N||(ar.onMouseOver=Fg(Xe,ar.onMouseOver),ar.onMouseLeave=Fg(vt,ar.onMouseLeave),xe||(mo.onMouseOver=Xe,mo.onMouseLeave=vt)),j||(ar.onFocus=Fg(gt,ar.onFocus),ar.onBlur=Fg(yn,ar.onBlur),xe||(mo.onFocus=gt,mo.onBlur=yn));const Ci=u.useMemo(()=>{var at;let zt=[{name:"arrow",enabled:!!ie,options:{element:ie,padding:4}}];return(at=Z.popperOptions)!=null&&at.modifiers&&(zt=zt.concat(Z.popperOptions.modifiers)),S({},Z.popperOptions,{modifiers:zt})},[ie,Z]),Ao=S({},E,{isRtl:ke,arrow:I,disableInteractive:xe,placement:ee,PopperComponentProp:oe,touch:we.current}),fs=uue(Ao),go=(r=(o=ne.popper)!=null?o:O.Popper)!=null?r:due,Zr=(s=(i=(l=ne.transition)!=null?l:O.Transition)!=null?i:me)!=null?s:Ch,Ks=(a=(c=ne.tooltip)!=null?c:O.Tooltip)!=null?a:fue,$e=(f=(p=ne.arrow)!=null?p:O.Arrow)!=null?f:pue,Ie=qu(go,S({},Z,(h=pe.popper)!=null?h:$.popper,{className:be(fs.popper,Z==null?void 0:Z.className,(y=(v=pe.popper)!=null?v:$.popper)==null?void 0:y.className)}),Ao),rt=qu(Zr,S({},ce,(m=pe.transition)!=null?m:$.transition),Ao),Qe=qu(Ks,S({},(C=pe.tooltip)!=null?C:$.tooltip,{className:be(fs.tooltip,(w=(b=pe.tooltip)!=null?b:$.tooltip)==null?void 0:w.className)}),Ao),St=qu($e,S({},(x=pe.arrow)!=null?x:$.arrow,{className:be(fs.arrow,(P=(k=pe.arrow)!=null?k:$.arrow)==null?void 0:P.className)}),Ao);return D.jsxs(u.Fragment,{children:[u.cloneElement(Ee,ar),D.jsx(go,S({as:oe!=null?oe:Ua,placement:ee,anchorEl:F?{getBoundingClientRect:()=>({top:Jf.y,left:Jf.x,right:Jf.x,bottom:Jf.y,width:0,height:0})}:ve,popperRef:ho,open:ve?mt:!1,id:Zt,transition:!0},mo,Ie,{popperOptions:Ci,children:({TransitionProps:at})=>D.jsx(Zr,S({timeout:fe.transitions.duration.shorter},at,rt,{children:D.jsxs(Ks,S({},Qe,{children:[re,I?D.jsx($e,S({},St,{ref:ue})):null]}))}))}))]})}),Nl=hue;function mue(e){return Ge("MuiSwitch",e)}const gue=Ue("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Vr=gue,vue=["className","color","edge","size","sx"],yue=U1(),bue=e=>{const{classes:t,edge:n,size:r,color:o,checked:s,disabled:i}=e,l={root:["root",n&&`edge${Se(n)}`,`size${Se(r)}`],switchBase:["switchBase",`color${Se(o)}`,s&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},a=_e(l,mue,t);return S({},t,a)},wue=se("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Se(n.edge)}`],t[`size${Se(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Vr.thumb}`]:{width:16,height:16},[`& .${Vr.switchBase}`]:{padding:4,[`&.${Vr.checked}`]:{transform:"translateX(16px)"}}}}]}),Cue=se(L4,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Vr.input}`]:t.input},n.color!=="default"&&t[`color${Se(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Vr.checked}`]:{transform:"translateX(20px)"},[`&.${Vr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Vr.checked} + .${Vr.track}`]:{opacity:.5},[`&.${Vr.disabled} + .${Vr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Vr.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:$t(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${Vr.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:$t(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Vr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?_d(e.palette[t].main,.62):Md(e.palette[t].main,.55)}`}},[`&.${Vr.checked} + .${Vr.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),xue=se("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),Sue=se("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Pue=u.forwardRef(function(t,n){const r=yue({props:t,name:"MuiSwitch"}),{className:o,color:s="primary",edge:i=!1,size:l="medium",sx:a}=r,c=le(r,vue),f=S({},r,{color:s,edge:i,size:l}),p=bue(f),h=D.jsx(Sue,{className:p.thumb,ownerState:f});return D.jsxs(wue,{className:be(p.root,o),sx:a,ownerState:f,children:[D.jsx(Cue,S({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:f},c,{classes:S({},p,{root:p.switchBase})})),D.jsx(xue,{className:p.track,ownerState:f})]})}),u5=Pue;function Eue(e){return Ge("MuiTab",e)}const kue=Ue("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),sc=kue,Iue=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Mue=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:s,label:i,selected:l,disabled:a}=e,c={root:["root",s&&i&&"labelIcon",`textColor${Se(n)}`,r&&"fullWidth",o&&"wrapped",l&&"selected",a&&"disabled"],iconWrapper:["iconWrapper"]};return _e(c,Eue,t)},_ue=se(gi,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Se(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>S({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${sc.iconWrapper}`]:S({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${sc.selected}`]:{opacity:1},[`&.${sc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${sc.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${sc.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${sc.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${sc.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Tue=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiTab"}),{className:o,disabled:s=!1,disableFocusRipple:i=!1,fullWidth:l,icon:a,iconPosition:c="top",indicator:f,label:p,onChange:h,onClick:y,onFocus:v,selected:m,selectionFollowsFocus:C,textColor:w="inherit",value:b,wrapped:x=!1}=r,P=le(r,Iue),k=S({},r,{disabled:s,disableFocusRipple:i,selected:m,icon:!!a,iconPosition:c,label:!!p,fullWidth:l,textColor:w,wrapped:x}),E=Mue(k),I=a&&p&&u.isValidElement(a)?u.cloneElement(a,{className:be(E.iconWrapper,a.props.className)}):a,R=$=>{!m&&h&&h($,b),y&&y($)},O=$=>{C&&!m&&h&&h($,b),v&&v($)};return D.jsxs(_ue,S({focusRipple:!i,className:be(E.root,o),ref:n,role:"tab","aria-selected":m,disabled:s,onClick:R,onFocus:O,ownerState:k,tabIndex:m?0:-1},P,{children:[c==="top"||c==="start"?D.jsxs(u.Fragment,{children:[I,p]}):D.jsxs(u.Fragment,{children:[p,I]}),f]}))}),py=Tue,$ue=u.createContext(),Rue=$ue,Oue=u.createContext(),Due=Oue;function Aue(e){return Ge("MuiTableCell",e)}const Lue=Ue("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Fue=Lue,Nue=["align","className","component","padding","scope","size","sortDirection","variant"],Bue=e=>{const{classes:t,variant:n,align:r,padding:o,size:s,stickyHeader:i}=e,l={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${Se(r)}`,o!=="normal"&&`padding${Se(o)}`,`size${Se(s)}`]};return _e(l,Aue,t)},jue=se("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Se(n.size)}`],n.padding!=="normal"&&t[`padding${Se(n.padding)}`],n.align!=="inherit"&&t[`align${Se(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>S({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
293
+ ${e.palette.mode==="light"?_d($t(e.palette.divider,1),.88):Md($t(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Fue.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),zue=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiTableCell"}),{align:o="inherit",className:s,component:i,padding:l,scope:a,size:c,sortDirection:f,variant:p}=r,h=le(r,Nue),y=u.useContext(Rue),v=u.useContext(Due),m=v&&v.variant==="head";let C;i?C=i:C=m?"th":"td";let w=a;C==="td"?w=void 0:!w&&m&&(w="col");const b=p||v&&v.variant,x=S({},r,{align:o,component:C,padding:l||(y&&y.padding?y.padding:"normal"),size:c||(y&&y.size?y.size:"medium"),sortDirection:f,stickyHeader:b==="head"&&y&&y.stickyHeader,variant:b}),P=Bue(x);let k=null;return f&&(k=f==="asc"?"ascending":"descending"),D.jsx(jue,S({as:C,ref:n,className:be(P.root,s),"aria-sort":k,scope:w,ownerState:x},h))}),aS=zue;function Vue(e){return Ge("MuiToolbar",e)}Ue("MuiToolbar",["root","gutters","regular","dense"]);const Hue=["className","component","disableGutters","variant"],Uue=e=>{const{classes:t,disableGutters:n,variant:r}=e;return _e({root:["root",!n&&"gutters",r]},Vue,t)},Wue=se("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>S({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),Gue=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiToolbar"}),{className:o,component:s="div",disableGutters:i=!1,variant:l="regular"}=r,a=le(r,Hue),c=S({},r,{component:s,disableGutters:i,variant:l}),f=Uue(c);return D.jsx(Wue,S({as:s,className:be(f.root,o),ref:n,ownerState:c},a))}),d5=Gue,f5=bt(D.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),p5=bt(D.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),Kue=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],que=u.forwardRef(function(t,n){var r,o,s,i,l,a,c,f;const{backIconButtonProps:p,count:h,disabled:y=!1,getItemAriaLabel:v,nextIconButtonProps:m,onPageChange:C,page:w,rowsPerPage:b,showFirstButton:x,showLastButton:P,slots:k={},slotProps:E={}}=t,I=le(t,Kue),R=Gc(),O=pe=>{C(pe,0)},$=pe=>{C(pe,w-1)},L=pe=>{C(pe,w+1)},j=pe=>{C(pe,Math.max(0,Math.ceil(h/b)-1))},N=(r=k.firstButton)!=null?r:xr,_=(o=k.lastButton)!=null?o:xr,T=(s=k.nextButton)!=null?s:xr,B=(i=k.previousButton)!=null?i:xr,V=(l=k.firstButtonIcon)!=null?l:Dce,A=(a=k.lastButtonIcon)!=null?a:Ace,F=(c=k.nextButtonIcon)!=null?c:p5,H=(f=k.previousButtonIcon)!=null?f:f5,K=R?_:N,Y=R?T:B,J=R?B:T,Q=R?N:_,X=R?E.lastButton:E.firstButton,ee=R?E.nextButton:E.previousButton,oe=R?E.previousButton:E.nextButton,Z=R?E.firstButton:E.lastButton;return D.jsxs("div",S({ref:n},I,{children:[x&&D.jsx(K,S({onClick:O,disabled:y||w===0,"aria-label":v("first",w),title:v("first",w)},X,{children:R?D.jsx(A,S({},E.lastButtonIcon)):D.jsx(V,S({},E.firstButtonIcon))})),D.jsx(Y,S({onClick:$,disabled:y||w===0,color:"inherit","aria-label":v("previous",w),title:v("previous",w)},ee!=null?ee:p,{children:R?D.jsx(F,S({},E.nextButtonIcon)):D.jsx(H,S({},E.previousButtonIcon))})),D.jsx(J,S({onClick:L,disabled:y||(h!==-1?w>=Math.ceil(h/b)-1:!1),color:"inherit","aria-label":v("next",w),title:v("next",w)},oe!=null?oe:m,{children:R?D.jsx(H,S({},E.previousButtonIcon)):D.jsx(F,S({},E.nextButtonIcon))})),P&&D.jsx(Q,S({onClick:j,disabled:y||w>=Math.ceil(h/b)-1,"aria-label":v("last",w),title:v("last",w)},Z,{children:R?D.jsx(V,S({},E.firstButtonIcon)):D.jsx(A,S({},E.lastButtonIcon))}))]}))}),Yue=que;function Que(e){return Ge("MuiTablePagination",e)}const Xue=Ue("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Pc=Xue;var fO;const Zue=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],Jue=se(aS,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),ede=se(d5,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>S({[`& .${Pc.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Pc.actions}`]:{flexShrink:0,marginLeft:20}})),tde=se("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),nde=se("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>S({},e.typography.body2,{flexShrink:0})),rde=se(z2,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>S({[`& .${Pc.selectIcon}`]:t.selectIcon,[`& .${Pc.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Pc.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),ode=se(Pr,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),sde=se("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>S({},e.typography.body2,{flexShrink:0}));function ide({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function lde(e){return`Go to ${e} page`}const ade=e=>{const{classes:t}=e;return _e({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Que,t)},cde=u.forwardRef(function(t,n){var r;const o=We({props:t,name:"MuiTablePagination"}),{ActionsComponent:s=Yue,backIconButtonProps:i,className:l,colSpan:a,component:c=aS,count:f,disabled:p=!1,getItemAriaLabel:h=lde,labelDisplayedRows:y=ide,labelRowsPerPage:v="Rows per page:",nextIconButtonProps:m,onPageChange:C,onRowsPerPageChange:w,page:b,rowsPerPage:x,rowsPerPageOptions:P=[10,25,50,100],SelectProps:k={},showFirstButton:E=!1,showLastButton:I=!1,slotProps:R={},slots:O={}}=o,$=le(o,Zue),L=o,j=ade(L),N=(r=R==null?void 0:R.select)!=null?r:k,_=N.native?"option":ode;let T;(c===aS||c==="td")&&(T=a||1e3);const B=Yt(N.id),V=Yt(N.labelId),A=()=>f===-1?(b+1)*x:x===-1?f:Math.min(f,(b+1)*x);return D.jsx(Jue,S({colSpan:T,ref:n,as:c,ownerState:L,className:be(j.root,l)},$,{children:D.jsxs(ede,{className:j.toolbar,children:[D.jsx(tde,{className:j.spacer}),P.length>1&&D.jsx(nde,{className:j.selectLabel,id:V,children:v}),P.length>1&&D.jsx(rde,S({variant:"standard"},!N.variant&&{input:fO||(fO=D.jsx(ef,{}))},{value:x,onChange:w,id:B,labelId:V},N,{classes:S({},N.classes,{root:be(j.input,j.selectRoot,(N.classes||{}).root),select:be(j.select,(N.classes||{}).select),icon:be(j.selectIcon,(N.classes||{}).icon)}),disabled:p,children:P.map(F=>u.createElement(_,S({},!Lc(_)&&{ownerState:L},{className:j.menuItem,key:F.label?F.label:F,value:F.value?F.value:F}),F.label?F.label:F))})),D.jsx(sde,{className:j.displayedRows,children:y({from:f===0?0:b*x+1,to:A(),count:f===-1?-1:f,page:b})}),D.jsx(s,{className:j.actions,backIconButtonProps:i,count:f,nextIconButtonProps:m,onPageChange:C,page:b,rowsPerPage:x,showFirstButton:E,showLastButton:I,slotProps:R.actions,slots:O.actions,getItemAriaLabel:h,disabled:p})]})}))}),ude=cde;function dde(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function fde(e,t,n,r={},o=()=>{}){const{ease:s=dde,duration:i=300}=r;let l=null;const a=t[e];let c=!1;const f=()=>{c=!0},p=h=>{if(c){o(new Error("Animation cancelled"));return}l===null&&(l=h);const y=Math.min(1,(h-l)/i);if(t[e]=s(y)*(n-a)+a,y>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(p)};return a===n?(o(new Error("Element already at target position")),f):(requestAnimationFrame(p),f)}const pde=["onChange"],hde={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function mde(e){const{onChange:t}=e,n=le(e,pde),r=u.useRef(),o=u.useRef(null),s=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Ft(()=>{const i=Va(()=>{const a=r.current;s(),a!==r.current&&t(r.current)}),l=ts(o.current);return l.addEventListener("resize",i),()=>{i.clear(),l.removeEventListener("resize",i)}},[t]),u.useEffect(()=>{s(),t(r.current)},[t]),D.jsx("div",S({style:hde,ref:o},n))}function gde(e){return Ge("MuiTabScrollButton",e)}const vde=Ue("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),yde=vde,bde=["className","slots","slotProps","direction","orientation","disabled"],wde=e=>{const{classes:t,orientation:n,disabled:r}=e;return _e({root:["root",n,r&&"disabled"]},gde,t)},Cde=se(gi,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>S({width:40,flexShrink:0,opacity:.8,[`&.${yde.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),xde=u.forwardRef(function(t,n){var r,o;const s=We({props:t,name:"MuiTabScrollButton"}),{className:i,slots:l={},slotProps:a={},direction:c}=s,f=le(s,bde),p=Gc(),h=S({isRtl:p},s),y=wde(h),v=(r=l.StartScrollButtonIcon)!=null?r:f5,m=(o=l.EndScrollButtonIcon)!=null?o:p5,C=ns({elementType:v,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),w=ns({elementType:m,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return D.jsx(Cde,S({component:"div",className:be(y.root,i),ref:n,role:null,ownerState:h,tabIndex:null},f,{children:c==="left"?D.jsx(v,S({},C)):D.jsx(m,S({},w))}))}),Sde=xde;function Pde(e){return Ge("MuiTabs",e)}const Ede=Ue("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),vv=Ede,kde=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],pO=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,hO=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Ng=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const s=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||s)o=n(e,o);else{o.focus();return}}},Ide=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:s,centered:i,scrollButtonsHideMobile:l,classes:a}=e;return _e({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",s&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Pde,a)},Mde=se("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${vv.scrollButtons}`]:t.scrollButtons},{[`& .${vv.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>S({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${vv.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),_de=se("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>S({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Tde=se("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>S({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),$de=se("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>S({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),Rde=se(mde)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),mO={},Ode=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiTabs"}),o=Fn(),s=Gc(),{"aria-label":i,"aria-labelledby":l,action:a,centered:c=!1,children:f,className:p,component:h="div",allowScrollButtonsMobile:y=!1,indicatorColor:v="primary",onChange:m,orientation:C="horizontal",ScrollButtonComponent:w=Sde,scrollButtons:b="auto",selectionFollowsFocus:x,slots:P={},slotProps:k={},TabIndicatorProps:E={},TabScrollButtonProps:I={},textColor:R="primary",value:O,variant:$="standard",visibleScrollbar:L=!1}=r,j=le(r,kde),N=$==="scrollable",_=C==="vertical",T=_?"scrollTop":"scrollLeft",B=_?"top":"left",V=_?"bottom":"right",A=_?"clientHeight":"clientWidth",F=_?"height":"width",H=S({},r,{component:h,allowScrollButtonsMobile:y,indicatorColor:v,orientation:C,vertical:_,scrollButtons:b,textColor:R,variant:$,visibleScrollbar:L,fixed:!N,hideScrollbar:N&&!L,scrollableX:N&&!_,scrollableY:N&&_,centered:c&&!N,scrollButtonsHideMobile:!y}),K=Ide(H),Y=ns({elementType:P.StartScrollButtonIcon,externalSlotProps:k.startScrollButtonIcon,ownerState:H}),J=ns({elementType:P.EndScrollButtonIcon,externalSlotProps:k.endScrollButtonIcon,ownerState:H}),[Q,X]=u.useState(!1),[ee,oe]=u.useState(mO),[Z,pe]=u.useState(!1),[ne,re]=u.useState(!1),[me,ce]=u.useState(!1),[Ce,Ee]=u.useState({overflow:"hidden",scrollbarWidth:0}),fe=new Map,ke=u.useRef(null),ve=u.useRef(null),Re=()=>{const Ne=ke.current;let Xe;if(Ne){const wt=Ne.getBoundingClientRect();Xe={clientWidth:Ne.clientWidth,scrollLeft:Ne.scrollLeft,scrollTop:Ne.scrollTop,scrollLeftNormalized:mZ(Ne,s?"rtl":"ltr"),scrollWidth:Ne.scrollWidth,top:wt.top,bottom:wt.bottom,left:wt.left,right:wt.right}}let vt;if(Ne&&O!==!1){const wt=ve.current.children;if(wt.length>0){const Tt=wt[fe.get(O)];vt=Tt?Tt.getBoundingClientRect():null}}return{tabsMeta:Xe,tabMeta:vt}},ie=qe(()=>{const{tabsMeta:Ne,tabMeta:Xe}=Re();let vt=0,wt;if(_)wt="top",Xe&&Ne&&(vt=Xe.top-Ne.top+Ne.scrollTop);else if(wt=s?"right":"left",Xe&&Ne){const qt=s?Ne.scrollLeftNormalized+Ne.clientWidth-Ne.scrollWidth:Ne.scrollLeft;vt=(s?-1:1)*(Xe[wt]-Ne[wt]+qt)}const Tt={[wt]:vt,[F]:Xe?Xe[F]:0};if(isNaN(ee[wt])||isNaN(ee[F]))oe(Tt);else{const qt=Math.abs(ee[wt]-Tt[wt]),Qt=Math.abs(ee[F]-Tt[F]);(qt>=1||Qt>=1)&&oe(Tt)}}),ue=(Ne,{animation:Xe=!0}={})=>{Xe?fde(T,ke.current,Ne,{duration:o.transitions.duration.standard}):ke.current[T]=Ne},we=Ne=>{let Xe=ke.current[T];_?Xe+=Ne:(Xe+=Ne*(s?-1:1),Xe*=s&&WN()==="reverse"?-1:1),ue(Xe)},xe=()=>{const Ne=ke.current[A];let Xe=0;const vt=Array.from(ve.current.children);for(let wt=0;wt<vt.length;wt+=1){const Tt=vt[wt];if(Xe+Tt[A]>Ne){wt===0&&(Xe=Ne);break}Xe+=Tt[A]}return Xe},Me=()=>{we(-1*xe())},Oe=()=>{we(xe())},Be=u.useCallback(Ne=>{Ee({overflow:null,scrollbarWidth:Ne})},[]),Ke=()=>{const Ne={};Ne.scrollbarSizeListener=N?D.jsx(Rde,{onChange:Be,className:be(K.scrollableX,K.hideScrollbar)}):null;const vt=N&&(b==="auto"&&(Z||ne)||b===!0);return Ne.scrollButtonStart=vt?D.jsx(w,S({slots:{StartScrollButtonIcon:P.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Y},orientation:C,direction:s?"right":"left",onClick:Me,disabled:!Z},I,{className:be(K.scrollButtons,I.className)})):null,Ne.scrollButtonEnd=vt?D.jsx(w,S({slots:{EndScrollButtonIcon:P.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:J},orientation:C,direction:s?"left":"right",onClick:Oe,disabled:!ne},I,{className:be(K.scrollButtons,I.className)})):null,Ne},Ye=qe(Ne=>{const{tabsMeta:Xe,tabMeta:vt}=Re();if(!(!vt||!Xe)){if(vt[B]<Xe[B]){const wt=Xe[T]+(vt[B]-Xe[B]);ue(wt,{animation:Ne})}else if(vt[V]>Xe[V]){const wt=Xe[T]+(vt[V]-Xe[V]);ue(wt,{animation:Ne})}}}),Fe=qe(()=>{N&&b!==!1&&ce(!me)});u.useEffect(()=>{const Ne=Va(()=>{ke.current&&ie()});let Xe;const vt=qt=>{qt.forEach(Qt=>{Qt.removedNodes.forEach(Sn=>{var yn;(yn=Xe)==null||yn.unobserve(Sn)}),Qt.addedNodes.forEach(Sn=>{var yn;(yn=Xe)==null||yn.observe(Sn)})}),Ne(),Fe()},wt=ts(ke.current);wt.addEventListener("resize",Ne);let Tt;return typeof ResizeObserver!="undefined"&&(Xe=new ResizeObserver(Ne),Array.from(ve.current.children).forEach(qt=>{Xe.observe(qt)})),typeof MutationObserver!="undefined"&&(Tt=new MutationObserver(vt),Tt.observe(ve.current,{childList:!0})),()=>{var qt,Qt;Ne.clear(),wt.removeEventListener("resize",Ne),(qt=Tt)==null||qt.disconnect(),(Qt=Xe)==null||Qt.disconnect()}},[ie,Fe]),u.useEffect(()=>{const Ne=Array.from(ve.current.children),Xe=Ne.length;if(typeof IntersectionObserver!="undefined"&&Xe>0&&N&&b!==!1){const vt=Ne[0],wt=Ne[Xe-1],Tt={root:ke.current,threshold:.99},qt=gt=>{pe(!gt[0].isIntersecting)},Qt=new IntersectionObserver(qt,Tt);Qt.observe(vt);const Sn=gt=>{re(!gt[0].isIntersecting)},yn=new IntersectionObserver(Sn,Tt);return yn.observe(wt),()=>{Qt.disconnect(),yn.disconnect()}}},[N,b,me,f==null?void 0:f.length]),u.useEffect(()=>{X(!0)},[]),u.useEffect(()=>{ie()}),u.useEffect(()=>{Ye(mO!==ee)},[Ye,ee]),u.useImperativeHandle(a,()=>({updateIndicator:ie,updateScrollButtons:Fe}),[ie,Fe]);const mt=D.jsx($de,S({},E,{className:be(K.indicator,E.className),ownerState:H,style:S({},ee,E.style)}));let Zt=0;const Pt=u.Children.map(f,Ne=>{if(!u.isValidElement(Ne))return null;const Xe=Ne.props.value===void 0?Zt:Ne.props.value;fe.set(Xe,Zt);const vt=Xe===O;return Zt+=1,u.cloneElement(Ne,S({fullWidth:$==="fullWidth",indicator:vt&&!Q&&mt,selected:vt,selectionFollowsFocus:x,onChange:m,textColor:R,value:Xe},Zt===1&&O===!1&&!Ne.props.tabIndex?{tabIndex:0}:{}))}),Ve=Ne=>{const Xe=ve.current,vt=pn(Xe).activeElement;if(vt.getAttribute("role")!=="tab")return;let Tt=C==="horizontal"?"ArrowLeft":"ArrowUp",qt=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&s&&(Tt="ArrowRight",qt="ArrowLeft"),Ne.key){case Tt:Ne.preventDefault(),Ng(Xe,vt,hO);break;case qt:Ne.preventDefault(),Ng(Xe,vt,pO);break;case"Home":Ne.preventDefault(),Ng(Xe,null,pO);break;case"End":Ne.preventDefault(),Ng(Xe,null,hO);break}},ht=Ke();return D.jsxs(Mde,S({className:be(K.root,p),ownerState:H,ref:n,as:h},j,{children:[ht.scrollButtonStart,ht.scrollbarSizeListener,D.jsxs(_de,{className:K.scroller,ownerState:H,style:{overflow:Ce.overflow,[_?`margin${s?"Left":"Right"}`:"marginBottom"]:L?void 0:-Ce.scrollbarWidth},ref:ke,children:[D.jsx(Tde,{"aria-label":i,"aria-labelledby":l,"aria-orientation":C==="vertical"?"vertical":null,className:K.flexContainer,ownerState:H,onKeyDown:Ve,ref:ve,role:"tablist",children:Pt}),Q&&mt]}),ht.scrollButtonEnd]}))}),V2=Ode;function Dde(e){return Ge("MuiTextField",e)}Ue("MuiTextField",["root"]);const Ade=["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"],Lde={standard:Z4,filled:W4,outlined:a5},Fde=e=>{const{classes:t}=e;return _e({root:["root"]},Dde,t)},Nde=se(G4,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Bde=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:i,className:l,color:a="primary",defaultValue:c,disabled:f=!1,error:p=!1,FormHelperTextProps:h,fullWidth:y=!1,helperText:v,id:m,InputLabelProps:C,inputProps:w,InputProps:b,inputRef:x,label:P,maxRows:k,minRows:E,multiline:I=!1,name:R,onBlur:O,onChange:$,onFocus:L,placeholder:j,required:N=!1,rows:_,select:T=!1,SelectProps:B,type:V,value:A,variant:F="outlined"}=r,H=le(r,Ade),K=S({},r,{autoFocus:s,color:a,disabled:f,error:p,fullWidth:y,multiline:I,required:N,select:T,variant:F}),Y=Fde(K),J={};F==="outlined"&&(C&&typeof C.shrink!="undefined"&&(J.notched=C.shrink),J.label=P),T&&((!B||!B.native)&&(J.id=void 0),J["aria-describedby"]=void 0);const Q=Yt(m),X=v&&Q?`${Q}-helper-text`:void 0,ee=P&&Q?`${Q}-label`:void 0,oe=Lde[F],Z=D.jsx(oe,S({"aria-describedby":X,autoComplete:o,autoFocus:s,defaultValue:c,fullWidth:y,multiline:I,name:R,rows:_,maxRows:k,minRows:E,type:V,value:A,id:Q,inputRef:x,onBlur:O,onChange:$,onFocus:L,placeholder:j,inputProps:w},J,b));return D.jsxs(Nde,S({className:be(Y.root,l),disabled:f,error:p,fullWidth:y,ref:n,required:N,color:a,variant:F,ownerState:K},H,{children:[P!=null&&P!==""&&D.jsx(J4,S({htmlFor:Q,id:ee},C,{children:P})),T?D.jsx(z2,S({"aria-describedby":X,id:Q,labelId:ee,value:A,input:Z},B,{children:i})):Z,v&&D.jsx(nf,S({id:X},h,{children:v}))]}))}),Wa=Bde;var H2={},aC={};const jde=Yi(QJ);var gO;function tt(){return gO||(gO=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=jde}(aC)),aC}var zde=Je;Object.defineProperty(H2,"__esModule",{value:!0});var h5=H2.default=void 0,Vde=zde(tt()),Hde=et();h5=H2.default=(0,Vde.default)((0,Hde.jsx)("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"}),"AccountTree");var U2={},Ude=Je;Object.defineProperty(U2,"__esModule",{value:!0});var m5=U2.default=void 0,Wde=Ude(tt()),Gde=et();m5=U2.default=(0,Wde.default)((0,Gde.jsx)("path",{d:"M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11"}),"Extension");var W2={},Kde=Je;Object.defineProperty(W2,"__esModule",{value:!0});var g5=W2.default=void 0,qde=Kde(tt()),Yde=et();g5=W2.default=(0,qde.default)((0,Yde.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"}),"History");var G2={},Qde=Je;Object.defineProperty(G2,"__esModule",{value:!0});var r0=G2.default=void 0,Xde=Qde(tt()),Zde=et();r0=G2.default=(0,Xde.default)((0,Zde.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");var K2={},Jde=Je;Object.defineProperty(K2,"__esModule",{value:!0});var q2=K2.default=void 0,efe=Jde(tt()),tfe=et();q2=K2.default=(0,efe.default)((0,tfe.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout");var Y2={},nfe=Je;Object.defineProperty(Y2,"__esModule",{value:!0});var v5=Y2.default=void 0,rfe=nfe(tt()),vO=et();v5=Y2.default=(0,rfe.default)([(0,vO.jsx)("circle",{cx:"10",cy:"8",r:"4"},"0"),(0,vO.jsx)("path",{d:"M10.67 13.02c-.22-.01-.44-.02-.67-.02-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26c-.79-1.13-1.26-2.51-1.26-4 0-1.07.25-2.07.67-2.98M20.75 16c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L18 11h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49c.32.27.68.48 1.08.63L16 21h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63M17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},"1")],"ManageAccounts");var Q2={},ofe=Je;Object.defineProperty(Q2,"__esModule",{value:!0});var y5=Q2.default=void 0,sfe=ofe(tt()),ife=et();y5=Q2.default=(0,sfe.default)((0,ife.jsx)("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h3l-1 1v2h12v-2l-1-1h3c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 13H4V5h16z"}),"Monitor");var X2={},lfe=Je;Object.defineProperty(X2,"__esModule",{value:!0});var hy=X2.default=void 0,afe=lfe(tt()),cfe=et();hy=X2.default=(0,afe.default)((0,cfe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public");var Z2={},ufe=Je;Object.defineProperty(Z2,"__esModule",{value:!0});var J2=Z2.default=void 0,dfe=ufe(tt()),ffe=et();J2=Z2.default=(0,dfe.default)((0,ffe.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var eE={},pfe=Je;Object.defineProperty(eE,"__esModule",{value:!0});var b5=eE.default=void 0,hfe=pfe(tt()),mfe=et();b5=eE.default=(0,hfe.default)((0,mfe.jsx)("path",{d:"m12.87 15.07-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2zm-2.62 7 1.62-4.33L19.12 17z"}),"Translate");var tE={},gfe=Je;Object.defineProperty(tE,"__esModule",{value:!0});var w5=tE.default=void 0,vfe=gfe(tt()),yfe=et();w5=tE.default=(0,vfe.default)((0,yfe.jsx)("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code");var my={exports:{}};/**
294
+ * @license
295
+ * Lodash <https://lodash.com/>
296
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
297
+ * Released under MIT license <https://lodash.com/license>
298
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
299
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
300
+ */my.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",l="Invalid `variable` option passed into `_.template`",a="__lodash_hash_undefined__",c=500,f="__lodash_placeholder__",p=1,h=2,y=4,v=1,m=2,C=1,w=2,b=4,x=8,P=16,k=32,E=64,I=128,R=256,O=512,$=30,L="...",j=800,N=16,_=1,T=2,B=3,V=1/0,A=9007199254740991,F=17976931348623157e292,H=0/0,K=4294967295,Y=K-1,J=K>>>1,Q=[["ary",I],["bind",C],["bindKey",w],["curry",x],["curryRight",P],["flip",O],["partial",k],["partialRight",E],["rearg",R]],X="[object Arguments]",ee="[object Array]",oe="[object AsyncFunction]",Z="[object Boolean]",pe="[object Date]",ne="[object DOMException]",re="[object Error]",me="[object Function]",ce="[object GeneratorFunction]",Ce="[object Map]",Ee="[object Number]",fe="[object Null]",ke="[object Object]",ve="[object Promise]",Re="[object Proxy]",ie="[object RegExp]",ue="[object Set]",we="[object String]",xe="[object Symbol]",Me="[object Undefined]",Oe="[object WeakMap]",Be="[object WeakSet]",Ke="[object ArrayBuffer]",Ye="[object DataView]",Fe="[object Float32Array]",mt="[object Float64Array]",Zt="[object Int8Array]",Pt="[object Int16Array]",Ve="[object Int32Array]",ht="[object Uint8Array]",Ne="[object Uint8ClampedArray]",Xe="[object Uint16Array]",vt="[object Uint32Array]",wt=/\b__p \+= '';/g,Tt=/\b(__p \+=) '' \+/g,qt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qt=/&(?:amp|lt|gt|quot|#39);/g,Sn=/[&<>"']/g,yn=RegExp(Qt.source),gt=RegExp(Sn.source),Ot=/<%-([\s\S]+?)%>/g,Mr=/<%([\s\S]+?)%>/g,dr=/<%=([\s\S]+?)%>/g,jl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ho=/^\w*$/,Tn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,en=/[\\^$.*+?()[\]{}|]/g,lr=RegExp(en.source),ar=/^\s+/,mo=/\s/,Ci=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ao=/\{\n\/\* \[wrapped with (.+)\] \*/,fs=/,? & /,go=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Zr=/[()=,{}\[\]\/\s]/,Ks=/\\(\\)?/g,$e=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ie=/\w*$/,rt=/^[-+]0x[0-9a-f]+$/i,Qe=/^0b[01]+$/i,St=/^\[object .+?Constructor\]$/,at=/^0o[0-7]+$/i,zt=/^(?:0|[1-9]\d*)$/,ps=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ya=/($^)/,Ez=/['\n\r\u2028\u2029\\]/g,Cm="\\ud800-\\udfff",kz="\\u0300-\\u036f",Iz="\\ufe20-\\ufe2f",Mz="\\u20d0-\\u20ff",NI=kz+Iz+Mz,BI="\\u2700-\\u27bf",jI="a-z\\xdf-\\xf6\\xf8-\\xff",_z="\\xac\\xb1\\xd7\\xf7",Tz="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",$z="\\u2000-\\u206f",Rz=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",zI="A-Z\\xc0-\\xd6\\xd8-\\xde",VI="\\ufe0e\\ufe0f",HI=_z+Tz+$z+Rz,ab="['’]",Oz="["+Cm+"]",UI="["+HI+"]",xm="["+NI+"]",WI="\\d+",Dz="["+BI+"]",GI="["+jI+"]",KI="[^"+Cm+HI+WI+BI+jI+zI+"]",cb="\\ud83c[\\udffb-\\udfff]",Az="(?:"+xm+"|"+cb+")",qI="[^"+Cm+"]",ub="(?:\\ud83c[\\udde6-\\uddff]){2}",db="[\\ud800-\\udbff][\\udc00-\\udfff]",Jc="["+zI+"]",YI="\\u200d",QI="(?:"+GI+"|"+KI+")",Lz="(?:"+Jc+"|"+KI+")",XI="(?:"+ab+"(?:d|ll|m|re|s|t|ve))?",ZI="(?:"+ab+"(?:D|LL|M|RE|S|T|VE))?",JI=Az+"?",eM="["+VI+"]?",Fz="(?:"+YI+"(?:"+[qI,ub,db].join("|")+")"+eM+JI+")*",Nz="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Bz="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",tM=eM+JI+Fz,jz="(?:"+[Dz,ub,db].join("|")+")"+tM,zz="(?:"+[qI+xm+"?",xm,ub,db,Oz].join("|")+")",Vz=RegExp(ab,"g"),Hz=RegExp(xm,"g"),fb=RegExp(cb+"(?="+cb+")|"+zz+tM,"g"),Uz=RegExp([Jc+"?"+GI+"+"+XI+"(?="+[UI,Jc,"$"].join("|")+")",Lz+"+"+ZI+"(?="+[UI,Jc+QI,"$"].join("|")+")",Jc+"?"+QI+"+"+XI,Jc+"+"+ZI,Bz,Nz,WI,jz].join("|"),"g"),Wz=RegExp("["+YI+Cm+NI+VI+"]"),Gz=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Kz=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],qz=-1,Pn={};Pn[Fe]=Pn[mt]=Pn[Zt]=Pn[Pt]=Pn[Ve]=Pn[ht]=Pn[Ne]=Pn[Xe]=Pn[vt]=!0,Pn[X]=Pn[ee]=Pn[Ke]=Pn[Z]=Pn[Ye]=Pn[pe]=Pn[re]=Pn[me]=Pn[Ce]=Pn[Ee]=Pn[ke]=Pn[ie]=Pn[ue]=Pn[we]=Pn[Oe]=!1;var bn={};bn[X]=bn[ee]=bn[Ke]=bn[Ye]=bn[Z]=bn[pe]=bn[Fe]=bn[mt]=bn[Zt]=bn[Pt]=bn[Ve]=bn[Ce]=bn[Ee]=bn[ke]=bn[ie]=bn[ue]=bn[we]=bn[xe]=bn[ht]=bn[Ne]=bn[Xe]=bn[vt]=!0,bn[re]=bn[me]=bn[Oe]=!1;var Yz={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Qz={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Xz={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Zz={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Jz=parseFloat,eV=parseInt,nM=typeof an=="object"&&an&&an.Object===Object&&an,tV=typeof self=="object"&&self&&self.Object===Object&&self,_r=nM||tV||Function("return this")(),pb=t&&!t.nodeType&&t,Qa=pb&&!0&&e&&!e.nodeType&&e,rM=Qa&&Qa.exports===pb,hb=rM&&nM.process,hs=function(){try{var he=Qa&&Qa.require&&Qa.require("util").types;return he||hb&&hb.binding&&hb.binding("util")}catch(Te){}}(),oM=hs&&hs.isArrayBuffer,sM=hs&&hs.isDate,iM=hs&&hs.isMap,lM=hs&&hs.isRegExp,aM=hs&&hs.isSet,cM=hs&&hs.isTypedArray;function Lo(he,Te,Pe){switch(Pe.length){case 0:return he.call(Te);case 1:return he.call(Te,Pe[0]);case 2:return he.call(Te,Pe[0],Pe[1]);case 3:return he.call(Te,Pe[0],Pe[1],Pe[2])}return he.apply(Te,Pe)}function nV(he,Te,Pe,lt){for(var It=-1,tn=he==null?0:he.length;++It<tn;){var fr=he[It];Te(lt,fr,Pe(fr),he)}return lt}function ms(he,Te){for(var Pe=-1,lt=he==null?0:he.length;++Pe<lt&&Te(he[Pe],Pe,he)!==!1;);return he}function rV(he,Te){for(var Pe=he==null?0:he.length;Pe--&&Te(he[Pe],Pe,he)!==!1;);return he}function uM(he,Te){for(var Pe=-1,lt=he==null?0:he.length;++Pe<lt;)if(!Te(he[Pe],Pe,he))return!1;return!0}function zl(he,Te){for(var Pe=-1,lt=he==null?0:he.length,It=0,tn=[];++Pe<lt;){var fr=he[Pe];Te(fr,Pe,he)&&(tn[It++]=fr)}return tn}function Sm(he,Te){var Pe=he==null?0:he.length;return!!Pe&&eu(he,Te,0)>-1}function mb(he,Te,Pe){for(var lt=-1,It=he==null?0:he.length;++lt<It;)if(Pe(Te,he[lt]))return!0;return!1}function $n(he,Te){for(var Pe=-1,lt=he==null?0:he.length,It=Array(lt);++Pe<lt;)It[Pe]=Te(he[Pe],Pe,he);return It}function Vl(he,Te){for(var Pe=-1,lt=Te.length,It=he.length;++Pe<lt;)he[It+Pe]=Te[Pe];return he}function gb(he,Te,Pe,lt){var It=-1,tn=he==null?0:he.length;for(lt&&tn&&(Pe=he[++It]);++It<tn;)Pe=Te(Pe,he[It],It,he);return Pe}function oV(he,Te,Pe,lt){var It=he==null?0:he.length;for(lt&&It&&(Pe=he[--It]);It--;)Pe=Te(Pe,he[It],It,he);return Pe}function vb(he,Te){for(var Pe=-1,lt=he==null?0:he.length;++Pe<lt;)if(Te(he[Pe],Pe,he))return!0;return!1}var sV=yb("length");function iV(he){return he.split("")}function lV(he){return he.match(go)||[]}function dM(he,Te,Pe){var lt;return Pe(he,function(It,tn,fr){if(Te(It,tn,fr))return lt=tn,!1}),lt}function Pm(he,Te,Pe,lt){for(var It=he.length,tn=Pe+(lt?1:-1);lt?tn--:++tn<It;)if(Te(he[tn],tn,he))return tn;return-1}function eu(he,Te,Pe){return Te===Te?bV(he,Te,Pe):Pm(he,fM,Pe)}function aV(he,Te,Pe,lt){for(var It=Pe-1,tn=he.length;++It<tn;)if(lt(he[It],Te))return It;return-1}function fM(he){return he!==he}function pM(he,Te){var Pe=he==null?0:he.length;return Pe?wb(he,Te)/Pe:H}function yb(he){return function(Te){return Te==null?n:Te[he]}}function bb(he){return function(Te){return he==null?n:he[Te]}}function hM(he,Te,Pe,lt,It){return It(he,function(tn,fr,vn){Pe=lt?(lt=!1,tn):Te(Pe,tn,fr,vn)}),Pe}function cV(he,Te){var Pe=he.length;for(he.sort(Te);Pe--;)he[Pe]=he[Pe].value;return he}function wb(he,Te){for(var Pe,lt=-1,It=he.length;++lt<It;){var tn=Te(he[lt]);tn!==n&&(Pe=Pe===n?tn:Pe+tn)}return Pe}function Cb(he,Te){for(var Pe=-1,lt=Array(he);++Pe<he;)lt[Pe]=Te(Pe);return lt}function uV(he,Te){return $n(Te,function(Pe){return[Pe,he[Pe]]})}function mM(he){return he&&he.slice(0,bM(he)+1).replace(ar,"")}function Fo(he){return function(Te){return he(Te)}}function xb(he,Te){return $n(Te,function(Pe){return he[Pe]})}function xf(he,Te){return he.has(Te)}function gM(he,Te){for(var Pe=-1,lt=he.length;++Pe<lt&&eu(Te,he[Pe],0)>-1;);return Pe}function vM(he,Te){for(var Pe=he.length;Pe--&&eu(Te,he[Pe],0)>-1;);return Pe}function dV(he,Te){for(var Pe=he.length,lt=0;Pe--;)he[Pe]===Te&&++lt;return lt}var fV=bb(Yz),pV=bb(Qz);function hV(he){return"\\"+Zz[he]}function mV(he,Te){return he==null?n:he[Te]}function tu(he){return Wz.test(he)}function gV(he){return Gz.test(he)}function vV(he){for(var Te,Pe=[];!(Te=he.next()).done;)Pe.push(Te.value);return Pe}function Sb(he){var Te=-1,Pe=Array(he.size);return he.forEach(function(lt,It){Pe[++Te]=[It,lt]}),Pe}function yM(he,Te){return function(Pe){return he(Te(Pe))}}function Hl(he,Te){for(var Pe=-1,lt=he.length,It=0,tn=[];++Pe<lt;){var fr=he[Pe];(fr===Te||fr===f)&&(he[Pe]=f,tn[It++]=Pe)}return tn}function Em(he){var Te=-1,Pe=Array(he.size);return he.forEach(function(lt){Pe[++Te]=lt}),Pe}function yV(he){var Te=-1,Pe=Array(he.size);return he.forEach(function(lt){Pe[++Te]=[lt,lt]}),Pe}function bV(he,Te,Pe){for(var lt=Pe-1,It=he.length;++lt<It;)if(he[lt]===Te)return lt;return-1}function wV(he,Te,Pe){for(var lt=Pe+1;lt--;)if(he[lt]===Te)return lt;return lt}function nu(he){return tu(he)?xV(he):sV(he)}function qs(he){return tu(he)?SV(he):iV(he)}function bM(he){for(var Te=he.length;Te--&&mo.test(he.charAt(Te)););return Te}var CV=bb(Xz);function xV(he){for(var Te=fb.lastIndex=0;fb.test(he);)++Te;return Te}function SV(he){return he.match(fb)||[]}function PV(he){return he.match(Uz)||[]}var EV=function he(Te){Te=Te==null?_r:ru.defaults(_r.Object(),Te,ru.pick(_r,Kz));var Pe=Te.Array,lt=Te.Date,It=Te.Error,tn=Te.Function,fr=Te.Math,vn=Te.Object,Pb=Te.RegExp,kV=Te.String,gs=Te.TypeError,km=Pe.prototype,IV=tn.prototype,ou=vn.prototype,Im=Te["__core-js_shared__"],Mm=IV.toString,cn=ou.hasOwnProperty,MV=0,wM=function(){var d=/[^.]+$/.exec(Im&&Im.keys&&Im.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}(),_m=ou.toString,_V=Mm.call(vn),TV=_r._,$V=Pb("^"+Mm.call(cn).replace(en,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Tm=rM?Te.Buffer:n,Ul=Te.Symbol,$m=Te.Uint8Array,CM=Tm?Tm.allocUnsafe:n,Rm=yM(vn.getPrototypeOf,vn),xM=vn.create,SM=ou.propertyIsEnumerable,Om=km.splice,PM=Ul?Ul.isConcatSpreadable:n,Sf=Ul?Ul.iterator:n,Xa=Ul?Ul.toStringTag:n,Dm=function(){try{var d=nc(vn,"defineProperty");return d({},"",{}),d}catch(g){}}(),RV=Te.clearTimeout!==_r.clearTimeout&&Te.clearTimeout,OV=lt&&lt.now!==_r.Date.now&&lt.now,DV=Te.setTimeout!==_r.setTimeout&&Te.setTimeout,Am=fr.ceil,Lm=fr.floor,Eb=vn.getOwnPropertySymbols,AV=Tm?Tm.isBuffer:n,EM=Te.isFinite,LV=km.join,FV=yM(vn.keys,vn),pr=fr.max,Fr=fr.min,NV=lt.now,BV=Te.parseInt,kM=fr.random,jV=km.reverse,kb=nc(Te,"DataView"),Pf=nc(Te,"Map"),Ib=nc(Te,"Promise"),su=nc(Te,"Set"),Ef=nc(Te,"WeakMap"),kf=nc(vn,"create"),Fm=Ef&&new Ef,iu={},zV=rc(kb),VV=rc(Pf),HV=rc(Ib),UV=rc(su),WV=rc(Ef),Nm=Ul?Ul.prototype:n,If=Nm?Nm.valueOf:n,IM=Nm?Nm.toString:n;function G(d){if(Hn(d)&&!Mt(d)&&!(d instanceof Wt)){if(d instanceof vs)return d;if(cn.call(d,"__wrapped__"))return M_(d)}return new vs(d)}var lu=function(){function d(){}return function(g){if(!Nn(g))return{};if(xM)return xM(g);d.prototype=g;var M=new d;return d.prototype=n,M}}();function Bm(){}function vs(d,g){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!g,this.__index__=0,this.__values__=n}G.templateSettings={escape:Ot,evaluate:Mr,interpolate:dr,variable:"",imports:{_:G}},G.prototype=Bm.prototype,G.prototype.constructor=G,vs.prototype=lu(Bm.prototype),vs.prototype.constructor=vs;function Wt(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function GV(){var d=new Wt(this.__wrapped__);return d.__actions__=vo(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=vo(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=vo(this.__views__),d}function KV(){if(this.__filtered__){var d=new Wt(this);d.__dir__=-1,d.__filtered__=!0}else d=this.clone(),d.__dir__*=-1;return d}function qV(){var d=this.__wrapped__.value(),g=this.__dir__,M=Mt(d),z=g<0,U=M?d.length:0,q=i9(0,U,this.__views__),te=q.start,ae=q.end,ge=ae-te,De=z?ae:te-1,Le=this.__iteratees__,je=Le.length,nt=0,pt=Fr(ge,this.__takeCount__);if(!M||!z&&U==ge&&pt==ge)return XM(d,this.__actions__);var Ct=[];e:for(;ge--&&nt<pt;){De+=g;for(var At=-1,xt=d[De];++At<je;){var Vt=Le[At],Kt=Vt.iteratee,jo=Vt.type,to=Kt(xt);if(jo==T)xt=to;else if(!to){if(jo==_)continue e;break e}}Ct[nt++]=xt}return Ct}Wt.prototype=lu(Bm.prototype),Wt.prototype.constructor=Wt;function Za(d){var g=-1,M=d==null?0:d.length;for(this.clear();++g<M;){var z=d[g];this.set(z[0],z[1])}}function YV(){this.__data__=kf?kf(null):{},this.size=0}function QV(d){var g=this.has(d)&&delete this.__data__[d];return this.size-=g?1:0,g}function XV(d){var g=this.__data__;if(kf){var M=g[d];return M===a?n:M}return cn.call(g,d)?g[d]:n}function ZV(d){var g=this.__data__;return kf?g[d]!==n:cn.call(g,d)}function JV(d,g){var M=this.__data__;return this.size+=this.has(d)?0:1,M[d]=kf&&g===n?a:g,this}Za.prototype.clear=YV,Za.prototype.delete=QV,Za.prototype.get=XV,Za.prototype.has=ZV,Za.prototype.set=JV;function Zi(d){var g=-1,M=d==null?0:d.length;for(this.clear();++g<M;){var z=d[g];this.set(z[0],z[1])}}function eH(){this.__data__=[],this.size=0}function tH(d){var g=this.__data__,M=jm(g,d);if(M<0)return!1;var z=g.length-1;return M==z?g.pop():Om.call(g,M,1),--this.size,!0}function nH(d){var g=this.__data__,M=jm(g,d);return M<0?n:g[M][1]}function rH(d){return jm(this.__data__,d)>-1}function oH(d,g){var M=this.__data__,z=jm(M,d);return z<0?(++this.size,M.push([d,g])):M[z][1]=g,this}Zi.prototype.clear=eH,Zi.prototype.delete=tH,Zi.prototype.get=nH,Zi.prototype.has=rH,Zi.prototype.set=oH;function Ji(d){var g=-1,M=d==null?0:d.length;for(this.clear();++g<M;){var z=d[g];this.set(z[0],z[1])}}function sH(){this.size=0,this.__data__={hash:new Za,map:new(Pf||Zi),string:new Za}}function iH(d){var g=Zm(this,d).delete(d);return this.size-=g?1:0,g}function lH(d){return Zm(this,d).get(d)}function aH(d){return Zm(this,d).has(d)}function cH(d,g){var M=Zm(this,d),z=M.size;return M.set(d,g),this.size+=M.size==z?0:1,this}Ji.prototype.clear=sH,Ji.prototype.delete=iH,Ji.prototype.get=lH,Ji.prototype.has=aH,Ji.prototype.set=cH;function Ja(d){var g=-1,M=d==null?0:d.length;for(this.__data__=new Ji;++g<M;)this.add(d[g])}function uH(d){return this.__data__.set(d,a),this}function dH(d){return this.__data__.has(d)}Ja.prototype.add=Ja.prototype.push=uH,Ja.prototype.has=dH;function Ys(d){var g=this.__data__=new Zi(d);this.size=g.size}function fH(){this.__data__=new Zi,this.size=0}function pH(d){var g=this.__data__,M=g.delete(d);return this.size=g.size,M}function hH(d){return this.__data__.get(d)}function mH(d){return this.__data__.has(d)}function gH(d,g){var M=this.__data__;if(M instanceof Zi){var z=M.__data__;if(!Pf||z.length<o-1)return z.push([d,g]),this.size=++M.size,this;M=this.__data__=new Ji(z)}return M.set(d,g),this.size=M.size,this}Ys.prototype.clear=fH,Ys.prototype.delete=pH,Ys.prototype.get=hH,Ys.prototype.has=mH,Ys.prototype.set=gH;function MM(d,g){var M=Mt(d),z=!M&&oc(d),U=!M&&!z&&Yl(d),q=!M&&!z&&!U&&du(d),te=M||z||U||q,ae=te?Cb(d.length,kV):[],ge=ae.length;for(var De in d)(g||cn.call(d,De))&&!(te&&(De=="length"||U&&(De=="offset"||De=="parent")||q&&(De=="buffer"||De=="byteLength"||De=="byteOffset")||rl(De,ge)))&&ae.push(De);return ae}function _M(d){var g=d.length;return g?d[Nb(0,g-1)]:n}function vH(d,g){return Jm(vo(d),ec(g,0,d.length))}function yH(d){return Jm(vo(d))}function Mb(d,g,M){(M!==n&&!Qs(d[g],M)||M===n&&!(g in d))&&el(d,g,M)}function Mf(d,g,M){var z=d[g];(!(cn.call(d,g)&&Qs(z,M))||M===n&&!(g in d))&&el(d,g,M)}function jm(d,g){for(var M=d.length;M--;)if(Qs(d[M][0],g))return M;return-1}function bH(d,g,M,z){return Wl(d,function(U,q,te){g(z,U,M(U),te)}),z}function TM(d,g){return d&&Si(g,yr(g),d)}function wH(d,g){return d&&Si(g,bo(g),d)}function el(d,g,M){g=="__proto__"&&Dm?Dm(d,g,{configurable:!0,enumerable:!0,value:M,writable:!0}):d[g]=M}function _b(d,g){for(var M=-1,z=g.length,U=Pe(z),q=d==null;++M<z;)U[M]=q?n:cw(d,g[M]);return U}function ec(d,g,M){return d===d&&(M!==n&&(d=d<=M?d:M),g!==n&&(d=d>=g?d:g)),d}function ys(d,g,M,z,U,q){var te,ae=g&p,ge=g&h,De=g&y;if(M&&(te=U?M(d,z,U,q):M(d)),te!==n)return te;if(!Nn(d))return d;var Le=Mt(d);if(Le){if(te=a9(d),!ae)return vo(d,te)}else{var je=Nr(d),nt=je==me||je==ce;if(Yl(d))return e_(d,ae);if(je==ke||je==X||nt&&!U){if(te=ge||nt?{}:b_(d),!ae)return ge?XH(d,wH(te,d)):QH(d,TM(te,d))}else{if(!bn[je])return U?d:{};te=c9(d,je,ae)}}q||(q=new Ys);var pt=q.get(d);if(pt)return pt;q.set(d,te),q_(d)?d.forEach(function(xt){te.add(ys(xt,g,M,xt,d,q))}):G_(d)&&d.forEach(function(xt,Vt){te.set(Vt,ys(xt,g,M,Vt,d,q))});var Ct=De?ge?Yb:qb:ge?bo:yr,At=Le?n:Ct(d);return ms(At||d,function(xt,Vt){At&&(Vt=xt,xt=d[Vt]),Mf(te,Vt,ys(xt,g,M,Vt,d,q))}),te}function CH(d){var g=yr(d);return function(M){return $M(M,d,g)}}function $M(d,g,M){var z=M.length;if(d==null)return!z;for(d=vn(d);z--;){var U=M[z],q=g[U],te=d[U];if(te===n&&!(U in d)||!q(te))return!1}return!0}function RM(d,g,M){if(typeof d!="function")throw new gs(i);return Af(function(){d.apply(n,M)},g)}function _f(d,g,M,z){var U=-1,q=Sm,te=!0,ae=d.length,ge=[],De=g.length;if(!ae)return ge;M&&(g=$n(g,Fo(M))),z?(q=mb,te=!1):g.length>=o&&(q=xf,te=!1,g=new Ja(g));e:for(;++U<ae;){var Le=d[U],je=M==null?Le:M(Le);if(Le=z||Le!==0?Le:0,te&&je===je){for(var nt=De;nt--;)if(g[nt]===je)continue e;ge.push(Le)}else q(g,je,z)||ge.push(Le)}return ge}var Wl=s_(xi),OM=s_($b,!0);function xH(d,g){var M=!0;return Wl(d,function(z,U,q){return M=!!g(z,U,q),M}),M}function zm(d,g,M){for(var z=-1,U=d.length;++z<U;){var q=d[z],te=g(q);if(te!=null&&(ae===n?te===te&&!Bo(te):M(te,ae)))var ae=te,ge=q}return ge}function SH(d,g,M,z){var U=d.length;for(M=Dt(M),M<0&&(M=-M>U?0:U+M),z=z===n||z>U?U:Dt(z),z<0&&(z+=U),z=M>z?0:Q_(z);M<z;)d[M++]=g;return d}function DM(d,g){var M=[];return Wl(d,function(z,U,q){g(z,U,q)&&M.push(z)}),M}function Tr(d,g,M,z,U){var q=-1,te=d.length;for(M||(M=d9),U||(U=[]);++q<te;){var ae=d[q];g>0&&M(ae)?g>1?Tr(ae,g-1,M,z,U):Vl(U,ae):z||(U[U.length]=ae)}return U}var Tb=i_(),AM=i_(!0);function xi(d,g){return d&&Tb(d,g,yr)}function $b(d,g){return d&&AM(d,g,yr)}function Vm(d,g){return zl(g,function(M){return ol(d[M])})}function tc(d,g){g=Kl(g,d);for(var M=0,z=g.length;d!=null&&M<z;)d=d[Pi(g[M++])];return M&&M==z?d:n}function LM(d,g,M){var z=g(d);return Mt(d)?z:Vl(z,M(d))}function Jr(d){return d==null?d===n?Me:fe:Xa&&Xa in vn(d)?s9(d):y9(d)}function Rb(d,g){return d>g}function PH(d,g){return d!=null&&cn.call(d,g)}function EH(d,g){return d!=null&&g in vn(d)}function kH(d,g,M){return d>=Fr(g,M)&&d<pr(g,M)}function Ob(d,g,M){for(var z=M?mb:Sm,U=d[0].length,q=d.length,te=q,ae=Pe(q),ge=1/0,De=[];te--;){var Le=d[te];te&&g&&(Le=$n(Le,Fo(g))),ge=Fr(Le.length,ge),ae[te]=!M&&(g||U>=120&&Le.length>=120)?new Ja(te&&Le):n}Le=d[0];var je=-1,nt=ae[0];e:for(;++je<U&&De.length<ge;){var pt=Le[je],Ct=g?g(pt):pt;if(pt=M||pt!==0?pt:0,!(nt?xf(nt,Ct):z(De,Ct,M))){for(te=q;--te;){var At=ae[te];if(!(At?xf(At,Ct):z(d[te],Ct,M)))continue e}nt&&nt.push(Ct),De.push(pt)}}return De}function IH(d,g,M,z){return xi(d,function(U,q,te){g(z,M(U),q,te)}),z}function Tf(d,g,M){g=Kl(g,d),d=S_(d,g);var z=d==null?d:d[Pi(ws(g))];return z==null?n:Lo(z,d,M)}function FM(d){return Hn(d)&&Jr(d)==X}function MH(d){return Hn(d)&&Jr(d)==Ke}function _H(d){return Hn(d)&&Jr(d)==pe}function $f(d,g,M,z,U){return d===g?!0:d==null||g==null||!Hn(d)&&!Hn(g)?d!==d&&g!==g:TH(d,g,M,z,$f,U)}function TH(d,g,M,z,U,q){var te=Mt(d),ae=Mt(g),ge=te?ee:Nr(d),De=ae?ee:Nr(g);ge=ge==X?ke:ge,De=De==X?ke:De;var Le=ge==ke,je=De==ke,nt=ge==De;if(nt&&Yl(d)){if(!Yl(g))return!1;te=!0,Le=!1}if(nt&&!Le)return q||(q=new Ys),te||du(d)?g_(d,g,M,z,U,q):r9(d,g,ge,M,z,U,q);if(!(M&v)){var pt=Le&&cn.call(d,"__wrapped__"),Ct=je&&cn.call(g,"__wrapped__");if(pt||Ct){var At=pt?d.value():d,xt=Ct?g.value():g;return q||(q=new Ys),U(At,xt,M,z,q)}}return nt?(q||(q=new Ys),o9(d,g,M,z,U,q)):!1}function $H(d){return Hn(d)&&Nr(d)==Ce}function Db(d,g,M,z){var U=M.length,q=U,te=!z;if(d==null)return!q;for(d=vn(d);U--;){var ae=M[U];if(te&&ae[2]?ae[1]!==d[ae[0]]:!(ae[0]in d))return!1}for(;++U<q;){ae=M[U];var ge=ae[0],De=d[ge],Le=ae[1];if(te&&ae[2]){if(De===n&&!(ge in d))return!1}else{var je=new Ys;if(z)var nt=z(De,Le,ge,d,g,je);if(!(nt===n?$f(Le,De,v|m,z,je):nt))return!1}}return!0}function NM(d){if(!Nn(d)||p9(d))return!1;var g=ol(d)?$V:St;return g.test(rc(d))}function RH(d){return Hn(d)&&Jr(d)==ie}function OH(d){return Hn(d)&&Nr(d)==ue}function DH(d){return Hn(d)&&sg(d.length)&&!!Pn[Jr(d)]}function BM(d){return typeof d=="function"?d:d==null?wo:typeof d=="object"?Mt(d)?VM(d[0],d[1]):zM(d):lT(d)}function Ab(d){if(!Df(d))return FV(d);var g=[];for(var M in vn(d))cn.call(d,M)&&M!="constructor"&&g.push(M);return g}function AH(d){if(!Nn(d))return v9(d);var g=Df(d),M=[];for(var z in d)z=="constructor"&&(g||!cn.call(d,z))||M.push(z);return M}function Lb(d,g){return d<g}function jM(d,g){var M=-1,z=yo(d)?Pe(d.length):[];return Wl(d,function(U,q,te){z[++M]=g(U,q,te)}),z}function zM(d){var g=Xb(d);return g.length==1&&g[0][2]?C_(g[0][0],g[0][1]):function(M){return M===d||Db(M,d,g)}}function VM(d,g){return Jb(d)&&w_(g)?C_(Pi(d),g):function(M){var z=cw(M,d);return z===n&&z===g?uw(M,d):$f(g,z,v|m)}}function Hm(d,g,M,z,U){d!==g&&Tb(g,function(q,te){if(U||(U=new Ys),Nn(q))LH(d,g,te,M,Hm,z,U);else{var ae=z?z(tw(d,te),q,te+"",d,g,U):n;ae===n&&(ae=q),Mb(d,te,ae)}},bo)}function LH(d,g,M,z,U,q,te){var ae=tw(d,M),ge=tw(g,M),De=te.get(ge);if(De){Mb(d,M,De);return}var Le=q?q(ae,ge,M+"",d,g,te):n,je=Le===n;if(je){var nt=Mt(ge),pt=!nt&&Yl(ge),Ct=!nt&&!pt&&du(ge);Le=ge,nt||pt||Ct?Mt(ae)?Le=ae:Jn(ae)?Le=vo(ae):pt?(je=!1,Le=e_(ge,!0)):Ct?(je=!1,Le=t_(ge,!0)):Le=[]:Lf(ge)||oc(ge)?(Le=ae,oc(ae)?Le=X_(ae):(!Nn(ae)||ol(ae))&&(Le=b_(ge))):je=!1}je&&(te.set(ge,Le),U(Le,ge,z,q,te),te.delete(ge)),Mb(d,M,Le)}function HM(d,g){var M=d.length;if(M)return g+=g<0?M:0,rl(g,M)?d[g]:n}function UM(d,g,M){g.length?g=$n(g,function(q){return Mt(q)?function(te){return tc(te,q.length===1?q[0]:q)}:q}):g=[wo];var z=-1;g=$n(g,Fo(yt()));var U=jM(d,function(q,te,ae){var ge=$n(g,function(De){return De(q)});return{criteria:ge,index:++z,value:q}});return cV(U,function(q,te){return YH(q,te,M)})}function FH(d,g){return WM(d,g,function(M,z){return uw(d,z)})}function WM(d,g,M){for(var z=-1,U=g.length,q={};++z<U;){var te=g[z],ae=tc(d,te);M(ae,te)&&Rf(q,Kl(te,d),ae)}return q}function NH(d){return function(g){return tc(g,d)}}function Fb(d,g,M,z){var U=z?aV:eu,q=-1,te=g.length,ae=d;for(d===g&&(g=vo(g)),M&&(ae=$n(d,Fo(M)));++q<te;)for(var ge=0,De=g[q],Le=M?M(De):De;(ge=U(ae,Le,ge,z))>-1;)ae!==d&&Om.call(ae,ge,1),Om.call(d,ge,1);return d}function GM(d,g){for(var M=d?g.length:0,z=M-1;M--;){var U=g[M];if(M==z||U!==q){var q=U;rl(U)?Om.call(d,U,1):zb(d,U)}}return d}function Nb(d,g){return d+Lm(kM()*(g-d+1))}function BH(d,g,M,z){for(var U=-1,q=pr(Am((g-d)/(M||1)),0),te=Pe(q);q--;)te[z?q:++U]=d,d+=M;return te}function Bb(d,g){var M="";if(!d||g<1||g>A)return M;do g%2&&(M+=d),g=Lm(g/2),g&&(d+=d);while(g);return M}function Bt(d,g){return nw(x_(d,g,wo),d+"")}function jH(d){return _M(fu(d))}function zH(d,g){var M=fu(d);return Jm(M,ec(g,0,M.length))}function Rf(d,g,M,z){if(!Nn(d))return d;g=Kl(g,d);for(var U=-1,q=g.length,te=q-1,ae=d;ae!=null&&++U<q;){var ge=Pi(g[U]),De=M;if(ge==="__proto__"||ge==="constructor"||ge==="prototype")return d;if(U!=te){var Le=ae[ge];De=z?z(Le,ge,ae):n,De===n&&(De=Nn(Le)?Le:rl(g[U+1])?[]:{})}Mf(ae,ge,De),ae=ae[ge]}return d}var KM=Fm?function(d,g){return Fm.set(d,g),d}:wo,VH=Dm?function(d,g){return Dm(d,"toString",{configurable:!0,enumerable:!1,value:fw(g),writable:!0})}:wo;function HH(d){return Jm(fu(d))}function bs(d,g,M){var z=-1,U=d.length;g<0&&(g=-g>U?0:U+g),M=M>U?U:M,M<0&&(M+=U),U=g>M?0:M-g>>>0,g>>>=0;for(var q=Pe(U);++z<U;)q[z]=d[z+g];return q}function UH(d,g){var M;return Wl(d,function(z,U,q){return M=g(z,U,q),!M}),!!M}function Um(d,g,M){var z=0,U=d==null?z:d.length;if(typeof g=="number"&&g===g&&U<=J){for(;z<U;){var q=z+U>>>1,te=d[q];te!==null&&!Bo(te)&&(M?te<=g:te<g)?z=q+1:U=q}return U}return jb(d,g,wo,M)}function jb(d,g,M,z){var U=0,q=d==null?0:d.length;if(q===0)return 0;g=M(g);for(var te=g!==g,ae=g===null,ge=Bo(g),De=g===n;U<q;){var Le=Lm((U+q)/2),je=M(d[Le]),nt=je!==n,pt=je===null,Ct=je===je,At=Bo(je);if(te)var xt=z||Ct;else De?xt=Ct&&(z||nt):ae?xt=Ct&&nt&&(z||!pt):ge?xt=Ct&&nt&&!pt&&(z||!At):pt||At?xt=!1:xt=z?je<=g:je<g;xt?U=Le+1:q=Le}return Fr(q,Y)}function qM(d,g){for(var M=-1,z=d.length,U=0,q=[];++M<z;){var te=d[M],ae=g?g(te):te;if(!M||!Qs(ae,ge)){var ge=ae;q[U++]=te===0?0:te}}return q}function YM(d){return typeof d=="number"?d:Bo(d)?H:+d}function No(d){if(typeof d=="string")return d;if(Mt(d))return $n(d,No)+"";if(Bo(d))return IM?IM.call(d):"";var g=d+"";return g=="0"&&1/d==-V?"-0":g}function Gl(d,g,M){var z=-1,U=Sm,q=d.length,te=!0,ae=[],ge=ae;if(M)te=!1,U=mb;else if(q>=o){var De=g?null:t9(d);if(De)return Em(De);te=!1,U=xf,ge=new Ja}else ge=g?[]:ae;e:for(;++z<q;){var Le=d[z],je=g?g(Le):Le;if(Le=M||Le!==0?Le:0,te&&je===je){for(var nt=ge.length;nt--;)if(ge[nt]===je)continue e;g&&ge.push(je),ae.push(Le)}else U(ge,je,M)||(ge!==ae&&ge.push(je),ae.push(Le))}return ae}function zb(d,g){return g=Kl(g,d),d=S_(d,g),d==null||delete d[Pi(ws(g))]}function QM(d,g,M,z){return Rf(d,g,M(tc(d,g)),z)}function Wm(d,g,M,z){for(var U=d.length,q=z?U:-1;(z?q--:++q<U)&&g(d[q],q,d););return M?bs(d,z?0:q,z?q+1:U):bs(d,z?q+1:0,z?U:q)}function XM(d,g){var M=d;return M instanceof Wt&&(M=M.value()),gb(g,function(z,U){return U.func.apply(U.thisArg,Vl([z],U.args))},M)}function Vb(d,g,M){var z=d.length;if(z<2)return z?Gl(d[0]):[];for(var U=-1,q=Pe(z);++U<z;)for(var te=d[U],ae=-1;++ae<z;)ae!=U&&(q[U]=_f(q[U]||te,d[ae],g,M));return Gl(Tr(q,1),g,M)}function ZM(d,g,M){for(var z=-1,U=d.length,q=g.length,te={};++z<U;){var ae=z<q?g[z]:n;M(te,d[z],ae)}return te}function Hb(d){return Jn(d)?d:[]}function Ub(d){return typeof d=="function"?d:wo}function Kl(d,g){return Mt(d)?d:Jb(d,g)?[d]:I_(ln(d))}var WH=Bt;function ql(d,g,M){var z=d.length;return M=M===n?z:M,!g&&M>=z?d:bs(d,g,M)}var JM=RV||function(d){return _r.clearTimeout(d)};function e_(d,g){if(g)return d.slice();var M=d.length,z=CM?CM(M):new d.constructor(M);return d.copy(z),z}function Wb(d){var g=new d.constructor(d.byteLength);return new $m(g).set(new $m(d)),g}function GH(d,g){var M=g?Wb(d.buffer):d.buffer;return new d.constructor(M,d.byteOffset,d.byteLength)}function KH(d){var g=new d.constructor(d.source,Ie.exec(d));return g.lastIndex=d.lastIndex,g}function qH(d){return If?vn(If.call(d)):{}}function t_(d,g){var M=g?Wb(d.buffer):d.buffer;return new d.constructor(M,d.byteOffset,d.length)}function n_(d,g){if(d!==g){var M=d!==n,z=d===null,U=d===d,q=Bo(d),te=g!==n,ae=g===null,ge=g===g,De=Bo(g);if(!ae&&!De&&!q&&d>g||q&&te&&ge&&!ae&&!De||z&&te&&ge||!M&&ge||!U)return 1;if(!z&&!q&&!De&&d<g||De&&M&&U&&!z&&!q||ae&&M&&U||!te&&U||!ge)return-1}return 0}function YH(d,g,M){for(var z=-1,U=d.criteria,q=g.criteria,te=U.length,ae=M.length;++z<te;){var ge=n_(U[z],q[z]);if(ge){if(z>=ae)return ge;var De=M[z];return ge*(De=="desc"?-1:1)}}return d.index-g.index}function r_(d,g,M,z){for(var U=-1,q=d.length,te=M.length,ae=-1,ge=g.length,De=pr(q-te,0),Le=Pe(ge+De),je=!z;++ae<ge;)Le[ae]=g[ae];for(;++U<te;)(je||U<q)&&(Le[M[U]]=d[U]);for(;De--;)Le[ae++]=d[U++];return Le}function o_(d,g,M,z){for(var U=-1,q=d.length,te=-1,ae=M.length,ge=-1,De=g.length,Le=pr(q-ae,0),je=Pe(Le+De),nt=!z;++U<Le;)je[U]=d[U];for(var pt=U;++ge<De;)je[pt+ge]=g[ge];for(;++te<ae;)(nt||U<q)&&(je[pt+M[te]]=d[U++]);return je}function vo(d,g){var M=-1,z=d.length;for(g||(g=Pe(z));++M<z;)g[M]=d[M];return g}function Si(d,g,M,z){var U=!M;M||(M={});for(var q=-1,te=g.length;++q<te;){var ae=g[q],ge=z?z(M[ae],d[ae],ae,M,d):n;ge===n&&(ge=d[ae]),U?el(M,ae,ge):Mf(M,ae,ge)}return M}function QH(d,g){return Si(d,Zb(d),g)}function XH(d,g){return Si(d,v_(d),g)}function Gm(d,g){return function(M,z){var U=Mt(M)?nV:bH,q=g?g():{};return U(M,d,yt(z,2),q)}}function au(d){return Bt(function(g,M){var z=-1,U=M.length,q=U>1?M[U-1]:n,te=U>2?M[2]:n;for(q=d.length>3&&typeof q=="function"?(U--,q):n,te&&eo(M[0],M[1],te)&&(q=U<3?n:q,U=1),g=vn(g);++z<U;){var ae=M[z];ae&&d(g,ae,z,q)}return g})}function s_(d,g){return function(M,z){if(M==null)return M;if(!yo(M))return d(M,z);for(var U=M.length,q=g?U:-1,te=vn(M);(g?q--:++q<U)&&z(te[q],q,te)!==!1;);return M}}function i_(d){return function(g,M,z){for(var U=-1,q=vn(g),te=z(g),ae=te.length;ae--;){var ge=te[d?ae:++U];if(M(q[ge],ge,q)===!1)break}return g}}function ZH(d,g,M){var z=g&C,U=Of(d);function q(){var te=this&&this!==_r&&this instanceof q?U:d;return te.apply(z?M:this,arguments)}return q}function l_(d){return function(g){g=ln(g);var M=tu(g)?qs(g):n,z=M?M[0]:g.charAt(0),U=M?ql(M,1).join(""):g.slice(1);return z[d]()+U}}function cu(d){return function(g){return gb(sT(oT(g).replace(Vz,"")),d,"")}}function Of(d){return function(){var g=arguments;switch(g.length){case 0:return new d;case 1:return new d(g[0]);case 2:return new d(g[0],g[1]);case 3:return new d(g[0],g[1],g[2]);case 4:return new d(g[0],g[1],g[2],g[3]);case 5:return new d(g[0],g[1],g[2],g[3],g[4]);case 6:return new d(g[0],g[1],g[2],g[3],g[4],g[5]);case 7:return new d(g[0],g[1],g[2],g[3],g[4],g[5],g[6])}var M=lu(d.prototype),z=d.apply(M,g);return Nn(z)?z:M}}function JH(d,g,M){var z=Of(d);function U(){for(var q=arguments.length,te=Pe(q),ae=q,ge=uu(U);ae--;)te[ae]=arguments[ae];var De=q<3&&te[0]!==ge&&te[q-1]!==ge?[]:Hl(te,ge);if(q-=De.length,q<M)return f_(d,g,Km,U.placeholder,n,te,De,n,n,M-q);var Le=this&&this!==_r&&this instanceof U?z:d;return Lo(Le,this,te)}return U}function a_(d){return function(g,M,z){var U=vn(g);if(!yo(g)){var q=yt(M,3);g=yr(g),M=function(ae){return q(U[ae],ae,U)}}var te=d(g,M,z);return te>-1?U[q?g[te]:te]:n}}function c_(d){return nl(function(g){var M=g.length,z=M,U=vs.prototype.thru;for(d&&g.reverse();z--;){var q=g[z];if(typeof q!="function")throw new gs(i);if(U&&!te&&Xm(q)=="wrapper")var te=new vs([],!0)}for(z=te?z:M;++z<M;){q=g[z];var ae=Xm(q),ge=ae=="wrapper"?Qb(q):n;ge&&ew(ge[0])&&ge[1]==(I|x|k|R)&&!ge[4].length&&ge[9]==1?te=te[Xm(ge[0])].apply(te,ge[3]):te=q.length==1&&ew(q)?te[ae]():te.thru(q)}return function(){var De=arguments,Le=De[0];if(te&&De.length==1&&Mt(Le))return te.plant(Le).value();for(var je=0,nt=M?g[je].apply(this,De):Le;++je<M;)nt=g[je].call(this,nt);return nt}})}function Km(d,g,M,z,U,q,te,ae,ge,De){var Le=g&I,je=g&C,nt=g&w,pt=g&(x|P),Ct=g&O,At=nt?n:Of(d);function xt(){for(var Vt=arguments.length,Kt=Pe(Vt),jo=Vt;jo--;)Kt[jo]=arguments[jo];if(pt)var to=uu(xt),zo=dV(Kt,to);if(z&&(Kt=r_(Kt,z,U,pt)),q&&(Kt=o_(Kt,q,te,pt)),Vt-=zo,pt&&Vt<De){var er=Hl(Kt,to);return f_(d,g,Km,xt.placeholder,M,Kt,er,ae,ge,De-Vt)}var Xs=je?M:this,il=nt?Xs[d]:d;return Vt=Kt.length,ae?Kt=b9(Kt,ae):Ct&&Vt>1&&Kt.reverse(),Le&&ge<Vt&&(Kt.length=ge),this&&this!==_r&&this instanceof xt&&(il=At||Of(il)),il.apply(Xs,Kt)}return xt}function u_(d,g){return function(M,z){return IH(M,d,g(z),{})}}function qm(d,g){return function(M,z){var U;if(M===n&&z===n)return g;if(M!==n&&(U=M),z!==n){if(U===n)return z;typeof M=="string"||typeof z=="string"?(M=No(M),z=No(z)):(M=YM(M),z=YM(z)),U=d(M,z)}return U}}function Gb(d){return nl(function(g){return g=$n(g,Fo(yt())),Bt(function(M){var z=this;return d(g,function(U){return Lo(U,z,M)})})})}function Ym(d,g){g=g===n?" ":No(g);var M=g.length;if(M<2)return M?Bb(g,d):g;var z=Bb(g,Am(d/nu(g)));return tu(g)?ql(qs(z),0,d).join(""):z.slice(0,d)}function e9(d,g,M,z){var U=g&C,q=Of(d);function te(){for(var ae=-1,ge=arguments.length,De=-1,Le=z.length,je=Pe(Le+ge),nt=this&&this!==_r&&this instanceof te?q:d;++De<Le;)je[De]=z[De];for(;ge--;)je[De++]=arguments[++ae];return Lo(nt,U?M:this,je)}return te}function d_(d){return function(g,M,z){return z&&typeof z!="number"&&eo(g,M,z)&&(M=z=n),g=sl(g),M===n?(M=g,g=0):M=sl(M),z=z===n?g<M?1:-1:sl(z),BH(g,M,z,d)}}function Qm(d){return function(g,M){return typeof g=="string"&&typeof M=="string"||(g=Cs(g),M=Cs(M)),d(g,M)}}function f_(d,g,M,z,U,q,te,ae,ge,De){var Le=g&x,je=Le?te:n,nt=Le?n:te,pt=Le?q:n,Ct=Le?n:q;g|=Le?k:E,g&=~(Le?E:k),g&b||(g&=~(C|w));var At=[d,g,U,pt,je,Ct,nt,ae,ge,De],xt=M.apply(n,At);return ew(d)&&P_(xt,At),xt.placeholder=z,E_(xt,d,g)}function Kb(d){var g=fr[d];return function(M,z){if(M=Cs(M),z=z==null?0:Fr(Dt(z),292),z&&EM(M)){var U=(ln(M)+"e").split("e"),q=g(U[0]+"e"+(+U[1]+z));return U=(ln(q)+"e").split("e"),+(U[0]+"e"+(+U[1]-z))}return g(M)}}var t9=su&&1/Em(new su([,-0]))[1]==V?function(d){return new su(d)}:mw;function p_(d){return function(g){var M=Nr(g);return M==Ce?Sb(g):M==ue?yV(g):uV(g,d(g))}}function tl(d,g,M,z,U,q,te,ae){var ge=g&w;if(!ge&&typeof d!="function")throw new gs(i);var De=z?z.length:0;if(De||(g&=~(k|E),z=U=n),te=te===n?te:pr(Dt(te),0),ae=ae===n?ae:Dt(ae),De-=U?U.length:0,g&E){var Le=z,je=U;z=U=n}var nt=ge?n:Qb(d),pt=[d,g,M,z,U,Le,je,q,te,ae];if(nt&&g9(pt,nt),d=pt[0],g=pt[1],M=pt[2],z=pt[3],U=pt[4],ae=pt[9]=pt[9]===n?ge?0:d.length:pr(pt[9]-De,0),!ae&&g&(x|P)&&(g&=~(x|P)),!g||g==C)var Ct=ZH(d,g,M);else g==x||g==P?Ct=JH(d,g,ae):(g==k||g==(C|k))&&!U.length?Ct=e9(d,g,M,z):Ct=Km.apply(n,pt);var At=nt?KM:P_;return E_(At(Ct,pt),d,g)}function h_(d,g,M,z){return d===n||Qs(d,ou[M])&&!cn.call(z,M)?g:d}function m_(d,g,M,z,U,q){return Nn(d)&&Nn(g)&&(q.set(g,d),Hm(d,g,n,m_,q),q.delete(g)),d}function n9(d){return Lf(d)?n:d}function g_(d,g,M,z,U,q){var te=M&v,ae=d.length,ge=g.length;if(ae!=ge&&!(te&&ge>ae))return!1;var De=q.get(d),Le=q.get(g);if(De&&Le)return De==g&&Le==d;var je=-1,nt=!0,pt=M&m?new Ja:n;for(q.set(d,g),q.set(g,d);++je<ae;){var Ct=d[je],At=g[je];if(z)var xt=te?z(At,Ct,je,g,d,q):z(Ct,At,je,d,g,q);if(xt!==n){if(xt)continue;nt=!1;break}if(pt){if(!vb(g,function(Vt,Kt){if(!xf(pt,Kt)&&(Ct===Vt||U(Ct,Vt,M,z,q)))return pt.push(Kt)})){nt=!1;break}}else if(!(Ct===At||U(Ct,At,M,z,q))){nt=!1;break}}return q.delete(d),q.delete(g),nt}function r9(d,g,M,z,U,q,te){switch(M){case Ye:if(d.byteLength!=g.byteLength||d.byteOffset!=g.byteOffset)return!1;d=d.buffer,g=g.buffer;case Ke:return!(d.byteLength!=g.byteLength||!q(new $m(d),new $m(g)));case Z:case pe:case Ee:return Qs(+d,+g);case re:return d.name==g.name&&d.message==g.message;case ie:case we:return d==g+"";case Ce:var ae=Sb;case ue:var ge=z&v;if(ae||(ae=Em),d.size!=g.size&&!ge)return!1;var De=te.get(d);if(De)return De==g;z|=m,te.set(d,g);var Le=g_(ae(d),ae(g),z,U,q,te);return te.delete(d),Le;case xe:if(If)return If.call(d)==If.call(g)}return!1}function o9(d,g,M,z,U,q){var te=M&v,ae=qb(d),ge=ae.length,De=qb(g),Le=De.length;if(ge!=Le&&!te)return!1;for(var je=ge;je--;){var nt=ae[je];if(!(te?nt in g:cn.call(g,nt)))return!1}var pt=q.get(d),Ct=q.get(g);if(pt&&Ct)return pt==g&&Ct==d;var At=!0;q.set(d,g),q.set(g,d);for(var xt=te;++je<ge;){nt=ae[je];var Vt=d[nt],Kt=g[nt];if(z)var jo=te?z(Kt,Vt,nt,g,d,q):z(Vt,Kt,nt,d,g,q);if(!(jo===n?Vt===Kt||U(Vt,Kt,M,z,q):jo)){At=!1;break}xt||(xt=nt=="constructor")}if(At&&!xt){var to=d.constructor,zo=g.constructor;to!=zo&&"constructor"in d&&"constructor"in g&&!(typeof to=="function"&&to instanceof to&&typeof zo=="function"&&zo instanceof zo)&&(At=!1)}return q.delete(d),q.delete(g),At}function nl(d){return nw(x_(d,n,$_),d+"")}function qb(d){return LM(d,yr,Zb)}function Yb(d){return LM(d,bo,v_)}var Qb=Fm?function(d){return Fm.get(d)}:mw;function Xm(d){for(var g=d.name+"",M=iu[g],z=cn.call(iu,g)?M.length:0;z--;){var U=M[z],q=U.func;if(q==null||q==d)return U.name}return g}function uu(d){var g=cn.call(G,"placeholder")?G:d;return g.placeholder}function yt(){var d=G.iteratee||pw;return d=d===pw?BM:d,arguments.length?d(arguments[0],arguments[1]):d}function Zm(d,g){var M=d.__data__;return f9(g)?M[typeof g=="string"?"string":"hash"]:M.map}function Xb(d){for(var g=yr(d),M=g.length;M--;){var z=g[M],U=d[z];g[M]=[z,U,w_(U)]}return g}function nc(d,g){var M=mV(d,g);return NM(M)?M:n}function s9(d){var g=cn.call(d,Xa),M=d[Xa];try{d[Xa]=n;var z=!0}catch(q){}var U=_m.call(d);return z&&(g?d[Xa]=M:delete d[Xa]),U}var Zb=Eb?function(d){return d==null?[]:(d=vn(d),zl(Eb(d),function(g){return SM.call(d,g)}))}:gw,v_=Eb?function(d){for(var g=[];d;)Vl(g,Zb(d)),d=Rm(d);return g}:gw,Nr=Jr;(kb&&Nr(new kb(new ArrayBuffer(1)))!=Ye||Pf&&Nr(new Pf)!=Ce||Ib&&Nr(Ib.resolve())!=ve||su&&Nr(new su)!=ue||Ef&&Nr(new Ef)!=Oe)&&(Nr=function(d){var g=Jr(d),M=g==ke?d.constructor:n,z=M?rc(M):"";if(z)switch(z){case zV:return Ye;case VV:return Ce;case HV:return ve;case UV:return ue;case WV:return Oe}return g});function i9(d,g,M){for(var z=-1,U=M.length;++z<U;){var q=M[z],te=q.size;switch(q.type){case"drop":d+=te;break;case"dropRight":g-=te;break;case"take":g=Fr(g,d+te);break;case"takeRight":d=pr(d,g-te);break}}return{start:d,end:g}}function l9(d){var g=d.match(Ao);return g?g[1].split(fs):[]}function y_(d,g,M){g=Kl(g,d);for(var z=-1,U=g.length,q=!1;++z<U;){var te=Pi(g[z]);if(!(q=d!=null&&M(d,te)))break;d=d[te]}return q||++z!=U?q:(U=d==null?0:d.length,!!U&&sg(U)&&rl(te,U)&&(Mt(d)||oc(d)))}function a9(d){var g=d.length,M=new d.constructor(g);return g&&typeof d[0]=="string"&&cn.call(d,"index")&&(M.index=d.index,M.input=d.input),M}function b_(d){return typeof d.constructor=="function"&&!Df(d)?lu(Rm(d)):{}}function c9(d,g,M){var z=d.constructor;switch(g){case Ke:return Wb(d);case Z:case pe:return new z(+d);case Ye:return GH(d,M);case Fe:case mt:case Zt:case Pt:case Ve:case ht:case Ne:case Xe:case vt:return t_(d,M);case Ce:return new z;case Ee:case we:return new z(d);case ie:return KH(d);case ue:return new z;case xe:return qH(d)}}function u9(d,g){var M=g.length;if(!M)return d;var z=M-1;return g[z]=(M>1?"& ":"")+g[z],g=g.join(M>2?", ":" "),d.replace(Ci,`{
301
+ /* [wrapped with `+g+`] */
302
+ `)}function d9(d){return Mt(d)||oc(d)||!!(PM&&d&&d[PM])}function rl(d,g){var M=typeof d;return g=g==null?A:g,!!g&&(M=="number"||M!="symbol"&&zt.test(d))&&d>-1&&d%1==0&&d<g}function eo(d,g,M){if(!Nn(M))return!1;var z=typeof g;return(z=="number"?yo(M)&&rl(g,M.length):z=="string"&&g in M)?Qs(M[g],d):!1}function Jb(d,g){if(Mt(d))return!1;var M=typeof d;return M=="number"||M=="symbol"||M=="boolean"||d==null||Bo(d)?!0:ho.test(d)||!jl.test(d)||g!=null&&d in vn(g)}function f9(d){var g=typeof d;return g=="string"||g=="number"||g=="symbol"||g=="boolean"?d!=="__proto__":d===null}function ew(d){var g=Xm(d),M=G[g];if(typeof M!="function"||!(g in Wt.prototype))return!1;if(d===M)return!0;var z=Qb(M);return!!z&&d===z[0]}function p9(d){return!!wM&&wM in d}var h9=Im?ol:vw;function Df(d){var g=d&&d.constructor,M=typeof g=="function"&&g.prototype||ou;return d===M}function w_(d){return d===d&&!Nn(d)}function C_(d,g){return function(M){return M==null?!1:M[d]===g&&(g!==n||d in vn(M))}}function m9(d){var g=rg(d,function(z){return M.size===c&&M.clear(),z}),M=g.cache;return g}function g9(d,g){var M=d[1],z=g[1],U=M|z,q=U<(C|w|I),te=z==I&&M==x||z==I&&M==R&&d[7].length<=g[8]||z==(I|R)&&g[7].length<=g[8]&&M==x;if(!(q||te))return d;z&C&&(d[2]=g[2],U|=M&C?0:b);var ae=g[3];if(ae){var ge=d[3];d[3]=ge?r_(ge,ae,g[4]):ae,d[4]=ge?Hl(d[3],f):g[4]}return ae=g[5],ae&&(ge=d[5],d[5]=ge?o_(ge,ae,g[6]):ae,d[6]=ge?Hl(d[5],f):g[6]),ae=g[7],ae&&(d[7]=ae),z&I&&(d[8]=d[8]==null?g[8]:Fr(d[8],g[8])),d[9]==null&&(d[9]=g[9]),d[0]=g[0],d[1]=U,d}function v9(d){var g=[];if(d!=null)for(var M in vn(d))g.push(M);return g}function y9(d){return _m.call(d)}function x_(d,g,M){return g=pr(g===n?d.length-1:g,0),function(){for(var z=arguments,U=-1,q=pr(z.length-g,0),te=Pe(q);++U<q;)te[U]=z[g+U];U=-1;for(var ae=Pe(g+1);++U<g;)ae[U]=z[U];return ae[g]=M(te),Lo(d,this,ae)}}function S_(d,g){return g.length<2?d:tc(d,bs(g,0,-1))}function b9(d,g){for(var M=d.length,z=Fr(g.length,M),U=vo(d);z--;){var q=g[z];d[z]=rl(q,M)?U[q]:n}return d}function tw(d,g){if(!(g==="constructor"&&typeof d[g]=="function")&&g!="__proto__")return d[g]}var P_=k_(KM),Af=DV||function(d,g){return _r.setTimeout(d,g)},nw=k_(VH);function E_(d,g,M){var z=g+"";return nw(d,u9(z,w9(l9(z),M)))}function k_(d){var g=0,M=0;return function(){var z=NV(),U=N-(z-M);if(M=z,U>0){if(++g>=j)return arguments[0]}else g=0;return d.apply(n,arguments)}}function Jm(d,g){var M=-1,z=d.length,U=z-1;for(g=g===n?z:g;++M<g;){var q=Nb(M,U),te=d[q];d[q]=d[M],d[M]=te}return d.length=g,d}var I_=m9(function(d){var g=[];return d.charCodeAt(0)===46&&g.push(""),d.replace(Tn,function(M,z,U,q){g.push(U?q.replace(Ks,"$1"):z||M)}),g});function Pi(d){if(typeof d=="string"||Bo(d))return d;var g=d+"";return g=="0"&&1/d==-V?"-0":g}function rc(d){if(d!=null){try{return Mm.call(d)}catch(g){}try{return d+""}catch(g){}}return""}function w9(d,g){return ms(Q,function(M){var z="_."+M[0];g&M[1]&&!Sm(d,z)&&d.push(z)}),d.sort()}function M_(d){if(d instanceof Wt)return d.clone();var g=new vs(d.__wrapped__,d.__chain__);return g.__actions__=vo(d.__actions__),g.__index__=d.__index__,g.__values__=d.__values__,g}function C9(d,g,M){(M?eo(d,g,M):g===n)?g=1:g=pr(Dt(g),0);var z=d==null?0:d.length;if(!z||g<1)return[];for(var U=0,q=0,te=Pe(Am(z/g));U<z;)te[q++]=bs(d,U,U+=g);return te}function x9(d){for(var g=-1,M=d==null?0:d.length,z=0,U=[];++g<M;){var q=d[g];q&&(U[z++]=q)}return U}function S9(){var d=arguments.length;if(!d)return[];for(var g=Pe(d-1),M=arguments[0],z=d;z--;)g[z-1]=arguments[z];return Vl(Mt(M)?vo(M):[M],Tr(g,1))}var P9=Bt(function(d,g){return Jn(d)?_f(d,Tr(g,1,Jn,!0)):[]}),E9=Bt(function(d,g){var M=ws(g);return Jn(M)&&(M=n),Jn(d)?_f(d,Tr(g,1,Jn,!0),yt(M,2)):[]}),k9=Bt(function(d,g){var M=ws(g);return Jn(M)&&(M=n),Jn(d)?_f(d,Tr(g,1,Jn,!0),n,M):[]});function I9(d,g,M){var z=d==null?0:d.length;return z?(g=M||g===n?1:Dt(g),bs(d,g<0?0:g,z)):[]}function M9(d,g,M){var z=d==null?0:d.length;return z?(g=M||g===n?1:Dt(g),g=z-g,bs(d,0,g<0?0:g)):[]}function _9(d,g){return d&&d.length?Wm(d,yt(g,3),!0,!0):[]}function T9(d,g){return d&&d.length?Wm(d,yt(g,3),!0):[]}function $9(d,g,M,z){var U=d==null?0:d.length;return U?(M&&typeof M!="number"&&eo(d,g,M)&&(M=0,z=U),SH(d,g,M,z)):[]}function __(d,g,M){var z=d==null?0:d.length;if(!z)return-1;var U=M==null?0:Dt(M);return U<0&&(U=pr(z+U,0)),Pm(d,yt(g,3),U)}function T_(d,g,M){var z=d==null?0:d.length;if(!z)return-1;var U=z-1;return M!==n&&(U=Dt(M),U=M<0?pr(z+U,0):Fr(U,z-1)),Pm(d,yt(g,3),U,!0)}function $_(d){var g=d==null?0:d.length;return g?Tr(d,1):[]}function R9(d){var g=d==null?0:d.length;return g?Tr(d,V):[]}function O9(d,g){var M=d==null?0:d.length;return M?(g=g===n?1:Dt(g),Tr(d,g)):[]}function D9(d){for(var g=-1,M=d==null?0:d.length,z={};++g<M;){var U=d[g];z[U[0]]=U[1]}return z}function R_(d){return d&&d.length?d[0]:n}function A9(d,g,M){var z=d==null?0:d.length;if(!z)return-1;var U=M==null?0:Dt(M);return U<0&&(U=pr(z+U,0)),eu(d,g,U)}function L9(d){var g=d==null?0:d.length;return g?bs(d,0,-1):[]}var F9=Bt(function(d){var g=$n(d,Hb);return g.length&&g[0]===d[0]?Ob(g):[]}),N9=Bt(function(d){var g=ws(d),M=$n(d,Hb);return g===ws(M)?g=n:M.pop(),M.length&&M[0]===d[0]?Ob(M,yt(g,2)):[]}),B9=Bt(function(d){var g=ws(d),M=$n(d,Hb);return g=typeof g=="function"?g:n,g&&M.pop(),M.length&&M[0]===d[0]?Ob(M,n,g):[]});function j9(d,g){return d==null?"":LV.call(d,g)}function ws(d){var g=d==null?0:d.length;return g?d[g-1]:n}function z9(d,g,M){var z=d==null?0:d.length;if(!z)return-1;var U=z;return M!==n&&(U=Dt(M),U=U<0?pr(z+U,0):Fr(U,z-1)),g===g?wV(d,g,U):Pm(d,fM,U,!0)}function V9(d,g){return d&&d.length?HM(d,Dt(g)):n}var H9=Bt(O_);function O_(d,g){return d&&d.length&&g&&g.length?Fb(d,g):d}function U9(d,g,M){return d&&d.length&&g&&g.length?Fb(d,g,yt(M,2)):d}function W9(d,g,M){return d&&d.length&&g&&g.length?Fb(d,g,n,M):d}var G9=nl(function(d,g){var M=d==null?0:d.length,z=_b(d,g);return GM(d,$n(g,function(U){return rl(U,M)?+U:U}).sort(n_)),z});function K9(d,g){var M=[];if(!(d&&d.length))return M;var z=-1,U=[],q=d.length;for(g=yt(g,3);++z<q;){var te=d[z];g(te,z,d)&&(M.push(te),U.push(z))}return GM(d,U),M}function rw(d){return d==null?d:jV.call(d)}function q9(d,g,M){var z=d==null?0:d.length;return z?(M&&typeof M!="number"&&eo(d,g,M)?(g=0,M=z):(g=g==null?0:Dt(g),M=M===n?z:Dt(M)),bs(d,g,M)):[]}function Y9(d,g){return Um(d,g)}function Q9(d,g,M){return jb(d,g,yt(M,2))}function X9(d,g){var M=d==null?0:d.length;if(M){var z=Um(d,g);if(z<M&&Qs(d[z],g))return z}return-1}function Z9(d,g){return Um(d,g,!0)}function J9(d,g,M){return jb(d,g,yt(M,2),!0)}function e8(d,g){var M=d==null?0:d.length;if(M){var z=Um(d,g,!0)-1;if(Qs(d[z],g))return z}return-1}function t8(d){return d&&d.length?qM(d):[]}function n8(d,g){return d&&d.length?qM(d,yt(g,2)):[]}function r8(d){var g=d==null?0:d.length;return g?bs(d,1,g):[]}function o8(d,g,M){return d&&d.length?(g=M||g===n?1:Dt(g),bs(d,0,g<0?0:g)):[]}function s8(d,g,M){var z=d==null?0:d.length;return z?(g=M||g===n?1:Dt(g),g=z-g,bs(d,g<0?0:g,z)):[]}function i8(d,g){return d&&d.length?Wm(d,yt(g,3),!1,!0):[]}function l8(d,g){return d&&d.length?Wm(d,yt(g,3)):[]}var a8=Bt(function(d){return Gl(Tr(d,1,Jn,!0))}),c8=Bt(function(d){var g=ws(d);return Jn(g)&&(g=n),Gl(Tr(d,1,Jn,!0),yt(g,2))}),u8=Bt(function(d){var g=ws(d);return g=typeof g=="function"?g:n,Gl(Tr(d,1,Jn,!0),n,g)});function d8(d){return d&&d.length?Gl(d):[]}function f8(d,g){return d&&d.length?Gl(d,yt(g,2)):[]}function p8(d,g){return g=typeof g=="function"?g:n,d&&d.length?Gl(d,n,g):[]}function ow(d){if(!(d&&d.length))return[];var g=0;return d=zl(d,function(M){if(Jn(M))return g=pr(M.length,g),!0}),Cb(g,function(M){return $n(d,yb(M))})}function D_(d,g){if(!(d&&d.length))return[];var M=ow(d);return g==null?M:$n(M,function(z){return Lo(g,n,z)})}var h8=Bt(function(d,g){return Jn(d)?_f(d,g):[]}),m8=Bt(function(d){return Vb(zl(d,Jn))}),g8=Bt(function(d){var g=ws(d);return Jn(g)&&(g=n),Vb(zl(d,Jn),yt(g,2))}),v8=Bt(function(d){var g=ws(d);return g=typeof g=="function"?g:n,Vb(zl(d,Jn),n,g)}),y8=Bt(ow);function b8(d,g){return ZM(d||[],g||[],Mf)}function w8(d,g){return ZM(d||[],g||[],Rf)}var C8=Bt(function(d){var g=d.length,M=g>1?d[g-1]:n;return M=typeof M=="function"?(d.pop(),M):n,D_(d,M)});function A_(d){var g=G(d);return g.__chain__=!0,g}function x8(d,g){return g(d),d}function eg(d,g){return g(d)}var S8=nl(function(d){var g=d.length,M=g?d[0]:0,z=this.__wrapped__,U=function(q){return _b(q,d)};return g>1||this.__actions__.length||!(z instanceof Wt)||!rl(M)?this.thru(U):(z=z.slice(M,+M+(g?1:0)),z.__actions__.push({func:eg,args:[U],thisArg:n}),new vs(z,this.__chain__).thru(function(q){return g&&!q.length&&q.push(n),q}))});function P8(){return A_(this)}function E8(){return new vs(this.value(),this.__chain__)}function k8(){this.__values__===n&&(this.__values__=Y_(this.value()));var d=this.__index__>=this.__values__.length,g=d?n:this.__values__[this.__index__++];return{done:d,value:g}}function I8(){return this}function M8(d){for(var g,M=this;M instanceof Bm;){var z=M_(M);z.__index__=0,z.__values__=n,g?U.__wrapped__=z:g=z;var U=z;M=M.__wrapped__}return U.__wrapped__=d,g}function _8(){var d=this.__wrapped__;if(d instanceof Wt){var g=d;return this.__actions__.length&&(g=new Wt(this)),g=g.reverse(),g.__actions__.push({func:eg,args:[rw],thisArg:n}),new vs(g,this.__chain__)}return this.thru(rw)}function T8(){return XM(this.__wrapped__,this.__actions__)}var $8=Gm(function(d,g,M){cn.call(d,M)?++d[M]:el(d,M,1)});function R8(d,g,M){var z=Mt(d)?uM:xH;return M&&eo(d,g,M)&&(g=n),z(d,yt(g,3))}function O8(d,g){var M=Mt(d)?zl:DM;return M(d,yt(g,3))}var D8=a_(__),A8=a_(T_);function L8(d,g){return Tr(tg(d,g),1)}function F8(d,g){return Tr(tg(d,g),V)}function N8(d,g,M){return M=M===n?1:Dt(M),Tr(tg(d,g),M)}function L_(d,g){var M=Mt(d)?ms:Wl;return M(d,yt(g,3))}function F_(d,g){var M=Mt(d)?rV:OM;return M(d,yt(g,3))}var B8=Gm(function(d,g,M){cn.call(d,M)?d[M].push(g):el(d,M,[g])});function j8(d,g,M,z){d=yo(d)?d:fu(d),M=M&&!z?Dt(M):0;var U=d.length;return M<0&&(M=pr(U+M,0)),ig(d)?M<=U&&d.indexOf(g,M)>-1:!!U&&eu(d,g,M)>-1}var z8=Bt(function(d,g,M){var z=-1,U=typeof g=="function",q=yo(d)?Pe(d.length):[];return Wl(d,function(te){q[++z]=U?Lo(g,te,M):Tf(te,g,M)}),q}),V8=Gm(function(d,g,M){el(d,M,g)});function tg(d,g){var M=Mt(d)?$n:jM;return M(d,yt(g,3))}function H8(d,g,M,z){return d==null?[]:(Mt(g)||(g=g==null?[]:[g]),M=z?n:M,Mt(M)||(M=M==null?[]:[M]),UM(d,g,M))}var U8=Gm(function(d,g,M){d[M?0:1].push(g)},function(){return[[],[]]});function W8(d,g,M){var z=Mt(d)?gb:hM,U=arguments.length<3;return z(d,yt(g,4),M,U,Wl)}function G8(d,g,M){var z=Mt(d)?oV:hM,U=arguments.length<3;return z(d,yt(g,4),M,U,OM)}function K8(d,g){var M=Mt(d)?zl:DM;return M(d,og(yt(g,3)))}function q8(d){var g=Mt(d)?_M:jH;return g(d)}function Y8(d,g,M){(M?eo(d,g,M):g===n)?g=1:g=Dt(g);var z=Mt(d)?vH:zH;return z(d,g)}function Q8(d){var g=Mt(d)?yH:HH;return g(d)}function X8(d){if(d==null)return 0;if(yo(d))return ig(d)?nu(d):d.length;var g=Nr(d);return g==Ce||g==ue?d.size:Ab(d).length}function Z8(d,g,M){var z=Mt(d)?vb:UH;return M&&eo(d,g,M)&&(g=n),z(d,yt(g,3))}var J8=Bt(function(d,g){if(d==null)return[];var M=g.length;return M>1&&eo(d,g[0],g[1])?g=[]:M>2&&eo(g[0],g[1],g[2])&&(g=[g[0]]),UM(d,Tr(g,1),[])}),ng=OV||function(){return _r.Date.now()};function e7(d,g){if(typeof g!="function")throw new gs(i);return d=Dt(d),function(){if(--d<1)return g.apply(this,arguments)}}function N_(d,g,M){return g=M?n:g,g=d&&g==null?d.length:g,tl(d,I,n,n,n,n,g)}function B_(d,g){var M;if(typeof g!="function")throw new gs(i);return d=Dt(d),function(){return--d>0&&(M=g.apply(this,arguments)),d<=1&&(g=n),M}}var sw=Bt(function(d,g,M){var z=C;if(M.length){var U=Hl(M,uu(sw));z|=k}return tl(d,z,g,M,U)}),j_=Bt(function(d,g,M){var z=C|w;if(M.length){var U=Hl(M,uu(j_));z|=k}return tl(g,z,d,M,U)});function z_(d,g,M){g=M?n:g;var z=tl(d,x,n,n,n,n,n,g);return z.placeholder=z_.placeholder,z}function V_(d,g,M){g=M?n:g;var z=tl(d,P,n,n,n,n,n,g);return z.placeholder=V_.placeholder,z}function H_(d,g,M){var z,U,q,te,ae,ge,De=0,Le=!1,je=!1,nt=!0;if(typeof d!="function")throw new gs(i);g=Cs(g)||0,Nn(M)&&(Le=!!M.leading,je="maxWait"in M,q=je?pr(Cs(M.maxWait)||0,g):q,nt="trailing"in M?!!M.trailing:nt);function pt(er){var Xs=z,il=U;return z=U=n,De=er,te=d.apply(il,Xs),te}function Ct(er){return De=er,ae=Af(Vt,g),Le?pt(er):te}function At(er){var Xs=er-ge,il=er-De,aT=g-Xs;return je?Fr(aT,q-il):aT}function xt(er){var Xs=er-ge,il=er-De;return ge===n||Xs>=g||Xs<0||je&&il>=q}function Vt(){var er=ng();if(xt(er))return Kt(er);ae=Af(Vt,At(er))}function Kt(er){return ae=n,nt&&z?pt(er):(z=U=n,te)}function jo(){ae!==n&&JM(ae),De=0,z=ge=U=ae=n}function to(){return ae===n?te:Kt(ng())}function zo(){var er=ng(),Xs=xt(er);if(z=arguments,U=this,ge=er,Xs){if(ae===n)return Ct(ge);if(je)return JM(ae),ae=Af(Vt,g),pt(ge)}return ae===n&&(ae=Af(Vt,g)),te}return zo.cancel=jo,zo.flush=to,zo}var t7=Bt(function(d,g){return RM(d,1,g)}),n7=Bt(function(d,g,M){return RM(d,Cs(g)||0,M)});function r7(d){return tl(d,O)}function rg(d,g){if(typeof d!="function"||g!=null&&typeof g!="function")throw new gs(i);var M=function(){var z=arguments,U=g?g.apply(this,z):z[0],q=M.cache;if(q.has(U))return q.get(U);var te=d.apply(this,z);return M.cache=q.set(U,te)||q,te};return M.cache=new(rg.Cache||Ji),M}rg.Cache=Ji;function og(d){if(typeof d!="function")throw new gs(i);return function(){var g=arguments;switch(g.length){case 0:return!d.call(this);case 1:return!d.call(this,g[0]);case 2:return!d.call(this,g[0],g[1]);case 3:return!d.call(this,g[0],g[1],g[2])}return!d.apply(this,g)}}function o7(d){return B_(2,d)}var s7=WH(function(d,g){g=g.length==1&&Mt(g[0])?$n(g[0],Fo(yt())):$n(Tr(g,1),Fo(yt()));var M=g.length;return Bt(function(z){for(var U=-1,q=Fr(z.length,M);++U<q;)z[U]=g[U].call(this,z[U]);return Lo(d,this,z)})}),iw=Bt(function(d,g){var M=Hl(g,uu(iw));return tl(d,k,n,g,M)}),U_=Bt(function(d,g){var M=Hl(g,uu(U_));return tl(d,E,n,g,M)}),i7=nl(function(d,g){return tl(d,R,n,n,n,g)});function l7(d,g){if(typeof d!="function")throw new gs(i);return g=g===n?g:Dt(g),Bt(d,g)}function a7(d,g){if(typeof d!="function")throw new gs(i);return g=g==null?0:pr(Dt(g),0),Bt(function(M){var z=M[g],U=ql(M,0,g);return z&&Vl(U,z),Lo(d,this,U)})}function c7(d,g,M){var z=!0,U=!0;if(typeof d!="function")throw new gs(i);return Nn(M)&&(z="leading"in M?!!M.leading:z,U="trailing"in M?!!M.trailing:U),H_(d,g,{leading:z,maxWait:g,trailing:U})}function u7(d){return N_(d,1)}function d7(d,g){return iw(Ub(g),d)}function f7(){if(!arguments.length)return[];var d=arguments[0];return Mt(d)?d:[d]}function p7(d){return ys(d,y)}function h7(d,g){return g=typeof g=="function"?g:n,ys(d,y,g)}function m7(d){return ys(d,p|y)}function g7(d,g){return g=typeof g=="function"?g:n,ys(d,p|y,g)}function v7(d,g){return g==null||$M(d,g,yr(g))}function Qs(d,g){return d===g||d!==d&&g!==g}var y7=Qm(Rb),b7=Qm(function(d,g){return d>=g}),oc=FM(function(){return arguments}())?FM:function(d){return Hn(d)&&cn.call(d,"callee")&&!SM.call(d,"callee")},Mt=Pe.isArray,w7=oM?Fo(oM):MH;function yo(d){return d!=null&&sg(d.length)&&!ol(d)}function Jn(d){return Hn(d)&&yo(d)}function C7(d){return d===!0||d===!1||Hn(d)&&Jr(d)==Z}var Yl=AV||vw,x7=sM?Fo(sM):_H;function S7(d){return Hn(d)&&d.nodeType===1&&!Lf(d)}function P7(d){if(d==null)return!0;if(yo(d)&&(Mt(d)||typeof d=="string"||typeof d.splice=="function"||Yl(d)||du(d)||oc(d)))return!d.length;var g=Nr(d);if(g==Ce||g==ue)return!d.size;if(Df(d))return!Ab(d).length;for(var M in d)if(cn.call(d,M))return!1;return!0}function E7(d,g){return $f(d,g)}function k7(d,g,M){M=typeof M=="function"?M:n;var z=M?M(d,g):n;return z===n?$f(d,g,n,M):!!z}function lw(d){if(!Hn(d))return!1;var g=Jr(d);return g==re||g==ne||typeof d.message=="string"&&typeof d.name=="string"&&!Lf(d)}function I7(d){return typeof d=="number"&&EM(d)}function ol(d){if(!Nn(d))return!1;var g=Jr(d);return g==me||g==ce||g==oe||g==Re}function W_(d){return typeof d=="number"&&d==Dt(d)}function sg(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=A}function Nn(d){var g=typeof d;return d!=null&&(g=="object"||g=="function")}function Hn(d){return d!=null&&typeof d=="object"}var G_=iM?Fo(iM):$H;function M7(d,g){return d===g||Db(d,g,Xb(g))}function _7(d,g,M){return M=typeof M=="function"?M:n,Db(d,g,Xb(g),M)}function T7(d){return K_(d)&&d!=+d}function $7(d){if(h9(d))throw new It(s);return NM(d)}function R7(d){return d===null}function O7(d){return d==null}function K_(d){return typeof d=="number"||Hn(d)&&Jr(d)==Ee}function Lf(d){if(!Hn(d)||Jr(d)!=ke)return!1;var g=Rm(d);if(g===null)return!0;var M=cn.call(g,"constructor")&&g.constructor;return typeof M=="function"&&M instanceof M&&Mm.call(M)==_V}var aw=lM?Fo(lM):RH;function D7(d){return W_(d)&&d>=-A&&d<=A}var q_=aM?Fo(aM):OH;function ig(d){return typeof d=="string"||!Mt(d)&&Hn(d)&&Jr(d)==we}function Bo(d){return typeof d=="symbol"||Hn(d)&&Jr(d)==xe}var du=cM?Fo(cM):DH;function A7(d){return d===n}function L7(d){return Hn(d)&&Nr(d)==Oe}function F7(d){return Hn(d)&&Jr(d)==Be}var N7=Qm(Lb),B7=Qm(function(d,g){return d<=g});function Y_(d){if(!d)return[];if(yo(d))return ig(d)?qs(d):vo(d);if(Sf&&d[Sf])return vV(d[Sf]());var g=Nr(d),M=g==Ce?Sb:g==ue?Em:fu;return M(d)}function sl(d){if(!d)return d===0?d:0;if(d=Cs(d),d===V||d===-V){var g=d<0?-1:1;return g*F}return d===d?d:0}function Dt(d){var g=sl(d),M=g%1;return g===g?M?g-M:g:0}function Q_(d){return d?ec(Dt(d),0,K):0}function Cs(d){if(typeof d=="number")return d;if(Bo(d))return H;if(Nn(d)){var g=typeof d.valueOf=="function"?d.valueOf():d;d=Nn(g)?g+"":g}if(typeof d!="string")return d===0?d:+d;d=mM(d);var M=Qe.test(d);return M||at.test(d)?eV(d.slice(2),M?2:8):rt.test(d)?H:+d}function X_(d){return Si(d,bo(d))}function j7(d){return d?ec(Dt(d),-A,A):d===0?d:0}function ln(d){return d==null?"":No(d)}var z7=au(function(d,g){if(Df(g)||yo(g)){Si(g,yr(g),d);return}for(var M in g)cn.call(g,M)&&Mf(d,M,g[M])}),Z_=au(function(d,g){Si(g,bo(g),d)}),lg=au(function(d,g,M,z){Si(g,bo(g),d,z)}),V7=au(function(d,g,M,z){Si(g,yr(g),d,z)}),H7=nl(_b);function U7(d,g){var M=lu(d);return g==null?M:TM(M,g)}var W7=Bt(function(d,g){d=vn(d);var M=-1,z=g.length,U=z>2?g[2]:n;for(U&&eo(g[0],g[1],U)&&(z=1);++M<z;)for(var q=g[M],te=bo(q),ae=-1,ge=te.length;++ae<ge;){var De=te[ae],Le=d[De];(Le===n||Qs(Le,ou[De])&&!cn.call(d,De))&&(d[De]=q[De])}return d}),G7=Bt(function(d){return d.push(n,m_),Lo(J_,n,d)});function K7(d,g){return dM(d,yt(g,3),xi)}function q7(d,g){return dM(d,yt(g,3),$b)}function Y7(d,g){return d==null?d:Tb(d,yt(g,3),bo)}function Q7(d,g){return d==null?d:AM(d,yt(g,3),bo)}function X7(d,g){return d&&xi(d,yt(g,3))}function Z7(d,g){return d&&$b(d,yt(g,3))}function J7(d){return d==null?[]:Vm(d,yr(d))}function eU(d){return d==null?[]:Vm(d,bo(d))}function cw(d,g,M){var z=d==null?n:tc(d,g);return z===n?M:z}function tU(d,g){return d!=null&&y_(d,g,PH)}function uw(d,g){return d!=null&&y_(d,g,EH)}var nU=u_(function(d,g,M){g!=null&&typeof g.toString!="function"&&(g=_m.call(g)),d[g]=M},fw(wo)),rU=u_(function(d,g,M){g!=null&&typeof g.toString!="function"&&(g=_m.call(g)),cn.call(d,g)?d[g].push(M):d[g]=[M]},yt),oU=Bt(Tf);function yr(d){return yo(d)?MM(d):Ab(d)}function bo(d){return yo(d)?MM(d,!0):AH(d)}function sU(d,g){var M={};return g=yt(g,3),xi(d,function(z,U,q){el(M,g(z,U,q),z)}),M}function iU(d,g){var M={};return g=yt(g,3),xi(d,function(z,U,q){el(M,U,g(z,U,q))}),M}var lU=au(function(d,g,M){Hm(d,g,M)}),J_=au(function(d,g,M,z){Hm(d,g,M,z)}),aU=nl(function(d,g){var M={};if(d==null)return M;var z=!1;g=$n(g,function(q){return q=Kl(q,d),z||(z=q.length>1),q}),Si(d,Yb(d),M),z&&(M=ys(M,p|h|y,n9));for(var U=g.length;U--;)zb(M,g[U]);return M});function cU(d,g){return eT(d,og(yt(g)))}var uU=nl(function(d,g){return d==null?{}:FH(d,g)});function eT(d,g){if(d==null)return{};var M=$n(Yb(d),function(z){return[z]});return g=yt(g),WM(d,M,function(z,U){return g(z,U[0])})}function dU(d,g,M){g=Kl(g,d);var z=-1,U=g.length;for(U||(U=1,d=n);++z<U;){var q=d==null?n:d[Pi(g[z])];q===n&&(z=U,q=M),d=ol(q)?q.call(d):q}return d}function fU(d,g,M){return d==null?d:Rf(d,g,M)}function pU(d,g,M,z){return z=typeof z=="function"?z:n,d==null?d:Rf(d,g,M,z)}var tT=p_(yr),nT=p_(bo);function hU(d,g,M){var z=Mt(d),U=z||Yl(d)||du(d);if(g=yt(g,4),M==null){var q=d&&d.constructor;U?M=z?new q:[]:Nn(d)?M=ol(q)?lu(Rm(d)):{}:M={}}return(U?ms:xi)(d,function(te,ae,ge){return g(M,te,ae,ge)}),M}function mU(d,g){return d==null?!0:zb(d,g)}function gU(d,g,M){return d==null?d:QM(d,g,Ub(M))}function vU(d,g,M,z){return z=typeof z=="function"?z:n,d==null?d:QM(d,g,Ub(M),z)}function fu(d){return d==null?[]:xb(d,yr(d))}function yU(d){return d==null?[]:xb(d,bo(d))}function bU(d,g,M){return M===n&&(M=g,g=n),M!==n&&(M=Cs(M),M=M===M?M:0),g!==n&&(g=Cs(g),g=g===g?g:0),ec(Cs(d),g,M)}function wU(d,g,M){return g=sl(g),M===n?(M=g,g=0):M=sl(M),d=Cs(d),kH(d,g,M)}function CU(d,g,M){if(M&&typeof M!="boolean"&&eo(d,g,M)&&(g=M=n),M===n&&(typeof g=="boolean"?(M=g,g=n):typeof d=="boolean"&&(M=d,d=n)),d===n&&g===n?(d=0,g=1):(d=sl(d),g===n?(g=d,d=0):g=sl(g)),d>g){var z=d;d=g,g=z}if(M||d%1||g%1){var U=kM();return Fr(d+U*(g-d+Jz("1e-"+((U+"").length-1))),g)}return Nb(d,g)}var xU=cu(function(d,g,M){return g=g.toLowerCase(),d+(M?rT(g):g)});function rT(d){return dw(ln(d).toLowerCase())}function oT(d){return d=ln(d),d&&d.replace(ps,fV).replace(Hz,"")}function SU(d,g,M){d=ln(d),g=No(g);var z=d.length;M=M===n?z:ec(Dt(M),0,z);var U=M;return M-=g.length,M>=0&&d.slice(M,U)==g}function PU(d){return d=ln(d),d&&gt.test(d)?d.replace(Sn,pV):d}function EU(d){return d=ln(d),d&&lr.test(d)?d.replace(en,"\\$&"):d}var kU=cu(function(d,g,M){return d+(M?"-":"")+g.toLowerCase()}),IU=cu(function(d,g,M){return d+(M?" ":"")+g.toLowerCase()}),MU=l_("toLowerCase");function _U(d,g,M){d=ln(d),g=Dt(g);var z=g?nu(d):0;if(!g||z>=g)return d;var U=(g-z)/2;return Ym(Lm(U),M)+d+Ym(Am(U),M)}function TU(d,g,M){d=ln(d),g=Dt(g);var z=g?nu(d):0;return g&&z<g?d+Ym(g-z,M):d}function $U(d,g,M){d=ln(d),g=Dt(g);var z=g?nu(d):0;return g&&z<g?Ym(g-z,M)+d:d}function RU(d,g,M){return M||g==null?g=0:g&&(g=+g),BV(ln(d).replace(ar,""),g||0)}function OU(d,g,M){return(M?eo(d,g,M):g===n)?g=1:g=Dt(g),Bb(ln(d),g)}function DU(){var d=arguments,g=ln(d[0]);return d.length<3?g:g.replace(d[1],d[2])}var AU=cu(function(d,g,M){return d+(M?"_":"")+g.toLowerCase()});function LU(d,g,M){return M&&typeof M!="number"&&eo(d,g,M)&&(g=M=n),M=M===n?K:M>>>0,M?(d=ln(d),d&&(typeof g=="string"||g!=null&&!aw(g))&&(g=No(g),!g&&tu(d))?ql(qs(d),0,M):d.split(g,M)):[]}var FU=cu(function(d,g,M){return d+(M?" ":"")+dw(g)});function NU(d,g,M){return d=ln(d),M=M==null?0:ec(Dt(M),0,d.length),g=No(g),d.slice(M,M+g.length)==g}function BU(d,g,M){var z=G.templateSettings;M&&eo(d,g,M)&&(g=n),d=ln(d),g=lg({},g,z,h_);var U=lg({},g.imports,z.imports,h_),q=yr(U),te=xb(U,q),ae,ge,De=0,Le=g.interpolate||Ya,je="__p += '",nt=Pb((g.escape||Ya).source+"|"+Le.source+"|"+(Le===dr?$e:Ya).source+"|"+(g.evaluate||Ya).source+"|$","g"),pt="//# sourceURL="+(cn.call(g,"sourceURL")?(g.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++qz+"]")+`
303
+ `;d.replace(nt,function(xt,Vt,Kt,jo,to,zo){return Kt||(Kt=jo),je+=d.slice(De,zo).replace(Ez,hV),Vt&&(ae=!0,je+=`' +
304
+ __e(`+Vt+`) +
305
+ '`),to&&(ge=!0,je+=`';
306
+ `+to+`;
307
+ __p += '`),Kt&&(je+=`' +
308
+ ((__t = (`+Kt+`)) == null ? '' : __t) +
309
+ '`),De=zo+xt.length,xt}),je+=`';
310
+ `;var Ct=cn.call(g,"variable")&&g.variable;if(!Ct)je=`with (obj) {
311
+ `+je+`
312
+ }
313
+ `;else if(Zr.test(Ct))throw new It(l);je=(ge?je.replace(wt,""):je).replace(Tt,"$1").replace(qt,"$1;"),je="function("+(Ct||"obj")+`) {
314
+ `+(Ct?"":`obj || (obj = {});
315
+ `)+"var __t, __p = ''"+(ae?", __e = _.escape":"")+(ge?`, __j = Array.prototype.join;
316
+ function print() { __p += __j.call(arguments, '') }
317
+ `:`;
318
+ `)+je+`return __p
319
+ }`;var At=iT(function(){return tn(q,pt+"return "+je).apply(n,te)});if(At.source=je,lw(At))throw At;return At}function jU(d){return ln(d).toLowerCase()}function zU(d){return ln(d).toUpperCase()}function VU(d,g,M){if(d=ln(d),d&&(M||g===n))return mM(d);if(!d||!(g=No(g)))return d;var z=qs(d),U=qs(g),q=gM(z,U),te=vM(z,U)+1;return ql(z,q,te).join("")}function HU(d,g,M){if(d=ln(d),d&&(M||g===n))return d.slice(0,bM(d)+1);if(!d||!(g=No(g)))return d;var z=qs(d),U=vM(z,qs(g))+1;return ql(z,0,U).join("")}function UU(d,g,M){if(d=ln(d),d&&(M||g===n))return d.replace(ar,"");if(!d||!(g=No(g)))return d;var z=qs(d),U=gM(z,qs(g));return ql(z,U).join("")}function WU(d,g){var M=$,z=L;if(Nn(g)){var U="separator"in g?g.separator:U;M="length"in g?Dt(g.length):M,z="omission"in g?No(g.omission):z}d=ln(d);var q=d.length;if(tu(d)){var te=qs(d);q=te.length}if(M>=q)return d;var ae=M-nu(z);if(ae<1)return z;var ge=te?ql(te,0,ae).join(""):d.slice(0,ae);if(U===n)return ge+z;if(te&&(ae+=ge.length-ae),aw(U)){if(d.slice(ae).search(U)){var De,Le=ge;for(U.global||(U=Pb(U.source,ln(Ie.exec(U))+"g")),U.lastIndex=0;De=U.exec(Le);)var je=De.index;ge=ge.slice(0,je===n?ae:je)}}else if(d.indexOf(No(U),ae)!=ae){var nt=ge.lastIndexOf(U);nt>-1&&(ge=ge.slice(0,nt))}return ge+z}function GU(d){return d=ln(d),d&&yn.test(d)?d.replace(Qt,CV):d}var KU=cu(function(d,g,M){return d+(M?" ":"")+g.toUpperCase()}),dw=l_("toUpperCase");function sT(d,g,M){return d=ln(d),g=M?n:g,g===n?gV(d)?PV(d):lV(d):d.match(g)||[]}var iT=Bt(function(d,g){try{return Lo(d,n,g)}catch(M){return lw(M)?M:new It(M)}}),qU=nl(function(d,g){return ms(g,function(M){M=Pi(M),el(d,M,sw(d[M],d))}),d});function YU(d){var g=d==null?0:d.length,M=yt();return d=g?$n(d,function(z){if(typeof z[1]!="function")throw new gs(i);return[M(z[0]),z[1]]}):[],Bt(function(z){for(var U=-1;++U<g;){var q=d[U];if(Lo(q[0],this,z))return Lo(q[1],this,z)}})}function QU(d){return CH(ys(d,p))}function fw(d){return function(){return d}}function XU(d,g){return d==null||d!==d?g:d}var ZU=c_(),JU=c_(!0);function wo(d){return d}function pw(d){return BM(typeof d=="function"?d:ys(d,p))}function eW(d){return zM(ys(d,p))}function tW(d,g){return VM(d,ys(g,p))}var nW=Bt(function(d,g){return function(M){return Tf(M,d,g)}}),rW=Bt(function(d,g){return function(M){return Tf(d,M,g)}});function hw(d,g,M){var z=yr(g),U=Vm(g,z);M==null&&!(Nn(g)&&(U.length||!z.length))&&(M=g,g=d,d=this,U=Vm(g,yr(g)));var q=!(Nn(M)&&"chain"in M)||!!M.chain,te=ol(d);return ms(U,function(ae){var ge=g[ae];d[ae]=ge,te&&(d.prototype[ae]=function(){var De=this.__chain__;if(q||De){var Le=d(this.__wrapped__),je=Le.__actions__=vo(this.__actions__);return je.push({func:ge,args:arguments,thisArg:d}),Le.__chain__=De,Le}return ge.apply(d,Vl([this.value()],arguments))})}),d}function oW(){return _r._===this&&(_r._=TV),this}function mw(){}function sW(d){return d=Dt(d),Bt(function(g){return HM(g,d)})}var iW=Gb($n),lW=Gb(uM),aW=Gb(vb);function lT(d){return Jb(d)?yb(Pi(d)):NH(d)}function cW(d){return function(g){return d==null?n:tc(d,g)}}var uW=d_(),dW=d_(!0);function gw(){return[]}function vw(){return!1}function fW(){return{}}function pW(){return""}function hW(){return!0}function mW(d,g){if(d=Dt(d),d<1||d>A)return[];var M=K,z=Fr(d,K);g=yt(g),d-=K;for(var U=Cb(z,g);++M<d;)g(M);return U}function gW(d){return Mt(d)?$n(d,Pi):Bo(d)?[d]:vo(I_(ln(d)))}function vW(d){var g=++MV;return ln(d)+g}var yW=qm(function(d,g){return d+g},0),bW=Kb("ceil"),wW=qm(function(d,g){return d/g},1),CW=Kb("floor");function xW(d){return d&&d.length?zm(d,wo,Rb):n}function SW(d,g){return d&&d.length?zm(d,yt(g,2),Rb):n}function PW(d){return pM(d,wo)}function EW(d,g){return pM(d,yt(g,2))}function kW(d){return d&&d.length?zm(d,wo,Lb):n}function IW(d,g){return d&&d.length?zm(d,yt(g,2),Lb):n}var MW=qm(function(d,g){return d*g},1),_W=Kb("round"),TW=qm(function(d,g){return d-g},0);function $W(d){return d&&d.length?wb(d,wo):0}function RW(d,g){return d&&d.length?wb(d,yt(g,2)):0}return G.after=e7,G.ary=N_,G.assign=z7,G.assignIn=Z_,G.assignInWith=lg,G.assignWith=V7,G.at=H7,G.before=B_,G.bind=sw,G.bindAll=qU,G.bindKey=j_,G.castArray=f7,G.chain=A_,G.chunk=C9,G.compact=x9,G.concat=S9,G.cond=YU,G.conforms=QU,G.constant=fw,G.countBy=$8,G.create=U7,G.curry=z_,G.curryRight=V_,G.debounce=H_,G.defaults=W7,G.defaultsDeep=G7,G.defer=t7,G.delay=n7,G.difference=P9,G.differenceBy=E9,G.differenceWith=k9,G.drop=I9,G.dropRight=M9,G.dropRightWhile=_9,G.dropWhile=T9,G.fill=$9,G.filter=O8,G.flatMap=L8,G.flatMapDeep=F8,G.flatMapDepth=N8,G.flatten=$_,G.flattenDeep=R9,G.flattenDepth=O9,G.flip=r7,G.flow=ZU,G.flowRight=JU,G.fromPairs=D9,G.functions=J7,G.functionsIn=eU,G.groupBy=B8,G.initial=L9,G.intersection=F9,G.intersectionBy=N9,G.intersectionWith=B9,G.invert=nU,G.invertBy=rU,G.invokeMap=z8,G.iteratee=pw,G.keyBy=V8,G.keys=yr,G.keysIn=bo,G.map=tg,G.mapKeys=sU,G.mapValues=iU,G.matches=eW,G.matchesProperty=tW,G.memoize=rg,G.merge=lU,G.mergeWith=J_,G.method=nW,G.methodOf=rW,G.mixin=hw,G.negate=og,G.nthArg=sW,G.omit=aU,G.omitBy=cU,G.once=o7,G.orderBy=H8,G.over=iW,G.overArgs=s7,G.overEvery=lW,G.overSome=aW,G.partial=iw,G.partialRight=U_,G.partition=U8,G.pick=uU,G.pickBy=eT,G.property=lT,G.propertyOf=cW,G.pull=H9,G.pullAll=O_,G.pullAllBy=U9,G.pullAllWith=W9,G.pullAt=G9,G.range=uW,G.rangeRight=dW,G.rearg=i7,G.reject=K8,G.remove=K9,G.rest=l7,G.reverse=rw,G.sampleSize=Y8,G.set=fU,G.setWith=pU,G.shuffle=Q8,G.slice=q9,G.sortBy=J8,G.sortedUniq=t8,G.sortedUniqBy=n8,G.split=LU,G.spread=a7,G.tail=r8,G.take=o8,G.takeRight=s8,G.takeRightWhile=i8,G.takeWhile=l8,G.tap=x8,G.throttle=c7,G.thru=eg,G.toArray=Y_,G.toPairs=tT,G.toPairsIn=nT,G.toPath=gW,G.toPlainObject=X_,G.transform=hU,G.unary=u7,G.union=a8,G.unionBy=c8,G.unionWith=u8,G.uniq=d8,G.uniqBy=f8,G.uniqWith=p8,G.unset=mU,G.unzip=ow,G.unzipWith=D_,G.update=gU,G.updateWith=vU,G.values=fu,G.valuesIn=yU,G.without=h8,G.words=sT,G.wrap=d7,G.xor=m8,G.xorBy=g8,G.xorWith=v8,G.zip=y8,G.zipObject=b8,G.zipObjectDeep=w8,G.zipWith=C8,G.entries=tT,G.entriesIn=nT,G.extend=Z_,G.extendWith=lg,hw(G,G),G.add=yW,G.attempt=iT,G.camelCase=xU,G.capitalize=rT,G.ceil=bW,G.clamp=bU,G.clone=p7,G.cloneDeep=m7,G.cloneDeepWith=g7,G.cloneWith=h7,G.conformsTo=v7,G.deburr=oT,G.defaultTo=XU,G.divide=wW,G.endsWith=SU,G.eq=Qs,G.escape=PU,G.escapeRegExp=EU,G.every=R8,G.find=D8,G.findIndex=__,G.findKey=K7,G.findLast=A8,G.findLastIndex=T_,G.findLastKey=q7,G.floor=CW,G.forEach=L_,G.forEachRight=F_,G.forIn=Y7,G.forInRight=Q7,G.forOwn=X7,G.forOwnRight=Z7,G.get=cw,G.gt=y7,G.gte=b7,G.has=tU,G.hasIn=uw,G.head=R_,G.identity=wo,G.includes=j8,G.indexOf=A9,G.inRange=wU,G.invoke=oU,G.isArguments=oc,G.isArray=Mt,G.isArrayBuffer=w7,G.isArrayLike=yo,G.isArrayLikeObject=Jn,G.isBoolean=C7,G.isBuffer=Yl,G.isDate=x7,G.isElement=S7,G.isEmpty=P7,G.isEqual=E7,G.isEqualWith=k7,G.isError=lw,G.isFinite=I7,G.isFunction=ol,G.isInteger=W_,G.isLength=sg,G.isMap=G_,G.isMatch=M7,G.isMatchWith=_7,G.isNaN=T7,G.isNative=$7,G.isNil=O7,G.isNull=R7,G.isNumber=K_,G.isObject=Nn,G.isObjectLike=Hn,G.isPlainObject=Lf,G.isRegExp=aw,G.isSafeInteger=D7,G.isSet=q_,G.isString=ig,G.isSymbol=Bo,G.isTypedArray=du,G.isUndefined=A7,G.isWeakMap=L7,G.isWeakSet=F7,G.join=j9,G.kebabCase=kU,G.last=ws,G.lastIndexOf=z9,G.lowerCase=IU,G.lowerFirst=MU,G.lt=N7,G.lte=B7,G.max=xW,G.maxBy=SW,G.mean=PW,G.meanBy=EW,G.min=kW,G.minBy=IW,G.stubArray=gw,G.stubFalse=vw,G.stubObject=fW,G.stubString=pW,G.stubTrue=hW,G.multiply=MW,G.nth=V9,G.noConflict=oW,G.noop=mw,G.now=ng,G.pad=_U,G.padEnd=TU,G.padStart=$U,G.parseInt=RU,G.random=CU,G.reduce=W8,G.reduceRight=G8,G.repeat=OU,G.replace=DU,G.result=dU,G.round=_W,G.runInContext=he,G.sample=q8,G.size=X8,G.snakeCase=AU,G.some=Z8,G.sortedIndex=Y9,G.sortedIndexBy=Q9,G.sortedIndexOf=X9,G.sortedLastIndex=Z9,G.sortedLastIndexBy=J9,G.sortedLastIndexOf=e8,G.startCase=FU,G.startsWith=NU,G.subtract=TW,G.sum=$W,G.sumBy=RW,G.template=BU,G.times=mW,G.toFinite=sl,G.toInteger=Dt,G.toLength=Q_,G.toLower=jU,G.toNumber=Cs,G.toSafeInteger=j7,G.toString=ln,G.toUpper=zU,G.trim=VU,G.trimEnd=HU,G.trimStart=UU,G.truncate=WU,G.unescape=GU,G.uniqueId=vW,G.upperCase=KU,G.upperFirst=dw,G.each=L_,G.eachRight=F_,G.first=R_,hw(G,function(){var d={};return xi(G,function(g,M){cn.call(G.prototype,M)||(d[M]=g)}),d}(),{chain:!1}),G.VERSION=r,ms(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){G[d].placeholder=G}),ms(["drop","take"],function(d,g){Wt.prototype[d]=function(M){M=M===n?1:pr(Dt(M),0);var z=this.__filtered__&&!g?new Wt(this):this.clone();return z.__filtered__?z.__takeCount__=Fr(M,z.__takeCount__):z.__views__.push({size:Fr(M,K),type:d+(z.__dir__<0?"Right":"")}),z},Wt.prototype[d+"Right"]=function(M){return this.reverse()[d](M).reverse()}}),ms(["filter","map","takeWhile"],function(d,g){var M=g+1,z=M==_||M==B;Wt.prototype[d]=function(U){var q=this.clone();return q.__iteratees__.push({iteratee:yt(U,3),type:M}),q.__filtered__=q.__filtered__||z,q}}),ms(["head","last"],function(d,g){var M="take"+(g?"Right":"");Wt.prototype[d]=function(){return this[M](1).value()[0]}}),ms(["initial","tail"],function(d,g){var M="drop"+(g?"":"Right");Wt.prototype[d]=function(){return this.__filtered__?new Wt(this):this[M](1)}}),Wt.prototype.compact=function(){return this.filter(wo)},Wt.prototype.find=function(d){return this.filter(d).head()},Wt.prototype.findLast=function(d){return this.reverse().find(d)},Wt.prototype.invokeMap=Bt(function(d,g){return typeof d=="function"?new Wt(this):this.map(function(M){return Tf(M,d,g)})}),Wt.prototype.reject=function(d){return this.filter(og(yt(d)))},Wt.prototype.slice=function(d,g){d=Dt(d);var M=this;return M.__filtered__&&(d>0||g<0)?new Wt(M):(d<0?M=M.takeRight(-d):d&&(M=M.drop(d)),g!==n&&(g=Dt(g),M=g<0?M.dropRight(-g):M.take(g-d)),M)},Wt.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},Wt.prototype.toArray=function(){return this.take(K)},xi(Wt.prototype,function(d,g){var M=/^(?:filter|find|map|reject)|While$/.test(g),z=/^(?:head|last)$/.test(g),U=G[z?"take"+(g=="last"?"Right":""):g],q=z||/^find/.test(g);U&&(G.prototype[g]=function(){var te=this.__wrapped__,ae=z?[1]:arguments,ge=te instanceof Wt,De=ae[0],Le=ge||Mt(te),je=function(Vt){var Kt=U.apply(G,Vl([Vt],ae));return z&&nt?Kt[0]:Kt};Le&&M&&typeof De=="function"&&De.length!=1&&(ge=Le=!1);var nt=this.__chain__,pt=!!this.__actions__.length,Ct=q&&!nt,At=ge&&!pt;if(!q&&Le){te=At?te:new Wt(this);var xt=d.apply(te,ae);return xt.__actions__.push({func:eg,args:[je],thisArg:n}),new vs(xt,nt)}return Ct&&At?d.apply(this,ae):(xt=this.thru(je),Ct?z?xt.value()[0]:xt.value():xt)})}),ms(["pop","push","shift","sort","splice","unshift"],function(d){var g=km[d],M=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",z=/^(?:pop|shift)$/.test(d);G.prototype[d]=function(){var U=arguments;if(z&&!this.__chain__){var q=this.value();return g.apply(Mt(q)?q:[],U)}return this[M](function(te){return g.apply(Mt(te)?te:[],U)})}}),xi(Wt.prototype,function(d,g){var M=G[g];if(M){var z=M.name+"";cn.call(iu,z)||(iu[z]=[]),iu[z].push({name:g,func:M})}}),iu[Km(n,w).name]=[{name:"wrapper",func:n}],Wt.prototype.clone=GV,Wt.prototype.reverse=KV,Wt.prototype.value=qV,G.prototype.at=S8,G.prototype.chain=P8,G.prototype.commit=E8,G.prototype.next=k8,G.prototype.plant=M8,G.prototype.reverse=_8,G.prototype.toJSON=G.prototype.valueOf=G.prototype.value=T8,G.prototype.first=G.prototype.head,Sf&&(G.prototype[Sf]=I8),G},ru=EV();Qa?((Qa.exports=ru)._=ru,pb._=ru):_r._=ru}).call(an)})(my,my.exports);var bfe=my.exports;const Ze=vi(bfe),Yu="/~/api/",wfe={loginSrp1:90,update:600,get_status:20},C5={};function Cfe(e){Object.assign(C5,e)}function ut(e,t,n={}){var a,c,f;Ze.defaults(n,C5);const r=(a=n.modal)==null?void 0:a.call(n,e,t),o=new AbortController;let s="";const i=1e3*((f=(c=wfe[e])!=null?c:n.timeout)!=null?f:10),l=i&&setTimeout(()=>{o.abort(s="timeout"),console.debug("API TIMEOUT",e,t!=null?t:"")},i);return Object.assign(fetch(Y5()+Yu+e,{method:"POST",headers:{"content-type":"application/json","x-hfs-anti-csrf":"1"},signal:o.signal,body:t&&JSON.stringify(t)}).then(p=>ot(this,null,function*(){var m;r==null||r();let h=yield p.text(),y;try{y=JSON.parse(h)}catch(C){}const v=y!=null?y:h;if(console.debug(p.ok?"API":"API FAILED",e,t!=null?t:"",">>",v),yield(m=n.onResponse)==null?void 0:m.call(n,p,v),!p.ok)throw new x5(p.status,y===void 0?h:`Failed API ${e}: ${p.statusText}`,y);return v}),p=>{var h;throw r==null||r(),(h=p==null?void 0:p.message)!=null&&h.includes("fetch")?(console.error(p.message),Error("Network error")):s||p}).finally(()=>clearTimeout(l)),{abort(){o.abort(s="cancel")}})}class x5 extends Error{constructor(t,n,r){super(n,{cause:r}),this.code=t}get data(){return this.cause}}function S5(e,t,n={}){const[r,o]=So(void 0),[s,i]=So(void 0),[l,a]=So(0),c=u.useRef(),f=u.useRef(),p=u.useRef();u.useEffect(()=>{var C,w;(C=c.current)==null||C.abort(),o(void 0),i(void 0);let y=!1,v;const m=om(0).then(()=>!e||y?void 0:v=ut(e,t,n)).then(b=>y||o(p.current=b),b=>{y||(i(b),o(p.current=void 0))}).finally(()=>c.current=f.current=void 0);c.current=Object.assign(m,{abort(){y=!0,v==null||v.abort()}}),(w=f.current)==null||w.resolve(m)},[e,JSON.stringify(t),l]);const h=u.useCallback(()=>{c.current||(a(y=>y+1),f.current=dE())},[a]);return{data:r,setData:o,error:s,reload:h,loading:c.current||f.current,getData:()=>p.current}}function P5(e,t,n){t=Ze.omitBy(t,Ze.isUndefined),console.debug("API EVENTS",e,t);const r=new EventSource(Y5()+Yu+e+"?"+new URLSearchParams(t));return r.onopen=()=>n("connected"),r.onerror=o=>n("error",o),r.onmessage=({data:o})=>{if(!o)return n("closed"),r.close();try{o=JSON.parse(o)}catch(s){return n("string",o)}console.debug("SSE msg",o),n("msg",o)},r}function xfe(e,t={}){const[n,r]=So(void 0),[o,s]=So(void 0),[i,l]=So(!1);return u.useEffect(()=>{const a=P5(e,t,(f,p)=>{switch(f){case"error":return s("Connection error"),c();case"closed":return c();case"msg":return(a==null?void 0:a.readyState)===(a==null?void 0:a.CLOSED)?c():r(p)}});return()=>{a.close(),c()};function c(){l(!1)}},[e,JSON.stringify(t)]),{data:n,loading:i,error:o}}const E5=typeof window!="undefined"?u.useLayoutEffect:u.useEffect;function k5(e,t,n,r){const o=u.useRef(t);E5(()=>{o.current=t},[t]),u.useEffect(()=>{var s;const i=(s=n==null?void 0:n.current)!==null&&s!==void 0?s:window;if(!(i&&i.addEventListener))return;const l=a=>o.current(a);return i.addEventListener(e,l,r),()=>{i.removeEventListener(e,l,r)}},[e,n,r])}function nE(e,t){const[n,r]=u.useState(e);return u.useEffect(()=>{const o=setTimeout(()=>r(e),t||500);return()=>{clearTimeout(o)}},[e,t]),n}function Sfe(){const e=u.useRef(!1);return u.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),u.useCallback(()=>e.current,[])}function o0(){const[e,t]=u.useState({width:0,height:0}),n=()=>{t({width:window.innerWidth,height:window.innerHeight})};return k5("resize",n),E5(()=>{n()},[]),e}function So(e){const t=Sfe(),[n,r]=u.useState(e),o=u.useCallback(s=>{t()&&r(s)},[t,r]);return[n,o,t]}function Pfe(e){return e.filter(t=>t===0||t&&(!Array.isArray(t)||t.length))}function Efe(e,t){const n=[];for(const r of Pfe(t))n.push(r,e);return n.splice(-1,1),xh(n)}function xh(e){return e.map((t,n)=>!t||typeof t=="string"?t:Array.isArray(t)?xh(t):u.createElement(u.Fragment,{key:n,children:t}))}function I5(){const[e,t]=u.useState(0);return Object.assign(u.useCallback(()=>t(n=>n+1),[t]),{state:e})}function yv(e,t,{delay:n=0}={}){const r=yv.worker2env||(yv.worker2env=e&&new Map),o=r&&(r.get(e)||(()=>{const l={batch:new Set,cache:new Map};return r.set(e,l),l})()),s=I5();u.useEffect(()=>{e&&(o.waiter||(o.waiter=new Promise(l=>{setTimeout(()=>ot(this,null,function*(){if(!o.batch.size)return l();const a=[...o.batch.values()];o.batch.clear();const c=yield e(a);a.forEach((f,p)=>{var h;return o.cache.set(f,(h=c[p])!=null?h:null)}),o.waiter=void 0,l()}),n)}))).then(s)},[e]);const i=o&&o.cache.get(t);return o&&i===void 0&&o.batch.add(t),ye({data:i},o)}function kfe(n){var r=n,{margin:e}=r,t=Lt(r,["margin"]);const o=u.useRef(),[s,i]=u.useState(),l=o0();return u.useEffect(()=>{const a=o.current;if(!a)return;const c=a.getBoundingClientRect(),f=document.documentElement,p=window.innerHeight||f.clientHeight;i(p-(c==null?void 0:c.top)-e)},[l]),u.createElement("div",ye({ref:o,style:{maxHeight:s,overflow:"auto"}},t))}function Ife({children:e}){return e?u.createElement("div",{className:"ariaOnly"},e):null}const Mfe=navigator.platform.match("Mac");function s0(e){return(e.ctrlKey||Mfe&&e.metaKey)&&e.key}const _fe=Symbol(),rE=Symbol(),ep="a",bv="w";let Tfe=(e,t)=>new Proxy(e,t);const cS=Object.getPrototypeOf,uS=new WeakMap,M5=e=>e&&(uS.has(e)?uS.get(e):cS(e)===Object.prototype||cS(e)===Array.prototype),yO=e=>typeof e=="object"&&e!==null,$fe=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(n=>{n.configurable=!0}),Object.create(cS(e),t)},_5=e=>e[rE]||e,T5=(e,t,n,r)=>{if(!M5(e))return e;let o=r&&r.get(e);if(!o){const a=_5(e);o=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(f=>!f.configurable&&!f.writable))(a)?[a,$fe(a)]:[a],r==null||r.set(e,o)}const[s,i]=o;let l=n&&n.get(s);return l&&l[1].f===!!i||(l=((a,c)=>{const f={f:c};let p=!1;const h=(v,m)=>{if(!p){let C=f[ep].get(a);if(C||(C={},f[ep].set(a,C)),v===bv)C[bv]=!0;else{let w=C[v];w||(w=new Set,C[v]=w),w.add(m)}}},y={get:(v,m)=>m===rE?a:(h("k",m),T5(Reflect.get(v,m),f[ep],f.c,f.t)),has:(v,m)=>m===_fe?(p=!0,f[ep].delete(a),!0):(h("h",m),Reflect.has(v,m)),getOwnPropertyDescriptor:(v,m)=>(h("o",m),Reflect.getOwnPropertyDescriptor(v,m)),ownKeys:v=>(h(bv),Reflect.ownKeys(v))};return c&&(y.set=y.deleteProperty=()=>!1),[y,f]})(s,!!i),l[1].p=Tfe(i||s,l[0]),n&&n.set(s,l)),l[1][ep]=t,l[1].c=n,l[1].t=r,l[1].p},$5=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!yO(e)||!yO(t))return!0;const o=n.get(_5(e));if(!o)return!0;if(r){const i=r.get(e);if(i&&i.n===t)return i.g;r.set(e,{n:t,g:!1})}let s=null;try{for(const i of o.h||[])if(s=Reflect.has(e,i)!==Reflect.has(t,i),s)return s;if(o[bv]===!0){if(s=((i,l)=>{const a=Reflect.ownKeys(i),c=Reflect.ownKeys(l);return a.length!==c.length||a.some((f,p)=>f!==c[p])})(e,t),s)return s}else for(const i of o.o||[])if(s=!!Reflect.getOwnPropertyDescriptor(e,i)!=!!Reflect.getOwnPropertyDescriptor(t,i),s)return s;for(const i of o.k||[])if(s=$5(e[i],t[i],n,r),s)return s;return s===null&&(s=!0),s}finally{r&&r.set(e,{n:t,g:s})}},Rfe=e=>M5(e)&&e[rE]||null,bO=(e,t=!0)=>{uS.set(e,t)};const cC=e=>typeof e=="object"&&e!==null,la=new WeakMap,hp=new WeakSet,Ofe=(e=Object.is,t=(c,f)=>new Proxy(c,f),n=c=>cC(c)&&!hp.has(c)&&(Array.isArray(c)||!(Symbol.iterator in c))&&!(c instanceof WeakMap)&&!(c instanceof WeakSet)&&!(c instanceof Error)&&!(c instanceof Number)&&!(c instanceof Date)&&!(c instanceof String)&&!(c instanceof RegExp)&&!(c instanceof ArrayBuffer),r=c=>{switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:throw c}},o=new WeakMap,s=(c,f,p=r)=>{const h=o.get(c);if((h==null?void 0:h[0])===f)return h[1];const y=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c));return bO(y,!0),o.set(c,[f,y]),Reflect.ownKeys(c).forEach(v=>{if(Object.getOwnPropertyDescriptor(y,v))return;const m=Reflect.get(c,v),{enumerable:C}=Reflect.getOwnPropertyDescriptor(c,v),w={value:m,enumerable:C,configurable:!0};if(hp.has(m))bO(m,!1);else if(m instanceof Promise)delete w.value,w.get=()=>p(m);else if(la.has(m)){const[b,x]=la.get(m);w.value=s(b,x(),p)}Object.defineProperty(y,v,w)}),Object.preventExtensions(y)},i=new WeakMap,l=[1,1],a=c=>{if(!cC(c))throw new Error("object required");const f=i.get(c);if(f)return f;let p=l[0];const h=new Set,y=(O,$=++l[0])=>{p!==$&&(p=$,h.forEach(L=>L(O,$)))};let v=l[1];const m=(O=++l[1])=>(v!==O&&!h.size&&(v=O,w.forEach(([$])=>{const L=$[1](O);L>p&&(p=L)})),p),C=O=>($,L)=>{const j=[...$];j[1]=[O,...j[1]],y(j,L)},w=new Map,b=(O,$)=>{if(h.size){const L=$[3](C(O));w.set(O,[$,L])}else w.set(O,[$])},x=O=>{var $;const L=w.get(O);L&&(w.delete(O),($=L[1])==null||$.call(L))},P=O=>(h.add(O),h.size===1&&w.forEach(([L,j],N)=>{const _=L[3](C(N));w.set(N,[L,_])}),()=>{h.delete(O),h.size===0&&w.forEach(([L,j],N)=>{j&&(j(),w.set(N,[L]))})}),k=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),I=t(k,{deleteProperty(O,$){const L=Reflect.get(O,$);x($);const j=Reflect.deleteProperty(O,$);return j&&y(["delete",[$],L]),j},set(O,$,L,j){const N=Reflect.has(O,$),_=Reflect.get(O,$,j);if(N&&(e(_,L)||i.has(L)&&e(_,i.get(L))))return!0;x($),cC(L)&&(L=Rfe(L)||L);let T=L;if(L instanceof Promise)L.then(B=>{L.status="fulfilled",L.value=B,y(["resolve",[$],B])}).catch(B=>{L.status="rejected",L.reason=B,y(["reject",[$],B])});else{!la.has(L)&&n(L)&&(T=a(L));const B=!hp.has(T)&&la.get(T);B&&b($,B)}return Reflect.set(O,$,T,j),y(["set",[$],L,_]),!0}});i.set(c,I);const R=[k,m,s,P];return la.set(I,R),Reflect.ownKeys(c).forEach(O=>{const $=Object.getOwnPropertyDescriptor(c,O);"value"in $&&(I[O]=c[O],delete $.value,delete $.writable),Object.defineProperty(k,O,$)}),I})=>[a,la,hp,e,t,n,r,o,s,i,l],[Dfe]=Ofe();function oE(e={}){return Dfe(e)}function sE(e,t,n){const r=la.get(e);let o;const s=[],i=r[3];let l=!1;const c=i(f=>{if(s.push(f),n){t(s.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,l&&t(s.splice(0))}))});return l=!0,()=>{l=!1,c()}}function wO(e,t){const n=la.get(e),[r,o,s]=n;return s(r,o(),t)}function Afe(e){return hp.add(e),e}var R5={exports:{}},O5={};/**
320
+ * @license React
321
+ * use-sync-external-store-shim.production.min.js
322
+ *
323
+ * Copyright (c) Facebook, Inc. and its affiliates.
324
+ *
325
+ * This source code is licensed under the MIT license found in the
326
+ * LICENSE file in the root directory of this source tree.
327
+ */var Dd=u;function Lfe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ffe=typeof Object.is=="function"?Object.is:Lfe,Nfe=Dd.useState,Bfe=Dd.useEffect,jfe=Dd.useLayoutEffect,zfe=Dd.useDebugValue;function Vfe(e,t){var n=t(),r=Nfe({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return jfe(function(){o.value=n,o.getSnapshot=t,uC(o)&&s({inst:o})},[e,n,t]),Bfe(function(){return uC(o)&&s({inst:o}),e(function(){uC(o)&&s({inst:o})})},[e]),zfe(n),n}function uC(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ffe(e,n)}catch(r){return!0}}function Hfe(e,t){return t()}var Ufe=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?Hfe:Vfe;O5.useSyncExternalStore=Dd.useSyncExternalStore!==void 0?Dd.useSyncExternalStore:Ufe;R5.exports=O5;var Wfe=R5.exports;const Gfe=vi(Wfe),{use:CO}=Yo,{useSyncExternalStore:Kfe}=Gfe;const qfe=new WeakMap;function iE(e,t){const n=t==null?void 0:t.sync,r=u.useRef(),o=u.useRef();let s=!0;const i=Kfe(u.useCallback(c=>{const f=sE(e,c,n);return c(),f},[e,n]),()=>{const c=wO(e,CO);try{if(!s&&r.current&&o.current&&!$5(r.current,c,o.current,new WeakMap))return r.current}catch(f){}return c},()=>wO(e,CO));s=!1;const l=new WeakMap;u.useEffect(()=>{r.current=i,o.current=l});const a=u.useMemo(()=>new WeakMap,[]);return T5(i,l,a,qfe)}const Ad=oE([]),dS={closableProps:{children:"x","aria-label":"Close"},padding:!0},D5=['input:not([type="hidden"])',"button","select","textarea","a[href]","[tabindex]"].map(e=>e+':not([disabled]):not([tabindex="-1"])').join(",");window.addEventListener("keydown",e=>{if(e.key!=="Tab")return;const t=document.querySelectorAll("[role=dialog]"),n=t[t.length-1];if(!n)return;const r=n.querySelectorAll(D5),o=r.length;if(!o)return;const[s,i]=e.shiftKey?[o-1,0]:[0,o-1];e.target!==r[i]&&Yfe(document.activeElement,n)||(r[s].focus(),e.preventDefault())});function Yfe(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function Qfe(e){const t=iE(Ad);return u.useEffect(()=>{document.body.style.overflow=t.length?"hidden":""},[t.length]),u.createElement(u.Fragment,{},u.createElement("div",ye({"aria-hidden":t.length>0},e)),t.map(n=>u.createElement(Xfe,ye({key:n.$id},n))))}function Xfe(e){var r;const t=u.useRef();if(u.useEffect(()=>{var o;(o=t.current)==null||o.focus()},[]),e=ye(ye({closable:!0},dS),e),e.Container)return u.createElement(e.Container,e);return u.createElement("div",{ref:t,className:"dialog-backdrop "+(e.className||""),tabIndex:0,onKeyDown:Zfe,onClick:o=>e.closable&&o.target===o.currentTarget&&Ki()},e.noFrame?u.createElement(e.Content||"div"):u.createElement("div",ye({role:"dialog","aria-modal":!0,className:"dialog",style:ye(ye({},n()),(r=e.dialogProps)==null?void 0:r.style),onClick(o){o.stopPropagation()}},e.dialogProps),e.closable&&u.createElement("button",ye({className:"dialog-icon dialog-closer",onClick(){Ki()}},e.closableProps)),e.icon&&u.createElement("div",{className:"dialog-icon dialog-type"+(typeof e.icon=="string"?" dialog-icon-text":""),"aria-hidden":!0},gy(e.icon)),u.createElement("div",{className:"dialog-title"},gy(e.title)),u.createElement("div",{className:"dialog-content"},u.createElement(e.Content||"div"))));function n(){const{innerWidth:o,innerHeight:s}=window,i=e.position;return i&&ye(ye({margin:"1em",position:"absolute"},i[0]<o/2?{left:i[0]}:{right:o-i[0]}),i[1]<s/2?{top:i[1]}:{bottom:s-i[1]})}}function gy(e){return phe(e)||u.isValidElement(e)?e:u.createElement(e)}function Zfe(e){e.key==="Escape"&&Ki()}function po(e){const t=Math.random();return e.$id=t,e=v0(e,r=>u.isValidElement(r)?Afe(r):r),Ad.push(e),{close:n};function n(r){const o=Ad.findIndex(s=>s.$id===t);if(!(o<0))return A5(o,r)}}function Ki(e){let t=Ad.length;for(;t--;){const n=Ad[t];if(!n.reserveClosing)return A5(t,e),n}}function A5(e,t){var r;const[n]=Ad.splice(e,1);return(r=n==null?void 0:n.onClose)==null?void 0:r.call(n,t)}var Ec={},i0={},Ld={};const Jfe={},epe=Object.freeze(Object.defineProperty({__proto__:null,default:Jfe},Symbol.toStringTag,{value:"Module"})),xO=Yi(epe);Object.defineProperty(Ld,"__esModule",{value:!0});var SO=Ld.crossEnvCrypto=void 0;try{const e=typeof window!="undefined"&&window.crypto||xO.webcrypto;if(e){if(!e.subtle)throw new Error("Crypto.Subtle is undefined. Make sure you are using HTTPS in a compatible browser.");const t=n=>r=>e.subtle.digest(n,r);SO=Ld.crossEnvCrypto={randomBytes:e.getRandomValues.bind(e),hashFunctions:{SHA1:t("SHA-1"),SHA256:t("SHA-256"),SHA384:t("SHA-384"),SHA512:t("SHA-512")}}}else{const t=xO,n=r=>o=>t.createHash(r).update(o).digest().buffer;SO=Ld.crossEnvCrypto={randomBytes:t.randomFillSync,hashFunctions:{SHA1:n("sha1"),SHA256:n("sha256"),SHA384:n("sha384"),SHA512:n("sha512")}}}}catch(e){throw console.error(e),new Error("No suitable crypto library was found. You may need a polyfill.")}Object.defineProperty(i0,"__esModule",{value:!0});i0.SRPParameters=void 0;const Bg=Ld;class Fd{constructor(t=Fd.PrimeGroup[2048],n=Fd.H.SHA512){if(this.primeGroup=t,this.H=n,this.NBits=this.primeGroup.N.toString(2).length,!n)throw new Error("Hash function required")}}i0.SRPParameters=Fd;Fd.PrimeGroup={256:{N:BigInt("125617018995153554710546479714086468244499594888726646874671447258204721048803"),g:BigInt(2)},512:{N:BigInt("11144252439149533417835749556168991736939157778924947037200268358613863350040339017097790259154750906072491181606044774215413467851989724116331597513345603"),g:BigInt(2)},768:{N:BigInt("1087179135105457859072065649059069760280540086975817629066444682366896187793570736574549981488868217843627094867924800342887096064844227836735667168319981288765377499806385489913341488724152562880918438701129530606139552645689583147"),g:BigInt(2)},1024:{N:BigInt("167609434410335061345139523764350090260135525329813904557420930309800865859473551531551523800013916573891864789934747039010546328480848979516637673776605610374669426214776197828492691384519453218253702788022233205683635831626913357154941914129985489522629902540768368409482248290641036967659389658897350067939"),g:BigInt(2)},1536:{N:BigInt("1486998185923128292816507353619409521152457662596380074614818966810244974827752411420380336514078832314731499938313197533147998565301020797040787428051479639316928015998415709101293902971072960487527411068082311763171549170528008620813391411445907584912865222076100726050255271567749213905330659264908657221124284665444825474741087704974475795505492821585749417639344967192301749033325359286273431675492866492416941152646940908101472416714421046022696100064262587"),g:BigInt(2)},2048:{N:BigInt("21766174458617435773191008891802753781907668374255538511144643224689886235383840957210909013086056401571399717235807266581649606472148410291413364152197364477180887395655483738115072677402235101762521901569820740293149529620419333266262073471054548368736039519702486226506248861060256971802984953561121442680157668000761429988222457090413873973970171927093992114751765168063614761119615476233422096442783117971236371647333871414335895773474667308967050807005509320424799678417036867928316761272274230314067548291133582479583061439577559347101961771406173684378522703483495337037655006751328447510550299250924469288819"),g:BigInt(2)}};Fd.H={SHA1:Bg.crossEnvCrypto.hashFunctions.SHA1,SHA256:Bg.crossEnvCrypto.hashFunctions.SHA256,SHA384:Bg.crossEnvCrypto.hashFunctions.SHA384,SHA512:Bg.crossEnvCrypto.hashFunctions.SHA512};var l0={},a0={};(function(e){var t=an&&an.__awaiter||function(x,P,k,E){function I(R){return R instanceof k?R:new k(function(O){O(R)})}return new(k||(k=Promise))(function(R,O){function $(N){try{j(E.next(N))}catch(_){O(_)}}function L(N){try{j(E.throw(N))}catch(_){O(_)}}function j(N){N.done?R(N.value):I(N.value).then($,L)}j((E=E.apply(x,P||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.modPow=e.hashBitCount=e.createVerifierAndSalt=e.createVerifier=e.generateRandomBigInt=e.generateRandomString=e.hashPadded=e.hash=e.padStartArrayBuffer=e.stringToArrayBuffer=e.arrayBufferToBigInt=e.bigIntToArrayBuffer=void 0;const n=Ld,r=BigInt(0),o=BigInt(1),s=BigInt(2),i=x=>{const P=x.toString(16),k=new ArrayBuffer(Math.ceil(P.length/2)),E=new Uint8Array(k);let I=0;P.length%2!==0&&(E[0]=parseInt(P[0],16),I=1);for(let R=0;R<k.byteLength;R++)E[R+I]=parseInt(P.slice(2*R+I,2*R+2+I),16);return k};e.bigIntToArrayBuffer=i;const l=x=>{const P=[];return new Uint8Array(x).forEach(k=>{P.push(("0"+k.toString(16)).slice(-2))}),BigInt(`0x${P.join("")}`)};e.arrayBufferToBigInt=l;function a(x){return new TextEncoder().encode(x).buffer}e.stringToArrayBuffer=a;const c=(x,P)=>{const k=new Uint8Array(x);if(k.length<P){const E=new Uint8Array(P);return E.fill(0,0,P-k.length),E.set(k,P-k.length),E}return k};e.padStartArrayBuffer=c;function f(x,...P){const k=P.reduce((I,R)=>I+R.byteLength,0),E=new Uint8Array(k);for(let I=0,R=0;R<P.length;R++)E.set(new Uint8Array(P[R]),I),I+=P[R].byteLength;return x.H(E)}e.hash=f;function p(x,P,...k){const E=k.map(I=>e.padStartArrayBuffer(I,P));return f(x,...E)}e.hashPadded=p;function h(x=10){const P=new Uint8Array(Math.ceil(Math.ceil(x/2)));return n.crossEnvCrypto.randomBytes(P),P.reduce((k,E)=>{const I=E.toString(16).toString();return I.length===1?k+"0"+I:k+I},"").slice(0,x)}e.generateRandomString=h;function y(x=16){return e.arrayBufferToBigInt(b(x))}e.generateRandomBigInt=y;function v(x,P,k,E){return t(this,void 0,void 0,function*(){if(!P||!P.trim())throw new Error("Identity (I) must not be null or empty.");if(!k)throw new Error("Salt (s) must not be null.");if(!E)throw new Error("Password (P) must not be null");const I=yield x.computeX(P,k,E);return x.computeVerifier(I)})}e.createVerifier=v;function m(x,P,k,E){return t(this,void 0,void 0,function*(){const I=yield x.generateRandomSalt(E);return{s:I,v:yield v(x,P,I,k)}})}e.createVerifierAndSalt=m;const C=x=>t(void 0,void 0,void 0,function*(){return(yield f(x,e.bigIntToArrayBuffer(BigInt(1)))).byteLength*8});e.hashBitCount=C;function w(x,P,k){let E=o;for(;P>r;)P%s==o?(E=x*E%k,P-=o):(x=x*x%k,P/=s);return E}e.modPow=w;const b=x=>{const P=new Uint8Array(x);return n.crossEnvCrypto.randomBytes(P),P.buffer}})(a0);var Jl=an&&an.__awaiter||function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function l(f){try{c(r.next(f))}catch(p){i(p)}}function a(f){try{c(r.throw(f))}catch(p){i(p)}}function c(f){f.done?s(f.value):o(f.value).then(l,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(l0,"__esModule",{value:!0});l0.SRPRoutines=void 0;const gn=a0;class tpe{constructor(t){this.parameters=t}hash(...t){return gn.hash(this.parameters,...t)}hashPadded(...t){const n=Math.trunc((this.parameters.NBits+7)/8);return gn.hashPadded(this.parameters,n,...t)}computeK(){return Jl(this,void 0,void 0,function*(){return gn.arrayBufferToBigInt(yield this.hashPadded(gn.bigIntToArrayBuffer(this.parameters.primeGroup.N),gn.bigIntToArrayBuffer(this.parameters.primeGroup.g)))})}generateRandomSalt(t){return Jl(this,void 0,void 0,function*(){const n=yield gn.hashBitCount(this.parameters),r=t||2*n/8;return gn.generateRandomBigInt(r)})}computeX(t,n,r){return Jl(this,void 0,void 0,function*(){return gn.arrayBufferToBigInt(yield this.hash(gn.bigIntToArrayBuffer(n),yield this.computeIdentityHash(t,r)))})}computeXStep2(t,n){return Jl(this,void 0,void 0,function*(){return gn.arrayBufferToBigInt(yield this.hash(gn.bigIntToArrayBuffer(t),n))})}computeIdentityHash(t,n){return Jl(this,void 0,void 0,function*(){return yield this.hash(gn.stringToArrayBuffer(n))})}computeVerifier(t){return gn.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}generatePrivateValue(){const t=Math.max(256,this.parameters.NBits);let n;do n=gn.generateRandomBigInt(t/8)%this.parameters.primeGroup.N;while(n===BigInt(0));return n}computeClientPublicValue(t){return gn.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}isValidPublicValue(t){return t%this.parameters.primeGroup.N!==BigInt(0)}computeU(t,n){return Jl(this,void 0,void 0,function*(){return gn.arrayBufferToBigInt(yield this.hashPadded(gn.bigIntToArrayBuffer(t),gn.bigIntToArrayBuffer(n)))})}computeClientEvidence(t,n,r,o,s){return Jl(this,void 0,void 0,function*(){return gn.arrayBufferToBigInt(yield this.hash(gn.bigIntToArrayBuffer(r),gn.bigIntToArrayBuffer(o),gn.bigIntToArrayBuffer(s)))})}computeServerEvidence(t,n,r){return Jl(this,void 0,void 0,function*(){return gn.arrayBufferToBigInt(yield this.hash(gn.bigIntToArrayBuffer(t),gn.bigIntToArrayBuffer(n),gn.bigIntToArrayBuffer(r)))})}computeClientSessionKey(t,n,r,o,s){const i=this.parameters.primeGroup.N,l=r*n+o,a=gn.modPow(this.parameters.primeGroup.g,n,i)*t%i;return gn.modPow(s+i-a,l,i)}}l0.SRPRoutines=tpe;var Ma={},lE=an&&an.__awaiter||function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function l(f){try{c(r.next(f))}catch(p){i(p)}}function a(f){try{c(r.throw(f))}catch(p){i(p)}}function c(f){f.done?s(f.value):o(f.value).then(l,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(Ma,"__esModule",{value:!0});Ma.SRPClientSessionStep2=Ma.SRPClientSessionStep1=Ma.SRPClientSession=void 0;class npe{constructor(t){this.routines=t}step1(t,n){return lE(this,void 0,void 0,function*(){if(!t||!t.trim())throw new Error("User identity must not be null nor empty");if(!n)throw new Error("User password must not be null");const r=yield this.routines.computeIdentityHash(t,n);return new c0(this.routines,t,r)})}}Ma.SRPClientSession=npe;class c0{constructor(t,n,r){this.routines=t,this.I=n,this.IH=r}step2(t,n){return lE(this,void 0,void 0,function*(){if(!t)throw new Error("Salt (s) must not be null");if(!n)throw new Error("Public server value (B) must not be null");const r=yield this.routines.computeXStep2(t,this.IH),o=this.routines.generatePrivateValue(),s=this.routines.computeClientPublicValue(o),i=yield this.routines.computeK(),l=yield this.routines.computeU(s,n),a=this.routines.computeClientSessionKey(i,r,l,o,n),c=yield this.routines.computeClientEvidence(this.I,t,s,n,a);return new u0(this.routines,s,c,a)})}toJSON(){return{I:this.I,IH:Array.from(new Uint8Array(this.IH))}}static fromState(t,n){return new c0(t,n.I,new Uint8Array(n.IH).buffer)}}Ma.SRPClientSessionStep1=c0;class u0{constructor(t,n,r,o){this.routines=t,this.A=n,this.M1=r,this.S=o}step3(t){return lE(this,void 0,void 0,function*(){if(!t)throw new Error("Server evidence (M2) must not be null");if((yield this.routines.computeServerEvidence(this.A,this.M1,this.S))!==t)throw new Error("Bad server credentials")})}toJSON(){return{A:this.A.toString(16),M1:this.M1.toString(16),S:this.S.toString(16)}}static fromState(t,n){return new u0(t,BigInt("0x"+n.A),BigInt("0x"+n.M1),BigInt("0x"+n.S))}}Ma.SRPClientSessionStep2=u0;var Nd={},fS=an&&an.__awaiter||function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function l(f){try{c(r.next(f))}catch(p){i(p)}}function a(f){try{c(r.throw(f))}catch(p){i(p)}}function c(f){f.done?s(f.value):o(f.value).then(l,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(Nd,"__esModule",{value:!0});Nd.SRPServerSessionStep1=Nd.SRPServerSession=void 0;const pS=a0;class rpe{constructor(t){this.routines=t}step1(t,n,r){return fS(this,void 0,void 0,function*(){const o=this.routines.generatePrivateValue(),s=yield this.routines.computeK(),i=ope(this.routines.parameters,s,r,o);return new d0(this.routines,t,n,r,o,i)})}}Nd.SRPServerSession=rpe;class d0{constructor(t,n,r,o,s,i){this.routines=t,this.identifier=n,this.salt=r,this.verifier=o,this.b=s,this.B=i}sessionKey(t){return fS(this,void 0,void 0,function*(){if(t===null)throw new Error("Client public value (A) must not be null");if(!this.routines.isValidPublicValue(t))throw new Error(`Invalid Client public value (A): ${t.toString(16)}`);const n=yield this.routines.computeU(t,this.B);return spe(this.routines.parameters.primeGroup.N,this.verifier,n,t,this.b)})}step2(t,n){return fS(this,void 0,void 0,function*(){if(!n)throw new Error("Client evidence (M1) must not be null");const r=yield this.sessionKey(t);if((yield this.routines.computeClientEvidence(this.identifier,this.salt,t,this.B,r))!==n)throw new Error("Bad client credentials");return this.routines.computeServerEvidence(t,n,r)})}toJSON(){return{identifier:this.identifier,salt:this.salt.toString(16),verifier:this.verifier.toString(16),b:this.b.toString(16),B:this.B.toString(16)}}static fromState(t,n){return new d0(t,n.identifier,BigInt("0x"+n.salt),BigInt("0x"+n.verifier),BigInt("0x"+n.b),BigInt("0x"+n.B))}}Nd.SRPServerSessionStep1=d0;const ope=(e,t,n,r)=>(pS.modPow(e.primeGroup.g,r,e.primeGroup.N)+n*t)%e.primeGroup.N,spe=(e,t,n,r,o)=>pS.modPow(pS.modPow(t,n,e)*r,o,e);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.generateRandomBigInt=e.arrayBufferToBigInt=e.bigIntToArrayBuffer=e.createVerifierAndSalt=e.SRPServerSessionStep1=e.SRPServerSession=e.SRPClientSessionStep2=e.SRPClientSessionStep1=e.SRPClientSession=e.SRPRoutines=e.SRPParameters=void 0;var t=i0;Object.defineProperty(e,"SRPParameters",{enumerable:!0,get:function(){return t.SRPParameters}});var n=l0;Object.defineProperty(e,"SRPRoutines",{enumerable:!0,get:function(){return n.SRPRoutines}});var r=Ma;Object.defineProperty(e,"SRPClientSession",{enumerable:!0,get:function(){return r.SRPClientSession}}),Object.defineProperty(e,"SRPClientSessionStep1",{enumerable:!0,get:function(){return r.SRPClientSessionStep1}}),Object.defineProperty(e,"SRPClientSessionStep2",{enumerable:!0,get:function(){return r.SRPClientSessionStep2}});var o=Nd;Object.defineProperty(e,"SRPServerSession",{enumerable:!0,get:function(){return o.SRPServerSession}}),Object.defineProperty(e,"SRPServerSessionStep1",{enumerable:!0,get:function(){return o.SRPServerSessionStep1}});var s=a0;Object.defineProperty(e,"createVerifierAndSalt",{enumerable:!0,get:function(){return s.createVerifierAndSalt}}),Object.defineProperty(e,"bigIntToArrayBuffer",{enumerable:!0,get:function(){return s.bigIntToArrayBuffer}}),Object.defineProperty(e,"arrayBufferToBigInt",{enumerable:!0,get:function(){return s.arrayBufferToBigInt}}),Object.defineProperty(e,"generateRandomBigInt",{enumerable:!0,get:function(){return s.generateRandomBigInt}})})(Ec);function ipe(e,t,n){return ot(this,null,function*(){const{pubKey:r,salt:o}=yield n("loginSrp1",{username:e});if(!o)throw Error("salt");const s=yield lpe(e,t,o,r),i=yield n("loginSrp2",{pubKey:String(s.A),proof:String(s.M1)});return yield s.step3(BigInt(i.proof)).catch(()=>Promise.reject("trust")),i})}function lpe(e,t,n,r){return ot(this,null,function*(){const o=new Ec.SRPRoutines(new Ec.SRPParameters);return yield(yield new Ec.SRPClientSession(o).step1(e,t)).step2(BigInt(n),BigInt(r))})}var f0={};const Ii="\\\\/",PO=`[^${Ii}]`,pl="\\.",ape="\\+",cpe="\\?",p0="\\/",upe="(?=.)",L5="[^/]",aE=`(?:${p0}|$)`,F5=`(?:^|${p0})`,cE=`${pl}{1,2}${aE}`,dpe=`(?!${pl})`,fpe=`(?!${F5}${cE})`,ppe=`(?!${pl}{0,1}${aE})`,hpe=`(?!${cE})`,mpe=`[^.${p0}]`,gpe=`${L5}*?`,vpe="/",N5={DOT_LITERAL:pl,PLUS_LITERAL:ape,QMARK_LITERAL:cpe,SLASH_LITERAL:p0,ONE_CHAR:upe,QMARK:L5,END_ANCHOR:aE,DOTS_SLASH:cE,NO_DOT:dpe,NO_DOTS:fpe,NO_DOT_SLASH:ppe,NO_DOTS_SLASH:hpe,QMARK_NO_DOT:mpe,STAR:gpe,START_ANCHOR:F5,SEP:vpe},ype=it(ye({},N5),{SLASH_LITERAL:`[${Ii}]`,QMARK:PO,STAR:`${PO}*?`,DOTS_SLASH:`${pl}{1,2}(?:[${Ii}]|$)`,NO_DOT:`(?!${pl})`,NO_DOTS:`(?!(?:^|[${Ii}])${pl}{1,2}(?:[${Ii}]|$))`,NO_DOT_SLASH:`(?!${pl}{0,1}(?:[${Ii}]|$))`,NO_DOTS_SLASH:`(?!${pl}{1,2}(?:[${Ii}]|$))`,QMARK_NO_DOT:`[^.${Ii}]`,START_ANCHOR:`(?:^|[${Ii}])`,END_ANCHOR:`(?:[${Ii}]|$)`,SEP:"\\"}),bpe={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};var h0={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:bpe,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?ype:N5}};(function(e){const{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:o}=h0;e.isObject=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),e.hasRegexChars=s=>r.test(s),e.isRegexChar=s=>s.length===1&&e.hasRegexChars(s),e.escapeRegex=s=>s.replace(o,"\\$1"),e.toPosixSlashes=s=>s.replace(t,"/"),e.removeBackslashes=s=>s.replace(n,i=>i==="\\"?"":i),e.supportsLookbehinds=()=>{if(typeof process!="undefined"){const s=process.version.slice(1).split(".").map(Number);if(s.length===3&&s[0]>=9||s[0]===8&&s[1]>=10)return!0}return!1},e.escapeLast=(s,i,l)=>{const a=s.lastIndexOf(i,l);return a===-1?s:s[a-1]==="\\"?e.escapeLast(s,i,a-1):`${s.slice(0,a)}\\${s.slice(a)}`},e.removePrefix=(s,i={})=>{let l=s;return l.startsWith("./")&&(l=l.slice(2),i.prefix="./"),l},e.wrapOutput=(s,i={},l={})=>{const a=l.contains?"":"^",c=l.contains?"":"$";let f=`${a}(?:${s})${c}`;return i.negated===!0&&(f=`(?:^(?!${f}).*$)`),f},e.basename=(s,{windows:i}={})=>{const l=s.split(i?/[\\/]/:"/"),a=l[l.length-1];return a===""?l[l.length-2]:a}})(f0);const EO=f0,{CHAR_ASTERISK:dC,CHAR_AT:wpe,CHAR_BACKWARD_SLASH:mp,CHAR_COMMA:Cpe,CHAR_DOT:fC,CHAR_EXCLAMATION_MARK:pC,CHAR_FORWARD_SLASH:B5,CHAR_LEFT_CURLY_BRACE:hC,CHAR_LEFT_PARENTHESES:mC,CHAR_LEFT_SQUARE_BRACKET:xpe,CHAR_PLUS:Spe,CHAR_QUESTION_MARK:kO,CHAR_RIGHT_CURLY_BRACE:Ppe,CHAR_RIGHT_PARENTHESES:IO,CHAR_RIGHT_SQUARE_BRACKET:Epe}=h0,MO=e=>e===B5||e===mp,_O=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},kpe=(e,t)=>{const n=t||{},r=e.length-1,o=n.parts===!0||n.scanToEnd===!0,s=[],i=[],l=[];let a=e,c=-1,f=0,p=0,h=!1,y=!1,v=!1,m=!1,C=!1,w=!1,b=!1,x=!1,P=!1,k=!1,E=0,I,R,O={value:"",depth:0,isGlob:!1};const $=()=>c>=r,L=()=>a.charCodeAt(c+1),j=()=>(I=R,a.charCodeAt(++c));for(;c<r;){R=j();let V;if(R===mp){b=O.backslashes=!0,R=j(),R===hC&&(w=!0);continue}if(w===!0||R===hC){for(E++;$()!==!0&&(R=j());){if(R===mp){b=O.backslashes=!0,j();continue}if(R===hC){E++;continue}if(w!==!0&&R===fC&&(R=j())===fC){if(h=O.isBrace=!0,v=O.isGlob=!0,k=!0,o===!0)continue;break}if(w!==!0&&R===Cpe){if(h=O.isBrace=!0,v=O.isGlob=!0,k=!0,o===!0)continue;break}if(R===Ppe&&(E--,E===0)){w=!1,h=O.isBrace=!0,k=!0;break}}if(o===!0)continue;break}if(R===B5){if(s.push(c),i.push(O),O={value:"",depth:0,isGlob:!1},k===!0)continue;if(I===fC&&c===f+1){f+=2;continue}p=c+1;continue}if(n.noext!==!0&&(R===Spe||R===wpe||R===dC||R===kO||R===pC)===!0&&L()===mC){if(v=O.isGlob=!0,m=O.isExtglob=!0,k=!0,R===pC&&c===f&&(P=!0),o===!0){for(;$()!==!0&&(R=j());){if(R===mp){b=O.backslashes=!0,R=j();continue}if(R===IO){v=O.isGlob=!0,k=!0;break}}continue}break}if(R===dC){if(I===dC&&(C=O.isGlobstar=!0),v=O.isGlob=!0,k=!0,o===!0)continue;break}if(R===kO){if(v=O.isGlob=!0,k=!0,o===!0)continue;break}if(R===xpe){for(;$()!==!0&&(V=j());){if(V===mp){b=O.backslashes=!0,j();continue}if(V===Epe){y=O.isBracket=!0,v=O.isGlob=!0,k=!0;break}}if(o===!0)continue;break}if(n.nonegate!==!0&&R===pC&&c===f){x=O.negated=!0,f++;continue}if(n.noparen!==!0&&R===mC){if(v=O.isGlob=!0,o===!0){for(;$()!==!0&&(R=j());){if(R===mC){b=O.backslashes=!0,R=j();continue}if(R===IO){k=!0;break}}continue}break}if(v===!0){if(k=!0,o===!0)continue;break}}n.noext===!0&&(m=!1,v=!1);let N=a,_="",T="";f>0&&(_=a.slice(0,f),a=a.slice(f),p-=f),N&&v===!0&&p>0?(N=a.slice(0,p),T=a.slice(p)):v===!0?(N="",T=a):N=a,N&&N!==""&&N!=="/"&&N!==a&&MO(N.charCodeAt(N.length-1))&&(N=N.slice(0,-1)),n.unescape===!0&&(T&&(T=EO.removeBackslashes(T)),N&&b===!0&&(N=EO.removeBackslashes(N)));const B={prefix:_,input:e,start:f,base:N,glob:T,isBrace:h,isBracket:y,isGlob:v,isExtglob:m,isGlobstar:C,negated:x,negatedExtglob:P};if(n.tokens===!0&&(B.maxDepth=0,MO(R)||i.push(O),B.tokens=i),n.parts===!0||n.tokens===!0){let V;for(let A=0;A<s.length;A++){const F=V?V+1:f,H=s[A],K=e.slice(F,H);n.tokens&&(A===0&&f!==0?(i[A].isPrefix=!0,i[A].value=_):i[A].value=K,_O(i[A]),B.maxDepth+=i[A].depth),(A!==0||K!=="")&&l.push(K),V=H}if(V&&V+1<e.length){const A=e.slice(V+1);l.push(A),n.tokens&&(i[i.length-1].value=A,_O(i[i.length-1]),B.maxDepth+=i[i.length-1].depth)}B.slashes=s,B.parts=l}return B};var Ipe=kpe;const vy=h0,Js=f0,{MAX_LENGTH:yy,POSIX_REGEX_SOURCE:Mpe,REGEX_NON_SPECIAL_CHARS:_pe,REGEX_SPECIAL_CHARS_BACKREF:Tpe,REPLACEMENTS:j5}=vy,$pe=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();const n=`[${e.join("-")}]`;try{new RegExp(n)}catch(r){return e.map(o=>Js.escapeRegex(o)).join("..")}return n},Cu=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,uE=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=j5[e]||e;const n=ye({},t),r=typeof n.maxLength=="number"?Math.min(yy,n.maxLength):yy;let o=e.length;if(o>r)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${r}`);const s={type:"bos",value:"",output:n.prepend||""},i=[s],l=n.capture?"":"?:",a=vy.globChars(n.windows),c=vy.extglobChars(a),{DOT_LITERAL:f,PLUS_LITERAL:p,SLASH_LITERAL:h,ONE_CHAR:y,DOTS_SLASH:v,NO_DOT:m,NO_DOT_SLASH:C,NO_DOTS_SLASH:w,QMARK:b,QMARK_NO_DOT:x,STAR:P,START_ANCHOR:k}=a,E=Z=>`(${l}(?:(?!${k}${Z.dot?v:f}).)*?)`,I=n.dot?"":m,R=n.dot?b:x;let O=n.bash===!0?E(n):P;n.capture&&(O=`(${O})`),typeof n.noext=="boolean"&&(n.noextglob=n.noext);const $={input:e,index:-1,start:0,dot:n.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:i};e=Js.removePrefix(e,$),o=e.length;const L=[],j=[],N=[];let _=s,T;const B=()=>$.index===o-1,V=$.peek=(Z=1)=>e[$.index+Z],A=$.advance=()=>e[++$.index]||"",F=()=>e.slice($.index+1),H=(Z="",pe=0)=>{$.consumed+=Z,$.index+=pe},K=Z=>{$.output+=Z.output!=null?Z.output:Z.value,H(Z.value)},Y=()=>{let Z=1;for(;V()==="!"&&(V(2)!=="("||V(3)==="?");)A(),$.start++,Z++;return Z%2===0?!1:($.negated=!0,$.start++,!0)},J=Z=>{$[Z]++,N.push(Z)},Q=Z=>{$[Z]--,N.pop()},X=Z=>{if(_.type==="globstar"){const pe=$.braces>0&&(Z.type==="comma"||Z.type==="brace"),ne=Z.extglob===!0||L.length&&(Z.type==="pipe"||Z.type==="paren");Z.type!=="slash"&&Z.type!=="paren"&&!pe&&!ne&&($.output=$.output.slice(0,-_.output.length),_.type="star",_.value="*",_.output=O,$.output+=_.output)}if(L.length&&Z.type!=="paren"&&(L[L.length-1].inner+=Z.value),(Z.value||Z.output)&&K(Z),_&&_.type==="text"&&Z.type==="text"){_.value+=Z.value,_.output=(_.output||"")+Z.value;return}Z.prev=_,i.push(Z),_=Z},ee=(Z,pe)=>{const ne=it(ye({},c[pe]),{conditions:1,inner:""});ne.prev=_,ne.parens=$.parens,ne.output=$.output;const re=(n.capture?"(":"")+ne.open;J("parens"),X({type:Z,value:pe,output:$.output?"":y}),X({type:"paren",extglob:!0,value:A(),output:re}),L.push(ne)},oe=Z=>{let pe=Z.close+(n.capture?")":""),ne;if(Z.type==="negate"){let re=O;if(Z.inner&&Z.inner.length>1&&Z.inner.includes("/")&&(re=E(n)),(re!==O||B()||/^\)+$/.test(F()))&&(pe=Z.close=`)$))${re}`),Z.inner.includes("*")&&(ne=F())&&/^\.[^\\/.]+$/.test(ne)){const me=uE(ne,it(ye({},t),{fastpaths:!1})).output;pe=Z.close=`)${me})${re})`}Z.prev.type==="bos"&&($.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:T,output:pe}),Q("parens")};if(n.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let Z=!1,pe=e.replace(Tpe,(ne,re,me,ce,Ce,Ee)=>ce==="\\"?(Z=!0,ne):ce==="?"?re?re+ce+(Ce?b.repeat(Ce.length):""):Ee===0?R+(Ce?b.repeat(Ce.length):""):b.repeat(me.length):ce==="."?f.repeat(me.length):ce==="*"?re?re+ce+(Ce?O:""):O:re?ne:`\\${ne}`);return Z===!0&&(n.unescape===!0?pe=pe.replace(/\\/g,""):pe=pe.replace(/\\+/g,ne=>ne.length%2===0?"\\\\":ne?"\\":"")),pe===e&&n.contains===!0?($.output=e,$):($.output=Js.wrapOutput(pe,$,t),$)}for(;!B();){if(T=A(),T==="\0")continue;if(T==="\\"){const ne=V();if(ne==="/"&&n.bash!==!0||ne==="."||ne===";")continue;if(!ne){T+="\\",X({type:"text",value:T});continue}const re=/^\\+/.exec(F());let me=0;if(re&&re[0].length>2&&(me=re[0].length,$.index+=me,me%2!==0&&(T+="\\")),n.unescape===!0?T=A():T+=A(),$.brackets===0){X({type:"text",value:T});continue}}if($.brackets>0&&(T!=="]"||_.value==="["||_.value==="[^")){if(n.posix!==!1&&T===":"){const ne=_.value.slice(1);if(ne.includes("[")&&(_.posix=!0,ne.includes(":"))){const re=_.value.lastIndexOf("["),me=_.value.slice(0,re),ce=_.value.slice(re+2),Ce=Mpe[ce];if(Ce){_.value=me+Ce,$.backtrack=!0,A(),!s.output&&i.indexOf(_)===1&&(s.output=y);continue}}}(T==="["&&V()!==":"||T==="-"&&V()==="]")&&(T=`\\${T}`),T==="]"&&(_.value==="["||_.value==="[^")&&(T=`\\${T}`),n.posix===!0&&T==="!"&&_.value==="["&&(T="^"),_.value+=T,K({value:T});continue}if($.quotes===1&&T!=='"'){T=Js.escapeRegex(T),_.value+=T,K({value:T});continue}if(T==='"'){$.quotes=$.quotes===1?0:1,n.keepQuotes===!0&&X({type:"text",value:T});continue}if(T==="("){J("parens"),X({type:"paren",value:T});continue}if(T===")"){if($.parens===0&&n.strictBrackets===!0)throw new SyntaxError(Cu("opening","("));const ne=L[L.length-1];if(ne&&$.parens===ne.parens+1){oe(L.pop());continue}X({type:"paren",value:T,output:$.parens?")":"\\)"}),Q("parens");continue}if(T==="["){if(n.nobracket===!0||!F().includes("]")){if(n.nobracket!==!0&&n.strictBrackets===!0)throw new SyntaxError(Cu("closing","]"));T=`\\${T}`}else J("brackets");X({type:"bracket",value:T});continue}if(T==="]"){if(n.nobracket===!0||_&&_.type==="bracket"&&_.value.length===1){X({type:"text",value:T,output:`\\${T}`});continue}if($.brackets===0){if(n.strictBrackets===!0)throw new SyntaxError(Cu("opening","["));X({type:"text",value:T,output:`\\${T}`});continue}Q("brackets");const ne=_.value.slice(1);if(_.posix!==!0&&ne[0]==="^"&&!ne.includes("/")&&(T=`/${T}`),_.value+=T,K({value:T}),n.literalBrackets===!1||Js.hasRegexChars(ne))continue;const re=Js.escapeRegex(_.value);if($.output=$.output.slice(0,-_.value.length),n.literalBrackets===!0){$.output+=re,_.value=re;continue}_.value=`(${l}${re}|${_.value})`,$.output+=_.value;continue}if(T==="{"&&n.nobrace!==!0){J("braces");const ne={type:"brace",value:T,output:"(",outputIndex:$.output.length,tokensIndex:$.tokens.length};j.push(ne),X(ne);continue}if(T==="}"){const ne=j[j.length-1];if(n.nobrace===!0||!ne){X({type:"text",value:T,output:T});continue}let re=")";if(ne.dots===!0){const me=i.slice(),ce=[];for(let Ce=me.length-1;Ce>=0&&(i.pop(),me[Ce].type!=="brace");Ce--)me[Ce].type!=="dots"&&ce.unshift(me[Ce].value);re=$pe(ce,n),$.backtrack=!0}if(ne.comma!==!0&&ne.dots!==!0){const me=$.output.slice(0,ne.outputIndex),ce=$.tokens.slice(ne.tokensIndex);ne.value=ne.output="\\{",T=re="\\}",$.output=me;for(const Ce of ce)$.output+=Ce.output||Ce.value}X({type:"brace",value:T,output:re}),Q("braces"),j.pop();continue}if(T==="|"){L.length>0&&L[L.length-1].conditions++,X({type:"text",value:T});continue}if(T===","){let ne=T;const re=j[j.length-1];re&&N[N.length-1]==="braces"&&(re.comma=!0,ne="|"),X({type:"comma",value:T,output:ne});continue}if(T==="/"){if(_.type==="dot"&&$.index===$.start+1){$.start=$.index+1,$.consumed="",$.output="",i.pop(),_=s;continue}X({type:"slash",value:T,output:h});continue}if(T==="."){if($.braces>0&&_.type==="dot"){_.value==="."&&(_.output=f);const ne=j[j.length-1];_.type="dots",_.output+=T,_.value+=T,ne.dots=!0;continue}if($.braces+$.parens===0&&_.type!=="bos"&&_.type!=="slash"){X({type:"text",value:T,output:f});continue}X({type:"dot",value:T,output:f});continue}if(T==="?"){if(!(_&&_.value==="(")&&n.noextglob!==!0&&V()==="("&&V(2)!=="?"){ee("qmark",T);continue}if(_&&_.type==="paren"){const re=V();let me=T;if(re==="<"&&!Js.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(_.value==="("&&!/[!=<:]/.test(re)||re==="<"&&!/<([!=]|\w+>)/.test(F()))&&(me=`\\${T}`),X({type:"text",value:T,output:me});continue}if(n.dot!==!0&&(_.type==="slash"||_.type==="bos")){X({type:"qmark",value:T,output:x});continue}X({type:"qmark",value:T,output:b});continue}if(T==="!"){if(n.noextglob!==!0&&V()==="("&&(V(2)!=="?"||!/[!=<:]/.test(V(3)))){ee("negate",T);continue}if(n.nonegate!==!0&&$.index===0){Y();continue}}if(T==="+"){if(n.noextglob!==!0&&V()==="("&&V(2)!=="?"){ee("plus",T);continue}if(_&&_.value==="("||n.regex===!1){X({type:"plus",value:T,output:p});continue}if(_&&(_.type==="bracket"||_.type==="paren"||_.type==="brace")||$.parens>0){X({type:"plus",value:T});continue}X({type:"plus",value:p});continue}if(T==="@"){if(n.noextglob!==!0&&V()==="("&&V(2)!=="?"){X({type:"at",extglob:!0,value:T,output:""});continue}X({type:"text",value:T});continue}if(T!=="*"){(T==="$"||T==="^")&&(T=`\\${T}`);const ne=_pe.exec(F());ne&&(T+=ne[0],$.index+=ne[0].length),X({type:"text",value:T});continue}if(_&&(_.type==="globstar"||_.star===!0)){_.type="star",_.star=!0,_.value+=T,_.output=O,$.backtrack=!0,$.globstar=!0,H(T);continue}let Z=F();if(n.noextglob!==!0&&/^\([^?]/.test(Z)){ee("star",T);continue}if(_.type==="star"){if(n.noglobstar===!0){H(T);continue}const ne=_.prev,re=ne.prev,me=ne.type==="slash"||ne.type==="bos",ce=re&&(re.type==="star"||re.type==="globstar");if(n.bash===!0&&(!me||Z[0]&&Z[0]!=="/")){X({type:"star",value:T,output:""});continue}const Ce=$.braces>0&&(ne.type==="comma"||ne.type==="brace"),Ee=L.length&&(ne.type==="pipe"||ne.type==="paren");if(!me&&ne.type!=="paren"&&!Ce&&!Ee){X({type:"star",value:T,output:""});continue}for(;Z.slice(0,3)==="/**";){const fe=e[$.index+4];if(fe&&fe!=="/")break;Z=Z.slice(3),H("/**",3)}if(ne.type==="bos"&&B()){_.type="globstar",_.value+=T,_.output=E(n),$.output=_.output,$.globstar=!0,H(T);continue}if(ne.type==="slash"&&ne.prev.type!=="bos"&&!ce&&B()){$.output=$.output.slice(0,-(ne.output+_.output).length),ne.output=`(?:${ne.output}`,_.type="globstar",_.output=E(n)+(n.strictSlashes?")":"|$)"),_.value+=T,$.globstar=!0,$.output+=ne.output+_.output,H(T);continue}if(ne.type==="slash"&&ne.prev.type!=="bos"&&Z[0]==="/"){const fe=Z[1]!==void 0?"|$":"";$.output=$.output.slice(0,-(ne.output+_.output).length),ne.output=`(?:${ne.output}`,_.type="globstar",_.output=`${E(n)}${h}|${h}${fe})`,_.value+=T,$.output+=ne.output+_.output,$.globstar=!0,H(T+A()),X({type:"slash",value:"/",output:""});continue}if(ne.type==="bos"&&Z[0]==="/"){_.type="globstar",_.value+=T,_.output=`(?:^|${h}|${E(n)}${h})`,$.output=_.output,$.globstar=!0,H(T+A()),X({type:"slash",value:"/",output:""});continue}$.output=$.output.slice(0,-_.output.length),_.type="globstar",_.output=E(n),_.value+=T,$.output+=_.output,$.globstar=!0,H(T);continue}const pe={type:"star",value:T,output:O};if(n.bash===!0){pe.output=".*?",(_.type==="bos"||_.type==="slash")&&(pe.output=I+pe.output),X(pe);continue}if(_&&(_.type==="bracket"||_.type==="paren")&&n.regex===!0){pe.output=T,X(pe);continue}($.index===$.start||_.type==="slash"||_.type==="dot")&&(_.type==="dot"?($.output+=C,_.output+=C):n.dot===!0?($.output+=w,_.output+=w):($.output+=I,_.output+=I),V()!=="*"&&($.output+=y,_.output+=y)),X(pe)}for(;$.brackets>0;){if(n.strictBrackets===!0)throw new SyntaxError(Cu("closing","]"));$.output=Js.escapeLast($.output,"["),Q("brackets")}for(;$.parens>0;){if(n.strictBrackets===!0)throw new SyntaxError(Cu("closing",")"));$.output=Js.escapeLast($.output,"("),Q("parens")}for(;$.braces>0;){if(n.strictBrackets===!0)throw new SyntaxError(Cu("closing","}"));$.output=Js.escapeLast($.output,"{"),Q("braces")}if(n.strictSlashes!==!0&&(_.type==="star"||_.type==="bracket")&&X({type:"maybe_slash",value:"",output:`${h}?`}),$.backtrack===!0){$.output="";for(const Z of $.tokens)$.output+=Z.output!=null?Z.output:Z.value,Z.suffix&&($.output+=Z.suffix)}return $};uE.fastpaths=(e,t)=>{const n=ye({},t),r=typeof n.maxLength=="number"?Math.min(yy,n.maxLength):yy,o=e.length;if(o>r)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${r}`);e=j5[e]||e;const{DOT_LITERAL:s,SLASH_LITERAL:i,ONE_CHAR:l,DOTS_SLASH:a,NO_DOT:c,NO_DOTS:f,NO_DOTS_SLASH:p,STAR:h,START_ANCHOR:y}=vy.globChars(n.windows),v=n.dot?f:c,m=n.dot?p:c,C=n.capture?"":"?:",w={negated:!1,prefix:""};let b=n.bash===!0?".*?":h;n.capture&&(b=`(${b})`);const x=I=>I.noglobstar===!0?b:`(${C}(?:(?!${y}${I.dot?a:s}).)*?)`,P=I=>{switch(I){case"*":return`${v}${l}${b}`;case".*":return`${s}${l}${b}`;case"*.*":return`${v}${b}${s}${l}${b}`;case"*/*":return`${v}${b}${i}${l}${m}${b}`;case"**":return v+x(n);case"**/*":return`(?:${v}${x(n)}${i})?${m}${l}${b}`;case"**/*.*":return`(?:${v}${x(n)}${i})?${m}${b}${s}${l}${b}`;case"**/.*":return`(?:${v}${x(n)}${i})?${s}${l}${b}`;default:{const R=/^(.*?)\.(\w+)$/.exec(I);if(!R)return;const O=P(R[1]);return O?O+s+R[2]:void 0}}},k=Js.removePrefix(e,w);let E=P(k);return E&&n.strictSlashes!==!0&&(E+=`${i}?`),E};var Rpe=uE;const Ope=Ipe,hS=Rpe,z5=f0,Dpe=h0,Ape=e=>e&&typeof e=="object"&&!Array.isArray(e),nr=(e,t,n=!1)=>{if(Array.isArray(e)){const f=e.map(h=>nr(h,t,n));return h=>{for(const y of f){const v=y(h);if(v)return v}return!1}}const r=Ape(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!r)throw new TypeError("Expected pattern to be a non-empty string");const o=t||{},s=o.windows,i=r?nr.compileRe(e,t):nr.makeRe(e,t,!1,!0),l=i.state;delete i.state;let a=()=>!1;if(o.ignore){const f=it(ye({},t),{ignore:null,onMatch:null,onResult:null});a=nr(o.ignore,f,n)}const c=(f,p=!1)=>{const{isMatch:h,match:y,output:v}=nr.test(f,i,t,{glob:e,posix:s}),m={glob:e,state:l,regex:i,posix:s,input:f,output:v,match:y,isMatch:h};return typeof o.onResult=="function"&&o.onResult(m),h===!1?(m.isMatch=!1,p?m:!1):a(f)?(typeof o.onIgnore=="function"&&o.onIgnore(m),m.isMatch=!1,p?m:!1):(typeof o.onMatch=="function"&&o.onMatch(m),p?m:!0)};return n&&(c.state=l),c};nr.test=(e,t,n,{glob:r,posix:o}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};const s=n||{},i=s.format||(o?z5.toPosixSlashes:null);let l=e===r,a=l&&i?i(e):e;return l===!1&&(a=i?i(e):e,l=a===r),(l===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?l=nr.matchBase(e,t,n,o):l=t.exec(a)),{isMatch:!!l,match:l,output:a}};nr.matchBase=(e,t,n)=>(t instanceof RegExp?t:nr.makeRe(t,n)).test(z5.basename(e));nr.isMatch=(e,t,n)=>nr(t,n)(e);nr.parse=(e,t)=>Array.isArray(e)?e.map(n=>nr.parse(n,t)):hS(e,it(ye({},t),{fastpaths:!1}));nr.scan=(e,t)=>Ope(e,t);nr.compileRe=(e,t,n=!1,r=!1)=>{if(n===!0)return e.output;const o=t||{},s=o.contains?"":"^",i=o.contains?"":"$";let l=`${s}(?:${e.output})${i}`;e&&e.negated===!0&&(l=`^(?!${l}).*$`);const a=nr.toRegex(l,t);return r===!0&&(a.state=e),a};nr.makeRe=(e,t={},n=!1,r=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(o.output=hS.fastpaths(e,t)),o.output||(o=hS(e,t)),nr.compileRe(o,t,n,r)};nr.toRegex=(e,t)=>{try{const n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(n){if(t&&t.debug===!0)throw n;return/$^/}};nr.constants=Dpe;var Lpe=nr;const Fpe=vi(Lpe),Npe=-1,Bpe=" ",sf=401,m0=403,jpe=404,zpe=406,Vpe=409,mS=424,Hpe=429,Upe=500,Wpe={[sf]:"Unauthorized",[m0]:"Forbidden",[jpe]:"Not found",[Upe]:"Server error",[Hpe]:"Too many requests"},g0="https://github.com/rejetto/hfs/",Gpe=g0+"wiki/",Kpe=6e4,qpe=60*Kpe,Ype=24*qpe,Qpe=10,Xpe=["name","extension","size","time"],Zpe={auto:"",light:"light",dark:"dark"},On=ehe(["geo_enable","geo_allow","geo_list","geo_allow_unknown","max_downloads","max_downloads_per_ip","max_downloads_per_account","roots","roots_mandatory"]),xu={add:"+",remove:"-",update:"=",props:"props",ready:"ready",error:"e"},Jpe=!0,TO=!1,gC={can_see:"can_read",can_read:Jpe,can_list:"can_read",can_upload:TO,can_delete:TO,can_archive:"can_read"};function ehe(e){return Object.fromEntries(e.map(t=>[t,t]))}function the(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}const nhe=["","K","M","G","T"];function $l(e,{post:t="B",k:n=1024,digits:r=NaN,sep:o=" "}={}){if(isNaN(Number(e))||e<0)return"";const s=e&&Math.floor(Math.log2(e)/Math.log2(n));return e/=no(n,s),(s&&!isNaN(r)?e.toFixed(r):Ze.round(e,isNaN(r)?e>=100?0:1:r))+o+(nhe[s]||"")+t}function rhe(e,t={}){return $l(e,ye({post:"B/s",k:1e3},t)).replace("K","k")}function pi(e,t,n=""){return t?e+t+n:""}function om(e,t){return new Promise(n=>setTimeout(n,e,t))}function v0(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>[n,t(r,n)]))}function ohe(e,t,n=!1){return!n&&!t||t.endsWith(e)?t:t+e}function she(e,t){if(typeof e=="number")return[t.slice(0,e),t.slice(e+1)];const n=t.indexOf(e);return n<0?[t,""]:[t.slice(0,n),t.slice(n+e.length)]}function ihe(e){return!!e}function qc(e){return e.filter(ihe)}function lhe(e,t){return Object.defineProperties(e,U5(t,n=>({enumerable:!1,writable:!0,value:n})))}function ahe(e,t){try{return e()}catch(n){return t==null?void 0:t(n)}}function Rl(e,t){return t(e)}function che(e){return(e*100).toFixed(1)+"%"}function y0(e){return e==null?[]:Array.isArray(e)?e:[e]}function dE(){let e;const t=new Promise((n,r)=>e={resolve:n,reject:r});return Object.assign(t,e)}function V5(e){return e.slice(e.lastIndexOf("/")+1||e.lastIndexOf("\\")+1)}function uhe(e){return e.slice(0,e.lastIndexOf("/",e.length-1))}function dhe(e,t){try{return e&&JSON.parse(e)}catch(n){return t==null?void 0:t(e)}}function $O(e,t,n){const r=e[t];return e[t]=e[n],e[n]=r,e}function H5(e,t){return Ze.isEqualWith(e,t,(n,r)=>{if(!Ze.isPlainObject(n)||!Ze.isPlainObject(r))return;const o=Object.keys(n),s=Object.keys(r);return o.length===s.length&&o.every((i,l)=>{const a=s[l];return i===a&&H5(n[i],r[a])})})}function U5(e,t,n=!1){if(!e)return{};const r=Object.entries(e).map(([o,s])=>{if(typeof o=="symbol")return;let i=o;const l=typeof n=="number"?n:0;let a=t(s,o,c=>(i=c,!0),l);return(n!==!1||t.length===4)&&Ze.isPlainObject(a)&&(a=U5(a,t,l+1)),i!==void 0&&[i,a]});return Object.fromEntries(qc(r))}function fhe(e){return Object.keys(e)}function gS(e){return e?new Date(e).toLocaleString():"-"}function phe(e){return!e||Object(e)!==e}function hhe(e){return/^([.:\da-f]+)$/i.test(e)}function mhe(e){return e&&/^[a-zA-Z]:$/.test(e)}function by(e,t){return e==t||e&&t&&typeof e=="object"&&typeof t=="object"&&Object.entries(e).every(([n,r])=>by(r,t[n]))&&Object.entries(t).every(([n,r])=>Object.hasOwn(e,n)||by(r,e[n]))}function b0(e,t){var n;return(n=t[e])!=null?n:e}function W5(e){return e==="::1"||e.endsWith("127.0.0.1")}function ghe(e){return/^(?:|:10\..*|172\.(1[6-9]|2\d|3[01])\..*|192\.168\..*)$/.test(e)}function G5(e){return e.includes(":")?"["+e+"]":e}function vhe(e){return e.replace(/[\u0000-\u002F\u003A-\u0040\u005B-\u0060\u007B-\u00FF]/g,t=>"&#"+("000"+t.charCodeAt(0)).slice(-4)+";")}function yhe(e,t=!1){return e?Fpe(e.replace(/^(!)?/,"$1(")+")",{nocase:!0}):()=>t}function bhe(e,t,n=!1){return yhe(t,n)(e)}function whe(e){var t;return Ze.findKey(Che,n=>n.test(e))||((t=/^[^/(]+ ?/.exec(e))==null?void 0:t[0])||e}const Che={YaBrowser:/yabrowser/i,AlamoFire:/alamofire/i,Edge:/edge|edga|edgios|edg/i,PhantomJS:/phantomjs/i,Konqueror:/konqueror/i,Amaya:/amaya/i,Epiphany:/epiphany/i,SeaMonkey:/seamonkey/i,Flock:/flock/i,OmniWeb:/omniweb/i,Opera:/opera|OPR\//i,Chromium:/chromium/i,Facebook:/FBA[NV]/,Chrome:/chrome|crios/i,WinJs:/msapphost/i,IE:/msie|trident/i,Firefox:/firefox|fxios/i,Safari:/safari/i,PS5:/playstation 5/i,PS4:/playstation 4/i,PS3:/playstation 3/i,PSP:/playstation portable/i,PS:/playstation/i,Xbox:/xbox/i,UC:/UCBrowser/i};window._=Ze;const vC=w0();Object.assign(vC,{getPluginKey:()=>RO("plugin"),getPluginPublic:()=>{var e,t;return(t=(e=RO("src"))==null?void 0:e.match(/^.*\//))==null?void 0:t[0]},getPluginConfig:()=>vC.plugins[vC.getPluginKey()]||{}});function RO(e){var t;return((t=document.currentScript)==null?void 0:t.getAttribute(e))||console.error("this function must be called at the very top of your file")}Object.fromEntries(new URLSearchParams(window.location.search).entries());function K5(e,{accept:t="",multiple:n=!0,folder:r=!1}={}){const o=Object.assign(document.createElement("input"),{type:"file",name:"file",accept:t,multiple:n,webkitdirectory:r});o.addEventListener("change",()=>e(o.files)),o.click()}function q5(e){return new Promise((t,n)=>{const r=new FileReader;r.addEventListener("load",o=>{if(!o.target||e.size&&!o.target.result)return n("cannot read");const{result:s}=o.target;t(s==null?void 0:s.toString())}),r.addEventListener("error",()=>{n(r.error)}),r.readAsText(e)})}function xhe(){return window.innerWidth<800}function w0(){return window.HFS}function Y5(){return w0().prefixUrl||""}function She(e){return function t(n){if(!n)return;const{exp:r}=n;if(Object.assign(e,Ze.pick(n,["username","adminUrl","canChangePassword"])),!n.username||!r)return;const o=new Date(r).getTime()-Date.now(),s=Ze.clamp(o-3e4,4e3,6e5);console.debug("session refresh in",Math.round(s/1e3)),setTimeout(()=>ut("refresh_session").then(t),s)}}function wy(e,t=document){const n=t.querySelector(e);if(n&&n instanceof HTMLElement)return n.focus(),!0}function Phe(){const e=console.debug;console.debug=(...t)=>window.DEV&&e(...t)}function Ehe(e,t){return ot(this,null,function*(){const r=(yield ut("get_config",{only:[e]}))[e],o=yield t(r);JSON.stringify(r)!==JSON.stringify(o)&&(yield ut("set_config",{values:{[e]:o}}))})}function Q5(e){return{github_quota:"Request denied. You may have reached the limit, retry later.",ENOENT:"Not found",ENOTDIR:"Not a folder"}[e]||e}var fE={},khe=Je;Object.defineProperty(fE,"__esModule",{value:!0});var X5=fE.default=void 0,Ihe=khe(tt()),Mhe=et();X5=fE.default=(0,Ihe.default)((0,Mhe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 14H9V8h2zm4 0h-2V8h2z"}),"PauseCircle");var pE={},_he=Je;Object.defineProperty(pE,"__esModule",{value:!0});var C0=pE.default=void 0,The=_he(tt()),$he=et();C0=pE.default=(0,The.default)((0,$he.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M9.5 16.5v-9l7 4.5z"}),"PlayCircle");var hE={},Rhe=Je;Object.defineProperty(hE,"__esModule",{value:!0});var x0=hE.default=void 0,Ohe=Rhe(tt()),Dhe=et();x0=hE.default=(0,Ohe.default)((0,Dhe.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");var mE={},Ahe=Je;Object.defineProperty(mE,"__esModule",{value:!0});var gE=mE.default=void 0,Lhe=Ahe(tt()),Fhe=et();gE=mE.default=(0,Lhe.default)((0,Fhe.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var vE={},Nhe=Je;Object.defineProperty(vE,"__esModule",{value:!0});var S0=vE.default=void 0,Bhe=Nhe(tt()),jhe=et();S0=vE.default=(0,Bhe.default)((0,jhe.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"}),"Close");var yE={},zhe=Je;Object.defineProperty(yE,"__esModule",{value:!0});var P0=yE.default=void 0,Vhe=zhe(tt()),Hhe=et();P0=yE.default=(0,Vhe.default)((0,Hhe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error");var bE={},Uhe=Je;Object.defineProperty(bE,"__esModule",{value:!0});var Z5=bE.default=void 0,Whe=Uhe(tt()),Ghe=et();Z5=bE.default=(0,Whe.default)((0,Ghe.jsx)("path",{d:"M12 8V4l8 8-8 8v-4H4V8z"}),"Forward");var wE={},Khe=Je;Object.defineProperty(wE,"__esModule",{value:!0});var Cy=wE.default=void 0,qhe=Khe(tt()),Yhe=et();Cy=wE.default=(0,qhe.default)((0,Yhe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");var CE={},Qhe=Je;Object.defineProperty(CE,"__esModule",{value:!0});var E0=CE.default=void 0,Xhe=Qhe(tt()),Zhe=et();E0=CE.default=(0,Xhe.default)((0,Zhe.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning");var xE={},Jhe=Je;Object.defineProperty(xE,"__esModule",{value:!0});var sm=xE.default=void 0,eme=Jhe(tt()),tme=et();sm=xE.default=(0,eme.default)((0,tme.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save");function nme(e){return typeof e=="string"}function rme(e,t,n){return e===void 0||nme(e)?t:S({},t,{ownerState:S({},t.ownerState,n)})}function ome(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 k0(e,t,n){return typeof e=="function"?e(t,n):e}function OO(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 sme(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const y=be(n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),v=S({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=S({},n,o,r);return y.length>0&&(m.className=y),Object.keys(v).length>0&&(m.style=v),{props:m,internalRef:void 0}}const i=ome(S({},o,r)),l=OO(r),a=OO(o),c=t(i),f=be(c==null?void 0:c.className,n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),p=S({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),h=S({},c,n,a,l);return f.length>0&&(h.className=f),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:c.ref}}const ime=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Qn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:s=!1}=e,i=le(e,ime),l=s?{}:k0(r,o),{props:a,internalRef:c}=sme(S({},i,{externalSlotProps:l})),f=Et(c,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return rme(n,S({},a,{ref:f}),o)}function lme(e){return Ge("MuiLoadingButton",e)}const ame=Ue("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),ll=ame,cme=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],ume=e=>{const{loading:t,loadingPosition:n,classes:r}=e,o={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${Se(n)}`],endIcon:[t&&`endIconLoading${Se(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${Se(n)}`]},s=_e(o,lme,r);return S({},r,s)},dme=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",fme=se(Yn,{shouldForwardProp:e=>dme(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${ll.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${ll.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>S({[`& .${ll.startIconLoadingStart}, & .${ll.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},e.loadingPosition==="center"&&{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${ll.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${ll.startIconLoadingStart}, & .${ll.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${ll.startIconLoadingStart}, & .${ll.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),pme=se("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${Se(n.loadingPosition)}`]]}})(({theme:e,ownerState:t})=>S({position:"absolute",visibility:"visible",display:"flex"},t.loadingPosition==="start"&&(t.variant==="outlined"||t.variant==="contained")&&{left:t.size==="small"?10:14},t.loadingPosition==="start"&&t.variant==="text"&&{left:6},t.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled},t.loadingPosition==="end"&&(t.variant==="outlined"||t.variant==="contained")&&{right:t.size==="small"?10:14},t.loadingPosition==="end"&&t.variant==="text"&&{right:6},t.loadingPosition==="start"&&t.fullWidth&&{position:"relative",left:-10},t.loadingPosition==="end"&&t.fullWidth&&{position:"relative",right:-10})),hme=u.forwardRef(function(t,n){const r=u.useContext(D4),o=N1(r,t),s=We({props:o,name:"MuiLoadingButton"}),{children:i,disabled:l=!1,id:a,loading:c=!1,loadingIndicator:f,loadingPosition:p="center",variant:h="text"}=s,y=le(s,cme),v=Yt(a),m=f!=null?f:D.jsx(Gi,{"aria-labelledby":v,color:"inherit",size:16}),C=S({},s,{disabled:l,loading:c,loadingIndicator:m,loadingPosition:p,variant:h}),w=ume(C),b=c?D.jsx(pme,{className:w.loadingIndicator,ownerState:C,children:m}):null;return D.jsxs(fme,S({disabled:l||c,id:v,ref:n},y,{variant:h,classes:w,ownerState:C,children:[C.loadingPosition==="end"?i:b,C.loadingPosition==="end"?b:i]}))}),J5=hme;function Qi(h){var y=h,{value:e,onChange:t,min:n,max:r,required:o,setApi:s,typing:i,start:l,end:a,onTyping:c,suggestions:f}=y,p=Lt(y,["value","onChange","min","max","required","setApi","typing","start","end","onTyping","suggestions"]);const v=e!=null?e:"";s==null||s({getError(){return!e&&o?"required":(e==null?void 0:e.length)<n?"too short":(e==null?void 0:e.length)>r?"too long":!1}});const[m,C]=u.useState(v),w=u.useRef(v);u.useEffect(()=>{C(v),w.current=v},[v]);const b=u.useRef(),x=u.useRef(!1),P=E=>u.createElement(Wa,ye(it(ye({fullWidth:!0,InputLabelProps:m||p.placeholder?{shrink:!0}:void 0},p),{sx:p.label?p.sx:Object.assign({"& .MuiInputBase-input":{pt:1.5}},p.sx),value:m,onChange(I){let R=I.target.value;if(c){const O=c(R);if(O===!1)return;R=O}C(R),(i||x.current||b.current===void 0)&&k(I,R)},onKeyDown(I){var R;(R=p.onKeyDown)==null||R.call(p,I),x.current=I.code===void 0,I.key==="Enter"&&k(I)},onFocus(I){b.current=I.target.value},onBlur(I){var R;(R=p.onBlur)==null||R.call(p,I),b.current!==I.target.value&&k(I)},InputProps:ye({startAdornment:l&&u.createElement(Tl,{position:"start"},l),endAdornment:a&&u.createElement(Tl,{position:"end"},a)},p.InputProps)}),E));return f?u.createElement(nm,{freeSolo:!0,options:f,renderInput:P}):P(null);function k(E,I=m){I=I.trim(),I!==w.current&&(w.current=I,t(I,{was:e,event:E,cancel(){C(v)}}))}}var SE={},mme=Je;Object.defineProperty(SE,"__esModule",{value:!0});var e3=SE.default=void 0,gme=mme(tt()),vme=et();e3=SE.default=(0,gme.default)((0,vme.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 Wr(e){const l=e,{value:t,onChange:n,setApi:r,options:o,sx:s}=l,i=Lt(l,["value","onChange","setApi","options","sx"]);return u.createElement(Wa,it(ye(ye({},t3(e)),i),{onChange(a){try{let c=a.target.value;c=JSON.parse(c),n(c,{was:t,event:a})}catch(c){}}}))}function I0(n){var r=n,{renderOption:e}=r,t=Lt(r,["renderOption"]);const x=t,{value:o,onChange:s,setApi:i,options:l,sx:a,clearable:c,clearValue:f,placeholder:p,autocompleteProps:h}=x,y=Lt(x,["value","onChange","setApi","options","sx","clearable","clearValue","placeholder","autocompleteProps"]),P=t3(it(ye({clearValue:[]},t),{clearable:!1})),{select:v,InputProps:m}=P,C=Lt(P,["select","InputProps"]),w=u.useMemo(()=>n3(l),[l]),b=u.useMemo(()=>Array.isArray(o)?o.map(k=>w.find(E=>E.value===k)||{value:k,label:String(k)}):[],[o,w]);return u.createElement(nm,it(ye(ye({multiple:!0,options:w,filterSelectedOptions:!0,onChange:(k,E)=>s(E.map(I=>I.value),{was:o,event:k}),isOptionEqualToValue:(k,E)=>k.value===E.value,getOptionLabel:k=>k.label,renderOption:(k,E)=>{var I;return u.createElement("span",k,(I=e==null?void 0:e(E))!=null?I:E.label)}},C),h),{value:b,renderInput:k=>u.createElement(Wa,ye(it(ye({},y),{placeholder:b.length?void 0:p,SelectProps:{multiple:!0},sx:it(ye({},y.sx),{"& div[role=button]":{whiteSpace:"unset"}})}),k)),renderTags:(k,E)=>k.map((I,R)=>{var O;return u.createElement(tm,ye({label:(O=e==null?void 0:e(I))!=null?O:I.label},E({index:R})))}),sx:ye({".MuiAutocomplete-tag":{height:24},".MuiAutocomplete-inputRoot":{pt:"21px"},"input[type][type]":{p:"4px"},".MuiChip-deleteIcon[class]":{position:"absolute",right:"-0.6em",opacity:0,color:"text.primary",transition:"all .2s"},".MuiChip-root:hover .MuiChip-deleteIcon":{opacity:1}},a)}))}function t3(e){const{options:t,disabled:n,start:r,end:o,clearable:s,clearValue:i,value:l}=e,a=n3(t),c=JSON.stringify(l),f=a.find(h=>JSON.stringify(h.value)===c),p=s&&(Array.isArray(l)?l.length>0:l);return{select:!0,fullWidth:!0,sx:e.label?e.sx:Object.assign({"& .MuiInputBase-input":{pt:1}},e.sx),value:f?c:"",disabled:!(a!=null&&a.length)||n,InputProps:ye({startAdornment:(r||p)&&u.createElement(Tl,{position:"start"},p&&u.createElement(Nl,{title:"Clear",children:u.createElement(xr,{onClick(h){e.onChange(i,{was:l,event:h})}},u.createElement(e3))}),r),endAdornment:o&&u.createElement(Tl,{position:"end"},o)},e.InputProps),children:a.map((h,y)=>u.createElement(Pr,{key:y,value:JSON.stringify(h==null?void 0:h.value),children:u.createElement(u.Fragment,{key:y},h==null?void 0:h.label)}))}}function n3(e){return Array.isArray(e)?e.map(t=>typeof t=="string"||typeof t=="number"?{value:t,label:String(t)}:t):Object.entries(e).map(([t,n])=>({value:n,label:t}))}function Bp(r){var o=r,{value:e,empty:t="-"}=o,n=Lt(o,["value","empty"]);return!n.toField&&t!==void 0&&e!==0&&!e&&(e=t),u.createElement(Qi,it(ye({},n),{value:e,disabled:!0}))}function Ho(c){var f=c,{value:e,onChange:t,setApi:n,required:r,min:o,max:s,step:i,unit:l}=f,a=Lt(f,["value","onChange","setApi","required","min","max","step","unit"]);return n==null||n({getError(){return e==null?r?"required":!1:e<o?"too low":e>s?"too high":!1}}),u.createElement(Qi,ye({type:"number",value:e==null?"":String(e),onChange(p,v){var m=v,{was:h}=m,y=Lt(m,["was"]);t(p?Number(p):null,it(ye({},y),{was:h?Number(h):null}))},inputProps:{min:o,max:s,step:i},InputProps:Ze.merge({sx:{"& input":{appearance:"textfield"}}},l&&{sx:{pr:"6px","& input":{pl:".2em",textAlign:"right"}},endAdornment:u.createElement(Tl,{position:"end",sx:{mt:"1.2em",ml:"5px","& p":{fontSize:"80%"}}},l)})},a))}function Dn(a){var c=a,{label:e="",value:t,onChange:n,setApi:r,helperText:o,error:s,type:i}=c,l=Lt(c,["label","value","onChange","setApi","helperText","error","type"]);const f=()=>t!=null?t:!1,[p,h]=u.useState(f);u.useEffect(()=>h(f),[t]);const y=u.createElement(u5,it(ye({checked:p},l),{onChange(v){n(v.target.checked,{event:v,was:t})}}));return u.createElement(ze,{ml:1,mt:1,sx:s?{color:"error.main",outlineOffset:6,outline:"1px solid"}:void 0},u.createElement(K4,ye({label:e,control:y,labelPlacement:"end"},l.size==="small"&&{sx:{"& .MuiFormControlLabel-label":{fontSize:".9rem"}}})),o&&u.createElement(nf,{error:s},o))}function Yc(v){var m=v,{fields:e,values:t,set:n,defaults:r,save:o,stickyBar:s,addToBar:i=[],barSx:l,formRef:a,onError:c,saveOnEnter:f,gridProps:p,formProps:h}=m,y=Lt(m,["fields","values","set","defaults","save","stickyBar","addToBar","barSx","formRef","onError","saveOnEnter","gridProps","formProps"]);const C=u.useRef(!1);u.useEffect(()=>(C.current=!0,()=>{C.current=!1}),[]);const[w,b]=u.useState({}),[x,P]=u.useState({}),k=typeof o=="function"?{onClick:o}:o,[E,I]=u.useState(0),R=u.useRef(!1),O=u.useRef("");u.useEffect(()=>void _(),[E]);const $={},L={};return u.createElement("form",it(ye({ref:a&&(T=>a.current=T||void 0)},h),{onSubmit(T){T.preventDefault()},onKeyDown(T){k&&!k.disabled&&(T.ctrlKey||T.metaKey)&&T.key==="Enter"&&j()}}),u.createElement(ze,ye({display:"flex",flexDirection:"column",gap:3},y),u.createElement(ai,ye({container:!0,rowSpacing:3,columnSpacing:1},p),e.map((T,B)=>{if(!T)return null;if(u.isValidElement(T))return u.createElement(ai,{key:B,item:!0,xs:12},T);const Q=T,{k:V,fromField:A=Ze.identity,toField:F=Ze.identity,getError:H,error:K}=Q,Y=Lt(Q,["k","fromField","toField","getError","error"]);let J=w[V]||K||x[V];if(J===!0&&(J="Not valid"),V){const ee=T.hasOwnProperty("value")?T.value:t==null?void 0:t[V],oe=ye(ye({},T),Y);Object.assign(Y,{value:F(ee),error:!!(J||K)||void 0,setApi(Z){L[V]=Z},onKeyDown(Z){f&&Z.key==="Enter"&&j()},onChange(Z){var pe;try{if(Z=A(Z,{originalValue:ee}),P(ne=>it(ye({},ne),{[V]:!1})),(((pe=L[V])==null?void 0:pe.isEqual)||Ze.isEqual)(Z,ee))return;n(Z,V),N(V)}catch(ne){P(re=>it(ye({},re),{[V]:(ne==null?void 0:ne.message)||String(ne)||!0}))}}}),Array.isArray(Y.helperText)&&(Y.helperText=u.createElement(u.Fragment,{},...Y.helperText)),J&&(Y.helperText=Y.helperText?u.createElement(u.Fragment,{},u.createElement("span",{style:{borderBottom:"1px solid"}},J),u.createElement(ze,{color:"text.primary",component:"span",display:"block"},Y.helperText)):J),Y.label===void 0&&(Y.label=r3(V)),Ze.defaults(Y,r==null?void 0:r(oe))}{const X=Y,{xs:ee=12,sm:oe,md:Z,lg:pe,xl:ne,comp:re=Qi,before:me,after:ce,fromField:Ce,toField:Ee}=X,fe=Lt(X,["xs","sm","md","lg","xl","comp","before","after","fromField","toField"]);Object.assign(fe,{name:V});const ke=$[V]=($[V]||0)+1;return u.createElement(ai,{key:V?V+ke:B,item:!0,xs:ee,sm:oe,md:Z,lg:pe,xl:ne},me,u.isValidElement(re)?re:u.createElement(re,fe),ce)}})),k&&u.createElement(ze,{display:"flex",alignItems:"center",sx:Object.assign({},s&&{width:"fit-content",zIndex:2,backgroundColor:"background.paper",borderRadius:1,position:"sticky",bottom:0,p:1,m:-1,boxShadow:"0px 0px 30px #000"},l)},u.createElement(J5,it(ye({variant:"contained",startIcon:u.createElement(sm),children:"Save",loading:nE(E!==0)},k),{onClick:j})),...i)));function j(){R.current=!0,N()}function N(T=""){E===0&&(O.current=T,setTimeout(()=>I(B=>B===0?1:B)))}function _(){return ot(this,null,function*(){var V,A,F;if(E===0)return;if(E===1)return I(2);const T="Please review errors",B={};for(const H of e){if(!H||u.isValidElement(H)||!H.k)continue;const{k:K}=H,Y=t==null?void 0:t[K],J=(yield(A=(V=L[K])==null?void 0:V.getError)==null?void 0:A.call(V,Y,{values:t,fields:e}))||(yield(F=H.getError)==null?void 0:F.call(H,Y,{values:t,fields:e}))||x[K];if(B[K]=J||!1,!R.current&&K===O.current)break;if(!C.current)return}b(B);try{if(!R.current)return;if(Object.values(B).some(Boolean))return yield c==null?void 0:c(T);const H=k&&k.onClick;H&&(yield H())}catch(H){yield c==null?void 0:c(H)}finally{R.current=!1,C.current&&I(0)}})}}function r3(e){return Ze.upperFirst(e.indexOf("_")>0?e.replace(/_/g," "):e.replace(/([a-z])([A-Z])/g,(t,n,r)=>n+" "+r.toLowerCase()))}function o3(){return B1("(prefers-color-scheme: dark)")}const yme={};function bme(){const e=o3()?null:yme;return u.useMemo(()=>x2({palette:e||{mode:"dark",text:{primary:"#bbb",secondary:"#777"},primary:{main:"#469",light:"#68c"},secondary:{main:"#969"}},typography:{fontFamily:'Roboto, "Noto sans", "Segoe UI", "San Francisco", "Helvetica Neue", Arial, sans-serif'},components:{MuiLink:{defaultProps:e||{color:"primary.light"}},MuiTextField:{defaultProps:{variant:"filled"},styleOverrides:e||{root:{"& label.Mui-focused":{color:"#ccc"}}}},MuiButton:{defaultProps:{variant:"outlined"},styleOverrides:e||{root({ownerState:t}){return t.color==="primary"&&{color:t.variant==="contained"?"#ddd":"#68c"}}}}}}),[e])}const wme={"`":"code","*":"i","**":"b"};function Kn(e,{linkTarget:t="_blank",onText:n=r=>r}={}){return typeof e!="string"&&(e=e[0]),PE(e,/(`|_|\*\*?)(.+?)\1|(\n)|\[(.+?)\]\((.+?)\)|<([^ >/]+)>(.*?)<\/\6>|<([^ >/]+) *\/>/g,r=>r[4]?u.createElement(os,{href:r[5],target:t},n(r[4])):r[3]?u.createElement("br"):r[1]?u.createElement(wme[r[1]]||u.Fragment,{},n(r[2])):u.createElement(r[6]||r[8],{},r[7]),n)}function PE(e,t,n,r=o=>o){const o=[];let s=0,i;for(;(i=t.exec(e))&&(o.push(r(e.slice(s,i.index))),o.push(n(i)),s=i.index+i[0].length,!!t.global););return u.createElement(u.Fragment,{},...o,r(e.slice(s,1/0)))}dS.Container=function(t){const n=u.useRef(),{width:r,height:o}=o0(),s=r>0&&Math.min(r,o)<500;u.useEffect(()=>{const p=setTimeout(()=>{const h=n.current;h&&(h.focus(),!s&&(wy("[autofocus]")||wy("input,textarea")))});return()=>clearTimeout(p)},[n.current]);const i=EE();t=ye(ye({},dS),t);const f=t.dialogProps||{},{sx:l,root:a}=f,c=Lt(f,["sx","root"]);return t.noFrame?u.createElement(n0,{open:!0,children:u.createElement(lm,{},u.createElement(t.Content))}):u.createElement(B4,it(ye(ye({open:!0,maxWidth:"lg",fullScreen:s},c),a),{className:t.className,onClose:()=>Ki()}),t.title&&u.createElement(sie,{sx:ye({position:"sticky",top:0,p:1,zIndex:2,boxShadow:"0 0 8px #0004",display:"flex",alignItems:"center",gap:1},i)},t.icon&&gy(t.icon),u.createElement(ze,{flex:1,minWidth:40},gy(t.title)),u.createElement(dn,{icon:S0,title:"Close",onClick:()=>Ki()})),u.createElement(j4,{ref:n,sx:ye({p:t.padding?1:0,pt:"16px !important",overflow:"initial",display:"flex",flexDirection:"column",justifyContent:"center"},l)},u.createElement(t.Content)))};function EE(){return o3()?{bgcolor:"#2d2d2d"}:{bgcolor:"#ccc",color:"#444"}}const s3={error:P0,warning:E0,info:Cy,success:gE};function kt(e,t){var a;const n=typeof t=="string"?{type:t}:t!=null?t:{};let l=n,{type:r="info"}=l,o=Lt(l,["type"]);e instanceof Error&&(e=e.message||String(e),r="error");const s=dE(),i=po(it(ye({className:"dialog-alert dialog-alert-"+r,icon:(a=n.icon)!=null?a:u.createElement(s3[r],{color:r}),onClose:s.resolve,title:Ze.upperFirst(r)},o),{Content(){return u.createElement(ze,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},u.isValidElement(e)?e:u.createElement(ze,{fontSize:"large",lineHeight:"1.8em"},String(e)),u.createElement(Ro,{sx:{mt:1},size:"small",onClick:i.close},"Close"))}}));return Object.assign(s,i)}function mr(e,s={}){var i=s,{href:t,confirmText:n="Go",dontText:r="Don't"}=i,o=Lt(i,["href","confirmText","dontText"]);const l=dE(),a=po(it(ye({className:"dialog-confirm",onClose:l.resolve},o),{Content:c}));return Object.assign(l,a);function c(){return u.createElement(u.Fragment,{},u.createElement(ze,{mb:2},typeof e=="string"?Kn(e):e),u.createElement(Gr,{},u.createElement("a",{href:t,onClick:()=>Ki(!0)},u.createElement(Yn,{variant:"contained"},n)),u.createElement(Yn,{onClick:()=>Ki(!1)},r)))}}function Sh(r){return ot(this,null,function*(){var o=r,{form:e,values:t}=o,n=Lt(o,["form","values"]);return new Promise(i=>po(it(ye({className:"dialog-confirm",onClose:i},n),{Content:s})));function s(){const[i,l]=u.useState(t||{}),p=typeof e=="function"?e(i):e,{onChange:a,before:c}=p,f=Lt(p,["onChange","before"]);return u.createElement(u.Fragment,{},c,u.createElement(Yc,it(ye({},f),{values:i,set(h,y){l(v=>{const m=it(ye({},v),{[y]:h});return a==null||a(m,{setValues:l}),m})},save:it(ye({},f.save),{onClick(){Ki(i)}})})))}})}function im(a){return ot(this,arguments,function*(e,i={}){var l=i,{value:t,field:n,save:r,addToBar:o=[]}=l,s=Lt(l,["value","field","save","addToBar"]);return Sh(it(ye({},s),{values:{text:t},form:ye({fields:[it(ye({k:"text",label:null,autoFocus:!0},n),{before:u.createElement(ze,{mb:2},e)})],save:ye({children:"Continue",startIcon:u.createElement(Z5)},r),saveOnEnter:!0,barSx:{gap:2},addToBar:[u.createElement(Yn,{onClick:Ki},"Cancel"),...o]},s.form)})).then(c=>c==null?void 0:c.text)})}function i3(){return po({Content:()=>u.createElement(Gi,{size:"20vw"}),noFrame:!0,closable:!1}).close}function rr(e,t="info",n){const o=po(it(ye({},n),{Content:i,dialogProps:{fullScreen:!1,PaperProps:{sx:{transition:"opacity 3000ms ease-in"},ref(l){l&&(l.style.opacity="0")}}}})),{close:s}=o;return setTimeout(s,3e3),o;function i(){return u.createElement(ze,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},u.isValidElement(t)?t:u.createElement(s3[t],{color:t}),u.isValidElement(e)?e:u.createElement("div",{},String(e)))}}const l3=`🇦🇨|AC|Ascension Island
328
+ 🇦🇩|AD|Andorra
329
+ 🇦🇪|AE|United Arab Emirates
330
+ 🇦🇫|AF|Afghanistan
331
+ 🇦🇬|AG|Antigua & Barbuda
332
+ 🇦🇮|AI|Anguilla
333
+ 🇦🇱|AL|Albania
334
+ 🇦🇲|AM|Armenia
335
+ 🇦🇴|AO|Angola
336
+ 🇦🇶|AQ|Antarctica
337
+ 🇦🇷|AR|Argentina
338
+ 🇦🇸|AS|American Samoa
339
+ 🇦🇹|AT|Austria
340
+ 🇦🇺|AU|Australia
341
+ 🇦🇼|AW|Aruba
342
+ 🇦🇽|AX|Åland Islands
343
+ 🇦🇿|AZ|Azerbaijan
344
+ 🇧🇦|BA|Bosnia & Herzegovina
345
+ 🇧🇧|BB|Barbados
346
+ 🇧🇩|BD|Bangladesh
347
+ 🇧🇪|BE|Belgium
348
+ 🇧🇫|BF|Burkina Faso
349
+ 🇧🇬|BG|Bulgaria
350
+ 🇧🇭|BH|Bahrain
351
+ 🇧🇮|BI|Burundi
352
+ 🇧🇯|BJ|Benin
353
+ 🇧🇱|BL|St. Barthélemy
354
+ 🇧🇲|BM|Bermuda
355
+ 🇧🇳|BN|Brunei
356
+ 🇧🇴|BO|Bolivia
357
+ 🇧🇶|BQ|Caribbean Netherlands
358
+ 🇧🇷|BR|Brazil
359
+ 🇧🇸|BS|Bahamas
360
+ 🇧🇹|BT|Bhutan
361
+ 🇧🇻|BV|Bouvet Island
362
+ 🇧🇼|BW|Botswana
363
+ 🇧🇾|BY|Belarus
364
+ 🇧🇿|BZ|Belize
365
+ 🇨🇦|CA|Canada
366
+ 🇨🇨|CC|Cocos (Keeling) Islands
367
+ 🇨🇩|CD|Congo - Kinshasa
368
+ 🇨🇫|CF|Central African Republic
369
+ 🇨🇬|CG|Congo - Brazzaville
370
+ 🇨🇭|CH|Switzerland
371
+ 🇨🇮|CI|Côte d'Ivoire
372
+ 🇨🇰|CK|Cook Islands
373
+ 🇨🇱|CL|Chile
374
+ 🇨🇲|CM|Cameroon
375
+ 🇨🇳|CN|China
376
+ 🇨🇴|CO|Colombia
377
+ 🇨🇵|CP|Clipperton Island
378
+ 🇨🇷|CR|Costa Rica
379
+ 🇨🇺|CU|Cuba
380
+ 🇨🇻|CV|Cape Verde
381
+ 🇨🇼|CW|Curaçao
382
+ 🇨🇽|CX|Christmas Island
383
+ 🇨🇾|CY|Cyprus
384
+ 🇨🇿|CZ|Czechia
385
+ 🇩🇪|DE|Germany
386
+ 🇩🇬|DG|Diego Garcia
387
+ 🇩🇯|DJ|Djibouti
388
+ 🇩🇰|DK|Denmark
389
+ 🇩🇲|DM|Dominica
390
+ 🇩🇴|DO|Dominican Republic
391
+ 🇩🇿|DZ|Algeria
392
+ 🇪🇦|EA|Ceuta & Melilla
393
+ 🇪🇨|EC|Ecuador
394
+ 🇪🇪|EE|Estonia
395
+ 🇪🇬|EG|Egypt
396
+ 🇪🇭|EH|Western Sahara
397
+ 🇪🇷|ER|Eritrea
398
+ 🇪🇸|ES|Spain
399
+ 🇪🇹|ET|Ethiopia
400
+ 🇫🇮|FI|Finland
401
+ 🇫🇯|FJ|Fiji
402
+ 🇫🇰|FK|Falkland Islands
403
+ 🇫🇲|FM|Micronesia
404
+ 🇫🇴|FO|Faroe Islands
405
+ 🇫🇷|FR|France
406
+ 🇬🇦|GA|Gabon
407
+ 🇬🇧|GB|United Kingdom
408
+ 🇬🇩|GD|Grenada
409
+ 🇬🇪|GE|Georgia
410
+ 🇬🇫|GF|French Guiana
411
+ 🇬🇬|GG|Guernsey
412
+ 🇬🇭|GH|Ghana
413
+ 🇬🇮|GI|Gibraltar
414
+ 🇬🇱|GL|Greenland
415
+ 🇬🇲|GM|Gambia
416
+ 🇬🇳|GN|Guinea
417
+ 🇬🇵|GP|Guadeloupe
418
+ 🇬🇶|GQ|Equatorial Guinea
419
+ 🇬🇷|GR|Greece
420
+ 🇬🇸|GS|South Georgia & South Sandwich Islands
421
+ 🇬🇹|GT|Guatemala
422
+ 🇬🇺|GU|Guam
423
+ 🇬🇼|GW|Guinea-Bissau
424
+ 🇬🇾|GY|Guyana
425
+ 🇭🇰|HK|Hong Kong SAR China
426
+ 🇭🇲|HM|Heard & McDonald Islands
427
+ 🇭🇳|HN|Honduras
428
+ 🇭🇷|HR|Croatia
429
+ 🇭🇹|HT|Haiti
430
+ 🇭🇺|HU|Hungary
431
+ 🇮🇨|IC|Canary Islands
432
+ 🇮🇩|ID|Indonesia
433
+ 🇮🇪|IE|Ireland
434
+ 🇮🇱|IL|Israel
435
+ 🇮🇲|IM|Isle of Man
436
+ 🇮🇳|IN|India
437
+ 🇮🇴|IO|British Indian Ocean Territory
438
+ 🇮🇶|IQ|Iraq
439
+ 🇮🇷|IR|Iran
440
+ 🇮🇸|IS|Iceland
441
+ 🇮🇹|IT|Italy
442
+ 🇯🇪|JE|Jersey
443
+ 🇯🇲|JM|Jamaica
444
+ 🇯🇴|JO|Jordan
445
+ 🇯🇵|JP|Japan
446
+ 🇰🇪|KE|Kenya
447
+ 🇰🇬|KG|Kyrgyzstan
448
+ 🇰🇭|KH|Cambodia
449
+ 🇰🇮|KI|Kiribati
450
+ 🇰🇲|KM|Comoros
451
+ 🇰🇳|KN|St. Kitts & Nevis
452
+ 🇰🇵|KP|North Korea
453
+ 🇰🇷|KR|South Korea
454
+ 🇰🇼|KW|Kuwait
455
+ 🇰🇾|KY|Cayman Islands
456
+ 🇰🇿|KZ|Kazakhstan
457
+ 🇱🇦|LA|Laos
458
+ 🇱🇧|LB|Lebanon
459
+ 🇱🇨|LC|St. Lucia
460
+ 🇱🇮|LI|Liechtenstein
461
+ 🇱🇰|LK|Sri Lanka
462
+ 🇱🇷|LR|Liberia
463
+ 🇱🇸|LS|Lesotho
464
+ 🇱🇹|LT|Lithuania
465
+ 🇱🇺|LU|Luxembourg
466
+ 🇱🇻|LV|Latvia
467
+ 🇱🇾|LY|Libya
468
+ 🇲🇦|MA|Morocco
469
+ 🇲🇨|MC|Monaco
470
+ 🇲🇩|MD|Moldova
471
+ 🇲🇪|ME|Montenegro
472
+ 🇲🇫|MF|St. Martin
473
+ 🇲🇬|MG|Madagascar
474
+ 🇲🇭|MH|Marshall Islands
475
+ 🇲🇰|MK|North Macedonia
476
+ 🇲🇱|ML|Mali
477
+ 🇲🇲|MM|Myanmar (Burma)
478
+ 🇲🇳|MN|Mongolia
479
+ 🇲🇴|MO|Macao SAR China
480
+ 🇲🇵|MP|Northern Mariana Islands
481
+ 🇲🇶|MQ|Martinique
482
+ 🇲🇷|MR|Mauritania
483
+ 🇲🇸|MS|Montserrat
484
+ 🇲🇹|MT|Malta
485
+ 🇲🇺|MU|Mauritius
486
+ 🇲🇻|MV|Maldives
487
+ 🇲🇼|MW|Malawi
488
+ 🇲🇽|MX|Mexico
489
+ 🇲🇾|MY|Malaysia
490
+ 🇲🇿|MZ|Mozambique
491
+ 🇳🇦|NA|Namibia
492
+ 🇳🇨|NC|New Caledonia
493
+ 🇳🇪|NE|Niger
494
+ 🇳🇫|NF|Norfolk Island
495
+ 🇳🇬|NG|Nigeria
496
+ 🇳🇮|NI|Nicaragua
497
+ 🇳🇱|NL|Netherlands
498
+ 🇳🇴|NO|Norway
499
+ 🇳🇵|NP|Nepal
500
+ 🇳🇷|NR|Nauru
501
+ 🇳🇺|NU|Niue
502
+ 🇳🇿|NZ|New Zealand
503
+ 🇴🇲|OM|Oman
504
+ 🇵🇦|PA|Panama
505
+ 🇵🇪|PE|Peru
506
+ 🇵🇫|PF|French Polynesia
507
+ 🇵🇬|PG|Papua New Guinea
508
+ 🇵🇭|PH|Philippines
509
+ 🇵🇰|PK|Pakistan
510
+ 🇵🇱|PL|Poland
511
+ 🇵🇲|PM|St. Pierre & Miquelon
512
+ 🇵🇳|PN|Pitcairn Islands
513
+ 🇵🇷|PR|Puerto Rico
514
+ 🇵🇸|PS|Palestinian Territories
515
+ 🇵🇹|PT|Portugal
516
+ 🇵🇼|PW|Palau
517
+ 🇵🇾|PY|Paraguay
518
+ 🇶🇦|QA|Qatar
519
+ 🇷🇪|RE|Réunion
520
+ 🇷🇴|RO|Romania
521
+ 🇷🇸|RS|Serbia
522
+ 🇷🇺|RU|Russia
523
+ 🇷🇼|RW|Rwanda
524
+ 🇸🇦|SA|Saudi Arabia
525
+ 🇸🇧|SB|Solomon Islands
526
+ 🇸🇨|SC|Seychelles
527
+ 🇸🇩|SD|Sudan
528
+ 🇸🇪|SE|Sweden
529
+ 🇸🇬|SG|Singapore
530
+ 🇸🇭|SH|St. Helena
531
+ 🇸🇮|SI|Slovenia
532
+ 🇸🇯|SJ|Svalbard & Jan Mayen
533
+ 🇸🇰|SK|Slovakia
534
+ 🇸🇱|SL|Sierra Leone
535
+ 🇸🇲|SM|San Marino
536
+ 🇸🇳|SN|Senegal
537
+ 🇸🇴|SO|Somalia
538
+ 🇸🇷|SR|Suriname
539
+ 🇸🇸|SS|South Sudan
540
+ 🇸🇹|ST|São Tomé & Príncipe
541
+ 🇸🇻|SV|El Salvador
542
+ 🇸🇽|SX|Sint Maarten
543
+ 🇸🇾|SY|Syria
544
+ 🇸🇿|SZ|Eswatini
545
+ 🇹🇦|TA|Tristan da Cunha
546
+ 🇹🇨|TC|Turks & Caicos Islands
547
+ 🇹🇩|TD|Chad
548
+ 🇹🇫|TF|French Southern Territories
549
+ 🇹🇬|TG|Togo
550
+ 🇹🇭|TH|Thailand
551
+ 🇹🇯|TJ|Tajikistan
552
+ 🇹🇰|TK|Tokelau
553
+ 🇹🇱|TL|Timor-Leste
554
+ 🇹🇲|TM|Turkmenistan
555
+ 🇹🇳|TN|Tunisia
556
+ 🇹🇴|TO|Tonga
557
+ 🇹🇷|TR|Türkiye
558
+ 🇹🇹|TT|Trinidad & Tobago
559
+ 🇹🇻|TV|Tuvalu
560
+ 🇹🇼|TW|Taiwan
561
+ 🇹🇿|TZ|Tanzania
562
+ 🇺🇦|UA|Ukraine
563
+ 🇺🇬|UG|Uganda
564
+ 🇺🇲|UM|U.S. Outlying Islands
565
+ 🇺🇳|UN|United Nations
566
+ 🇺🇸|US|United States
567
+ 🇺🇾|UY|Uruguay
568
+ 🇺🇿|UZ|Uzbekistan
569
+ 🇻🇦|VA|Vatican City
570
+ 🇻🇨|VC|St. Vincent & Grenadines
571
+ 🇻🇪|VE|Venezuela
572
+ 🇻🇬|VG|British Virgin Islands
573
+ 🇻🇮|VI|U.S. Virgin Islands
574
+ 🇻🇳|VN|Vietnam
575
+ 🇻🇺|VU|Vanuatu
576
+ 🇼🇫|WF|Wallis & Futuna
577
+ 🇼🇸|WS|Samoa
578
+ 🇽🇰|XK|Kosovo
579
+ 🇾🇪|YE|Yemen
580
+ 🇾🇹|YT|Mayotte
581
+ 🇿🇦|ZA|South Africa
582
+ 🇿🇲|ZM|Zambia
583
+ 🇿🇼|ZW|Zimbabwe`.split(`
584
+ `).map(e=>{const[t,n,r]=e.split("|");return{flag:t,code:n,name:r}}),Cme="AD,AE,AF,AG,AI,AL,AM,AO,AQ,AR,AS,AT,AU,AW,AX,AZ,BA,BB,BD,BE,BF,BG,BH,BI,BJ,BL,BM,BN,BO,BQ,BR,BS,BT,BV,BW,BY,BZ,CA,CD,CF,CG,CH,CI,CK,CL,CM,CN,CO,CR,CU,CV,CW,CY,CZ,DE,DJ,DK,DM,DO,DZ,EC,EE,EG,ER,ES,ET,FI,FJ,FK,FM,FO,FR,GA,GB,GD,GE,GF,GG,GH,GI,GL,GM,GN,GP,GQ,GR,GT,GU,GW,GY,HK,HN,HR,HT,HU,ID,IE,IL,IM,IN,IO,IQ,IR,IS,IT,JE,JM,JO,JP,KE,KG,KH,KI,KM,KN,KP,KR,KW,KY,KZ,LA,LB,LC,LI,LK,LR,LS,LT,LU,LV,LY,MA,MC,MD,ME,MF,MG,MH,MK,ML,MM,MN,MO,MP,MQ,MR,MS,MT,MU,MV,MW,MX,MY,MZ,NA,NC,NE,NF,NG,NI,NL,NO,NP,NR,NU,NZ,OM,PA,PE,PF,PG,PH,PK,PL,PM,PR,PS,PT,PW,PY,QA,RE,RO,RS,RU,RW,SA,SB,SC,SD,SE,SG,SI,SK,SL,SM,SN,SO,SR,SS,ST,SV,SX,SY,SZ,TC,TD,TG,TH,TJ,TK,TL,TM,TN,TO,TR,TT,TV,TW,TZ,UA,"+"UG,UM,US,UY,UZ,VA,VC,VE,VG,VI,VN,VU,WF,WS,YE,YT,ZA,ZM,ZW".split(",");function a3(){return u.createElement(Gi)}function Jo(e){return B1(t=>t.breakpoints.up(e),{noSsr:!0})}function c3({icon:e,progress:t,offset:n,addTitle:r,sx:o}){return u.createElement(u.Fragment,{},u.createElement(e,{sx:{position:"absolute",ml:"4px"}}),u.createElement(Gi,{value:t*100||0,variant:"determinate",size:32,sx:{position:"absolute"}}),u.createElement(Nl,{title:u.createElement(u.Fragment,{},Ze.isNumber(t)?che(t):"Size unknown",r&&u.createElement("div",{},r)),children:u.createElement(Gi,{color:"success",value:(n||1e-7)*100,variant:"determinate",size:32,sx:ye({display:"flex"},o)})}))}function Gr(s){var i=s,{vert:e=!1,center:t=!1,children:n=null,props:r={}}=i,o=Lt(i,["vert","center","children","props"]);return u.createElement(ze,ye({sx:ye(ye({display:"flex",gap:".8em",flexDirection:e?"column":void 0,alignItems:e?void 0:"center"},t&&{justifyContent:"center"}),o)},r),n)}function _a(e,t){return Array.isArray(t)&&(t=xh(t)),u.createElement(os,{href:Gpe+e,target:"help"},t)}function M0(e,t){return u.createElement(dn,ye({icon:x0,title:"Reload",onClick:e},t))}function lf(e){return e?{outline:"2px solid"}:void 0}const dn=u.forwardRef((h,p)=>{var y=h,{title:e,icon:t,onClick:n,disabled:r,progress:o,link:s,tooltipProps:i,confirm:l,doneMessage:a,sx:c}=y,f=Lt(y,["title","icon","onClick","disabled","progress","link","tooltipProps","confirm","doneMessage","sx"]);const[v,m]=So(!1);typeof r=="string"&&(e=r),s&&(n=()=>window.open(s)),r=!!(v||o||r);let C=u.createElement(xr,it(ye({ref:p,disabled:r},f),{sx:ye({height:"fit-content"},c),onClick(...b){return ot(this,null,function*(){if(l&&!(yield mr(l)))return;const x=n==null?void 0:n.apply(this,b);x&&x instanceof Promise&&(m(!0),x.then(P=>P!==!1&&u3(a),kt).finally(()=>m(!1)))})}}),(o||v)&&o!==!1&&u.createElement(Gi,it(ye({},typeof o=="number"?{value:o*100,variant:"determinate"}:null),{style:{position:"absolute",top:"10%",left:"10%",width:"80%",height:"80%"}})),u.createElement(t));return r&&(C=u.createElement("span",{role:"button","aria-label":e+", disabled"},C)),e&&(C=u.createElement(Nl,it(ye({title:e},i),{children:C}))),C});function Ro(h){var y=h,{icon:e,title:t,onClick:n,disabled:r,progress:o,link:s,tooltipProps:i,confirm:l,doneMessage:a,labelFrom:c,children:f}=y,p=Lt(y,["icon","title","onClick","disabled","progress","link","tooltipProps","confirm","doneMessage","labelFrom","children"]);const[v,m]=So(!1);typeof r=="string"&&(t=r,r=!0),s&&(n=()=>window.open(s));const C=Jo(c||"xs");let w=u.createElement(J5,it(ye({variant:"contained",startIcon:e&&u.createElement(e),loading:!!(v||o),loadingPosition:e&&"start",loadingIndicator:typeof o!="number"?void 0:u.createElement(Gi,{size:"1rem",value:o*100,variant:"determinate"}),disabled:r},p),{children:C&&f,sx:ye(ye({},p.sx),!C&&{minWidth:"auto",px:2,py:"7px","& span":{mx:0}}),onClick(...x){return ot(this,null,function*(){if(l&&!(yield mr(l===!0?"Are you sure?":l)))return;const P=n==null?void 0:n.apply(this,x);P&&P instanceof Promise&&(m(!0),P.then(k=>k!==!1&&u3(a),kt).finally(()=>m(!1)))})}}));return r&&(w=u.createElement("span",{role:"button","aria-label":t+", disabled"},w)),t&&(w=u.createElement(Nl,it(ye({title:t},i),{children:w}))),w}function u3(e){e&&rr(e===!0?"Operation completed":e,"success")}function Hr(e,t,n){return u.createElement(Nl,{title:t,children:u.createElement(e,{sx:n})})}function _0(e){return u.createElement(os,ye({component:XP},e))}const lm=u.forwardRef((e,t)=>u.createElement(ze,ye({ref:t,display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center",flexDirection:"column"},e)));function hl(t){var e=Lt(t,[]);return u.createElement(os,it(ye({},e),{sx:ye({cursor:"pointer"},e.sx)}))}function d3(){const[e,t]=f3(n=>({title:"Pause",icon:n?X5:C0,sx:{rotate:n?"180deg":"0deg"}}),!0);return{pause:!e,pauseButton:t}}function f3(e,t=!1){const[n,r]=u.useState(t),o=u.useCallback(()=>r(l=>!l),[]),s=e(n),i=u.createElement(dn,it(ye({size:"small",color:n?"primary":"default","aria-pressed":n},s),{sx:ye({transition:"all .5s"},s.sx),onClick:o}));return[n,i]}function xy({code:e,ip:t,def:n,long:r,short:o}){const s=t&&!W5(t)&&!ghe(t),{data:i}=yv(e===void 0&&s&&xme,t,{delay:100});e||(e=i||"");const l=e&&Ze.find(l3,{code:e});return l?u.createElement(Nl,{title:r?void 0:l.name,children:u.createElement("span",{},u.createElement("img",{className:"flag icon-w-text",src:`flags/${e.toLowerCase()}.png`,alt:l.name}),r?l.name+pi(" (",o&&e,")"):e)}):u.createElement(u.Fragment,{},n)}function xme(e){return ot(this,null,function*(){return(yield ut("ip_country",{ips:e})).codes})}function p3(e,t,n,r){let o=e[t];return sE(e,()=>{const s=e[t];Object.is(o,s)||n(o=s)},r)}const h3="admin_state",on=oE(Object.assign({title:"",config:{},selectedFiles:[],movingFile:"",vfs:void 0,loginRequired:!1,username:"",monitorOnlyFiles:!0,onlinePluginsColumns:{version:!1,pushed_at:!1,license:!1}},JSON.parse(localStorage[h3]||null))),m3=["onlinePluginsColumns","monitorOnlyFiles"],Sme=Ze.debounce(()=>localStorage[h3]=JSON.stringify(Ze.pick(on,m3)),500,{maxWait:1e3});for(const e of m3)p3(on,e,Sme);function Gs(){return iE(on)}function li(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Bd(e){return!!e&&!!e[ss]}function Nc(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var o=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===$me}(e)||Array.isArray(e)||!!e[zO]||!!(!((t=e.constructor)===null||t===void 0)&&t[zO])||kE(e)||IE(e))}function Ph(e,t,n){n===void 0&&(n=!1),af(e)===0?(n?Object.keys:RE)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function af(e){var t=e[ss];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:kE(e)?2:IE(e)?3:0}function vS(e,t){return af(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Pme(e,t){return af(e)===2?e.get(t):e[t]}function g3(e,t,n){var r=af(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Eme(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function kE(e){return _me&&e instanceof Map}function IE(e){return Tme&&e instanceof Set}function fc(e){return e.o||e.t}function ME(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Rme(e);delete t[ss];for(var n=RE(t),r=0;r<n.length;r++){var o=n[r],s=t[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function _E(e,t){return t===void 0&&(t=!1),TE(e)||Bd(e)||!Nc(e)||(af(e)>1&&(e.set=e.add=e.clear=e.delete=kme),Object.freeze(e),t&&Ph(e,function(n,r){return _E(r,!0)},!0)),e}function kme(){li(2)}function TE(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ji(e){var t=Ome[e];return t||li(18,e),t}function DO(){return Eh}function yC(e,t){t&&(ji("Patches"),e.u=[],e.s=[],e.v=t)}function Sy(e){yS(e),e.p.forEach(Ime),e.p=null}function yS(e){e===Eh&&(Eh=e.l)}function AO(e){return Eh={p:[],l:Eh,h:e,m:!0,_:0}}function Ime(e){var t=e[ss];t.i===0||t.i===1?t.j():t.g=!0}function bC(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||ji("ES5").S(t,e,r),r?(n[ss].P&&(Sy(t),li(4)),Nc(e)&&(e=Py(t,e),t.l||Ey(t,e)),t.u&&ji("Patches").M(n[ss].t,e,t.u,t.s)):e=Py(t,n,[]),Sy(t),t.u&&t.v(t.u,t.s),e!==v3?e:void 0}function Py(e,t,n){if(TE(t))return t;var r=t[ss];if(!r)return Ph(t,function(l,a){return LO(e,r,t,l,a,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Ey(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=ME(r.k):r.o,s=o,i=!1;r.i===3&&(s=new Set(o),o.clear(),i=!0),Ph(s,function(l,a){return LO(e,r,o,l,a,n,i)}),Ey(e,o,!1),n&&e.u&&ji("Patches").N(r,n,e.u,e.s)}return r.o}function LO(e,t,n,r,o,s,i){if(Bd(o)){var l=Py(e,o,s&&t&&t.i!==3&&!vS(t.R,r)?s.concat(r):void 0);if(g3(n,r,l),!Bd(l))return;e.m=!1}else i&&n.add(o);if(Nc(o)&&!TE(o)){if(!e.h.D&&e._<1)return;Py(e,o),t&&t.A.l||Ey(e,o)}}function Ey(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&_E(t,n)}function wC(e,t){var n=e[ss];return(n?fc(n):e)[t]}function FO(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function bS(e){e.P||(e.P=!0,e.l&&bS(e.l))}function CC(e){e.o||(e.o=ME(e.t))}function wS(e,t,n){var r=kE(t)?ji("MapSet").F(t,n):IE(t)?ji("MapSet").T(t,n):e.O?function(o,s){var i=Array.isArray(o),l={i:i?1:0,A:s?s.A:DO(),P:!1,I:!1,R:{},l:s,t:o,k:null,o:null,j:null,C:!1},a=l,c=CS;i&&(a=[l],c=gp);var f=Proxy.revocable(a,c),p=f.revoke,h=f.proxy;return l.k=h,l.j=p,h}(t,n):ji("ES5").J(t,n);return(n?n.A:DO()).p.push(r),r}function Mme(e){return Bd(e)||li(22,e),function t(n){if(!Nc(n))return n;var r,o=n[ss],s=af(n);if(o){if(!o.P&&(o.i<4||!ji("ES5").K(o)))return o.t;o.I=!0,r=NO(n,s),o.I=!1}else r=NO(n,s);return Ph(r,function(i,l){o&&Pme(o.t,i)===l||g3(r,i,t(l))}),s===3?new Set(r):r}(e)}function NO(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return ME(e)}var BO,Eh,$E=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",_me=typeof Map!="undefined",Tme=typeof Set!="undefined",jO=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",v3=$E?Symbol.for("immer-nothing"):((BO={})["immer-nothing"]=!0,BO),zO=$E?Symbol.for("immer-draftable"):"__$immer_draftable",ss=$E?Symbol.for("immer-state"):"__$immer_state",$me=""+Object.prototype.constructor,RE=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Rme=Object.getOwnPropertyDescriptors||function(e){var t={};return RE(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Ome={},CS={get:function(e,t){if(t===ss)return e;var n=fc(e);if(!vS(n,t))return function(o,s,i){var l,a=FO(s,i);return a?"value"in a?a.value:(l=a.get)===null||l===void 0?void 0:l.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!Nc(r)?r:r===wC(e.t,t)?(CC(e),e.o[t]=wS(e.A.h,r,e)):r},has:function(e,t){return t in fc(e)},ownKeys:function(e){return Reflect.ownKeys(fc(e))},set:function(e,t,n){var r=FO(fc(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=wC(fc(e),t),s=o==null?void 0:o[ss];if(s&&s.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(Eme(n,o)&&(n!==void 0||vS(e.t,t)))return!0;CC(e),bS(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return wC(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,CC(e),bS(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=fc(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){li(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){li(12)}},gp={};Ph(CS,function(e,t){gp[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),gp.deleteProperty=function(e,t){return gp.set.call(this,e,t,void 0)},gp.set=function(e,t,n){return CS.set.call(this,e[0],t,n,e[0])};var Dme=function(){function e(n){var r=this;this.O=jO,this.D=!0,this.produce=function(o,s,i){if(typeof o=="function"&&typeof s!="function"){var l=s;s=o;var a=r;return function(m){var C=this;m===void 0&&(m=l);for(var w=arguments.length,b=Array(w>1?w-1:0),x=1;x<w;x++)b[x-1]=arguments[x];return a.produce(m,function(P){var k;return(k=s).call.apply(k,[C,P].concat(b))})}}var c;if(typeof s!="function"&&li(6),i!==void 0&&typeof i!="function"&&li(7),Nc(o)){var f=AO(r),p=wS(r,o,void 0),h=!0;try{c=s(p),h=!1}finally{h?Sy(f):yS(f)}return typeof Promise!="undefined"&&c instanceof Promise?c.then(function(m){return yC(f,i),bC(m,f)},function(m){throw Sy(f),m}):(yC(f,i),bC(c,f))}if(!o||typeof o!="object"){if((c=s(o))===void 0&&(c=o),c===v3&&(c=void 0),r.D&&_E(c,!0),i){var y=[],v=[];ji("Patches").M(o,c,y,v),i(y,v)}return c}li(21,o)},this.produceWithPatches=function(o,s){if(typeof o=="function")return function(c){for(var f=arguments.length,p=Array(f>1?f-1:0),h=1;h<f;h++)p[h-1]=arguments[h];return r.produceWithPatches(c,function(y){return o.apply(void 0,[y].concat(p))})};var i,l,a=r.produce(o,s,function(c,f){i=c,l=f});return typeof Promise!="undefined"&&a instanceof Promise?a.then(function(c){return[c,i,l]}):[a,i,l]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Nc(n)||li(8),Bd(n)&&(n=Mme(n));var r=AO(this),o=wS(this,n,void 0);return o[ss].C=!0,yS(r),o},t.finishDraft=function(n,r){var o=n&&n[ss],s=o.A;return yC(s,r),bC(void 0,s)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!jO&&li(20),this.O=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var s=r[o];if(s.path.length===0&&s.op==="replace"){n=s.value;break}}o>-1&&(r=r.slice(o+1));var i=ji("Patches").$;return Bd(n)?i(n,r):this.produce(n,function(l){return i(l,r)})},e}(),is=new Dme,Ame=is.produce;is.produceWithPatches.bind(is);is.setAutoFreeze.bind(is);is.setUseProxies.bind(is);is.applyPatches.bind(is);is.createDraft.bind(is);is.finishDraft.bind(is);const Lme=Ame;Cfe({onResponse(e,t){return ot(this,null,function*(){if(e.status===sf)throw on.loginRequired=(t==null?void 0:t.possible)!==!1||m0,new x5(e.status,"Unauthorized")})}});const Fme={timeout:"Operation timeout"};function Xn(...e){const t=S5(...e);return it(ye({},t),{element:u.useMemo(()=>e[0]?t.error?u.createElement(Er,{severity:"error"},b0(String(t.error),Fme),u.createElement(dn,{icon:x0,onClick:t.reload,sx:{m:"-10px 0 -8px 16px"}})):t.loading||t.data===void 0?a3():null:null,Object.values(t))})}function Ol(e,t={},{map:n,invert:r,pause:o}={}){const[s,i]=So([]),[l,a]=So(void 0),[c,f]=So(void 0),[p,h]=So(!0),[y,v]=So(!1),[m,C]=So(!0),[w,b]=u.useState(0),x=u.useRef(0),[P,k]=u.useState();return u.useEffect(()=>k(o?s:void 0),[o]),u.useEffect(()=>{if(!e)return;const O=[],$=Ze.debounce(()=>{const N=O.splice(0,1/0);N.length&&(r&&N.reverse(),i(_=>r?[...N,..._]:[..._,...N]))},1e3,{maxWait:1e3});f(void 0),v(!0),h(!0),C(!0),i([]);const L=P5(e,t,(N,_)=>{switch(N){case"connected":return h(!1),setTimeout(()=>$.flush());case"error":return f("Connection error"),setTimeout(E,1e3),j();case"closed":return j();case"msg":const T=[],B=[];y0(_).forEach(V=>{var H,K,Y;if(!Array.isArray(V))return console.debug("illegal list packet",V);console.debug("LIST",...V);const[A,F]=V;if(A===xu.ready){$.flush(),C(!1);return}if(A===xu.error){F===sf?on.loginRequired=((H=V[2])==null?void 0:H.possible)!==!1||m0:f(Q5(F));return}if(A===xu.props)return a(F);if(A===xu.add){const J=(K=n==null?void 0:n(F))!=null?K:F;(Y=J.id)!=null||(J.id=x.current=Math.max(x.current,Date.now())+.001),O.push(J),$();return}if(A===xu.remove){const J=Ze.matches(F);Ze.isEmpty(Ze.remove(O,J))&&T.push(J);return}if(A===xu.update){const J=V[2],Q=Ze.find(O,F);if(Q)return Object.assign(Q,J);B.push([F,J]);return}console.debug("unknown list api",A)}),i(V=>{let A=V,F;if(T.length&&(F=V.filter(H=>!T.some(K=>K(H))),F.length<V.length&&(A=F)),B.length)for(const[H,K]of B){const Y=Ze.findIndex(A,H);Y<0||(A===V&&(A=F!=null?F:V.slice()),A[Y]=ye(ye({},A[Y]),K))}return A}),(L==null?void 0:L.readyState)===(L==null?void 0:L.CLOSED)&&j()}});return()=>L.close();function j(){C(!1),v(!1),$.flush()}},[w,e,JSON.stringify(t)]),{list:P!=null?P:s,props:l,loading:y,error:c,initializing:m,connecting:p,setList:i,updateList:I,updateEntry:R,reload:E};function E(){b(O=>O+1)}function I(O){i(Lme(s,O))}function R(O,$){I(L=>{const j=Ze.find(L,O);j&&Object.assign(j,$)})}}var OE={},Nme=Je;Object.defineProperty(OE,"__esModule",{value:!0});var y3=OE.default=void 0,Bme=Nme(tt()),jme=et();y3=OE.default=(0,Bme.default)((0,jme.jsx)("path",{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5m-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3z"}),"LinkOff");var DE={},zme=Je;Object.defineProperty(DE,"__esModule",{value:!0});var T0=DE.default=void 0,Vme=zme(tt()),Hme=et();T0=DE.default=(0,Vme.default)((0,Hme.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var AE={},Ume=Je;Object.defineProperty(AE,"__esModule",{value:!0});var b3=AE.default=void 0,Wme=Ume(tt()),Gme=et();b3=AE.default=(0,Wme.default)((0,Gme.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block");var LE={},Kme=Je;Object.defineProperty(LE,"__esModule",{value:!0});var w3=LE.default=void 0,qme=Kme(tt()),Yme=et();w3=LE.default=(0,qme.default)((0,Yme.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-2 6h-2v2h2v2h-2v2h-2v-2h2v-2h-2v-2h2v-2h-2V8h2v2h2z"}),"FolderZip");var FE={},Qme=Je;Object.defineProperty(FE,"__esModule",{value:!0});var am=FE.default=void 0,Xme=Qme(tt()),Zme=et();am=FE.default=(0,Xme.default)((0,Zme.jsx)("path",{d:"M5 20h14v-2H5zm0-10h4v6h6v-6h4l-7-7z"}),"Upload");var NE={},Jme=Je;Object.defineProperty(NE,"__esModule",{value:!0});var BE=NE.default=void 0,ege=Jme(tt()),tge=et();BE=NE.default=(0,ege.default)((0,tge.jsx)("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download");const C3=u.createContext(void 0);function Ht(){const e=u.useContext(C3);if(e===void 0)throw new Error(["MUI: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(`
585
+ `));return e}const nge=()=>u.useRef({}),x3=u.createContext(void 0),dt=()=>{const e=u.useContext(x3);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},S3=u.createContext(void 0);function Ga(){const e=u.useContext(S3);if(e===void 0)throw new Error(["MUI: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(`
586
+ `));return e}const VO={};function jE(e,t){const n=u.useRef(VO);return n.current===VO&&(n.current=e(t)),n}const rge=[];function P3(e){u.useEffect(e,rge)}const Xi=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
587
+ `):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},oge=Object.is;function E3(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!oge(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}Xi(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function sge(e){return e.acceptsApiRef}function HO(e,t){return sge(t)?t(e):t(e.current.state)}const ige=Object.is,zE=E3,lge=()=>({state:null,equals:null,selector:null}),st=(e,t,n=ige)=>{const r=jE(lge),o=r.current.selector!==null,[s,i]=u.useState(o?null:HO(e,t));return r.current.state=s,r.current.equals=n,r.current.selector=t,P3(()=>e.current.store.subscribe(()=>{const l=HO(e,r.current.selector);r.current.equals(r.current.state,l)||(r.current.state=l,i(l))})),s};function Ut(e){return Ge("MuiDataGrid",e)}const de=Ue("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--selectionMode","cell","cellContent","cellCheckbox","cellSkeleton","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorderColor","cell--withRightBorder","columnHeader--withRightBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]);var ky="NOT_FOUND";function age(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:ky},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function cge(e,t){var n=[];function r(l){var a=n.findIndex(function(f){return t(l,f.key)});if(a>-1){var c=n[a];return a>0&&(n.splice(a,1),n.unshift(c)),c.value}return ky}function o(l,a){r(l)===ky&&(n.unshift({key:l,value:a}),n.length>e&&n.pop())}function s(){return n}function i(){n=[]}return{get:r,put:o,getEntries:s,clear:i}}var uge=function(t,n){return t===n};function dge(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,s=0;s<o;s++)if(!e(n[s],r[s]))return!1;return!0}}function $0(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?uge:r,s=n.maxSize,i=s===void 0?1:s,l=n.resultEqualityCheck,a=dge(o),c=i===1?age(a):cge(i,a);function f(){var p=c.get(arguments);if(p===ky){if(p=e.apply(null,arguments),l){var h=c.getEntries(),y=h.find(function(v){return l(v.value,p)});y&&(p=y.value)}c.put(arguments,p)}return p}return f.clearCache=function(){return c.clear()},f}function fge(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){return typeof r=="function"?"function "+(r.name||"unnamed")+"()":typeof r}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function pge(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var i=arguments.length,l=new Array(i),a=0;a<i;a++)l[a]=arguments[a];var c=0,f,p={memoizeOptions:void 0},h=l.pop();if(typeof h=="object"&&(p=h,h=l.pop()),typeof h!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof h+"]");var y=p,v=y.memoizeOptions,m=v===void 0?n:v,C=Array.isArray(m)?m:[m],w=fge(l),b=e.apply(void 0,[function(){return c++,h.apply(null,arguments)}].concat(C)),x=e(function(){for(var k=[],E=w.length,I=0;I<E;I++)k.push(w[I].apply(null,arguments));return f=b.apply(null,k),f});return Object.assign(x,{resultFunc:h,memoizedResultFunc:b,dependencies:w,lastResult:function(){return f},recomputations:function(){return c},resetRecomputations:function(){return c=0}}),x};return o}var hge=pge($0);const mge={cache:new WeakMap};Xi(["MUI: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, e.g. `mySelector(apiRef)`, or pass the instance ID explicitly, e.g. `mySelector(state, apiRef.current.instanceId)`."]);function Ou(e){return"current"in e&&"instanceId"in e.current}const Du={id:"default"},_t=(e,t,n,r,o,s,...i)=>{if(i.length>0)throw new Error("Unsupported number of selectors");let l;if(e&&t&&n&&r&&o&&s)l=(a,c)=>{const f=Ou(a),p=c!=null?c:f?a.current.instanceId:Du,h=f?a.current.state:a,y=e(h,p),v=t(h,p),m=n(h,p),C=r(h,p),w=o(h,p);return s(y,v,m,C,w)};else if(e&&t&&n&&r&&o)l=(a,c)=>{const f=Ou(a),p=c!=null?c:f?a.current.instanceId:Du,h=f?a.current.state:a,y=e(h,p),v=t(h,p),m=n(h,p),C=r(h,p);return o(y,v,m,C)};else if(e&&t&&n&&r)l=(a,c)=>{const f=Ou(a),p=c!=null?c:f?a.current.instanceId:Du,h=f?a.current.state:a,y=e(h,p),v=t(h,p),m=n(h,p);return r(y,v,m)};else if(e&&t&&n)l=(a,c)=>{const f=Ou(a),p=c!=null?c:f?a.current.instanceId:Du,h=f?a.current.state:a,y=e(h,p),v=t(h,p);return n(y,v)};else if(e&&t)l=(a,c)=>{const f=Ou(a),p=c!=null?c:f?a.current.instanceId:Du,h=f?a.current.state:a,y=e(h,p);return t(y)};else throw new Error("Missing arguments");return l.acceptsApiRef=!0,l},_n=(...e)=>{const t=(...n)=>{var r,o;const[s,i]=n,l=Ou(s),a=l?s.current.instanceId:i!=null?i:Du,c=l?s.current.state:s,{cache:f}=mge;if(f.get(a)&&(r=f.get(a))!=null&&r.get(e)){var p;return(p=f.get(a))==null?void 0:p.get(e)(c,a)}const h=hge(...e);return f.get(a)||f.set(a,new Map),(o=f.get(a))==null||o.set(e,h),h(c,a)};return t.acceptsApiRef=!0,t},kc=e=>e.columns,xl=_t(kc,e=>e.orderedFields),cf=_t(kc,e=>e.lookup),zi=_n(xl,cf,(e,t)=>e.map(n=>t[n])),ci=_t(kc,e=>e.columnVisibilityModel),Dr=_n(zi,ci,(e,t)=>e.filter(n=>t[n.field]!==!1)),R0=_n(Dr,e=>e.map(t=>t.field)),jd=_n(Dr,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),VE=_t(Dr,jd,(e,t)=>{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),k3=_n(zi,e=>e.filter(t=>t.filterable)),gge=_n(zi,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),O0=e=>e.columnGrouping,vge=_n(O0,e=>{var t;return(t=e==null?void 0:e.unwrappedGroupingModel)!=null?t:{}}),I3=_n(O0,e=>{var t;return(t=e==null?void 0:e.lookup)!=null?t:{}}),yge=_n(O0,e=>{var t;return(t=e==null?void 0:e.headerStructure)!=null?t:[]}),cm=_t(O0,e=>{var t;return(t=e==null?void 0:e.maxDepth)!=null?t:0}),bi=e=>e.rows,D0=_t(bi,e=>e.totalRowCount),bge=_t(bi,e=>e.loading),wge=_t(bi,e=>e.totalTopLevelRowCount),vl=_t(bi,e=>e.dataRowIdToModelLookup),Iy=_t(bi,e=>e.dataRowIdToIdLookup),si=_t(bi,e=>e.tree),Cge=_t(bi,e=>e.groupingName),UO=_t(bi,e=>e.treeDepths),A0=_n(bi,e=>{const t=Object.entries(e.treeDepths);return t.length===0?1:t.filter(([,n])=>n>0).map(([n])=>Number(n)).sort((n,r)=>r-n)[0]+1}),vp=_t(bi,e=>e.dataRowIds),xge=_t(bi,e=>e==null?void 0:e.additionalRowGroups),uf=_n(xge,e=>{var t,n;const r=e==null?void 0:e.pinnedRows;return{bottom:r==null||(t=r.bottom)==null?void 0:t.map(o=>{var s;return{id:o.id,model:(s=o.model)!=null?s:{}}}),top:r==null||(n=r.top)==null?void 0:n.map(o=>{var s;return{id:o.id,model:(s=o.model)!=null?s:{}}})}}),Sge=_t(uf,e=>{var t,n;return((e==null||(t=e.top)==null?void 0:t.length)||0)+((e==null||(n=e.bottom)==null?void 0:n.length)||0)}),M3=()=>{var e;const t=Ga(),n=dt(),r=st(t,Dr),o=st(t,D0),s=st(t,cm),i=st(t,Sge);let l="grid";return(e=n.experimentalFeatures)!=null&&e.ariaV7&&n.treeData&&(l="treegrid"),{role:l,"aria-colcount":r.length,"aria-rowcount":s+1+i+o,"aria-multiselectable":!n.disableMultipleRowSelection}},Pge=e=>{const{classes:t}=e;return _e({root:["main"]},Ut,t)},Ege=Ir("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})(()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"})),kge=u.forwardRef((e,t)=>{var n;const r=dt(),o=Pge(r),s=(n=r.experimentalFeatures)!=null&&n.ariaV7?M3:null,i=typeof s=="function"?s():null;return D.jsx(Ege,S({ref:t,className:o.root,ownerState:r},i,{children:e.children}))}),_3=e=>e.sorting,HE=_t(_3,e=>e.sortedRows),UE=_n(HE,vl,(e,t)=>e.map(n=>{var r;return{id:n,model:(r=t[n])!=null?r:{}}})),Es=_t(_3,e=>e.sortModel),Ige=_n(Es,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),WE=e=>e.filter,wr=_t(WE,e=>e.filterModel);_t(wr,e=>e.quickFilterValues);const Mge=e=>e.visibleRowsLookup,T3=_t(WE,e=>e.filteredRowsLookup);_t(WE,e=>e.filteredDescendantCountLookup);const Ka=_n(Mge,UE,(e,t)=>t.filter(n=>e[n.id]!==!1)),jp=_n(Ka,e=>e.map(t=>t.id)),_ge=_n(T3,UE,(e,t)=>t.filter(n=>e[n.id]!==!1)),Tge=_n(_ge,e=>e.map(t=>t.id)),$3=_n(Ka,si,A0,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),R3=_t(Ka,e=>e.length),L0=_t($3,e=>e.length),$ge=_n(wr,cf,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var o,s;if(!r.field)return!1;const i=t[r.field];if(!(i!=null&&i.filterOperators)||(i==null||(o=i.filterOperators)==null?void 0:o.length)===0)return!1;const l=i.filterOperators.find(a=>a.value===r.operator);return l?!l.InputComponent||r.value!=null&&((s=r.value)==null?void 0:s.toString())!=="":!1})}),Rge=_n($ge,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),F0=e=>e.focus,Uo=_t(F0,e=>e.cell),Oge=_t(F0,e=>e.columnHeader);_t(F0,e=>e.columnHeaderFilter);const My=_t(F0,e=>e.columnGroupHeader),N0=e=>e.tabIndex,_y=_t(N0,e=>e.cell),O3=_t(N0,e=>e.columnHeader);_t(N0,e=>e.columnHeaderFilter);const Dge=_t(N0,e=>e.columnGroupHeader),GE=e=>e.density,Age=_t(GE,e=>e.value),df=_t(GE,e=>e.factor),xS=e=>e.columnMenu;function Lge(e){const{VirtualScrollerComponent:t,ColumnHeadersProps:n,children:r}=e,o=Ga(),s=dt(),i=u.useRef(null),l=st(o,Dr),a=st(o,Rge),c=st(o,Ige),f=st(o,jd),p=st(o,O3),h=st(o,_y),y=st(o,Dge),v=st(o,Oge),m=st(o,My),C=st(o,df),w=st(o,cm),b=st(o,xS),x=st(o,ci),P=st(o,yge),k=!(y===null&&p===null&&h===null);Ft(()=>{o.current.computeSizeAndPublishResizeEvent();const $=i.current;if(typeof ResizeObserver=="undefined")return()=>{};let L;const j=new ResizeObserver(()=>{L=requestAnimationFrame(()=>{o.current.computeSizeAndPublishResizeEvent()})});return $&&j.observe($),()=>{L&&window.cancelAnimationFrame(L),$&&j.unobserve($)}},[o]);const E=u.useRef(null),I=u.useRef(null),R=u.useRef(null);o.current.register("private",{columnHeadersContainerElementRef:I,columnHeadersElementRef:E,virtualScrollerRef:R,mainElementRef:i});const O=!!o.current.getRootDimensions();return D.jsxs(kge,{ref:i,children:[D.jsx(s.slots.columnHeaders,S({ref:I,innerRef:E,visibleColumns:l,filterColumnLookup:a,sortColumnLookup:c,columnPositions:f,columnHeaderTabIndexState:p,columnGroupHeaderTabIndexState:y,columnHeaderFocus:v,columnGroupHeaderFocus:m,densityFactor:C,headerGroupingMaxDepth:w,columnMenuState:b,columnVisibility:x,columnGroupsHeaderStructure:P,hasOtherElementInTabSequence:k},n)),O&&D.jsx(t,{ref:R}),r]})}function Fge(){var e;const t=dt();return t.hideFooter?null:D.jsx(t.slots.footer,S({},(e=t.slotProps)==null?void 0:e.footer))}const lo="auto-generated-group-node-root",dd=Symbol("mui.id_autogenerated"),Nge=()=>({type:"group",id:lo,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function Bge(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(`
588
+ `))}const Ty=(e,t,n)=>{const r=t?t(e):e.id;return Bge(r,e,n),r},wv=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},s={},i={};for(let l=0;l<e.length;l+=1){const a=e[l],c=Ty(a,t);s[c]=a,i[c]=c,o.rows.push(c)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:o,dataRowIdToIdLookup:i,dataRowIdToModelLookup:s}},D3=({tree:e,rowCountProp:t=0})=>{const n=e[lo];return Math.max(t,n.children.length+(n.footerId==null?0:1))},A3=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o})=>{const s=e.current.caches.rows,{tree:i,treeDepths:l,dataRowIds:a,groupingName:c}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:s.updates,dataRowIdToIdLookup:s.dataRowIdToIdLookup,dataRowIdToModelLookup:s.dataRowIdToModelLookup}),f=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:i,treeDepths:l,dataRowIdToIdLookup:s.dataRowIdToIdLookup,dataRowIds:a,dataRowIdToModelLookup:s.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},S({},f,{totalRowCount:Math.max(t,f.dataRowIds.length),totalTopLevelRowCount:D3({tree:f.tree,rowCountProp:t}),groupingName:c,loading:n})},kh=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,KE=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let s=0;s<r.children.length;s+=1){const i=r.children[s];(!n||!kh(e[i]))&&o.push(i);const l=KE(e,i,n);for(let a=0;a<l.length;a+=1)o.push(l[a])}return!n&&r.footerId!=null&&o.push(r.footerId),o},jge=({previousCache:e,getRowId:t,updates:n})=>{var r,o,s;if(e.updates.type==="full")throw new Error("MUI: Unable to prepare a partial update if a full update is not applied yet");const i=new Map;n.forEach(h=>{const y=Ty(h,t,"A row was provided without id when calling updateRows():");i.has(y)?i.set(y,S({},i.get(y),h)):i.set(y,h)});const l={type:"partial",actions:{insert:[...(r=e.updates.actions.insert)!=null?r:[]],modify:[...(o=e.updates.actions.modify)!=null?o:[]],remove:[...(s=e.updates.actions.remove)!=null?s:[]]},idToActionLookup:S({},e.updates.idToActionLookup)},a=S({},e.dataRowIdToModelLookup),c=S({},e.dataRowIdToIdLookup),f={insert:{},modify:{},remove:{}};i.forEach((h,y)=>{const v=l.idToActionLookup[y];if(h._action==="delete"){if(v==="remove"||!a[y])return;v!=null&&(f[v][y]=!0),l.actions.remove.push(y),delete a[y],delete c[y];return}const m=a[y];if(m){v==="remove"?(f.remove[y]=!0,l.actions.modify.push(y)):v==null&&l.actions.modify.push(y),a[y]=S({},m,h);return}v==="remove"?(f.remove[y]=!0,l.actions.insert.push(y)):v==null&&l.actions.insert.push(y),a[y]=h,c[y]=y});const p=Object.keys(f);for(let h=0;h<p.length;h+=1){const y=p[h],v=f[y];Object.keys(v).length>0&&(l.actions[y]=l.actions[y].filter(m=>!v[m]))}return{dataRowIdToModelLookup:a,dataRowIdToIdLookup:c,updates:l,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function L3(e){var t,n;const r=uf(e),o=(r==null||(t=r.top)==null?void 0:t.reduce((i,l)=>(i+=e.current.unstable_getRowHeight(l.id),i),0))||0,s=(r==null||(n=r.bottom)==null?void 0:n.reduce((i,l)=>(i+=e.current.unstable_getRowHeight(l.id),i),0))||0;return{top:o,bottom:s}}function F3(e,t){const n=df(e);return`var(--DataGrid-overlayHeight, ${2*Math.floor(t*n)}px)`}const zge=Ir("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapper})(({overlayType:e})=>({position:"sticky",top:0,left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4})),Vge=Ir("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),Hge=e=>{const{classes:t}=e;return _e({root:["overlayWrapper"],inner:["overlayWrapperInner"]},Ut,t)};function Uge(e){var t,n;const r=Ht(),o=dt(),[s,i]=u.useState(()=>{var f,p;return(f=(p=r.current.getRootDimensions())==null?void 0:p.viewportInnerSize)!=null?f:null}),l=u.useCallback(()=>{var f,p;i((f=(p=r.current.getRootDimensions())==null?void 0:p.viewportInnerSize)!=null?f:null)},[r]);Ft(()=>r.current.subscribeEvent("viewportInnerSizeChange",l),[r,l]);let a=(t=s==null?void 0:s.height)!=null?t:0;o.autoHeight&&a===0&&(a=F3(r,o.rowHeight));const c=Hge(S({},e,{classes:o.classes}));return s?D.jsx(zge,{className:be(c.root),overlayType:e.overlayType,children:D.jsx(Vge,S({className:be(c.inner),style:{height:a,width:(n=s==null?void 0:s.width)!=null?n:0}},e))}):null}function Wge(){const e=Ht(),t=dt(),n=st(e,D0),r=st(e,R3),o=st(e,bge),s=!o&&n===0,i=!o&&n>0&&r===0;let l=null,a="";if(s){var c;l=D.jsx(t.slots.noRowsOverlay,S({},(c=t.slotProps)==null?void 0:c.noRowsOverlay)),a="noRowsOverlay"}if(i){var f;l=D.jsx(t.slots.noResultsOverlay,S({},(f=t.slotProps)==null?void 0:f.noResultsOverlay)),a="noResultsOverlay"}if(o){var p;l=D.jsx(t.slots.loadingOverlay,S({},(p=t.slotProps)==null?void 0:p.loadingOverlay)),a="loadingOverlay"}return l===null?null:D.jsx(Uge,{overlayType:a,children:l})}function B0(e){return u.memo(e,E3)}let xC;function Gge(){return xC===void 0&&document.createElement("div").focus({get preventScroll(){return xC=!0,!1}}),xC}var qi=function(e){return e.Cell="cell",e.Row="row",e}(qi||{}),un=function(e){return e.Edit="edit",e.View="view",e}(un||{}),wn=function(e){return e.Edit="edit",e.View="view",e}(wn||{}),Eo=function(e){return e.And="and",e.Or="or",e}(Eo||{}),al=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(al||{}),ni=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(ni||{}),na=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(na||{}),cl=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(cl||{});function N3(e){return e.field!==void 0}function Kge(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function qge(e,t){return e.closest(`.${t}`)}function qE(e){return e.replace(/["\\]/g,"\\$&")}function Yge(e,t){return e.querySelector(`[role="columnheader"][data-field="${qE(t)}"]`)}function B3(e){return`.${de.row}[data-id="${qE(String(e))}"]`}function Qge(e,t){return e.querySelector(B3(t))}function Xge(e,{id:t,field:n}){const r=B3(t),o=`.${de.cell}[data-field="${qE(n)}"]`,s=`${r} ${o}`;return e.querySelector(s)}function um(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function Nt(e,t,n){const r=u.useRef(!0);u.useEffect(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}class Qu extends Error{}function Zge(e,t){const{getRowId:n}=t,r=u.useCallback(v=>({field:v,colDef:e.current.getColumn(v)}),[e]),o=u.useCallback(v=>{const m=e.current.getRow(v);if(!m)throw new Qu(`No row with id #${v} found`);return{id:v,columns:e.current.getAllColumns(),row:m}},[e]),s=u.useCallback((v,m)=>{const C=e.current.getRow(v),w=e.current.getRowNode(v);if(!C||!w)throw new Qu(`No row with id #${v} found`);const b=Uo(e),x=_y(e);return{id:v,field:m,row:C,rowNode:w,value:C[m],colDef:e.current.getColumn(m),cellMode:e.current.getCellMode(v,m),api:e.current,hasFocus:b!==null&&b.field===m&&b.id===v,tabIndex:x&&x.field===m&&x.id===v?0:-1}},[e]),i=u.useCallback((v,m)=>{const C=e.current.getColumn(m),w=e.current.getCellValue(v,m),b=e.current.getRow(v),x=e.current.getRowNode(v);if(!b||!x)throw new Qu(`No row with id #${v} found`);const P=Uo(e),k=_y(e),E={id:v,field:m,row:b,rowNode:x,colDef:C,cellMode:e.current.getCellMode(v,m),hasFocus:P!==null&&P.field===m&&P.id===v,tabIndex:k&&k.field===m&&k.id===v?0:-1,value:w,formattedValue:w,isEditable:!1};return C&&C.valueFormatter&&(E.formattedValue=C.valueFormatter({id:v,field:E.field,value:E.value,api:e.current})),E.isEditable=C&&e.current.isCellEditable(E),E},[e]),l=u.useCallback((v,m)=>{const C=e.current.getColumn(m);if(!C||!C.valueGetter){const w=e.current.getRow(v);if(!w)throw new Qu(`No row with id #${v} found`);return w[m]}return C.valueGetter(s(v,m))},[e,s]),a=u.useCallback((v,m)=>{var C;const w=dd in v?v[dd]:(C=n==null?void 0:n(v))!=null?C:v.id,b=m.field;return!m||!m.valueGetter?v[b]:m.valueGetter(s(w,b))},[s,n]),c=u.useCallback((v,m)=>{var C;const w=a(v,m);if(!m||!m.valueFormatter)return w;const b=(C=n?n(v):v.id)!=null?C:v[dd],x=m.field;return m.valueFormatter({id:b,field:x,value:w,api:e.current})},[e,n,a]),f=u.useCallback(v=>e.current.rootElementRef.current?Yge(e.current.rootElementRef.current,v):null,[e]),p=u.useCallback(v=>e.current.rootElementRef.current?Qge(e.current.rootElementRef.current,v):null,[e]),h=u.useCallback((v,m)=>e.current.rootElementRef.current?Xge(e.current.rootElementRef.current,{id:v,field:m}):null,[e]);Nt(e,{getCellValue:l,getCellParams:i,getCellElement:h,getRowValue:a,getRowFormattedValue:c,getRowParams:o,getRowElement:p,getColumnHeaderParams:r,getColumnHeaderElement:f},"public")}const Jge=["changeReason","unstable_updateValueOnRender"],eve=["column","rowId","editCellState","align","children","colIndex","height","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","isNotVisible","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver","style"],tve=["changeReason","unstable_updateValueOnRender"],$y={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:un.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},nve=e=>{const{align:t,showRightBorder:n,isEditable:r,isSelected:o,isSelectionMode:s,classes:i}=e,l={root:["cell",`cell--text${Se(t)}`,r&&"cell--editable",o&&"selected",n&&"cell--withRightBorder",s&&!r&&"cell--selectionMode","withBorderColor"],content:["cellContent"]};return _e(l,Ut,i)},rve=u.forwardRef((e,t)=>{const{column:n,rowId:r,editCellState:o}=e,s=Ht(),i=dt(),l=n.field,a=st(s,()=>{try{const O=s.current.getCellParams(r,l);return O.api=s.current,O}catch(R){if(R instanceof Qu)return $y;throw R}},zE),c=st(s,()=>s.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:r,field:l}));if(a===$y)return null;const{cellMode:f,hasFocus:p,isEditable:h,value:y,formattedValue:v}=a,m=n.type==="actions",C=(f==="view"||!h)&&!m?a.tabIndex:-1,{classes:w,getCellClassName:b}=i,x=s.current.unstable_applyPipeProcessors("cellClassName",[],{id:r,field:l});n.cellClassName&&x.push(typeof n.cellClassName=="function"?n.cellClassName(a):n.cellClassName),b&&x.push(b(a));let P;if(o==null&&n.renderCell&&(P=n.renderCell(a),x.push(de["cell--withRenderer"]),x.push(w==null?void 0:w["cell--withRenderer"])),o!=null&&n.renderEditCell){const R=s.current.getRowWithUpdatedValues(r,n.field),O=le(o,Jge),$=S({},a,{row:R},O);P=n.renderEditCell($),x.push(de["cell--editing"]),x.push(w==null?void 0:w["cell--editing"])}const{slots:k}=i,E=k.cell,I=S({},e,{ref:t,field:l,formattedValue:v,hasFocus:p,isEditable:h,isSelected:c,value:y,cellMode:f,children:P,tabIndex:C,className:be(x)});return u.createElement(E,I)}),ove=B0(rve),sve=u.forwardRef((e,t)=>{var n,r,o,s;const{column:i,rowId:l,editCellState:a,align:c,colIndex:f,height:p,width:h,className:y,showRightBorder:v,colSpan:m,disableDragEvents:C,isNotVisible:w,onClick:b,onDoubleClick:x,onMouseDown:P,onMouseUp:k,onMouseOver:E,onKeyDown:I,onKeyUp:R,onDragEnter:O,onDragOver:$,style:L}=e,j=le(e,eve),N=Ht(),_=dt(),T=i.field,B=st(N,()=>{try{const Me=N.current.getCellParams(l,T);return Me.api=N.current,Me}catch(xe){if(xe instanceof Qu)return $y;throw xe}},zE),V=st(N,()=>N.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:l,field:T})),{cellMode:A,hasFocus:F,isEditable:H,value:K,formattedValue:Y}=B,J=i.type==="actions"&&((n=(r=i).getActions)==null?void 0:n.call(r,N.current.getRowParams(l)).some(xe=>!xe.props.disabled)),Q=(A==="view"||!H)&&!J?B.tabIndex:-1,{classes:X,getCellClassName:ee}=_,oe=N.current.unstable_applyPipeProcessors("cellClassName",[],{id:l,field:T});i.cellClassName&&oe.push(typeof i.cellClassName=="function"?i.cellClassName(B):i.cellClassName),ee&&oe.push(ee(B));const Z=Y==null?K:Y,pe=u.useRef(null),ne=Et(t,pe),re=u.useRef(null),me=(o=_.unstable_cellSelection)!=null?o:!1,ce={align:c,showRightBorder:v,isEditable:H,classes:_.classes,isSelected:V,isSelectionMode:me},Ce=nve(ce),Ee=u.useCallback(xe=>Me=>{const Oe=N.current.getCellParams(l,T||"");N.current.publishEvent(xe,Oe,Me),k&&k(Me)},[N,T,k,l]),fe=u.useCallback(xe=>Me=>{const Oe=N.current.getCellParams(l,T||"");N.current.publishEvent(xe,Oe,Me),P&&P(Me)},[N,T,P,l]),ke=u.useCallback((xe,Me)=>Oe=>{if(!N.current.getRow(l))return;const Be=N.current.getCellParams(l,T||"");N.current.publishEvent(xe,Be,Oe),Me&&Me(Oe)},[N,T,l]),ve=u.useMemo(()=>S(w?{padding:0,opacity:0,width:0,border:0}:{minWidth:h,maxWidth:h,minHeight:p,maxHeight:p==="auto"?"none":p},L),[h,p,w,L]);if(u.useEffect(()=>{if(!F||A===un.Edit)return;const xe=pn(N.current.rootElementRef.current);if(pe.current&&!pe.current.contains(xe.activeElement)){const Me=pe.current.querySelector('[tabindex="0"]'),Oe=re.current||Me||pe.current;if(Gge())Oe.focus({preventScroll:!0});else{const Be=N.current.getScrollPosition();Oe.focus(),N.current.scroll(Be)}}},[F,A,N]),B===$y)return null;let Re=j.onFocus,ie;if(a==null&&i.renderCell&&(ie=i.renderCell(B),oe.push(de["cell--withRenderer"]),oe.push(X==null?void 0:X["cell--withRenderer"])),a!=null&&i.renderEditCell){const xe=N.current.getRowWithUpdatedValues(l,i.field),Me=le(a,tve),Oe=S({},B,{row:xe},Me);ie=i.renderEditCell(Oe),oe.push(de["cell--editing"]),oe.push(X==null?void 0:X["cell--editing"])}if(ie===void 0){const xe=Z==null?void 0:Z.toString();ie=D.jsx("div",{className:Ce.content,title:xe,role:"presentation",children:xe})}u.isValidElement(ie)&&J&&(ie=u.cloneElement(ie,{focusElementRef:re}));const ue=C?null:{onDragEnter:ke("cellDragEnter",O),onDragOver:ke("cellDragOver",$)},we=(s=_.experimentalFeatures)==null?void 0:s.ariaV7;return D.jsx("div",S({ref:ne,className:be(y,oe,Ce.root),role:we?"gridcell":"cell","data-field":T,"data-colindex":f,"aria-colindex":f+1,"aria-colspan":m,style:ve,tabIndex:Q,onClick:ke("cellClick",b),onDoubleClick:ke("cellDoubleClick",x),onMouseOver:ke("cellMouseOver",E),onMouseDown:fe("cellMouseDown"),onMouseUp:Ee("cellMouseUp"),onKeyDown:ke("cellKeyDown",I),onKeyUp:ke("cellKeyUp",R)},ue,j,{onFocus:Re,children:ie}))}),SS=B0(sve),ive=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex"],lve=e=>{const{classes:t}=e;return _e({root:["booleanCell"]},Ut,t)};function ave(e){const{value:t}=e,n=le(e,ive),r=Ht(),o=dt(),s={classes:o.classes},i=lve(s),l=u.useMemo(()=>t?o.slots.booleanCellTrueIcon:o.slots.booleanCellFalseIcon,[o.slots.booleanCellFalseIcon,o.slots.booleanCellTrueIcon,t]);return D.jsx(l,S({fontSize:"small",className:i.root,titleAccess:r.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},n))}const cve=u.memo(ave),uve=e=>kh(e.rowNode)?"":D.jsx(cve,S({},e)),dve=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],fve=e=>{const{classes:t}=e;return _e({root:["editBooleanCell"]},Ut,t)};function pve(e){var t;const{id:n,value:r,field:o,className:s,hasFocus:i,onValueChange:l}=e,a=le(e,dve),c=Ht(),f=u.useRef(null),p=Yt(),[h,y]=u.useState(r),v=dt(),m={classes:v.classes},C=fve(m),w=u.useCallback(b=>ot(this,null,function*(){const x=b.target.checked;l&&(yield l(b,x)),y(x),yield c.current.setEditCellValue({id:n,field:o,value:x},b)}),[c,o,n,l]);return u.useEffect(()=>{y(r)},[r]),Ft(()=>{i&&f.current.focus()},[i]),D.jsx("label",S({htmlFor:p,className:be(C.root,s)},a,{children:D.jsx(v.slots.baseCheckbox,S({id:p,inputRef:f,checked:!!h,onChange:w,size:"small"},(t=v.slotProps)==null?void 0:t.baseCheckbox))}))}const hve=e=>D.jsx(pve,S({},e)),mve=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],gve=se(ef)({fontSize:"inherit"}),vve=e=>{const{classes:t}=e;return _e({root:["editInputCell"]},Ut,t)};function yve(e){const{id:t,value:n,field:r,colDef:o,hasFocus:s,inputProps:i,onValueChange:l}=e,a=le(e,mve),c=o.type==="dateTime",f=Ht(),p=u.useRef(),h=u.useMemo(()=>{let P;n==null?P=null:n instanceof Date?P=n:P=new Date((n!=null?n:"").toString());let k;return P==null||Number.isNaN(P.getTime())?k="":k=new Date(P.getTime()-P.getTimezoneOffset()*60*1e3).toISOString().substr(0,c?16:10),{parsed:P,formatted:k}},[n,c]),[y,v]=u.useState(h),C={classes:dt().classes},w=vve(C),b=u.useCallback(P=>{if(P==="")return null;const[k,E]=P.split("T"),[I,R,O]=k.split("-"),$=new Date;if($.setFullYear(Number(I),Number(R)-1,Number(O)),$.setHours(0,0,0,0),E){const[L,j]=E.split(":");$.setHours(Number(L),Number(j),0,0)}return $},[]),x=u.useCallback(P=>ot(this,null,function*(){const k=P.target.value,E=b(k);l&&(yield l(P,E)),v({parsed:E,formatted:k}),f.current.setEditCellValue({id:t,field:r,value:E},P)}),[f,r,t,l,b]);return u.useEffect(()=>{v(P=>{var k,E;return h.parsed!==P.parsed&&((k=h.parsed)==null?void 0:k.getTime())!==((E=P.parsed)==null?void 0:E.getTime())?h:P})},[h]),Ft(()=>{s&&p.current.focus()},[s]),D.jsx(gve,S({inputRef:p,fullWidth:!0,className:w.root,type:c?"datetime-local":"date",inputProps:S({max:c?"9999-12-31T23:59":"9999-12-31"},i),value:y.formatted,onChange:x},a))}const j3=e=>D.jsx(yve,S({},e)),bve=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],wve=e=>{const{classes:t}=e;return _e({root:["editInputCell"]},Ut,t)},Cve=se(ef,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>S({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),xve=u.forwardRef((e,t)=>{const n=dt(),{id:r,value:o,field:s,colDef:i,hasFocus:l,debounceMs:a=200,isProcessingProps:c,onValueChange:f}=e,p=le(e,bve),h=Ht(),y=u.useRef(),[v,m]=u.useState(o),C=wve(n),w=u.useCallback(x=>ot(void 0,null,function*(){const P=x.target.value;f&&(yield f(x,P));const k=h.current.getColumn(s);let E=P;k.valueParser&&(E=k.valueParser(P,h.current.getCellParams(r,s))),m(E),h.current.setEditCellValue({id:r,field:s,value:E,debounceMs:a,unstable_skipValueParser:!0},x)}),[h,a,s,r,f]),b=h.current.unstable_getEditCellMeta(r,s);return u.useEffect(()=>{(b==null?void 0:b.changeReason)!=="debouncedSetEditCellValue"&&m(o)},[b,o]),Ft(()=>{l&&y.current.focus()},[l]),D.jsx(Cve,S({ref:t,inputRef:y,className:C.root,ownerState:n,fullWidth:!0,type:i.type==="number"?i.type:"text",value:v!=null?v:"",onChange:w,endAdornment:c?D.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},p))}),Sve=e=>D.jsx(xve,S({},e)),Ry=e=>e==="Escape",Pve=e=>e==="Enter",z3=e=>e==="Tab",V3=e=>e===" ",Eve=e=>e.indexOf("Arrow")===0,kve=e=>e==="Home"||e==="End",Ive=e=>e.indexOf("Page")===0;function H3(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const Oy=e=>kve(e)||Eve(e)||Ive(e)||V3(e),Mve=e=>!!e.key,_ve=e=>z3(e)||Ry(e);function Ic(e){return(e==null?void 0:e.type)==="singleSelect"}function PS(e,t,n){if(t===void 0)return;const r=t.find(o=>{const s=n(o);return String(s)===String(e)});return n(r)}const Tve=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","getOptionLabel","getOptionValue"],$ve=["MenuProps"];function Rve(e){return!!e.key}function Ove(e){var t,n,r;const o=dt(),{id:s,value:i,field:l,row:a,colDef:c,hasFocus:f,error:p,onValueChange:h,initialOpen:y=o.editMode===qi.Cell,getOptionLabel:v,getOptionValue:m}=e,C=le(e,Tve),w=Ht(),b=u.useRef(),x=u.useRef(),[P,k]=u.useState(y),I=(n=(((t=o.slotProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!1,R=((r=o.slotProps)==null?void 0:r.baseSelect)||{},{MenuProps:O}=R,$=le(R,$ve);if(Ft(()=>{if(f){var V;(V=x.current)==null||V.focus()}},[f]),!Ic(c))return null;let L;if(typeof(c==null?void 0:c.valueOptions)=="function"?L=c==null?void 0:c.valueOptions({id:s,row:a,field:l}):L=c==null?void 0:c.valueOptions,!L)return null;const j=m||c.getOptionValue,N=v||c.getOptionLabel,_=V=>ot(this,null,function*(){if(!Ic(c)||!L)return;k(!1);const A=V.target,F=PS(A.value,L,j);h&&(yield h(V,F)),yield w.current.setEditCellValue({id:s,field:l,value:F},V)}),T=(V,A)=>{if(o.editMode===qi.Row){k(!1);return}if(A==="backdropClick"||Ry(V.key)){const F=w.current.getCellParams(s,l);w.current.publishEvent("cellEditStop",S({},F,{reason:Ry(V.key)?ni.escapeKeyDown:ni.cellFocusOut}))}},B=V=>{Rve(V)&&V.key==="Enter"||k(!0)};return!L||!c?null:D.jsx(o.slots.baseSelect,S({ref:b,inputRef:x,value:i,onChange:_,open:P,onOpen:B,MenuProps:S({onClose:T},O),error:p,native:I,fullWidth:!0},C,$,{children:L.map(V=>{var A;const F=j(V);return u.createElement(o.slots.baseSelectOption,S({},((A=o.slotProps)==null?void 0:A.baseSelectOption)||{},{native:I,key:F,value:F}),N(V))})}))}const Dve=e=>D.jsx(Ove,S({},e)),Ave=["open","target","onClose","children","position","className","onExited"],Lve=e=>{const{classes:t}=e;return _e({root:["menu"]},Ut,t)},Fve=se(Ua,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${de.menuList}`]:{outline:0}})),Nve={"bottom-start":"top left","bottom-end":"top right"};function U3(e){var t;const{open:n,target:r,onClose:o,children:s,position:i,className:l,onExited:a}=e,c=le(e,Ave),f=Ht(),p=dt(),h=Lve(p),y=u.useRef(null);Ft(()=>{if(n)y.current=document.activeElement instanceof HTMLElement?document.activeElement:null;else{var C,w;(C=y.current)==null||(w=C.focus)==null||w.call(C),y.current=null}},[n]),u.useEffect(()=>{const C=n?"menuOpen":"menuClose";f.current.publishEvent(C,{target:r})},[f,n,r]);const v=C=>w=>{C&&C(),a&&a(w)},m=C=>{C.target&&(r===C.target||r!=null&&r.contains(C.target))||o(C)};return D.jsx(Fve,S({as:p.slots.basePopper,className:be(l,h.root),ownerState:p,open:n,anchorEl:r,transition:!0,placement:i},c,(t=p.slotProps)==null?void 0:t.basePopper,{children:({TransitionProps:C,placement:w})=>D.jsx(m4,{onClickAway:m,mouseEvent:"onMouseDown",children:D.jsx(Ch,S({},C,{style:{transformOrigin:Nve[w]},onExited:v(C==null?void 0:C.onExited),children:D.jsx(Ws,{children:s})}))})}))}const Bve=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],jve=e=>typeof e.getActions=="function";function zve(e){var t;const{colDef:n,id:r,hasFocus:o,tabIndex:s,position:i="bottom-end",focusElementRef:l}=e,a=le(e,Bve),[c,f]=u.useState(-1),[p,h]=u.useState(!1),y=Ht(),v=u.useRef(null),m=u.useRef(null),C=u.useRef(!1),w=u.useRef({}),b=Fn(),x=Yt(),P=Yt(),k=dt();if(!jve(n))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const E=n.getActions(y.current.getRowParams(r)),I=E.filter(B=>!B.props.showInMenu),R=E.filter(B=>B.props.showInMenu),O=I.length+(R.length?1:0);u.useLayoutEffect(()=>{o||Object.entries(w.current).forEach(([B,V])=>{V==null||V.stop({},()=>{delete w.current[B]})})},[o]),u.useEffect(()=>{if(c<0||!v.current||c>=v.current.children.length)return;v.current.children[c].focus({preventScroll:!0})},[c]),u.useEffect(()=>{o||(f(-1),C.current=!1)},[o]),u.useImperativeHandle(l,()=>({focus(){if(!C.current){const B=E.findIndex(V=>!V.props.disabled);f(B)}}}),[E]),u.useEffect(()=>{c>=O&&f(O-1)},[c,O]);const $=()=>{h(!0),f(O-1),C.current=!0},L=()=>{h(!1)},j=B=>V=>{w.current[B]=V},N=(B,V)=>A=>{f(B),C.current=!0,V&&V(A)},_=B=>{if(O<=1)return;const V=(F,H)=>{var K;if(F<0||F>E.length)return F;const Y=b.direction==="rtl"?-1:1,J=(H==="left"?-1:1)*Y;return(K=E[F+J])!=null&&K.props.disabled?V(F+J,H):F+J};let A=c;B.key==="ArrowRight"?A=V(c,"right"):B.key==="ArrowLeft"&&(A=V(c,"left")),!(A<0||A>=O)&&A!==c&&(B.preventDefault(),B.stopPropagation(),f(A))},T=B=>{B.key==="Tab"&&B.preventDefault(),["Tab","Escape"].includes(B.key)&&L()};return D.jsxs("div",S({role:"menu",ref:v,tabIndex:-1,className:de.actionsCell,onKeyDown:_},a,{children:[I.map((B,V)=>u.cloneElement(B,{key:V,touchRippleRef:j(V),onClick:N(V,B.props.onClick),tabIndex:c===V?s:-1})),R.length>0&&P&&D.jsx(k.slots.baseIconButton,S({ref:m,id:P,"aria-label":y.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?x:void 0,role:"menuitem",size:"small",onClick:$,touchRippleRef:j(P),tabIndex:c===I.length?s:-1},(t=k.slotProps)==null?void 0:t.baseIconButton,{children:D.jsx(k.slots.moreActionsIcon,{fontSize:"small"})})),R.length>0&&D.jsx(U3,{open:p,target:m.current,position:i,onClose:L,children:D.jsx(of,{id:x,className:de.menuList,onKeyDown:T,"aria-labelledby":P,variant:"menu",autoFocusItem:!0,children:R.map((B,V)=>u.cloneElement(B,{key:V,closeMenu:L}))})})]}))}const Vve=e=>D.jsx(zve,S({},e)),Hve=["label","icon","showInMenu","onClick"],Uve=["label","icon","showInMenu","onClick","closeMenuOnClick","closeMenu"],jg=u.forwardRef((e,t)=>{const n=dt();if(!e.showInMenu){var r;const{label:p,icon:h,onClick:y}=e,v=le(e,Hve),m=C=>{y==null||y(C)};return D.jsx(n.slots.baseIconButton,S({ref:t,size:"small",role:"menuitem","aria-label":p},v,{onClick:m},(r=n.slotProps)==null?void 0:r.baseIconButton,{children:u.cloneElement(h,{fontSize:"small"})}))}const{label:o,icon:s,onClick:i,closeMenuOnClick:l=!0,closeMenu:a}=e,c=le(e,Uve),f=p=>{i==null||i(p),l&&(a==null||a())};return D.jsxs(Pr,S({ref:t},c,{onClick:f,children:[s&&D.jsx(Cl,{children:s}),o]}))}),Wve=["field","align","width","contentWidth"],Gve=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${Se(t)}`,"withBorderColor"]};return _e(r,Ut,n)};function Kve(e){const{align:t,width:n,contentWidth:r}=e,o=le(e,Wve),i={classes:dt().classes,align:t},l=Gve(i);return D.jsx("div",S({className:l.root,style:{width:n}},o,{children:D.jsx(sue,{width:`${r}%`})}))}function qve(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?ZX(In(e.palette.divider,1),.88):XX(In(e.palette.divider,1),.68)}const WO={[`.${de.columnSeparator}, .${de["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},GO={[`& .${de.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${de.menuIcon}`]:{width:"auto",visibility:"visible"}},Yve=se("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${de.autoHeight}`]:t.autoHeight},{[`&.${de.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${de["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${de["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${de["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${de.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${de["root--disableUserSelection"]} .${de.cell}`]:t["root--disableUserSelection"]},{[`&.${de.autosizing}`]:t.autosizing},{[`& .${de.editBooleanCell}`]:t.editBooleanCell},{[`& .${de["cell--editing"]}`]:t["cell--editing"]},{[`& .${de["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${de["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${de["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${de["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${de.cell}`]:t.cell},{[`& .${de["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${de["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${de["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${de["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${de["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${de.cellContent}`]:t.cellContent},{[`& .${de.cellCheckbox}`]:t.cellCheckbox},{[`& .${de.cellSkeleton}`]:t.cellSkeleton},{[`& .${de.checkboxInput}`]:t.checkboxInput},{[`& .${de["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${de["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${de["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${de["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${de["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${de["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${de["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${de["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${de["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${de.columnHeader}`]:t.columnHeader},{[`& .${de.headerFilterRow}`]:t.headerFilterRow},{[`& .${de.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${de.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${de.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${de["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${de["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${de.columnSeparator}`]:t.columnSeparator},{[`& .${de.filterIcon}`]:t.filterIcon},{[`& .${de.iconSeparator}`]:t.iconSeparator},{[`& .${de.menuIcon}`]:t.menuIcon},{[`& .${de.menuIconButton}`]:t.menuIconButton},{[`& .${de.menuOpen}`]:t.menuOpen},{[`& .${de.menuList}`]:t.menuList},{[`& .${de["row--editable"]}`]:t["row--editable"]},{[`& .${de["row--editing"]}`]:t["row--editing"]},{[`& .${de["row--dragging"]}`]:t["row--dragging"]},{[`& .${de.row}`]:t.row},{[`& .${de.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${de.rowReorderCell}`]:t.rowReorderCell},{[`& .${de["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${de.sortIcon}`]:t.sortIcon},{[`& .${de.withBorderColor}`]:t.withBorderColor},{[`& .${de.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${de.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${de.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${de["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=qve(e),n=e.shape.borderRadius;return S({"--unstable_DataGrid-radius":typeof n=="number"?`${n}px`:n,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:In(e.palette.background.default,e.palette.action.disabledOpacity),"--DataGrid-cellOffsetMultiplier":2,flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:t,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflowAnchor:"none",[`&.${de.autoHeight}`]:{height:"auto",[`& .${de["row--lastVisible"]} .${de.cell}`]:{borderBottomColor:"transparent"}},[`&.${de.autosizing}`]:{[`& .${de.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},[`& .${de.cell} > *`]:{overflow:"visible !important",whiteSpace:"nowrap"},[`& .${de.groupingCriteriaCell}`]:{width:"unset"},[`& .${de.treeDataGroupingCell}`]:{width:"unset"}},[`& .${de["virtualScrollerContent--overflowed"]} .${de["row--lastVisible"]} .${de.cell}`]:{borderBottomColor:"transparent"},[`& .${de.columnHeader}, & .${de.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${de.columnHeader}:focus-within, & .${de.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:In(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${de.columnHeader}:focus, & .${de.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${de.columnHeaderCheckbox}, & .${de.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${de.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${de["columnHeader--sorted"]} .${de.iconButtonContainer}, & .${de["columnHeader--filtered"]} .${de.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${de.columnHeader}:not(.${de["columnHeader--sorted"]}) .${de.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${de.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",position:"relative"},[`& .${de.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${de["columnHeader--filledGroup"]} .${de.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${de["columnHeader--filledGroup"]}.${de["columnHeader--showColumnBorder"]} .${de.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${de["columnHeader--filledGroup"]}.${de["columnHeader--showColumnBorder"]}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${de.headerFilterRow}`]:{borderTop:`1px solid ${t}`},[`& .${de.sortIcon}, & .${de.filterIcon}`]:{fontSize:"inherit"},[`& .${de["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${de["columnHeader--alignCenter"]} .${de.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${de["columnHeader--alignRight"]} .${de.columnHeaderDraggableContainer}, & .${de["columnHeader--alignRight"]} .${de.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${de["columnHeader--alignCenter"]} .${de.menuIcon}, & .${de["columnHeader--alignRight"]} .${de.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${de["columnHeader--alignRight"]} .${de.menuIcon}, & .${de["columnHeader--alignRight"]} .${de.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${de["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${de.columnSeparator}`]:{visibility:"hidden",position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},"@media (hover: hover)":{[`& .${de.columnHeaders}:hover`]:WO,[`& .${de.columnHeader}:hover`]:GO,[`& .${de.columnHeader}:not(.${de["columnHeader--sorted"]}):hover .${de.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${de.columnHeaders}`]:WO,[`& .${de.columnHeader}`]:GO},[`& .${de["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${de["columnSeparator--sideRight"]}`]:{right:-12},[`& .${de["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:(e.vars||e).palette.text.primary,"@media (hover: none)":{color:t}},[`&.${de["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${de.iconSeparator}`]:{color:"inherit"},[`& .${de.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`.${de.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${de.row}`]:{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:In(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(
589
+ ${e.vars.palette.action.selectedOpacity} +
590
+ ${e.vars.palette.action.hoverOpacity}
591
+ ))`:In(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})`:In(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${de.cell}`]:{display:"flex",alignItems:"center",borderBottom:"1px solid","&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:In(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity+e.palette.action.hoverOpacity})`:In(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})`:In(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`&.${de["root--disableUserSelection"]} .${de.cell}`]:{userSelect:"none"},[`& .${de.row}:not(.${de["row--dynamicHeight"]}) > .${de.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${de.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${de.cell}.${de["cell--selectionMode"]}`]:{cursor:"default"},[`& .${de.cell}.${de["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`solid ${(e.vars||e).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${de["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${de["row--editing"]} .${de.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${de.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${de.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${de.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${de.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${de.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${de["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${de.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`.${de.withBorderColor}`]:{borderColor:t},[`& .${de["cell--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${de["columnHeader--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${de["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${de["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${de["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${de.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${de.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${de["columnHeader--dragging"]}, & .${de["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${de["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${de.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${de.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${de.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${de.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${de.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),Qve=["children","className"],Xve=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${Se(n)}`,"withBorderColor"]};return _e(o,Ut,r)},Zve=u.forwardRef(function(t,n){var r;const o=dt(),{children:s,className:i}=t,l=le(t,Qve),a=Ga(),c=st(a,Age),f=u.useRef(null),p=Et(f,n),h=(r=o.experimentalFeatures)!=null&&r.ariaV7?null:M3,y=typeof h=="function"?h():null,v=S({},o,{density:c}),m=Xve(v);a.current.register("public",{rootElementRef:f});const[C,w]=u.useState(!1);return Ft(()=>{w(!0)},[]),C?D.jsx(Yve,S({ref:p,className:be(i,m.root),ownerState:v},y,l,{children:s})):null}),Jve=["className"],eye=e=>{const{classes:t}=e;return _e({root:["footerContainer","withBorderColor"]},Ut,t)},tye=Ir("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),nye=u.forwardRef(function(t,n){const{className:r}=t,o=le(t,Jve),s=dt(),i=eye(s);return D.jsx(tye,S({ref:n,className:be(i.root,r),ownerState:s},o))}),rye=["className"],oye=e=>{const{classes:t}=e;return _e({root:["overlay"]},Ut,t)},sye=Ir("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),YE=u.forwardRef(function(t,n){const{className:r}=t,o=le(t,rye),s=dt(),i=oye(s);return D.jsx(sye,S({ref:n,className:be(i.root,r),ownerState:s},o))}),iye=["className"],lye=e=>{const{classes:t}=e;return _e({root:["iconButtonContainer"]},Ut,t)},aye=Ir("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),W3=u.forwardRef(function(t,n){const{className:r}=t,o=le(t,iye),s=dt(),i=lye(s);return D.jsx(aye,S({ref:n,className:be(i.root,r),ownerState:s},o))}),cye=e=>{const{classes:t}=e;return _e({icon:["sortIcon"]},Ut,t)};function uye(e,t,n,r){let o;const s={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,s.sortingOrder=r),o?D.jsx(o,S({fontSize:"small",className:n},s)):null}function dye(e){var t;const{direction:n,index:r,sortingOrder:o}=e,s=Ht(),i=dt(),l=S({},e,{classes:i.classes}),a=cye(l),c=uye(i.slots,n,a.icon,o);if(!c)return null;const f=D.jsx(i.slots.baseIconButton,S({tabIndex:-1,"aria-label":s.current.getLocaleText("columnHeaderSortIconLabel"),title:s.current.getLocaleText("columnHeaderSortIconLabel"),size:"small"},(t=i.slotProps)==null?void 0:t.baseIconButton,{children:c}));return D.jsxs(W3,{children:[r!=null&&D.jsx(O4,{badgeContent:r,color:"default",children:f}),r==null&&f]})}const fye=u.memo(dye),pye=e=>{const{classes:t,open:n}=e;return _e({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},Ut,t)},hye=u.memo(e=>{var t,n;const{colDef:r,open:o,columnMenuId:s,columnMenuButtonId:i,iconButtonRef:l}=e,a=Ht(),c=dt(),f=S({},e,{classes:c.classes}),p=pye(f),h=u.useCallback(y=>{y.preventDefault(),y.stopPropagation(),a.current.toggleColumnMenu(r.field)},[a,r.field]);return D.jsx("div",{className:p.root,children:D.jsx(c.slots.baseTooltip,S({title:a.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(t=c.slotProps)==null?void 0:t.baseTooltip,{children:D.jsx(c.slots.baseIconButton,S({ref:l,tabIndex:-1,className:p.button,"aria-label":a.current.getLocaleText("columnMenuLabel"),size:"small",onClick:h,"aria-haspopup":"menu","aria-expanded":o,"aria-controls":o?s:void 0,id:i},(n=c.slotProps)==null?void 0:n.baseIconButton,{children:D.jsx(c.slots.columnMenuIcon,{fontSize:"small"})}))}))})});function mye({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:s,target:i,onExited:l}){const a=Ht(),c=a.current.getColumn(o),f=qe(p=>{p&&(p.stopPropagation(),i!=null&&i.contains(p.target))||a.current.hideColumnMenu()});return!i||!c?null:D.jsx(U3,{placement:`bottom-${c.align==="right"?"start":"end"}`,open:s,target:i,onClose:f,onExited:l,children:D.jsx(n,S({colDef:c,hideMenu:f,open:s,id:e,labelledby:t},r))})}const gye=["className"],vye=e=>{const{classes:t}=e;return _e({root:["columnHeaderTitle"]},Ut,t)},yye=Ir("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),bye=u.forwardRef(function(t,n){const{className:r}=t,o=le(t,gye),s=dt(),i=vye(s);return D.jsx(yye,S({ref:n,className:be(i.root,r),ownerState:s},o))});function wye(e){var t;const{label:n,description:r}=e,o=dt(),s=u.useRef(null),[i,l]=u.useState(""),a=u.useCallback(()=>{if(!r&&s!=null&&s.current){const c=Kge(s.current);l(c?n:"")}},[r,n]);return D.jsx(o.slots.baseTooltip,S({title:r||i},(t=o.slotProps)==null?void 0:t.baseTooltip,{children:D.jsx(bye,{onMouseOver:a,ref:s,children:n})}))}const Cye=["resizable","resizing","height","side"];var G3=function(e){return e.Left="left",e.Right="right",e}(G3||{});const xye=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,s={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${Se(o)}`],icon:["iconSeparator"]};return _e(s,Ut,r)};function Sye(e){const{height:t,side:n=G3.Right}=e,r=le(e,Cye),o=dt(),s=S({},e,{side:n,classes:o.classes}),i=xye(s),l=u.useCallback(a=>{a.preventDefault(),a.stopPropagation()},[]);return D.jsx("div",S({className:i.root,style:{minHeight:t,opacity:o.showColumnVerticalBorder?0:1}},r,{onClick:l,children:D.jsx(o.slots.columnResizeIcon,{className:i.icon})}))}const Pye=u.memo(Sye),Eye=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps"],K3=u.forwardRef(function(t,n){const{classes:r,columnMenuOpen:o,colIndex:s,height:i,isResizing:l,sortDirection:a,hasFocus:c,tabIndex:f,separatorSide:p,isDraggable:h,headerComponent:y,description:v,width:m,columnMenuIconButton:C=null,columnMenu:w=null,columnTitleIconButtons:b=null,headerClassName:x,label:P,resizable:k,draggableContainerProps:E,columnHeaderSeparatorProps:I}=t,R=le(t,Eye),O=Ga(),$=dt(),L=u.useRef(null),[j,N]=u.useState(o),_=Et(L,n);let T="none";return a!=null&&(T=a==="asc"?"ascending":"descending"),u.useEffect(()=>{j||N(o)},[j,o]),u.useLayoutEffect(()=>{const B=O.current.state.columnMenu;if(c&&!B.open){const A=L.current.querySelector('[tabindex="0"]')||L.current;A==null||A.focus(),O.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[O,c]),D.jsxs("div",S({ref:_,className:be(r.root,x),style:{height:i,width:m,minWidth:m,maxWidth:m},role:"columnheader",tabIndex:f,"aria-colindex":s+1,"aria-sort":T,"aria-label":y==null?P:void 0},R,{children:[D.jsxs("div",S({className:r.draggableContainer,draggable:h,role:"presentation"},E,{children:[D.jsxs("div",{className:r.titleContainer,role:"presentation",children:[D.jsx("div",{className:r.titleContainerContent,children:y!==void 0?y:D.jsx(wye,{label:P,description:v,columnWidth:m})}),b]}),C]})),D.jsx(Pye,S({resizable:!$.disableColumnResize&&!!k,resizing:l,height:i,side:p},I)),w]}))}),kye=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:s,filterItemsCounter:i}=e,l=o!=null,a=i!=null&&i>0,c=t.type==="number",f={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",l&&"columnHeader--sorted",a&&"columnHeader--filtered",c&&"columnHeader--numeric","withBorderColor",s&&"columnHeader--withRightBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return _e(f,Ut,n)};function Iye(e){var t,n,r,o;const{colDef:s,columnMenuOpen:i,colIndex:l,headerHeight:a,isResizing:c,sortDirection:f,sortIndex:p,filterItemsCounter:h,hasFocus:y,tabIndex:v,disableReorder:m,separatorSide:C}=e,w=Ga(),b=dt(),x=u.useRef(null),P=Yt(),k=Yt(),E=u.useRef(null),[I,R]=u.useState(i),O=u.useMemo(()=>!b.disableColumnReorder&&!m&&!s.disableReorder,[b.disableColumnReorder,m,s.disableReorder]);let $;s.renderHeader&&($=s.renderHeader(w.current.getColumnHeaderParams(s.field)));const L=S({},e,{classes:b.classes,showRightBorder:b.showColumnVerticalBorder}),j=kye(L),N=u.useCallback(Q=>X=>{um(X)||w.current.publishEvent(Q,w.current.getColumnHeaderParams(s.field),X)},[w,s.field]),_=u.useMemo(()=>({onClick:N("columnHeaderClick"),onDoubleClick:N("columnHeaderDoubleClick"),onMouseOver:N("columnHeaderOver"),onMouseOut:N("columnHeaderOut"),onMouseEnter:N("columnHeaderEnter"),onMouseLeave:N("columnHeaderLeave"),onKeyDown:N("columnHeaderKeyDown"),onFocus:N("columnHeaderFocus"),onBlur:N("columnHeaderBlur")}),[N]),T=u.useMemo(()=>O?{onDragStart:N("columnHeaderDragStart"),onDragEnter:N("columnHeaderDragEnter"),onDragOver:N("columnHeaderDragOver"),onDragEnd:N("columnHeaderDragEnd")}:{},[O,N]),B=u.useMemo(()=>({onMouseDown:N("columnSeparatorMouseDown"),onDoubleClick:N("columnSeparatorDoubleClick")}),[N]);u.useEffect(()=>{I||R(i)},[I,i]);const V=u.useCallback(()=>{R(!1)},[]),A=!b.disableColumnMenu&&!s.disableColumnMenu&&D.jsx(hye,{colDef:s,columnMenuId:P,columnMenuButtonId:k,open:I,iconButtonRef:E}),F=D.jsx(mye,{columnMenuId:P,columnMenuButtonId:k,field:s.field,open:i,target:E.current,ContentComponent:b.slots.columnMenu,contentComponentProps:(t=b.slotProps)==null?void 0:t.columnMenu,onExited:V}),H=(n=s.sortingOrder)!=null?n:b.sortingOrder,K=D.jsxs(u.Fragment,{children:[!b.disableColumnFilter&&D.jsx(b.slots.columnHeaderFilterIconButton,S({field:s.field,counter:h},(r=b.slotProps)==null?void 0:r.columnHeaderFilterIconButton)),s.sortable&&!s.hideSortIcons&&D.jsx(fye,{direction:f,index:p,sortingOrder:H})]});u.useLayoutEffect(()=>{const Q=w.current.state.columnMenu;if(y&&!Q.open){const ee=x.current.querySelector('[tabindex="0"]')||x.current;ee==null||ee.focus(),w.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[w,y]);const Y=typeof s.headerClassName=="function"?s.headerClassName({field:s.field,colDef:s}):s.headerClassName,J=(o=s.headerName)!=null?o:s.field;return D.jsx(K3,S({ref:x,classes:j,columnMenuOpen:i,colIndex:l,height:a,isResizing:c,sortDirection:f,hasFocus:y,tabIndex:v,separatorSide:C,isDraggable:O,headerComponent:$,description:s.description,elementId:s.field,width:s.computedWidth,columnMenuIconButton:A,columnTitleIconButtons:K,headerClassName:Y,label:J,resizable:!b.disableColumnResize&&!!s.resizable,"data-field":s.field,columnMenu:F,draggableContainerProps:T,columnHeaderSeparatorProps:B},_))}const Ih=()=>({items:[],logicOperator:Eo.And,quickFilterValues:[],quickFilterLogicOperator:Eo.And}),KO=1e3;let Mye=class{constructor(t=KO){this.timeouts=new Map,this.cleanupTimeout=KO,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}},_ye=class{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}};var Vi=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e}(Vi||{});let Tye=class{};function $ye(e){let t=0;return function(r,o,s,i){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new _ye:new Mye);const[l]=u.useState(new Tye),a=u.useRef(null),c=u.useRef();c.current=s;const f=u.useRef(null);if(!a.current&&c.current){const p=(h,y,v)=>{if(!y.defaultMuiPrevented){var m;(m=c.current)==null||m.call(c,h,y,v)}};a.current=r.current.subscribeEvent(o,p,i),t+=1,f.current={cleanupToken:t},e.registry.register(l,()=>{var h;(h=a.current)==null||h.call(a),a.current=null,f.current=null},f.current)}else!c.current&&a.current&&(a.current(),a.current=null,f.current&&(e.registry.unregister(f.current),f.current=null));u.useEffect(()=>{if(!a.current&&c.current){const p=(h,y,v)=>{if(!y.defaultMuiPrevented){var m;(m=c.current)==null||m.call(c,h,y,v)}};a.current=r.current.subscribeEvent(o,p,i)}return f.current&&e.registry&&(e.registry.unregister(f.current),f.current=null),()=>{var p;(p=a.current)==null||p.call(a),a.current=null}},[r,o,i])}}const Rye={registry:null},ft=$ye(Rye),Oye={isFirst:!0};function kn(e,t,n){ft(e,t,n,Oye)}function Xr(e,t){const n=u.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}function Dye(e){return typeof e=="number"&&!Number.isNaN(e)}function q3(e){return typeof e=="function"}function QE(e){return typeof e=="object"&&e!==null}function Aye(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}}function Cv(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const zd=(e,t,n)=>Math.max(t,Math.min(n,e));function Mc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const o=e.length;if(o!==t.length)return!1;for(let s=0;s<o;s+=1)if(!Mc(e[s],t[s]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let s=0;s<o.length;s+=1)if(!t.has(o[s][0]))return!1;for(let s=0;s<o.length;s+=1){const i=o[s];if(!Mc(i[1],t.get(i[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let s=0;s<o.length;s+=1)if(!t.has(o[s][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const o=e.length;if(o!==t.length)return!1;for(let s=0;s<o;s+=1)if(e[s]!==t[s])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let o=0;o<r;o+=1)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(let o=0;o<r;o+=1){const s=n[o];if(!Mc(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Lye(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function Fye(e,t,n){const r=Lye(e);return()=>t+(n-t)*r()}function Y3(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const Nye=(e,t,n,r,o)=>{const s=Xr(e,"useNativeEventListener"),[i,l]=u.useState(!1),a=u.useRef(r),c=u.useCallback(f=>a.current&&a.current(f),[]);u.useEffect(()=>{a.current=r},[r]),u.useEffect(()=>{let f;if(q3(t)?f=t():f=t&&t.current?t.current:null,f&&n&&!i){s.debug(`Binding native ${n} event`),f.addEventListener(n,c,o);const p=f;l(!0);const h=()=>{s.debug(`Clearing native ${n} event`),p.removeEventListener(n,c,o)};e.current.subscribeEvent("unmount",h)}},[t,c,n,i,s,o,e])},dm=e=>{const t=u.useRef(!0);t.current&&(t.current=!1,e())},Bye=100,jye=e=>e?0:100,Q3=(e,t)=>t>0&&e>0?Math.ceil(e/t):0;Xi(["MUI: the 'rowCount' prop is undefined while using paginationMode='server'","For more detail, see http://mui.com/components/data-grid/pagination/#basic-implementation"],"error");const X3=e=>({page:0,pageSize:e?0:100}),zye=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),Z3=(e,t)=>{if(t===Vi.DataGrid&&e>Bye)throw new Error(["MUI: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
592
+ `))},J3=e=>e.pagination,Ms=_t(J3,e=>e.paginationModel),Vye=_t(Ms,e=>e.page),Hye=_t(Ms,e=>e.pageSize);_t(Ms,L0,(e,t)=>Q3(t,e.pageSize));const XE=_n(Ms,si,A0,Ka,$3,(e,t,n,r,o)=>{const s=o.length,i=Math.min(e.pageSize*e.page,s-1),l=Math.min(i+e.pageSize-1,s-1);if(i===-1||l===-1)return null;if(n<2)return{firstRowIndex:i,lastRowIndex:l};const a=o[i],c=l-i+1,f=r.findIndex(v=>v.id===a.id);let p=f,h=0;for(;p<r.length&&h<=c;){var y;const v=r[p],m=(y=t[v.id])==null?void 0:y.depth;m===void 0?p+=1:((h<c||m>0)&&(p+=1),m===0&&(h+=1))}return{firstRowIndex:f,lastRowIndex:p-1}}),Uye=_n(Ka,XE,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),eB=_n(jp,XE,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),Mh=e=>e.preferencePanel;var Bc=function(e){return e.filters="filters",e.columns="columns",e}(Bc||{});const _h=e=>e.rowsMeta,ks=e=>e.rowSelection,Wye=_t(ks,e=>e.length),Gye=_n(ks,vl,(e,t)=>new Map(e.map(n=>[n,t[n]]))),Dy=_n(ks,e=>e.reduce((t,n)=>(t[n]=n,t),{})),Kye=Xi(["MUI: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),tB=(e,t)=>t&&e.length>1?(Kye(),[e[0]]):e,qO=(e,t)=>n=>S({},n,{sorting:S({},n.sorting,{sortModel:tB(e,t)})}),qye=e=>e==="desc",Yye=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=qye(e.sort)?(...s)=>-1*n.sortComparator(...s):n.sortComparator;return{getSortCellParams:s=>({id:s,field:n.field,rowNode:t.current.getRowNode(s),value:t.current.getCellValue(s,n.field),api:t.current}),comparator:r}},Qye=(e,t,n)=>e.reduce((r,o,s)=>{if(r!==0)return r;const i=t.params[s],l=n.params[s];return r=o.comparator(i.value,l.value,i,l),r},0),Xye=(e,t)=>{const n=e.map(r=>Yye(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(s=>s.getSortCellParams(o.id))})).sort((o,s)=>Qye(n,o,s)).map(o=>o.node.id)},YO=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},ZE=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,Zye=new Intl.Collator,Jye=(e,t)=>{const n=ZE(e,t);return n!==null?n:typeof e=="string"?Zye.compare(e.toString(),t.toString()):e-t},nB=(e,t)=>{const n=ZE(e,t);return n!==null?n:Number(e)-Number(t)},rB=(e,t)=>{const n=ZE(e,t);return n!==null?n:e>t?1:e<t?-1:0},oB=e=>e.headerFiltering,e1e=_t(oB,e=>e.editing),t1e=_t(oB,e=>e.menuOpen),n1e=(e,t)=>{const n={enabled:!t.disableVirtualization,enabledForColumns:!0};return S({},e,{virtualization:n})};function r1e(e,t){const n=s=>{e.current.setState(i=>S({},i,{virtualization:S({},i.virtualization,{enabled:s})}))};Nt(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:s=>{e.current.setState(i=>S({},i,{virtualization:S({},i.virtualization,{enabledForColumns:s})}))}},"public"),u.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization])}const sB=e=>e.virtualization,o1e=_t(sB,e=>e.enabled),iB=_t(sB,e=>e.enabledForColumns),s1e=e=>{const{classes:t}=e;return _e({icon:["filterIcon"]},Ut,t)};function i1e(e){var t,n;const{counter:r,field:o,onClick:s}=e,i=Ht(),l=dt(),a=S({},e,{classes:l.classes}),c=s1e(a),f=st(i,Mh),p=Yt(),h=Yt(),y=u.useCallback(C=>{C.preventDefault(),C.stopPropagation();const{open:w,openedPanelValue:b}=Mh(i.current.state);w&&b===Bc.filters?i.current.hideFilterPanel():i.current.showFilterPanel(void 0,h,p),s&&s(i.current.getColumnHeaderParams(o),C)},[i,o,s,h,p]);if(!r)return null;const v=f.open&&f.labelId===p,m=D.jsx(l.slots.baseIconButton,S({id:p,onClick:y,color:"default","aria-label":i.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":v,"aria-controls":v?h:void 0},(t=l.slotProps)==null?void 0:t.baseIconButton,{children:D.jsx(l.slots.columnFilteredIcon,{className:c.icon,fontSize:"small"})}));return D.jsx(l.slots.baseTooltip,S({title:i.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},(n=l.slotProps)==null?void 0:n.baseTooltip,{children:D.jsxs(W3,{children:[r>1&&D.jsx(O4,{badgeContent:r,color:"default",children:m}),r===1&&m]})}))}const l1e=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],a1e=e=>{const{classes:t}=e;return _e({root:["checkboxInput"]},Ut,t)},c1e=u.forwardRef(function(t,n){var r;const{field:o,id:s,value:i,rowNode:l,hasFocus:a,tabIndex:c}=t,f=le(t,l1e),p=Ht(),h=dt(),y={classes:h.classes},v=a1e(y),m=u.useRef(null),C=u.useRef(null),w=Et(m,n),b=p.current.getCellElement(s,o),x=I=>{const R={value:I.target.checked,id:s};p.current.publishEvent("rowSelectionCheckboxChange",R,I)};u.useLayoutEffect(()=>{c===0&&b&&(b.tabIndex=-1)},[b,c]),u.useEffect(()=>{if(a){var I;const R=(I=m.current)==null?void 0:I.querySelector("input");R==null||R.focus({preventScroll:!0})}else C.current&&C.current.stop({})},[a]);const P=u.useCallback(I=>{V3(I.key)&&I.stopPropagation()},[]);if(l.type==="footer"||l.type==="pinnedRow")return null;const k=p.current.isRowSelectable(s),E=p.current.getLocaleText(i?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return D.jsx(h.slots.baseCheckbox,S({ref:w,tabIndex:c,checked:i,onChange:x,className:v.root,inputProps:{"aria-label":E},onKeyDown:P,disabled:!k,touchRippleRef:C},(r=h.slotProps)==null?void 0:r.baseCheckbox,f))}),u1e=c1e,d1e=["field","colDef"],f1e=e=>{const{classes:t}=e;return _e({root:["checkboxInput"]},Ut,t)},p1e=u.forwardRef(function(t,n){var r;const o=le(t,d1e),[,s]=u.useState(!1),i=Ht(),l=dt(),a={classes:l.classes},c=f1e(a),f=st(i,O3),p=st(i,ks),h=st(i,jp),y=st(i,eB),v=u.useMemo(()=>typeof l.isRowSelectable!="function"?p:p.filter(R=>i.current.getRow(R)?l.isRowSelectable(i.current.getRowParams(R)):!1),[i,l.isRowSelectable,p]),m=u.useMemo(()=>(!l.pagination||!l.checkboxSelectionVisibleOnly?h:y).reduce((O,$)=>(O[$]=!0,O),{}),[l.pagination,l.checkboxSelectionVisibleOnly,y,h]),C=u.useMemo(()=>v.filter(R=>m[R]).length,[v,m]),w=C>0&&C<Object.keys(m).length,b=C>0,x=R=>{const O={value:R.target.checked};i.current.publishEvent("headerSelectionCheckboxChange",O)},P=f!==null&&f.field===t.field?0:-1;u.useLayoutEffect(()=>{const R=i.current.getColumnHeaderElement(t.field);P===0&&R&&(R.tabIndex=-1)},[P,i,t.field]);const k=u.useCallback(R=>{R.key===" "&&i.current.publishEvent("headerSelectionCheckboxChange",{value:!b})},[i,b]),E=u.useCallback(()=>{s(R=>!R)},[]);u.useEffect(()=>i.current.subscribeEvent("rowSelectionChange",E),[i,E]);const I=i.current.getLocaleText(b?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return D.jsx(l.slots.baseCheckbox,S({ref:n,indeterminate:w,checked:b,onChange:x,className:c.root,inputProps:{"aria-label":I},tabIndex:P,onKeyDown:k},(r=l.slotProps)==null?void 0:r.baseCheckbox,o))}),QO=bt(D.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),XO=bt(D.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),ZO=bt(D.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),JO=bt(D.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),h1e=bt(D.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),eD=bt(D.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),m1e=bt(D.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");bt(D.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");bt(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 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const g1e=bt(D.jsx("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon"),v1e=bt(D.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),y1e=bt(D.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),b1e=bt(D.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),w1e=bt(D.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),C1e=bt(D.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),SC=bt(D.jsx("path",{d:"M19 6.41L17.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"}),"Close"),tD=bt(D.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),x1e=bt(D.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),S1e=bt(D.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),nD=bt(D.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),P1e=bt(D.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),E1e=bt(D.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),k1e=bt(D.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),I1e=bt(D.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),M1e=bt(D.jsx("g",{children:D.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),_1e=bt(D.jsx("path",{d:"M19 6.41L17.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");bt(D.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const T1e=bt(D.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),$1e=["hideMenu","colDef","id","labelledby","className","children","open"],R1e=se(of)(()=>({minWidth:248})),O1e=u.forwardRef(function(t,n){const{hideMenu:r,id:o,labelledby:s,className:i,children:l,open:a}=t,c=le(t,$1e),f=u.useCallback(p=>{z3(p.key)&&p.preventDefault(),_ve(p.key)&&r(p)},[r]);return D.jsx(R1e,S({id:o,ref:n,className:be(de.menuList,i),"aria-labelledby":s,onKeyDown:f,autoFocus:a},c,{children:l}))}),D1e=["displayOrder"],A1e=e=>{const t=Ga(),{defaultSlots:n,defaultSlotProps:r,slots:o={},slotProps:s={},hideMenu:i,colDef:l,addDividers:a=!0}=e,c=u.useMemo(()=>S({},n,o),[n,o]),f=u.useMemo(()=>{if(!s||Object.keys(s).length===0)return r;const y=S({},s);return Object.entries(r).forEach(([v,m])=>{y[v]=S({},m,s[v]||{})}),y},[r,s]),p=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),h=u.useMemo(()=>{const y=Object.keys(n);return Object.keys(o).filter(v=>!y.includes(v))},[o,n]);return u.useMemo(()=>{const m=Array.from(new Set([...p,...h])).filter(C=>c[C]!=null).sort((C,w)=>{const b=f[C],x=f[w],P=Number.isFinite(b==null?void 0:b.displayOrder)?b.displayOrder:100,k=Number.isFinite(x==null?void 0:x.displayOrder)?x.displayOrder:100;return P-k});return m.reduce((C,w,b)=>{let x={colDef:l,onClick:i};const P=f[w];if(P){const k=le(P,D1e);x=S({},x,k)}return a&&b!==m.length-1?[...C,[c[w],x],[bh,{}]]:[...C,[c[w],x]]},[])},[a,l,p,i,c,f,h])};function L1e(e){const{colDef:t,onClick:n}=e,r=Ht(),o=dt(),l=Dr(r).filter(c=>c.disableColumnMenu!==!0).length===1,a=u.useCallback(c=>{l||(r.current.setColumnVisibility(t.field,!1),n(c))},[r,t.field,n,l]);return o.disableColumnSelector||t.hideable===!1?null:D.jsxs(Pr,{onClick:a,disabled:l,children:[D.jsx(Cl,{children:D.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),D.jsx(Bi,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function F1e(e){const{onClick:t}=e,n=Ht(),r=dt(),o=u.useCallback(s=>{t(s),n.current.showPreferences(Bc.columns)},[n,t]);return r.disableColumnSelector?null:D.jsxs(Pr,{onClick:o,children:[D.jsx(Cl,{children:D.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),D.jsx(Bi,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function N1e(e){return D.jsxs(u.Fragment,{children:[D.jsx(L1e,S({},e)),D.jsx(F1e,S({},e))]})}function B1e(e){const{colDef:t,onClick:n}=e,r=Ht(),o=dt(),s=u.useCallback(i=>{n(i),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:D.jsxs(Pr,{onClick:s,children:[D.jsx(Cl,{children:D.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),D.jsx(Bi,{children:r.current.getLocaleText("columnMenuFilter")})]})}function j1e(e){var t;const{colDef:n,onClick:r}=e,o=Ht(),s=st(o,Es),i=dt(),l=u.useMemo(()=>{if(!n)return null;const p=s.find(h=>h.field===n.field);return p==null?void 0:p.sort},[n,s]),a=(t=n.sortingOrder)!=null?t:i.sortingOrder,c=u.useCallback(p=>{r(p);const h=p.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n,h===l?null:h)},[o,n,r,l]);if(!n||!n.sortable||!a.some(p=>!!p))return null;const f=p=>{const h=o.current.getLocaleText(p);return typeof h=="function"?h(n):h};return D.jsxs(u.Fragment,{children:[a.includes("asc")&&l!=="asc"?D.jsxs(Pr,{onClick:c,"data-value":"asc",children:[D.jsx(Cl,{children:D.jsx(i.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),D.jsx(Bi,{children:f("columnMenuSortAsc")})]}):null,a.includes("desc")&&l!=="desc"?D.jsxs(Pr,{onClick:c,"data-value":"desc",children:[D.jsx(Cl,{children:D.jsx(i.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),D.jsx(Bi,{children:f("columnMenuSortDesc")})]}):null,a.includes(null)&&l!=null?D.jsxs(Pr,{onClick:c,children:[D.jsx(Cl,{}),D.jsx(Bi,{children:o.current.getLocaleText("columnMenuUnsort")})]}):null]})}const z1e=["defaultSlots","defaultSlotProps","slots","slotProps"],V1e={columnMenuSortItem:j1e,columnMenuFilterItem:B1e,columnMenuColumnsItem:N1e},H1e={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},U1e=u.forwardRef(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:s,slotProps:i}=t,l=le(t,z1e),a=A1e(S({},l,{defaultSlots:r,defaultSlotProps:o,slots:s,slotProps:i}));return D.jsx(O1e,S({ref:n},l,{children:a.map(([c,f],p)=>D.jsx(c,S({},f),p))}))}),W1e=u.forwardRef(function(t,n){return D.jsx(U1e,S({},t,{ref:n,defaultSlots:V1e,defaultSlotProps:H1e}))}),G1e=["className"],K1e=e=>{const{classes:t}=e;return _e({root:["panelContent"]},Ut,t)},q1e=Ir("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function lB(e){const{className:t}=e,n=le(e,G1e),r=dt(),o=K1e(r);return D.jsx(q1e,S({className:be(t,o.root),ownerState:r},n))}const Y1e=["className"],Q1e=e=>{const{classes:t}=e;return _e({root:["panelFooter"]},Ut,t)},X1e=Ir("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function aB(e){const{className:t}=e,n=le(e,Y1e),r=dt(),o=Q1e(r);return D.jsx(X1e,S({className:be(t,o.root),ownerState:r},n))}const Z1e=["className"],J1e=e=>{const{classes:t}=e;return _e({root:["panelHeader"]},Ut,t)},e0e=Ir("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})(({theme:e})=>({padding:e.spacing(1)}));function t0e(e){const{className:t}=e,n=le(e,Z1e),r=dt(),o=J1e(r);return D.jsx(e0e,S({className:be(t,o.root),ownerState:r},n))}const n0e=["className","slotProps"],r0e=e=>{const{classes:t}=e;return _e({root:["panelWrapper"]},Ut,t)},o0e=se("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),s0e=()=>!0,cB=u.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,s=le(t,n0e),i=dt(),l=r0e(i);return D.jsx(M2,S({open:!0,disableEnforceFocus:!0,isEnabled:s0e},o.TrapFocus,{children:D.jsx(o0e,S({ref:n,tabIndex:-1,className:be(r,l.root),ownerState:i},s))}))}),i0e=!1,l0e=["sort","searchPredicate","autoFocusSearchField","disableHideAllButton","disableShowAllButton","getTogglableColumns"],a0e=e=>{const{classes:t}=e;return _e({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},Ut,t)},c0e=se("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),u0e=se("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${Vr.root}`]:{marginRight:e.spacing(.5)}})),d0e=se(xr)({justifyContent:"flex-end"}),rD=new Intl.Collator,f0e=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;function p0e(e){var t,n,r;const o=Ht(),s=u.useRef(null),i=st(o,zi),l=st(o,ci),a=dt(),[c,f]=u.useState(""),p=a0e(a),{sort:h,searchPredicate:y=f0e,autoFocusSearchField:v=!0,disableHideAllButton:m=!1,disableShowAllButton:C=!1,getTogglableColumns:w}=e,b=le(e,l0e),x=u.useMemo(()=>{switch(h){case"asc":return[...i].sort((L,j)=>rD.compare(L.headerName||L.field,j.headerName||j.field));case"desc":return[...i].sort((L,j)=>-rD.compare(L.headerName||L.field,j.headerName||j.field));default:return i}},[i,h]),P=L=>{const{name:j}=L.target;o.current.setColumnVisibility(j,l[j]===!1)},k=u.useCallback(L=>{const j=ci(o),N=S({},j),_=w?w(i):null;return i.forEach(T=>{T.hideable&&(_==null||_.includes(T.field))&&(L?delete N[T.field]:N[T.field]=!1)}),o.current.setColumnVisibilityModel(N)},[o,i,w]),E=u.useCallback(L=>{f(L.target.value)},[]),I=u.useMemo(()=>{const L=w?w(x):null,j=L?x.filter(({field:N})=>L.includes(N)):x;return c?j.filter(N=>y(N,c.toLowerCase())):j},[x,c,y,w]),R=u.useRef(null);u.useEffect(()=>{v?s.current.focus():R.current&&typeof R.current.focus=="function"&&R.current.focus()},[v]);let O=!1;const $=L=>O===!1&&L.hideable!==!1?(O=!0,!0):!1;return D.jsxs(cB,S({},b,{children:[D.jsx(t0e,{children:D.jsx(a.slots.baseTextField,S({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:s,value:c,onChange:E,variant:"standard",fullWidth:!0},(t=a.slotProps)==null?void 0:t.baseTextField))}),D.jsx(lB,{children:D.jsx(c0e,{className:p.root,ownerState:a,children:I.map(L=>{var j;return D.jsxs(u0e,{className:p.columnsPanelRow,ownerState:a,children:[D.jsx(K4,{control:D.jsx(a.slots.baseSwitch,S({disabled:L.hideable===!1,checked:l[L.field]!==!1,onClick:P,name:L.field,size:"small",inputRef:$(L)?R:void 0},(j=a.slotProps)==null?void 0:j.baseSwitch)),label:L.headerName||L.field}),!a.disableColumnReorder&&i0e&&D.jsx(d0e,{draggable:!0,"aria-label":o.current.getLocaleText("columnsPanelDragIconLabel"),title:o.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0,children:D.jsx(a.slots.columnReorderIcon,{})})]},L.field)})})}),C&&m?null:D.jsxs(aB,{children:[m?D.jsx("span",{}):D.jsx(a.slots.baseButton,S({onClick:()=>k(!1)},(n=a.slotProps)==null?void 0:n.baseButton,{disabled:m,children:o.current.getLocaleText("columnsPanelHideAllButton")})),C?null:D.jsx(a.slots.baseButton,S({onClick:()=>k(!0)},(r=a.slotProps)==null?void 0:r.baseButton,{disabled:C,children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const h0e=["children","className","classes"],m0e=Ue("MuiDataGrid",["panel","paper"]),g0e=se(Ua,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),v0e=se(Ws,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex"})),y0e=u.forwardRef((e,t)=>{const{children:n,className:r}=e,o=le(e,h0e),s=Ht(),i=dt(),l=m0e,[a,c]=u.useState(!1),f=u.useCallback(()=>{s.current.hidePreferences()},[s]),p=u.useCallback(m=>{Ry(m.key)&&s.current.hidePreferences()},[s]),h=u.useMemo(()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{c(!0)},effect:()=>()=>{c(!1)}}],[]),[y,v]=u.useState(null);return u.useEffect(()=>{var m;const C=(m=s.current.rootElementRef)==null||(m=m.current)==null?void 0:m.querySelector(`.${de.columnHeaders}`);C&&v(C)},[s]),y?D.jsx(g0e,S({ref:t,placement:"bottom-start",className:be(r,l.panel),ownerState:i,anchorEl:y,modifiers:h},o,{children:D.jsx(m4,{mouseEvent:"onMouseUp",onClickAway:f,children:D.jsx(v0e,{className:l.paper,ownerState:i,elevation:8,onKeyDown:p,children:a&&n})})})):null}),b0e=u.forwardRef(function(t,n){var r,o,s;const i=Ht(),l=st(i,zi),a=dt(),c=st(i,Mh),f=i.current.unstable_applyPipeProcessors("preferencePanel",null,(r=c.openedPanelValue)!=null?r:Bc.filters);return D.jsx(a.slots.panel,S({ref:n,as:a.slots.basePopper,open:l.length>0&&c.open,id:c.panelId,"aria-labelledby":c.labelId},(o=a.slotProps)==null?void 0:o.panel,t,(s=a.slotProps)==null?void 0:s.basePopper,{children:f}))}),w0e=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],C0e=["InputComponentProps"],x0e=e=>{const{classes:t}=e;return _e({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Ut,t)},S0e=se("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),P0e=se("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),E0e=se("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),k0e=se("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),I0e=se("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),M0e=se("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),_0e=e=>{switch(e){case Eo.And:return"filterPanelOperatorAnd";case Eo.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `logicOperator` property in the `GridFilterPanel`.")}},tp=e=>e.headerName||e.field,oD=new Intl.Collator,T0e=u.forwardRef(function(t,n){var r,o,s,i,l,a,c,f,p,h;const{item:y,hasMultipleFilters:v,deleteFilter:m,applyFilterChanges:C,multiFilterOperator:w,showMultiFilterOperators:b,disableMultiFilterOperator:x,applyMultiFilterOperatorChanges:P,focusElementRef:k,logicOperators:E=[Eo.And,Eo.Or],columnsSort:I,filterColumns:R,deleteIconProps:O={},logicOperatorInputProps:$={},operatorInputProps:L={},columnInputProps:j={},valueInputProps:N={}}=t,_=le(t,w0e),T=Ht(),B=st(T,k3),V=st(T,wr),A=Yt(),F=Yt(),H=Yt(),K=Yt(),Y=dt(),J=x0e(Y),Q=u.useRef(null),X=u.useRef(null),ee=v&&E.length>0,oe=((r=Y.slotProps)==null?void 0:r.baseFormControl)||{},pe=(s=(((o=Y.slotProps)==null?void 0:o.baseSelect)||{}).native)!=null?s:!0,ne=((i=Y.slotProps)==null?void 0:i.baseInputLabel)||{},re=((l=Y.slotProps)==null?void 0:l.baseSelectOption)||{},{InputComponentProps:me}=N,ce=le(N,C0e),Ce=u.useMemo(()=>{if(R===void 0||typeof R!="function")return B;const we=R({field:y.field,columns:B,currentFilters:(V==null?void 0:V.items)||[]});return B.filter(xe=>we.includes(xe.field))},[R,V==null?void 0:V.items,B,y.field]),Ee=u.useMemo(()=>{switch(I){case"asc":return Ce.sort((we,xe)=>oD.compare(tp(we),tp(xe)));case"desc":return Ce.sort((we,xe)=>-oD.compare(tp(we),tp(xe)));default:return Ce}},[Ce,I]),fe=y.field?T.current.getColumn(y.field):null,ke=u.useMemo(()=>{var we;return!y.operator||!fe?null:(we=fe.filterOperators)==null?void 0:we.find(xe=>xe.value===y.operator)},[y,fe]),ve=u.useCallback(we=>{const xe=we.target.value,Me=T.current.getColumn(xe);if(Me.field===fe.field)return;const Oe=Me.filterOperators.find(Ke=>Ke.value===y.operator)||Me.filterOperators[0],Be=!Oe.InputComponent||Oe.InputComponent!==(ke==null?void 0:ke.InputComponent)||Me.type!==fe.type;C(S({},y,{field:xe,operator:Oe.value,value:Be?void 0:y.value}))},[T,C,y,fe,ke]),Re=u.useCallback(we=>{const xe=we.target.value,Me=fe==null?void 0:fe.filterOperators.find(Be=>Be.value===xe),Oe=!(Me!=null&&Me.InputComponent)||(Me==null?void 0:Me.InputComponent)!==(ke==null?void 0:ke.InputComponent);C(S({},y,{operator:xe,value:Oe?void 0:y.value}))},[C,y,fe,ke]),ie=u.useCallback(we=>{const xe=we.target.value===Eo.And.toString()?Eo.And:Eo.Or;P(xe)},[P]),ue=()=>{Y.disableMultipleColumnsFiltering?y.value===void 0?m(y):C(S({},y,{value:void 0})):m(y)};return u.useImperativeHandle(k,()=>({focus:()=>{if(ke!=null&&ke.InputComponent){var we;Q==null||(we=Q.current)==null||we.focus()}else X.current.focus()}}),[ke]),D.jsxs(S0e,S({ref:n,className:J.root,"data-id":y.id,ownerState:Y},_,{children:[D.jsx(P0e,S({variant:"standard",as:Y.slots.baseFormControl},oe,O,{className:be(J.deleteIcon,oe.className,O.className),ownerState:Y,children:D.jsx(Y.slots.baseIconButton,S({"aria-label":T.current.getLocaleText("filterPanelDeleteIconLabel"),title:T.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:ue,size:"small"},(a=Y.slotProps)==null?void 0:a.baseIconButton,{children:D.jsx(Y.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),D.jsx(E0e,S({variant:"standard",as:Y.slots.baseFormControl},oe,$,{sx:S({display:ee?"flex":"none",visibility:b?"visible":"hidden"},oe.sx||{},$.sx||{}),className:be(J.logicOperatorInput,oe.className,$.className),ownerState:Y,children:D.jsx(Y.slots.baseSelect,S({inputProps:{"aria-label":T.current.getLocaleText("filterPanelLogicOperator")},value:w,onChange:ie,disabled:!!x||E.length===1,native:pe},(c=Y.slotProps)==null?void 0:c.baseSelect,{children:E.map(we=>u.createElement(Y.slots.baseSelectOption,S({},re,{native:pe,key:we.toString(),value:we.toString()}),T.current.getLocaleText(_0e(we))))}))})),D.jsxs(k0e,S({variant:"standard",as:Y.slots.baseFormControl},oe,j,{className:be(J.columnInput,oe.className,j.className),ownerState:Y,children:[D.jsx(Y.slots.baseInputLabel,S({},ne,{htmlFor:A,id:F,children:T.current.getLocaleText("filterPanelColumns")})),D.jsx(Y.slots.baseSelect,S({labelId:F,id:A,label:T.current.getLocaleText("filterPanelColumns"),value:y.field||"",onChange:ve,native:pe},(f=Y.slotProps)==null?void 0:f.baseSelect,{children:Ee.map(we=>u.createElement(Y.slots.baseSelectOption,S({},re,{native:pe,key:we.field,value:we.field}),tp(we)))}))]})),D.jsxs(I0e,S({variant:"standard",as:Y.slots.baseFormControl},oe,L,{className:be(J.operatorInput,oe.className,L.className),ownerState:Y,children:[D.jsx(Y.slots.baseInputLabel,S({},ne,{htmlFor:H,id:K,children:T.current.getLocaleText("filterPanelOperator")})),D.jsx(Y.slots.baseSelect,S({labelId:K,label:T.current.getLocaleText("filterPanelOperator"),id:H,value:y.operator,onChange:Re,native:pe,inputRef:X},(p=Y.slotProps)==null?void 0:p.baseSelect,{children:fe==null||(h=fe.filterOperators)==null?void 0:h.map(we=>u.createElement(Y.slots.baseSelectOption,S({},re,{native:pe,key:we.value,value:we.value}),we.label||T.current.getLocaleText(`filterOperator${Se(we.value)}`)))}))]})),D.jsx(M0e,S({variant:"standard",as:Y.slots.baseFormControl},oe,ce,{className:be(J.valueInput,oe.className,ce.className),ownerState:Y,children:ke!=null&&ke.InputComponent?D.jsx(ke.InputComponent,S({apiRef:T,item:y,applyValue:C,focusElementRef:Q},ke.InputComponentProps,me)):null}))]}))});class JE{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new JE}start(t,n){this.clear(),this.currentId=setTimeout(n,t)}}function ek(){const e=jE(JE.create).current;return P3(e.disposeEffect),e}const $0e=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps","variant"];function Ri(e){var t,n;const{item:r,applyValue:o,type:s,apiRef:i,focusElementRef:l,tabIndex:a,disabled:c,clearButton:f,InputProps:p,variant:h="standard"}=e,y=le(e,$0e),v=ek(),[m,C]=u.useState((t=r.value)!=null?t:""),[w,b]=u.useState(!1),x=Yt(),P=dt(),k=u.useCallback(E=>{const{value:I}=E.target;C(String(I)),b(!0),v.start(P.filterDebounceMs,()=>{const R=S({},r,{value:I,fromInput:x});o(R),b(!1)})},[x,o,r,P.filterDebounceMs,v]);return u.useEffect(()=>{if(r.fromInput!==x||r.value===void 0){var I;C(String((I=r.value)!=null?I:""))}},[x,r]),D.jsx(P.slots.baseTextField,S({id:x,label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),value:m,onChange:k,variant:h,type:s||"text",InputProps:S({},w||f?{endAdornment:w?D.jsx(P.slots.loadIcon,{fontSize:"small",color:"action"}):f}:{},{disabled:c},p,{inputProps:S({tabIndex:a},p==null?void 0:p.inputProps)}),InputLabelProps:{shrink:!0},inputRef:l},y,(n=P.slotProps)==null?void 0:n.baseTextField))}const R0e=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function Su(e){var t,n;const{item:r,applyValue:o,type:s,apiRef:i,focusElementRef:l,InputProps:a,clearButton:c,tabIndex:f,disabled:p}=e,h=le(e,R0e),y=ek(),[v,m]=u.useState((t=r.value)!=null?t:""),[C,w]=u.useState(!1),b=Yt(),x=dt(),P=u.useCallback(k=>{const E=k.target.value;m(String(E)),w(!0),y.start(x.filterDebounceMs,()=>{o(S({},r,{value:E})),w(!1)})},[o,r,x.filterDebounceMs,y]);return u.useEffect(()=>{var k;const E=(k=r.value)!=null?k:"";m(String(E))},[r.value]),D.jsx(x.slots.baseTextField,S({fullWidth:!0,id:b,label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),value:v,onChange:P,variant:"standard",type:s||"text",InputLabelProps:{shrink:!0},inputRef:l,InputProps:S({},C||c?{endAdornment:C?D.jsx(x.slots.loadIcon,{fontSize:"small",color:"action"}):c}:{},{disabled:p},a,{inputProps:S({max:s==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:f},a==null?void 0:a.inputProps)})},h,(n=x.slotProps)==null?void 0:n.baseTextField))}const O0e=["item","applyValue","type","apiRef","focusElementRef","getOptionLabel","getOptionValue","placeholder","tabIndex","label","variant","isFilterActive","clearButton","InputLabelProps"],D0e=({column:{valueOptions:e,field:t},OptionComponent:n,getOptionLabel:r,getOptionValue:o,isSelectNative:s,baseSelectOptionProps:i})=>(typeof e=="function"?["",...e({field:t})]:["",...e||[]]).map(a=>{const c=o(a),f=r(a);return u.createElement(n,S({},i,{native:s,key:c,value:c}),f)}),A0e=se("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function sD(e){var t,n,r,o,s,i,l,a;const{item:c,applyValue:f,type:p,apiRef:h,focusElementRef:y,getOptionLabel:v,getOptionValue:m,placeholder:C,tabIndex:w,label:b,variant:x="standard",clearButton:P}=e,k=le(e,O0e),[E,I]=u.useState((t=c.value)!=null?t:""),R=Yt(),O=Yt(),$=dt(),L=(n=(r=$.slotProps)==null||(r=r.baseSelect)==null?void 0:r.native)!=null?n:!0;let j=null;if(c.field){const A=h.current.getColumn(c.field);Ic(A)&&(j=A)}const N=m||((o=j)==null?void 0:o.getOptionValue),_=v||((s=j)==null?void 0:s.getOptionLabel),T=u.useMemo(()=>{if(j)return typeof j.valueOptions=="function"?j.valueOptions({field:j.field}):j.valueOptions},[j]),B=u.useCallback(A=>{let F=A.target.value;F=PS(F,T,N),I(String(F)),f(S({},c,{value:F}))},[T,N,f,c]);if(u.useEffect(()=>{var A;let F;if(T!==void 0){if(F=PS(c.value,T,N),F!==c.value){f(S({},c,{value:F}));return}}else F=c.value;F=(A=F)!=null?A:"",I(String(F))},[c,T,f,N]),!Ic(j)||!Ic(j))return null;const V=b!=null?b:h.current.getLocaleText("filterPanelInputLabel");return D.jsxs(A0e,{children:[D.jsxs($.slots.baseFormControl,{children:[D.jsx($.slots.baseInputLabel,S({},(i=$.slotProps)==null?void 0:i.baseInputLabel,{id:O,htmlFor:R,shrink:!0,variant:x,children:V})),D.jsx($.slots.baseSelect,S({id:R,label:V,labelId:O,value:E,onChange:B,variant:x,type:p||"text",inputProps:{tabIndex:w,ref:y,placeholder:C!=null?C:h.current.getLocaleText("filterPanelInputPlaceholder")},native:L,notched:x==="outlined"?!0:void 0},k,(l=$.slotProps)==null?void 0:l.baseSelect,{children:D0e({column:j,OptionComponent:$.slots.baseSelectOption,getOptionLabel:_,getOptionValue:N,isSelectNative:L,baseSelectOptionProps:(a=$.slotProps)==null?void 0:a.baseSelectOption})}))]}),P]})}const L0e=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],F0e=se("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function N0e(e){var t,n,r,o;const{item:s,applyValue:i,apiRef:l,focusElementRef:a,clearButton:c,tabIndex:f,label:p,variant:h="standard"}=e,y=le(e,L0e),[v,m]=u.useState(s.value||""),C=dt(),w=Yt(),b=Yt(),x=((t=C.slotProps)==null?void 0:t.baseSelect)||{},P=(n=x.native)!=null?n:!0,k=((r=C.slotProps)==null?void 0:r.baseSelectOption)||{},E=u.useCallback(R=>{const O=R.target.value;m(O),i(S({},s,{value:O}))},[i,s]);u.useEffect(()=>{m(s.value||"")},[s.value]);const I=p!=null?p:l.current.getLocaleText("filterPanelInputLabel");return D.jsxs(F0e,{children:[D.jsxs(C.slots.baseFormControl,{fullWidth:!0,children:[D.jsx(C.slots.baseInputLabel,S({},(o=C.slotProps)==null?void 0:o.baseInputLabel,{id:w,shrink:!0,variant:h,children:I})),D.jsxs(C.slots.baseSelect,S({labelId:w,id:b,label:I,value:v,onChange:E,variant:h,notched:h==="outlined"?!0:void 0,native:P,displayEmpty:!0,inputProps:{ref:a,tabIndex:f}},y,x,{children:[D.jsx(C.slots.baseSelectOption,S({},k,{native:P,value:"",children:l.current.getLocaleText("filterValueAny")})),D.jsx(C.slots.baseSelectOption,S({},k,{native:P,value:"true",children:l.current.getLocaleText("filterValueTrue")})),D.jsx(C.slots.baseSelectOption,S({},k,{native:P,value:"false",children:l.current.getLocaleText("filterValueFalse")}))]}))]}),c]})}const B0e=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],iD=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),j0e=u.forwardRef(function(t,n){var r,o;const s=Ht(),i=dt(),l=st(s,wr),a=st(s,k3),c=u.useRef(null),f=u.useRef(null),{logicOperators:p=[Eo.And,Eo.Or],columnsSort:h,filterFormProps:y,getColumnForNewFilter:v,disableAddFilterButton:m=!1,disableRemoveAllButton:C=!1}=t,w=le(t,B0e),b=s.current.upsertFilterItem,x=u.useCallback(L=>{s.current.setFilterLogicOperator(L)},[s]),P=u.useCallback(()=>{let L;if(v&&typeof v=="function"){const j=v({currentFilters:(l==null?void 0:l.items)||[],columns:a});if(j===null)return null;L=a.find(({field:N})=>N===j)}else L=a.find(j=>{var N;return(N=j.filterOperators)==null?void 0:N.length});return L?iD(L):null},[l==null?void 0:l.items,a,v]),k=u.useCallback(()=>{if(v===void 0||typeof v!="function")return P();const L=l.items.length?l.items:[P()].filter(Boolean),j=v({currentFilters:L,columns:a});if(j===null)return null;const N=a.find(({field:_})=>_===j);return N?iD(N):null},[l.items,a,v,P]),E=u.useMemo(()=>l.items.length?l.items:(f.current||(f.current=P()),f.current?[f.current]:[]),[l.items,P]),I=E.length>1,R=()=>{const L=k();L&&s.current.upsertFilterItems([...E,L])},O=u.useCallback(L=>{const j=E.length===1;s.current.deleteFilterItem(L),j&&s.current.hideFilterPanel()},[s,E.length]),$=()=>{E.length===1&&E[0].value===void 0&&(s.current.deleteFilterItem(E[0]),s.current.hideFilterPanel()),s.current.setFilterModel(S({},l,{items:[]}))};return u.useEffect(()=>{p.length>0&&l.logicOperator&&!p.includes(l.logicOperator)&&x(p[0])},[p,x,l.logicOperator]),u.useEffect(()=>{E.length>0&&c.current.focus()},[E.length]),D.jsxs(cB,S({ref:n},w,{children:[D.jsx(lB,{children:E.map((L,j)=>D.jsx(T0e,S({item:L,applyFilterChanges:b,deleteFilter:O,hasMultipleFilters:I,showMultiFilterOperators:j>0,multiFilterOperator:l.logicOperator,disableMultiFilterOperator:j!==1,applyMultiFilterOperatorChanges:x,focusElementRef:j===E.length-1?c:null,logicOperators:p,columnsSort:h},y),L.id==null?j:L.id))}),!i.disableMultipleColumnsFiltering&&!(m&&C)?D.jsxs(aB,{children:[m?D.jsx("span",{}):D.jsx(i.slots.baseButton,S({onClick:R,startIcon:D.jsx(i.slots.filterPanelAddIcon,{})},(r=i.slotProps)==null?void 0:r.baseButton,{children:s.current.getLocaleText("filterPanelAddFilter")})),C?null:D.jsx(i.slots.baseButton,S({onClick:$,startIcon:D.jsx(i.slots.filterPanelRemoveAllIcon,{})},(o=i.slotProps)==null?void 0:o.baseButton,{children:s.current.getLocaleText("filterPanelRemoveAll")}))]}):null]}))}),z0e=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function uB(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:s,color:i,error:l,helperText:a,size:c,variant:f}=e,p=le(e,z0e),h={color:i,error:l,helperText:a,size:c,variant:f},[y,v]=u.useState(t.value||[]),m=Yt(),C=dt();u.useEffect(()=>{var b;const x=(b=t.value)!=null?b:[];v(x.map(String))},[t.value]);const w=u.useCallback((b,x)=>{v(x.map(String)),n(S({},t,{value:[...x]}))},[n,t]);return D.jsx(nm,S({multiple:!0,freeSolo:!0,options:[],filterOptions:(b,x)=>{const{inputValue:P}=x;return P==null||P===""?[]:[P]},id:m,value:y,onChange:w,renderTags:(b,x)=>b.map((P,k)=>D.jsx(C.slots.baseChip,S({variant:"outlined",size:"small",label:P},x({index:k})))),renderInput:b=>{var x;return D.jsx(C.slots.baseTextField,S({},b,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:S({},b.InputLabelProps,{shrink:!0}),inputRef:s,type:r||"text"},h,(x=C.slotProps)==null?void 0:x.baseTextField))}},p))}const V0e=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant","getOptionLabel","getOptionValue"],H0e=I4();function U0e(e){var t,n;const{item:r,applyValue:o,apiRef:s,focusElementRef:i,color:l,error:a,helperText:c,size:f,variant:p="standard",getOptionLabel:h,getOptionValue:y}=e,v=le(e,V0e),m={color:l,error:a,helperText:c,size:f,variant:p},C=Yt(),w=dt();let b=null;if(r.field){const $=s.current.getColumn(r.field);Ic($)&&(b=$)}const x=y||((t=b)==null?void 0:t.getOptionValue),P=h||((n=b)==null?void 0:n.getOptionLabel),k=u.useCallback(($,L)=>x($)===x(L),[x]),E=u.useMemo(()=>{var $;return($=b)!=null&&$.valueOptions?typeof b.valueOptions=="function"?b.valueOptions({field:b.field}):b.valueOptions:[]},[b]),I=u.useMemo(()=>E==null?void 0:E.map(x),[E,x]),R=u.useMemo(()=>Array.isArray(r.value)?E!==void 0?r.value.map(L=>I==null?void 0:I.findIndex(j=>j===L)).filter(L=>L>=0).map(L=>E[L]):r.value:[],[r.value,E,I]);u.useEffect(()=>{(!Array.isArray(r.value)||R.length!==r.value.length)&&o(S({},r,{value:R.map(x)}))},[r,R,o,x]);const O=u.useCallback(($,L)=>{o(S({},r,{value:L.map(x)}))},[o,r,x]);return D.jsx(nm,S({multiple:!0,options:E,isOptionEqualToValue:k,filterOptions:H0e,id:C,value:R,onChange:O,getOptionLabel:P,renderTags:($,L)=>$.map((j,N)=>D.jsx(w.slots.baseChip,S({variant:"outlined",size:"small",label:P(j)},L({index:N})))),renderInput:$=>{var L;return D.jsx(w.slots.baseTextField,S({},$,{label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:S({},$.InputLabelProps,{shrink:!0}),inputRef:i,type:"singleSelect"},m,(L=w.slotProps)==null?void 0:L.baseTextField))}},v))}const W0e=["hideMenu","options"],G0e=["hideMenu","options"];function K0e(e){const t=Ht(),{hideMenu:n,options:r}=e,o=le(e,W0e);return D.jsx(Pr,S({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function q0e(e){const t=Ht(),{hideMenu:n,options:r}=e,o=le(e,G0e);return D.jsx(Pr,S({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const Y0e=["className","selectedRowCount"],Q0e=e=>{const{classes:t}=e;return _e({root:["selectedRowCount"]},Ut,t)},X0e=Ir("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,t)=>t.selectedRowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}})),Z0e=u.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,s=le(t,Y0e),i=Ht(),l=dt(),a=Q0e(l),c=i.current.getLocaleText("footerRowSelected")(o);return D.jsx(X0e,S({ref:n,className:be(a.root,r),ownerState:l},s,{children:c}))}),J0e=u.forwardRef(function(t,n){var r,o;const s=Ht(),i=dt(),l=st(s,wge),a=st(s,Wye),c=st(s,L0),f=!i.hideFooterSelectedRowCount&&a>0?D.jsx(Z0e,{selectedRowCount:a}):D.jsx("div",{}),p=!i.hideFooterRowCount&&!i.pagination?D.jsx(i.slots.footerRowCount,S({},(r=i.slotProps)==null?void 0:r.footerRowCount,{rowCount:l,visibleRowCount:c})):null,h=i.pagination&&!i.hideFooterPagination&&i.slots.pagination&&D.jsx(i.slots.pagination,S({},(o=i.slotProps)==null?void 0:o.pagination));return D.jsxs(nye,S({ref:n},t,{children:[f,p,h]}))});function ebe(){var e,t;const n=dt();return D.jsxs(u.Fragment,{children:[D.jsx(n.slots.preferencesPanel,S({},(e=n.slotProps)==null?void 0:e.preferencesPanel)),n.slots.toolbar&&D.jsx(n.slots.toolbar,S({},(t=n.slotProps)==null?void 0:t.toolbar))]})}const tbe=u.forwardRef(function(t,n){return D.jsx(YE,S({ref:n},t,{children:D.jsx(Gi,{})}))}),nbe=u.forwardRef(function(t,n){const o=Ht().current.getLocaleText("noRowsLabel");return D.jsx(YE,S({ref:n},t,{children:o}))}),rbe=se(ude)(({theme:e})=>({[`& .${Pc.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${Pc.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),obe=u.forwardRef(function(t,n){const r=Ht(),o=dt(),s=st(r,Ms),i=st(r,L0),l=u.useMemo(()=>{var y,v;return(y=(v=o.rowCount)!=null?v:i)!=null?y:0},[o.rowCount,i]),a=u.useMemo(()=>Math.floor(l/(s.pageSize||1)),[l,s.pageSize]),c=u.useCallback(y=>{const v=Number(y.target.value);r.current.setPageSize(v)},[r]),f=u.useCallback((y,v)=>{r.current.setPage(v)},[r]),h=(y=>{for(let v=0;v<o.pageSizeOptions.length;v+=1){const m=o.pageSizeOptions[v];if(typeof m=="number"){if(m===y)return!0}else if(m.value===y)return!0}return!1})(s.pageSize)?o.pageSizeOptions:[];return D.jsx(rbe,S({ref:n,component:"div",count:l,page:s.page<=a?s.page:a,rowsPerPageOptions:h,rowsPerPage:s.pageSize,onPageChange:f,onRowsPerPageChange:c},r.current.getLocaleText("MuiTablePagination"),t))}),sbe=["className","rowCount","visibleRowCount"],ibe=e=>{const{classes:t}=e;return _e({root:["rowCount"]},Ut,t)},lbe=Ir("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),abe=u.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:s}=t,i=le(t,sbe),l=Ht(),a=dt(),c=ibe(a);if(o===0)return null;const f=s<o?l.current.getLocaleText("footerTotalVisibleRows")(s,o):o.toLocaleString();return D.jsxs(lbe,S({ref:n,className:be(c.root,r),ownerState:a},i,{children:[l.current.getLocaleText("footerTotalRows")," ",f]}))}),Ay=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=XE(e),n=Uye(e)):(n=Ka(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},Qc=(e,t)=>{const n=Ay(e,t);return u.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},ES={current:null};function fm(e){return e.isInternal=!0,e}function Ly(e){return e!==void 0&&e.isInternal===!0}function cbe(e){return fm((t,n)=>{const r=e(t,n);return r&&(o=>r(o.value,o.row,n,ES.current))})}function pm(e){return e.map(t=>S({},t,{getApplyFilterFn:cbe(t.getApplyFilterFnV7),getApplyFilterFnV7:fm(t.getApplyFilterFnV7)}))}function dB(e){return fm((t,n,r)=>{const o=e(t,n,r);return o&&(s=>o(s.value,s.row,n,r))})}function fB(e){return{current:e.current.getPublicApi()}}let np;function ube(){if(np!==void 0)return np;try{np=new Function("return true")()}catch(e){np=!1}return np}const kS=(e,t)=>{const n=S({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=cf(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},dbe=Xi(["MUI: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),fbe=Xi("MUI: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),pbe=Xi("MUI: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),pB=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(dbe(),o=[e.items[0]]):o=e.items;const s=r&&o.some(l=>l.id==null),i=o.some(l=>l.operator==null);return s&&fbe(),i&&pbe(),i||s?S({},e,{items:o.map(l=>kS(l,n))}):e.items!==o?S({},e,{items:o}):e},lD=(e,t,n)=>r=>S({},r,{filterModel:pB(e,t,n)}),va=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,hB=(e,t)=>{if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){var o;const y=n.valueParser;r=Array.isArray(e.value)?(o=e.value)==null?void 0:o.map(v=>y(v)):y(e.value)}else r=e.value;const{ignoreDiacritics:s}=t.current.rootProps;s&&(r=va(r));const i=S({},e,{value:r}),l=n.filterOperators;if(!(l!=null&&l.length))throw new Error(`MUI: No filter operators found for column '${n.field}'.`);const a=l.find(y=>y.value===i.operator);if(!a)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${i.operator}'.`);const c=!Ly(a.getApplyFilterFn),f=!Ly(a.getApplyFilterFnV7),p=fB(t);if(a.getApplyFilterFnV7&&!(c&&!f)){const y=a.getApplyFilterFnV7(i,n);return typeof y!="function"?null:{v7:!0,item:i,fn:v=>{let m=t.current.getRowValue(v,n);return s&&(m=va(m)),y(m,v,n,p)}}}const h=a.getApplyFilterFn(i,n);return typeof h!="function"?null:{v7:!1,item:i,fn:y=>{const v=t.current.getCellParams(y,i.field);ES.current=p,s&&(v.value=va(v.value));const m=h(v);return ES.current=null,m}}};let aD=1;const hbe=(e,t,n)=>{const{items:r}=e,o=r.map(l=>hB(l,t)).filter(l=>!!l);if(o.length===0)return null;if(n||!ube())return(l,a)=>{const c={};for(let f=0;f<o.length;f+=1){const p=o[f];(!a||a(p.item.field))&&(c[p.item.id]=p.v7?p.fn(l):p.fn(t.current.getRowId(l)))}return c};const s=new Function("getRowId","appliers","row","shouldApplyFilter",`"use strict";
593
+ ${o.map((l,a)=>`const shouldApply${a} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(l.item.field)});`).join(`
594
+ `)}
595
+
596
+ const result$$ = {
597
+ ${o.map((l,a)=>` ${JSON.stringify(String(l.item.id))}: !shouldApply${a}
598
+ ? false
599
+ : ${l.v7?`appliers[${a}].fn(row)`:`appliers[${a}].fn(getRowId(row))`},`).join(`
600
+ `)}
601
+ };
602
+
603
+ return result$$;`.replaceAll("$$",String(aD)));return aD+=1,(l,a)=>s(t.current.getRowId,o,l,a)},mbe=(e,t)=>{var n,r,o;const s=(n=(r=e.quickFilterValues)==null?void 0:r.filter(Boolean))!=null?n:[];if(s.length===0)return null;const l=((o=e.quickFilterExcludeHiddenColumns)!=null?o:!1)?R0(t):xl(t),a=[],{ignoreDiacritics:c}=t.current.rootProps,f=fB(t);return l.forEach(p=>{const h=t.current.getColumn(p),y=h==null?void 0:h.getApplyQuickFilterFn,v=h==null?void 0:h.getApplyQuickFilterFnV7,m=!Ly(y),C=!Ly(v);v&&!(m&&!C)?a.push({column:h,appliers:s.map(w=>{const b=c?va(w):w;return{v7:!0,fn:v(b,h,f)}})}):y&&a.push({column:h,appliers:s.map(w=>{const b=c?va(w):w;return{v7:!1,fn:y(b,h,f)}})})}),function(h,y){const v={},m={};e:for(let w=0;w<s.length;w+=1){const b=s[w];for(let x=0;x<a.length;x+=1){const{column:P,appliers:k}=a[x],{field:E}=P;if(y&&!y(E))continue;const I=k[w];let R=t.current.getRowValue(h,P);if(I.fn!==null)if(I.v7){if(c&&(R=va(R)),I.fn(R,h,P,f)){v[b]=!0;continue e}}else{var C;const O=(C=m[E])!=null?C:t.current.getCellParams(t.current.getRowId(h),E);if(c&&(O.value=va(O.value)),m[E]=O,I.fn(O)){v[b]=!0;continue e}}}v[b]=!1}return v}},gbe=(e,t,n)=>{const r=hbe(e,t,n),o=mbe(e,t);return function(i,l,a){var c,f;a.passingFilterItems=(c=r==null?void 0:r(i,l))!=null?c:null,a.passingQuickFilterValues=(f=o==null?void 0:o(i,l))!=null?f:null}},cD=e=>e!=null,vbe=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>hB(r,t)!==null)),e.cleanedFilterItems),ybe=(e,t,n,r,o)=>{const s=vbe(o,r,n.items),i=e.filter(cD),l=t.filter(cD);if(i.length>0){var a;const f=h=>i.some(y=>y[h.id]);if(((a=n.logicOperator)!=null?a:Ih().logicOperator)===Eo.And){if(!s.every(f))return!1}else if(!s.some(f))return!1}if(l.length>0&&n.quickFilterValues!=null){var c;const f=h=>l.some(y=>y[h]);if(((c=n.quickFilterLogicOperator)!=null?c:Ih().quickFilterLogicOperator)===Eo.And){if(!n.quickFilterValues.every(f))return!1}else if(!n.quickFilterValues.some(f))return!1}return!0},uD=fm(e=>{if(!e)return null;const t=new RegExp(Cv(e),"i");return(n,r,o,s)=>{let i=s.current.getRowFormattedValue(r,o);return s.current.ignoreDiacritics&&(i=va(i)),i!=null?t.test(i.toString()):!1}}),mB=(e=!1)=>pm([{value:"contains",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(Cv(n),"i");return o=>o!=null?r.test(String(o)):!1},InputComponent:Ri},{value:"equals",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?r.compare(n,o.toString())===0:!1},InputComponent:Ri},{value:"startsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${Cv(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Ri},{value:"endsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${Cv(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Ri},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t===""||t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!==""&&t!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(s=>r.compare(s,o.toString()||"")===0):!1},InputComponent:uB}]),hi={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:Jye,type:"string",align:"left",filterOperators:mB(),renderEditCell:Sve,getApplyQuickFilterFn:dB(uD),getApplyQuickFilterFnV7:uD},bbe=()=>pm([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t=e.value==="true";return n=>!!n===t},InputComponent:N0e}]);function wbe({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const Cbe=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},gB=S({},hi,{type:"boolean",align:"center",headerAlign:"center",renderCell:uve,renderEditCell:hve,sortComparator:nB,valueFormatter:wbe,filterOperators:bbe(),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>Cbe(e)}),ra="__check__",ff=S({},gB,{field:ra,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,valueGetter:e=>Dy(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>D.jsx(p1e,S({},e)),renderCell:e=>D.jsx(u1e,S({},e))}),j0="actions",xbe=S({},hi,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:Vve,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0}),tk="__detail_panel_toggle__",io=e=>e.editRows,Sbe=["selected","hovered","rowId","row","index","style","position","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","isLastVisible","focusedCellColumnIndexNotInRange","isNotVisible","focusedCell","tabbableCell","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],Pbe=e=>{const{editable:t,editing:n,selected:r,isLastVisible:o,rowHeight:s,classes:i}=e;return _e({root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--lastVisible",s==="auto"&&"row--dynamicHeight"]},Ut,i)};function Ebe({width:e}){if(!e)return null;const t={width:e};return D.jsx("div",{className:`${de.cell} ${de.withBorderColor}`,style:t})}const kbe=u.forwardRef(function(t,n){const{selected:r,hovered:o,rowId:s,row:i,index:l,style:a,position:c,rowHeight:f,className:p,visibleColumns:h,renderedColumns:y,containerWidth:v,firstColumnToRender:m,isLastVisible:C=!1,focusedCellColumnIndexNotInRange:w,isNotVisible:b,focusedCell:x,onClick:P,onDoubleClick:k,onMouseEnter:E,onMouseLeave:I,onMouseOut:R,onMouseOver:O}=t,$=le(t,Sbe),L=Ht(),j=u.useRef(null),N=dt(),_=Qc(L,N),T=st(L,VE),B=st(L,Es),V=st(L,A0),A=st(L,cm),F=st(L,io),H=Et(j,n),K=l+A+2,Y={selected:r,hovered:o,isLastVisible:C,classes:N.classes,editing:L.current.getRowMode(s)===wn.Edit,editable:N.editMode===qi.Row,rowHeight:f},J=Pbe(Y);u.useLayoutEffect(()=>{f==="auto"&&j.current&&typeof ResizeObserver=="undefined"&&L.current.unstable_storeRowHeightMeasurement(s,j.current.clientHeight,c)},[L,f,s,c]),u.useLayoutEffect(()=>{if(_.range){const Be=L.current.getRowIndexRelativeToVisibleRows(s);Be!=null&&L.current.unstable_setLastMeasuredRowIndex(Be)}const xe=j.current;if(!xe||f!=="auto"||typeof ResizeObserver=="undefined")return;const Oe=new ResizeObserver(Be=>{const[Ke]=Be,Ye=Ke.borderBoxSize&&Ke.borderBoxSize.length>0?Ke.borderBoxSize[0].blockSize:Ke.contentRect.height;L.current.unstable_storeRowHeightMeasurement(s,Ye,c)});return Oe.observe(xe),()=>Oe.disconnect()},[L,_.range,l,f,s,c]);const Q=u.useCallback((xe,Me)=>Oe=>{um(Oe)||L.current.getRow(s)&&(L.current.publishEvent(xe,L.current.getRowParams(s),Oe),Me&&Me(Oe))},[L,s]),X=u.useCallback(xe=>{const Me=qge(xe.target,de.cell),Oe=Me==null?void 0:Me.getAttribute("data-field");if(Oe){if(Oe===ff.field||Oe===tk||Oe==="__reorder__"||L.current.getCellMode(s,Oe)===un.Edit)return;const Be=L.current.getColumn(Oe);if((Be==null?void 0:Be.type)===j0)return}Q("rowClick",P)(xe)},[L,P,Q,s]),{slots:ee,slotProps:oe,disableColumnReorder:Z}=N,pe=ee.cell===SS?SS:ove,ne=N.rowReordering,re=(xe,Me)=>{var Oe,Be;const Ke=Z&&xe.disableReorder||!ne&&!!B.length&&V>1&&Object.keys(F).length>0,Ye=(Oe=(Be=F[s])==null?void 0:Be[xe.field])!=null?Oe:null;let Fe=!1;return w!==void 0&&h[w].field===xe.field&&(Fe=!0),D.jsx(pe,S({column:xe,width:Me.width,rowId:s,height:f,showRightBorder:Me.showRightBorder,align:xe.align||"left",colIndex:Me.indexRelativeToAllColumns,colSpan:Me.colSpan,disableDragEvents:Ke,editCellState:Ye,isNotVisible:Fe},oe==null?void 0:oe.cell),xe.field)},me=st(L,()=>S({},L.current.unstable_getRowInternalSizes(s)),zE);let ce=f;if(ce==="auto"&&me){let xe=0;const Me=Object.entries(me).reduce((Oe,[Be,Ke])=>/^base[A-Z]/.test(Be)?(xe+=1,Ke>Oe?Ke:Oe):Oe,0);Me>0&&xe>1&&(ce=Me)}const Ce=u.useMemo(()=>{if(b)return{opacity:0,width:0,height:0};const xe=S({},a,{maxHeight:f==="auto"?"none":f,minHeight:ce});if(me!=null&&me.spacingTop){const Me=N.rowSpacingType==="border"?"borderTopWidth":"marginTop";xe[Me]=me.spacingTop}if(me!=null&&me.spacingBottom){const Me=N.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let Oe=xe[Me];typeof Oe!="number"&&(Oe=parseInt(Oe||"0",10)),Oe+=me.spacingBottom,xe[Me]=Oe}return xe},[b,f,a,ce,me,N.rowSpacingType]),Ee=L.current.unstable_applyPipeProcessors("rowClassName",[],s);if(typeof N.getRowClassName=="function"){var fe;const xe=l-(((fe=_.range)==null?void 0:fe.firstRowIndex)||0),Me=S({},L.current.getRowParams(s),{isFirstVisible:xe===0,isLastVisible:xe===_.rows.length-1,indexRelativeToCurrentPage:xe});Ee.push(N.getRowClassName(Me))}const ke=Fye(1e4,20,80),ve=L.current.getRowNode(s);if(!ve)return null;const Re=ve.type,ie=[];for(let xe=0;xe<y.length;xe+=1){const Me=y[xe];let Oe=m+xe;w!==void 0&&x&&(h[w].field===Me.field?Oe=w:Oe-=1);const Be=L.current.unstable_getCellColSpanInfo(s,Oe);if(Be&&!Be.spannedByColSpan)if(Re!=="skeletonRow"){const{colSpan:Ke,width:Ye}=Be.cellProps,Fe={width:Ye,colSpan:Ke,showRightBorder:N.showCellVerticalBorder,indexRelativeToAllColumns:Oe};ie.push(re(Me,Fe))}else{const{width:Ke}=Be.cellProps,Ye=Math.round(ke());ie.push(D.jsx(ee.skeletonCell,{width:Ke,contentWidth:Ye,field:Me.field,align:Me.align},Me.field))}}const ue=v-T,we=i?{onClick:X,onDoubleClick:Q("rowDoubleClick",k),onMouseEnter:Q("rowMouseEnter",E),onMouseLeave:Q("rowMouseLeave",I),onMouseOut:Q("rowMouseOut",R),onMouseOver:Q("rowMouseOver",O)}:null;return D.jsxs("div",S({ref:H,"data-id":s,"data-rowindex":l,role:"row",className:be(...Ee,J.root,p,o&&"Mui-hovered"),"aria-rowindex":K,"aria-selected":r,style:Ce},we,$,{children:[ie,ue>0&&D.jsx(Ebe,{width:ue})]}))}),Ibe=B0(kbe);function Mbe({privateApiRef:e,props:t,children:n}){const r=u.useRef(e.current.getPublicApi());return D.jsx(x3.Provider,{value:t,children:D.jsx(S3.Provider,{value:e,children:D.jsx(C3.Provider,{value:r,children:n})})})}const _be=Aye()&&window.localStorage.getItem("DEBUG")!=null,yp=()=>{},Tbe={debug:yp,info:yp,warn:yp,error:yp},dD=["debug","info","warn","error"];function fD(e,t,n=console){const r=dD.indexOf(t);if(r===-1)throw new Error(`MUI: Log level ${t} not recognized.`);return dD.reduce((s,i,l)=>(l>=r?s[i]=(...a)=>{const[c,...f]=a;n[i](`MUI: ${e} - ${c}`,...f)}:s[i]=yp,s),{})}const $be=(e,t)=>{const n=u.useCallback(r=>_be?fD(r,"debug",t.logger):t.logLevel?fD(r,t.logLevel.toString(),t.logger):Tbe,[t.logLevel,t.logger]);Nt(e,{getLogger:n},"private")};class nk{static create(t){return new nk(t)}constructor(t){this.value=void 0,this.listeners=void 0,this.subscribe=n=>(this.listeners.add(n),()=>{this.listeners.delete(n)}),this.getSnapshot=()=>this.value,this.update=n=>{this.value=n,this.listeners.forEach(r=>r(n))},this.value=t,this.listeners=new Set}}let Rbe=class{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),s=Array.from(r.regular.keys());for(let i=o.length-1;i>=0;i-=1){const l=o[i];r.highPriority.has(l)&&l.apply(this,n)}for(let i=0;i<s.length;i+=1){const l=s[i];r.regular.has(l)&&l.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...s){r.removeListener(t,o),n.apply(r,s)})}};const vB=Symbol("mui.api_private"),Obe=e=>e.isPropagationStopped!==void 0;let pD=0;function Dbe(e){var t;const n=(t=e.current)==null?void 0:t[vB];if(n)return n;const r={},o={state:r,store:nk.create(r),instanceId:{id:pD}};return pD+=1,o.getPublicApi=()=>e.current,o.register=(s,i)=>{Object.keys(i).forEach(l=>{const a=i[l],c=o[l];if((c==null?void 0:c.spying)===!0?c.target=a:o[l]=a,s==="public"){const f=e.current,p=f[l];(p==null?void 0:p.spying)===!0?p.target=a:f[l]=a}})},o.register("private",{caches:{},eventManager:new Rbe}),o}function Abe(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[vB]:e.current}}function Lbe(e,t){const n=u.useRef(),r=u.useRef();r.current||(r.current=Dbe(n)),n.current||(n.current=Abe(r));const o=u.useCallback((...i)=>{const[l,a,c={}]=i;if(c.defaultMuiPrevented=!1,Obe(c)&&c.isPropagationStopped())return;const f=t.signature===Vi.DataGridPro?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(l,a,c,f)},[r,t.signature]),s=u.useCallback((i,l,a)=>{r.current.eventManager.on(i,l,a);const c=r.current;return()=>{c.eventManager.removeListener(i,l)}},[r]);return Nt(r,{subscribeEvent:s,publishEvent:o},"public"),u.useImperativeHandle(e,()=>n.current,[n]),u.useEffect(()=>{const i=r.current;return()=>{i.publishEvent("unmount")}},[r]),r}const Fbe=(e,t)=>{const n=u.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})},Nbe=e=>{const t=u.useRef({}),n=u.useRef(!1),r=u.useCallback(f=>{n.current||!f||(n.current=!0,Object.values(f.appliers).forEach(p=>{p()}),n.current=!1)},[]),o=u.useCallback((f,p,h)=>{t.current[f]||(t.current[f]={processors:new Map,appliers:{}});const y=t.current[f];return y.processors.get(p)!==h&&(y.processors.set(p,h),r(y)),()=>{t.current[f].processors.set(p,null)}},[r]),s=u.useCallback((f,p,h)=>(t.current[f]||(t.current[f]={processors:new Map,appliers:{}}),t.current[f].appliers[p]=h,()=>{const y=t.current[f].appliers,v=le(y,[p].map(gh));t.current[f].appliers=v}),[]),i=u.useCallback(f=>{const p=t.current[f];r(p)},[r]),l=u.useCallback((...f)=>{const[p,h,y]=f;return t.current[p]?Array.from(t.current[p].processors.values()).reduce((m,C)=>C?C(m,y):m,h):h},[]),a={registerPipeProcessor:o,registerPipeApplier:s,requestPipeProcessorsApplication:i},c={unstable_applyPipeProcessors:l};Nt(e,a,"private"),Nt(e,c,"public")},vr=(e,t,n)=>{const r=u.useRef(),o=u.useRef(`mui-${Math.round(Math.random()*1e9)}`),s=u.useCallback(()=>{r.current=e.current.registerPipeProcessor(t,o.current,n)},[e,n,t]);dm(()=>{s()});const i=u.useRef(!0);u.useEffect(()=>(i.current?i.current=!1:s(),()=>{r.current&&(r.current(),r.current=null)}),[s])},rk=(e,t,n)=>{const r=u.useRef(),o=u.useRef(`mui-${Math.round(Math.random()*1e9)}`),s=u.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);dm(()=>{s()});const i=u.useRef(!0);u.useEffect(()=>(i.current?i.current=!1:s(),()=>{r.current&&(r.current(),r.current=null)}),[s])},Fy=(e,t,n,r)=>{const o=u.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);dm(()=>{o()});const s=u.useRef(!0);u.useEffect(()=>{s.current?s.current=!1:o()},[o])},jc="none",hD={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},Bbe=e=>{const t=u.useRef(new Map),n=u.useRef({}),r=u.useCallback((a,c,f)=>{const p=()=>{const v=n.current[c],m=le(v,[a].map(gh));n.current[c]=m};n.current[c]||(n.current[c]={});const h=n.current[c],y=h[a];return h[a]=f,!y||y===f||a===e.current.getActiveStrategy(hD[c])&&e.current.publishEvent("activeStrategyProcessorChange",c),p},[e]),o=u.useCallback((a,c)=>{const f=e.current.getActiveStrategy(hD[a]);if(f==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const p=n.current[a];if(!p||!p[f])throw new Error(`No processor found for processor "${a}" on strategy "${f}"`);const h=p[f];return h(c)},[e]),s=u.useCallback(a=>{var c;const p=Array.from(t.current.entries()).find(([,h])=>h.group!==a?!1:h.isAvailable());return(c=p==null?void 0:p[0])!=null?c:jc},[]),i=u.useCallback((a,c,f)=>{t.current.set(c,{group:a,isAvailable:f}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Nt(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:s,setStrategyAvailability:i},"private")},jbe=(e,t)=>{const n=u.useRef({}),[,r]=u.useState(),o=u.useCallback(f=>{n.current[f.stateId]=f},[]),s=u.useCallback((f,p)=>{let h;if(q3(f)?h=f(e.current.state):h=f,e.current.state===h)return!1;let y=!1;const v=[];if(Object.keys(n.current).forEach(m=>{const C=n.current[m],w=C.stateSelector(e.current.state,e.current.instanceId),b=C.stateSelector(h,e.current.instanceId);b!==w&&(v.push({stateId:C.stateId,hasPropChanged:b!==C.propModel}),C.propModel!==void 0&&b!==C.propModel&&(y=!0))}),v.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${v[0].stateId}, therefore, you're not allowed to update ${v.map(m=>m.stateId).join(", ")} in the same transaction.`);if(y||(e.current.state=h,e.current.publishEvent&&e.current.publishEvent("stateChange",h),e.current.store.update(h)),v.length===1){const{stateId:m,hasPropChanged:C}=v[0],w=n.current[m],b=w.stateSelector(h,e.current.instanceId);if(w.propOnChange&&C){const x=t.signature===Vi.DataGridPro?{api:e.current,reason:p}:{reason:p};w.propOnChange(b,x)}y||e.current.publishEvent(w.changeEvent,b,{reason:p})}return!y},[e,t.signature]),i=u.useCallback((f,p,h)=>e.current.setState(y=>S({},y,{[f]:p(y[f])}),h),[e]),l=u.useCallback(()=>r(()=>e.current.state),[e]),a={setState:s,forceUpdate:l},c={updateControlState:i,registerControlState:o};Nt(e,a,"public"),Nt(e,c,"private")},zbe=(e,t)=>{const n=Lbe(e,t);return $be(n,t),jbe(n,t),Nbe(n),Bbe(n),Fbe(n,t),n.current.register("private",{rootProps:t}),n},Co=(e,t,n)=>{const r=u.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)},Vbe=/(\d+)-(\d+)-(\d+)/,Hbe=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function Pu(e,t,n,r){if(!e.value)return null;const[o,s,i,l,a]=e.value.match(n?Hbe:Vbe).slice(1).map(Number),c=new Date(o,s-1,i,l||0,a||0).getTime();return f=>{if(!f)return!1;if(r)return t(f.getTime(),c);const h=new Date(f).setHours(n?f.getHours():0,n?f.getMinutes():0,0,0);return t(h,c)}}const yB=e=>pm([{value:"is",getApplyFilterFnV7:t=>Pu(t,(n,r)=>n===r,e),InputComponent:Su,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFnV7:t=>Pu(t,(n,r)=>n!==r,e),InputComponent:Su,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFnV7:t=>Pu(t,(n,r)=>n>r,e),InputComponent:Su,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFnV7:t=>Pu(t,(n,r)=>n>=r,e),InputComponent:Su,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFnV7:t=>Pu(t,(n,r)=>n<r,e,!e),InputComponent:Su,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFnV7:t=>Pu(t,(n,r)=>n<=r,e),InputComponent:Su,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!=null,requiresFilterValue:!1}]);function bB({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${r}".`].join(`
604
+ `))}function Ube({value:e,field:t,id:n}){return e?(bB({value:e,columnType:"date",rowId:n,field:t}),e.toLocaleDateString()):""}function Wbe({value:e,field:t,id:n}){return e?(bB({value:e,columnType:"dateTime",rowId:n,field:t}),e.toLocaleString()):""}const Gbe=S({},hi,{type:"date",sortComparator:rB,valueFormatter:Ube,filterOperators:yB(),renderEditCell:j3,pastedValueParser:e=>new Date(e)}),Kbe=S({},hi,{type:"dateTime",sortComparator:rB,valueFormatter:Wbe,filterOperators:yB(!0),renderEditCell:j3,pastedValueParser:e=>new Date(e)}),aa=e=>e==null?null:Number(e),mD=fm(e=>e==null||Number.isNaN(e)||e===""?null:t=>aa(t)===aa(e)),qbe=()=>pm([{value:"=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>aa(t)===e.value,InputComponent:Ri,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>aa(t)!==e.value,InputComponent:Ri,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:aa(t)>e.value,InputComponent:Ri,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:aa(t)>=e.value,InputComponent:Ri,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:aa(t)<e.value,InputComponent:Ri,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:aa(t)<=e.value,InputComponent:Ri,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFnV7:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:uB,InputComponentProps:{type:"number"}}]),Ybe=S({},hi,{type:"number",align:"right",headerAlign:"right",sortComparator:nB,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>Dye(e)?e.toLocaleString():e||"",filterOperators:qbe(),getApplyQuickFilterFn:dB(mD),getApplyQuickFilterFnV7:mD}),Eu=e=>e==null||!QE(e)?e:e.value,Qbe=()=>pm([{value:"is",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>Eu(t)===Eu(e.value),InputComponent:sD},{value:"not",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>Eu(t)!==Eu(e.value),InputComponent:sD},{value:"isAnyOf",getApplyFilterFnV7:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(Eu);return n=>t.includes(Eu(n))},InputComponent:U0e}]),Xbe=e=>typeof e[0]=="object",Zbe=e=>QE(e)?e.value:e,Jbe=e=>QE(e)?e.label:String(e),ewe=S({},hi,{type:"singleSelect",getOptionLabel:Jbe,getOptionValue:Zbe,valueFormatter(e){const{id:t,field:n,value:r,api:o}=e,s=e.api.getColumn(n);if(!Ic(s))return"";let i;if(typeof s.valueOptions=="function"?i=s.valueOptions({id:t,row:t?o.getRow(t):null,field:n}):i=s.valueOptions,r==null)return"";if(!i)return r;if(!Xbe(i))return s.getOptionLabel(r);const l=i.find(a=>s.getOptionValue(a)===r);return l?s.getOptionLabel(l):""},renderEditCell:Dve,filterOperators:Qbe(),pastedValueParser:(e,t)=>{const n=t.colDef,r=n.valueOptions,o=typeof r=="function"?r({field:n.field}):r||[],s=n.getOptionValue;if(o.find(l=>s(l)===e))return e}}),wB="__default__",twe=()=>({string:hi,number:Ybe,date:Gbe,dateTime:Kbe,boolean:gB,singleSelect:ewe,[j0]:xbe,[wB]:hi});function IS(e,t,n){return typeof e=="string"&&[t,`
605
+ `,"\r",'"'].some(r=>e.includes(r))?n?`"${e.replace(/"/g,'""')}"`:`${e.replace(/"/g,'""')}`:e}const CB=(e,t)=>{const{delimiterCharacter:n,ignoreValueFormatter:r,shouldAppendQuotes:o}=t;let s;if(r){var i;const a=e.colDef.type;if(a==="number")s=String(e.value);else if(a==="date"||a==="dateTime"){var l;s=(l=e.value)==null?void 0:l.toISOString()}else typeof((i=e.value)==null?void 0:i.toString)=="function"?s=e.value.toString():s=e.value}else s=e.formattedValue;return IS(s,n,o)};Xi(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);class MS{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.delimiterCharacter),t==null?this.rowString+="":typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.delimiterCharacter,this.options.shouldAppendQuotes):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const nwe=({id:e,columns:t,getCellParams:n,delimiterCharacter:r,ignoreValueFormatter:o,shouldAppendQuotes:s})=>{const i=new MS({delimiterCharacter:r,shouldAppendQuotes:s});return t.forEach(l=>{const a=n(e,l.field);i.addValue(CB(a,{delimiterCharacter:r,ignoreValueFormatter:o,shouldAppendQuotes:s}))}),i.getRowString()};function rwe(e){const{columns:t,rowIds:n,delimiterCharacter:r,includeHeaders:o,includeColumnGroupsHeaders:s,ignoreValueFormatter:i,apiRef:l,shouldAppendQuotes:a}=e,c=n.reduce((v,m)=>`${v}${nwe({id:m,columns:t,getCellParams:l.current.getCellParams,delimiterCharacter:r,ignoreValueFormatter:i,shouldAppendQuotes:a})}\r
606
+ `,"").trim();if(!o)return c;const f=t.filter(v=>v.field!==ff.field),p=[];if(s){const v=l.current.unstable_getAllGroupDetails();let m=0;const C=f.reduce((w,b)=>{const x=l.current.unstable_getColumnGroupPath(b.field);return w[b.field]=x,m=Math.max(m,x.length),w},{});for(let w=0;w<m;w+=1){const b=new MS({delimiterCharacter:r,sanitizeCellValue:IS,shouldAppendQuotes:a});p.push(b),f.forEach(x=>{const P=(C[x.field]||[])[w],k=v[P];b.addValue(k?k.headerName||k.groupId:"")})}}const h=new MS({delimiterCharacter:r,sanitizeCellValue:IS,shouldAppendQuotes:a});return f.forEach(v=>{h.addValue(v.headerName||v.field)}),p.push(h),`${`${p.map(v=>v.getRowString()).join(`\r
607
+ `)}\r
608
+ `}${c}`.trim()}function gD(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function owe(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{gD(e)}):gD(e)}function swe(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const iwe=(e,t)=>{const n=t.unstable_ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,s=u.useCallback(i=>{if(!((i.ctrlKey||i.metaKey)&&i.key==="c")||swe(i.target))return;let l="";if(e.current.getSelectedRows().size>0)l=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o,shouldAppendQuotes:!1});else{const c=Uo(e);if(c){const f=e.current.getCellParams(c.id,c.field);l=CB(f,{delimiterCharacter:o,ignoreValueFormatter:r,shouldAppendQuotes:!1})}}l=e.current.unstable_applyPipeProcessors("clipboardCopy",l),l&&(owe(l),e.current.publishEvent("clipboardCopy",l))},[e,r,o]);Nye(e,e.current.rootElementRef,"keydown",s),kn(e,"clipboardCopy",t.onClipboardCopy)},lwe=e=>S({},e,{columnMenu:{open:!1}}),awe=e=>{const t=Xr(e,"useGridColumnMenu"),n=u.useCallback(i=>{e.current.setState(a=>a.columnMenu.open&&a.columnMenu.field===i?a:(t.debug("Opening Column Menu"),S({},a,{columnMenu:{open:!0,field:i}})))&&(e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=u.useCallback(()=>{const i=xS(e.current.state);if(i.field){const a=cf(e),c=ci(e),f=xl(e);let p=i.field;if(a[p]||(p=f[0]),c[p]===!1){const h=f.filter(v=>v===p?!0:c[v]!==!1),y=h.indexOf(p);p=h[y+1]||h[y-1]}e.current.setColumnHeaderFocus(p)}e.current.setState(a=>!a.columnMenu.open&&a.columnMenu.field===void 0?a:(t.debug("Hiding Column Menu"),S({},a,{columnMenu:S({},a.columnMenu,{open:!1,field:void 0})})))&&e.current.forceUpdate()},[e,t]),o=u.useCallback(i=>{t.debug("Toggle Column Menu");const l=xS(e.current.state);!l.open||l.field!==i?n(i):r()},[e,t,n,r]);Nt(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),ft(e,"columnResizeStart",r),ft(e,"virtualScrollerWheel",e.current.hideColumnMenu),ft(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},xB=["maxWidth","minWidth","width","flex"];function cwe({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(i=>i.field)),o={all:{},frozenFields:[],freeze:i=>{const l=o.all[i];l&&l.frozen!==!0&&(o.all[i].frozen=!0,o.frozenFields.push(i))}};function s(){if(o.frozenFields.length===r.size)return;const i={min:{},max:{}};let l=e,a=t,c=0;o.frozenFields.forEach(f=>{l-=o.all[f].computedWidth,a-=o.all[f].flex});for(let f=0;f<n.length;f+=1){const p=n[f];if(o.all[p.field]&&o.all[p.field].frozen===!0)continue;let y=l/a*p.flex;y<p.minWidth?(c+=p.minWidth-y,y=p.minWidth,i.min[p.field]=!0):y>p.maxWidth&&(c+=p.maxWidth-y,y=p.maxWidth,i.max[p.field]=!0),o.all[p.field]={frozen:!1,computedWidth:y,flex:p.flex}}c<0?Object.keys(i.max).forEach(f=>{o.freeze(f)}):c>0?Object.keys(i.min).forEach(f=>{o.freeze(f)}):n.forEach(({field:f})=>{o.freeze(f)}),s()}return s(),o.all}const _S=(e,t)=>{const n={};let r=0,o=0;const s=[];e.orderedFields.forEach(l=>{const a=S({},e.lookup[l]);if(e.columnVisibilityModel[l]===!1)a.computedWidth=0;else{let c;a.flex&&a.flex>0?(r+=a.flex,c=0,s.push(a)):c=zd(a.width||hi.width,a.minWidth||hi.minWidth,a.maxWidth||hi.maxWidth),o+=c,a.computedWidth=c}n[l]=a});const i=Math.max(t-o,0);if(r>0&&t>0){const l=cwe({initialFreeSpace:i,totalFlexUnits:r,flexColumns:s});Object.keys(l).forEach(a=>{n[a].computedWidth=l[a].computedWidth})}return S({},e,{lookup:n})},uwe=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const s={},i=[];for(let f=0;f<n.length;f+=1){const p=n[f];e.lookup[p]&&(s[p]=!0,i.push(p))}const l=i.length===0?e.orderedFields:[...i,...e.orderedFields.filter(f=>!s[f])],a=S({},e.lookup);for(let f=0;f<o.length;f+=1){const p=o[f],h=S({},a[p],{hasBeenResized:!0});Object.entries(r[p]).forEach(([y,v])=>{h[y]=v===-1?1/0:v}),a[p]=h}return S({},e,{orderedFields:l,lookup:a})};function vD(e,t){let n=e[wB];return t&&e[t]&&(n=e[t]),n}const Au=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,columnVisibilityModel:o=ci(e),keepOnlyColumnsToUpsert:s=!1})=>{var i,l,a;const c=!e.current.state.columns;let f;if(c)f={orderedFields:[],lookup:{},columnVisibilityModel:o};else{const v=kc(e.current.state);f={orderedFields:s?[]:[...v.orderedFields],lookup:S({},v.lookup),columnVisibilityModel:o}}let p={};s&&!c&&(p=Object.keys(f.lookup).reduce((v,m)=>S({},v,{[m]:!1}),{})),t.forEach(v=>{const{field:m}=v;p[m]=!0;let C=f.lookup[m];C==null?(C=S({},vD(r,v.type),{field:m,hasBeenResized:!1}),f.orderedFields.push(m)):s&&f.orderedFields.push(m),C&&C.type!==v.type&&(C=S({},vD(r,v.type),{field:m}));let w=C.hasBeenResized;xB.forEach(b=>{v[b]!==void 0&&(w=!0,v[b]===-1&&(v[b]=1/0))}),f.lookup[m]=S({},C,v,{hasBeenResized:w})}),s&&!c&&Object.keys(f.lookup).forEach(v=>{p[v]||delete f.lookup[v]});const h=e.current.unstable_applyPipeProcessors("hydrateColumns",f),y=uwe(h,n);return _S(y,(i=(l=(a=e.current).getRootDimensions)==null||(l=l.call(a))==null?void 0:l.viewportInnerSize.width)!=null?i:0)},yD=e=>t=>S({},t,{columns:e});function TS({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let s=e;for(let i=n;i<r;i+=1)if(o[i]){const a=o[i].id,c=t.current.unstable_getCellColSpanInfo(a,e);c&&c.spannedByColSpan&&(s=c.leftVisibleCellIndex)}return s}function dwe({firstColumnIndex:e,minColumnIndex:t,columnBuffer:n,firstRowToRender:r,lastRowToRender:o,apiRef:s,visibleRows:i}){const l=Math.max(e-n,t);return TS({firstColumnToRender:l,apiRef:s,firstRowToRender:r,lastRowToRender:o,visibleRows:i})}function ok(e,t){const n=df(e),r=cm(e);return Math.floor(t*n)*((r!=null?r:0)+1)}const SB=twe(),fwe=(e,t,n)=>{var r,o,s,i;const l=Au({apiRef:n,columnTypes:SB,columnsToUpsert:t.columns,initialState:(r=t.initialState)==null?void 0:r.columns,columnVisibilityModel:(o=(s=t.columnVisibilityModel)!=null?s:(i=t.initialState)==null||(i=i.columns)==null?void 0:i.columnVisibilityModel)!=null?o:{},keepOnlyColumnsToUpsert:!0});return S({},e,{columns:l})};function pwe(e,t){var n,r;const o=Xr(e,"useGridColumns"),s=SB,i=u.useRef(t.columns),l=u.useRef(s);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:ci,changeEvent:"columnVisibilityModelChange"});const a=u.useCallback(_=>{o.debug("Updating columns state."),e.current.setState(yD(_)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",_.orderedFields)},[o,e]),c=u.useCallback(_=>cf(e)[_],[e]),f=u.useCallback(()=>zi(e),[e]),p=u.useCallback(()=>Dr(e),[e]),h=u.useCallback((_,T=!0)=>(T?Dr(e):zi(e)).findIndex(V=>V.field===_),[e]),y=u.useCallback(_=>{const T=h(_);return jd(e)[T]},[e,h]),v=u.useCallback(_=>{ci(e)!==_&&(e.current.setState(B=>S({},B,{columns:Au({apiRef:e,columnTypes:s,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:_,keepOnlyColumnsToUpsert:!1})})),e.current.forceUpdate())},[e,s]),m=u.useCallback(_=>{const T=Au({apiRef:e,columnTypes:s,columnsToUpsert:_,initialState:void 0,keepOnlyColumnsToUpsert:!1});a(T)},[e,a,s]),C=u.useCallback((_,T)=>{var B;const V=ci(e),A=(B=V[_])!=null?B:!0;if(T!==A){const F=S({},V,{[_]:T});e.current.setColumnVisibilityModel(F)}},[e]),w=u.useCallback(_=>xl(e).findIndex(B=>B===_),[e]),b=u.useCallback((_,T)=>{const B=xl(e),V=w(_);if(V===T)return;o.debug(`Moving column ${_} to index ${T}`);const A=[...B],F=A.splice(V,1)[0];A.splice(T,0,F),a(S({},kc(e.current.state),{orderedFields:A}));const H={column:e.current.getColumn(_),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(_),oldIndex:V};e.current.publishEvent("columnIndexChange",H)},[e,o,a,w]),x=u.useCallback((_,T)=>{var B,V;o.debug(`Updating column ${_} width to ${T}`);const A=kc(e.current.state),F=A.lookup[_],H=S({},F,{width:T,hasBeenResized:!0});a(_S(S({},A,{lookup:S({},A.lookup,{[_]:H})}),(B=(V=e.current.getRootDimensions())==null?void 0:V.viewportInnerSize.width)!=null?B:0)),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(_),colDef:H,width:T})},[e,o,a]),P={getColumn:c,getAllColumns:f,getColumnIndex:h,getColumnPosition:y,getVisibleColumns:p,getColumnIndexRelativeToVisibleColumns:w,updateColumns:m,setColumnVisibilityModel:v,setColumnVisibility:C,setColumnWidth:x},k={setColumnIndex:b};Nt(e,P,"public"),Nt(e,k,t.signature===Vi.DataGrid?"private":"public");const E=u.useCallback((_,T)=>{var B,V;const A={},F=ci(e);(!T.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((B=(V=t.initialState)==null||(V=V.columns)==null?void 0:V.columnVisibilityModel)!=null?B:{}).length>0||Object.keys(F).length>0)&&(A.columnVisibilityModel=F),A.orderedFields=xl(e);const K=zi(e),Y={};return K.forEach(J=>{if(J.hasBeenResized){const Q={};xB.forEach(X=>{let ee=J[X];ee===1/0&&(ee=-1),Q[X]=ee}),Y[J.field]=Q}}),Object.keys(Y).length>0&&(A.dimensions=Y),S({},_,{columns:A})},[e,t.columnVisibilityModel,(n=t.initialState)==null?void 0:n.columns]),I=u.useCallback((_,T)=>{var B;const V=(B=T.stateToRestore.columns)==null?void 0:B.columnVisibilityModel,A=T.stateToRestore.columns;if(V==null&&A==null)return _;const F=Au({apiRef:e,columnTypes:s,columnsToUpsert:[],initialState:A,columnVisibilityModel:V,keepOnlyColumnsToUpsert:!1});return e.current.setState(yD(F)),A!=null&&e.current.publishEvent("columnsChange",F.orderedFields),_},[e,s]),R=u.useCallback((_,T)=>{if(T===Bc.columns){var B;const V=t.slots.columnsPanel;return D.jsx(V,S({},(B=t.slotProps)==null?void 0:B.columnsPanel))}return _},[t.slots.columnsPanel,(r=t.slotProps)==null?void 0:r.columnsPanel]),O=u.useCallback(_=>t.disableColumnSelector?_:[..._,"columnMenuColumnsItem"],[t.disableColumnSelector]);vr(e,"columnMenu",O),vr(e,"exportState",E),vr(e,"restoreState",I),vr(e,"preferencePanel",R);const $=u.useRef(null);ft(e,"viewportInnerSizeChange",_=>{$.current!==_.width&&($.current=_.width,a(_S(kc(e.current.state),_.width)))});const j=u.useCallback(()=>{o.info("Columns pipe processing have changed, regenerating the columns");const _=Au({apiRef:e,columnTypes:s,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});a(_)},[e,o,a,s]);rk(e,"hydrateColumns",j);const N=u.useRef(!0);u.useEffect(()=>{if(N.current){N.current=!1;return}if(o.info(`GridColumns have changed, new length ${t.columns.length}`),i.current===t.columns&&l.current===s)return;const _=Au({apiRef:e,columnTypes:s,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});i.current=t.columns,l.current=s,a(_)},[o,e,a,t.columns,s]),u.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,o,t.columnVisibilityModel])}const hwe=.7,mwe=1.3,PB={compact:hwe,comfortable:mwe,standard:1},gwe=(e,t)=>S({},e,{density:{value:t.density,factor:PB[t.density]}}),vwe=(e,t)=>{const n=Xr(e,"useDensity"),r=u.useCallback(s=>{n.debug(`Set grid density to ${s}`),e.current.setState(i=>{const l=GE(i),a={value:s,factor:PB[s]};return Mc(l,a)?i:S({},i,{density:a})}),e.current.forceUpdate()},[n,e]);u.useEffect(()=>{e.current.setDensity(t.density)},[e,t.density]),Nt(e,{setDensity:r},"public")};function ywe(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),s=document.createElement("a");s.href=o,s.download=r,s.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI: exportAs not supported")}const EB=({apiRef:e,options:t})=>{const n=zi(e);return t.fields?t.fields.reduce((o,s)=>{const i=n.find(l=>l.field===s);return i&&o.push(i),o},[]):(t.allColumns?n:Dr(e)).filter(o=>!o.disableExport)},bwe=({apiRef:e})=>{var t,n;const r=Tge(e),o=si(e),s=e.current.getSelectedRows(),i=r.filter(f=>o[f].type!=="footer"),l=uf(e),a=(l==null||(t=l.top)==null?void 0:t.map(f=>f.id))||[],c=(l==null||(n=l.bottom)==null?void 0:n.map(f=>f.id))||[];return i.unshift(...a),i.push(...c),s.size>0?i.filter(f=>s.has(f)):i},wwe=(e,t)=>{const n=Xr(e,"useGridCsvExport"),r=t.unstable_ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,s=u.useCallback((c={})=>{var f,p,h,y;n.debug("Get data as CSV");const v=EB({apiRef:e,options:c}),C=((f=c.getRowsToExport)!=null?f:bwe)({apiRef:e});return rwe({columns:v,rowIds:C,delimiterCharacter:c.delimiter||",",includeHeaders:(p=c.includeHeaders)!=null?p:!0,includeColumnGroupsHeaders:(h=c.includeColumnGroupsHeaders)!=null?h:!0,ignoreValueFormatter:o,apiRef:e,shouldAppendQuotes:(y=c.shouldAppendQuotes)!=null?y:!0})},[n,e,o]),i=u.useCallback(c=>{n.debug("Export data as CSV");const f=s(c),p=new Blob([c!=null&&c.utf8WithBom?new Uint8Array([239,187,191]):"",f],{type:"text/csv"});ywe(p,"csv",c==null?void 0:c.fileName)},[n,s]);Nt(e,{getDataAsCsv:s,exportDataAsCsv:i},"public");const a=u.useCallback((c,f)=>{var p;return(p=f.csvOptions)!=null&&p.disableToolbarButton?c:[...c,{component:D.jsx(K0e,{options:f.csvOptions}),componentName:"csvExport"}]},[]);vr(e,"exportMenu",a)},Cwe=(e,t)=>{var n,r;const o=S({},X3(t.autoPageSize),(n=t.paginationModel)!=null?n:(r=t.initialState)==null||(r=r.pagination)==null?void 0:r.paginationModel);return Z3(o.pageSize,t.signature),S({},e,{pagination:{paginationModel:o}})},xv=(e,t,n)=>r=>{var o;let s=r.paginationModel;const i=(o=n==null?void 0:n.pageSize)!=null?o:s.pageSize,l=Q3(e,i);n&&((n==null?void 0:n.page)!==s.page||(n==null?void 0:n.pageSize)!==s.pageSize)&&(s=n);const a=zye(s.page,l);return a!==s.page&&(s=S({},s,{page:a})),Z3(s.pageSize,t),{paginationModel:s}},xwe=(e,t)=>{var n;const r=Xr(e,"useGridPagination"),o=st(e,L0),s=st(e,df),i=Math.floor(t.rowHeight*s);e.current.registerControlState({stateId:"pagination",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:Ms,changeEvent:"paginationModelChange"});const l=u.useCallback(m=>{const C=Ms(e);m!==C.page&&(r.debug(`Setting page to ${m}`),e.current.setPaginationModel({page:m,pageSize:C.pageSize}))},[e,r]),a=u.useCallback(m=>{const C=Ms(e);m!==C.pageSize&&(r.debug(`Setting page size to ${m}`),e.current.setPaginationModel({pageSize:m,page:C.page}))},[e,r]),c=u.useCallback(m=>{var C;const w=Ms(e);m!==w&&(r.debug("Setting 'paginationModel' to",m),e.current.updateControlState("pagination",xv((C=t.rowCount)!=null?C:o,t.signature,m),"setPaginationModel"),e.current.forceUpdate())},[e,r,t.rowCount,t.signature,o]);Nt(e,{setPage:l,setPageSize:a,setPaginationModel:c},"public");const p=u.useCallback((m,C)=>{var w;const b=Ms(e);return!C.exportOnlyDirtyModels||t.paginationModel!=null||((w=t.initialState)==null||(w=w.pagination)==null?void 0:w.paginationModel)!=null||b.page!==0&&b.pageSize!==jye(t.autoPageSize)?S({},m,{pagination:S({},m.pagination,{paginationModel:b})}):m},[e,t.paginationModel,(n=t.initialState)==null||(n=n.pagination)==null?void 0:n.paginationModel,t.autoPageSize]),h=u.useCallback((m,C)=>{var w,b,x;const P=(w=C.stateToRestore.pagination)!=null&&w.paginationModel?S({},X3(t.autoPageSize),(b=C.stateToRestore.pagination)==null?void 0:b.paginationModel):Ms(e);return e.current.updateControlState("pagination",xv((x=t.rowCount)!=null?x:o,t.signature,P),"stateRestorePreProcessing"),m},[e,t.autoPageSize,t.rowCount,t.signature,o]);vr(e,"exportState",p),vr(e,"restoreState",h);const y=()=>{var m;const C=Ms(e);(m=e.current.virtualScrollerRef)!=null&&m.current&&e.current.scrollToIndexes({rowIndex:C.page*C.pageSize}),e.current.forceUpdate()},v=u.useCallback(()=>{const m=e.current.getRootDimensions();if(!t.autoPageSize||!m)return;const C=L3(e),w=Math.floor((m.viewportInnerSize.height-C.top-C.bottom)/i);e.current.setPageSize(w)},[e,t.autoPageSize,i]);ft(e,"viewportInnerSizeChange",v),ft(e,"paginationModelChange",y),u.useEffect(()=>{},[t.rowCount,t.paginationMode]),u.useEffect(()=>{var m;e.current.updateControlState("pagination",xv((m=t.rowCount)!=null?m:o,t.signature,t.paginationModel))},[e,t.paginationModel,t.rowCount,t.paginationMode,o,t.signature]),u.useEffect(()=>{v()},[v])};function Swe(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function Pwe(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}const Ewe=(e,t)=>{const n=Xr(e,"useGridPrintExport"),r=u.useRef(null),o=u.useRef(null),s=u.useRef({}),i=u.useRef([]);u.useEffect(()=>{r.current=pn(e.current.rootElementRef.current)},[e]);const l=u.useCallback((v,m,C)=>new Promise(w=>{const b=EB({apiRef:e,options:{fields:v,allColumns:m}}).map(k=>k.field),x=zi(e),P={};x.forEach(k=>{P[k.field]=b.includes(k.field)}),C&&(P[ff.field]=!0),e.current.setColumnVisibilityModel(P),w()}),[e]),a=u.useCallback(v=>{const C=v({apiRef:e}).map(w=>e.current.getRow(w));e.current.setRows(C)},[e]),c=u.useCallback((v,m)=>{var C,w;const b=S({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},m),x=v.contentDocument;if(!x)return;const P=_h(e.current.state),k=e.current.rootElementRef.current,E=k.cloneNode(!0),I=E.querySelector(`.${de.main}`);I.style.overflow="visible",E.style.contain="size";const O=E.querySelector(`.${de.columnHeaders}`).querySelector(`.${de.columnHeadersInner}`);O.style.width="100%";let $=((C=k.querySelector(`.${de.toolbarContainer}`))==null?void 0:C.offsetHeight)||0,L=((w=k.querySelector(`.${de.footerContainer}`))==null?void 0:w.offsetHeight)||0;if(b.hideToolbar){var j;(j=E.querySelector(`.${de.toolbarContainer}`))==null||j.remove(),$=0}if(b.hideFooter){var N;(N=E.querySelector(`.${de.footerContainer}`))==null||N.remove(),L=0}const _=P.currentPageTotalHeight+ok(e,t.columnHeaderHeight)+$+L;if(E.style.height=`${_}px`,E.style.boxSizing="content-box",m!=null&&m.getRowsToExport){const A=E.querySelector(`.${de.footerContainer}`);A.style.position="absolute",A.style.width="100%",A.style.top=`${_-L}px`}const T=document.createElement("div");T.appendChild(E),x.body.innerHTML=T.innerHTML;const B=typeof b.pageStyle=="function"?b.pageStyle():b.pageStyle;if(typeof B=="string"){const A=x.createElement("style");A.appendChild(x.createTextNode(B)),x.head.appendChild(A)}b.bodyClassName&&x.body.classList.add(...b.bodyClassName.split(" "));const V=[];if(b.copyStyles){const A=k.getRootNode(),H=(A.constructor.name==="ShadowRoot"?A:r.current).querySelectorAll("style, link[rel='stylesheet']");for(let K=0;K<H.length;K+=1){const Y=H[K];if(Y.tagName==="STYLE"){const J=x.createElement(Y.tagName),Q=Y.sheet;if(Q){let X="";for(let ee=0;ee<Q.cssRules.length;ee+=1)typeof Q.cssRules[ee].cssText=="string"&&(X+=`${Q.cssRules[ee].cssText}\r
609
+ `);J.appendChild(x.createTextNode(X)),x.head.appendChild(J)}}else if(Y.getAttribute("href")){const J=x.createElement(Y.tagName);for(let Q=0;Q<Y.attributes.length;Q+=1){const X=Y.attributes[Q];X&&J.setAttribute(X.nodeName,X.nodeValue||"")}V.push(new Promise(Q=>{J.addEventListener("load",()=>Q())})),x.head.appendChild(J)}}}Promise.all(V).then(()=>{v.contentWindow.print()})},[e,r,t.columnHeaderHeight]),f=u.useCallback(v=>{var m;r.current.body.removeChild(v),e.current.restoreState(o.current||{}),(m=o.current)!=null&&(m=m.columns)!=null&&m.columnVisibilityModel||e.current.setColumnVisibilityModel(s.current),e.current.unstable_setVirtualization(!0),e.current.setRows(i.current),o.current=null,s.current={},i.current=[]},[e]),h={exportDataAsPrint:u.useCallback(v=>ot(void 0,null,function*(){if(n.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");o.current=e.current.exportState(),s.current=ci(e);const m=vl(e);if(i.current=vp(e).map(w=>m[w]),t.pagination){const w=R3(e),b={page:0,pageSize:w};e.current.updateControlState("pagination",xv(w,"DataGridPro",b)),e.current.forceUpdate()}yield l(v==null?void 0:v.fields,v==null?void 0:v.allColumns,v==null?void 0:v.includeCheckboxes),v!=null&&v.getRowsToExport&&a(v.getRowsToExport),e.current.unstable_setVirtualization(!1),yield Swe();const C=Pwe(v==null?void 0:v.fileName);C.onload=()=>{c(C,v),C.contentWindow.matchMedia("print").addEventListener("change",b=>{b.matches===!1&&f(C)})},r.current.body.appendChild(C)}),[t,n,e,c,f,l,a])};Nt(e,h,"public");const y=u.useCallback((v,m)=>{var C;return(C=m.printOptions)!=null&&C.disableToolbarButton?v:[...v,{component:D.jsx(q0e,{options:m.printOptions}),componentName:"printExport"}]},[]);vr(e,"exportMenu",y)},kwe=(e,t,n)=>{var r,o,s;const i=(r=(o=t.filterModel)!=null?o:(s=t.initialState)==null||(s=s.filter)==null?void 0:s.filterModel)!=null?r:Ih();return S({},e,{filter:{filterModel:pB(i,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},Iwe=e=>e.filteredRowsLookup;function bD(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function Mwe(){return $0(Object.values)}const _we=(e,t)=>{var n,r;const o=Xr(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:wr,changeEvent:"filterModelChange"});const s=u.useCallback(()=>{e.current.setState($=>{const L=wr($,e.current.instanceId),j=t.filterMode==="client"?gbe(L,e,t.disableEval):null,N=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:j,filterModel:L!=null?L:Ih()}),_=S({},$,{filter:S({},$.filter,N)}),T=bD(e,_);return S({},_,{visibleRowsLookup:T})}),e.current.publishEvent("filteredRowsSet")},[e,t.filterMode,t.disableEval]),i=u.useCallback(($,L)=>L==null||L.filterable===!1||t.disableColumnFilter?$:[...$,"columnMenuFilterItem"],[t.disableColumnFilter]),l=u.useCallback(()=>{s(),e.current.forceUpdate()},[e,s]),a=u.useCallback($=>{const L=wr(e),j=[...L.items],N=j.findIndex(_=>_.id===$.id);N===-1?j.push($):j[N]=$,e.current.setFilterModel(S({},L,{items:j}),"upsertFilterItem")},[e]),c=u.useCallback($=>{const L=wr(e),j=[...L.items];$.forEach(N=>{const _=$.findIndex(T=>T.id===N.id);_===-1?j.push(N):j[_]=N}),e.current.setFilterModel(S({},L,{items:$}),"upsertFilterItems")},[e]),f=u.useCallback($=>{const L=wr(e),j=L.items.filter(N=>N.id!==$.id);j.length!==L.items.length&&e.current.setFilterModel(S({},L,{items:j}),"deleteFilterItem")},[e]),p=u.useCallback(($,L,j)=>{if(o.debug("Displaying filter panel"),$){const N=wr(e),_=N.items.filter(A=>{var F;if(A.value!==void 0)return!(Array.isArray(A.value)&&A.value.length===0);const K=(F=e.current.getColumn(A.field).filterOperators)==null?void 0:F.find(J=>J.value===A.operator);return!(typeof(K==null?void 0:K.requiresFilterValue)=="undefined"?!0:K==null?void 0:K.requiresFilterValue)});let T;const B=_.find(A=>A.field===$),V=e.current.getColumn($);B?T=_:t.disableMultipleColumnsFiltering?T=[kS({field:$,operator:V.filterOperators[0].value},e)]:T=[..._,kS({field:$,operator:V.filterOperators[0].value},e)],e.current.setFilterModel(S({},N,{items:T}))}e.current.showPreferences(Bc.filters,L,j)},[e,o,t.disableMultipleColumnsFiltering]),h=u.useCallback(()=>{o.debug("Hiding filter panel"),e.current.hidePreferences()},[e,o]),y=u.useCallback($=>{const L=wr(e);L.logicOperator!==$&&e.current.setFilterModel(S({},L,{logicOperator:$}),"changeLogicOperator")},[e]),v=u.useCallback($=>{const L=wr(e);Mc(L.quickFilterValues,$)||e.current.setFilterModel(S({},L,{quickFilterValues:[...$]}))},[e]),m=u.useCallback(($,L)=>{wr(e)!==$&&(o.debug("Setting filter model"),e.current.updateControlState("filter",lD($,t.disableMultipleColumnsFiltering,e),L),e.current.unstable_applyFilters())},[e,o,t.disableMultipleColumnsFiltering]),C={setFilterLogicOperator:y,unstable_applyFilters:l,deleteFilterItem:f,upsertFilterItem:a,upsertFilterItems:c,setFilterModel:m,showFilterPanel:p,hideFilterPanel:h,setQuickFilterValues:v,ignoreDiacritics:t.ignoreDiacritics};Nt(e,C,"public");const w=u.useCallback(($,L)=>{var j;const N=wr(e);return!L.exportOnlyDirtyModels||t.filterModel!=null||((j=t.initialState)==null||(j=j.filter)==null?void 0:j.filterModel)!=null||!Mc(N,Ih())?S({},$,{filter:{filterModel:N}}):$},[e,t.filterModel,(n=t.initialState)==null||(n=n.filter)==null?void 0:n.filterModel]),b=u.useCallback(($,L)=>{var j;const N=(j=L.stateToRestore.filter)==null?void 0:j.filterModel;return N==null?$:(e.current.updateControlState("filter",lD(N,t.disableMultipleColumnsFiltering,e),"restoreState"),S({},$,{callbacks:[...$.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),x=u.useCallback(($,L)=>{if(L===Bc.filters){var j;const N=t.slots.filterPanel;return D.jsx(N,S({},(j=t.slotProps)==null?void 0:j.filterPanel))}return $},[t.slots.filterPanel,(r=t.slotProps)==null?void 0:r.filterPanel]),{getRowId:P}=t,k=jE(Mwe),E=u.useCallback($=>{if(t.filterMode!=="client"||!$.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const L=vl(e),j={},{isRowMatchingFilters:N}=$,_={},T={passingFilterItems:null,passingQuickFilterValues:null},B=k.current(e.current.state.rows.dataRowIdToModelLookup);for(let F=0;F<B.length;F+=1){const H=B[F],K=P?P(H):H.id;N(H,void 0,T);const Y=ybe([T.passingFilterItems],[T.passingQuickFilterValues],$.filterModel,e,_);j[K]=Y}const V="auto-generated-group-footer-root";return L[V]&&(j[V]=!0),{filteredRowsLookup:j,filteredDescendantCountLookup:{}}},[e,t.filterMode,P,k]);vr(e,"columnMenu",i),vr(e,"exportState",w),vr(e,"restoreState",b),vr(e,"preferencePanel",x),Fy(e,jc,"filtering",E),Fy(e,jc,"visibleRowsLookupCreation",Iwe);const I=u.useCallback(()=>{o.debug("onColUpdated - GridColumns changed, applying filters");const $=wr(e),L=gge(e),j=$.items.filter(N=>N.field&&L[N.field]);j.length<$.items.length&&e.current.setFilterModel(S({},$,{items:j}))},[e,o]),R=u.useCallback($=>{$==="filtering"&&e.current.unstable_applyFilters()},[e]),O=u.useCallback(()=>{e.current.setState($=>S({},$,{visibleRowsLookup:bD(e,$)})),e.current.forceUpdate()},[e]);ft(e,"rowsSet",s),ft(e,"columnsChange",I),ft(e,"activeStrategyProcessorChange",R),ft(e,"rowExpansionChange",O),ft(e,"columnVisibilityModelChange",()=>{const $=wr(e);$.quickFilterValues&&$.quickFilterExcludeHiddenColumns&&e.current.unstable_applyFilters()}),dm(()=>{e.current.unstable_applyFilters()}),Ft(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,o,t.filterModel])},Twe=e=>S({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),$we=(e,t)=>{const n=Xr(e,"useGridFocus"),r=u.useRef(null),o=u.useCallback((I,R)=>{I&&e.current.getRow(I.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(I.id,I.field),R)},[e]),s=u.useCallback((I,R)=>{const O=Uo(e);(O==null?void 0:O.id)===I&&(O==null?void 0:O.field)===R||(e.current.setState($=>(n.debug(`Focusing on cell with id=${I} and field=${R}`),S({},$,{tabIndex:{cell:{id:I,field:R},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:I,field:R},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(I)&&(O&&o(O,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(I,R))))},[e,n,o]),i=u.useCallback((I,R={})=>{const O=Uo(e);o(O,R),e.current.setState($=>(n.debug(`Focusing on column header with colIndex=${I}`),S({},$,{tabIndex:{columnHeader:{field:I},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:I},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),l=u.useCallback((I,R={})=>{const O=Uo(e);o(O,R),e.current.setState($=>(n.debug(`Focusing on column header filter with colIndex=${I}`),S({},$,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:I},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:I},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),a=u.useCallback((I,R,O={})=>{const $=Uo(e);$&&e.current.publishEvent("cellFocusOut",e.current.getCellParams($.id,$.field),O),e.current.setState(L=>S({},L,{tabIndex:{columnGroupHeader:{field:I,depth:R},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:I,depth:R},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),c=u.useCallback(()=>My(e),[e]),f=u.useCallback((I,R,O)=>{let $=e.current.getColumnIndex(R);const L=Dr(e),j=Ay(e,{pagination:t.pagination,paginationMode:t.paginationMode}),N=uf(e),_=[].concat(N.top||[],j.rows,N.bottom||[]);let T=_.findIndex(F=>F.id===I);O==="right"?$+=1:O==="left"?$-=1:T+=1,$>=L.length?(T+=1,T<_.length&&($=0)):$<0&&(T-=1,T>=0&&($=L.length-1)),T=zd(T,0,_.length-1);const B=_[T];if(!B)return;const V=e.current.unstable_getCellColSpanInfo(B.id,$);V&&V.spannedByColSpan&&(O==="left"||O==="below"?$=V.leftVisibleCellIndex:O==="right"&&($=V.rightVisibleCellIndex)),$=zd($,0,L.length-1);const A=L[$];e.current.setCellFocus(B.id,A.field)},[e,t.pagination,t.paginationMode]),p=u.useCallback(({id:I,field:R})=>{e.current.setCellFocus(I,R)},[e]),h=u.useCallback((I,R)=>{R.key==="Enter"||R.key==="Tab"||R.key==="Shift"||Oy(R.key)||e.current.setCellFocus(I.id,I.field)},[e]),y=u.useCallback(({field:I},R)=>{R.target===R.currentTarget&&e.current.setColumnHeaderFocus(I,R)},[e]),v=u.useCallback(({fields:I,depth:R},O)=>{if(O.target!==O.currentTarget)return;const $=My(e);$!==null&&$.depth===R&&I.includes($.field)||e.current.setColumnGroupHeaderFocus(I[0],R,O)},[e]),m=u.useCallback((I,R)=>{var O;(O=R.relatedTarget)!=null&&O.className.includes(de.columnHeader)||(n.debug("Clearing focus"),e.current.setState($=>S({},$,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),C=u.useCallback(I=>{r.current=I},[]),w=u.useCallback(I=>{const R=r.current;r.current=null;const O=Uo(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:I,cell:R}))return;if(!O){R&&e.current.setCellFocus(R.id,R.field);return}if((R==null?void 0:R.id)===O.id&&(R==null?void 0:R.field)===O.field)return;const L=e.current.getCellElement(O.id,O.field);L!=null&&L.contains(I.target)||(R?e.current.setCellFocus(R.id,R.field):(e.current.setState(j=>S({},j,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),o(O,I)))},[e,o]),b=u.useCallback(I=>{if(I.cellMode==="view")return;const R=Uo(e);((R==null?void 0:R.id)!==I.id||(R==null?void 0:R.field)!==I.field)&&e.current.setCellFocus(I.id,I.field)},[e]),x=u.useCallback(()=>{const I=Uo(e);I&&!e.current.getRow(I.id)&&e.current.setState(R=>S({},R,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},[e]),P=qe(()=>{const I=Uo(e);if(!I)return;const R=Ay(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(R.rows.find(L=>L.id===I.id))return;const $=Dr(e);e.current.setState(L=>S({},L,{tabIndex:{cell:{id:R.rows[0].id,field:$[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),k={setCellFocus:s,setColumnHeaderFocus:i,setColumnHeaderFilterFocus:l},E={moveFocusToRelativeCell:f,setColumnGroupHeaderFocus:a,getColumnGroupHeaderFocus:c};Nt(e,k,"public"),Nt(e,E,"private"),u.useEffect(()=>{const I=pn(e.current.rootElementRef.current);return I.addEventListener("mouseup",w),()=>{I.removeEventListener("mouseup",w)}},[e,w]),ft(e,"columnHeaderBlur",m),ft(e,"cellDoubleClick",p),ft(e,"cellMouseDown",C),ft(e,"cellKeyDown",h),ft(e,"cellModeChange",b),ft(e,"columnHeaderFocus",y),ft(e,"columnGroupHeaderFocus",v),ft(e,"rowsSet",x),ft(e,"paginationModelChange",P)};function Rwe(e,t){const n=uf(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const PC=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(e<n)return e+1}else if(r==="ltr"&&e>t)return e-1;return null},EC=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(e>t)return e-1}else if(r==="ltr"&&e<n)return e+1;return null},Owe=(e,t)=>{const n=Xr(e,"useGridKeyboardNavigation"),r=Qc(e,t).rows,o=Fn(),s=u.useMemo(()=>Rwe(e,r),[e,r]),i=t.signature!=="DataGrid"&&t.unstable_headerFilters,l=u.useCallback((w,b,x="left")=>{const P=Ka(e),k=e.current.unstable_getCellColSpanInfo(b,w);k&&k.spannedByColSpan&&(x==="left"?w=k.leftVisibleCellIndex:x==="right"&&(w=k.rightVisibleCellIndex));const E=P.findIndex(R=>R.id===b);n.debug(`Navigating to cell row ${E}, col ${w}`),e.current.scrollToIndexes({colIndex:w,rowIndex:E});const I=e.current.getVisibleColumns()[w].field;e.current.setCellFocus(b,I)},[e,n]),a=u.useCallback((w,b)=>{n.debug(`Navigating to header col ${w}`),e.current.scrollToIndexes({colIndex:w});const x=e.current.getVisibleColumns()[w].field;e.current.setColumnHeaderFocus(x,b)},[e,n]),c=u.useCallback((w,b)=>{n.debug(`Navigating to header filter col ${w}`),e.current.scrollToIndexes({colIndex:w});const x=e.current.getVisibleColumns()[w].field;e.current.setColumnHeaderFilterFocus(x,b)},[e,n]),f=u.useCallback((w,b,x)=>{n.debug(`Navigating to header col ${w}`),e.current.scrollToIndexes({colIndex:w});const{field:P}=e.current.getVisibleColumns()[w];e.current.setColumnGroupHeaderFocus(P,b,x)},[e,n]),p=u.useCallback(w=>{var b;return(b=s[w])==null?void 0:b.id},[s]),h=u.useCallback((w,b)=>{const x=b.currentTarget.querySelector(`.${de.columnHeaderTitleContainerContent}`);if(!!x&&x.contains(b.target)&&w.field!==ff.field||!e.current.getRootDimensions())return;const E=e.current.getViewportPageSize(),I=w.field?e.current.getColumnIndex(w.field):0,R=s.length>0?0:null,O=s.length-1,$=0,L=Dr(e).length-1,j=cm(e);let N=!0;switch(b.key){case"ArrowDown":{R!==null&&(i?c(I,b):l(I,p(R)));break}case"ArrowRight":{const _=EC({currentColIndex:I,firstColIndex:$,lastColIndex:L,direction:o.direction});_!==null&&a(_,b);break}case"ArrowLeft":{const _=PC({currentColIndex:I,firstColIndex:$,lastColIndex:L,direction:o.direction});_!==null&&a(_,b);break}case"ArrowUp":{j>0&&f(I,j-1,b);break}case"PageDown":{R!==null&&O!==null&&l(I,p(Math.min(R+E,O)));break}case"Home":{a($,b);break}case"End":{a(L,b);break}case"Enter":{(b.ctrlKey||b.metaKey)&&e.current.toggleColumnMenu(w.field);break}case" ":break;default:N=!1}N&&b.preventDefault()},[e,s.length,i,c,l,p,o.direction,a,f]),y=u.useCallback((w,b)=>{if(!e.current.getRootDimensions())return;const P=e1e(e)===w.field,k=t1e(e)===w.field;if(P||k||!Oy(b.key))return;const E=e.current.getViewportPageSize(),I=w.field?e.current.getColumnIndex(w.field):0,R=0,O=s.length-1,$=0,L=Dr(e).length-1;let j=!0;switch(b.key){case"ArrowDown":{const N=p(R);N!=null&&l(I,N);break}case"ArrowRight":{const N=EC({currentColIndex:I,firstColIndex:$,lastColIndex:L,direction:o.direction});N!==null&&c(N,b);break}case"ArrowLeft":{const N=PC({currentColIndex:I,firstColIndex:$,lastColIndex:L,direction:o.direction});N!==null?c(N,b):e.current.setColumnHeaderFilterFocus(w.field,b);break}case"ArrowUp":{a(I,b);break}case"PageDown":{O!==null&&l(I,p(Math.min(R+E,O)));break}case"Home":{c($,b);break}case"End":{c(L,b);break}case" ":break;default:j=!1}j&&b.preventDefault()},[e,s.length,c,o.direction,a,l,p]),v=u.useCallback((w,b)=>{if(!e.current.getRootDimensions())return;const P=My(e);if(P===null)return;const{field:k,depth:E}=P,{fields:I,depth:R,maxDepth:O}=w,$=e.current.getViewportPageSize(),L=e.current.getColumnIndex(k),j=k?e.current.getColumnIndex(k):0,N=0,_=s.length-1,T=0,B=Dr(e).length-1;let V=!0;switch(b.key){case"ArrowDown":{R===O-1?a(L,b):f(L,E+1,b);break}case"ArrowUp":{R>0&&f(L,E-1,b);break}case"ArrowRight":{const A=I.length-I.indexOf(k)-1;L+A+1<=B&&f(L+A+1,E,b);break}case"ArrowLeft":{const A=I.indexOf(k);L-A-1>=T&&f(L-A-1,E,b);break}case"PageDown":{_!==null&&l(j,p(Math.min(N+$,_)));break}case"Home":{f(T,E,b);break}case"End":{f(B,E,b);break}case" ":break;default:V=!1}V&&b.preventDefault()},[e,s.length,a,f,l,p]),m=u.useCallback((w,b)=>{if(um(b))return;const x=e.current.getCellParams(w.id,w.field);if(x.cellMode===un.Edit||!Oy(b.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:b,cell:x}))return;const k=e.current.getRootDimensions();if(s.length===0||!k)return;const E=o.direction,I=e.current.getViewportPageSize(),R=w.field?e.current.getColumnIndex(w.field):0,O=s.findIndex(T=>T.id===w.id),$=0,L=s.length-1,j=0,N=Dr(e).length-1;let _=!0;switch(b.key){case"ArrowDown":{O<L&&l(R,p(O+1));break}case"ArrowUp":{O>$?l(R,p(O-1)):i?c(R,b):a(R,b);break}case"ArrowRight":{const T=EC({currentColIndex:R,firstColIndex:j,lastColIndex:N,direction:E});T!==null&&l(T,p(O),E==="rtl"?"left":"right");break}case"ArrowLeft":{const T=PC({currentColIndex:R,firstColIndex:j,lastColIndex:N,direction:E});T!==null&&l(T,p(O),E==="rtl"?"right":"left");break}case"Tab":{b.shiftKey&&R>j?l(R-1,p(O),"left"):!b.shiftKey&&R<N&&l(R+1,p(O),"right");break}case" ":{if(w.field===tk)break;const B=w.colDef;if(B&&B.type==="treeDataGroup")break;!b.shiftKey&&O<L&&l(R,p(Math.min(O+I,L)));break}case"PageDown":{O<L&&l(R,p(Math.min(O+I,L)));break}case"PageUp":{const T=Math.max(O-I,$);T!==O&&T>=$?l(R,p(T)):a(R,b);break}case"Home":{b.ctrlKey||b.metaKey||b.shiftKey?l(j,p($)):l(j,p(O));break}case"End":{b.ctrlKey||b.metaKey||b.shiftKey?l(N,p(L)):l(N,p(O));break}default:_=!1}_&&b.preventDefault()},[e,s,o.direction,l,p,i,c,a]),C=u.useCallback((w,{event:b})=>b.key===" "?!1:w,[]);vr(e,"canStartEditing",C),ft(e,"columnHeaderKeyDown",h),ft(e,"headerFilterKeyDown",y),ft(e,"columnGroupHeaderKeyDown",v),ft(e,"cellKeyDown",m)},Dwe=(e,t)=>{var n,r;return S({},e,{preferencePanel:(n=(r=t.initialState)==null?void 0:r.preferencePanel)!=null?n:{open:!1}})},Awe=(e,t)=>{var n;const r=Xr(e,"useGridPreferencesPanel"),o=u.useRef(),s=u.useRef(),i=u.useCallback(()=>{r.debug("Hiding Preferences Panel");const h=Mh(e.current.state);h.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:h.openedPanelValue}),e.current.setState(y=>S({},y,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,r]),l=u.useCallback(()=>{s.current=setTimeout(()=>clearTimeout(o.current),0)},[]),a=u.useCallback(()=>{o.current=setTimeout(i,100)},[i]),c=u.useCallback((h,y,v)=>{r.debug("Opening Preferences Panel"),l(),e.current.setState(m=>S({},m,{preferencePanel:S({},m.preferencePanel,{open:!0,openedPanelValue:h,panelId:y,labelId:v})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:h}),e.current.forceUpdate()},[r,l,e]);Nt(e,{showPreferences:c,hidePreferences:a},"public");const f=u.useCallback((h,y)=>{var v;const m=Mh(e.current.state);return!y.exportOnlyDirtyModels||((v=t.initialState)==null?void 0:v.preferencePanel)!=null||m.open?S({},h,{preferencePanel:m}):h},[e,(n=t.initialState)==null?void 0:n.preferencePanel]),p=u.useCallback((h,y)=>{const v=y.stateToRestore.preferencePanel;return v!=null&&e.current.setState(m=>S({},m,{preferencePanel:v})),h},[e]);vr(e,"exportState",f),vr(e,"restoreState",p),u.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(s.current)},[])},Lwe=["id","field"],Fwe=["id","field"],Nwe=Xi(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),Bwe=(e,t)=>{const[n,r]=u.useState({}),o=u.useRef(n),s=u.useRef({}),{processRowUpdate:i,onProcessRowUpdateError:l,cellModesModel:a,onCellModesModelChange:c}=t,f=_=>(...T)=>{t.editMode===qi.Cell&&_(...T)},p=u.useCallback((_,T)=>{const B=e.current.getCellParams(_,T);if(!e.current.isCellEditable(B))throw new Error(`MUI: The cell with id=${_} and field=${T} is not editable.`)},[e]),h=u.useCallback((_,T,B)=>{if(e.current.getCellMode(_,T)!==B)throw new Error(`MUI: The cell with id=${_} and field=${T} is not in ${B} mode.`)},[e]),y=u.useCallback((_,T)=>{if(!_.isEditable||_.cellMode===un.Edit)return;const B=S({},_,{reason:al.cellDoubleClick});e.current.publishEvent("cellEditStart",B,T)},[e]),v=u.useCallback((_,T)=>{if(_.cellMode===un.View||e.current.getCellMode(_.id,_.field)===un.View)return;const B=S({},_,{reason:ni.cellFocusOut});e.current.publishEvent("cellEditStop",B,T)},[e]),m=u.useCallback((_,T)=>{if(_.cellMode===un.Edit){if(T.which===229)return;let B;if(T.key==="Escape"?B=ni.escapeKeyDown:T.key==="Enter"?B=ni.enterKeyDown:T.key==="Tab"&&(B=T.shiftKey?ni.shiftTabKeyDown:ni.tabKeyDown,T.preventDefault()),B){const V=S({},_,{reason:B});e.current.publishEvent("cellEditStop",V,T)}}else if(_.isEditable){let B;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:T,cellParams:_,editMode:"cell"}))return;if(H3(T)?B=al.printableKeyDown:(T.ctrlKey||T.metaKey)&&T.key==="v"?B=al.pasteKeyDown:T.key==="Enter"?B=al.enterKeyDown:(T.key==="Delete"||T.key==="Backspace")&&(B=al.deleteKeyDown),B){const A=S({},_,{reason:B,key:T.key});e.current.publishEvent("cellEditStart",A,T)}}},[e]),C=u.useCallback(_=>{const{id:T,field:B,reason:V}=_,A={id:T,field:B};(V===al.printableKeyDown||V===al.deleteKeyDown||V===al.pasteKeyDown)&&(A.deleteValue=!0),e.current.startCellEditMode(A)},[e]),w=u.useCallback(_=>{const{id:T,field:B,reason:V}=_;e.current.runPendingEditCellValueMutation(T,B);let A;V===ni.enterKeyDown?A="below":V===ni.tabKeyDown?A="right":V===ni.shiftTabKeyDown&&(A="left");const F=V==="escapeKeyDown";e.current.stopCellEditMode({id:T,field:B,ignoreModifications:F,cellToFocusAfter:A})},[e]);ft(e,"cellDoubleClick",f(y)),ft(e,"cellFocusOut",f(v)),ft(e,"cellKeyDown",f(m)),ft(e,"cellEditStart",f(C)),ft(e,"cellEditStop",f(w)),kn(e,"cellEditStart",t.onCellEditStart),kn(e,"cellEditStop",t.onCellEditStop);const b=u.useCallback((_,T)=>{const B=io(e.current.state);return B[_]&&B[_][T]?un.Edit:un.View},[e]),x=qe(_=>{const T=_!==t.cellModesModel;c&&T&&c(_,{}),!(t.cellModesModel&&T)&&(r(_),o.current=_,e.current.publishEvent("cellModesModelChange",_))}),P=u.useCallback((_,T,B)=>{const V=S({},o.current);if(B!==null)V[_]=S({},V[_],{[T]:S({},B)});else{const A=V[_],F=le(A,[T].map(gh));V[_]=F,Object.keys(V[_]).length===0&&delete V[_]}x(V)},[x]),k=u.useCallback((_,T,B)=>{e.current.setState(V=>{const A=S({},V.editRows);return B!==null?A[_]=S({},A[_],{[T]:S({},B)}):(delete A[_][T],Object.keys(A[_]).length===0&&delete A[_]),S({},V,{editRows:A})}),e.current.forceUpdate()},[e]),E=u.useCallback(_=>{const{id:T,field:B}=_,V=le(_,Lwe);p(T,B),h(T,B,un.View),P(T,B,S({mode:un.Edit},V))},[p,h,P]),I=qe(_=>{const{id:T,field:B,deleteValue:V,initialValue:A}=_;let F=e.current.getCellValue(T,B);(V||A)&&(F=V?"":A),k(T,B,{value:F,error:!1,isProcessingProps:!1}),e.current.setCellFocus(T,B)}),R=u.useCallback(_=>{const{id:T,field:B}=_,V=le(_,Fwe);h(T,B,un.Edit),P(T,B,S({mode:un.View},V))},[h,P]),O=qe(_=>ot(void 0,null,function*(){const{id:T,field:B,ignoreModifications:V,cellToFocusAfter:A="none"}=_;h(T,B,un.Edit),e.current.runPendingEditCellValueMutation(T,B);const F=()=>{k(T,B,null),P(T,B,null),A!=="none"&&e.current.moveFocusToRelativeCell(T,B,A)};if(V){F();return}const H=io(e.current.state),{error:K,isProcessingProps:Y}=H[T][B];if(K||Y){s.current[T][B].mode=un.Edit,P(T,B,{mode:un.Edit});return}const J=e.current.getRowWithUpdatedValuesFromCellEditing(T,B);if(i){const Q=X=>{s.current[T][B].mode=un.Edit,P(T,B,{mode:un.Edit}),l?l(X):Nwe()};try{const X=e.current.getRow(T);Promise.resolve(i(J,X)).then(ee=>{e.current.updateRows([ee]),F()}).catch(Q)}catch(X){Q(X)}}else e.current.updateRows([J]),F()})),$=u.useCallback(_=>ot(void 0,null,function*(){var T;const{id:B,field:V,value:A,debounceMs:F,unstable_skipValueParser:H}=_;p(B,V),h(B,V,un.Edit);const K=e.current.getColumn(V),Y=e.current.getRow(B);let J=A;K.valueParser&&!H&&(J=K.valueParser(A,e.current.getCellParams(B,V)));let Q=io(e.current.state),X=S({},Q[B][V],{value:J,changeReason:F?"debouncedSetEditCellValue":"setEditCellValue"});if(K.preProcessEditCellProps){const ee=A!==Q[B][V].value;X=S({},X,{isProcessingProps:!0}),k(B,V,X),X=yield Promise.resolve(K.preProcessEditCellProps({id:B,row:Y,props:X,hasChanged:ee}))}return e.current.getCellMode(B,V)===un.View?!1:(Q=io(e.current.state),X=S({},X,{isProcessingProps:!1}),X.value=K.preProcessEditCellProps?Q[B][V].value:J,k(B,V,X),Q=io(e.current.state),!((T=Q[B])!=null&&(T=T[V])!=null&&T.error))}),[e,p,h,k]),L=u.useCallback((_,T)=>{const B=e.current.getColumn(T),V=io(e.current.state),A=e.current.getRow(_);if(!V[_]||!V[_][T])return e.current.getRow(_);const{value:F}=V[_][T];return B.valueSetter?B.valueSetter({value:F,row:A}):S({},A,{[T]:F})},[e]),j={getCellMode:b,startCellEditMode:E,stopCellEditMode:R},N={setCellEditingEditCellValue:$,getRowWithUpdatedValuesFromCellEditing:L};Nt(e,j,"public"),Nt(e,N,"private"),u.useEffect(()=>{a&&x(a)},[a,x]),Ft(()=>{const _=Iy(e),T=s.current;s.current=Y3(n),Object.entries(n).forEach(([B,V])=>{Object.entries(V).forEach(([A,F])=>{var H,K;const Y=((H=T[B])==null||(H=H[A])==null?void 0:H.mode)||un.View,J=(K=_[B])!=null?K:B;F.mode===un.Edit&&Y===un.View?I(S({id:J,field:A},F)):F.mode===un.View&&Y===un.Edit&&O(S({id:J,field:A},F))})})},[e,n,I,O])},jwe=["id"],zwe=["id"],Vwe=Xi(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),Hwe=(e,t)=>{const[n,r]=u.useState({}),o=u.useRef(n),s=u.useRef({}),i=u.useRef(null),l=u.useRef(null),{processRowUpdate:a,onProcessRowUpdateError:c,rowModesModel:f,onRowModesModelChange:p}=t,h=A=>(...F)=>{t.editMode===qi.Row&&A(...F)},y=u.useCallback((A,F)=>{const H=e.current.getCellParams(A,F);if(!e.current.isCellEditable(H))throw new Error(`MUI: The cell with id=${A} and field=${F} is not editable.`)},[e]),v=u.useCallback((A,F)=>{if(e.current.getRowMode(A)!==F)throw new Error(`MUI: The row with id=${A} is not in ${F} mode.`)},[e]),m=u.useCallback((A,F)=>{if(!A.isEditable||e.current.getRowMode(A.id)===wn.Edit)return;const H=e.current.getRowParams(A.id),K=S({},H,{field:A.field,reason:na.cellDoubleClick});e.current.publishEvent("rowEditStart",K,F)},[e]),C=u.useCallback(A=>{l.current=A},[]),w=u.useCallback((A,F)=>{A.isEditable&&e.current.getRowMode(A.id)!==wn.View&&(l.current=null,i.current=setTimeout(()=>{var H;if(i.current=null,((H=l.current)==null?void 0:H.id)!==A.id){if(!e.current.getRow(A.id)||e.current.getRowMode(A.id)===wn.View)return;const K=e.current.getRowParams(A.id),Y=S({},K,{field:A.field,reason:cl.rowFocusOut});e.current.publishEvent("rowEditStop",Y,F)}}))},[e]);u.useEffect(()=>()=>{clearTimeout(i.current)},[]);const b=u.useCallback((A,F)=>{if(A.cellMode===wn.Edit){if(F.which===229)return;let H;if(F.key==="Escape")H=cl.escapeKeyDown;else if(F.key==="Enter")H=cl.enterKeyDown;else if(F.key==="Tab"){const K=R0(e).filter(Y=>e.current.getColumn(Y).type===j0?!0:e.current.isCellEditable(e.current.getCellParams(A.id,Y)));if(F.shiftKey?A.field===K[0]&&(H=cl.shiftTabKeyDown):A.field===K[K.length-1]&&(H=cl.tabKeyDown),F.preventDefault(),!H){const Y=K.findIndex(Q=>Q===A.field),J=K[F.shiftKey?Y-1:Y+1];e.current.setCellFocus(A.id,J)}}if(H){const K=S({},e.current.getRowParams(A.id),{reason:H,field:A.field});e.current.publishEvent("rowEditStop",K,F)}}else if(A.isEditable){let H;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:F,cellParams:A,editMode:"row"}))return;if(H3(F)||(F.ctrlKey||F.metaKey)&&F.key==="v"?H=na.printableKeyDown:F.key==="Enter"?H=na.enterKeyDown:(F.key==="Delete"||F.key==="Backspace")&&(H=na.deleteKeyDown),H){const Y=e.current.getRowParams(A.id),J=S({},Y,{field:A.field,reason:H});e.current.publishEvent("rowEditStart",J,F)}}},[e]),x=u.useCallback(A=>{const{id:F,field:H,reason:K}=A,Y={id:F,fieldToFocus:H};(K===na.printableKeyDown||K===na.deleteKeyDown)&&(Y.deleteValue=!!H),e.current.startRowEditMode(Y)},[e]),P=u.useCallback(A=>{const{id:F,reason:H,field:K}=A;e.current.runPendingEditCellValueMutation(F);let Y;H===cl.enterKeyDown?Y="below":H===cl.tabKeyDown?Y="right":H===cl.shiftTabKeyDown&&(Y="left");const J=H==="escapeKeyDown";e.current.stopRowEditMode({id:F,ignoreModifications:J,field:K,cellToFocusAfter:Y})},[e]);ft(e,"cellDoubleClick",h(m)),ft(e,"cellFocusIn",h(C)),ft(e,"cellFocusOut",h(w)),ft(e,"cellKeyDown",h(b)),ft(e,"rowEditStart",h(x)),ft(e,"rowEditStop",h(P)),kn(e,"rowEditStart",t.onRowEditStart),kn(e,"rowEditStop",t.onRowEditStop);const k=u.useCallback(A=>{if(t.editMode===qi.Cell)return wn.View;const F=io(e.current.state);return F[A]&&Object.keys(F[A]).length>0?wn.Edit:wn.View},[e,t.editMode]),E=qe(A=>{const F=A!==t.rowModesModel;p&&F&&p(A,{}),!(t.rowModesModel&&F)&&(r(A),o.current=A,e.current.publishEvent("rowModesModelChange",A))}),I=u.useCallback((A,F)=>{const H=S({},o.current);F!==null?H[A]=S({},F):delete H[A],E(H)},[E]),R=u.useCallback((A,F)=>{e.current.setState(H=>{const K=S({},H.editRows);return F!==null?K[A]=F:delete K[A],S({},H,{editRows:K})}),e.current.forceUpdate()},[e]),O=u.useCallback((A,F,H)=>{e.current.setState(K=>{const Y=S({},K.editRows);return H!==null?Y[A]=S({},Y[A],{[F]:S({},H)}):(delete Y[A][F],Object.keys(Y[A]).length===0&&delete Y[A]),S({},K,{editRows:Y})}),e.current.forceUpdate()},[e]),$=u.useCallback(A=>{const{id:F}=A,H=le(A,jwe);v(F,wn.View),I(F,S({mode:wn.Edit},H))},[v,I]),L=qe(A=>{const{id:F,fieldToFocus:H,deleteValue:K,initialValue:Y}=A,Q=xl(e).reduce((X,ee)=>{if(!e.current.getCellParams(F,ee).isEditable)return X;let Z=e.current.getCellValue(F,ee);return H===ee&&(K||Y)&&(Z=K?"":Y),X[ee]={value:Z,error:!1,isProcessingProps:!1},X},{});R(F,Q),H&&e.current.setCellFocus(F,H)}),j=u.useCallback(A=>{const{id:F}=A,H=le(A,zwe);v(F,wn.Edit),I(F,S({mode:wn.View},H))},[v,I]),N=qe(A=>{const{id:F,ignoreModifications:H,field:K,cellToFocusAfter:Y="none"}=A;e.current.runPendingEditCellValueMutation(F);const J=()=>{Y!=="none"&&K&&e.current.moveFocusToRelativeCell(F,K,Y),R(F,null),I(F,null)};if(H){J();return}const Q=io(e.current.state),X=e.current.getRow(F);if(Object.values(Q[F]).some(pe=>pe.isProcessingProps)){s.current[F].mode=wn.Edit;return}if(Object.values(Q[F]).some(pe=>pe.error)){s.current[F].mode=wn.Edit,I(F,{mode:wn.Edit});return}const Z=e.current.getRowWithUpdatedValuesFromRowEditing(F);if(a){const pe=ne=>{s.current[F].mode=wn.Edit,I(F,{mode:wn.Edit}),c?c(ne):Vwe()};try{Promise.resolve(a(Z,X)).then(ne=>{e.current.updateRows([ne]),J()}).catch(pe)}catch(ne){pe(ne)}}else e.current.updateRows([Z]),J()}),_=u.useCallback(A=>{const{id:F,field:H,value:K,debounceMs:Y,unstable_skipValueParser:J}=A;y(F,H);const Q=e.current.getColumn(H),X=e.current.getRow(F);let ee=K;Q.valueParser&&!J&&(ee=Q.valueParser(K,e.current.getCellParams(F,H)));let oe=io(e.current.state),Z=S({},oe[F][H],{value:ee,changeReason:Y?"debouncedSetEditCellValue":"setEditCellValue"});return Q.preProcessEditCellProps||O(F,H,Z),new Promise(pe=>{const ne=[];if(Q.preProcessEditCellProps){const re=Z.value!==oe[F][H].value;Z=S({},Z,{isProcessingProps:!0}),O(F,H,Z);const me=oe[F],ce=le(me,[H].map(gh)),Ce=Promise.resolve(Q.preProcessEditCellProps({id:F,row:X,props:Z,hasChanged:re,otherFieldsProps:ce})).then(Ee=>{if(e.current.getRowMode(F)===wn.View){pe(!1);return}oe=io(e.current.state),Ee=S({},Ee,{isProcessingProps:!1}),Ee.value=Q.preProcessEditCellProps?oe[F][H].value:ee,O(F,H,Ee)});ne.push(Ce)}Object.entries(oe[F]).forEach(([re,me])=>{if(re===H)return;const ce=e.current.getColumn(re);if(!ce.preProcessEditCellProps)return;me=S({},me,{isProcessingProps:!0}),O(F,re,me),oe=io(e.current.state);const Ce=oe[F],Ee=le(Ce,[re].map(gh)),fe=Promise.resolve(ce.preProcessEditCellProps({id:F,row:X,props:me,hasChanged:!1,otherFieldsProps:Ee})).then(ke=>{if(e.current.getRowMode(F)===wn.View){pe(!1);return}ke=S({},ke,{isProcessingProps:!1}),O(F,re,ke)});ne.push(fe)}),Promise.all(ne).then(()=>{e.current.getRowMode(F)===wn.Edit?(oe=io(e.current.state),pe(!oe[F][H].error)):pe(!1)})})},[e,y,O]),T=u.useCallback(A=>{const F=io(e.current.state),H=e.current.getRow(A);if(!F[A])return e.current.getRow(A);let K=S({},H);return Object.entries(F[A]).forEach(([Y,J])=>{const Q=e.current.getColumn(Y);Q.valueSetter?K=Q.valueSetter({value:J.value,row:K}):K[Y]=J.value}),K},[e]),B={getRowMode:k,startRowEditMode:$,stopRowEditMode:j},V={setRowEditingEditCellValue:_,getRowWithUpdatedValuesFromRowEditing:T};Nt(e,B,"public"),Nt(e,V,"private"),u.useEffect(()=>{f&&E(f)},[f,E]),Ft(()=>{const A=Iy(e),F=s.current;s.current=Y3(n),Object.entries(n).forEach(([H,K])=>{var Y,J;const Q=((Y=F[H])==null?void 0:Y.mode)||wn.View,X=(J=A[H])!=null?J:H;K.mode===wn.Edit&&Q===wn.View?L(S({id:X},K)):K.mode===wn.View&&Q===wn.Edit&&N(S({id:X},K))})},[e,n,L,N])},Uwe=e=>S({},e,{editRows:{}}),Wwe=(e,t)=>{Bwe(e,t),Hwe(e,t);const n=u.useRef({}),{isCellEditable:r}=t,o=u.useCallback(h=>kh(h.rowNode)||!h.colDef.editable||!h.colDef.renderEditCell?!1:r?r(h):!0,[r]),s=(h,y,v,m)=>{if(!v){m();return}if(n.current[h]||(n.current[h]={}),n.current[h][y]){const[b]=n.current[h][y];clearTimeout(b)}const C=()=>{const[b]=n.current[h][y];clearTimeout(b),m(),delete n.current[h][y]},w=setTimeout(()=>{m(),delete n.current[h][y]},v);n.current[h][y]=[w,C]};u.useEffect(()=>{const h=n.current;return()=>{Object.entries(h).forEach(([y,v])=>{Object.keys(v).forEach(m=>{const[C]=h[y][m];clearTimeout(C),delete h[y][m]})})}},[]);const i=u.useCallback((h,y)=>{if(n.current[h]){if(!y)Object.keys(n.current[h]).forEach(v=>{const[,m]=n.current[h][v];m()});else if(n.current[h][y]){const[,v]=n.current[h][y];v()}}},[]),l=u.useCallback(h=>{const{id:y,field:v,debounceMs:m}=h;return new Promise(C=>{s(y,v,m,()=>ot(void 0,null,function*(){const w=t.editMode===qi.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(y,v)===un.Edit){const b=yield w(h);C(b)}}))})},[e,t.editMode]),a=u.useCallback((h,y)=>t.editMode===qi.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(h,y):e.current.getRowWithUpdatedValuesFromRowEditing(h),[e,t.editMode]),c=u.useCallback((h,y)=>{var v,m;return(v=(m=io(e.current.state)[h])==null?void 0:m[y])!=null?v:null},[e]),f={isCellEditable:o,setEditCellValue:l,getRowWithUpdatedValues:a,unstable_getEditCellMeta:c},p={runPendingEditCellValueMutation:i};Nt(e,f,"public"),Nt(e,p,"private")},Gwe=(e,t,n)=>(n.current.caches.rows=wv({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),S({},e,{rows:A3({apiRef:n,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:null,previousTreeDepths:null})})),Kwe=(e,t)=>{const n=Xr(e,"useGridRows"),r=Qc(e,t),o=u.useRef(Date.now()),s=ek(),i=u.useCallback(N=>{const _=vl(e)[N];if(_)return _;const T=e.current.getRowNode(N);return T&&kh(T)?{[dd]:N}:null},[e]),l=t.getRowId,a=u.useCallback(N=>dd in N?N[dd]:l?l(N):N.id,[l]),c=u.useMemo(()=>r.rows.reduce((N,{id:_},T)=>(N[_]=T,N),{}),[r.rows]),f=u.useCallback(({cache:N,throttle:_})=>{const T=()=>{o.current=Date.now(),e.current.setState(V=>S({},V,{rows:A3({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:si(e),previousTreeDepths:UO(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(s.clear(),e.current.caches.rows=N,!_){T();return}const B=t.throttleRowsMs-(Date.now()-o.current);if(B>0){s.start(B,T);return}T()},[t.throttleRowsMs,t.rowCount,t.loading,e,s]),p=u.useCallback(N=>{n.debug(`Updating all rows, new length ${N.length}`);const _=wv({rows:N,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),T=e.current.caches.rows;_.rowsBeforePartialUpdates=T.rowsBeforePartialUpdates,f({cache:_,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,f,e]),h=u.useCallback(N=>{if(t.signature===Vi.DataGrid&&N.length>1)throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
610
+ `));const _=[];N.forEach(B=>{const V=Ty(B,t.getRowId,"A row was provided without id when calling updateRows():"),A=e.current.getRowNode(V);if((A==null?void 0:A.type)==="pinnedRow"){const F=e.current.caches.pinnedRows,H=F.idLookup[V];H&&(F.idLookup[V]=S({},H,B))}else _.push(B)});const T=jge({updates:_,getRowId:t.getRowId,previousCache:e.current.caches.rows});f({cache:T,throttle:!0})},[t.signature,t.getRowId,f,e]),y=u.useCallback(()=>{const N=vp(e),_=vl(e);return new Map(N.map(T=>{var B;return[T,(B=_[T])!=null?B:{}]}))},[e]),v=u.useCallback(()=>D0(e),[e]),m=u.useCallback(()=>vp(e),[e]),C=u.useCallback(N=>c[N],[c]),w=u.useCallback((N,_)=>{const T=e.current.getRowNode(N);if(!T)throw new Error(`MUI: No row with id #${N} found`);if(T.type!=="group")throw new Error("MUI: Only group nodes can be expanded or collapsed");const B=S({},T,{childrenExpanded:_});e.current.setState(V=>S({},V,{rows:S({},V.rows,{tree:S({},V.rows.tree,{[N]:B})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",B)},[e]),b=u.useCallback(N=>{var _;return(_=si(e)[N])!=null?_:null},[e]),x=u.useCallback(({skipAutoGeneratedRows:N=!0,groupId:_,applySorting:T,applyFiltering:B})=>{const V=si(e);let A;if(T){const F=V[_];if(!F)return[];const H=HE(e);A=[];const K=H.findIndex(Y=>Y===_)+1;for(let Y=K;Y<H.length&&V[H[Y]].depth>F.depth;Y+=1){const J=H[Y];(!N||!kh(V[J]))&&A.push(J)}}else A=KE(V,_,N);if(B){const F=T3(e);A=A.filter(H=>F[H]!==!1)}return A},[e]),P=u.useCallback((N,_)=>{const T=e.current.getRowNode(N);if(!T)throw new Error(`MUI: No row with id #${N} found`);if(T.parent!==lo)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if(T.type!=="leaf")throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");e.current.setState(B=>{const V=si(B,e.current.instanceId)[lo],A=V.children,F=A.findIndex(K=>K===N);if(F===-1||F===_)return B;n.debug(`Moving row ${N} to index ${_}`);const H=[...A];return H.splice(_,0,H.splice(F,1)[0]),S({},B,{rows:S({},B.rows,{tree:S({},B.rows.tree,{[lo]:S({},V,{children:H})})})})}),e.current.publishEvent("rowsSet")},[e,n]),k=u.useCallback((N,_)=>{if(t.signature===Vi.DataGrid&&_.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
611
+ `));if(_.length===0)return;if(A0(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const B=S({},si(e)),V=S({},vl(e)),A=S({},Iy(e)),F=B[lo],H=[...F.children],K=new Set;for(let J=0;J<_.length;J+=1){const Q=_[J],X=Ty(Q,t.getRowId,"A row was provided without id when calling replaceRows()."),[ee]=H.splice(N+J,1,X);K.has(ee)||(delete V[ee],delete A[ee],delete B[ee]);const oe={id:X,depth:0,parent:lo,type:"leaf",groupingKey:null};V[X]=Q,A[X]=X,B[X]=oe,K.add(X)}B[lo]=S({},F,{children:H});const Y=H.filter(J=>B[J].type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=V,e.current.caches.rows.dataRowIdToIdLookup=A,e.current.setState(J=>S({},J,{rows:S({},J.rows,{dataRowIdToModelLookup:V,dataRowIdToIdLookup:A,dataRowIds:Y,tree:B})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),E={getRow:i,getRowId:a,getRowModels:y,getRowsCount:v,getAllRowIds:m,setRows:p,updateRows:h,getRowNode:b,getRowIndexRelativeToVisibleRows:C,unstable_replaceRows:k},I={setRowIndex:P,setRowChildrenExpansion:w,getRowGroupChildren:x},R=u.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let N;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?N=S({},e.current.caches.rows,{updates:{type:"full",rows:vp(e)}}):N=wv({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),f({cache:N,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,f]),O=u.useCallback(N=>{N==="rowTreeCreation"&&R()},[R]),$=u.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==Cge(e)&&R()},[e,R]);ft(e,"activeStrategyProcessorChange",O),ft(e,"strategyAvailabilityChange",$);const L=u.useCallback(()=>{e.current.setState(N=>{const _=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:si(N,e.current.instanceId),treeDepths:UO(N,e.current.instanceId),dataRowIds:vp(N,e.current.instanceId),dataRowIdToModelLookup:vl(N,e.current.instanceId),dataRowIdToIdLookup:Iy(N,e.current.instanceId)});return S({},N,{rows:S({},N.rows,_,{totalTopLevelRowCount:D3({tree:_.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);rk(e,"hydrateRows",L),Nt(e,E,"public"),Nt(e,I,t.signature===Vi.DataGrid?"private":"public");const j=u.useRef(!0);u.useEffect(()=>{if(j.current){j.current=!1;return}const N=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,_=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,T=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(N){_||(e.current.setState(B=>S({},B,{rows:S({},B.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),T||(e.current.setState(B=>S({},B,{rows:S({},B.rows,{totalRowCount:Math.max(t.rowCount||0,B.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,B.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate());return}n.debug(`Updating all rows, new length ${t.rows.length}`),f({cache:wv({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1})},[t.rows,t.rowCount,t.getRowId,t.loading,n,f,e])},qwe=e=>{const t={[lo]:S({},Nge(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:lo,type:"leaf",groupingKey:null}}return{groupingName:jc,tree:t,treeDepths:{0:e.length},dataRowIds:e}},Ywe=({previousTree:e,actions:t})=>{const n=S({},e),r={};for(let i=0;i<t.remove.length;i+=1){const l=t.remove[i];r[l]=!0,delete n[l]}for(let i=0;i<t.insert.length;i+=1){const l=t.insert[i];n[l]={id:l,depth:0,parent:lo,type:"leaf",groupingKey:null}}const o=n[lo];let s=[...o.children,...t.insert];return Object.values(r).length&&(s=s.filter(i=>!r[i])),n[lo]=S({},o,{children:s}),{groupingName:jc,tree:n,treeDepths:{0:s.length},dataRowIds:s}},Qwe=e=>e.updates.type==="full"?qwe(e.updates.rows):Ywe({previousTree:e.previousTree,actions:e.updates.actions}),Xwe=e=>{Fy(e,jc,"rowTreeCreation",Qwe)},kB=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],Zwe=(e,t)=>{var n;return S({},e,{rowSelection:t.rowSelection?(n=kB(t.rowSelectionModel))!=null?n:[]:[]})},Jwe=(e,t)=>{const n=Xr(e,"useGridSelection"),r=_=>(...T)=>{t.rowSelection&&_(...T)},o=u.useMemo(()=>kB(t.rowSelectionModel,ks(e.current.state)),[e,t.rowSelectionModel]),s=u.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:ks,changeEvent:"rowSelectionChange"});const{checkboxSelection:i,disableMultipleRowSelection:l,disableRowSelectionOnClick:a,isRowSelectable:c}=t,f=!l||i,p=Qc(e,t),h=u.useCallback(_=>{var T;let B=_;const V=(T=s.current)!=null?T:_,A=e.current.isRowSelected(_);if(A){const F=jp(e),H=F.findIndex(Y=>Y===V),K=F.findIndex(Y=>Y===B);if(H===K)return;H>K?B=F[K+1]:B=F[K-1]}s.current=_,e.current.selectRowRange({startId:V,endId:B},!A)},[e]),y=u.useCallback(_=>{if(t.signature===Vi.DataGrid&&!t.checkboxSelection&&Array.isArray(_)&&_.length>1)throw new Error(["MUI: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(`
612
+ `));ks(e.current.state)!==_&&(n.debug("Setting selection model"),e.current.setState(B=>S({},B,{rowSelection:t.rowSelection?_:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,t.checkboxSelection]),v=u.useCallback(_=>ks(e.current.state).includes(_),[e]),m=u.useCallback(_=>{if(c&&!c(e.current.getRowParams(_)))return!1;const T=e.current.getRowNode(_);return!((T==null?void 0:T.type)==="footer"||(T==null?void 0:T.type)==="pinnedRow")},[e,c]),C=u.useCallback(()=>Gye(e),[e]),w=u.useCallback((_,T=!0,B=!1)=>{if(e.current.isRowSelectable(_))if(s.current=_,B)n.debug(`Setting selection for row ${_}`),e.current.setRowSelectionModel(T?[_]:[]);else{n.debug(`Toggling selection for row ${_}`);const A=ks(e.current.state).filter(H=>H!==_);T&&A.push(_),(A.length<2||f)&&e.current.setRowSelectionModel(A)}},[e,n,f]),b=u.useCallback((_,T=!0,B=!1)=>{n.debug("Setting selection for several rows");const V=_.filter(H=>e.current.isRowSelectable(H));let A;if(B)A=T?V:[];else{const H=S({},Dy(e));V.forEach(K=>{T?H[K]=K:delete H[K]}),A=Object.values(H)}(A.length<2||f)&&e.current.setRowSelectionModel(A)},[e,n,f]),x=u.useCallback(({startId:_,endId:T},B=!0,V=!1)=>{if(!e.current.getRow(_)||!e.current.getRow(T))return;n.debug(`Expanding selection from row ${_} to row ${T}`);const A=jp(e),F=A.indexOf(_),H=A.indexOf(T),[K,Y]=F>H?[H,F]:[F,H],J=A.slice(K,Y+1);e.current.selectRows(J,B,V)},[e,n]),P={selectRow:w,setRowSelectionModel:y,getSelectedRows:C,isRowSelected:v,isRowSelectable:m},k={selectRows:b,selectRowRange:x};Nt(e,P,"public"),Nt(e,k,t.signature===Vi.DataGrid?"private":"public");const E=u.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const _=ks(e.current.state),T=vl(e),B=S({},Dy(e));let V=!1;_.forEach(A=>{T[A]||(delete B[A],V=!0)}),V&&e.current.setRowSelectionModel(Object.values(B))},[e,t.keepNonExistentRowsSelected]),I=u.useCallback((_,T)=>{const B=T.metaKey||T.ctrlKey,V=!i&&!B&&!Mve(T),A=!f||V,F=e.current.isRowSelected(_);A?e.current.selectRow(_,V?!0:!F,!0):e.current.selectRow(_,!F,!1)},[e,f,i]),R=u.useCallback((_,T)=>{var B;if(a)return;const V=(B=T.target.closest(`.${de.cell}`))==null?void 0:B.getAttribute("data-field");if(V===ff.field||V===tk)return;if(V){const F=e.current.getColumn(V);if((F==null?void 0:F.type)===j0)return}e.current.getRowNode(_.id).type!=="pinnedRow"&&(T.shiftKey&&(f||i)?h(_.id):I(_.id,T))},[a,f,i,e,h,I]),O=u.useCallback((_,T)=>{if(f&&T.shiftKey){var B;(B=window.getSelection())==null||B.removeAllRanges()}},[f]),$=u.useCallback((_,T)=>{T.nativeEvent.shiftKey?h(_.id):e.current.selectRow(_.id,_.value)},[e,h]),L=u.useCallback(_=>{const B=t.checkboxSelectionVisibleOnly&&t.pagination?eB(e):jp(e),V=wr(e);e.current.selectRows(B,_.value,(V==null?void 0:V.items.length)>0)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),j=u.useCallback((_,T)=>{if(e.current.getCellMode(_.id,_.field)!==un.Edit&&!um(T)){if(Oy(T.key)&&T.shiftKey){const B=Uo(e);if(B&&B.id!==_.id){T.preventDefault();const V=e.current.isRowSelected(B.id);if(!f){e.current.selectRow(B.id,!V,!0);return}const A=e.current.getRowIndexRelativeToVisibleRows(B.id),F=e.current.getRowIndexRelativeToVisibleRows(_.id);let H,K;A>F?V?(H=F,K=A-1):(H=F,K=A):V?(H=A+1,K=F):(H=A,K=F);const Y=p.rows.slice(H,K+1).map(J=>J.id);e.current.selectRows(Y,!V);return}}if(T.key===" "&&T.shiftKey){T.preventDefault(),I(_.id,T);return}T.key==="a"&&(T.ctrlKey||T.metaKey)&&(T.preventDefault(),b(e.current.getAllRowIds(),!0))}},[e,I,b,p.rows,f]);ft(e,"sortedRowsSet",r(E)),ft(e,"rowClick",r(R)),ft(e,"rowSelectionCheckboxChange",r($)),ft(e,"headerSelectionCheckboxChange",L),ft(e,"cellMouseDown",r(O)),ft(e,"cellKeyDown",r(j)),u.useEffect(()=>{o!==void 0&&e.current.setRowSelectionModel(o)},[e,o,t.rowSelection]),u.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const N=o!=null;u.useEffect(()=>{if(N||!t.rowSelection)return;const _=ks(e.current.state);if(m){const T=_.filter(B=>m(B));T.length<_.length&&e.current.setRowSelectionModel(T)}},[e,m,N,t.rowSelection]),u.useEffect(()=>{if(!t.rowSelection||N)return;const _=ks(e.current.state);!f&&_.length>1&&e.current.setRowSelectionModel([])},[e,f,i,N,t.rowSelection])},IB={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorEquals:"Equals",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"},eCe=e=>{const{classes:t}=e;return u.useMemo(()=>_e({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Ut,t),[t])},tCe=(e,t)=>{const n={classes:t.classes},r=eCe(n),o=u.useCallback(s=>{const i=S({},ff,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),l=t.checkboxSelection,a=s.lookup[ra]!=null;return l&&!a?(s.lookup[ra]=i,s.orderedFields=[ra,...s.orderedFields]):!l&&a?(delete s.lookup[ra],s.orderedFields=s.orderedFields.filter(c=>c!==ra)):l&&a&&(s.lookup[ra]=S({},i,s.lookup[ra])),s},[e,r,t.checkboxSelection]);vr(e,"hydrateColumns",o)},nCe=(e,t)=>{var n,r,o;const s=(n=(r=t.sortModel)!=null?r:(o=t.initialState)==null||(o=o.sorting)==null?void 0:o.sortModel)!=null?n:[];return S({},e,{sorting:{sortModel:tB(s,t.disableMultipleColumnsSorting),sortedRows:[]}})},rCe=(e,t)=>{var n;const r=Xr(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:Es,changeEvent:"sortModelChange"});const o=u.useCallback((E,I)=>{const R=Es(e),O=R.findIndex(L=>L.field===E);let $=[...R];return O>-1?I?$.splice(O,1,I):$.splice(O,1):$=[...R,I],$},[e]),s=u.useCallback((E,I)=>{var R;const $=Es(e).find(j=>j.field===E.field);if($){var L;const j=I===void 0?YO((L=E.sortingOrder)!=null?L:t.sortingOrder,$.sort):I;return j==null?void 0:S({},$,{sort:j})}return{field:E.field,sort:I===void 0?YO((R=E.sortingOrder)!=null?R:t.sortingOrder):I}},[e,t.sortingOrder]),i=u.useCallback((E,I)=>I==null||I.sortable===!1?E:(I.sortingOrder||t.sortingOrder).some(O=>!!O)?[...E,"columnMenuSortItem"]:E,[t.sortingOrder]),l=u.useCallback(()=>{e.current.setState(E=>{if(t.sortingMode==="server")return r.debug("Skipping sorting rows as sortingMode = server"),S({},E,{sorting:S({},E.sorting,{sortedRows:KE(si(e),lo,!1)})});const I=Es(E,e.current.instanceId),R=Xye(I,e),O=e.current.applyStrategyProcessor("sorting",{sortRowList:R});return S({},E,{sorting:S({},E.sorting,{sortedRows:O})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,r,t.sortingMode]),a=u.useCallback(E=>{Es(e)!==E&&(r.debug("Setting sort model"),e.current.setState(qO(E,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,r,t.disableMultipleColumnsSorting]),c=u.useCallback((E,I,R)=>{if(!E.sortable)return;const O=s(E,I);let $;!R||t.disableMultipleColumnsSorting?$=O?[O]:[]:$=o(E.field,O),e.current.setSortModel($)},[e,o,s,t.disableMultipleColumnsSorting]),f=u.useCallback(()=>Es(e),[e]),p=u.useCallback(()=>UE(e).map(I=>I.model),[e]),h=u.useCallback(()=>HE(e),[e]),y=u.useCallback(E=>e.current.getSortedRowIds()[E],[e]);Nt(e,{getSortModel:f,getSortedRows:p,getSortedRowIds:h,getRowIdFromRowIndex:y,setSortModel:a,sortColumn:c,applySorting:l},"public");const m=u.useCallback((E,I)=>{var R;const O=Es(e);return!I.exportOnlyDirtyModels||t.sortModel!=null||((R=t.initialState)==null||(R=R.sorting)==null?void 0:R.sortModel)!=null||O.length>0?S({},E,{sorting:{sortModel:O}}):E},[e,t.sortModel,(n=t.initialState)==null||(n=n.sorting)==null?void 0:n.sortModel]),C=u.useCallback((E,I)=>{var R;const O=(R=I.stateToRestore.sorting)==null?void 0:R.sortModel;return O==null?E:(e.current.setState(qO(O,t.disableMultipleColumnsSorting)),S({},E,{callbacks:[...E.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),w=u.useCallback(E=>{const I=si(e),R=I[lo],O=E.sortRowList?E.sortRowList(R.children.map($=>I[$])):[...R.children];return R.footerId!=null&&O.push(R.footerId),O},[e]);vr(e,"exportState",m),vr(e,"restoreState",C),Fy(e,jc,"sorting",w);const b=u.useCallback(({colDef:E},I)=>{const R=I.shiftKey||I.metaKey||I.ctrlKey;c(E,void 0,R)},[c]),x=u.useCallback(({colDef:E},I)=>{Pve(I.key)&&!I.ctrlKey&&!I.metaKey&&c(E,void 0,I.shiftKey)},[c]),P=u.useCallback(()=>{const E=Es(e),I=cf(e);if(E.length>0){const R=E.filter(O=>I[O.field]);R.length<E.length&&e.current.setSortModel(R)}},[e]),k=u.useCallback(E=>{E==="sorting"&&e.current.applySorting()},[e]);vr(e,"columnMenu",i),ft(e,"columnHeaderClick",b),ft(e,"columnHeaderKeyDown",x),ft(e,"rowsSet",e.current.applySorting),ft(e,"columnsChange",P),ft(e,"activeStrategyProcessorChange",k),dm(()=>{e.current.applySorting()}),Ft(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function wD(e){const{clientHeight:t,scrollTop:n,offsetHeight:r,offsetTop:o}=e,s=o+r;if(r>t)return o;if(s-t>n)return s-t;if(o<n)return o}const oCe=(e,t)=>{const n=Fn(),r=Xr(e,"useGridScroll"),o=e.current.columnHeadersElementRef,s=e.current.virtualScrollerRef,i=st(e,Ka),l=u.useCallback(p=>{const h=D0(e),y=Dr(e);if(!(p.rowIndex==null)&&h===0||y.length===0)return!1;r.debug(`Scrolling to cell at row ${p.rowIndex}, col: ${p.colIndex} `);let m={};if(p.colIndex!=null){const x=jd(e);let P;if(typeof p.rowIndex!="undefined"){var C;const k=(C=i[p.rowIndex])==null?void 0:C.id,E=e.current.unstable_getCellColSpanInfo(k,p.colIndex);E&&!E.spannedByColSpan&&(P=E.cellProps.width)}typeof P=="undefined"&&(P=y[p.colIndex].computedWidth),m.left=wD({clientHeight:s.current.clientWidth,scrollTop:Math.abs(s.current.scrollLeft),offsetHeight:P,offsetTop:x[p.colIndex]})}if(p.rowIndex!=null){var w,b;const x=_h(e.current.state),P=Vye(e),k=Hye(e),E=t.pagination?p.rowIndex-P*k:p.rowIndex,I=x.positions[E+1]?x.positions[E+1]-x.positions[E]:x.currentPageTotalHeight-x.positions[E],R=((w=s.current.querySelector(`.${de["pinnedRows--top"]}`))==null?void 0:w.clientHeight)||0,O=((b=s.current.querySelector(`.${de["pinnedRows--bottom"]}`))==null?void 0:b.clientHeight)||0;m.top=wD({clientHeight:s.current.clientHeight-R-O,scrollTop:s.current.scrollTop,offsetHeight:I,offsetTop:x.positions[E]})}return m=e.current.unstable_applyPipeProcessors("scrollToIndexes",m,p),typeof m.left!==void 0||typeof m.top!==void 0?(e.current.scroll(m),!0):!1},[r,e,s,t.pagination,i]),a=u.useCallback(p=>{if(s.current&&p.left!=null&&o.current){const h=n.direction==="rtl"?-1:1;o.current.scrollLeft=p.left,s.current.scrollLeft=h*p.left,r.debug(`Scrolling left: ${p.left}`)}s.current&&p.top!=null&&(s.current.scrollTop=p.top,r.debug(`Scrolling top: ${p.top}`)),r.debug("Scrolling, updating container, and viewport")},[s,n.direction,o,r]),c=u.useCallback(()=>s!=null&&s.current?{top:s.current.scrollTop,left:s.current.scrollLeft}:{top:0,left:0},[s]);Nt(e,{scroll:a,scrollToIndexes:l,getScrollPosition:c},"public")};function sCe(e,t){kn(e,"columnHeaderClick",t.onColumnHeaderClick),kn(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),kn(e,"columnHeaderOver",t.onColumnHeaderOver),kn(e,"columnHeaderOut",t.onColumnHeaderOut),kn(e,"columnHeaderEnter",t.onColumnHeaderEnter),kn(e,"columnHeaderLeave",t.onColumnHeaderLeave),kn(e,"cellClick",t.onCellClick),kn(e,"cellDoubleClick",t.onCellDoubleClick),kn(e,"cellKeyDown",t.onCellKeyDown),kn(e,"preferencePanelClose",t.onPreferencePanelClose),kn(e,"preferencePanelOpen",t.onPreferencePanelOpen),kn(e,"menuOpen",t.onMenuOpen),kn(e,"menuClose",t.onMenuClose),kn(e,"rowDoubleClick",t.onRowDoubleClick),kn(e,"rowClick",t.onRowClick),kn(e,"stateChange",t.onStateChange)}const iCe=({content:e,container:t,scrollBarSize:n})=>{const r=e.width>t.width,o=e.height>t.height;let s=!1,i=!1;return(r||o)&&(s=r,i=e.height+(s?n:0)>t.height,i&&(s=e.width+n>t.width)),{hasScrollX:s,hasScrollY:i}};function lCe(e,t){const n=Xr(e,"useResizeContainer"),r=u.useRef(!1),o=u.useRef(null),s=u.useRef(null),i=st(e,_h),l=st(e,df),a=Math.floor(t.rowHeight*l),c=ok(e,t.columnHeaderHeight),f=u.useCallback(()=>{var I;const R=(I=e.current.rootElementRef)==null?void 0:I.current,O=VE(e),$=L3(e);if(!o.current)return;let L;if(t.scrollbarSize!=null)L=t.scrollbarSize;else if(!O||!R)L=0;else{const F=pn(R).createElement("div");F.style.width="99px",F.style.height="99px",F.style.position="absolute",F.style.overflow="scroll",F.className="scrollDiv",R.appendChild(F),L=F.offsetWidth-F.clientWidth,R.removeChild(F)}let j,N,_;if(t.autoHeight)_=!1,N=Math.round(O)>Math.round(o.current.width),j={width:o.current.width,height:i.currentPageTotalHeight+(N?L:0)};else{j={width:o.current.width,height:Math.max(o.current.height-c,0)};const A=iCe({content:{width:Math.round(O),height:i.currentPageTotalHeight},container:{width:Math.round(j.width),height:j.height-$.top-$.bottom},scrollBarSize:L});_=A.hasScrollY,N=A.hasScrollX}const T={width:j.width-(_?L:0),height:j.height-(N?L:0)},B={viewportOuterSize:j,viewportInnerSize:T,hasScrollX:N,hasScrollY:_,scrollBarSize:L},V=s.current;s.current=B,(B.viewportInnerSize.width!==(V==null?void 0:V.viewportInnerSize.width)||B.viewportInnerSize.height!==(V==null?void 0:V.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",B.viewportInnerSize)},[e,t.scrollbarSize,t.autoHeight,i.currentPageTotalHeight,c]),[p,h]=u.useState(),y=u.useMemo(()=>Va(h,60),[]),v=u.useRef();Ft(()=>{p&&(f(),e.current.publishEvent("debouncedResize",o.current))},[e,p,f]);const m=u.useCallback(()=>{e.current.computeSizeAndPublishResizeEvent()},[e]),C=u.useCallback(()=>s.current,[]),w=u.useCallback(()=>{const I=e.current.getRootDimensions();if(!I)return 0;const R=Ay(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const $=e.current.getRenderContext(),L=$.lastRowIndex-$.firstRowIndex;return Math.min(L-1,R.rows.length)}const O=Math.floor(I.viewportInnerSize.height/a);return Math.min(O,R.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,a]),b=u.useCallback(()=>{var I,R,O;const $=(I=e.current.mainElementRef)==null?void 0:I.current;if(!$)return;const j=ts($).getComputedStyle($),N=parseFloat(j.height)||0,_=parseFloat(j.width)||0,T=N!==((R=v.current)==null?void 0:R.height),B=_!==((O=v.current)==null?void 0:O.width);if(!v.current||T||B){const V={width:_,height:N};e.current.publishEvent("resize",V),v.current=V}},[e]),x={resize:m,getRootDimensions:C},P={getViewportPageSize:w,updateGridDimensionsRef:f,computeSizeAndPublishResizeEvent:b};Nt(e,x,"public"),Nt(e,P,"private");const k=u.useRef(!0),E=u.useCallback(I=>{o.current=I;const R=/jsdom/.test(window.navigator.userAgent);if(I.height===0&&!r.current&&!t.autoHeight&&!R&&(n.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
613
+ `)),r.current=!0),I.width===0&&!r.current&&!R&&(n.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
614
+ `)),r.current=!0),k.current){h(I),k.current=!1;return}y(I)},[t.autoHeight,y,n]);Ft(()=>f(),[f]),kn(e,"sortedRowsSet",f),kn(e,"paginationModelChange",f),kn(e,"columnsChange",f),ft(e,"resize",E),kn(e,"debouncedResize",t.onResize)}const aCe=["style"],cCe=["style"];function fd(e,t,n=0,r=t.length){if(t.length<=0)return-1;if(n>=r)return n;const o=n+Math.floor((r-n)/2),s=t[o];return e<=s?fd(e,t,n,o):fd(e,t,o+1,r)}function uCe(e,t,n){let r=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=r,r*=2;return fd(e,t,Math.floor(n/2),Math.min(n,t.length))}const ca=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[zd(e-n,r,o),zd(t+n,r,o)],MB=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,dCe={maxSize:3},fCe=e=>{var t,n;const r=Ga(),o=dt(),s=st(r,Dr),i=st(r,o1e),l=st(r,iB),{ref:a,onRenderZonePositioning:c,renderZoneMinColumnIndex:f=0,renderZoneMaxColumnIndex:p=s.length,getRowProps:h}=e,y=Fn(),v=st(r,jd),m=st(r,VE),C=st(r,Uo),w=st(r,_y),b=st(r,_h),x=st(r,Dy),P=Qc(r,o),k=u.useRef(null),E=u.useRef(null),I=Et(a,E),[R,O]=u.useState(null),$=u.useRef(R),L=u.useRef({top:0,left:0}),[j,N]=u.useState({width:null,height:null}),_=u.useRef(m),[T,B]=u.useState(null),V=u.useRef(Object.create(null)),A=u.useRef(),F=u.useRef(),H=u.useRef($0((fe,ke,ve,Re,ie,ue)=>{let we;const xe=fe.slice(ke,ve);return ue>-1&&(ke>ue&&ue>=Re||ve<ue&&ue<ie)&&(we=ue),{focusedCellColumnIndexNotInRange:we,renderedColumns:xe}},dCe)),K=u.useMemo(()=>C!==null?s.findIndex(fe=>fe.field===C.field):-1,[C,s]),Y=u.useCallback(fe=>{var ke,ve;const Re=r.current.getLastMeasuredRowIndex();let ie=Re===1/0;(ke=P.range)!=null&&ke.lastRowIndex&&!ie&&(ie=Re>=P.range.lastRowIndex);const ue=zd(Re-(((ve=P.range)==null?void 0:ve.firstRowIndex)||0),0,b.positions.length);return ie||b.positions[ue]>=fe?fd(fe,b.positions):uCe(fe,b.positions,ue)},[r,(t=P.range)==null?void 0:t.firstRowIndex,(n=P.range)==null?void 0:n.lastRowIndex,b.positions]),J=u.useCallback(()=>{if(!i)return{firstRowIndex:0,lastRowIndex:P.rows.length,firstColumnIndex:0,lastColumnIndex:s.length};const{top:fe,left:ke}=L.current,ve=Math.min(Y(fe),b.positions.length-1),Re=o.autoHeight?ve+P.rows.length:Y(fe+j.height);let ie=0,ue=v.length;if(l){let we=!1;const[xe,Me]=ca({firstIndex:ve,lastIndex:Re,minFirstIndex:0,maxLastIndex:P.rows.length,buffer:o.rowBuffer});for(let Oe=xe;Oe<Me&&!we;Oe+=1){const Be=P.rows[Oe];we=r.current.rowHasAutoHeight(Be.id)}we||(ie=fd(Math.abs(ke),v),ue=fd(Math.abs(ke)+j.width,v))}return{firstRowIndex:ve,lastRowIndex:Re,firstColumnIndex:ie,lastColumnIndex:ue}},[i,l,Y,b.positions.length,o.autoHeight,o.rowBuffer,P.rows,v,s.length,r,j]);Ft(()=>{i?(E.current.scrollLeft=0,E.current.scrollTop=0):k.current.style.transform="translate3d(0px, 0px, 0px)"},[i]),Ft(()=>{N({width:E.current.clientWidth,height:E.current.clientHeight})},[b.currentPageTotalHeight]);const Q=u.useCallback(()=>{E.current&&N({width:E.current.clientWidth,height:E.current.clientHeight})},[]);ft(r,"debouncedResize",Q);const X=u.useCallback(fe=>{const[ke,ve]=ca({firstIndex:fe.firstRowIndex,lastIndex:fe.lastRowIndex,minFirstIndex:0,maxLastIndex:P.rows.length,buffer:o.rowBuffer}),[Re]=ca({firstIndex:fe.firstColumnIndex,lastIndex:fe.lastColumnIndex,minFirstIndex:f,maxLastIndex:p,buffer:o.columnBuffer}),ie=TS({firstColumnToRender:Re,apiRef:r,firstRowToRender:ke,lastRowToRender:ve,visibleRows:P.rows}),ue=y.direction==="ltr"?1:-1,we=_h(r.current.state).positions[ke],xe=ue*jd(r)[ie];k.current.style.transform=`translate3d(${xe}px, ${we}px, 0px)`,typeof c=="function"&&c({top:we,left:xe})},[r,P.rows,c,f,p,o.columnBuffer,o.rowBuffer,y.direction]),ee=u.useCallback(()=>$.current,[]),oe=u.useCallback(fe=>{if($.current&&MB(fe,$.current)){X(fe);return}O(fe),X(fe);const[ke,ve]=ca({firstIndex:fe.firstRowIndex,lastIndex:fe.lastRowIndex,minFirstIndex:0,maxLastIndex:P.rows.length,buffer:o.rowBuffer});r.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:ke,lastRowToRender:ve}),$.current=fe},[r,O,$,P.rows.length,o.rowBuffer,X]);Ft(()=>{if(j.width==null)return;const fe=J();oe(fe);const{top:ke,left:ve}=L.current,Re={top:ke,left:ve,renderContext:fe};r.current.publishEvent("scrollPositionChange",Re)},[r,J,j.width,oe]);const Z=qe(fe=>{const{scrollTop:ke,scrollLeft:ve}=fe.currentTarget;if(L.current.top=ke,L.current.left=ve,!$.current||ke<0||y.direction==="ltr"&&ve<0||y.direction==="rtl"&&ve>0)return;const Re=i?J():$.current,ie=Math.abs(Re.firstRowIndex-$.current.firstRowIndex),ue=Math.abs(Re.lastRowIndex-$.current.lastRowIndex),we=Math.abs(Re.firstColumnIndex-$.current.firstColumnIndex),xe=Math.abs(Re.lastColumnIndex-$.current.lastColumnIndex),Me=ie>=o.rowThreshold||ue>=o.rowThreshold||we>=o.columnThreshold||xe>=o.columnThreshold||_.current!==m;r.current.publishEvent("scrollPositionChange",{top:ke,left:ve,renderContext:Me?Re:$.current},fe),Me&&(Vh.flushSync(()=>{oe(Re)}),_.current=m)}),pe=qe(fe=>{r.current.publishEvent("virtualScrollerWheel",{},fe)}),ne=qe(fe=>{r.current.publishEvent("virtualScrollerTouchMove",{},fe)}),re=u.useMemo(()=>C!==null?P.rows.findIndex(fe=>fe.id===C.id):-1,[C,P.rows]);ft(r,"rowMouseOver",(fe,ke)=>{var ve;ke.currentTarget.contains(ke.relatedTarget)||B((ve=fe.id)!=null?ve:null)}),ft(r,"rowMouseOut",(fe,ke)=>{ke.currentTarget.contains(ke.relatedTarget)||B(null)});const me=(fe={renderContext:R})=>{var ke;const{onRowRender:ve,renderContext:Re,minFirstColumn:ie=f,maxLastColumn:ue=p,availableSpace:we=j.width,rowIndexOffset:xe=0,position:Me="center"}=fe;if(!Re||we==null)return null;const Oe=i?o.rowBuffer:0,Be=i?o.columnBuffer:0,[Ke,Ye]=ca({firstIndex:Re.firstRowIndex,lastIndex:Re.lastRowIndex,minFirstIndex:0,maxLastIndex:P.rows.length,buffer:Oe}),Fe=[];if(fe.rows)fe.rows.forEach(gt=>{Fe.push(gt),r.current.calculateColSpan({rowId:gt.id,minFirstColumn:ie,maxLastColumn:ue,columns:s})});else{if(!P.range)return null;for(let gt=Ke;gt<Ye;gt+=1){const Ot=P.rows[gt];Fe.push(Ot),r.current.calculateColSpan({rowId:Ot.id,minFirstColumn:ie,maxLastColumn:ue,columns:s})}}let mt=!1;if(re>-1){const gt=P.rows[re];(Ke>re||Ye<re)&&(mt=!0,re>Ke?Fe.push(gt):Fe.unshift(gt),r.current.calculateColSpan({rowId:gt.id,minFirstColumn:ie,maxLastColumn:ue,columns:s}))}const[Zt,Pt]=ca({firstIndex:Re.firstColumnIndex,lastIndex:Re.lastColumnIndex,minFirstIndex:ie,maxLastIndex:ue,buffer:Be}),Ve=TS({firstColumnToRender:Zt,apiRef:r,firstRowToRender:Ke,lastRowToRender:Ye,visibleRows:P.rows});let ht=!1;(Ve>K||Pt<K)&&(ht=!0);const{focusedCellColumnIndexNotInRange:Ne,renderedColumns:Xe}=H.current(s,Ve,Pt,ie,ue,ht?K:-1),vt=((ke=o.slotProps)==null?void 0:ke.row)||{},{style:wt}=vt,Tt=le(vt,aCe);(A.current!==h||F.current!==wt)&&(V.current=Object.create(null));const Qt=[];let Sn=!1;for(let gt=0;gt<Fe.length;gt+=1){var yn;const{id:Ot,model:Mr}=Fe[gt],dr=mt&&C.id===Ot,jl=mt?Ke+gt===P.rows.length:Ke+gt===P.rows.length-1,ho=r.current.rowHasAutoHeight(Ot)?"auto":r.current.unstable_getRowHeight(Ot);let Tn;x[Ot]==null?Tn=!1:Tn=r.current.isRowSelectable(Ot),ve&&ve(Ot);const en=C!==null&&C.id===Ot?C.field:null,lr=Ne!==void 0&&s[Ne],ar=lr&&en?[lr,...Xe]:Xe;let mo=null;w!==null&&w.id===Ot&&(mo=r.current.getCellParams(Ot,w.field).cellMode==="view"?w.field:null);const Ci=typeof h=="function"&&h(Ot,Mr)||{},{style:Ao}=Ci,fs=le(Ci,cCe);if(!V.current[Ot]){const Zr=S({},Ao,wt);V.current[Ot]=Zr}let go=xe+((P==null||(yn=P.range)==null?void 0:yn.firstRowIndex)||0)+Ke+gt;mt&&(C==null?void 0:C.id)===Ot?(go=re,Sn=!0):Sn&&(go-=1),Qt.push(D.jsx(o.slots.row,S({row:Mr,rowId:Ot,focusedCellColumnIndexNotInRange:Ne,isNotVisible:dr,rowHeight:ho,focusedCell:en,tabbableCell:mo,renderedColumns:ar,visibleColumns:s,firstColumnToRender:Ve,lastColumnToRender:Pt,selected:Tn,index:go,containerWidth:we,isLastVisible:jl,position:Me},fs,Tt,{hovered:T===Ot,style:V.current[Ot]}),Ot))}return A.current=h,F.current=wt,Qt},ce=j.width&&m>=j.width,Ce=u.useMemo(()=>{const fe=Math.max(b.currentPageTotalHeight,1);let ke=!1;E!=null&&E.current&&fe<=(E==null?void 0:E.current.clientHeight)&&(ke=!0);const ve={width:ce?m:"auto",height:fe,minHeight:ke?"100%":"auto"};return o.autoHeight&&P.rows.length===0&&(ve.height=F3(r,o.rowHeight)),ve},[r,E,m,b.currentPageTotalHeight,ce,o.autoHeight,o.rowHeight,P.rows.length]);u.useEffect(()=>{r.current.publishEvent("virtualScrollerContentSizeChange")},[r,Ce]);const Ee=u.useMemo(()=>{const fe={};return ce||(fe.overflowX="hidden"),o.autoHeight&&(fe.overflowY="hidden"),fe},[ce,o.autoHeight]);return r.current.register("private",{getRenderContext:ee}),{renderContext:R,updateRenderZonePosition:X,getRows:me,getRootProps:(fe={})=>S({ref:I,onScroll:Z,onWheel:pe,onTouchMove:ne},fe,{style:fe.style?S({},fe.style,Ee):Ee,role:"presentation"}),getContentProps:({style:fe}={})=>({style:fe?S({},fe,Ce):Ce,role:"presentation"}),getRenderZoneProps:()=>({ref:k,role:"rowgroup"})}},pCe=e=>{const{classes:t,headerAlign:n,isDragging:r,showColumnBorder:o,groupId:s}=e;return _e({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",o&&"columnHeader--showColumnBorder",o&&"columnHeader--withRightBorder","withBorderColor",s===null?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},Ut,t)};function hCe(e){var t;const{groupId:n,width:r,depth:o,maxDepth:s,fields:i,height:l,colIndex:a,hasFocus:c,tabIndex:f,isLastColumn:p}=e,h=dt(),y=u.useRef(null),v=Ht(),m=st(v,I3),C=n?m[n]:{},{headerName:w=n!=null?n:"",description:b="",headerAlign:x=void 0}=C;let P;const k=n&&((t=m[n])==null?void 0:t.renderHeaderGroup),E=u.useMemo(()=>({groupId:n,headerName:w,description:b,depth:o,maxDepth:s,fields:i,colIndex:a,isLastColumn:p}),[n,w,b,o,s,i,a,p]);n&&k&&(P=k(E));const I=h.showColumnVerticalBorder,R=S({},e,{classes:h.classes,showColumnBorder:I,headerAlign:x,depth:o,isDragging:!1}),O=w!=null?w:n,$=Yt(),L=n===null?`empty-group-cell-${$}`:n,j=pCe(R);u.useLayoutEffect(()=>{if(c){const V=y.current.querySelector('[tabindex="0"]')||y.current;V==null||V.focus()}},[v,c]);const N=u.useCallback(B=>V=>{um(V)||v.current.publishEvent(B,E,V)},[v,E]),_=u.useMemo(()=>({onKeyDown:N("columnGroupHeaderKeyDown"),onFocus:N("columnGroupHeaderFocus"),onBlur:N("columnGroupHeaderBlur")}),[N]),T=typeof C.headerClassName=="function"?C.headerClassName(E):C.headerClassName;return D.jsx(K3,S({ref:y,classes:j,columnMenuOpen:!1,colIndex:a,height:l,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:f,isDraggable:!1,headerComponent:P,headerClassName:T,description:b,elementId:L,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:O,"aria-colspan":i.length,"data-fields":`|-${i.join("-|-")}-|`},_))}const CD=se("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function mCe(e){return!!e.target}const gCe=e=>{const{innerRef:t,minColumnIndex:n=0,visibleColumns:r,sortColumnLookup:o,filterColumnLookup:s,columnPositions:i,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:f,densityFactor:p,headerGroupingMaxDepth:h,columnMenuState:y,columnVisibility:v,columnGroupsHeaderStructure:m,hasOtherElementInTabSequence:C}=e,w=Fn(),[b,x]=u.useState(""),[P,k]=u.useState(""),E=Ga(),I=st(E,iB),R=dt(),O=u.useRef(null),$=Et(t,O),[L,j]=u.useState(null),N=u.useRef(L),_=u.useRef(0),T=Qc(E,R),B=ok(E,R.columnHeaderHeight),V=Math.floor(R.columnHeaderHeight*p),A=u.useCallback(ne=>{L&&ne&&MB(L,ne)||j(ne)},[L]);u.useEffect(()=>{E.current.columnHeadersContainerElementRef.current.scrollLeft=0},[E]);const F=u.useRef($0(dwe,{equalityCheck:(ne,re)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every(me=>ne[me]===re[me])})),H=u.useCallback(ne=>{const[re,me]=ca({firstIndex:ne.firstRowIndex,lastIndex:ne.lastRowIndex,minFirstIndex:0,maxLastIndex:T.rows.length,buffer:R.rowBuffer}),ce=F.current({firstColumnIndex:ne.firstColumnIndex,minColumnIndex:n,columnBuffer:R.columnBuffer,firstRowToRender:re,lastRowToRender:me,apiRef:E,visibleRows:T.rows}),Ce=w.direction==="ltr"?1:-1,Ee=ce>0?_.current-Ce*i[ce]:_.current;O.current.style.transform=`translate3d(${-Ee}px, 0px, 0px)`},[i,n,R.columnBuffer,E,T.rows,R.rowBuffer,w.direction]);u.useLayoutEffect(()=>{L&&H(L)},[L,H]);const K=u.useCallback(({left:ne,renderContext:re=null},me)=>{var ce,Ce;if(!O.current||_.current===ne&&((ce=N.current)==null?void 0:ce.firstColumnIndex)===(re==null?void 0:re.firstColumnIndex)&&((Ce=N.current)==null?void 0:Ce.lastColumnIndex)===(re==null?void 0:re.lastColumnIndex))return;_.current=ne;let Ee=!1;re!==N.current||!N.current?(mCe(me)?(Vh.flushSync(()=>{A(re)}),Ee=!0):A(re),N.current=re):Ee=!0,re&&Ee&&H(re)},[H,A]),Y=u.useCallback(ne=>k(ne.field),[]),J=u.useCallback(()=>k(""),[]),Q=u.useCallback(ne=>x(ne.field),[]),X=u.useCallback(()=>x(""),[]);ft(E,"columnResizeStart",Y),ft(E,"columnResizeStop",J),ft(E,"columnHeaderDragStart",Q),ft(E,"columnHeaderDragEnd",X),ft(E,"scrollPositionChange",K);const ee=ne=>{const{renderContext:re=L,minFirstColumn:me=n,maxLastColumn:ce=r.length}=ne||{};if(!re)return null;const[Ce,Ee]=ca({firstIndex:re.firstRowIndex,lastIndex:re.lastRowIndex,minFirstIndex:0,maxLastIndex:T.rows.length,buffer:R.rowBuffer}),fe=I?F.current({firstColumnIndex:re.firstColumnIndex,minColumnIndex:me,columnBuffer:R.columnBuffer,apiRef:E,firstRowToRender:Ce,lastRowToRender:Ee,visibleRows:T.rows}):0,ke=I?Math.min(re.lastColumnIndex+R.columnBuffer,ce):ce;return{renderedColumns:r.slice(fe,ke),firstColumnToRender:fe,lastColumnToRender:ke,minFirstColumn:me,maxLastColumn:ce}},oe=(ne,re={})=>{const me=ee(ne);if(me==null)return null;const{renderedColumns:ce,firstColumnToRender:Ce}=me,Ee=[];for(let fe=0;fe<ce.length;fe+=1){const ke=ce[fe],ve=Ce+fe,Re=ve===0,ie=l!==null&&l.field===ke.field||Re&&!C?0:-1,ue=c!==null&&c.field===ke.field,we=y.open&&y.field===ke.field;Ee.push(D.jsx(Iye,S({},o[ke.field],{columnMenuOpen:we,filterItemsCounter:s[ke.field]&&s[ke.field].length,headerHeight:V,isDragging:ke.field===b,colDef:ke,colIndex:ve,isResizing:P===ke.field,hasFocus:ue,tabIndex:ie},re),ke.field))}return D.jsx(CD,{role:"row","aria-rowindex":h+1,ownerState:R,children:Ee})},Z=ne=>{if(h===0)return null;const re=ee(ne);if(re==null||re.renderedColumns.length===0)return null;const{firstColumnToRender:me,lastColumnToRender:ce}=re,Ce=[],Ee=[];for(let ve=0;ve<h;ve+=1){var fe,ke;const Re=m[ve],ie=r[me].field,ue=(fe=E.current.unstable_getColumnGroupPath(ie)[ve])!=null?fe:null,we=Re.findIndex(({groupId:Pt,columnFields:Ve})=>Pt===ue&&Ve.includes(ie)),xe=r[ce-1].field,Me=(ke=E.current.unstable_getColumnGroupPath(xe)[ve])!=null?ke:null,Oe=Re.findIndex(({groupId:Pt,columnFields:Ve})=>Pt===Me&&Ve.includes(xe)),Be=Re.slice(we,Oe+1).map(Pt=>S({},Pt,{columnFields:Pt.columnFields.filter(Ve=>v[Ve]!==!1)})).filter(Pt=>Pt.columnFields.length>0),Ke=Be[0].columnFields.indexOf(ie),Fe=Be[0].columnFields.slice(0,Ke).reduce((Pt,Ve)=>{var ht;const Ne=E.current.getColumn(Ve);return Pt+((ht=Ne.computedWidth)!=null?ht:0)},0);let mt=me;const Zt=Be.map(({groupId:Pt,columnFields:Ve})=>{const ht=f!==null&&f.depth===ve&&Ve.includes(f.field),Ne=a!==null&&a.depth===ve&&Ve.includes(a.field)?0:-1,Xe={groupId:Pt,width:Ve.reduce((vt,wt)=>vt+E.current.getColumn(wt).computedWidth,0),fields:Ve,colIndex:mt,hasFocus:ht,tabIndex:Ne};return mt+=Ve.length,Xe});Ee.push({leftOverflow:Fe,elements:Zt})}return Ee.forEach((ve,Re)=>{Ce.push(D.jsx(CD,{style:{height:`${V}px`,transform:`translateX(-${ve.leftOverflow}px)`},role:"row","aria-rowindex":Re+1,ownerState:R,children:ve.elements.map(({groupId:ie,width:ue,fields:we,colIndex:xe,hasFocus:Me,tabIndex:Oe},Be)=>D.jsx(hCe,{groupId:ie,width:ue,fields:we,colIndex:xe,depth:Re,isLastColumn:xe===r.length-we.length,maxDepth:Ee.length,height:V,hasFocus:Me,tabIndex:Oe},Be))},Re))}),Ce},pe={minHeight:B,maxHeight:B,lineHeight:`${V}px`};return{renderContext:L,getColumnHeaders:oe,getColumnsToRender:ee,getColumnGroupHeaders:Z,isDragging:!!b,getRootProps:(ne={})=>S({style:pe},ne),getInnerProps:()=>({ref:$,role:"rowgroup"}),headerHeight:V}},vCe=["className"],yCe=e=>{const{classes:t}=e;return _e({root:["columnHeaders","withBorderColor"]},Ut,t)},bCe=Ir("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({position:"relative",overflow:"hidden",display:"flex",alignItems:"center",boxSizing:"border-box",borderBottom:"1px solid",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),wCe=u.forwardRef(function(t,n){const{className:r}=t,o=le(t,vCe),s=dt(),i=yCe(s);return D.jsx(bCe,S({ref:n,className:be(r,i.root),ownerState:s},o,{role:"presentation"}))}),CCe=["isDragging","className"],xCe=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return _e({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},Ut,r)},SCe=Ir("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${de.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})(()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${de.columnHeaderDropZone} .${de.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${de["columnHeadersInner--scrollable"]} .${de.columnHeader}:last-child`]:{borderRight:"none"}})),PCe=u.forwardRef(function(t,n){var r,o;const{isDragging:s,className:i}=t,l=le(t,CCe),a=Ht(),c=dt(),f=S({},c,{isDragging:s,hasScrollX:(r=(o=a.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1}),p=xCe(f);return D.jsx(SCe,S({ref:n,className:be(i,p.root),ownerState:f},l))}),ECe=["innerRef","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnPositions","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","densityFactor","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],kCe=u.forwardRef(function(t,n){const{innerRef:r,visibleColumns:o,sortColumnLookup:s,filterColumnLookup:i,columnPositions:l,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:c,columnHeaderFocus:f,columnGroupHeaderFocus:p,densityFactor:h,headerGroupingMaxDepth:y,columnMenuState:v,columnVisibility:m,columnGroupsHeaderStructure:C,hasOtherElementInTabSequence:w}=t,b=le(t,ECe),{isDragging:x,getRootProps:P,getInnerProps:k,getColumnHeaders:E,getColumnGroupHeaders:I}=gCe({innerRef:r,visibleColumns:o,sortColumnLookup:s,filterColumnLookup:i,columnPositions:l,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:c,columnHeaderFocus:f,columnGroupHeaderFocus:p,densityFactor:h,headerGroupingMaxDepth:y,columnMenuState:v,columnVisibility:m,columnGroupsHeaderStructure:C,hasOtherElementInTabSequence:w});return D.jsx(wCe,S({ref:n},P(b),{children:D.jsxs(PCe,S({isDragging:x},k(),{children:[I(),E()]}))}))}),ICe=B0(kCe),MCe=u.forwardRef(function(t,n){const o=Ht().current.getLocaleText("noResultsOverlayLabel");return D.jsx(YE,S({ref:n},t,{children:o}))}),_Ce=["sortingOrder"],TCe=u.memo(function(t){const{sortingOrder:n}=t,r=le(t,_Ce),o=dt(),[s]=n,i=s==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return i?D.jsx(i,S({},r)):null}),$Ce=["native"];function RCe(e){let{native:t}=e,n=le(e,$Ce);return t?D.jsx("option",S({},n)):D.jsx(Pr,S({},n))}const OCe={BooleanCellTrueIcon:E1e,BooleanCellFalseIcon:SC,ColumnMenuIcon:C1e,OpenFilterButtonIcon:h1e,FilterPanelDeleteIcon:SC,ColumnFilteredIcon:eD,ColumnSelectorIcon:g1e,ColumnUnsortedIcon:TCe,ColumnSortedAscendingIcon:QO,ColumnSortedDescendingIcon:XO,ColumnResizeIcon:v1e,DensityCompactIcon:y1e,DensityStandardIcon:b1e,DensityComfortableIcon:w1e,ExportIcon:P1e,MoreActionsIcon:k1e,TreeDataCollapseIcon:JO,TreeDataExpandIcon:ZO,GroupingCriteriaCollapseIcon:JO,GroupingCriteriaExpandIcon:ZO,DetailPanelExpandIcon:tD,DetailPanelCollapseIcon:x1e,RowReorderIcon:nD,QuickFilterIcon:m1e,QuickFilterClearIcon:SC,ColumnMenuHideIcon:I1e,ColumnMenuSortAscendingIcon:QO,ColumnMenuSortDescendingIcon:XO,ColumnMenuFilterIcon:eD,ColumnMenuManageColumnsIcon:M1e,ColumnMenuClearIcon:_1e,LoadIcon:S1e,FilterPanelAddIcon:tD,FilterPanelRemoveAllIcon:T1e,ColumnReorderIcon:nD},DCe=S({},OCe,{BaseCheckbox:F4,BaseTextField:Wa,BaseFormControl:G4,BaseSelect:z2,BaseSwitch:u5,BaseButton:Yn,BaseIconButton:xr,BaseInputAdornment:Tl,BaseTooltip:Nl,BasePopper:Ua,BaseInputLabel:J4,BaseSelectOption:RCe,BaseChip:tm}),ACe=DCe,LCe=S({},ACe,{Cell:SS,SkeletonCell:Kve,ColumnHeaderFilterIconButton:i1e,ColumnMenu:W1e,ColumnHeaders:ICe,Footer:J0e,FooterRowCount:abe,Toolbar:null,PreferencesPanel:b0e,LoadingOverlay:tbe,NoResultsOverlay:MCe,NoRowsOverlay:nbe,Pagination:obe,FilterPanel:j0e,ColumnsPanel:p0e,Panel:y0e,Row:Ibe}),_B=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>S({},t,{[`${n.charAt(0).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function FCe({defaultSlots:e,slots:t,components:n}){const r=t!=null?t:n?_B(n):null;if(!r||Object.keys(r).length===0)return e;const o=S({},e);return Object.keys(r).forEach(s=>{const i=s;r[i]!==void 0&&(o[i]=r[i])}),o}const NCe=["components","componentsProps"];function BCe(e){var t;const n=Object.keys(e);if(!n.some(s=>s.startsWith("aria-")||s.startsWith("data-")))return e;const r={},o=(t=e.forwardedProps)!=null?t:{};for(let s=0;s<n.length;s+=1){const i=n[s];i.startsWith("aria-")||i.startsWith("data-")?o[i]=e[i]:r[i]=e[i]}return r.forwardedProps=o,r}function jCe(e){return u.useMemo(()=>{const{components:t,componentsProps:n}=e,r=le(e,NCe);return[t,n,BCe(r)]},[e])}const zCe={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleRowSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},z0={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,rowSelection:!0,density:"standard",disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleRowSelection:!1,disableMultipleColumnsSorting:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:qi.Cell,filterMode:"client",filterDebounceMs:150,columnHeaderHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:"client",rowHeight:52,pageSizeOptions:[25,50,100],rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingOrder:["asc","desc",null],sortingMode:"client",throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1,unstable_ignoreValueFormatterDuringExport:!1,clipboardCopyCellDelimiter:" ",rowPositionsDebounceMs:166},VCe=_B(LCe),HCe=e=>{const[t,n,r]=jCe(We({props:e,name:"MuiDataGrid"})),o=u.useMemo(()=>S({},IB,r.localeText),[r.localeText]),s=u.useMemo(()=>FCe({defaultSlots:VCe,slots:r.slots,components:t}),[t,r.slots]);return u.useMemo(()=>{var i;return S({},z0,r,{localeText:o,slots:s,slotProps:(i=r.slotProps)!=null?i:n},zCe)},[r,o,s,n])},UCe=e=>S({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),xD=(e,t,n)=>typeof e=="number"&&e>0?e:t,WCe=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,s=u.useRef(Object.create(null)),i=u.useRef(-1),l=u.useRef(!1),a=st(e,df),c=st(e,wr),f=st(e,J3),p=st(e,Es),h=Qc(e,t),y=st(e,uf),v=xD(t.rowHeight,z0.rowHeight),m=Math.floor(v*a),C=u.useCallback(()=>{var j,N;l.current=!1;const _=V=>{s.current[V.id]||(s.current[V.id]={sizes:{baseCenter:m},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:A,needsFirstMeasurement:F,sizes:H}=s.current[V.id];let K=typeof m=="number"&&m>0?m:52;const Y=H.baseCenter;if(A)K=Y;else if(n){const oe=n(S({},V,{densityFactor:a}));if(oe==="auto"){if(F){const Z=o?o(S({},V,{densityFactor:a})):m;K=Z!=null?Z:m}else K=Y;l.current=!0,s.current[V.id].autoHeight=!0}else K=xD(oe,m),s.current[V.id].needsFirstMeasurement=!1,s.current[V.id].autoHeight=!1}else s.current[V.id].needsFirstMeasurement=!1;const J={};for(const oe in H)/^base[A-Z]/.test(oe)&&(J[oe]=H[oe]);if(J.baseCenter=K,r){var Q,X;const oe=e.current.getRowIndexRelativeToVisibleRows(V.id),Z=r(S({},V,{isFirstVisible:oe===0,isLastVisible:oe===h.rows.length-1,indexRelativeToCurrentPage:oe}));J.spacingTop=(Q=Z.top)!=null?Q:0,J.spacingBottom=(X=Z.bottom)!=null?X:0}const ee=e.current.unstable_applyPipeProcessors("rowHeight",J,V);return s.current[V.id].sizes=ee,ee},T=[],B=h.rows.reduce((V,A)=>{T.push(V);let F=0,H=0;const K=_(A);for(const Y in K){const J=K[Y];/^base[A-Z]/.test(Y)?F=J>F?J:F:H+=J}return V+F+H},0);y==null||(j=y.top)==null||j.forEach(V=>{_(V)}),y==null||(N=y.bottom)==null||N.forEach(V=>{_(V)}),e.current.setState(V=>S({},V,{rowsMeta:{currentPageTotalHeight:B,positions:T}})),l.current||(i.current=1/0),e.current.forceUpdate()},[e,h.rows,m,n,r,o,y,a]),w=u.useCallback(j=>{const N=s.current[j];return N?N.sizes.baseCenter:m},[m]),b=j=>{var N;return(N=s.current[j])==null?void 0:N.sizes},x=u.useCallback((j,N)=>{s.current[j].sizes.baseCenter=N,s.current[j].isResized=!0,s.current[j].needsFirstMeasurement=!1,C()},[C]),P=u.useMemo(()=>Va(C,t.rowPositionsDebounceMs),[C,t.rowPositionsDebounceMs]),k=u.useCallback((j,N,_)=>{if(!s.current[j]||!s.current[j].autoHeight)return;const T=s.current[j].sizes[`base${Se(_)}`]!==N;s.current[j].needsFirstMeasurement=!1,s.current[j].sizes[`base${Se(_)}`]=N,T&&P()},[P]),E=u.useCallback(j=>{var N;return((N=s.current[j])==null?void 0:N.autoHeight)||!1},[]),I=u.useCallback(()=>i.current,[]),R=u.useCallback(j=>{l.current&&j>i.current&&(i.current=j)},[]),O=u.useCallback(()=>{s.current={},C()},[C]);u.useEffect(()=>{C()},[m,c,f,p,C]),rk(e,"rowHeight",C);const $={unstable_setLastMeasuredRowIndex:R,unstable_getRowHeight:w,unstable_getRowInternalSizes:b,unstable_setRowHeight:x,unstable_storeRowHeightMeasurement:k,resetRowHeights:O},L={getLastMeasuredRowIndex:I,rowHasAutoHeight:E};Nt(e,$,"public"),Nt(e,L,"private")},GCe=e=>{const t=u.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=u.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(i=>{i()}),e.current.forceUpdate()},[e]);Nt(e,{exportState:t,restoreState:n},"public")},KCe=e=>{const t=u.useRef({}),n=u.useCallback((c,f,p)=>{const h=t.current;h[c]||(h[c]={}),h[c][f]=p},[]),r=u.useCallback((c,f)=>{var p;return(p=t.current[c])==null?void 0:p[f]},[]),o=u.useCallback(c=>{const{columnIndex:f,rowId:p,minFirstColumnIndex:h,maxLastColumnIndex:y,columns:v}=c,m=v.length,C=v[f],w=typeof C.colSpan=="function"?C.colSpan(e.current.getCellParams(p,C.field)):C.colSpan;if(!w||w===1)return n(p,f,{spannedByColSpan:!1,cellProps:{colSpan:1,width:C.computedWidth}}),{colSpan:1};let b=C.computedWidth;for(let x=1;x<w;x+=1){const P=f+x;if(P>=h&&P<y){const k=v[P];b+=k.computedWidth,n(p,f+x,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(f+w,m-1),leftVisibleCellIndex:f})}n(p,f,{spannedByColSpan:!1,cellProps:{colSpan:w,width:b}})}return{colSpan:w}},[e,n]),s=u.useCallback(({rowId:c,minFirstColumn:f,maxLastColumn:p,columns:h})=>{for(let y=f;y<p;y+=1){const v=o({columnIndex:y,rowId:c,minFirstColumnIndex:f,maxLastColumnIndex:p,columns:h});v.colSpan>1&&(y+=v.colSpan-1)}},[o]),i={unstable_getCellColSpanInfo:r},l={calculateColSpan:s};Nt(e,i,"public"),Nt(e,l,"private");const a=u.useCallback(()=>{t.current={}},[]);ft(e,"columnOrderChange",a)},TB=(e,t,n)=>{if(N3(e)){if(n[e.field]!==void 0)throw new Error(["MUI: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
615
+ `));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(s=>{TB(s,[...t,r],n)})},$S=e=>{if(!e)return{};const t={};return e.forEach(n=>{TB(n,[],t)}),t},RS=(e,t,n)=>{const r=a=>{var c;return(c=t[a])!=null?c:[]},o=[],s=Math.max(...e.map(a=>r(a).length)),i=(a,c,f)=>Mc(r(a).slice(0,f+1),r(c).slice(0,f+1)),l=(a,c)=>!!(n!=null&&n.left&&n.left.includes(a)&&!n.left.includes(c)||n!=null&&n.right&&!n.right.includes(a)&&n.right.includes(c));for(let a=0;a<s;a+=1){const c=e.reduce((f,p)=>{var h;const y=(h=r(p)[a])!=null?h:null;if(f.length===0)return[{columnFields:[p],groupId:y}];const v=f[f.length-1],m=v.columnFields[v.columnFields.length-1];return v.groupId!==y||!i(m,p,a)||l(m,p)?[...f,{columnFields:[p],groupId:y}]:[...f.slice(0,f.length-1),{columnFields:[...v.columnFields,p],groupId:y}]},[]);o.push(c)}return o},qCe=["groupId","children"],sk=e=>{let t={};return e.forEach(n=>{if(N3(n))return;const{groupId:r,children:o}=n,s=le(n,qCe);if(!r)throw new Error("MUI: An element of the columnGroupingModel does not have either `field` or `groupId`.");o||console.warn(`MUI: group groupId=${r} has no children.`);const i=S({},s,{groupId:r}),l=sk(o);if(l[r]!==void 0||t[r]!==void 0)throw new Error(`MUI: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=S({},t,l,{[r]:i})}),S({},t)},YCe=(e,t,n)=>{var r,o,s,i;if(!((r=t.experimentalFeatures)!=null&&r.columnGrouping))return e;const l=xl(n),a=R0(n),c=sk((o=t.columnGroupingModel)!=null?o:[]),f=$S((s=t.columnGroupingModel)!=null?s:[]),p=RS(l,f,(i=n.current.state.pinnedColumns)!=null?i:{}),h=a.length===0?0:Math.max(...a.map(y=>{var v,m;return(v=(m=f[y])==null?void 0:m.length)!=null?v:0}));return S({},e,{columnGrouping:{lookup:c,unwrappedGroupingModel:f,headerStructure:p,maxDepth:h}})},QCe=(e,t)=>{var n;const r=u.useCallback(a=>{var c;return(c=vge(e)[a])!=null?c:[]},[e]),o=u.useCallback(()=>I3(e),[e]);Nt(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o},"public");const i=u.useCallback(()=>{var a;const c=$S((a=t.columnGroupingModel)!=null?a:[]);e.current.setState(f=>{var p,h,y;const v=(p=(h=f.columns)==null?void 0:h.orderedFields)!=null?p:[],m=(y=f.pinnedColumns)!=null?y:{},C=RS(v,c,m);return S({},f,{columnGrouping:S({},f.columnGrouping,{headerStructure:C})})})},[e,t.columnGroupingModel]),l=u.useCallback(a=>{var c,f,p,h;if(!((c=t.experimentalFeatures)!=null&&c.columnGrouping))return;const y=(f=(p=(h=e.current).getPinnedColumns)==null?void 0:p.call(h))!=null?f:{},v=xl(e),m=R0(e),C=sk(a!=null?a:[]),w=$S(a!=null?a:[]),b=RS(v,w,y),x=m.length===0?0:Math.max(...m.map(P=>{var k,E;return(k=(E=w[P])==null?void 0:E.length)!=null?k:0}));e.current.setState(P=>S({},P,{columnGrouping:{lookup:C,unwrappedGroupingModel:w,headerStructure:b,maxDepth:x}}))},[e,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);ft(e,"columnIndexChange",i),ft(e,"columnsChange",()=>{l(t.columnGroupingModel)}),ft(e,"columnVisibilityModelChange",()=>{l(t.columnGroupingModel)}),u.useEffect(()=>{l(t.columnGroupingModel)},[l,t.columnGroupingModel])},XCe=(e,t)=>{const n=zbe(e,t);return tCe(n,t),Xwe(n),Co(Zwe,n,t),Co(fwe,n,t),Co(Gwe,n,t),Co(Uwe,n,t),Co(Twe,n,t),Co(nCe,n,t),Co(Dwe,n,t),Co(kwe,n,t),Co(gwe,n,t),Co(Cwe,n,t),Co(UCe,n,t),Co(lwe,n,t),Co(YCe,n,t),Co(n1e,n,t),Owe(n,t),Jwe(n,t),pwe(n,t),Kwe(n,t),Zge(n,t),KCe(n),QCe(n,t),Wwe(n,t),$we(n,t),Awe(n,t),_we(n,t),rCe(n,t),vwe(n,t),xwe(n,t),WCe(n,t),oCe(n,t),awe(n),wwe(n,t),Ewe(n,t),iwe(n,t),lCe(n,t),sCe(n,t),GCe(n),r1e(n,t),n},ZCe=e=>{const{classes:t}=e;return _e({root:["virtualScroller"]},Ut,t)},JCe=Ir("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"},zIndex:0}),exe=u.forwardRef(function(t,n){const r=dt(),o=ZCe(r);return D.jsx(JCe,S({ref:n},t,{className:be(o.root,t.className),ownerState:r}))}),txe=(e,t)=>{const{classes:n}=e;return _e({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},Ut,n)},nxe=Ir("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),rxe=u.forwardRef(function(t,n){var r;const o=dt(),s=!o.autoHeight&&((r=t.style)==null?void 0:r.minHeight)==="auto",i=txe(o,s);return D.jsx(nxe,S({ref:n},t,{ownerState:o,className:be(i.root,t.className)}))}),oxe=["className"],sxe=e=>{const{classes:t}=e;return _e({root:["virtualScrollerRenderZone"]},Ut,t)},ixe=Ir("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),lxe=u.forwardRef(function(t,n){const{className:r}=t,o=le(t,oxe),s=dt(),i=sxe(s);return D.jsx(ixe,S({ref:n,className:be(i.root,r),ownerState:s},o))}),axe=["className"],cxe=u.forwardRef(function(t,n){const{className:r}=t,o=le(t,axe),{getRootProps:s,getContentProps:i,getRenderZoneProps:l,getRows:a}=fCe({ref:n});return D.jsxs(exe,S({className:r},s(o),{children:[D.jsx(Wge,{}),D.jsx(rxe,S({},i(),{children:D.jsx(lxe,S({},l(),{children:a()}))}))]}))}),$B=u.forwardRef(function(t,n){const r=HCe(t),o=XCe(r.apiRef,r);return D.jsx(Mbe,{privateApiRef:o,props:r,children:D.jsxs(Zve,S({className:r.className,style:r.style,sx:r.sx,ref:n},r.forwardedProps,{children:[D.jsx(ebe,{}),D.jsx(Lge,{VirtualScrollerComponent:cxe}),D.jsx(Fge,{})]}))})}),RB=u.memo($B);z0.filterDebounceMs;z0.filterDebounceMs;$B.propTypes={apiRef:W.shape({current:W.object.isRequired}),"aria-label":W.string,"aria-labelledby":W.string,autoHeight:W.bool,autoPageSize:W.bool,cellModesModel:W.object,checkboxSelection:W.bool,classes:W.object,clipboardCopyCellDelimiter:W.string,columnBuffer:W.number,columnGroupingModel:W.arrayOf(W.object),columnHeaderHeight:W.number,columns:JX(W.array.isRequired),columnThreshold:W.number,columnVisibilityModel:W.object,components:W.object,componentsProps:W.object,density:W.oneOf(["comfortable","compact","standard"]),disableColumnFilter:W.bool,disableColumnMenu:W.bool,disableColumnSelector:W.bool,disableDensitySelector:W.bool,disableEval:W.bool,disableRowSelectionOnClick:W.bool,disableVirtualization:W.bool,editMode:W.oneOf(["cell","row"]),experimentalFeatures:W.shape({ariaV7:W.bool,columnGrouping:W.bool,warnIfFocusStateIsNotSynced:W.bool}),filterDebounceMs:W.number,filterMode:W.oneOf(["client","server"]),filterModel:W.shape({items:W.arrayOf(W.shape({field:W.string.isRequired,id:W.oneOfType([W.number,W.string]),operator:W.string.isRequired,value:W.any})).isRequired,logicOperator:W.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:W.bool,quickFilterLogicOperator:W.oneOf(["and","or"]),quickFilterValues:W.array}),forwardedProps:W.object,getCellClassName:W.func,getDetailPanelContent:W.func,getEstimatedRowHeight:W.func,getRowClassName:W.func,getRowHeight:W.func,getRowId:W.func,getRowSpacing:W.func,hideFooter:W.bool,hideFooterPagination:W.bool,hideFooterSelectedRowCount:W.bool,ignoreDiacritics:W.bool,initialState:W.object,isCellEditable:W.func,isRowSelectable:W.func,keepNonExistentRowsSelected:W.bool,loading:W.bool,localeText:W.object,logger:W.shape({debug:W.func.isRequired,error:W.func.isRequired,info:W.func.isRequired,warn:W.func.isRequired}),logLevel:W.oneOf(["debug","error","info","warn",!1]),nonce:W.string,onCellClick:W.func,onCellDoubleClick:W.func,onCellEditStart:W.func,onCellEditStop:W.func,onCellKeyDown:W.func,onCellModesModelChange:W.func,onClipboardCopy:W.func,onColumnHeaderClick:W.func,onColumnHeaderDoubleClick:W.func,onColumnHeaderEnter:W.func,onColumnHeaderLeave:W.func,onColumnHeaderOut:W.func,onColumnHeaderOver:W.func,onColumnOrderChange:W.func,onColumnVisibilityModelChange:W.func,onFilterModelChange:W.func,onMenuClose:W.func,onMenuOpen:W.func,onPaginationModelChange:W.func,onPreferencePanelClose:W.func,onPreferencePanelOpen:W.func,onProcessRowUpdateError:W.func,onResize:W.func,onRowClick:W.func,onRowDoubleClick:W.func,onRowEditCommit:W.func,onRowEditStart:W.func,onRowEditStop:W.func,onRowModesModelChange:W.func,onRowSelectionModelChange:W.func,onSortModelChange:W.func,onStateChange:W.func,pageSizeOptions:W.arrayOf(W.oneOfType([W.number,W.shape({label:W.string.isRequired,value:W.number.isRequired})]).isRequired),pagination:e=>e.pagination===!1?new Error(["MUI: `<DataGrid pagination={false} />` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination."].join(`
616
+ `)):null,paginationMode:W.oneOf(["client","server"]),paginationModel:W.shape({page:W.number.isRequired,pageSize:W.number.isRequired}),processRowUpdate:W.func,rowBuffer:W.number,rowCount:W.number,rowHeight:W.number,rowModesModel:W.object,rowPositionsDebounceMs:W.number,rows:W.arrayOf(W.object).isRequired,rowSelection:W.bool,rowSelectionModel:W.oneOfType([W.arrayOf(W.oneOfType([W.number,W.string]).isRequired),W.number,W.string]),rowSpacingType:W.oneOf(["border","margin"]),rowThreshold:W.number,scrollbarSize:W.number,showCellVerticalBorder:W.bool,showColumnVerticalBorder:W.bool,slotProps:W.object,slots:W.object,sortingMode:W.oneOf(["client","server"]),sortingOrder:W.arrayOf(W.oneOf(["asc","desc"])),sortModel:W.arrayOf(W.shape({field:W.string.isRequired,sort:W.oneOf(["asc","desc"])})),sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),unstable_ignoreValueFormatterDuringExport:W.oneOfType([W.shape({clipboardExport:W.bool,csvExport:W.bool}),W.bool])};const uxe={},dxe=(e,t)=>{var n;return{components:{MuiDataGrid:{defaultProps:{localeText:S({},e,{MuiTablePagination:(t==null||(n=t.components)==null||(n=n.MuiTablePagination)==null?void 0:n.defaultProps)||{}})}}}}},fxe=dxe(IB,uxe),kC="Actions";function hm(c){var f=c,{columns:e,initialState:t={},actions:n,actionsProps:r,initializing:o,noRows:s,error:i,compact:l}=f,a=Lt(f,["columns","initialState","actions","actionsProps","initializing","noRows","error","compact"]);const{width:p}=o0(),h=Fn(),y=nge(),[v,m]=u.useState(0),C=u.useMemo(()=>{const{localeText:E}=fxe.components.MuiDataGrid.defaultProps,I=e.map(R=>{var _;const{type:O}=R;(!O||O==="string")&&((_=R.filterOperators)!=null||(R.filterOperators=mB().map(B=>B.value.includes("Empty")?B:[B,it(ye(it(ye({},B),{value:"!"+B.value,getApplyFilterFn(V,A){const F=B.getApplyFilterFn(V,A);return F&&Ze.negate(F)}}),B.getApplyFilterFnV7&&{getApplyFilterFnV7(V,A){var H;const F=(H=B.getApplyFilterFnV7)==null?void 0:H.call(B,V,A);return F?Ze.negate(F):null}}),{label:"(not) "+(E["filterOperator"+Ze.upperFirst(B.value)]||B.value)})]).flat()));const{mergeRender:$}=R;if(!$)return R;const T=$,{other:L,override:j}=T,N=Lt(T,["other","override"]);return it(ye({},R),{originalRenderCell:R.renderCell||!0,renderCell(B){const{columns:V}=B.api.store.getSnapshot(),A=V.columnVisibilityModel[L]===!1;return u.createElement(ze,{},R.renderCell?R.renderCell(B):B.formattedValue,A&&u.createElement(ze,ye(ye({},l&&{lineHeight:"1em",fontSize:"smaller"}),N),k(ye(ye({},V.lookup[L]),j),B.row)))}})});return n&&I.push(ye({field:kC,width:40*v,headerName:"",align:"center",headerAlign:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell(R){const O=n(ye(ye({},R.row),R));return setTimeout(()=>m(O.length)),u.createElement(ze,{whiteSpace:"nowrap"},...O)}},r)),I},[e,n,v]),w=u.useMemo(()=>{if(!p)return;const E=qc(C.map(({field:R,hideUnder:O,hidden:$})=>($||O&&p<(typeof O=="number"?O:h.breakpoints.values[O]))&&R)),I=Object.fromEntries(E.map(R=>[R,!1]));return Ze.merge(t,{columns:{columnVisibilityModel:I}}),E},[C]),[b,x]=u.useState({}),P=u.useRef({});if(u.useEffect(()=>{const{current:{id:E,setCurRow:I}}=P;I==null||I(Ze.find(a.rows,{id:E}))}),!w)return null;return u.createElement(u.Fragment,{},i&&u.createElement(Er,{severity:"error"},i),o&&u.createElement(ze,{position:"relative"},u.createElement(uy,{sx:{position:"absolute",width:"calc(100% - 2px)",borderRadius:1,m:"1px 1px"}})),u.createElement(RB,it(ye({initialState:t,style:{height:0,flex:"auto"},density:l?"compact":"standard",columns:C,apiRef:y,slots:ye({},(s||o)&&{noRowsOverlay:()=>o?null:u.createElement(lm,{},s)}),onCellClick({field:E,row:I}){if(E===kC)return;const R=y.current.getVisibleColumns().length,O=C.filter($=>$.renderCell||$.field===kC||I[$.field]!==void 0);O.length<=R||po({title:"Details",onClose(){P.current={}},Content(){const[$,L]=u.useState(I),j=u.useRef(I);$&&(j.current=$);const N=j.current;return P.current={id:N.id,setCurRow:L},u.createElement(ze,{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(8em,1fr))",gap:"1em",gridAutoFlow:"dense",minWidth:"max(16em, 40vw)",sx:{opacity:$?void 0:.5}},O.map(_=>u.createElement(ze,{key:_.field,gridColumn:_.flex&&"1/-1"},u.createElement(ze,{bgcolor:"#0003",p:1},_.headerName||_.field),u.createElement(Gr,{minHeight:"2.5em",px:1,wordBreak:"break-word"},k(_,N)))))}})}},a),{onColumnVisibilityModelChange:E=>x(E),columnVisibilityModel:ye(ye(ye({},Object.fromEntries(w.map(E=>[E,!1]))),a.columnVisibilityModel),b)})));function k(E,I){const R=y.current;let O=I[E.field];E.valueGetter&&(O=E.valueGetter({value:O,api:R,row:I,field:E.field,id:I.id}));const $=E.originalRenderCell||E.renderCell;return $&&$!==!0?$(ye({value:O,row:I,api:R},I)):E.valueFormatter?E.valueFormatter(ye({value:O},I)):O}}var ik={},pxe=Je;Object.defineProperty(ik,"__esModule",{value:!0});var lk=ik.default=void 0,hxe=pxe(tt()),mxe=et();lk=ik.default=(0,hxe.default)((0,mxe.jsx)("path",{d:"M20 2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h4v5l4-2 4 2v-5h4c1.11 0 2-.89 2-2V4c0-1.11-.89-2-2-2m0 13H4v-2h16zm0-5H4V4h16z"}),"CardMembership");var ak={},gxe=Je;Object.defineProperty(ak,"__esModule",{value:!0});var ck=ak.default=void 0,vxe=gxe(tt()),yxe=et();ck=ak.default=(0,vxe.default)((0,yxe.jsx)("path",{d:"M3 10h11v2H3zm0-2h11V6H3zm0 8h7v-2H3zm15.01-3.13.71-.71c.39-.39 1.02-.39 1.41 0l.71.71c.39.39.39 1.02 0 1.41l-.71.71zm-.71.71-5.3 5.3V21h2.12l5.3-5.3z"}),"EditNote");var uk={},bxe=Je;Object.defineProperty(uk,"__esModule",{value:!0});var dk=uk.default=void 0,wxe=bxe(tt()),Cxe=et();dk=uk.default=(0,wxe.default)((0,Cxe.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");var fk={},xxe=Je;Object.defineProperty(fk,"__esModule",{value:!0});var pk=fk.default=void 0,Sxe=xxe(tt()),Pxe=et();pk=fk.default=(0,Sxe.default)((0,Pxe.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");var hk={},Exe=Je;Object.defineProperty(hk,"__esModule",{value:!0});var Bl=hk.default=void 0,kxe=Exe(tt()),Ixe=et();Bl=hk.default=(0,kxe.default)((0,Ixe.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var mk={},Mxe=Je;Object.defineProperty(mk,"__esModule",{value:!0});var gk=mk.default=void 0,_xe=Mxe(tt()),Txe=et();gk=mk.default=(0,_xe.default)((0,Txe.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward");var vk={},$xe=Je;Object.defineProperty(vk,"__esModule",{value:!0});var OB=vk.default=void 0,Rxe=$xe(tt()),Oxe=et();OB=vk.default=(0,Rxe.default)((0,Oxe.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward");var yk={},Dxe=Je;Object.defineProperty(yk,"__esModule",{value:!0});var DB=yk.default=void 0,Axe=Dxe(tt()),Lxe=et();DB=yk.default=(0,Axe.default)((0,Lxe.jsx)("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8"}),"Undo");const Fxe=["localeText"],OS=u.createContext(null),bk=function(t){var n;const{localeText:r}=t,o=le(t,Fxe),{utils:s,localeText:i}=(n=u.useContext(OS))!=null?n:{utils:void 0,localeText:void 0},l=We({props:o,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:c,dateFormats:f,dateLibInstance:p,adapterLocale:h,localeText:y}=l,v=u.useMemo(()=>S({},y,i,r),[y,i,r]),m=u.useMemo(()=>{if(!c)return s||null;const b=new c({locale:h,formats:f,instance:p});if(!b.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(`
617
+ `));return b},[c,h,f,p,s]),C=u.useMemo(()=>m?{minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}:null,[m]),w=u.useMemo(()=>({utils:m,defaultDates:C,localeText:v}),[C,m,v]);return D.jsx(OS.Provider,{value:w,children:a})},Nxe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:S({},e)}}}}),AB={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"},Bxe=AB;Nxe(AB);const Xc=()=>{const e=u.useContext(OS);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(`
618
+ `));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(`
619
+ `));const t=u.useMemo(()=>S({},Bxe,e.localeText),[e.localeText]);return u.useMemo(()=>S({},e,{localeText:t}),[e,t])},sn=()=>Xc().utils,mm=()=>Xc().defaultDates,ds=()=>Xc().localeText,qa=e=>{const t=sn(),n=u.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},jxe=bt(D.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),zxe=bt(D.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Vxe=bt(D.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),Hxe=bt(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");bt(D.jsxs(u.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");const Uxe=bt(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"),Wxe=bt(D.jsxs(u.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"),Gxe=bt(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 Kxe(e){return Ge("MuiPickersArrowSwitcher",e)}Ue("MuiPickersArrowSwitcher",["root","spacer","button"]);const qxe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],Yxe=["ownerState"],Qxe=["ownerState"],Xxe=se("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Zxe=se("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),SD=se(xr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>S({},e.hidden&&{visibility:"hidden"})),Jxe=e=>{const{classes:t}=e;return _e({root:["root"],spacer:["spacer"],button:["button"]},Kxe,t)},LB=u.forwardRef(function(t,n){var r,o,s,i;const a=Fn().direction==="rtl",c=We({props:t,name:"MuiPickersArrowSwitcher"}),{children:f,className:p,slots:h,slotProps:y,isNextDisabled:v,isNextHidden:m,onGoToNext:C,nextLabel:w,isPreviousDisabled:b,isPreviousHidden:x,onGoToPrevious:P,previousLabel:k}=c,E=le(c,qxe),I=c,R=Jxe(I),O={isDisabled:v,isHidden:m,goTo:C,label:w},$={isDisabled:b,isHidden:x,goTo:P,label:k},L=(r=h==null?void 0:h.previousIconButton)!=null?r:SD,j=Qn({elementType:L,externalSlotProps:y==null?void 0:y.previousIconButton,additionalProps:{size:"medium",title:$.label,"aria-label":$.label,disabled:$.isDisabled,edge:"end",onClick:$.goTo},ownerState:S({},I,{hidden:$.isHidden}),className:R.button}),N=(o=h==null?void 0:h.nextIconButton)!=null?o:SD,_=Qn({elementType:N,externalSlotProps:y==null?void 0:y.nextIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"start",onClick:O.goTo},ownerState:S({},I,{hidden:O.isHidden}),className:R.button}),T=(s=h==null?void 0:h.leftArrowIcon)!=null?s:zxe,B=Qn({elementType:T,externalSlotProps:y==null?void 0:y.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),V=le(B,Yxe),A=(i=h==null?void 0:h.rightArrowIcon)!=null?i:Vxe,F=Qn({elementType:A,externalSlotProps:y==null?void 0:y.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),H=le(F,Qxe);return D.jsxs(Xxe,S({ref:n,className:be(R.root,p),ownerState:I},E,{children:[D.jsx(L,S({},j,{children:a?D.jsx(A,S({},H)):D.jsx(T,S({},V))})),f?D.jsx(qn,{variant:"subtitle1",component:"span",children:f}):D.jsx(Zxe,{className:R.spacer,ownerState:I}),D.jsx(N,S({},_,{children:a?D.jsx(T,S({},V)):D.jsx(A,S({},H))}))]}))}),Di=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),eSe=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n!=null?n:r;let s;if(e!=null)s=e;else if(o.includes(t))s=t;else if(o.length>0)s=o[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:o,openTo:s}},FB=["hours","minutes","seconds"],Vd=e=>FB.includes(e),oa=e=>FB.includes(e)||e==="meridiem",tSe=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,Th=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,nSe=(e,t,n,r)=>{const o=Th(r.getHours(e),t,n);return r.setHours(e,o)},PD=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),gm=(e,t)=>(n,r)=>e?t.isAfter(n,r):PD(n,t)>PD(r,t),ED=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const o=e.formats;return Di(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:Di(n,["minutes"])?o.minutes:Di(n,["seconds"])?o.seconds:Di(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:Di(n,["hours","minutes","seconds"])?r?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:r?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`};function vm({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:s,focusedView:i,onFocusedViewChange:l}){var a,c;const f=u.useRef(n),p=u.useRef(o),h=u.useRef(o.includes(n)?n:o[0]),[y,v]=Kr({name:"useViews",state:"view",controlled:r,default:h.current}),m=u.useRef(s?y:null),[C,w]=Kr({name:"useViews",state:"focusedView",controlled:i,default:m.current});u.useEffect(()=>{(f.current&&f.current!==n||p.current&&p.current.some(O=>!o.includes(O)))&&(v(o.includes(n)?n:o[0]),p.current=o,f.current=n)},[n,v,y,o]);const b=o.indexOf(y),x=(a=o[b-1])!=null?a:null,P=(c=o[b+1])!=null?c:null,k=qe((O,$)=>{w($?O:L=>O===L?null:L),l==null||l(O,$)}),E=qe(O=>{k(O,!0),O!==y&&(v(O),t&&t(O))}),I=qe(()=>{P&&E(P)}),R=qe((O,$,L)=>{const j=$==="finish",N=L?o.indexOf(L)<o.length-1:!!P;if(e(O,j&&N?"partial":$,L),L&&L!==y){const T=o[o.indexOf(L)+1];T&&E(T)}else j&&I()});return{view:y,setView:E,focusedView:C,setFocusedView:k,nextView:P,previousView:x,defaultView:o.includes(n)?n:o[0],goToNextView:I,setValueAndGoToNextView:R}}function rSe(e,{disableFuture:t,maxDate:n,timezone:r}){const o=sn();return u.useMemo(()=>{const s=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isBefore(s,n)?s:n);return!o.isAfter(i,e)},[t,n,e,o,r])}function oSe(e,{disablePast:t,minDate:n,timezone:r}){const o=sn();return u.useMemo(()=>{const s=o.dateWithTimezone(void 0,r),i=o.startOfMonth(t&&o.isAfter(s,n)?s:n);return!o.isBefore(i,e)},[t,n,e,o,r])}function wk(e,t,n,r){const o=sn(),s=tSe(e,o),i=u.useCallback(l=>{const a=e==null?null:nSe(e,l,!!t,o);n(a,r!=null?r:"partial")},[t,e,n,r,o]);return{meridiemMode:s,handleMeridiemChange:i}}const $h=36,V0=2,H0=320,sSe=280,U0=334,NB=232,bp=48,W0=se("div")({overflow:"hidden",width:H0,maxHeight:U0,display:"flex",flexDirection:"column",margin:"0 auto"});function iSe(e){return Ge("MuiTimeClock",e)}Ue("MuiTimeClock",["root","arrowSwitcher"]);const Hd=220,Hi=36,Rh={x:Hd/2,y:Hd/2},BB={x:Rh.x,y:0},lSe=BB.x-Rh.x,aSe=BB.y-Rh.y,cSe=e=>e*(180/Math.PI),jB=(e,t,n)=>{const r=t-Rh.x,o=n-Rh.y,s=Math.atan2(lSe,aSe)-Math.atan2(r,o);let i=cSe(s);i=Math.round(i/e)*e,i%=360;const l=Math.floor(i/e)||0,a=no(r,2)+no(o,2),c=Math.sqrt(a);return{value:l,distance:c}},uSe=(e,t,n=1)=>{const r=n*6;let{value:o}=jB(r,e,t);return o=o*n%60,o},dSe=(e,t,n)=>{const{value:r,distance:o}=jB(30,e,t);let s=r||12;return n?s%=12:o<Hd/2-Hi&&(s+=12,s%=24),s};function fSe(e){return Ge("MuiClockPointer",e)}Ue("MuiClockPointer",["root","thumb"]);const pSe=["className","hasSelected","isInner","type","viewValue"],hSe=e=>{const{classes:t}=e;return _e({root:["root"],thumb:["thumb"]},fSe,t)},mSe=se("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>S({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),gSe=se("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>S({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Hi/2}px)`,border:`${(Hi-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function vSe(e){const t=We({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:s}=t,i=le(t,pSe),l=u.useRef(o);u.useEffect(()=>{l.current=o},[o]);const a=S({},t,{shouldAnimate:l.current!==o}),c=hSe(a),f=()=>{let h=360/(o==="hours"?12:60)*s;return o==="hours"&&s>12&&(h-=360),{height:Math.round((r?.26:.4)*Hd),transform:`rotateZ(${h}deg)`}};return D.jsx(mSe,S({style:f(),className:be(n,c.root),ownerState:a},i,{children:D.jsx(gSe,{ownerState:a,className:c.thumb})}))}function ySe(e){return Ge("MuiClock",e)}Ue("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const zp=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:s,utils:i,timezone:l})=>{const a=i.startOfDay(i.dateWithTimezone(void 0,l));n&&i.isBefore(o,a)&&(o=a),t&&i.isAfter(r,a)&&(r=a);let c=e,f=e;for(i.isBefore(e,o)&&(c=o,f=null),i.isAfter(e,r)&&(f&&(f=r),c=null);c||f;){if(c&&i.isAfter(c,r)&&(c=null),f&&i.isBefore(f,o)&&(f=null),c){if(!s(c))return c;c=i.addDays(c,1)}if(f){if(!s(f))return f;f=i.addDays(f,-1)}}return null},bSe=(e,t)=>t==null||!e.isValid(t)?null:t,zs=(e,t,n)=>t==null||!e.isValid(t)?n:t,wSe=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Ck=(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},DS=(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},xk=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),yl=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},CSe=["year","month","day"],pd=e=>CSe.includes(e),kD=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return Di(n,["year"])?o.year:Di(n,["month"])?o.month:Di(n,["day"])?o.dayOfMonth:Di(n,["month","year"])?`${o.month} ${o.year}`:Di(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},xSe=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},SSe=e=>{const{classes:t}=e;return _e({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},ySe,t)},PSe=se("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),ESe=se("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),kSe=se("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),ISe=se("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>S({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),MSe=se("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),_Se=se(xr,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>S({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:Hi},t.meridiemMode==="am"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),TSe=se(xr,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>S({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:Hi},t.meridiemMode==="pm"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),ID=se(qn,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function $Se(e){const t=We({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:s,value:i,handleMeridiemChange:l,isTimeDisabled:a,meridiemMode:c,minutesStep:f=1,onChange:p,selectedId:h,type:y,viewValue:v,disabled:m,readOnly:C,className:w}=t,b=t,x=sn(),P=ds(),k=u.useRef(!1),E=SSe(b),I=a(v,y),R=!n&&y==="hours"&&(v<1||v>12),O=(F,H)=>{m||C||a(F,y)||p(F,H)},$=(F,H)=>{let{offsetX:K,offsetY:Y}=F;if(K===void 0){const Q=F.target.getBoundingClientRect();K=F.changedTouches[0].clientX-Q.left,Y=F.changedTouches[0].clientY-Q.top}const J=y==="seconds"||y==="minutes"?uSe(K,Y,f):dSe(K,Y,!!n);O(J,H)},L=F=>{k.current=!0,$(F,"shallow")},j=F=>{k.current&&($(F,"finish"),k.current=!1)},N=F=>{F.buttons>0&&$(F.nativeEvent,"shallow")},_=F=>{k.current&&(k.current=!1),$(F.nativeEvent,"finish")},T=u.useMemo(()=>y==="hours"?!0:v%5===0,[y,v]),B=y==="minutes"?f:1,V=u.useRef(null);Ft(()=>{o&&V.current.focus()},[o]);const A=F=>{if(!k.current)switch(F.key){case"Home":O(0,"partial"),F.preventDefault();break;case"End":O(y==="minutes"?59:23,"partial"),F.preventDefault();break;case"ArrowUp":O(v+B,"partial"),F.preventDefault();break;case"ArrowDown":O(v-B,"partial"),F.preventDefault();break}};return D.jsxs(PSe,{className:be(w,E.root),children:[D.jsxs(ESe,{className:E.clock,children:[D.jsx(ISe,{onTouchMove:L,onTouchEnd:j,onMouseUp:_,onMouseMove:N,ownerState:{disabled:m},className:E.squareMask}),!I&&D.jsxs(u.Fragment,{children:[D.jsx(MSe,{className:E.pin}),i!=null&&D.jsx(vSe,{type:y,viewValue:v,isInner:R,hasSelected:T})]}),D.jsx(kSe,{"aria-activedescendant":h,"aria-label":P.clockLabelText(y,i,x),ref:V,role:"listbox",onKeyDown:A,tabIndex:0,className:E.wrapper,children:s})]}),n&&r&&D.jsxs(u.Fragment,{children:[D.jsx(_Se,{onClick:C?void 0:()=>l("am"),disabled:m||c===null,ownerState:b,className:E.amButton,title:yl(x,"am"),children:D.jsx(ID,{variant:"caption",className:E.meridiemText,children:yl(x,"am")})}),D.jsx(TSe,{disabled:m||c===null,onClick:C?void 0:()=>l("pm"),ownerState:b,className:E.pmButton,title:yl(x,"pm"),children:D.jsx(ID,{variant:"caption",className:E.meridiemText,children:yl(x,"pm")})})]})]})}function RSe(e){return Ge("MuiClockNumber",e)}const zg=Ue("MuiClockNumber",["root","selected","disabled"]),OSe=["className","disabled","index","inner","label","selected"],DSe=e=>{const{classes:t,selected:n,disabled:r}=e;return _e({root:["root",n&&"selected",r&&"disabled"]},RSe,t)},ASe=se("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${zg.disabled}`]:t.disabled},{[`&.${zg.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>S({height:Hi,width:Hi,position:"absolute",left:`calc((100% - ${Hi}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${zg.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${zg.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&S({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function zB(e){const t=We({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:s,label:i,selected:l}=t,a=le(t,OSe),c=t,f=DSe(c),p=o%12/12*Math.PI*2-Math.PI/2,h=(Hd-Hi-2)/2*(s?.65:1),y=Math.round(Math.cos(p)*h),v=Math.round(Math.sin(p)*h);return D.jsx(ASe,S({className:be(n,f.root),"aria-disabled":r?!0:void 0,"aria-selected":l?!0:void 0,role:"option",style:{transform:`translate(${y}px, ${v+(Hd-Hi)/2}px`},ownerState:c},a,{children:i}))}const LSe=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:s})=>{const i=t?s.getHours(t):null,l=[],a=e?1:0,c=e?12:23,f=p=>i===null?!1:e?p===12?i===12||i===0:i===p||i-12===p:i===p;for(let p=a;p<=c;p+=1){let h=p.toString();p===0&&(h="00");const y=!e&&(p===0||p>12);h=s.formatNumber(h);const v=f(p);l.push(D.jsx(zB,{id:v?o:void 0,index:p,inner:y,selected:v,disabled:r(p),label:h,"aria-label":n(h)},p))}return l},MD=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const s=e.formatNumber;return[[5,s("05")],[10,s("10")],[15,s("15")],[20,s("20")],[25,s("25")],[30,s("30")],[35,s("35")],[40,s("40")],[45,s("45")],[50,s("50")],[55,s("55")],[0,s("00")]].map(([i,l],a)=>{const c=i===t;return D.jsx(zB,{label:l,id:c?o:void 0,index:a+1,inner:!1,disabled:n(i),selected:c,"aria-label":r(l)},i)})},Sk=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{var s,i;const l=sn(),a=u.useRef(n),c=(s=t!=null?t:a.current)!=null?s:o.emptyValue,f=u.useMemo(()=>o.getTimezone(l,c),[l,o,c]),p=qe(m=>f==null?m:o.setTimezone(l,f,m)),h=(i=e!=null?e:f)!=null?i:"default",y=u.useMemo(()=>o.setTimezone(l,h,c),[o,l,h,c]),v=qe((m,...C)=>{const w=p(m);r==null||r(w,...C)});return{value:y,handleValueChange:v,timezone:h}},pf=({name:e,timezone:t,value:n,defaultValue:r,onChange:o,valueManager:s})=>{const[i,l]=Kr({name:e,state:"value",controlled:n,default:r!=null?r:s.emptyValue}),a=qe((c,...f)=>{l(c),o==null||o(c,...f)});return Sk({timezone:t,value:i,defaultValue:void 0,onChange:a,valueManager:s})},ii={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},FSe=e=>Math.max(...e.map(t=>{var n;return(n=ii[t.type])!=null?n:1})),rp=(e,t,n)=>{if(t===ii.year)return e.startOfYear(n);if(t===ii.month)return e.startOfMonth(n);if(t===ii.day)return e.startOfDay(n);let r=n;return t<ii.minutes&&(r=e.setMinutes(r,0)),t<ii.seconds&&(r=e.setSeconds(r,0)),t<ii.milliseconds&&(r=e.setMilliseconds(r,0)),r},NSe=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{var s;let i=o?o():rp(t,n,xk(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=rp(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=rp(t,n,e.maxDate));const l=gm((s=e.disableIgnoringDatePartForTimeValidation)!=null?s:!1,t);return e.minTime!=null&&l(e.minTime,i)&&(i=rp(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:DS(t,i,e.minTime))),e.maxTime!=null&&l(i,e.maxTime)&&(i=rp(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:DS(t,i,e.maxTime))),i},VB=(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(`
620
+ `));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},BSe=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},G0=(e,t,n)=>{const r=[],o=e.dateWithTimezone(void 0,t),s=e.startOfWeek(o),i=e.endOfWeek(o);let l=s;for(;e.isBefore(l,i);)r.push(l),l=e.addDays(l,1);return r.map(a=>e.formatByString(a,n))},HB=(e,t,n,r)=>{switch(n){case"month":return Ck(e,e.dateWithTimezone(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return G0(e,t,r);case"meridiem":{const o=e.dateWithTimezone(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(s=>e.formatByString(s,r))}default:return[]}},UB=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length<n;)r=`0${r}`;return r},WB=(e,t,n,r,o)=>{if(o.type==="day"&&o.contentType==="digit-with-letter"){const i=e.setDate(r.longestMonth,n);return e.formatByString(i,o.format)}const s=n.toString();return o.hasLeadingZerosInInput?UB(e,s,o.maxLength):s},jSe=(e,t,n,r,o,s,i)=>{const l=BSe(r),a=r==="Home",c=r==="End",f=n.value===""||a||c,p=()=>{const y=o[n.type]({currentDate:s,format:n.format,contentType:n.contentType}),v=b=>WB(e,t,b,y,n),m=n.type==="minutes"&&i!=null&&i.minutesStep?i.minutesStep:1;let w=parseInt(n.value,10)+l*m;if(f){if(n.type==="year"&&!c&&!a)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);l>0||a?w=y.minimum:w=y.maximum}return w%m!==0&&((l<0||a)&&(w+=m-(m+w)%m),(l>0||c)&&(w-=w%m)),w>y.maximum?v(y.minimum+(w-y.maximum-1)%(y.maximum-y.minimum+1)):w<y.minimum?v(y.maximum-(y.minimum-w-1)%(y.maximum-y.minimum+1)):v(w)},h=()=>{const y=HB(e,t,n.type,n.format);if(y.length===0)return n.value;if(f)return l>0||a?y[0]:y[y.length-1];const m=(y.indexOf(n.value)+y.length+l)%y.length;return y[m]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?p():h()},Pk=(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},Xu=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),GB=(e,t)=>{let n=0,r=t?1:0;const o=[];for(let s=0;s<e.length;s+=1){const i=e[s],l=Pk(i,t?"input-rtl":"input-ltr"),a=`${i.startSeparator}${l}${i.endSeparator}`,c=Xu(a).length,f=a.length,p=Xu(l),h=r+l.indexOf(p[0])+i.startSeparator.length,y=h+p.length;o.push(S({},i,{start:n,end:n+c,startInInput:h,endInInput:y})),n+=c,r+=f}return o},zSe=(e,t,n,r,o)=>{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}},_D=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),KB=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,qB=(e,t,n,r,o)=>{if(n!=="digit")return!1;const s=e.dateWithTimezone(void 0,t);switch(r){case"year":return KB(e,t,o)?e.formatByString(e.setYear(s,1),o)==="0001":e.formatByString(e.setYear(s,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(s),o).length>1;case"day":return e.formatByString(e.startOfMonth(s),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(s),o).length>1;case"hours":return e.formatByString(e.setHours(s,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(s,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(s,1),o).length>1;default:throw new Error("Invalid section type")}},VSe=(e,t)=>{const n=[],{start:r,end:o}=e.escapedCharacters,s=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let i=null;for(;i=s.exec(t);)n.push({start:i.index,end:s.lastIndex-1});return n},TD=(e,t,n,r,o,s,i,l)=>{let a="";const c=[],f=e.date(),p=x=>{if(x==="")return null;const P=VB(e,x),k=qB(e,t,P.contentType,P.type,x),E=i?k:P.contentType==="digit",I=o!=null&&e.isValid(o);let R=I?e.formatByString(o,x):"",O=null;if(E)if(k)O=R===""?e.formatByString(f,x).length:R.length;else{if(P.maxLength==null)throw new Error(`MUI: The token ${x} should have a 'maxDigitNumber' property on it's adapter`);O=P.maxLength,I&&(R=UB(e,R,O))}return c.push(S({},P,{format:x,maxLength:O,value:R,placeholder:zSe(e,t,n,P,x),hasLeadingZeros:k,hasLeadingZerosInFormat:k,hasLeadingZerosInInput:E,startSeparator:c.length===0?a:"",endSeparator:"",modified:!1})),null};let h=10,y=r,v=e.expandFormat(r);for(;v!==y;)if(y=v,v=e.expandFormat(y),h-=1,h<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 m=v,C=VSe(e,m),w=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((x,P)=>P.length-x.length).join("|")})`,"g");let b="";for(let x=0;x<m.length;x+=1){const P=C.find(O=>O.start<=x&&O.end>=x),k=m[x],E=P!=null,I=`${b}${m.slice(x)}`,R=w.test(I);!E&&k.match(/([A-Za-z]+)/)&&R?(b=I.slice(0,w.lastIndex),x+=w.lastIndex-1):E&&(P==null?void 0:P.start)===x||(P==null?void 0:P.end)===x||(p(b),b="",c.length===0?a+=k:c[c.length-1].endSeparator+=k)}return p(b),c.map(x=>{const P=k=>{let E=k;return l&&E!==null&&E.includes(" ")&&(E=`⁩${E}⁦`),s==="spacious"&&["/",".","-"].includes(E)&&(E=` ${E} `),E};return x.startSeparator=P(x.startSeparator),x.endSeparator=P(x.endSeparator),x})},HSe=(e,t)=>{const n=t.some(l=>l.type==="day"),r=[],o=[];for(let l=0;l<t.length;l+=1){const a=t[l];n&&a.type==="weekDay"||(r.push(a.format),o.push(Pk(a,"non-input")))}const s=r.join(" "),i=o.join(" ");return e.parse(i,s)},USe=(e,t)=>{const r=e.map(o=>{const s=Pk(o,t?"input-rtl":"input-ltr");return`${o.startSeparator}${s}${o.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},WSe=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),o=e.endOfDay(n),{maxDaysInMonth:s,longestMonth:i}=Ck(e,n).reduce((l,a)=>{const c=e.getDaysInMonth(a);return c>l.maxDaysInMonth?{maxDaysInMonth:c,longestMonth:a}:l},{maxDaysInMonth:0,longestMonth:null});return{year:({format:l})=>({minimum:0,maximum:KB(e,t,l)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:l})=>({minimum:1,maximum:l!=null&&e.isValid(l)?e.getDaysInMonth(l):s,longestMonth:i}),weekDay:({format:l,contentType:a})=>{if(a==="digit"){const c=G0(e,t,l).map(Number);return{minimum:Math.min(...c),maximum:Math.max(...c)}}return{minimum:1,maximum:7}},hours:({format:l})=>{const a=e.getHours(o);return e.formatByString(e.endOfDay(n),l)!==a.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),l))}:{minimum:0,maximum:a}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:0})}},GSe=(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 s=G0(e,t,n.format),i=e.formatByString(r,n.format),l=s.indexOf(i),c=s.indexOf(n.value)-l;return e.addDays(r,c)}case"day":return e.setDate(o,e.getDate(r));case"meridiem":{const s=e.getHours(r)<12,i=e.getHours(o);return s&&i>=12?e.addHours(o,-12):!s&&i<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}},$D={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},RD=(e,t,n,r,o,s)=>[...r].sort((i,l)=>$D[i.type]-$D[l.type]).reduce((i,l)=>!s||l.modified?GSe(e,t,l,n,i):i,o),KSe=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,qSe=(e,t)=>{const n={};if(!t)return e.forEach((a,c)=>{const f=c===0?null:c-1,p=c===e.length-1?null:c+1;n[c]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let s=0,i=0,l=e.length-1;for(;l>=0;){i=e.findIndex((a,c)=>{var f;return c>=s&&((f=a.endSeparator)==null?void 0:f.includes(" "))&&a.endSeparator!==" / "}),i===-1&&(i=e.length-1);for(let a=i;a>=s;a-=1)o[a]=l,r[l]=a,l-=1;s=i+1}return e.forEach((a,c)=>{const f=o[c],p=f===0?null:r[f-1],h=f===e.length-1?null:r[f+1];n[c]={leftIndex:p,rightIndex:h}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},YSe=["value","referenceDate"],ls={emptyValue:null,getTodayValue:xk,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=le(e,YSe);return t!=null&&r.utils.isValid(t)?t:n!=null?n:NSe(r)},cleanValue:bSe,areValuesEqual:wSe,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)},QSe={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:GB(o(t),r),getValueStrFromSections:USe,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)},Ek=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>S({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})},kk=({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{const s=u.useMemo(()=>ls.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:ii.day,timezone:o,getTodayDate:()=>xk(n,o,"date")}),[]);return e!=null?e:s},XSe=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],ZSe=e=>{const{classes:t}=e;return _e({root:["root"],arrowSwitcher:["arrowSwitcher"]},iSe,t)},JSe=se(W0,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),ePe=se(LB,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),tPe=["hours","minutes"],nPe=u.forwardRef(function(t,n){const r=sn(),o=We({props:t,name:"MuiTimeClock"}),{ampm:s=r.is12HourCycleInCurrentLocale(),ampmInClock:i=!1,autoFocus:l,components:a,componentsProps:c,slots:f,slotProps:p,value:h,defaultValue:y,referenceDate:v,disableIgnoringDatePartForTimeValidation:m=!1,maxTime:C,minTime:w,disableFuture:b,disablePast:x,minutesStep:P=1,shouldDisableClock:k,shouldDisableTime:E,showViewSwitcher:I,onChange:R,view:O,views:$=tPe,openTo:L,onViewChange:j,focusedView:N,onFocusedViewChange:_,className:T,disabled:B,readOnly:V,timezone:A}=o,F=le(o,XSe),H=f!=null?f:Ek(a),K=p!=null?p:c,{value:Y,handleValueChange:J,timezone:Q}=pf({name:"TimeClock",timezone:A,value:h,defaultValue:y,onChange:R,valueManager:ls}),X=kk({value:Y,referenceDate:v,utils:r,props:o,timezone:Q}),ee=ds(),oe=qa(Q),{view:Z,setView:pe,previousView:ne,nextView:re,setValueAndGoToNextView:me}=vm({view:O,views:$,openTo:L,onViewChange:j,onChange:J,focusedView:N,onFocusedViewChange:_}),{meridiemMode:ce,handleMeridiemChange:Ce}=wk(X,s,me),Ee=u.useCallback((ie,ue)=>{const we=gm(m,r),xe=ue==="hours"||ue==="minutes"&&$.includes("seconds"),Me=({start:Be,end:Ke})=>!(w&&we(w,Ke)||C&&we(Be,C)||b&&we(Be,oe)||x&&we(oe,xe?Ke:Be)),Oe=(Be,Ke=1)=>{if(Be%Ke!==0||k!=null&&k(Be,ue))return!1;if(E)switch(ue){case"hours":return!E(r.setHours(X,Be),"hours");case"minutes":return!E(r.setMinutes(X,Be),"minutes");case"seconds":return!E(r.setSeconds(X,Be),"seconds");default:return!1}return!0};switch(ue){case"hours":{const Be=Th(ie,ce,s),Ke=r.setHours(X,Be),Ye=r.setSeconds(r.setMinutes(Ke,0),0),Fe=r.setSeconds(r.setMinutes(Ke,59),59);return!Me({start:Ye,end:Fe})||!Oe(Be)}case"minutes":{const Be=r.setMinutes(X,ie),Ke=r.setSeconds(Be,0),Ye=r.setSeconds(Be,59);return!Me({start:Ke,end:Ye})||!Oe(ie,P)}case"seconds":{const Be=r.setSeconds(X,ie);return!Me({start:Be,end:Be})||!Oe(ie)}default:throw new Error("not supported")}},[s,X,m,C,ce,w,P,k,E,r,b,x,oe,$]),fe=Yt(),ke=u.useMemo(()=>{switch(Z){case"hours":{const ie=(ue,we)=>{const xe=Th(ue,ce,s);me(r.setHours(X,xe),we)};return{onChange:ie,viewValue:r.getHours(X),children:LSe({value:Y,utils:r,ampm:s,onChange:ie,getClockNumberText:ee.hoursClockNumberText,isDisabled:ue=>B||Ee(ue,"hours"),selectedId:fe})}}case"minutes":{const ie=r.getMinutes(X),ue=(we,xe)=>{me(r.setMinutes(X,we),xe)};return{viewValue:ie,onChange:ue,children:MD({utils:r,value:ie,onChange:ue,getClockNumberText:ee.minutesClockNumberText,isDisabled:we=>B||Ee(we,"minutes"),selectedId:fe})}}case"seconds":{const ie=r.getSeconds(X),ue=(we,xe)=>{me(r.setSeconds(X,we),xe)};return{viewValue:ie,onChange:ue,children:MD({utils:r,value:ie,onChange:ue,getClockNumberText:ee.secondsClockNumberText,isDisabled:we=>B||Ee(we,"seconds"),selectedId:fe})}}default:throw new Error("You must provide the type for ClockView")}},[Z,r,Y,s,ee.hoursClockNumberText,ee.minutesClockNumberText,ee.secondsClockNumberText,ce,me,X,Ee,fe,B]),ve=o,Re=ZSe(ve);return D.jsxs(JSe,S({ref:n,className:be(Re.root,T),ownerState:ve},F,{children:[D.jsx($Se,S({autoFocus:l!=null?l:!!N,ampmInClock:i&&$.includes("hours"),value:Y,type:Z,ampm:s,minutesStep:P,isTimeDisabled:Ee,meridiemMode:ce,handleMeridiemChange:Ce,selectedId:fe,disabled:B,readOnly:V},ke)),I&&D.jsx(ePe,{className:Re.arrowSwitcher,slots:H,slotProps:K,onGoToPrevious:()=>pe(ne),isPreviousDisabled:!ne,previousLabel:ee.openPreviousView,onGoToNext:()=>pe(re),isNextDisabled:!re,nextLabel:ee.openNextView,ownerState:ve})]}))});function rPe(e){return Ge("MuiDigitalClock",e)}const oPe=Ue("MuiDigitalClock",["root","list","item"]),sPe=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],iPe=e=>{const{classes:t}=e;return _e({root:["root"],list:["list"],item:["item"]},rPe,t)},lPe=se(W0,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:e.alreadyRendered?"smooth":"auto"},maxHeight:NB})),aPe=se(of,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),cPe=se(Pr,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:In(e.palette.primary.main,e.palette.action.focusOpacity)}})),uPe=u.forwardRef(function(t,n){var r,o,s;const i=sn(),l=u.useRef(null),a=Et(n,l),c=We({props:t,name:"MuiDigitalClock"}),{ampm:f=i.is12HourCycleInCurrentLocale(),timeStep:p=30,autoFocus:h,components:y,componentsProps:v,slots:m,slotProps:C,value:w,defaultValue:b,referenceDate:x,disableIgnoringDatePartForTimeValidation:P=!1,maxTime:k,minTime:E,disableFuture:I,disablePast:R,minutesStep:O=1,shouldDisableClock:$,shouldDisableTime:L,onChange:j,view:N,openTo:_,onViewChange:T,focusedView:B,onFocusedViewChange:V,className:A,disabled:F,readOnly:H,views:K=["hours"],skipDisabled:Y=!1,timezone:J}=c,Q=le(c,sPe),{value:X,handleValueChange:ee,timezone:oe}=pf({name:"DigitalClock",timezone:J,value:w,defaultValue:b,onChange:j,valueManager:ls}),Z=ds(),pe=qa(oe),ne=u.useMemo(()=>S({},c,{alreadyRendered:!!l.current}),[c]),re=iPe(ne),me=(r=(o=m==null?void 0:m.digitalClockItem)!=null?o:y==null?void 0:y.DigitalClockItem)!=null?r:cPe,ce=Qn({elementType:me,externalSlotProps:(s=C==null?void 0:C.digitalClockItem)!=null?s:v==null?void 0:v.digitalClockItem,ownerState:{},className:re.item}),Ce=kk({value:X,referenceDate:x,utils:i,props:c,timezone:oe}),Ee=qe(ie=>ee(ie,"finish","hours")),{setValueAndGoToNextView:fe}=vm({view:N,views:K,openTo:_,onViewChange:T,onChange:Ee,focusedView:B,onFocusedViewChange:V}),ke=qe(ie=>{fe(ie,"finish")});u.useEffect(()=>{if(l.current===null)return;const ie=l.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!ie)return;const ue=ie.offsetTop;l.current.scrollTop=ue-4});const ve=u.useCallback(ie=>{const ue=gm(P,i),we=()=>!(E&&ue(E,ie)||k&&ue(ie,k)||I&&ue(ie,pe)||R&&ue(pe,ie)),xe=()=>i.getMinutes(ie)%O!==0||$!=null&&$(i.toJsDate(ie).getTime(),"hours")?!1:L?!L(ie,"hours"):!0;return!we()||!xe()},[P,i,E,k,I,pe,R,O,$,L]),Re=u.useMemo(()=>{const ie=i.startOfDay(Ce);return[ie,...Array.from({length:Math.ceil(24*60/p)-1},(ue,we)=>i.addMinutes(ie,p*(we+1)))]},[Ce,p,i]);return D.jsx(lPe,S({ref:a,className:be(re.root,A),ownerState:ne},Q,{children:D.jsx(aPe,{autoFocusItem:h||!!B,role:"listbox","aria-label":Z.timePickerToolbarTitle,className:re.list,children:Re.map(ie=>{if(Y&&ve(ie))return null;const ue=i.isEqual(ie,X);return D.jsx(me,S({onClick:()=>!H&&ke(ie),selected:ue,disabled:F||ve(ie),disableRipple:H,role:"option","aria-disabled":H,"aria-selected":ue},ce,{children:i.format(ie,f?"fullTime12h":"fullTime24h")}),i.toISO(ie))})})}))});function dPe(e){return Ge("MuiMultiSectionDigitalClock",e)}Ue("MuiMultiSectionDigitalClock",["root"]);function fPe(e){return Ge("MuiMultiSectionDigitalClockSection",e)}const pPe=Ue("MuiMultiSectionDigitalClockSection",["root","item"]),hPe=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],mPe=e=>{const{classes:t}=e;return _e({root:["root"],item:["item"]},fPe,t)},gPe=se(of,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:NB,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}})),vPe=se(Pr,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:bp,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:In(e.palette.primary.main,e.palette.action.focusOpacity)}})),yPe=u.forwardRef(function(t,n){var r;const o=u.useRef(null),s=Et(n,o),i=u.useRef(null),l=We({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:a,onChange:c,className:f,disabled:p,readOnly:h,items:y,active:v,slots:m,slotProps:C,skipDisabled:w}=l,b=le(l,hPe),x=u.useMemo(()=>S({},l,{alreadyRendered:!!o.current}),[l]),P=mPe(x),k=(r=m==null?void 0:m.digitalClockSectionItem)!=null?r:vPe;return u.useEffect(()=>{if(o.current===null)return;const E=o.current.querySelector('[role="option"][aria-selected="true"]');if(v&&a&&E&&E.focus(),!E||i.current===E)return;i.current=E;const I=E.offsetTop;o.current.scrollTop=I-4}),D.jsx(gPe,S({ref:s,className:be(P.root,f),ownerState:x,autoFocusItem:a&&v,role:"listbox"},b,{children:y.map(E=>{var I,R;if(w&&(I=E.isDisabled)!=null&&I.call(E,E.value))return null;const O=E.isSelected(E.value);return D.jsx(k,S({onClick:()=>!h&&c(E.value),selected:O,disabled:p||((R=E.isDisabled)==null?void 0:R.call(E,E.value)),disableRipple:h,role:"option","aria-disabled":h,"aria-label":E.ariaLabel,"aria-selected":O,className:P.item},C==null?void 0:C.digitalClockSectionItem,{children:E.label}),E.label)})}))}),bPe=({now:e,value:t,utils:n,ampm:r,isDisabled:o,resolveAriaLabel:s,timeStep:i})=>{const l=t?n.getHours(t):null,a=[],c=p=>l===null?!1:r?p===12?l===12||l===0:l===p||l-12===p:l===p,f=r?11:23;for(let p=0;p<=f;p+=i){let h=n.format(n.setHours(e,p),r?"hours12h":"hours24h");const y=s(parseInt(h,10).toString());h=n.formatNumber(h),a.push({value:p,label:h,isSelected:c,isDisabled:o,ariaLabel:y})}return a},OD=({value:e,utils:t,isDisabled:n,timeStep:r,resolveLabel:o,resolveAriaLabel:s,hasValue:i=!0})=>{const l=a=>e===null?!1:i&&e===a;return[...Array.from({length:Math.ceil(60/r)},(a,c)=>{const f=r*c;return{value:f,label:t.formatNumber(o(f)),isDisabled:n,isSelected:l,ariaLabel:s(f.toString())}})]},wPe=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],CPe=e=>{const{classes:t}=e;return _e({root:["root"]},dPe,t)},xPe=se(W0,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),SPe=u.forwardRef(function(t,n){const r=sn(),o=We({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:s=r.is12HourCycleInCurrentLocale(),timeSteps:i,autoFocus:l,components:a,componentsProps:c,slots:f,slotProps:p,value:h,defaultValue:y,referenceDate:v,disableIgnoringDatePartForTimeValidation:m=!1,maxTime:C,minTime:w,disableFuture:b,disablePast:x,minutesStep:P=1,shouldDisableClock:k,shouldDisableTime:E,onChange:I,view:R,views:O=["hours","minutes"],openTo:$,onViewChange:L,focusedView:j,onFocusedViewChange:N,className:_,disabled:T,readOnly:B,skipDisabled:V=!1,timezone:A}=o,F=le(o,wPe),{value:H,handleValueChange:K,timezone:Y}=pf({name:"MultiSectionDigitalClock",timezone:A,value:h,defaultValue:y,onChange:I,valueManager:ls}),J=ds(),Q=qa(Y),X=u.useMemo(()=>S({hours:1,minutes:5,seconds:5},i),[i]),ee=kk({value:H,referenceDate:v,utils:r,props:o,timezone:Y}),oe=qe((ie,ue,we)=>K(ie,ue,we)),Z=u.useMemo(()=>!s||!O.includes("hours")||O.includes("meridiem")?O:[...O,"meridiem"],[s,O]),{view:pe,setValueAndGoToNextView:ne,focusedView:re}=vm({view:R,views:Z,openTo:$,onViewChange:L,onChange:oe,focusedView:j,onFocusedViewChange:N}),me=qe(ie=>{ne(ie,"finish","meridiem")}),{meridiemMode:ce,handleMeridiemChange:Ce}=wk(ee,s,me,"finish"),Ee=u.useCallback((ie,ue)=>{const we=gm(m,r),xe=ue==="hours"||ue==="minutes"&&Z.includes("seconds"),Me=({start:Be,end:Ke})=>!(w&&we(w,Ke)||C&&we(Be,C)||b&&we(Be,Q)||x&&we(Q,xe?Ke:Be)),Oe=(Be,Ke=1)=>{if(Be%Ke!==0||k!=null&&k(Be,ue))return!1;if(E)switch(ue){case"hours":return!E(r.setHours(ee,Be),"hours");case"minutes":return!E(r.setMinutes(ee,Be),"minutes");case"seconds":return!E(r.setSeconds(ee,Be),"seconds");default:return!1}return!0};switch(ue){case"hours":{const Be=Th(ie,ce,s),Ke=r.setHours(ee,Be),Ye=r.setSeconds(r.setMinutes(Ke,0),0),Fe=r.setSeconds(r.setMinutes(Ke,59),59);return!Me({start:Ye,end:Fe})||!Oe(Be)}case"minutes":{const Be=r.setMinutes(ee,ie),Ke=r.setSeconds(Be,0),Ye=r.setSeconds(Be,59);return!Me({start:Ke,end:Ye})||!Oe(ie,P)}case"seconds":{const Be=r.setSeconds(ee,ie);return!Me({start:Be,end:Be})||!Oe(ie)}default:throw new Error("not supported")}},[s,ee,m,C,ce,w,P,k,E,r,b,x,Q,Z]),fe=u.useCallback(ie=>{switch(ie){case"hours":return{onChange:ue=>{const we=Th(ue,ce,s);ne(r.setHours(ee,we),"finish","hours")},items:bPe({now:Q,value:H,ampm:s,utils:r,isDisabled:ue=>T||Ee(ue,"hours"),timeStep:X.hours,resolveAriaLabel:J.hoursClockNumberText})};case"minutes":return{onChange:ue=>{ne(r.setMinutes(ee,ue),"finish","minutes")},items:OD({value:r.getMinutes(ee),utils:r,isDisabled:ue=>T||Ee(ue,"minutes"),resolveLabel:ue=>r.format(r.setMinutes(Q,ue),"minutes"),timeStep:X.minutes,hasValue:!!H,resolveAriaLabel:J.minutesClockNumberText})};case"seconds":return{onChange:ue=>{ne(r.setSeconds(ee,ue),"finish","seconds")},items:OD({value:r.getSeconds(ee),utils:r,isDisabled:ue=>T||Ee(ue,"seconds"),resolveLabel:ue=>r.format(r.setSeconds(Q,ue),"seconds"),timeStep:X.seconds,hasValue:!!H,resolveAriaLabel:J.secondsClockNumberText})};case"meridiem":{const ue=yl(r,"am"),we=yl(r,"pm");return{onChange:Ce,items:[{value:"am",label:ue,isSelected:()=>!!H&&ce==="am",ariaLabel:ue},{value:"pm",label:we,isSelected:()=>!!H&&ce==="pm",ariaLabel:we}]}}default:throw new Error(`Unknown view: ${ie} found.`)}},[Q,H,s,r,X.hours,X.minutes,X.seconds,J.hoursClockNumberText,J.minutesClockNumberText,J.secondsClockNumberText,ce,ne,ee,T,Ee,Ce]),ke=u.useMemo(()=>Z.reduce((ie,ue)=>S({},ie,{[ue]:fe(ue)}),{}),[Z,fe]),ve=o,Re=CPe(ve);return D.jsx(xPe,S({ref:n,className:be(Re.root,_),ownerState:ve,role:"group"},F,{children:Object.entries(ke).map(([ie,ue])=>D.jsx(yPe,{items:ue.items,onChange:ue.onChange,active:pe===ie,autoFocus:l!=null?l:re===ie,disabled:T,readOnly:B,slots:f!=null?f:a,slotProps:p!=null?p:c,skipDisabled:V,"aria-label":J.selectViewText(ie)},ie))}))});function PPe(e){return Ge("MuiPickersDay",e)}const ic=Ue("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),EPe=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],kPe=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:s,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:l,classes:a}=e,c=i&&!l;return _e({root:["root",t&&!c&&"selected",s&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&l&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},PPe,a)},YB=({theme:e,ownerState:t})=>S({},e.typography.caption,{width:$h,height:$h,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})`:In(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:In(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${ic.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${ic.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}},[`&.${ic.disabled}:not(.${ic.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${ic.disabled}&.${ic.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${V0}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${ic.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),QB=(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]},IPe=se(gi,{name:"MuiPickersDay",slot:"Root",overridesResolver:QB})(YB),MPe=se("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:QB})(({theme:e,ownerState:t})=>S({},YB({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),op=()=>{},_Pe=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:s,day:i,disabled:l=!1,disableHighlightToday:a=!1,disableMargin:c=!1,isAnimating:f,onClick:p,onDaySelect:h,onFocus:y=op,onBlur:v=op,onKeyDown:m=op,onMouseDown:C=op,onMouseEnter:w=op,outsideCurrentMonth:b,selected:x=!1,showDaysOutsideCurrentMonth:P=!1,children:k,today:E=!1}=r,I=le(r,EPe),R=S({},r,{autoFocus:o,disabled:l,disableHighlightToday:a,disableMargin:c,selected:x,showDaysOutsideCurrentMonth:P,today:E}),O=kPe(R),$=sn(),L=u.useRef(null),j=Et(L,n);Ft(()=>{o&&!l&&!f&&!b&&L.current.focus()},[o,l,f,b]);const N=T=>{C(T),b&&T.preventDefault()},_=T=>{l||h(i),b&&T.currentTarget.focus(),p&&p(T)};return b&&!P?D.jsx(MPe,{className:be(O.root,O.hiddenDaySpacingFiller,s),ownerState:R,role:I.role}):D.jsx(IPe,S({className:be(O.root,s),ref:j,centerRipple:!0,disabled:l,tabIndex:x?0:-1,onKeyDown:T=>m(T,i),onFocus:T=>y(T,i),onBlur:T=>v(T,i),onMouseEnter:T=>w(T,i),onClick:_,onMouseDown:N},I,{ownerState:R,children:k||$.format(i,"dayOfMonth")}))}),TPe=u.memo(_Pe);function XB(e,t,n,r){const{value:o,onError:s}=e,i=Xc(),l=u.useRef(r),a=t({adapter:i,value:o,props:e});return u.useEffect(()=>{s&&!n(a,l.current)&&s(a,o),l.current=a},[n,s,l,a,o]),a}const $Pe=e=>{const t=sn(),n=ds(),r=Xc(),s=Fn().direction==="rtl",{valueManager:i,fieldValueManager:l,valueType:a,validator:c,internalProps:f,internalProps:{value:p,defaultValue:h,referenceDate:y,onChange:v,format:m,formatDensity:C="dense",selectedSections:w,onSelectedSectionsChange:b,shouldRespectLeadingZeros:x=!1,timezone:P}}=e,{timezone:k,value:E,handleValueChange:I}=Sk({timezone:P,value:p,defaultValue:h,onChange:v,valueManager:i}),R=u.useMemo(()=>WSe(t,k),[t,k]),O=u.useCallback((Q,X=null)=>l.getSectionsFromValue(t,Q,X,s,ee=>TD(t,k,n,m,ee,C,x,s)),[l,m,n,s,x,t,C,k]),$=u.useMemo(()=>l.getValueStrFromSections(O(i.emptyValue),s),[l,O,i.emptyValue,s]),[L,j]=u.useState(()=>{const Q=O(E),X={sections:Q,value:E,referenceValue:i.emptyValue,tempValueStrAndroid:null},ee=FSe(Q),oe=i.getInitialReferenceValue({referenceDate:y,value:E,utils:t,props:f,granularity:ee,timezone:k});return S({},X,{referenceValue:oe})}),[N,_]=Kr({controlled:w,default:null,name:"useField",state:"selectedSectionIndexes"}),T=Q=>{_(Q),b==null||b(Q),j(X=>S({},X,{selectedSectionQuery:null}))},B=u.useMemo(()=>{if(N==null)return null;if(N==="all")return{startIndex:0,endIndex:L.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof N=="number")return{startIndex:N,endIndex:N};if(typeof N=="string"){const Q=L.sections.findIndex(X=>X.type===N);return{startIndex:Q,endIndex:Q}}return N},[N,L.sections]),V=({value:Q,referenceValue:X,sections:ee})=>{if(j(Z=>S({},Z,{sections:ee,value:Q,referenceValue:X,tempValueStrAndroid:null})),i.areValuesEqual(t,L.value,Q))return;const oe={validationError:c({adapter:r,value:Q,props:S({},f,{value:Q,timezone:k})})};I(Q,oe)},A=(Q,X)=>{const ee=[...L.sections];return ee[Q]=S({},ee[Q],{value:X,modified:!0}),GB(ee,s)},F=()=>{V({value:i.emptyValue,referenceValue:L.referenceValue,sections:O(i.emptyValue)})},H=()=>{if(B==null)return;const Q=L.sections[B.startIndex],X=l.getActiveDateManager(t,L,Q),oe=X.getSections(L.sections).filter(re=>re.value!=="").length===(Q.value===""?0:1),Z=A(B.startIndex,""),pe=oe?null:t.date(new Date("")),ne=X.getNewValuesFromNewActiveDate(pe);(pe!=null&&!t.isValid(pe))!=(X.date!=null&&!t.isValid(X.date))?V(S({},ne,{sections:Z})):j(re=>S({},re,ne,{sections:Z,tempValueStrAndroid:null}))},K=Q=>{const X=(Z,pe)=>{const ne=t.parse(Z,m);if(ne==null||!t.isValid(ne))return null;const re=TD(t,k,n,m,ne,C,x,s);return RD(t,k,ne,re,pe,!1)},ee=l.parseValueStr(Q,L.referenceValue,X),oe=l.updateReferenceValue(t,ee,L.referenceValue);V({value:ee,referenceValue:oe,sections:O(ee,L.sections)})},Y=({activeSection:Q,newSectionValue:X,shouldGoToNextSection:ee})=>{ee&&B&&B.startIndex<L.sections.length-1?T(B.startIndex+1):B&&B.startIndex!==B.endIndex&&T(B.startIndex);const oe=l.getActiveDateManager(t,L,Q),Z=A(B.startIndex,X),pe=oe.getSections(Z),ne=HSe(t,pe);let re,me;if(ne!=null&&t.isValid(ne)){const ce=RD(t,k,ne,pe,oe.referenceDate,!0);re=oe.getNewValuesFromNewActiveDate(ce),me=!0}else re=oe.getNewValuesFromNewActiveDate(ne),me=(ne!=null&&!t.isValid(ne))!=(oe.date!=null&&!t.isValid(oe.date));return me?V(S({},re,{sections:Z})):j(ce=>S({},ce,re,{sections:Z,tempValueStrAndroid:null}))},J=Q=>j(X=>S({},X,{tempValueStrAndroid:Q}));return u.useEffect(()=>{const Q=O(L.value);j(X=>S({},X,{sections:Q}))},[m,t.locale]),u.useEffect(()=>{let Q=!1;i.areValuesEqual(t,L.value,E)?Q=i.getTimezone(t,L.value)!==i.getTimezone(t,E):Q=!0,Q&&j(X=>S({},X,{value:E,referenceValue:l.updateReferenceValue(t,E,X.referenceValue),sections:O(E)}))},[E]),{state:L,selectedSectionIndexes:B,setSelectedSections:T,clearValue:F,clearActiveSection:H,updateSectionValue:Y,updateValueFromValueStr:K,setTempAndroidValueStr:J,sectionsValueBoundaries:R,placeholder:$,timezone:k}},RPe=5e3,ku=e=>e.saveQuery!=null,OPe=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:o})=>{const s=sn(),[i,l]=u.useState(null),a=qe(()=>l(null));u.useEffect(()=>{var y;i!=null&&((y=e[i.sectionIndex])==null?void 0:y.type)!==i.sectionType&&a()},[e,i,a]),u.useEffect(()=>{if(i!=null){const y=setTimeout(()=>a(),RPe);return()=>{window.clearTimeout(y)}}return()=>{}},[i,a]);const c=({keyPressed:y,sectionIndex:v},m,C)=>{const w=y.toLowerCase(),b=e[v];if(i!=null&&(!C||C(i.value))&&i.sectionIndex===v){const P=`${i.value}${w}`,k=m(P,b);if(!ku(k))return l({sectionIndex:v,value:P,sectionType:b.type}),k}const x=m(w,b);return ku(x)&&!x.saveQuery?(a(),null):(l({sectionIndex:v,value:w,sectionType:b.type}),ku(x)?null:x)},f=y=>{const v=(w,b,x)=>{const P=b.filter(k=>k.toLowerCase().startsWith(x));return P.length===0?{saveQuery:!1}:{sectionValue:P[0],shouldGoToNextSection:P.length===1}},m=(w,b,x,P)=>{const k=E=>HB(s,o,b.type,E);if(b.contentType==="letter")return v(b.format,k(b.format),w);if(x&&P!=null&&VB(s,x).contentType==="letter"){const E=k(x),I=v(x,E,w);return ku(I)?{saveQuery:!1}:S({},I,{sectionValue:P(I.sectionValue,E)})}return{saveQuery:!1}};return c(y,(w,b)=>{switch(b.type){case"month":{const x=P=>_D(s,P,s.formats.month,b.format);return m(w,b,s.formats.month,x)}case"weekDay":{const x=(P,k)=>k.indexOf(P).toString();return m(w,b,s.formats.weekday,x)}case"meridiem":return m(w,b);default:return{saveQuery:!1}}})},p=y=>{const v=(C,w)=>{const b=+`${C}`,x=n[w.type]({currentDate:null,format:w.format,contentType:w.contentType});if(b>x.maximum)return{saveQuery:!1};if(b<x.minimum)return{saveQuery:!0};const P=+`${C}0`>x.maximum||C.length===x.maximum.toString().length;return{sectionValue:WB(s,o,b,x,w),shouldGoToNextSection:P}};return c(y,(C,w)=>{if(w.contentType==="digit"||w.contentType==="digit-with-letter")return v(C,w);if(w.type==="month"){const b=qB(s,o,"digit","month","MM"),x=v(C,{type:w.type,format:"MM",hasLeadingZerosInFormat:b,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(ku(x))return x;const P=_D(s,x.sectionValue,"MM",w.format);return S({},x,{sectionValue:P})}if(w.type==="weekDay"){const b=v(C,w);if(ku(b))return b;const x=G0(s,o,w.format)[Number(b.sectionValue)-1];return S({},b,{sectionValue:x})}return{saveQuery:!1}},C=>!Number.isNaN(Number(C)))};return{applyCharacterEditing:qe(y=>{const v=e[y.sectionIndex],C=!Number.isNaN(Number(y.keyPressed))?p(y):f(y);C==null?r(null):t({activeSection:v,newSectionValue:C.sectionValue,shouldGoToNextSection:C.shouldGoToNextSection})}),resetCharacterQuery:a}};function DPe(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const APe=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},Ny=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Ny(t.shadowRoot):t:null},LPe="@media (pointer: fine)",FPe=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],NPe=e=>{const t=sn(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:s,clearActiveSection:i,updateSectionValue:l,updateValueFromValueStr:a,setTempAndroidValueStr:c,sectionsValueBoundaries:f,placeholder:p,timezone:h}=$Pe(e),{inputRef:y,internalProps:v,internalProps:{readOnly:m=!1,unstableFieldRef:C,minutesStep:w},forwardedProps:{onClick:b,onKeyDown:x,onFocus:P,onBlur:k,onMouseUp:E,onPaste:I,error:R,clearable:O,onClear:$,disabled:L},fieldValueManager:j,valueManager:N,validator:_}=e,T=le(e.forwardedProps,FPe),{applyCharacterEditing:B,resetCharacterQuery:V}=OPe({sections:n.sections,updateSectionValue:l,sectionsValueBoundaries:f,setTempAndroidValueStr:c,timezone:h}),A=u.useRef(null),F=Et(y,A),H=u.useRef(void 0),Y=Fn().direction==="rtl",J=u.useMemo(()=>qSe(n.sections,Y),[n.sections,Y]),Q=()=>{var ie;if(m){o(null);return}const ue=(ie=A.current.selectionStart)!=null?ie:0;let we;ue<=n.sections[0].startInInput||ue>=n.sections[n.sections.length-1].endInInput?we=1:we=n.sections.findIndex(Me=>Me.startInInput-Me.startSeparator.length>ue);const xe=we===-1?n.sections.length-1:we-1;o(xe)},X=qe((ie,...ue)=>{ie.isDefaultPrevented()||(b==null||b(ie,...ue),Q())}),ee=qe(ie=>{E==null||E(ie),ie.preventDefault()}),oe=qe((...ie)=>{P==null||P(...ie);const ue=A.current;window.clearTimeout(H.current),H.current=setTimeout(()=>{!ue||ue!==A.current||r!=null||m||(ue.value.length&&Number(ue.selectionEnd)-Number(ue.selectionStart)===ue.value.length?o("all"):Q())})}),Z=qe((...ie)=>{k==null||k(...ie),o(null)}),pe=qe(ie=>{if(I==null||I(ie),m){ie.preventDefault();return}const ue=ie.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const we=n.sections[r.startIndex],xe=/^[a-zA-Z]+$/.test(ue),Me=/^[0-9]+$/.test(ue),Oe=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ue);if(we.contentType==="letter"&&xe||we.contentType==="digit"&&Me||we.contentType==="digit-with-letter"&&Oe){V(),l({activeSection:we,newSectionValue:ue,shouldGoToNextSection:!0}),ie.preventDefault();return}if(xe||Me){ie.preventDefault();return}}ie.preventDefault(),V(),a(ue)}),ne=qe(ie=>{if(m)return;const ue=ie.target.value;if(ue===""){V(),s();return}const we=ie.nativeEvent.data,xe=we&&we.length>1,Me=xe?we:ue,Oe=Xu(Me);if(r==null||xe){a(xe?we:Oe);return}let Be;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&Oe.length===1)Be=Oe;else{const Ke=Xu(j.getValueStrFromSections(n.sections,Y));let Ye=-1,Fe=-1;for(let Ve=0;Ve<Ke.length;Ve+=1)Ye===-1&&Ke[Ve]!==Oe[Ve]&&(Ye=Ve),Fe===-1&&Ke[Ke.length-Ve-1]!==Oe[Oe.length-Ve-1]&&(Fe=Ve);const mt=n.sections[r.startIndex];if(Ye<mt.start||Ke.length-Fe-1>mt.end)return;const Pt=Oe.length-Ke.length+mt.end-Xu(mt.endSeparator||"").length;Be=Oe.slice(mt.start+Xu(mt.startSeparator||"").length,Pt)}if(Be.length===0){KSe()?c(Me):(V(),i());return}B({keyPressed:Be,sectionIndex:r.startIndex})}),re=qe(ie=>{switch(x==null||x(ie),!0){case(ie.key==="a"&&(ie.ctrlKey||ie.metaKey)):{ie.preventDefault(),o("all");break}case ie.key==="ArrowRight":{if(ie.preventDefault(),r==null)o(J.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const ue=J.neighbors[r.startIndex].rightIndex;ue!==null&&o(ue)}break}case ie.key==="ArrowLeft":{if(ie.preventDefault(),r==null)o(J.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const ue=J.neighbors[r.startIndex].leftIndex;ue!==null&&o(ue)}break}case ie.key==="Delete":{if(ie.preventDefault(),m)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?s():i(),V();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(ie.key):{if(ie.preventDefault(),m||r==null)break;const ue=n.sections[r.startIndex],we=j.getActiveDateManager(t,n,ue),xe=jSe(t,h,ue,ie.key,f,we.date,{minutesStep:w});l({activeSection:ue,newSectionValue:xe,shouldGoToNextSection:!1});break}}});Ft(()=>{if(!A.current)return;if(r==null){A.current.scrollLeft&&(A.current.scrollLeft=0);return}const ie=n.sections[r.startIndex],ue=n.sections[r.endIndex];let we=ie.startInInput,xe=ue.endInInput;if(r.shouldSelectBoundarySelectors&&(we-=ie.startSeparator.length,xe+=ue.endSeparator.length),we!==A.current.selectionStart||xe!==A.current.selectionEnd){const Me=A.current.scrollTop;A.current===Ny(document)&&A.current.setSelectionRange(we,xe),A.current.scrollTop=Me}});const me=XB(S({},v,{value:n.value,timezone:h}),_,N.isSameError,N.defaultErrorState),ce=u.useMemo(()=>R!==void 0?R:N.hasError(me),[N,me,R]);u.useEffect(()=>{!ce&&!r&&V()},[n.referenceValue,r,ce]),u.useEffect(()=>(A.current&&A.current===document.activeElement&&o("all"),()=>window.clearTimeout(H.current)),[]),u.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(V(),i())},[n.tempValueStrAndroid]);const Ce=u.useMemo(()=>{var ie;return(ie=n.tempValueStrAndroid)!=null?ie:j.getValueStrFromSections(n.sections,Y)},[n.sections,j,n.tempValueStrAndroid,Y]),Ee=u.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),fe=A.current&&A.current===Ny(document),ke=N.areValuesEqual(t,n.value,N.emptyValue),ve=!fe&&ke;u.useImperativeHandle(C,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var ie,ue;const we=(ie=A.current.selectionStart)!=null?ie:0,xe=(ue=A.current.selectionEnd)!=null?ue:0;if(we===0&&xe===0)return null;const Me=we<=n.sections[0].startInInput?1:n.sections.findIndex(Oe=>Oe.startInInput-Oe.startSeparator.length>we);return Me===-1?n.sections.length-1:Me-1},setSelectedSections:ie=>o(ie)}));const Re=qe((ie,...ue)=>{var we;ie.preventDefault(),$==null||$(ie,...ue),s(),A==null||(we=A.current)==null||we.focus(),o(0)});return S({placeholder:p,autoComplete:"off",disabled:!!L},T,{value:ve?"":Ce,inputMode:Ee,readOnly:m,onClick:X,onFocus:oe,onBlur:Z,onPaste:pe,onChange:ne,onKeyDown:re,onMouseUp:ee,onClear:Re,error:ce,ref:F,clearable:!!(O&&!ke&&!m&&!L)})},ZB=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:o,shouldDisableYear:s,disablePast:i,disableFuture:l,timezone:a}=e,c=n.utils.dateWithTimezone(void 0,a),f=zs(n.utils,e.minDate,n.defaultDates.minDate),p=zs(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!!(s&&s(t)):return"shouldDisableYear";case!!(l&&n.utils.isAfterDay(t,c)):return"disableFuture";case!!(i&&n.utils.isBeforeDay(t,c)):return"disablePast";case!!(f&&n.utils.isBeforeDay(t,f)):return"minDate";case!!(p&&n.utils.isAfterDay(t,p)):return"maxDate";default:return null}},AS=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],LS=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],JB=["minDateTime","maxDateTime"],BPe=[...AS,...LS,...JB],e6=e=>BPe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),jPe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],zPe=(e,t)=>{const n=S({},e),r={},o=s=>{n.hasOwnProperty(s)&&(r[s]=n[s],delete n[s])};return jPe.forEach(o),t==="date"?AS.forEach(o):t==="time"?LS.forEach(o):t==="date-time"&&(AS.forEach(o),LS.forEach(o),JB.forEach(o)),{forwardedProps:n,internalProps:r}},VPe=se(B4)({[`& .${Fp.container}`]:{outline:0},[`& .${Fp.paper}`]:{outline:0,minWidth:H0}}),HPe=se(j4)({"&:first-of-type":{padding:0}});function UPe(e){var t,n;const{children:r,onDismiss:o,open:s,slots:i,slotProps:l}=e,a=(t=i==null?void 0:i.dialog)!=null?t:VPe,c=(n=i==null?void 0:i.mobileTransition)!=null?n:tf;return D.jsx(a,S({open:s,onClose:o},l==null?void 0:l.dialog,{TransitionComponent:c,TransitionProps:l==null?void 0:l.mobileTransition,PaperComponent:i==null?void 0:i.mobilePaper,PaperProps:l==null?void 0:l.mobilePaper,children:D.jsx(HPe,{children:r})}))}function WPe(e){return Ge("MuiPickersPopper",e)}Ue("MuiPickersPopper",["root","paper"]);const GPe="@media (prefers-reduced-motion: reduce)",hd=typeof navigator!="undefined"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),DD=hd&&hd[1]?parseInt(hd[1],10):null,AD=hd&&hd[2]?parseInt(hd[2],10):null,KPe=DD&&DD<10||AD&&AD<13||!1,t6=()=>B1(GPe,{defaultMatches:!1})||KPe,qPe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],YPe=e=>{const{classes:t}=e;return _e({root:["root"],paper:["paper"]},WPe,t)},QPe=se(Ua,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),XPe=se(Ws,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>S({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function ZPe(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function JPe(e,t){const n=u.useRef(!1),r=u.useRef(!1),o=u.useRef(null),s=u.useRef(!1);u.useEffect(()=>{if(!e)return;function a(){s.current=!0}return document.addEventListener("mousedown",a,!0),document.addEventListener("touchstart",a,!0),()=>{document.removeEventListener("mousedown",a,!0),document.removeEventListener("touchstart",a,!0),s.current=!1}},[e]);const i=qe(a=>{if(!s.current)return;const c=r.current;r.current=!1;const f=pn(o.current);if(!o.current||"clientX"in a&&ZPe(a,f))return;if(n.current){n.current=!1;return}let p;a.composedPath?p=a.composedPath().indexOf(o.current)>-1:p=!f.documentElement.contains(a.target)||o.current.contains(a.target),!p&&!c&&t(a)}),l=()=>{r.current=!0};return u.useEffect(()=>{if(e){const a=pn(o.current),c=()=>{n.current=!0};return a.addEventListener("touchstart",i),a.addEventListener("touchmove",c),()=>{a.removeEventListener("touchstart",i),a.removeEventListener("touchmove",c)}}},[e,i]),u.useEffect(()=>{if(e){const a=pn(o.current);return a.addEventListener("click",i),()=>{a.removeEventListener("click",i),r.current=!1}}},[e,i]),[o,l,l]}const e2e=u.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:s,paperSlotProps:i,paperClasses:l,onPaperClick:a,onPaperTouchStart:c}=e,f=le(e,qPe),p=S({},o,{placement:r}),h=Qn({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:l,ownerState:p});return D.jsx(n,S({},f,h,{onClick:y=>{var v;a(y),(v=h.onClick)==null||v.call(h,y)},onTouchStart:y=>{var v;c(y),(v=h.onTouchStart)==null||v.call(h,y)},ownerState:p,children:s}))});function t2e(e){var t,n,r,o;const s=We({props:e,name:"MuiPickersPopper"}),{anchorEl:i,children:l,containerRef:a=null,shouldRestoreFocus:c,onBlur:f,onDismiss:p,open:h,role:y,placement:v,slots:m,slotProps:C,reduceAnimations:w}=s;u.useEffect(()=>{function F(H){h&&(H.key==="Escape"||H.key==="Esc")&&p()}return document.addEventListener("keydown",F),()=>{document.removeEventListener("keydown",F)}},[p,h]);const b=u.useRef(null);u.useEffect(()=>{y==="tooltip"||c&&!c()||(h?b.current=Ny(document):b.current&&b.current instanceof HTMLElement&&setTimeout(()=>{b.current instanceof HTMLElement&&b.current.focus()}))},[h,y,c]);const[x,P,k]=JPe(h,f!=null?f:p),E=u.useRef(null),I=Et(E,a),R=Et(I,x),O=s,$=YPe(O),L=t6(),j=w!=null?w:L,N=F=>{F.key==="Escape"&&(F.stopPropagation(),p())},_=((t=m==null?void 0:m.desktopTransition)!=null?t:j)?tf:Ch,T=(n=m==null?void 0:m.desktopTrapFocus)!=null?n:M2,B=(r=m==null?void 0:m.desktopPaper)!=null?r:XPe,V=(o=m==null?void 0:m.popper)!=null?o:QPe,A=Qn({elementType:V,externalSlotProps:C==null?void 0:C.popper,additionalProps:{transition:!0,role:y,open:h,anchorEl:i,placement:v,onKeyDown:N},className:$.root,ownerState:s});return D.jsx(V,S({},A,{children:({TransitionProps:F,placement:H})=>D.jsx(T,S({open:h,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:y==="tooltip",isEnabled:()=>!0},C==null?void 0:C.desktopTrapFocus,{children:D.jsx(_,S({},F,C==null?void 0:C.desktopTransition,{children:D.jsx(e2e,{PaperComponent:B,ownerState:O,popperPlacement:H,ref:R,onPaperClick:P,onPaperTouchStart:k,paperClasses:$.paper,paperSlotProps:C==null?void 0:C.desktopPaper,children:l})}))}))}))}function n6(e){return Ge("MuiPickersToolbar",e)}Ue("MuiPickersToolbar",["root","content"]);const n2e=e=>{const{classes:t,isLandscape:n}=e;return _e({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},n6,t)},r2e=se("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>S({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"})),o2e=se("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"}}),s2e=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiPickersToolbar"}),{children:o,className:s,toolbarTitle:i,hidden:l,titleId:a}=r,c=r,f=n2e(c);return l?null:D.jsxs(r2e,{ref:n,className:be(f.root,s),ownerState:c,children:[D.jsx(qn,{color:"text.secondary",variant:"overline",id:a,children:i}),D.jsx(o2e,{className:f.content,ownerState:c,children:o})]})});function i2e(e){return Ge("MuiPickersToolbarText",e)}const LD=Ue("MuiPickersToolbarText",["root","selected"]),l2e=["className","selected","value"],a2e=e=>{const{classes:t,selected:n}=e;return _e({root:["root",n&&"selected"]},i2e,t)},c2e=se(qn,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${LD.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${LD.selected}`]:{color:(e.vars||e).palette.text.primary}})),r6=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiPickersToolbarText"}),{className:o,value:s}=r,i=le(r,l2e),l=a2e(r);return D.jsx(c2e,S({ref:n,className:be(o,l.root),component:"span"},i,{children:s}))}),u2e=["align","className","selected","typographyClassName","value","variant","width"],d2e=e=>{const{classes:t}=e;return _e({root:["root"]},n6,t)},f2e=se(Yn,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),ea=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiPickersToolbarButton"}),{align:o,className:s,selected:i,typographyClassName:l,value:a,variant:c,width:f}=r,p=le(r,u2e),h=d2e(r);return D.jsx(f2e,S({variant:"text",ref:n,className:be(s,h.root)},f?{sx:{width:f}}:{},p,{children:D.jsx(r6,{align:o,className:l,variant:c,value:a,selected:i})}))}),p2e=({open:e,onOpen:t,onClose:n})=>{const r=u.useRef(typeof e=="boolean").current,[o,s]=u.useState(!1);u.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");s(e)}},[r,e]);const i=u.useCallback(l=>{r||s(l),l&&t&&t(),!l&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:i}},h2e=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,s=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?s&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?s?!0:n(r.lastPublishedValue):!1},m2e=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:s}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&s?i?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},g2e=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},v2e=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:s,onChange:i,value:l,defaultValue:a,closeOnSelect:c=r==="desktop",selectedSections:f,onSelectedSectionsChange:p,timezone:h}=e,{current:y}=u.useRef(a),{current:v}=u.useRef(l!==void 0),m=sn(),C=Xc(),[w,b]=Kr({controlled:f,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:x,setIsOpen:P}=p2e(e),[k,E]=u.useState(()=>{let oe;return l!==void 0?oe=l:y!==void 0?oe=y:oe=t.emptyValue,{draft:oe,lastPublishedValue:oe,lastCommittedValue:oe,lastControlledValue:l,hasBeenModifiedSinceMount:!1}}),{timezone:I,handleValueChange:R}=Sk({timezone:h,value:l,defaultValue:y,onChange:i,valueManager:t});XB(S({},e,{value:k.draft,timezone:I}),o,t.isSameError,t.defaultErrorState);const O=qe(oe=>{const Z={action:oe,dateState:k,hasChanged:me=>!t.areValuesEqual(m,oe.value,me),isControlled:v,closeOnSelect:c},pe=h2e(Z),ne=m2e(Z),re=g2e(Z);if(E(me=>S({},me,{draft:oe.value,lastPublishedValue:pe?oe.value:me.lastPublishedValue,lastCommittedValue:ne?oe.value:me.lastCommittedValue,hasBeenModifiedSinceMount:!0})),pe){const ce={validationError:oe.name==="setValueFromField"?oe.context.validationError:o({adapter:C,value:oe.value,props:S({},e,{value:oe.value,timezone:I})})};oe.name==="setValueFromShortcut"&&oe.shortcut!=null&&(ce.shortcut=oe.shortcut),R(oe.value,ce)}ne&&s&&s(oe.value),re&&P(!1)});if(l!==void 0&&(k.lastControlledValue===void 0||!t.areValuesEqual(m,k.lastControlledValue,l))){const oe=t.areValuesEqual(m,k.draft,l);E(Z=>S({},Z,{lastControlledValue:l},oe?{}:{lastCommittedValue:l,lastPublishedValue:l,draft:l,hasBeenModifiedSinceMount:!0}))}const $=qe(()=>{O({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),L=qe(()=>{O({value:k.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),j=qe(()=>{O({value:k.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),N=qe(()=>{O({value:k.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),_=qe(()=>{O({value:t.getTodayValue(m,I,n),name:"setValueFromAction",pickerAction:"today"})}),T=qe(()=>P(!0)),B=qe(()=>P(!1)),V=qe((oe,Z="partial")=>O({name:"setValueFromView",value:oe,selectionState:Z})),A=qe((oe,Z,pe)=>O({name:"setValueFromShortcut",value:oe,changeImportance:Z!=null?Z:"accept",shortcut:pe})),F=qe((oe,Z)=>O({name:"setValueFromField",value:oe,context:Z})),H=qe(oe=>{b(oe),p==null||p(oe)}),K={onClear:$,onAccept:L,onDismiss:j,onCancel:N,onSetToday:_,onOpen:T,onClose:B},Y={value:k.draft,onChange:F,selectedSections:w,onSelectedSectionsChange:H},J=u.useMemo(()=>t.cleanValue(m,k.draft),[m,t,k.draft]),Q={value:J,onChange:V,onClose:B,open:x,onSelectedSectionsChange:H},ee=S({},K,{value:J,onChange:V,onSelectShortcut:A,isValid:oe=>{const Z=o({adapter:C,value:oe,props:S({},e,{value:oe,timezone:I})});return!t.hasError(Z)}});return{open:x,fieldProps:Y,viewProps:Q,layoutProps:ee,actions:K}},y2e=["className","sx"],b2e=({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:r,autoFocusView:o})=>{const{onChange:s,open:i,onSelectedSectionsChange:l,onClose:a}=t,{views:c,openTo:f,onViewChange:p,disableOpenPicker:h,viewRenderers:y,timezone:v}=e,m=le(e,y2e),{view:C,setView:w,defaultView:b,focusedView:x,setFocusedView:P,setValueAndGoToNextView:k}=vm({view:void 0,views:c,openTo:f,onChange:s,onViewChange:p,autoFocus:o}),{hasUIView:E,viewModeLookup:I}=u.useMemo(()=>c.reduce((_,T)=>{let B;return h?B="field":y[T]!=null?B="UI":B="field",_.viewModeLookup[T]=B,B==="UI"&&(_.hasUIView=!0),_},{hasUIView:!1,viewModeLookup:{}}),[h,y,c]),R=u.useMemo(()=>c.reduce((_,T)=>y[T]!=null&&Vd(T)?_+1:_,0),[y,c]),O=I[C],$=qe(()=>O==="UI"),[L,j]=u.useState(O==="UI"?C:null);return L!==C&&I[C]==="UI"&&j(C),Ft(()=>{O==="field"&&i&&(a(),setTimeout(()=>{r==null||r.current.focus(),l(C)}))},[C]),Ft(()=>{if(!i)return;let _=C;O==="field"&&L!=null&&(_=L),_!==b&&I[_]==="UI"&&I[b]==="UI"&&(_=b),_!==C&&w(_),P(_,!0)},[i]),{hasUIView:E,shouldRestoreFocus:$,layoutProps:{views:c,view:L,onViewChange:w},renderCurrentView:()=>{if(L==null)return null;const _=y[L];return _==null?null:_(S({},m,n,t,{views:c,timezone:v,onChange:k,view:L,onViewChange:w,focusedView:x,onFocusedViewChange:P,showViewSwitcher:R>1,timeViewsCount:R}))}}};function FD(){return typeof window=="undefined"?"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 w2e=(e,t)=>{const[n,r]=u.useState(FD);return Ft(()=>{const s=()=>{r(FD())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),DPe(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},C2e=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,s=w2e(n.views,o);return{layoutProps:S({},n,t,{isLandscape:s,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},o6=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
621
+ `):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};o6(["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 s6=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:s,validator:i,autoFocusView:l})=>{const a=v2e({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),c=b2e({props:e,inputRef:o,additionalViewProps:s,autoFocusView:l,propsFromPickerValue:a.viewProps}),f=C2e({props:e,wrapperVariant:r,propsFromPickerValue:a.layoutProps,propsFromPickerViews:c.layoutProps});return{open:a.open,actions:a.actions,fieldProps:a.fieldProps,renderCurrentView:c.renderCurrentView,hasUIView:c.hasUIView,shouldRestoreFocus:c.shouldRestoreFocus,layoutProps:f.layoutProps}};function i6(e){return Ge("MuiPickersLayout",e)}const IC=Ue("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),x2e=["onAccept","onClear","onCancel","onSetToday","actions"];function S2e(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:s}=e,i=le(e,x2e),l=ds();if(s==null||s.length===0)return null;const a=s==null?void 0:s.map(c=>{switch(c){case"clear":return D.jsx(Yn,{onClick:n,children:l.clearButtonLabel},c);case"cancel":return D.jsx(Yn,{onClick:r,children:l.cancelButtonLabel},c);case"accept":return D.jsx(Yn,{onClick:t,children:l.okButtonLabel},c);case"today":return D.jsx(Yn,{onClick:o,children:l.todayButtonLabel},c);default:return null}});return D.jsx(Gse,S({},i,{children:a}))}const P2e=["items","changeImportance","isLandscape","onChange","isValid"],E2e=["getValue"];function k2e(e){const{items:t,changeImportance:n,onChange:r,isValid:o}=e,s=le(e,P2e);if(t==null||t.length===0)return null;const i=t.map(l=>{let{getValue:a}=l,c=le(l,E2e);const f=a({isValid:o});return{label:c.label,onClick:()=>{r(f,n,c)},disabled:!o(f)}});return D.jsx(rm,S({dense:!0,sx:[{maxHeight:U0,maxWidth:200,overflow:"auto"},...Array.isArray(s.sx)?s.sx:[s.sx]]},s,{children:i.map(l=>D.jsx(N2,{children:D.jsx(tm,S({},l))},l.label))}))}function I2e(e){return e.view!==null}const M2e=e=>{const{classes:t,isLandscape:n}=e;return _e({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},i6,t)},_2e=e=>{var t,n;const{wrapperVariant:r,onAccept:o,onClear:s,onCancel:i,onSetToday:l,view:a,views:c,onViewChange:f,value:p,onChange:h,onSelectShortcut:y,isValid:v,isLandscape:m,disabled:C,readOnly:w,children:b,components:x,componentsProps:P,slots:k,slotProps:E}=e,I=k!=null?k:Ek(x),R=E!=null?E:P,O=M2e(e),$=(t=I==null?void 0:I.actionBar)!=null?t:S2e,L=Qn({elementType:$,externalSlotProps:R==null?void 0:R.actionBar,additionalProps:{onAccept:o,onClear:s,onCancel:i,onSetToday:l,actions:r==="desktop"?[]:["cancel","accept"],className:O.actionBar},ownerState:S({},e,{wrapperVariant:r})}),j=D.jsx($,S({},L)),N=I==null?void 0:I.toolbar,_=Qn({elementType:N,externalSlotProps:R==null?void 0:R.toolbar,additionalProps:{isLandscape:m,onChange:h,value:p,view:a,onViewChange:f,views:c,disabled:C,readOnly:w,className:O.toolbar},ownerState:S({},e,{wrapperVariant:r})}),T=I2e(_)&&N?D.jsx(N,S({},_)):null,B=b,V=I==null?void 0:I.tabs,A=a&&V?D.jsx(V,S({view:a,onViewChange:f,className:O.tabs},R==null?void 0:R.tabs)):null,F=(n=I==null?void 0:I.shortcuts)!=null?n:k2e,H=Qn({elementType:F,externalSlotProps:R==null?void 0:R.shortcuts,additionalProps:{isValid:v,isLandscape:m,onChange:y,className:O.shortcuts},ownerState:{isValid:v,isLandscape:m,onChange:y,className:O.shortcuts,wrapperVariant:r}}),K=a&&F?D.jsx(F,S({},H)):null;return{toolbar:T,content:B,tabs:A,actionBar:j,shortcuts:K}},T2e=_2e,$2e=e=>{const{isLandscape:t,classes:n}=e;return _e({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},i6,n)},l6=se("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",[`& .${IC.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${IC.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${IC.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));l6.propTypes={as:W.elementType,ownerState:W.shape({isLandscape:W.bool.isRequired}).isRequired,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object])};const R2e=se("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),a6=function(t){const n=We({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:s,actionBar:i,shortcuts:l}=T2e(n),{sx:a,className:c,isLandscape:f,ref:p,wrapperVariant:h}=n,y=n,v=$2e(y);return D.jsxs(l6,{ref:p,sx:a,className:be(c,v.root),ownerState:y,children:[f?l:r,f?r:l,D.jsx(R2e,{className:v.contentWrapper,children:h==="desktop"?D.jsxs(u.Fragment,{children:[o,s]}):D.jsxs(u.Fragment,{children:[s,o]})}),i]})},O2e=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:o,minutesStep:s,shouldDisableClock:i,shouldDisableTime:l,disableIgnoringDatePartForTimeValidation:a=!1,disablePast:c,disableFuture:f,timezone:p}=n,h=e.utils.dateWithTimezone(void 0,p),y=gm(a,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&y(r,t)):return"minTime";case!!(o&&y(t,o)):return"maxTime";case!!(f&&e.utils.isAfter(t,h)):return"disableFuture";case!!(c&&e.utils.isBefore(t,h)):return"disablePast";case!!(l&&l(t,"hours")):return"shouldDisableTime-hours";case!!(l&&l(t,"minutes")):return"shouldDisableTime-minutes";case!!(l&&l(t,"seconds")):return"shouldDisableTime-seconds";case!!(i&&i(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(i&&i(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(i&&i(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(s&&e.utils.getMinutes(t)%s!==0):return"minutesStep";default:return null}},Ik=({props:e,value:t,adapter:n})=>{const r=ZB({adapter:n,value:t,props:e});return r!==null?r:O2e({adapter:n,value:t,props:e})},D2e=e=>Ge("MuiPickersSlideTransition",e),xs=Ue("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),A2e=["children","className","reduceAnimations","slideDirection","transKey","classes"],L2e=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return _e(r,D2e,t)},F2e=se(k2,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${xs["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${xs["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${xs.slideEnterActive}`]:t.slideEnterActive},{[`.${xs.slideExit}`]:t.slideExit},{[`.${xs["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${xs["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},[`& .${xs["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${xs["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${xs.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${xs.slideExit}`]:{transform:"translate(0%)"},[`& .${xs["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${xs["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function N2e(e){const t=We({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=le(t,A2e),l=L2e(t),a=Fn();if(o)return D.jsx("div",{className:be(l.root,r),children:n});const c={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return D.jsx(F2e,{className:be(l.root,r),childFactory:f=>u.cloneElement(f,{classNames:c}),role:"presentation",children:D.jsx(tee,S({mountOnEnter:!0,unmountOnExit:!0,timeout:a.transitions.duration.complex,classNames:c},i,{children:n}),s)})}const c6=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i,timezone:l})=>{const a=Xc();return u.useCallback(c=>ZB({adapter:a,value:c,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i,timezone:l}})!==null,[a,e,t,n,r,o,s,i,l])},B2e=e=>Ge("MuiDayCalendar",e);Ue("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const j2e=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],z2e=["ownerState"],V2e=e=>{const{classes:t}=e;return _e({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},B2e,t)},u6=($h+V0*2)*6,H2e=se("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),U2e=se("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),W2e=se(qn,{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})),G2e=se(qn,{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})),K2e=se(qn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>S({},e.typography.caption,{width:$h,height:$h,padding:0,margin:`0 ${V0}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),q2e=se("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:u6}),Y2e=se(N2e,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:u6}),Q2e=se("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),X2e=se("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${V0}px 0`,display:"flex",justifyContent:"center"});function Z2e(e){var t,n,r;let{parentProps:o,day:s,focusableDay:i,selectedDays:l,isDateDisabled:a,currentMonthNumber:c,isViewFocused:f}=e,p=le(e,j2e);const{disabled:h,disableHighlightToday:y,isMonthSwitchingAnimating:v,showDaysOutsideCurrentMonth:m,components:C,componentsProps:w,slots:b,slotProps:x,timezone:P}=o,k=sn(),E=qa(P),I=i!==null&&k.isSameDay(s,i),R=l.some(V=>k.isSameDay(V,s)),O=k.isSameDay(s,E),$=(t=(n=b==null?void 0:b.day)!=null?n:C==null?void 0:C.Day)!=null?t:TPe,L=Qn({elementType:$,externalSlotProps:(r=x==null?void 0:x.day)!=null?r:w==null?void 0:w.day,additionalProps:S({disableHighlightToday:y,showDaysOutsideCurrentMonth:m,role:"gridcell",isAnimating:v,"data-timestamp":k.toJsDate(s).valueOf()},p),ownerState:S({},o,{day:s,selected:R})}),j=le(L,z2e),N=u.useMemo(()=>h||a(s),[h,a,s]),_=u.useMemo(()=>k.getMonth(s)!==c,[k,s,c]),T=u.useMemo(()=>{const V=k.startOfMonth(k.setMonth(s,c));return m?k.isSameDay(s,k.startOfWeek(V)):k.isSameDay(s,V)},[c,s,m,k]),B=u.useMemo(()=>{const V=k.endOfMonth(k.setMonth(s,c));return m?k.isSameDay(s,k.endOfWeek(V)):k.isSameDay(s,V)},[c,s,m,k]);return D.jsx($,S({},j,{day:s,disabled:N,autoFocus:f&&I,today:O,outsideCurrentMonth:_,isFirstVisibleCell:T,isLastVisibleCell:B,selected:R,tabIndex:I?0:-1,"aria-selected":R,"aria-current":O?"date":void 0}))}function J2e(e){const t=We({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:o,selectedDays:s,focusedDay:i,loading:l,onSelectedDaysChange:a,onMonthSwitchingAnimationEnd:c,readOnly:f,reduceAnimations:p,renderLoading:h=()=>D.jsx("span",{children:"..."}),slideDirection:y,TransitionProps:v,disablePast:m,disableFuture:C,minDate:w,maxDate:b,shouldDisableDate:x,shouldDisableMonth:P,shouldDisableYear:k,dayOfWeekFormatter:E,hasFocus:I,onFocusedViewChange:R,gridLabelId:O,displayWeekNumber:$,fixedWeekNumber:L,autoFocus:j,timezone:N}=t,_=qa(N),T=sn(),B=V2e(t),A=Fn().direction==="rtl",F=E||((ve,Re)=>T.format(Re,"weekdayShort").charAt(0).toUpperCase()),H=c6({shouldDisableDate:x,shouldDisableMonth:P,shouldDisableYear:k,minDate:w,maxDate:b,disablePast:m,disableFuture:C,timezone:N}),K=ds(),[Y,J]=Kr({name:"DayCalendar",state:"hasFocus",controlled:I,default:j!=null?j:!1}),[Q,X]=u.useState(()=>i||_),ee=qe(ve=>{f||a(ve)}),oe=ve=>{H(ve)||(n(ve),X(ve),R==null||R(!0),J(!0))},Z=qe((ve,Re)=>{switch(ve.key){case"ArrowUp":oe(T.addDays(Re,-7)),ve.preventDefault();break;case"ArrowDown":oe(T.addDays(Re,7)),ve.preventDefault();break;case"ArrowLeft":{const ie=T.addDays(Re,A?1:-1),ue=T.addMonths(Re,A?1:-1),we=zp({utils:T,date:ie,minDate:A?ie:T.startOfMonth(ue),maxDate:A?T.endOfMonth(ue):ie,isDateDisabled:H,timezone:N});oe(we||ie),ve.preventDefault();break}case"ArrowRight":{const ie=T.addDays(Re,A?-1:1),ue=T.addMonths(Re,A?-1:1),we=zp({utils:T,date:ie,minDate:A?T.startOfMonth(ue):ie,maxDate:A?ie:T.endOfMonth(ue),isDateDisabled:H,timezone:N});oe(we||ie),ve.preventDefault();break}case"Home":oe(T.startOfWeek(Re)),ve.preventDefault();break;case"End":oe(T.endOfWeek(Re)),ve.preventDefault();break;case"PageUp":oe(T.addMonths(Re,1)),ve.preventDefault();break;case"PageDown":oe(T.addMonths(Re,-1)),ve.preventDefault();break}}),pe=qe((ve,Re)=>oe(Re)),ne=qe((ve,Re)=>{Y&&T.isSameDay(Q,Re)&&(R==null||R(!1))}),re=T.getMonth(o),me=u.useMemo(()=>s.filter(ve=>!!ve).map(ve=>T.startOfDay(ve)),[T,s]),ce=re,Ce=u.useMemo(()=>u.createRef(),[ce]),Ee=T.startOfWeek(_),fe=u.useMemo(()=>{const ve=T.startOfMonth(o),Re=T.endOfMonth(o);return H(Q)||T.isAfterDay(Q,Re)||T.isBeforeDay(Q,ve)?zp({utils:T,date:Q,minDate:ve,maxDate:Re,disablePast:m,disableFuture:C,isDateDisabled:H,timezone:N}):Q},[o,C,m,Q,H,T,N]),ke=u.useMemo(()=>{const ve=T.setTimezone(o,N),Re=T.getWeekArray(ve);let ie=T.addMonths(ve,1);for(;L&&Re.length<L;){const ue=T.getWeekArray(ie),we=T.isSameDay(Re[Re.length-1][0],ue[0][0]);ue.slice(we?1:0).forEach(xe=>{Re.length<L&&Re.push(xe)}),ie=T.addMonths(ie,1)}return Re},[o,L,T,N]);return D.jsxs(H2e,{role:"grid","aria-labelledby":O,className:B.root,children:[D.jsxs(U2e,{role:"row",className:B.header,children:[$&&D.jsx(G2e,{variant:"caption",role:"columnheader","aria-label":K.calendarWeekNumberHeaderLabel,className:B.weekNumberLabel,children:K.calendarWeekNumberHeaderText}),xSe(T,_).map((ve,Re)=>{var ie;const ue=T.format(ve,"weekdayShort");return D.jsx(W2e,{variant:"caption",role:"columnheader","aria-label":T.format(T.addDays(Ee,Re),"weekday"),className:B.weekDayLabel,children:(ie=F==null?void 0:F(ue,ve))!=null?ie:ue},ue+Re.toString())})]}),l?D.jsx(q2e,{className:B.loadingContainer,children:h()}):D.jsx(Y2e,S({transKey:ce,onExited:c,reduceAnimations:p,slideDirection:y,className:be(r,B.slideTransition)},v,{nodeRef:Ce,children:D.jsx(Q2e,{ref:Ce,role:"rowgroup",className:B.monthContainer,children:ke.map((ve,Re)=>D.jsxs(X2e,{role:"row",className:B.weekContainer,"aria-rowindex":Re+1,children:[$&&D.jsx(K2e,{className:B.weekNumber,role:"rowheader","aria-label":K.calendarWeekNumberAriaLabelText(T.getWeekNumber(ve[0])),children:K.calendarWeekNumberText(T.getWeekNumber(ve[0]))}),ve.map((ie,ue)=>D.jsx(Z2e,{parentProps:t,day:ie,selectedDays:me,focusableDay:fe,onKeyDown:Z,onFocus:pe,onBlur:ne,onDaySelect:ee,isDateDisabled:H,currentMonthNumber:re,isViewFocused:Y,"aria-colindex":ue+1},ie.toString()))]},`week-${ve[0]}`))})}))]})}const eEe=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return S({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return S({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const s=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return S({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:s&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:s?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},tEe=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:o,disablePast:s,disableSwitchToMonthOnDayFocus:i=!1,maxDate:l,minDate:a,onMonthChange:c,reduceAnimations:f,shouldDisableDate:p,timezone:h}=e,y=qa(h),v=sn(),m=u.useRef(eEe(!!f,i,v)).current,C=u.useMemo(()=>{let R=null;return n?R=n:r&&(R=v.startOfMonth(r)),ls.getInitialReferenceValue({value:t,utils:v,timezone:h,props:e,referenceDate:R,granularity:ii.day})},[]),[w,b]=u.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:v.isValid(t)?t:y,currentMonth:v.startOfMonth(C),slideDirection:"left"}),x=u.useCallback(R=>{b(S({type:"changeMonth"},R)),c&&c(R.newMonth)},[c]),P=u.useCallback(R=>{const O=R;v.isSameMonth(O,w.currentMonth)||x({newMonth:v.startOfMonth(O),direction:v.isAfterDay(O,w.currentMonth)?"left":"right"})},[w.currentMonth,x,v]),k=c6({shouldDisableDate:p,minDate:a,maxDate:l,disableFuture:o,disablePast:s,timezone:h}),E=u.useCallback(()=>{b({type:"finishMonthSwitchingAnimation"})},[]),I=qe((R,O)=>{k(R)||b({type:"changeFocusedDay",focusedDay:R,withoutMonthSwitchingAnimation:O})});return{referenceDate:C,calendarState:w,changeMonth:P,changeFocusedDay:I,isDateDisabled:k,onMonthSwitchingAnimationEnd:E,handleChangeMonth:x}},nEe=["ownerState"],rEe=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:o,slotProps:s,components:i,componentsProps:l})=>{var a,c,f,p,h,y;const v=ds(),m=(a=(c=o==null?void 0:o.clearButton)!=null?c:i==null?void 0:i.ClearButton)!=null?a:xr,C=Qn({elementType:m,externalSlotProps:(f=s==null?void 0:s.clearButton)!=null?f:l==null?void 0:l.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:v.fieldClearLabel}}),w=le(C,nEe),b=(p=(h=o==null?void 0:o.clearIcon)!=null?h:i==null?void 0:i.ClearIcon)!=null?p:Gxe,x=Qn({elementType:b,externalSlotProps:(y=s==null?void 0:s.clearIcon)!=null?y:l==null?void 0:l.clearIcon,ownerState:{}}),P=S({},n,{endAdornment:D.jsxs(u.Fragment,{children:[e&&D.jsx(Tl,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:D.jsx(m,S({},w,{onClick:r,children:D.jsx(b,S({fontSize:"small"},x))}))}),n==null?void 0:n.endAdornment]})}),k=S({},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:P,fieldProps:k}},oEe=e=>{var t,n,r,o,s,i,l,a;const c=sn(),f=mm(),h=((t=e.ampm)!=null?t:c.is12HourCycleInCurrentLocale())?c.formats.keyboardDateTime12h:c.formats.keyboardDateTime24h;return S({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:h,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:zs(c,(s=e.minDateTime)!=null?s:e.minDate,f.minDate),maxDate:zs(c,(i=e.maxDateTime)!=null?i:e.maxDate,f.maxDate),minTime:(l=e.minDateTime)!=null?l:e.minTime,maxTime:(a=e.maxDateTime)!=null?a:e.maxTime})},sEe=({props:e,inputRef:t})=>{const n=oEe(e),{forwardedProps:r,internalProps:o}=zPe(n,"date-time");return NPe({inputRef:t,forwardedProps:r,internalProps:o,valueManager:ls,fieldValueManager:QSe,validator:Ik,valueType:"date-time"})},iEe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],lEe=["inputRef"],aEe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],d6=u.forwardRef(function(t,n){var r,o,s;const i=We({props:t,name:"MuiDateTimeField"}),{components:l,componentsProps:a,slots:c,slotProps:f,InputProps:p,inputProps:h}=i,y=le(i,iEe),v=i,m=(r=(o=c==null?void 0:c.textField)!=null?o:l==null?void 0:l.TextField)!=null?r:Wa,C=Qn({elementType:m,externalSlotProps:(s=f==null?void 0:f.textField)!=null?s:a==null?void 0:a.textField,externalForwardedProps:y,ownerState:v}),{inputRef:w}=C,b=le(C,lEe);b.inputProps=S({},h,b.inputProps),b.InputProps=S({},p,b.InputProps);const x=sEe({props:b,inputRef:w}),{ref:P,onPaste:k,onKeyDown:E,inputMode:I,readOnly:R,clearable:O,onClear:$}=x,L=le(x,aEe),{InputProps:j,fieldProps:N}=rEe({onClear:$,clearable:O,fieldProps:L,InputProps:L.InputProps,slots:c,slotProps:f,components:l,componentsProps:a});return D.jsx(m,S({ref:n},N,{InputProps:S({},j,{readOnly:R}),inputProps:S({},L.inputProps,{inputMode:I,onPaste:k,onKeyDown:E,ref:P})}))}),cEe=e=>Ge("MuiPickersFadeTransitionGroup",e);Ue("MuiPickersFadeTransitionGroup",["root"]);const uEe=e=>{const{classes:t}=e;return _e({root:["root"]},cEe,t)},dEe=se(k2,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function f6(e){const t=We({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=uEe(t),l=Fn();return o?n:D.jsx(dEe,{className:be(i.root,r),children:D.jsx(tf,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:l.transitions.duration.enteringScreen,enter:l.transitions.duration.enteringScreen,exit:0},children:n},s)})}function fEe(e){return Ge("MuiPickersMonth",e)}const Vg=Ue("MuiPickersMonth",["root","monthButton","disabled","selected"]),pEe=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],hEe=e=>{const{disabled:t,selected:n,classes:r}=e;return _e({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},fEe,r)},mEe=se("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"})),gEe=se("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Vg.disabled}`]:t.disabled},{[`&.${Vg.selected}`]:t.selected}]})(({theme:e})=>S({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})`:In(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Vg.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Vg.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),vEe=u.memo(function(t){const n=We({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:o,disabled:s,selected:i,value:l,tabIndex:a,onClick:c,onKeyDown:f,onFocus:p,onBlur:h,"aria-current":y,"aria-label":v}=n,m=le(n,pEe),C=u.useRef(null),w=hEe(n);return Ft(()=>{if(r){var b;(b=C.current)==null||b.focus()}},[r]),D.jsx(mEe,S({className:w.root,ownerState:n},m,{children:D.jsx(gEe,{ref:C,disabled:s,type:"button",role:"radio",tabIndex:s?-1:a,"aria-current":y,"aria-checked":i,"aria-label":v,onClick:b=>c(b,l),onKeyDown:b=>f(b,l),onFocus:b=>p(b,l),onBlur:b=>h(b,l),className:w.monthButton,ownerState:n,children:o})}))});function yEe(e){return Ge("MuiMonthCalendar",e)}Ue("MuiMonthCalendar",["root"]);const bEe=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],wEe=e=>{const{classes:t}=e;return _e({root:["root"]},yEe,t)};function CEe(e,t){const n=sn(),r=mm(),o=We({props:e,name:t});return S({disableFuture:!1,disablePast:!1},o,{minDate:zs(n,o.minDate,r.minDate),maxDate:zs(n,o.maxDate,r.maxDate)})}const xEe=se("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:H0,boxSizing:"border-box"}),SEe=u.forwardRef(function(t,n){const r=CEe(t,"MuiMonthCalendar"),{className:o,value:s,defaultValue:i,referenceDate:l,disabled:a,disableFuture:c,disablePast:f,maxDate:p,minDate:h,onChange:y,shouldDisableMonth:v,readOnly:m,disableHighlightToday:C,autoFocus:w=!1,onMonthFocus:b,hasFocus:x,onFocusedViewChange:P,monthsPerRow:k=3,timezone:E,gridLabelId:I}=r,R=le(r,bEe),{value:O,handleValueChange:$,timezone:L}=pf({name:"MonthCalendar",timezone:E,value:s,defaultValue:i,onChange:y,valueManager:ls}),j=qa(L),N=Xd(),_=sn(),T=u.useMemo(()=>ls.getInitialReferenceValue({value:O,utils:_,props:r,timezone:L,referenceDate:l,granularity:ii.month}),[]),B=r,V=wEe(B),A=u.useMemo(()=>_.getMonth(j),[_,j]),F=u.useMemo(()=>O!=null?_.getMonth(O):C?null:_.getMonth(T),[O,_,C,T]),[H,K]=u.useState(()=>F||A),[Y,J]=Kr({name:"MonthCalendar",state:"hasFocus",controlled:x,default:w!=null?w:!1}),Q=qe(re=>{J(re),P&&P(re)}),X=u.useCallback(re=>{const me=_.startOfMonth(f&&_.isAfter(j,h)?j:h),ce=_.startOfMonth(c&&_.isBefore(j,p)?j:p),Ce=_.startOfMonth(re);return _.isBefore(Ce,me)||_.isAfter(Ce,ce)?!0:v?v(Ce):!1},[c,f,p,h,j,v,_]),ee=qe((re,me)=>{if(m)return;const ce=_.setMonth(O!=null?O:T,me);$(ce)}),oe=qe(re=>{X(_.setMonth(O!=null?O:T,re))||(K(re),Q(!0),b&&b(re))});u.useEffect(()=>{K(re=>F!==null&&re!==F?F:re)},[F]);const Z=qe((re,me)=>{switch(re.key){case"ArrowUp":oe((12+me-3)%12),re.preventDefault();break;case"ArrowDown":oe((12+me+3)%12),re.preventDefault();break;case"ArrowLeft":oe((12+me+(N.direction==="ltr"?-1:1))%12),re.preventDefault();break;case"ArrowRight":oe((12+me+(N.direction==="ltr"?1:-1))%12),re.preventDefault();break}}),pe=qe((re,me)=>{oe(me)}),ne=qe((re,me)=>{H===me&&Q(!1)});return D.jsx(xEe,S({ref:n,className:be(V.root,o),ownerState:B,role:"radiogroup","aria-labelledby":I},R,{children:Ck(_,O!=null?O:T).map(re=>{const me=_.getMonth(re),ce=_.format(re,"monthShort"),Ce=_.format(re,"month"),Ee=me===F,fe=a||X(re);return D.jsx(vEe,{selected:Ee,value:me,onClick:ee,onKeyDown:Z,autoFocus:Y&&me===H,disabled:fe,tabIndex:me===H?0:-1,onFocus:pe,onBlur:ne,"aria-current":A===me?"date":void 0,"aria-label":Ce,monthsPerRow:k,children:ce},ce)})}))});function PEe(e){return Ge("MuiPickersYear",e)}const Hg=Ue("MuiPickersYear",["root","yearButton","selected","disabled"]),EEe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],kEe=e=>{const{disabled:t,selected:n,classes:r}=e;return _e({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},PEe,r)},IEe=se("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"})),MEe=se("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Hg.disabled}`]:t.disabled},{[`&.${Hg.selected}`]:t.selected}]})(({theme:e})=>S({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})`:In(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:In(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Hg.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Hg.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),_Ee=u.memo(function(t){const n=We({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:s,disabled:i,selected:l,value:a,tabIndex:c,onClick:f,onKeyDown:p,onFocus:h,onBlur:y,"aria-current":v}=n,m=le(n,EEe),C=u.useRef(null),w=kEe(n);return u.useEffect(()=>{r&&C.current.focus()},[r]),D.jsx(IEe,S({className:be(w.root,o),ownerState:n},m,{children:D.jsx(MEe,{ref:C,disabled:i,type:"button",role:"radio",tabIndex:i?-1:c,"aria-current":v,"aria-checked":l,onClick:b=>f(b,a),onKeyDown:b=>p(b,a),onFocus:b=>h(b,a),onBlur:b=>y(b,a),className:w.yearButton,ownerState:n,children:s})}))});function TEe(e){return Ge("MuiYearCalendar",e)}Ue("MuiYearCalendar",["root"]);const $Ee=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],REe=e=>{const{classes:t}=e;return _e({root:["root"]},TEe,t)};function OEe(e,t){var n;const r=sn(),o=mm(),s=We({props:e,name:t});return S({disablePast:!1,disableFuture:!1},s,{yearsPerRow:(n=s.yearsPerRow)!=null?n:3,minDate:zs(r,s.minDate,o.minDate),maxDate:zs(r,s.maxDate,o.maxDate)})}const DEe=se("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:H0,maxHeight:sSe,boxSizing:"border-box",position:"relative"}),AEe=u.forwardRef(function(t,n){const r=OEe(t,"MuiYearCalendar"),{autoFocus:o,className:s,value:i,defaultValue:l,referenceDate:a,disabled:c,disableFuture:f,disablePast:p,maxDate:h,minDate:y,onChange:v,readOnly:m,shouldDisableYear:C,disableHighlightToday:w,onYearFocus:b,hasFocus:x,onFocusedViewChange:P,yearsPerRow:k,timezone:E,gridLabelId:I}=r,R=le(r,$Ee),{value:O,handleValueChange:$,timezone:L}=pf({name:"YearCalendar",timezone:E,value:i,defaultValue:l,onChange:v,valueManager:ls}),j=qa(L),N=Xd(),_=sn(),T=u.useMemo(()=>ls.getInitialReferenceValue({value:O,utils:_,props:r,timezone:L,referenceDate:a,granularity:ii.year}),[]),B=r,V=REe(B),A=u.useMemo(()=>_.getYear(j),[_,j]),F=u.useMemo(()=>O!=null?_.getYear(O):w?null:_.getYear(T),[O,_,w,T]),[H,K]=u.useState(()=>F||A),[Y,J]=Kr({name:"YearCalendar",state:"hasFocus",controlled:x,default:o!=null?o:!1}),Q=qe(ce=>{J(ce),P&&P(ce)}),X=u.useCallback(ce=>{if(p&&_.isBeforeYear(ce,j)||f&&_.isAfterYear(ce,j)||y&&_.isBeforeYear(ce,y)||h&&_.isAfterYear(ce,h))return!0;if(!C)return!1;const Ce=_.startOfYear(ce);return C(Ce)},[f,p,h,y,j,C,_]),ee=qe((ce,Ce)=>{if(m)return;const Ee=_.setYear(O!=null?O:T,Ce);$(Ee)}),oe=qe(ce=>{X(_.setYear(O!=null?O:T,ce))||(K(ce),Q(!0),b==null||b(ce))});u.useEffect(()=>{K(ce=>F!==null&&ce!==F?F:ce)},[F]);const Z=qe((ce,Ce)=>{switch(ce.key){case"ArrowUp":oe(Ce-k),ce.preventDefault();break;case"ArrowDown":oe(Ce+k),ce.preventDefault();break;case"ArrowLeft":oe(Ce+(N.direction==="ltr"?-1:1)),ce.preventDefault();break;case"ArrowRight":oe(Ce+(N.direction==="ltr"?1:-1)),ce.preventDefault();break}}),pe=qe((ce,Ce)=>{oe(Ce)}),ne=qe((ce,Ce)=>{H===Ce&&Q(!1)}),re=u.useRef(null),me=Et(n,re);return u.useEffect(()=>{if(o||re.current===null)return;const ce=re.current.querySelector('[tabindex="0"]');if(!ce)return;const Ce=ce.offsetHeight,Ee=ce.offsetTop,fe=re.current.clientHeight,ke=re.current.scrollTop,ve=Ee+Ce;Ce>fe||Ee<ke||(re.current.scrollTop=ve-fe/2-Ce/2)},[o]),D.jsx(DEe,S({ref:me,className:be(V.root,s),ownerState:B,role:"radiogroup","aria-labelledby":I},R,{children:_.getYearRange(y,h).map(ce=>{const Ce=_.getYear(ce),Ee=Ce===F,fe=c||X(ce);return D.jsx(_Ee,{selected:Ee,value:Ce,onClick:ee,onKeyDown:Z,autoFocus:Y&&Ce===H,disabled:fe,tabIndex:Ce===H?0:-1,onFocus:pe,onBlur:ne,"aria-current":A===Ce?"date":void 0,yearsPerRow:k,children:_.format(ce,"year")},_.format(ce,"year"))})}))}),LEe=e=>Ge("MuiPickersCalendarHeader",e),FEe=Ue("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),NEe=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],BEe=["ownerState"],jEe=e=>{const{classes:t}=e;return _e({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},LEe,t)},zEe=se("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}),VEe=se("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>S({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),HEe=se("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),UEe=se(xr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>S({marginRight:"auto"},e.view==="year"&&{[`.${FEe.switchViewIcon}`]:{transform:"rotate(180deg)"}})),WEe=se(jxe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),GEe=u.forwardRef(function(t,n){var r,o,s,i;const l=ds(),a=sn(),c=We({props:t,name:"MuiPickersCalendarHeader"}),{slots:f,slotProps:p,components:h,currentMonth:y,disabled:v,disableFuture:m,disablePast:C,maxDate:w,minDate:b,onMonthChange:x,onViewChange:P,view:k,reduceAnimations:E,views:I,labelId:R,className:O,timezone:$}=c,L=le(c,NEe),j=c,N=jEe(c),_=(r=(o=f==null?void 0:f.switchViewButton)!=null?o:h==null?void 0:h.SwitchViewButton)!=null?r:UEe,T=Qn({elementType:_,externalSlotProps:p==null?void 0:p.switchViewButton,additionalProps:{size:"small","aria-label":l.calendarViewSwitchingButtonAriaLabel(k)},ownerState:j,className:N.switchViewButton}),B=(s=(i=f==null?void 0:f.switchViewIcon)!=null?i:h==null?void 0:h.SwitchViewIcon)!=null?s:WEe,V=Qn({elementType:B,externalSlotProps:p==null?void 0:p.switchViewIcon,ownerState:void 0,className:N.switchViewIcon}),A=le(V,BEe),F=()=>x(a.addMonths(y,1),"left"),H=()=>x(a.addMonths(y,-1),"right"),K=rSe(y,{disableFuture:m,maxDate:w,timezone:$}),Y=oSe(y,{disablePast:C,minDate:b,timezone:$}),J=()=>{if(!(I.length===1||!P||v))if(I.length===2)P(I.find(Q=>Q!==k)||I[0]);else{const Q=I.indexOf(k)!==0?0:1;P(I[Q])}};return I.length===1&&I[0]==="year"?null:D.jsxs(zEe,S({},L,{ownerState:j,className:be(O,N.root),ref:n,children:[D.jsxs(VEe,{role:"presentation",onClick:J,ownerState:j,"aria-live":"polite",className:N.labelContainer,children:[D.jsx(f6,{reduceAnimations:E,transKey:a.format(y,"monthAndYear"),children:D.jsx(HEe,{id:R,ownerState:j,className:N.label,children:a.format(y,"monthAndYear")})}),I.length>1&&!v&&D.jsx(_,S({},T,{children:D.jsx(B,S({},A))}))]}),D.jsx(tf,{in:k==="day",children:D.jsx(LB,{slots:f,slotProps:p,onGoToPrevious:H,isPreviousDisabled:Y,previousLabel:l.previousMonth,onGoToNext:F,isNextDisabled:K,nextLabel:l.nextMonth})})]}))}),KEe=e=>Ge("MuiDateCalendar",e);Ue("MuiDateCalendar",["root","viewTransitionContainer"]);const qEe=["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"],YEe=e=>{const{classes:t}=e;return _e({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},KEe,t)};function QEe(e,t){var n,r,o,s,i,l,a;const c=sn(),f=mm(),p=t6(),h=We({props:e,name:t});return S({},h,{loading:(n=h.loading)!=null?n:!1,disablePast:(r=h.disablePast)!=null?r:!1,disableFuture:(o=h.disableFuture)!=null?o:!1,openTo:(s=h.openTo)!=null?s:"day",views:(i=h.views)!=null?i:["year","day"],reduceAnimations:(l=h.reduceAnimations)!=null?l:p,renderLoading:(a=h.renderLoading)!=null?a:()=>D.jsx("span",{children:"..."}),minDate:zs(c,h.minDate,f.minDate),maxDate:zs(c,h.maxDate,f.maxDate)})}const XEe=se(W0,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:U0}),ZEe=se(f6,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),p6=u.forwardRef(function(t,n){var r,o,s;const i=sn(),l=Yt(),a=QEe(t,"MuiDateCalendar"),{autoFocus:c,onViewChange:f,value:p,defaultValue:h,referenceDate:y,disableFuture:v,disablePast:m,defaultCalendarMonth:C,onChange:w,onYearChange:b,onMonthChange:x,reduceAnimations:P,shouldDisableDate:k,shouldDisableMonth:E,shouldDisableYear:I,view:R,views:O,openTo:$,className:L,disabled:j,readOnly:N,minDate:_,maxDate:T,disableHighlightToday:B,focusedView:V,onFocusedViewChange:A,showDaysOutsideCurrentMonth:F,fixedWeekNumber:H,dayOfWeekFormatter:K,components:Y,componentsProps:J,slots:Q,slotProps:X,loading:ee,renderLoading:oe,displayWeekNumber:Z,yearsPerRow:pe,monthsPerRow:ne,timezone:re}=a,me=le(a,qEe),{value:ce,handleValueChange:Ce,timezone:Ee}=pf({name:"DateCalendar",timezone:re,value:p,defaultValue:h,onChange:w,valueManager:ls}),{view:fe,setView:ke,focusedView:ve,setFocusedView:Re,goToNextView:ie,setValueAndGoToNextView:ue}=vm({view:R,views:O,openTo:$,onChange:Ce,onViewChange:f,autoFocus:c,focusedView:V,onFocusedViewChange:A}),{referenceDate:we,calendarState:xe,changeFocusedDay:Me,changeMonth:Oe,handleChangeMonth:Be,isDateDisabled:Ke,onMonthSwitchingAnimationEnd:Ye}=tEe({value:ce,defaultCalendarMonth:C,referenceDate:y,reduceAnimations:P,onMonthChange:x,minDate:_,maxDate:T,shouldDisableDate:k,disablePast:m,disableFuture:v,timezone:Ee}),Fe=j&&ce||_,mt=j&&ce||T,Zt=`${l}-grid-label`,Pt=ve!==null,Ve=(r=(o=Q==null?void 0:Q.calendarHeader)!=null?o:Y==null?void 0:Y.CalendarHeader)!=null?r:GEe,ht=Qn({elementType:Ve,externalSlotProps:(s=X==null?void 0:X.calendarHeader)!=null?s:J==null?void 0:J.calendarHeader,additionalProps:{views:O,view:fe,currentMonth:xe.currentMonth,onViewChange:ke,onMonthChange:(gt,Ot)=>Be({newMonth:gt,direction:Ot}),minDate:Fe,maxDate:mt,disabled:j,disablePast:m,disableFuture:v,reduceAnimations:P,timezone:Ee,labelId:Zt,slots:Q,slotProps:X},ownerState:a}),Ne=qe(gt=>{const Ot=i.startOfMonth(gt),Mr=i.endOfMonth(gt),dr=Ke(gt)?zp({utils:i,date:gt,minDate:i.isBefore(_,Ot)?Ot:_,maxDate:i.isAfter(T,Mr)?Mr:T,disablePast:m,disableFuture:v,isDateDisabled:Ke,timezone:Ee}):gt;dr?(ue(dr,"finish"),x==null||x(Ot)):(ie(),Oe(Ot)),Me(dr,!0)}),Xe=qe(gt=>{const Ot=i.startOfYear(gt),Mr=i.endOfYear(gt),dr=Ke(gt)?zp({utils:i,date:gt,minDate:i.isBefore(_,Ot)?Ot:_,maxDate:i.isAfter(T,Mr)?Mr:T,disablePast:m,disableFuture:v,isDateDisabled:Ke,timezone:Ee}):gt;dr?(ue(dr,"finish"),b==null||b(dr)):(ie(),Oe(Ot)),Me(dr,!0)}),vt=qe(gt=>Ce(gt&&DS(i,gt,ce!=null?ce:we),"finish",fe));u.useEffect(()=>{ce!=null&&i.isValid(ce)&&Oe(ce)},[ce]);const wt=a,Tt=YEe(wt),qt={disablePast:m,disableFuture:v,maxDate:T,minDate:_},Qt={disableHighlightToday:B,readOnly:N,disabled:j,timezone:Ee,gridLabelId:Zt},Sn=u.useRef(fe);u.useEffect(()=>{Sn.current!==fe&&(ve===Sn.current&&Re(fe,!0),Sn.current=fe)},[ve,Re,fe]);const yn=u.useMemo(()=>[ce],[ce]);return D.jsxs(XEe,S({ref:n,className:be(Tt.root,L),ownerState:wt},me,{children:[D.jsx(Ve,S({},ht)),D.jsx(ZEe,{reduceAnimations:P,className:Tt.viewTransitionContainer,transKey:fe,ownerState:wt,children:D.jsxs("div",{children:[fe==="year"&&D.jsx(AEe,S({},qt,Qt,{value:ce,onChange:Xe,shouldDisableYear:I,hasFocus:Pt,onFocusedViewChange:gt=>Re("year",gt),yearsPerRow:pe,referenceDate:we})),fe==="month"&&D.jsx(SEe,S({},qt,Qt,{hasFocus:Pt,className:L,value:ce,onChange:Ne,shouldDisableMonth:E,onFocusedViewChange:gt=>Re("month",gt),monthsPerRow:ne,referenceDate:we})),fe==="day"&&D.jsx(J2e,S({},xe,qt,Qt,{onMonthSwitchingAnimationEnd:Ye,onFocusedDayChange:Me,reduceAnimations:P,selectedDays:yn,onSelectedDaysChange:vt,shouldDisableDate:k,shouldDisableMonth:E,shouldDisableYear:I,hasFocus:Pt,onFocusedViewChange:gt=>Re("day",gt),showDaysOutsideCurrentMonth:F,fixedWeekNumber:H,dayOfWeekFormatter:K,displayWeekNumber:Z,components:Y,componentsProps:J,slots:Q,slotProps:X,loading:ee,renderLoading:oe}))]})})]}))}),JEe=["props","getOpenDialogAriaText"],eke=["ownerState"],tke=["ownerState"],nke=e=>{var t,n,r,o,s;let{props:i,getOpenDialogAriaText:l}=e,a=le(e,JEe);const{slots:c,slotProps:f,className:p,sx:h,format:y,formatDensity:v,timezone:m,name:C,label:w,inputRef:b,readOnly:x,disabled:P,autoFocus:k,localeText:E,reduceAnimations:I}=i,R=sn(),O=u.useRef(null),$=u.useRef(null),L=Yt(),j=(t=f==null||(n=f.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:N,actions:_,hasUIView:T,layoutProps:B,renderCurrentView:V,shouldRestoreFocus:A,fieldProps:F}=s6(S({},a,{props:i,inputRef:O,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),H=(r=c.inputAdornment)!=null?r:Tl,K=Qn({elementType:H,externalSlotProps:f==null?void 0:f.inputAdornment,additionalProps:{position:"end"},ownerState:i}),Y=le(K,eke),J=(o=c.openPickerButton)!=null?o:xr,Q=Qn({elementType:J,externalSlotProps:f==null?void 0:f.openPickerButton,additionalProps:{disabled:P||x,onClick:N?_.onClose:_.onOpen,"aria-label":l(F.value,R),edge:Y.position},ownerState:i}),X=le(Q,tke),ee=c.openPickerIcon,oe=c.field,Z=Qn({elementType:oe,externalSlotProps:f==null?void 0:f.field,additionalProps:S({},F,j&&{id:L},{readOnly:x,disabled:P,className:p,sx:h,format:y,formatDensity:v,timezone:m,label:w,name:C,autoFocus:k&&!i.open,focused:N?!0:void 0}),ownerState:i});T&&(Z.InputProps=S({},Z.InputProps,{ref:$,[`${Y.position}Adornment`]:D.jsx(H,S({},Y,{children:D.jsx(J,S({},X,{children:D.jsx(ee,S({},f==null?void 0:f.openPickerIcon))}))}))}));const pe=S({textField:c.textField,clearIcon:c.clearIcon,clearButton:c.clearButton},Z.slots),ne=(s=c.layout)!=null?s:a6,re=Et(O,Z.inputRef,b);let me=L;j&&(w?me=`${L}-label`:me=void 0);const ce=S({},f,{toolbar:S({},f==null?void 0:f.toolbar,{titleId:L}),popper:S({"aria-labelledby":me},f==null?void 0:f.popper)});return{renderPicker:()=>D.jsxs(bk,{localeText:E,children:[D.jsx(oe,S({},Z,{slots:pe,slotProps:ce,inputRef:re})),D.jsx(t2e,S({role:"dialog",placement:"bottom-start",anchorEl:$.current},_,{open:N,slots:c,slotProps:ce,shouldRestoreFocus:A,reduceAnimations:I,children:D.jsx(ne,S({},B,ce==null?void 0:ce.layout,{slots:c,slotProps:ce,children:V()}))}))]})}},md=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:c,classes:f,disableFuture:p,disablePast:h,minDate:y,maxDate:v,shouldDisableDate:m,shouldDisableMonth:C,shouldDisableYear:w,reduceAnimations:b,onMonthChange:x,monthsPerRow:P,onYearChange:k,yearsPerRow:E,defaultCalendarMonth:I,components:R,componentsProps:O,slots:$,slotProps:L,loading:j,renderLoading:N,disableHighlightToday:_,readOnly:T,disabled:B,showDaysOutsideCurrentMonth:V,dayOfWeekFormatter:A,sx:F,autoFocus:H,fixedWeekNumber:K,displayWeekNumber:Y,timezone:J})=>D.jsx(p6,{view:e,onViewChange:t,views:n.filter(pd),focusedView:r&&pd(r)?r:null,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:c,classes:f,disableFuture:p,disablePast:h,minDate:y,maxDate:v,shouldDisableDate:m,shouldDisableMonth:C,shouldDisableYear:w,reduceAnimations:b,onMonthChange:x,monthsPerRow:P,onYearChange:k,yearsPerRow:E,defaultCalendarMonth:I,components:R,componentsProps:O,slots:$,slotProps:L,loading:j,renderLoading:N,disableHighlightToday:_,readOnly:T,disabled:B,showDaysOutsideCurrentMonth:V,dayOfWeekFormatter:A,sx:F,autoFocus:H,fixedWeekNumber:K,displayWeekNumber:Y,timezone:J}),rke=["props","getOpenDialogAriaText"],oke=e=>{var t,n,r;let{props:o,getOpenDialogAriaText:s}=e,i=le(e,rke);const{slots:l,slotProps:a,className:c,sx:f,format:p,formatDensity:h,timezone:y,name:v,label:m,inputRef:C,readOnly:w,disabled:b,localeText:x}=o,P=sn(),k=u.useRef(null),E=Yt(),I=(t=a==null||(n=a.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:R,actions:O,layoutProps:$,renderCurrentView:L,fieldProps:j}=s6(S({},i,{props:o,inputRef:k,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),N=l.field,_=Qn({elementType:N,externalSlotProps:a==null?void 0:a.field,additionalProps:S({},j,I&&{id:E},!(b||w)&&{onClick:O.onOpen,onKeyDown:APe(O.onOpen)},{readOnly:w!=null?w:!0,disabled:b,className:c,sx:f,format:p,formatDensity:h,timezone:y,label:m,name:v}),ownerState:o});_.inputProps=S({},_.inputProps,{"aria-label":s(j.value,P)});const T=S({textField:l.textField},_.slots),B=(r=l.layout)!=null?r:a6,V=Et(k,_.inputRef,C);let A=E;I&&(m?A=`${E}-label`:A=void 0);const F=S({},a,{toolbar:S({},a==null?void 0:a.toolbar,{titleId:E}),mobilePaper:S({"aria-labelledby":A},a==null?void 0:a.mobilePaper)});return{renderPicker:()=>D.jsxs(bk,{localeText:x,children:[D.jsx(N,S({},_,{slots:T,slotProps:F,inputRef:V})),D.jsx(UPe,S({},O,{open:R,slots:l,slotProps:F,children:D.jsx(B,S({},$,F==null?void 0:F.layout,{slots:l,slotProps:F,children:L()}))}))]})}},MC=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:c,classes:f,disableFuture:p,disablePast:h,minTime:y,maxTime:v,shouldDisableTime:m,shouldDisableClock:C,minutesStep:w,ampm:b,ampmInClock:x,components:P,componentsProps:k,slots:E,slotProps:I,readOnly:R,disabled:O,sx:$,autoFocus:L,showViewSwitcher:j,disableIgnoringDatePartForTimeValidation:N,timezone:_})=>D.jsx(nPe,{view:e,onViewChange:t,focusedView:n&&Vd(n)?n:null,onFocusedViewChange:r,views:o.filter(Vd),value:s,defaultValue:i,referenceDate:l,onChange:a,className:c,classes:f,disableFuture:p,disablePast:h,minTime:y,maxTime:v,shouldDisableTime:m,shouldDisableClock:C,minutesStep:w,ampm:b,ampmInClock:x,components:P,componentsProps:k,slots:E,slotProps:I,readOnly:R,disabled:O,sx:$,autoFocus:L,showViewSwitcher:j,disableIgnoringDatePartForTimeValidation:N,timezone:_}),ske=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:c,classes:f,disableFuture:p,disablePast:h,minTime:y,maxTime:v,shouldDisableTime:m,shouldDisableClock:C,minutesStep:w,ampm:b,components:x,componentsProps:P,slots:k,slotProps:E,readOnly:I,disabled:R,sx:O,autoFocus:$,disableIgnoringDatePartForTimeValidation:L,timeSteps:j,skipDisabled:N,timezone:_})=>D.jsx(uPe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(Vd),value:s,defaultValue:i,referenceDate:l,onChange:a,className:c,classes:f,disableFuture:p,disablePast:h,minTime:y,maxTime:v,shouldDisableTime:m,shouldDisableClock:C,minutesStep:w,ampm:b,components:x,componentsProps:P,slots:k,slotProps:E,readOnly:I,disabled:R,sx:O,autoFocus:$,disableIgnoringDatePartForTimeValidation:L,timeStep:j==null?void 0:j.minutes,skipDisabled:N,timezone:_}),ike=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:c,classes:f,disableFuture:p,disablePast:h,minTime:y,maxTime:v,shouldDisableTime:m,shouldDisableClock:C,minutesStep:w,ampm:b,components:x,componentsProps:P,slots:k,slotProps:E,readOnly:I,disabled:R,sx:O,autoFocus:$,disableIgnoringDatePartForTimeValidation:L,timeSteps:j,skipDisabled:N,timezone:_})=>D.jsx(SPe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o.filter(Vd),value:s,defaultValue:i,referenceDate:l,onChange:a,className:c,classes:f,disableFuture:p,disablePast:h,minTime:y,maxTime:v,shouldDisableTime:m,shouldDisableClock:C,minutesStep:w,ampm:b,components:x,componentsProps:P,slots:k,slotProps:E,readOnly:I,disabled:R,sx:O,autoFocus:$,disableIgnoringDatePartForTimeValidation:L,timeSteps:j,skipDisabled:N,timezone:_}),lke=["views","format"],h6=(e,t)=>{let{views:n,format:r}=t,o=le(t,lke);if(r)return r;const s=[],i=[];if(n.forEach(c=>{Vd(c)?i.push(c):s.push(c)}),i.length===0)return kD(e,S({views:s},o),!1);if(s.length===0)return ED(e,S({views:i},o));const l=ED(e,S({views:i},o));return`${kD(e,S({views:s},o),!1)} ${l}`},ake=(e,t,n)=>n?t.filter(r=>!oa(r)||r==="hours"):e?[...t,"meridiem"]:t,cke=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function uke({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const o=e!=null?e:24,s=S({hours:1,minutes:5,seconds:5},n),i=cke(s,o);return{thresholdToRenderTimeInASingleColumn:o,timeSteps:s,shouldRenderTimeInASingleColumn:i,views:ake(t,r,i)}}function dke(e){return Ge("MuiDateTimePickerTabs",e)}Ue("MuiDateTimePickerTabs",["root"]);const fke=e=>pd(e)?"date":"time",pke=e=>e==="date"?"day":"hours",hke=e=>{const{classes:t}=e;return _e({root:["root"]},dke,t)},mke=se(V2,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${vv.indicator}`]:{bottom:"auto",top:0}}})),gke=function(t){const n=We({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=D.jsx(Uxe,{}),onViewChange:o,timeIcon:s=D.jsx(Wxe,{}),view:i,hidden:l=typeof window=="undefined"||window.innerHeight<667,className:a}=n,c=ds(),f=hke(n),p=(h,y)=>{o(pke(y))};return l?null:D.jsxs(mke,{ownerState:n,variant:"fullWidth",value:fke(i),onChange:p,className:be(a,f.root),children:[D.jsx(py,{value:"date","aria-label":c.dateTableLabel,icon:D.jsx(u.Fragment,{children:r})}),D.jsx(py,{value:"time","aria-label":c.timeTableLabel,icon:D.jsx(u.Fragment,{children:s})})]})};function vke(e){return Ge("MuiDateTimePickerToolbar",e)}const _C=Ue("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),yke=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],bke=e=>{const{classes:t,theme:n,isLandscape:r}=e,o={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n.direction==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n.direction==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return _e(o,vke,t)},m6=se(s2e,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({paddingLeft:t.toolbarVariant==="desktop"&&!t.isLandscape?24:16,paddingRight:t.toolbarVariant==="desktop"&&!t.isLandscape?0:16,borderBottom:t.toolbarVariant==="desktop"?`1px solid ${(e.vars||e).palette.divider}`:void 0,borderRight:t.toolbarVariant==="desktop"&&t.isLandscape?`1px solid ${(e.vars||e).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"}));m6.propTypes={as:W.elementType,classes:W.object,className:W.string,isLandscape:W.bool.isRequired,isMobileKeyboardViewOpen:W.bool,landscapeDirection:W.oneOf(["column","row"]),ownerState:W.object.isRequired,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),toggleMobileKeyboardView:W.func,toolbarTitle:W.node,viewType:W.oneOf(["date","time"])};const wke=se("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),g6=se("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return S({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&S({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),Cke=se("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>S({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));g6.propTypes={as:W.elementType,ownerState:W.object.isRequired,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object])};const ND=se(r6,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),xke=se("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${_C.ampmLabel}`]:t.ampmLabel},{[`&.${_C.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>S({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${_C.ampmLabel}`]:{fontSize:17}}));function Ske(e){const t=We({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,onChange:s,view:i,isLandscape:l,onViewChange:a,toolbarFormat:c,toolbarPlaceholder:f="––",views:p,disabled:h,readOnly:y,toolbarVariant:v="mobile"}=t,m=le(t,yke),C=t,w=sn(),{meridiemMode:b,handleMeridiemChange:x}=wk(o,n,s),P=!!(n&&!r),k=v==="desktop",E=ds(),I=Fn(),R=bke(S({},C,{theme:I})),O=L=>n?w.format(L,"hours12h"):w.format(L,"hours24h"),$=u.useMemo(()=>o?c?w.formatByString(o,c):w.format(o,"shortDate"):f,[o,c,f,w]);return D.jsxs(m6,S({toolbarTitle:E.dateTimePickerToolbarTitle,isLandscape:l,className:R.root},m,{ownerState:C,children:[D.jsxs(wke,{className:R.dateContainer,ownerState:C,children:[p.includes("year")&&D.jsx(ea,{tabIndex:-1,variant:"subtitle1",onClick:()=>a("year"),selected:i==="year",value:o?w.format(o,"year"):"–"}),p.includes("day")&&D.jsx(ea,{tabIndex:-1,variant:k?"h5":"h4",onClick:()=>a("day"),selected:i==="day",value:$})]}),D.jsxs(g6,{className:R.timeContainer,ownerState:C,children:[D.jsxs(Cke,{className:R.timeDigitsContainer,ownerState:C,children:[p.includes("hours")&&D.jsx(ea,{variant:k?"h5":"h3",width:k&&!l?bp:void 0,onClick:()=>a("hours"),selected:i==="hours",value:o?O(o):"--"}),p.includes("minutes")&&D.jsxs(u.Fragment,{children:[D.jsx(ND,{variant:k?"h5":"h3",value:":",className:R.separator,ownerState:C}),D.jsx(ea,{variant:k?"h5":"h3",width:k&&!l?bp:void 0,onClick:()=>a("minutes"),selected:i==="minutes",value:o?w.format(o,"minutes"):"--"})]}),p.includes("seconds")&&D.jsxs(u.Fragment,{children:[D.jsx(ND,{variant:k?"h5":"h3",value:":",className:R.separator,ownerState:C}),D.jsx(ea,{variant:k?"h5":"h3",width:k&&!l?bp:void 0,onClick:()=>a("seconds"),selected:i==="seconds",value:o?w.format(o,"seconds"):"--"})]})]}),P&&!k&&D.jsxs(xke,{className:R.ampmSelection,ownerState:C,children:[D.jsx(ea,{variant:"subtitle2",selected:b==="am",typographyClassName:R.ampmLabel,value:yl(w,"am"),onClick:y?void 0:()=>x("am"),disabled:h}),D.jsx(ea,{variant:"subtitle2",selected:b==="pm",typographyClassName:R.ampmLabel,value:yl(w,"pm"),onClick:y?void 0:()=>x("pm"),disabled:h})]}),n&&k&&D.jsx(ea,{variant:"h5",onClick:()=>a("meridiem"),selected:i==="meridiem",value:o&&b?yl(w,b):"--",width:bp})]})]}))}function v6(e,t){var n,r,o,s,i,l,a,c,f,p,h;const y=sn(),v=mm(),m=We({props:e,name:t}),C=(n=m.ampm)!=null?n:y.is12HourCycleInCurrentLocale(),w=u.useMemo(()=>{var P;return((P=m.localeText)==null?void 0:P.toolbarTitle)==null?m.localeText:S({},m.localeText,{dateTimePickerToolbarTitle:m.localeText.toolbarTitle})},[m.localeText]),b=(r=m.slots)!=null?r:Ek(m.components),x=(o=m.slotProps)!=null?o:m.componentsProps;return S({},m,eSe({views:m.views,openTo:m.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:C,localeText:w,orientation:(s=m.orientation)!=null?s:"portrait",disableIgnoringDatePartForTimeValidation:(i=m.disableIgnoringDatePartForTimeValidation)!=null?i:!!(m.minDateTime||m.maxDateTime||m.disablePast||m.disableFuture),disableFuture:(l=m.disableFuture)!=null?l:!1,disablePast:(a=m.disablePast)!=null?a:!1,minDate:zs(y,(c=m.minDateTime)!=null?c:m.minDate,v.minDate),maxDate:zs(y,(f=m.maxDateTime)!=null?f:m.maxDate,v.maxDate),minTime:(p=m.minDateTime)!=null?p:m.minTime,maxTime:(h=m.maxDateTime)!=null?h:m.maxTime,slots:S({toolbar:Ske,tabs:gke},b),slotProps:S({},x,{toolbar:S({ampm:C},x==null?void 0:x.toolbar)})})}const Pke=se("div")({display:"flex",margin:"0 auto"}),lc=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:c,classes:f,disableFuture:p,disablePast:h,minDate:y,minTime:v,maxDate:m,maxTime:C,shouldDisableDate:w,shouldDisableMonth:b,shouldDisableYear:x,shouldDisableTime:P,shouldDisableClock:k,reduceAnimations:E,minutesStep:I,ampm:R,onMonthChange:O,monthsPerRow:$,onYearChange:L,yearsPerRow:j,defaultCalendarMonth:N,components:_,componentsProps:T,slots:B,slotProps:V,loading:A,renderLoading:F,disableHighlightToday:H,readOnly:K,disabled:Y,showDaysOutsideCurrentMonth:J,dayOfWeekFormatter:Q,sx:X,autoFocus:ee,fixedWeekNumber:oe,displayWeekNumber:Z,timezone:pe,disableIgnoringDatePartForTimeValidation:ne,timeSteps:re,skipDisabled:me,timeViewsCount:ce,shouldRenderTimeInASingleColumn:Ce})=>{var Ee,fe;const ke=!!((Ee=k0((fe=V==null?void 0:V.actionBar)!=null?fe:T==null?void 0:T.actionBar,{}))!=null&&(Ee=Ee.actions)!=null&&Ee.length),ve={view:oa(e)?e:"hours",onViewChange:t,focusedView:r&&oa(r)?r:null,onFocusedViewChange:o,views:n.filter(oa),value:s,defaultValue:i,referenceDate:l,onChange:a,className:c,classes:f,disableFuture:p,disablePast:h,minTime:v,maxTime:C,shouldDisableTime:P,shouldDisableClock:k,minutesStep:I,ampm:R,components:_,componentsProps:T,slots:B,slotProps:V,readOnly:K,disabled:Y,autoFocus:ee,disableIgnoringDatePartForTimeValidation:ne,timeSteps:re,skipDisabled:me,timezone:pe};return D.jsxs(u.Fragment,{children:[D.jsxs(Pke,{children:[D.jsx(p6,{view:pd(e)?e:"day",onViewChange:t,views:n.filter(pd),focusedView:r&&pd(r)?r:null,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:l,onChange:a,className:c,classes:f,disableFuture:p,disablePast:h,minDate:y,maxDate:m,shouldDisableDate:w,shouldDisableMonth:b,shouldDisableYear:x,reduceAnimations:E,onMonthChange:O,monthsPerRow:$,onYearChange:L,yearsPerRow:j,defaultCalendarMonth:N,components:_,componentsProps:T,slots:B,slotProps:V,loading:A,renderLoading:F,disableHighlightToday:H,readOnly:K,disabled:Y,showDaysOutsideCurrentMonth:J,dayOfWeekFormatter:Q,sx:X,autoFocus:ee,fixedWeekNumber:oe,displayWeekNumber:Z,timezone:pe}),ce>0&&D.jsxs(u.Fragment,{children:[D.jsx(bh,{orientation:"vertical"}),Ce?ske(S({},ve,{view:"hours",views:["hours"],focusedView:r&&oa(r)?"hours":null,sx:S({width:"auto",[`&.${oPe.root}`]:{maxHeight:U0}},Array.isArray(X)?X:[X])})):ike(S({},ve,{view:oa(e)?e:"hours",views:n.filter(oa),focusedView:r&&oa(r)?r:null,sx:S({borderBottom:0,width:"auto",[`.${pPe.root}`]:{maxHeight:"100%"}},Array.isArray(X)?X:[X])}))]})]}),ke&&D.jsx(bh,{})]})},y6=u.forwardRef(function(t,n){var r,o,s,i,l,a,c;const f=ds(),p=sn(),h=v6(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:y,thresholdToRenderTimeInASingleColumn:v,views:m,timeSteps:C}=uke(h),w=!h.viewRenderers||Object.keys(h.viewRenderers).length===0,b=w?{day:lc,month:lc,year:lc,hours:lc,minutes:lc,seconds:lc,meridiem:lc}:S({day:md,month:md,year:md,hours:null,minutes:null,seconds:null,meridiem:null},h.viewRenderers),x=(r=h.ampmInClock)!=null?r:!0,P=w?["accept"]:[],k=S({},h,{viewRenderers:b,format:h6(p,h),views:m,yearsPerRow:(o=h.yearsPerRow)!=null?o:4,ampmInClock:x,timeSteps:C,thresholdToRenderTimeInASingleColumn:v,shouldRenderTimeInASingleColumn:y,slots:S({field:d6,openPickerIcon:Hxe},h.slots),slotProps:S({},h.slotProps,{field:I=>{var R;return S({},k0((R=h.slotProps)==null?void 0:R.field,I),e6(h),{ref:n})},toolbar:S({hidden:!0,ampmInClock:x,toolbarVariant:w?"desktop":"mobile"},(s=h.slotProps)==null?void 0:s.toolbar),tabs:S({hidden:!0},(i=h.slotProps)==null?void 0:i.tabs),actionBar:S({actions:P},(l=h.slotProps)==null?void 0:l.actionBar)})}),{renderPicker:E}=nke({props:k,valueManager:ls,valueType:"date-time",getOpenDialogAriaText:(a=(c=k.localeText)==null?void 0:c.openDatePickerDialogue)!=null?a:f.openDatePickerDialogue,validator:Ik});return E()});y6.propTypes={ampm:W.bool,ampmInClock:W.bool,autoFocus:W.bool,className:W.string,closeOnSelect:W.bool,components:W.object,componentsProps:W.object,dayOfWeekFormatter:W.func,defaultCalendarMonth:W.any,defaultValue:W.any,disabled:W.bool,disableFuture:W.bool,disableHighlightToday:W.bool,disableIgnoringDatePartForTimeValidation:W.bool,disableOpenPicker:W.bool,disablePast:W.bool,displayWeekNumber:W.bool,fixedWeekNumber:W.number,format:W.string,formatDensity:W.oneOf(["dense","spacious"]),inputRef:VN,label:W.node,loading:W.bool,localeText:W.object,maxDate:W.any,maxDateTime:W.any,maxTime:W.any,minDate:W.any,minDateTime:W.any,minTime:W.any,minutesStep:W.number,monthsPerRow:W.oneOf([3,4]),name:W.string,onAccept:W.func,onChange:W.func,onClose:W.func,onError:W.func,onMonthChange:W.func,onOpen:W.func,onSelectedSectionsChange:W.func,onViewChange:W.func,onYearChange:W.func,open:W.bool,openTo:W.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:W.oneOf(["landscape","portrait"]),readOnly:W.bool,reduceAnimations:W.bool,referenceDate:W.any,renderLoading:W.func,selectedSections:W.oneOfType([W.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),W.number,W.shape({endIndex:W.number.isRequired,startIndex:W.number.isRequired})]),shouldDisableClock:W.func,shouldDisableDate:W.func,shouldDisableMonth:W.func,shouldDisableTime:W.func,shouldDisableYear:W.func,showDaysOutsideCurrentMonth:W.bool,skipDisabled:W.bool,slotProps:W.object,slots:W.object,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),thresholdToRenderTimeInASingleColumn:W.number,timeSteps:W.shape({hours:W.number,minutes:W.number,seconds:W.number}),timezone:W.string,value:W.any,view:W.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:W.shape({day:W.func,hours:W.func,meridiem:W.func,minutes:W.func,month:W.func,seconds:W.func,year:W.func}),views:W.arrayOf(W.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:W.oneOf([3,4])};const b6=u.forwardRef(function(t,n){var r,o,s,i,l;const a=ds(),c=sn(),f=v6(t,"MuiMobileDateTimePicker"),p=S({day:md,month:md,year:md,hours:MC,minutes:MC,seconds:MC},f.viewRenderers),h=(r=f.ampmInClock)!=null?r:!1,y=S({},f,{viewRenderers:p,format:h6(c,f),ampmInClock:h,slots:S({field:d6},f.slots),slotProps:S({},f.slotProps,{field:m=>{var C;return S({},k0((C=f.slotProps)==null?void 0:C.field,m),e6(f),{ref:n})},toolbar:S({hidden:!1,ampmInClock:h},(o=f.slotProps)==null?void 0:o.toolbar),tabs:S({hidden:!1},(s=f.slotProps)==null?void 0:s.tabs)})}),{renderPicker:v}=oke({props:y,valueManager:ls,valueType:"date-time",getOpenDialogAriaText:(i=(l=y.localeText)==null?void 0:l.openDatePickerDialogue)!=null?i:a.openDatePickerDialogue,validator:Ik});return v()});b6.propTypes={ampm:W.bool,ampmInClock:W.bool,autoFocus:W.bool,className:W.string,closeOnSelect:W.bool,components:W.object,componentsProps:W.object,dayOfWeekFormatter:W.func,defaultCalendarMonth:W.any,defaultValue:W.any,disabled:W.bool,disableFuture:W.bool,disableHighlightToday:W.bool,disableIgnoringDatePartForTimeValidation:W.bool,disableOpenPicker:W.bool,disablePast:W.bool,displayWeekNumber:W.bool,fixedWeekNumber:W.number,format:W.string,formatDensity:W.oneOf(["dense","spacious"]),inputRef:VN,label:W.node,loading:W.bool,localeText:W.object,maxDate:W.any,maxDateTime:W.any,maxTime:W.any,minDate:W.any,minDateTime:W.any,minTime:W.any,minutesStep:W.number,monthsPerRow:W.oneOf([3,4]),name:W.string,onAccept:W.func,onChange:W.func,onClose:W.func,onError:W.func,onMonthChange:W.func,onOpen:W.func,onSelectedSectionsChange:W.func,onViewChange:W.func,onYearChange:W.func,open:W.bool,openTo:W.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:W.oneOf(["landscape","portrait"]),readOnly:W.bool,reduceAnimations:W.bool,referenceDate:W.any,renderLoading:W.func,selectedSections:W.oneOfType([W.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),W.number,W.shape({endIndex:W.number.isRequired,startIndex:W.number.isRequired})]),shouldDisableClock:W.func,shouldDisableDate:W.func,shouldDisableMonth:W.func,shouldDisableTime:W.func,shouldDisableYear:W.func,showDaysOutsideCurrentMonth:W.bool,slotProps:W.object,slots:W.object,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),timezone:W.string,value:W.any,view:W.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:W.shape({day:W.func,hours:W.func,minutes:W.func,month:W.func,seconds:W.func,year:W.func}),views:W.arrayOf(W.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:W.oneOf([3,4])};const Eke=["desktopModeMediaQuery"],kke=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=LPe}=r,s=le(r,Eke);return B1(o,{defaultMatches:!0})?D.jsx(y6,S({ref:n},s)):D.jsx(b6,S({ref:n},s))});var w6={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(an,function(){var n=1e3,r=6e4,o=36e5,s="millisecond",i="second",l="minute",a="hour",c="day",f="week",p="month",h="quarter",y="year",v="date",m="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_){var T=["th","st","nd","rd"],B=_%100;return"["+_+(T[(B-20)%10]||T[B]||T[0])+"]"}},x=function(_,T,B){var V=String(_);return!V||V.length>=T?_:""+Array(T+1-V.length).join(B)+_},P={s:x,z:function(_){var T=-_.utcOffset(),B=Math.abs(T),V=Math.floor(B/60),A=B%60;return(T<=0?"+":"-")+x(V,2,"0")+":"+x(A,2,"0")},m:function _(T,B){if(T.date()<B.date())return-_(B,T);var V=12*(B.year()-T.year())+(B.month()-T.month()),A=T.clone().add(V,p),F=B-A<0,H=T.clone().add(V+(F?-1:1),p);return+(-(V+(B-A)/(F?A-H:H-A))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:p,y,w:f,d:c,D:v,h:a,m:l,s:i,ms:s,Q:h}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},k="en",E={};E[k]=b;var I="$isDayjsObject",R=function(_){return _ instanceof j||!(!_||!_[I])},O=function _(T,B,V){var A;if(!T)return k;if(typeof T=="string"){var F=T.toLowerCase();E[F]&&(A=F),B&&(E[F]=B,A=F);var H=T.split("-");if(!A&&H.length>1)return _(H[0])}else{var K=T.name;E[K]=T,A=K}return!V&&A&&(k=A),A||!V&&k},$=function(_,T){if(R(_))return _.clone();var B=typeof T=="object"?T:{};return B.date=_,B.args=arguments,new j(B)},L=P;L.l=O,L.i=R,L.w=function(_,T){return $(_,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var j=function(){function _(B){this.$L=O(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[I]=!0}var T=_.prototype;return T.parse=function(B){this.$d=function(V){var A=V.date,F=V.utc;if(A===null)return new Date(NaN);if(L.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var H=A.match(C);if(H){var K=H[2]-1||0,Y=(H[7]||"0").substring(0,3);return F?new Date(Date.UTC(H[1],K,H[3]||1,H[4]||0,H[5]||0,H[6]||0,Y)):new Date(H[1],K,H[3]||1,H[4]||0,H[5]||0,H[6]||0,Y)}}return new Date(A)}(B),this.init()},T.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},T.$utils=function(){return L},T.isValid=function(){return this.$d.toString()!==m},T.isSame=function(B,V){var A=$(B);return this.startOf(V)<=A&&A<=this.endOf(V)},T.isAfter=function(B,V){return $(B)<this.startOf(V)},T.isBefore=function(B,V){return this.endOf(V)<$(B)},T.$g=function(B,V,A){return L.u(B)?this[V]:this.set(A,B)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(B,V){var A=this,F=!!L.u(V)||V,H=L.p(B),K=function(pe,ne){var re=L.w(A.$u?Date.UTC(A.$y,ne,pe):new Date(A.$y,ne,pe),A);return F?re:re.endOf(c)},Y=function(pe,ne){return L.w(A.toDate()[pe].apply(A.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(ne)),A)},J=this.$W,Q=this.$M,X=this.$D,ee="set"+(this.$u?"UTC":"");switch(H){case y:return F?K(1,0):K(31,11);case p:return F?K(1,Q):K(0,Q+1);case f:var oe=this.$locale().weekStart||0,Z=(J<oe?J+7:J)-oe;return K(F?X-Z:X+(6-Z),Q);case c:case v:return Y(ee+"Hours",0);case a:return Y(ee+"Minutes",1);case l:return Y(ee+"Seconds",2);case i:return Y(ee+"Milliseconds",3);default:return this.clone()}},T.endOf=function(B){return this.startOf(B,!1)},T.$set=function(B,V){var A,F=L.p(B),H="set"+(this.$u?"UTC":""),K=(A={},A[c]=H+"Date",A[v]=H+"Date",A[p]=H+"Month",A[y]=H+"FullYear",A[a]=H+"Hours",A[l]=H+"Minutes",A[i]=H+"Seconds",A[s]=H+"Milliseconds",A)[F],Y=F===c?this.$D+(V-this.$W):V;if(F===p||F===y){var J=this.clone().set(v,1);J.$d[K](Y),J.init(),this.$d=J.set(v,Math.min(this.$D,J.daysInMonth())).$d}else K&&this.$d[K](Y);return this.init(),this},T.set=function(B,V){return this.clone().$set(B,V)},T.get=function(B){return this[L.p(B)]()},T.add=function(B,V){var A,F=this;B=Number(B);var H=L.p(V),K=function(Q){var X=$(F);return L.w(X.date(X.date()+Math.round(Q*B)),F)};if(H===p)return this.set(p,this.$M+B);if(H===y)return this.set(y,this.$y+B);if(H===c)return K(1);if(H===f)return K(7);var Y=(A={},A[l]=r,A[a]=o,A[i]=n,A)[H]||1,J=this.$d.getTime()+B*Y;return L.w(J,this)},T.subtract=function(B,V){return this.add(-1*B,V)},T.format=function(B){var V=this,A=this.$locale();if(!this.isValid())return A.invalidDate||m;var F=B||"YYYY-MM-DDTHH:mm:ssZ",H=L.z(this),K=this.$H,Y=this.$m,J=this.$M,Q=A.weekdays,X=A.months,ee=A.meridiem,oe=function(ne,re,me,ce){return ne&&(ne[re]||ne(V,F))||me[re].slice(0,ce)},Z=function(ne){return L.s(K%12||12,ne,"0")},pe=ee||function(ne,re,me){var ce=ne<12?"AM":"PM";return me?ce.toLowerCase():ce};return F.replace(w,function(ne,re){return re||function(me){switch(me){case"YY":return String(V.$y).slice(-2);case"YYYY":return L.s(V.$y,4,"0");case"M":return J+1;case"MM":return L.s(J+1,2,"0");case"MMM":return oe(A.monthsShort,J,X,3);case"MMMM":return oe(X,J);case"D":return V.$D;case"DD":return L.s(V.$D,2,"0");case"d":return String(V.$W);case"dd":return oe(A.weekdaysMin,V.$W,Q,2);case"ddd":return oe(A.weekdaysShort,V.$W,Q,3);case"dddd":return Q[V.$W];case"H":return String(K);case"HH":return L.s(K,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return pe(K,Y,!0);case"A":return pe(K,Y,!1);case"m":return String(Y);case"mm":return L.s(Y,2,"0");case"s":return String(V.$s);case"ss":return L.s(V.$s,2,"0");case"SSS":return L.s(V.$ms,3,"0");case"Z":return H}return null}(ne)||H.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(B,V,A){var F,H=this,K=L.p(V),Y=$(B),J=(Y.utcOffset()-this.utcOffset())*r,Q=this-Y,X=function(){return L.m(H,Y)};switch(K){case y:F=X()/12;break;case p:F=X();break;case h:F=X()/3;break;case f:F=(Q-J)/6048e5;break;case c:F=(Q-J)/864e5;break;case a:F=Q/o;break;case l:F=Q/r;break;case i:F=Q/n;break;default:F=Q}return A?F:L.a(F)},T.daysInMonth=function(){return this.endOf(p).$D},T.$locale=function(){return E[this.$L]},T.locale=function(B,V){if(!B)return this.$L;var A=this.clone(),F=O(B,V,!0);return F&&(A.$L=F),A},T.clone=function(){return L.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},_}(),N=j.prototype;return $.prototype=N,[["$ms",s],["$s",i],["$m",l],["$H",a],["$W",c],["$M",p],["$y",y],["$D",v]].forEach(function(_){N[_[1]]=function(T){return this.$g(T,_[0],_[1])}}),$.extend=function(_,T){return _.$i||(_(T,j,$),_.$i=!0),$},$.locale=O,$.isDayjs=R,$.unix=function(_){return $(1e3*_)},$.en=E[k],$.Ls=E,$.p={},$})})(w6);var Ike=w6.exports;const $r=vi(Ike);function Mke(o){var s=o,{onChange:e,error:t,helperText:n}=s,r=Lt(s,["onChange","error","helperText"]);return u.createElement(ze,{},u.createElement(kke,it(ye({},v0(r,i=>i&&i instanceof Date?$r(i):i!=null?i:null)),{sx:ye({width:"100%",color:"error.main"},r.sx),onChange(i){e(i&&new Date(i),{was:r.value,event:void 0})}})),n&&u.createElement(nf,{error:t},n))}function Oh(f){var p=f,{label:e,helperText:t,fields:n,value:r,onChange:o,onError:s,setApi:i,reorder:l,prepend:a}=p,c=Lt(p,["label","helperText","fields","value","onChange","onError","setApi","reorder","prepend"]);const h=u.useMemo(()=>(r||[]).map((w,b)=>lhe(ye({},w),w.hasOwnProperty("id")?{$idx:b}:{id:b})),[JSON.stringify(r)]),y={fields:n.map(k=>{var E=k,{$width:w,$column:b,$type:x}=E,P=Lt(E,["$width","$column","$type"]);var I;return Ze.defaults(P,(I=BD[x])==null?void 0:I.field)})};i==null||i({isEqual:H5});const[v,m]=u.useState();return u.createElement(u.Fragment,{},e&&u.createElement(q4,{sx:{ml:1}},e),t&&u.createElement(nf,{},t),u.createElement(ze,ye({},c),u.createElement(RB,{rows:h,sx:{".MuiDataGrid-virtualScroller":{minHeight:"3em"}},hideFooterSelectedRowCount:!0,hideFooter:!0,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}},columns:[...n.map(w=>{var x,P;const b=(x=BD[w.$type])==null?void 0:x.column;return ye(ye(ye({field:w.k,headerName:(P=w.headerName)!=null?P:typeof w.label=="string"?w.label:r3(w.k),disableColumnMenu:!0},b),w.$width?{[w.$width>=8?"width":"flex"]:w.$width}:!(b!=null&&b.width)&&!(b!=null&&b.flex)&&{flex:1}),w.$column)}),{field:"",type:"actions",width:90,headerAlign:"center",renderHeader(){const w="Add";return u.createElement(u.Fragment,{},u.createElement(dn,{icon:dk,title:w,size:"small",onClick:b=>Sh({form:y,title:w}).then(x=>{if(!x)return;const P=(r==null?void 0:r.slice())||[];a?P.unshift(x):P.push(x),C(P,b)})}),v!==void 0&&u.createElement(dn,{icon:DB,title:"Undo",size:"small",onClick:b=>C(v,b)}))},getActions({row:w}){const{$idx:b=w.id}=w,x="Modify";return[u.createElement(jg,{icon:u.createElement(pk),label:x,title:x,onClick(P){Sh({values:w,form:y,title:x}).then(k=>{k&&C(r.map((E,I)=>I===b?k:E),P)})}}),u.createElement(jg,{icon:u.createElement(Bl),label:"Delete",showInMenu:l,onClick:P=>C(r.filter((k,E)=>E!==b),P)}),l&&b&&u.createElement(jg,{icon:u.createElement(gk),label:"Move up",showInMenu:!0,onClick:P=>C($O(r.slice(),b,b-1),P)}),l&&b<h.length-1&&u.createElement(jg,{icon:u.createElement(OB),label:"Move down",showInMenu:!0,onClick:P=>C($O(r.slice(),b,b+1),P)})].filter(Boolean)}}]})));function C(w,b){o(w,{was:r,event:b}),m(r)}}const BD={dateTime:{field:{comp:Mke},column:{type:"dateTime",minWidth:90,flex:.5,valueGetter:({value:e})=>e&&new Date(e),renderCell:({value:e})=>e&&u.createElement(ze,{},e.toLocaleDateString(),u.createElement("br"),e.toLocaleTimeString())}}};var Mk={},_ke=Je;Object.defineProperty(Mk,"__esModule",{value:!0});var C6=Mk.default=void 0,Tke=_ke(tt()),$ke=et();C6=Mk.default=(0,Tke.default)((0,$ke.jsx)("path",{d:"M5 17h14v2H5zm7-12L5.33 15h13.34z"}),"Eject");var _k={},Rke=Je;Object.defineProperty(_k,"__esModule",{value:!0});var x6=_k.default=void 0,Oke=Rke(tt()),Dke=et();x6=_k.default=(0,Oke.default)((0,Dke.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3z"}),"CreateNewFolder");var Tk={},Ake=Je;Object.defineProperty(Tk,"__esModule",{value:!0});var S6=Tk.default=void 0,Lke=Ake(tt()),Fke=et();S6=Tk.default=(0,Lke.default)((0,Fke.jsx)("path",{d:"M8 11h3v10h2V11h3l-4-4zM4 3v2h16V3z"}),"VerticalAlignTop");const Nke=["element"];function Bke(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}function jke(e,t){let n=0,r=e.length-1;for(;n<=r;){const o=Math.floor((n+r)/2);if(e[o].element===t)return o;e[o].element.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING?r=o-1:n=o+1}return n}const P6=u.createContext({});function zke(e){const t=u.useRef(null);return u.useEffect(()=>{t.current=e},[e]),t.current}const jD=()=>{};function Vke(e){const[,t]=u.useState(),{registerDescendant:n=jD,unregisterDescendant:r=jD,descendants:o=[],parentId:s=null}=u.useContext(P6),i=Bke(o,c=>c.element===e.element),l=zke(o),a=o.some((c,f)=>l&&l[f]&&l[f].element!==c.element);return Ft(()=>{if(e.element)return n(S({},e,{index:i})),()=>{r(e.element)};t({})},[n,r,i,a,e]),{parentId:s,index:i}}function E6(e){const{children:t,id:n}=e,[r,o]=u.useState([]),s=u.useCallback(a=>{let{element:c}=a,f=le(a,Nke);o(p=>{if(p.length===0)return[S({},f,{element:c,index:0})];const h=jke(p,c);let y;if(p[h]&&p[h].element===c)y=p;else{const v=S({},f,{element:c,index:h});y=p.slice(),y.splice(h,0,v)}return y.forEach((v,m)=>{v.index=m}),y})},[]),i=u.useCallback(a=>{o(c=>c.filter(f=>a!==f.element))},[]),l=u.useMemo(()=>({descendants:r,registerDescendant:s,unregisterDescendant:i,parentId:n}),[r,s,i,n]);return D.jsx(P6.Provider,{value:l,children:t})}const k6={instance:null,multiSelect:!1,disabledItemsFocusable:!1,treeId:void 0,icons:{defaultCollapseIcon:null,defaultExpandIcon:null,defaultParentIcon:null,defaultEndIcon:null}},I6=u.createContext(k6),M6=()=>u.useContext(I6);function Hke(e){const{instance:t,multiSelect:n}=M6(),r=t?t.isNodeExpandable(e):!1,o=t?t.isNodeExpanded(e):!1,s=t?t.isNodeFocused(e):!1,i=t?t.isNodeSelected(e):!1,l=t?t.isNodeDisabled(e):!1;return{disabled:l,expanded:o,selected:i,focused:s,handleExpansion:p=>{if(t&&!l){s||t.focusNode(p,e);const h=n&&(p.shiftKey||p.ctrlKey||p.metaKey);r&&!(h&&t.isNodeExpanded(e))&&t.toggleNodeExpansion(p,e)}},handleSelection:p=>{t&&!l&&(s||t.focusNode(p,e),n&&(p.shiftKey||p.ctrlKey||p.metaKey)?p.shiftKey?t.selectRange(p,{end:e}):t.selectNode(p,e,!0):t.selectNode(p,e))},preventSelection:p=>{(p.shiftKey||p.ctrlKey||p.metaKey||l)&&p.preventDefault()}}}const Uke=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],_6=u.forwardRef(function(t,n){const{classes:r,className:o,displayIcon:s,expansionIcon:i,icon:l,label:a,nodeId:c,onClick:f,onMouseDown:p}=t,h=le(t,Uke),{disabled:y,expanded:v,selected:m,focused:C,handleExpansion:w,handleSelection:b,preventSelection:x}=Hke(c),P=l||i||s,k=I=>{x(I),p&&p(I)},E=I=>{w(I),b(I),f&&f(I)};return D.jsxs("div",S({},h,{className:be(o,r.root,v&&r.expanded,m&&r.selected,C&&r.focused,y&&r.disabled),onClick:E,onMouseDown:k,ref:n,children:[D.jsx("div",{className:r.iconContainer,children:P}),D.jsx("div",{className:r.label,children:a})]}))});function Wke(e){return Ge("MuiTreeItem",e)}const ta=Ue("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]),Gke=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],Kke=e=>{const{classes:t}=e;return _e({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],group:["group"]},Wke,t)},qke=se("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),Yke=se(_6,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${ta.iconContainer}`]:t.iconContainer},t.label&&{[`& .${ta.label}`]:t.label}]})(({theme:e})=>({padding:"0 8px",width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ta.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${ta.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ta.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:In(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:In(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})`:In(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ta.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:In(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${ta.iconContainer}`]:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${ta.label}`]:S({paddingLeft:4,width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1)})),Qke=se(ly,{name:"MuiTreeItem",slot:"Group",overridesResolver:(e,t)=>t.group})({margin:0,padding:0,marginLeft:17}),FS=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiTreeItem"}),{children:o,className:s,collapseIcon:i,ContentComponent:l=_6,ContentProps:a,endIcon:c,expandIcon:f,disabled:p,icon:h,id:y,label:v,nodeId:m,onClick:C,onMouseDown:w,TransitionComponent:b=ly,TransitionProps:x}=r,P=le(r,Gke),{icons:k,multiSelect:E,disabledItemsFocusable:I,treeId:R,instance:O}=M6();let $;y!=null?$=y:R&&m&&($=`${R}-${m}`);const[L,j]=u.useState(null),N=u.useRef(null),_=Et(j,n),T=u.useMemo(()=>({element:L,id:m}),[m,L]),{index:B,parentId:V}=Vke(T),A=!!(Array.isArray(o)?o.length:o),F=O?O.isNodeExpanded(m):!1,H=O?O.isNodeFocused(m):!1,K=O?O.isNodeSelected(m):!1,Y=O?O.isNodeDisabled(m):!1,J=S({},r,{expanded:F,focused:H,selected:K,disabled:Y}),Q=Kke(J);let X,ee;A&&(F?ee=i||k.defaultCollapseIcon:ee=f||k.defaultExpandIcon),A?X=k.defaultParentIcon:X=c||k.defaultEndIcon,u.useEffect(()=>{if(O&&B!==-1)return O.updateNode({id:m,idAttribute:$,index:B,parentId:V,expandable:A,disabled:p}),()=>O.removeNode(m)},[O,V,B,m,A,p,$]),u.useEffect(()=>{if(O&&v){var pe,ne;return O.mapFirstChar(m,((pe=(ne=N.current)==null?void 0:ne.textContent)!=null?pe:"").substring(0,1).toLowerCase())}},[O,m,v]);let oe;E?oe=K:K&&(oe=!0);function Z(pe){if(pe.target===pe.currentTarget){let re;typeof pe.target.getRootNode=="function"?re=pe.target.getRootNode():re=pn(pe.target),re.getElementById(R).focus({preventScroll:!0})}const ne=!I&&Y;O&&!H&&pe.currentTarget===pe.target&&!ne&&O.focusNode(pe,m)}return D.jsxs(qke,S({className:be(Q.root,s),role:"treeitem","aria-expanded":A?F:void 0,"aria-selected":oe,"aria-disabled":Y||void 0,id:$,tabIndex:-1},P,{ownerState:J,onFocus:Z,ref:_,children:[D.jsx(Yke,S({as:l,ref:N,classes:{root:Q.content,expanded:Q.expanded,selected:Q.selected,focused:Q.focused,disabled:Q.disabled,iconContainer:Q.iconContainer,label:Q.label},label:v,nodeId:m,onClick:C,onMouseDown:w,icon:h,expansionIcon:ee,displayIcon:X,ownerState:J},a)),o&&D.jsx(E6,{id:m,children:D.jsx(Qke,S({as:b,unmountOnExit:!0,className:Q.group,in:F,component:"ul",role:"group"},x,{children:o}))})]}))});function Xke(e){return Ge("MuiTreeView",e)}Ue("MuiTreeView",["root"]);const Zke=(e,t)=>{const n=u.useRef({}),[r,o]=u.useState(()=>{const i={};return e.forEach(l=>{l.models&&Object.entries(l.models).forEach(([a,c])=>{n.current[a]={controlledProp:c.controlledProp,defaultProp:c.defaultProp,isControlled:t[c.controlledProp]!==void 0},i[a]=t[c.defaultProp]})}),i});return Object.fromEntries(Object.entries(n.current).map(([i,l])=>{const a=l.isControlled?t[l.controlledProp]:r[i];return[i,{value:a,setValue:c=>{l.isControlled||o(f=>S({},f,{[i]:c}))}}]}))};class Jke{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),s=Array.from(r.regular.keys());for(let i=o.length-1;i>=0;i-=1){const l=o[i];r.highPriority.has(l)&&l.apply(this,n)}for(let i=0;i<s.length;i+=1){const l=s[i];r.regular.has(l)&&l.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...s){r.removeListener(t,o),n.apply(r,s)})}}const TC=(e,t)=>{const n=e.getNode(t),r=e.getNavigableChildrenIds(n.parentId),o=r.indexOf(t);if(o===0)return n.parentId;let s=r[o-1];for(;e.isNodeExpanded(s)&&e.getNavigableChildrenIds(s).length>0;)s=e.getNavigableChildrenIds(s).pop();return s},wp=(e,t)=>{if(e.isNodeExpanded(t)&&e.getNavigableChildrenIds(t).length>0)return e.getNavigableChildrenIds(t)[0];let n=e.getNode(t);for(;n!=null;){const r=e.getNavigableChildrenIds(n.parentId),o=r[r.indexOf(n.id)+1];if(o)return o;n=e.getNode(n.parentId)}return null},NS=e=>{let t=e.getNavigableChildrenIds(null).pop();for(;e.isNodeExpanded(t);)t=e.getNavigableChildrenIds(t).pop();return t},BS=e=>e.getNavigableChildrenIds(null)[0],hf=(e,t)=>{Object.assign(e,t)},eIe=e=>e.isPropagationStopped!==void 0,tIe=({instance:e})=>{const[t]=u.useState(()=>new Jke),n=u.useCallback((...o)=>{const[s,i,l={}]=o;l.defaultMuiPrevented=!1,!(eIe(l)&&l.isPropagationStopped())&&t.emit(s,i,l)},[t]),r=u.useCallback((o,s)=>(t.on(o,s),()=>{t.removeListener(o,s)}),[t]);hf(e,{$$publishEvent:n,$$subscribeEvent:r})},nIe=[tIe],rIe=e=>{const t=[...nIe,...e.plugins],n=t.reduce((v,m)=>m.getDefaultizedParams?m.getDefaultizedParams(v):v,e),r=Zke(t,n),s=u.useRef({}).current,i=u.useRef(null),l=Et(i,e.rootRef),[a,c]=u.useState(()=>{const v={};return t.forEach(m=>{m.getInitialState&&Object.assign(v,m.getInitialState(n))}),v}),f=[];let p=k6;const h=v=>{const m=v({instance:s,params:n,state:a,setState:c,rootRef:i,models:r})||{};m.getRootProps&&f.push(m.getRootProps),m.contextValue&&(p=m.contextValue)};return t.forEach(h),{getRootProps:(v={})=>{const m=S({role:"tree",tabIndex:0},v,{ref:l});return f.forEach(C=>{Object.assign(m,C(v))}),m},rootRef:l,contextValue:p}};function oIe(e){const{value:t,children:n}=e;return D.jsx(I6.Provider,{value:t,children:D.jsx(E6,{children:n})})}const sIe=(e,t,n)=>{e.$$publishEvent(t,n)},iIe=({instance:e,params:t})=>{const n=u.useRef({}),r=u.useCallback(c=>n.current[c],[]),o=u.useCallback(c=>{n.current[c.id]=c},[]),s=u.useCallback(c=>{const f=S({},n.current);delete f[c],n.current=f,sIe(e,"removeNode",{id:c})},[e]),i=u.useCallback(c=>{if(c==null)return!1;let f=e.getNode(c);if(!f)return!1;if(f.disabled)return!0;for(;f.parentId!=null;)if(f=e.getNode(f.parentId),f.disabled)return!0;return!1},[e]),l=qe(c=>Object.values(n.current).filter(f=>f.parentId===c).sort((f,p)=>f.index-p.index).map(f=>f.id));hf(e,{getNode:r,updateNode:o,removeNode:s,getChildrenIds:l,getNavigableChildrenIds:c=>{let f=e.getChildrenIds(c);return t.disabledItemsFocusable||(f=f.filter(p=>!e.isNodeDisabled(p))),f},isNodeDisabled:i})},$k=({instance:e,params:t,models:n})=>{const r=u.useCallback(l=>Array.isArray(n.expanded.value)?n.expanded.value.indexOf(l)!==-1:!1,[n.expanded.value]),o=u.useCallback(l=>{var a;return!!((a=e.getNode(l))!=null&&a.expandable)},[e]),s=qe((l,a)=>{if(a==null)return;let c;n.expanded.value.indexOf(a)!==-1?c=n.expanded.value.filter(f=>f!==a):c=[a].concat(n.expanded.value),t.onNodeToggle&&t.onNodeToggle(l,c),n.expanded.setValue(c)});hf(e,{isNodeExpanded:r,isNodeExpandable:o,toggleNodeExpansion:s,expandAllSiblings:(l,a)=>{const c=e.getNode(a),p=e.getChildrenIds(c.parentId).filter(y=>e.isNodeExpandable(y)&&!e.isNodeExpanded(y)),h=n.expanded.value.concat(p);p.length>0&&(n.expanded.setValue(h),t.onNodeToggle&&t.onNodeToggle(l,h))}})};$k.models={expanded:{controlledProp:"expanded",defaultProp:"defaultExpanded"}};const lIe=[];$k.getDefaultizedParams=e=>{var t;return S({},e,{defaultExpanded:(t=e.defaultExpanded)!=null?t:lIe})};const aIe=(e,t,n)=>{if(t===n)return[t,n];const r=e.getNode(t),o=e.getNode(n);if(r.parentId===o.id||o.parentId===r.id)return o.parentId===r.id?[r.id,o.id]:[o.id,r.id];const s=[r.id],i=[o.id];let l=r.parentId,a=o.parentId,c=i.indexOf(l)!==-1,f=s.indexOf(a)!==-1,p=!0,h=!0;for(;!f&&!c;)p&&(s.push(l),c=i.indexOf(l)!==-1,p=l!==null,!c&&p&&(l=e.getNode(l).parentId)),h&&!c&&(i.push(a),f=s.indexOf(a)!==-1,h=a!==null,!f&&h&&(a=e.getNode(a).parentId));const y=c?l:a,v=e.getChildrenIds(y),m=s[s.indexOf(y)-1],C=i[i.indexOf(y)-1];return v.indexOf(m)<v.indexOf(C)?[t,n]:[n,t]},Rk=({instance:e,params:t,models:n})=>{const r=u.useRef(null),o=u.useRef(!1),s=u.useRef([]),i=v=>Array.isArray(n.selected.value)?n.selected.value.indexOf(v)!==-1:n.selected.value===v,l=(v,m,C=!1)=>{if(!t.disableSelection){if(C){if(Array.isArray(n.selected.value)){let w;n.selected.value.indexOf(m)!==-1?w=n.selected.value.filter(b=>b!==m):w=[m].concat(n.selected.value),t.onNodeSelect&&t.onNodeSelect(v,w),n.selected.setValue(w)}}else{const w=t.multiSelect?[m]:m;t.onNodeSelect&&t.onNodeSelect(v,w),n.selected.setValue(w)}r.current=m,o.current=!1,s.current=[]}},a=(v,m)=>{const[C,w]=aIe(e,v,m),b=[C];let x=C;for(;x!==w;)x=wp(e,x),b.push(x);return b},c=(v,m)=>{let C=n.selected.value.slice();const{start:w,next:b,current:x}=m;!b||!x||(s.current.indexOf(x)===-1&&(s.current=[]),o.current?s.current.indexOf(b)!==-1?(C=C.filter(P=>P===w||P!==x),s.current=s.current.filter(P=>P===w||P!==x)):(C.push(b),s.current.push(b)):(C.push(b),s.current.push(x,b)),t.onNodeSelect&&t.onNodeSelect(v,C),n.selected.setValue(C))},f=(v,m)=>{let C=n.selected.value.slice();const{start:w,end:b}=m;o.current&&(C=C.filter(k=>s.current.indexOf(k)===-1));let x=a(w,b);x=x.filter(k=>!e.isNodeDisabled(k)),s.current=x;let P=C.concat(x);P=P.filter((k,E)=>P.indexOf(k)===E),t.onNodeSelect&&t.onNodeSelect(v,P),n.selected.setValue(P)};return hf(e,{isNodeSelected:i,selectNode:l,selectRange:(v,m,C=!1)=>{if(t.disableSelection)return;const{start:w=r.current,end:b,current:x}=m;C?c(v,{start:w,next:b,current:x}):w!=null&&b!=null&&f(v,{start:w,end:b}),o.current=!0},rangeSelectToLast:(v,m)=>{r.current||(r.current=m);const C=o.current?r.current:m;e.selectRange(v,{start:C,end:NS(e)})},rangeSelectToFirst:(v,m)=>{r.current||(r.current=m);const C=o.current?r.current:m;e.selectRange(v,{start:C,end:BS(e)})}}),{getRootProps:()=>({"aria-multiselectable":t.multiSelect})}};Rk.models={selected:{controlledProp:"selected",defaultProp:"defaultSelected"}};const cIe=[];Rk.getDefaultizedParams=e=>{var t,n,r;return S({},e,{disableSelection:(t=e.disableSelection)!=null?t:!1,multiSelect:(n=e.multiSelect)!=null?n:!1,defaultSelected:(r=e.defaultSelected)!=null?r:e.multiSelect?cIe:null})};const zD=1e3;class uIe{constructor(t=zD){this.timeouts=new Map,this.cleanupTimeout=zD,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class dIe{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}class fIe{}function pIe(e){let t=0;return function(r,o,s){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new dIe:new uIe);const[i]=u.useState(new fIe),l=u.useRef(null),a=u.useRef();a.current=s;const c=u.useRef(null);if(!l.current&&a.current){const f=(p,h)=>{if(!h.defaultMuiPrevented){var y;(y=a.current)==null||y.call(a,p,h)}};l.current=r.$$subscribeEvent(o,f),t+=1,c.current={cleanupToken:t},e.registry.register(i,()=>{var p;(p=l.current)==null||p.call(l),l.current=null,c.current=null},c.current)}else!a.current&&l.current&&(l.current(),l.current=null,c.current&&(e.registry.unregister(c.current),c.current=null));u.useEffect(()=>{if(!l.current&&a.current){const f=(p,h)=>{if(!h.defaultMuiPrevented){var y;(y=a.current)==null||y.call(a,p,h)}};l.current=r.$$subscribeEvent(o,f)}return c.current&&e.registry&&(e.registry.unregister(c.current),c.current=null),()=>{var f;(f=l.current)==null||f.call(l),l.current=null}},[r,o])}}const hIe={registry:null},mIe=pIe(hIe),Ok=({instance:e,params:t,state:n,setState:r,models:o,rootRef:s})=>{const i=qe(y=>{const v=typeof y=="function"?y(n.focusedNodeId):y;r(m=>S({},m,{focusedNodeId:v}))}),l=u.useCallback(y=>n.focusedNodeId===y,[n.focusedNodeId]),a=qe((y,v)=>{v&&(i(v),t.onNodeFocus&&t.onNodeFocus(y,v))});hf(e,{isNodeFocused:l,focusNode:a}),mIe(e,"removeNode",({id:y})=>{i(v=>v===y&&s.current===pn(s.current).activeElement?e.getChildrenIds(null)[0]:v)});const c=y=>v=>{var m;if((m=y.onFocus)==null||m.call(y,v),v.target===v.currentTarget){const C=b=>{const x=e.getNode(b);return x&&(x.parentId==null||e.isNodeExpanded(x.parentId))};let w;Array.isArray(o.selected.value)?w=o.selected.value.find(C):o.selected.value!=null&&C(o.selected.value)&&(w=o.selected.value),w==null&&(w=e.getNavigableChildrenIds(null)[0]),e.focusNode(v,w)}},f=y=>v=>{var m;(m=y.onBlur)==null||m.call(y,v),i(null)},p=e.getNode(n.focusedNodeId),h=p?p.idAttribute:null;return{getRootProps:y=>({onFocus:c(y),onBlur:f(y),"aria-activedescendant":h!=null?h:void 0})}};Ok.getInitialState=()=>({focusedNodeId:null});Ok.getDefaultizedParams=e=>{var t;return S({},e,{disabledItemsFocusable:(t=e.disabledItemsFocusable)!=null?t:!1})};function gIe(e){return e&&e.length===1&&e.match(/\S/)}function VD(e,t,n){for(let r=t;r<e.length;r+=1)if(n===e[r])return r;return-1}const vIe=({instance:e,params:t,state:n})=>{const o=Fn().direction==="rtl",s=u.useRef({}),i=qe((y,v)=>(s.current[y]=v,()=>{const m=S({},s.current);delete m[y],s.current=m}));hf(e,{mapFirstChar:i});const l=y=>(n.focusedNodeId!=null&&e.isNodeExpandable(n.focusedNodeId)&&(e.isNodeExpanded(n.focusedNodeId)?e.focusNode(y,wp(e,n.focusedNodeId)):e.isNodeDisabled(n.focusedNodeId)||e.toggleNodeExpansion(y,n.focusedNodeId)),!0),a=y=>{if(n.focusedNodeId==null)return!1;if(e.isNodeExpanded(n.focusedNodeId)&&!e.isNodeDisabled(n.focusedNodeId))return e.toggleNodeExpansion(y,n.focusedNodeId),!0;const v=e.getNode(n.focusedNodeId).parentId;return v?(e.focusNode(y,v),!0):!1},c=(y,v,m)=>{let C,w;const b=m.toLowerCase(),x=[],P=[];Object.keys(s.current).forEach(k=>{const E=e.getNode(k),I=E.parentId?e.isNodeExpanded(E.parentId):!0,R=t.disabledItemsFocusable?!1:e.isNodeDisabled(k);I&&!R&&(x.push(k),P.push(s.current[k]))}),C=x.indexOf(v)+1,C>=x.length&&(C=0),w=VD(P,C,b),w===-1&&(w=VD(P,0,b)),w>-1&&e.focusNode(y,x[w])},f=(y,v)=>{e.isNodeDisabled(wp(e,v))||e.selectRange(y,{end:wp(e,v),current:v},!0)},p=(y,v)=>{e.isNodeDisabled(TC(e,v))||e.selectRange(y,{end:TC(e,v),current:v},!0)},h=y=>v=>{var m;(m=y.onKeyDown)==null||m.call(y,v);let C=!1;const w=v.key;if(v.altKey||v.currentTarget!==v.target||n.focusedNodeId==null)return;const b=v.ctrlKey||v.metaKey;switch(w){case" ":!t.disableSelection&&!e.isNodeDisabled(n.focusedNodeId)&&(C=!0,t.multiSelect&&v.shiftKey?e.selectRange(v,{end:n.focusedNodeId}):t.multiSelect?e.selectNode(v,n.focusedNodeId,!0):e.selectNode(v,n.focusedNodeId)),v.stopPropagation();break;case"Enter":e.isNodeDisabled(n.focusedNodeId)||(e.isNodeExpandable(n.focusedNodeId)?(e.toggleNodeExpansion(v,n.focusedNodeId),C=!0):t.disableSelection||(C=!0,t.multiSelect?e.selectNode(v,n.focusedNodeId,!0):e.selectNode(v,n.focusedNodeId))),v.stopPropagation();break;case"ArrowDown":t.multiSelect&&v.shiftKey&&!t.disableSelection&&f(v,n.focusedNodeId),e.focusNode(v,wp(e,n.focusedNodeId)),C=!0;break;case"ArrowUp":t.multiSelect&&v.shiftKey&&!t.disableSelection&&p(v,n.focusedNodeId),e.focusNode(v,TC(e,n.focusedNodeId)),C=!0;break;case"ArrowRight":o?C=a(v):C=l(v);break;case"ArrowLeft":o?C=l(v):C=a(v);break;case"Home":t.multiSelect&&b&&v.shiftKey&&!t.disableSelection&&!e.isNodeDisabled(n.focusedNodeId)&&e.rangeSelectToFirst(v,n.focusedNodeId),e.focusNode(v,BS(e)),C=!0;break;case"End":t.multiSelect&&b&&v.shiftKey&&!t.disableSelection&&!e.isNodeDisabled(n.focusedNodeId)&&e.rangeSelectToLast(v,n.focusedNodeId),e.focusNode(v,NS(e)),C=!0;break;default:w==="*"?(e.expandAllSiblings(v,n.focusedNodeId),C=!0):t.multiSelect&&b&&w.toLowerCase()==="a"&&!t.disableSelection?(e.selectRange(v,{start:BS(e),end:NS(e)}),C=!0):!b&&!v.shiftKey&&gIe(w)&&(c(v,n.focusedNodeId,w),C=!0)}C&&(v.preventDefault(),v.stopPropagation())};return{getRootProps:y=>({onKeyDown:h(y)})}},yIe=({instance:e,params:t})=>{const n=Yt(t.id);return{getRootProps:()=>({id:n}),contextValue:{treeId:n,instance:e,multiSelect:t.multiSelect,disabledItemsFocusable:t.disabledItemsFocusable,icons:{defaultCollapseIcon:t.defaultCollapseIcon,defaultEndIcon:t.defaultEndIcon,defaultExpandIcon:t.defaultExpandIcon,defaultParentIcon:t.defaultParentIcon}}}},bIe=[iIe,$k,Rk,Ok,vIe,yIe],wIe=["disabledItemsFocusable","expanded","defaultExpanded","onNodeToggle","onNodeFocus","disableSelection","defaultSelected","selected","multiSelect","onNodeSelect","id","defaultCollapseIcon","defaultEndIcon","defaultExpandIcon","defaultParentIcon","children"],CIe=e=>{const{classes:t}=e;return _e({root:["root"]},Xke,t)},HD=se("ul",{name:"MuiTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0}),T6=u.forwardRef(function(t,n){const r=We({props:t,name:"MuiTreeView"}),o=r,s=r,{disabledItemsFocusable:i,expanded:l,defaultExpanded:a,onNodeToggle:c,onNodeFocus:f,disableSelection:p,defaultSelected:h,selected:y,multiSelect:v,onNodeSelect:m,id:C,defaultCollapseIcon:w,defaultEndIcon:b,defaultExpandIcon:x,defaultParentIcon:P,children:k}=s,E=le(s,wIe),{getRootProps:I,contextValue:R}=rIe({disabledItemsFocusable:i,expanded:l,defaultExpanded:a,onNodeToggle:c,onNodeFocus:f,disableSelection:p,defaultSelected:h,selected:y,multiSelect:v,onNodeSelect:m,id:C,defaultCollapseIcon:w,defaultEndIcon:b,defaultExpandIcon:x,defaultParentIcon:P,plugins:bIe,rootRef:n}),O=CIe(r),$=Qn({elementType:HD,externalSlotProps:{},externalForwardedProps:E,className:O.root,getSlotProps:I,ownerState:o});return D.jsx(oIe,{value:R,children:D.jsx(HD,S({},$,{children:k}))})});var Dk={},xIe=Je;Object.defineProperty(Dk,"__esModule",{value:!0});var $6=Dk.default=void 0,SIe=xIe(tt()),PIe=et();$6=Dk.default=(0,SIe.default)((0,PIe.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");var Ak={},EIe=Je;Object.defineProperty(Ak,"__esModule",{value:!0});var R6=Ak.default=void 0,kIe=EIe(tt()),IIe=et();R6=Ak.default=(0,kIe.default)((0,IIe.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");var Lk={},MIe=Je;Object.defineProperty(Lk,"__esModule",{value:!0});var O6=Lk.default=void 0,_Ie=MIe(tt()),UD=et();O6=Lk.default=(0,_Ie.default)([(0,UD.jsx)("path",{d:"M2 16.5C2 19.54 4.46 22 7.5 22s5.5-2.46 5.5-5.5V10H2zm5.5 2C6.12 18.5 5 17.83 5 17h5c0 .83-1.12 1.5-2.5 1.5M10 13c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m-5 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1"},"0"),(0,UD.jsx)("path",{d:"M11 3v6h3v2.5c0-.83 1.12-1.5 2.5-1.5s2.5.67 2.5 1.5h-5v2.89c.75.38 1.6.61 2.5.61 3.04 0 5.5-2.46 5.5-5.5V3zm3 5.08c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1c0 .56-.45 1-1 1m5 0c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1c0 .56-.45 1-1 1"},"1")],"TheaterComedy");var Fk={},TIe=Je;Object.defineProperty(Fk,"__esModule",{value:!0});var D6=Fk.default=void 0,$Ie=TIe(tt()),RIe=et();D6=Fk.default=(0,$Ie.default)((0,RIe.jsx)("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}),"Folder");var Nk={},OIe=Je;Object.defineProperty(Nk,"__esModule",{value:!0});var A6=Nk.default=void 0,DIe=OIe(tt()),AIe=et();A6=Nk.default=(0,DIe.default)((0,AIe.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link");var Bk={},LIe=Je;Object.defineProperty(Bk,"__esModule",{value:!0});var L6=Bk.default=void 0,FIe=LIe(tt()),NIe=et();L6=Bk.default=(0,FIe.default)((0,NIe.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zM6 20V4h7v5h5v11z"}),"InsertDriveFileOutlined");var jk={},BIe=Je;Object.defineProperty(jk,"__esModule",{value:!0});var F6=jk.default=void 0,jIe=BIe(tt()),zIe=et();F6=jk.default=(0,jIe.default)((0,zIe.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"RemoveRedEye");var zk={},VIe=Je;Object.defineProperty(zk,"__esModule",{value:!0});var N6=zk.default=void 0,HIe=VIe(tt()),UIe=et();N6=zk.default=(0,HIe.default)((0,UIe.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-5 14H4v-4h11zm0-5H4V9h11zm5 5h-4V9h4z"}),"Web");var Vk={},WIe=Je;Object.defineProperty(Vk,"__esModule",{value:!0});var B6=Vk.default=void 0,GIe=WIe(tt()),KIe=et();B6=Vk.default=(0,GIe.default)((0,KIe.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96"}),"Cloud");var Hk={},qIe=Je;Object.defineProperty(Hk,"__esModule",{value:!0});var j6=Hk.default=void 0,YIe=qIe(tt()),QIe=et();j6=Hk.default=(0,YIe.default)((0,QIe.jsx)("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"HighlightOff");var Uk={},XIe=Je;Object.defineProperty(Uk,"__esModule",{value:!0});var z6=Uk.default=void 0;eMe(u);var ZIe=XIe(tt()),JIe=et();function V6(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(V6=function(r){return r?n:t})(e)}function eMe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=V6(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var i=o?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(r,s,i):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}z6=Uk.default=(0,ZIe.default)((0,JIe.jsx)("path",{d:"M2 3h9v9H2V3m9 19H2v-9h9v9M21 3v9h-9V3h9m0 19h-9v-9h9v9Z"}),"Microsoft");let Ug;function tMe(){const{close:e}=po({title:"Add files or folders",dialogProps:{sx:{minWidth:"min(90vw, 40em)",minHeight:"calc(100vh - 9em)"}},Content(){const t=Wk();return u.createElement(u.Fragment,{},u.createElement(ze,{sx:{typography:"body1",px:1,py:2}},"Selected elements will be added under ",t.isRoot?u.createElement("i",{},"Home"):decodeURI(t.id)),u.createElement(Wj,{from:Ug!=null?Ug:t.source,onSelect(r){return ot(this,null,function*(){const o=yield Promise.all(r.map(l=>ut("add_vfs",{parent:t.id,source:l}).then(a=>a,a=>[l,a.message])));Ug=r[0].slice(0,r[0].lastIndexOf("/"));const s=o.filter(Array.isArray);s.length&&(yield kt(u.createElement(ze,{},"Some elements have been rejected",u.createElement("ul",{},s.map(([l,a])=>u.createElement("li",{key:l},l,": ",a)))),"error"));const i=o.filter(l=>l.name).map(l=>t.id+encodeURI(l.name)+(l.link.endsWith("/")?"/":""));Fa(i),e()})}}))}})}function nMe(){return ot(this,null,function*(){try{const e=yield im("Enter folder name");if(!e)return;const{id:t}=Wk(),n=yield ut("add_vfs",{parent:t,name:e});Fa([t+encodeURI(n.name)+"/"]),yield kt(`Folder "${n.name}" created`,"success")}catch(e){yield kt(e)}})}function rMe(){return ot(this,null,function*(){try{const{id:e}=Wk(),t=yield ut("add_vfs",{parent:e,name:"new link",url:"https://google.com"});Fa([e+encodeURI(t.name)]),rr("Link created","success",{onClose:()=>wy("input[name=url]")})}catch(e){yield kt(e)}})}function Wk(){const e=on.selectedFiles[0]||on.vfs;return e.type==="folder"?e:e.parent}function H6(n){var r=n,{items:e}=r,t=Lt(r,["items"]);const[o,s]=u.useState(),i=!!o,l=u.useCallback(()=>s(void 0),[]),a=u.useId(),c=u.useId();return u.createElement(u.Fragment,{},u.createElement(Yn,ye({id:a,"aria-controls":i?c:void 0,"aria-haspopup":"true","aria-expanded":i?!0:void 0,onClick:f=>{s(f.currentTarget)}},t)),u.createElement(o5,{id:c,anchorEl:o,open:i,onClose:l,MenuListProps:{"aria-labelledby":a},children:e.map((f,p)=>u.createElement(Pr,it(ye({key:p},f),{onClick(){var h;l(),(h=f.onClick)==null||h.apply(this,arguments)}})))}))}var Gk={},oMe=Je;Object.defineProperty(Gk,"__esModule",{value:!0});var U6=Gk.default=void 0,sMe=oMe(tt()),iMe=et();U6=Gk.default=(0,sMe.default)((0,iMe.jsx)("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"}),"RestartAlt");function jS(s){var i=s,{keys:e,form:t,saveOnChange:n,onSave:r}=i,o=Lt(i,["keys","form","saveOnChange","onSave"]);const l=Xn("get_config",{only:e}),[a,c]=u.useState(l.data);u.useEffect(()=>c(y=>l.data||y),[l.data]);const f=a&&!Ze.isEqual(a,l.data);if(u.useEffect(()=>{f&&n&&h()},[f]),!a)return l.element;const p=Ze.isFunction(t)?t(a):t;return u.createElement(Yc,it(ye(ye({values:a,set(y,v){c(m=>it(ye({},m),{[v]:y}))},save:n?!1:{onClick:h,sx:lf(f)}},Array.isArray(p)?{fields:p}:p),o),{barSx:ye({gap:1},o.barSx),addToBar:[u.createElement(dn,{icon:U6,disabled:!f,title:"Reset",onClick(){c(l.data)}}),...o.addToBar||[]]}));function h(){return ut("set_config",{values:a}).then(r).then(l.reload)}}function zS(i){var l=i,{value:e="",onChange:t,helperText:n,setApi:r,autocompleteProps:o}=l,s=Lt(l,["value","onChange","helperText","setApi","autocompleteProps"]);const a=uhe(e),{list:c,loading:f}=Ol("get_file_list",{uri:a,admin:!0,onlyFolders:!0}),p=u.useMemo(()=>[a+"/"].concat(c.map(h=>e+h.n)),[c,a]);return u.createElement(nm,ye({value:e,options:p,isOptionEqualToValue:(h,y)=>h===y||h===y+"/",loading:f,disableClearable:!0,renderInput:h=>u.createElement(Wa,it(ye(ye({helperText:n,placeholder:"home",onChange(y){const v=y.target.value;(v.endsWith("/")||!v)&&t(v,{was:e,event:y})},onBlur(y){const v=y.target.value+"/";p.includes(v)&&t(v,{was:e,event:y})}},h),s),{InputLabelProps:ye(ye({shrink:!0},h.InputLabelProps),s.InputLabelProps)})),onChange:(h,y)=>t(y,{was:e,event:h})},o))}function lMe({statusApi:e}){var s;const t=((s=e.data)==null?void 0:s.platform)==="win32",{data:n,reload:r}=S5(t&&"windows_integrated");return u.createElement(Gr,{mb:2,position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"},u.createElement(H6,{variant:"contained",startIcon:u.createElement(dk),items:[{children:"from disk",onClick:tMe},{children:"virtual folder",onClick:nMe},{children:"web-link",onClick:rMe}]},"Add"),u.createElement(Ro,{variant:"outlined",onClick:o},"Roots"),M0(()=>Fa()),t&&u.createElement(Ro,ye({icon:z6,variant:"outlined",doneMessage:!0},n!=null&&n.is?{confirm:!0,children:"Remove integration",onClick:()=>ut("windows_remove").then(r)}:{children:"System integration",onClick(){return ot(this,null,function*(){const l=u.createElement(ze,{},"We are going to add a command in the right-click of Windows File Manager",u.createElement("img",{src:"win-shell.png",style:{display:"block",width:"min(30em, 80vw)",marginTop:"1em"}}),u.createElement(Er,{severity:"info"},"It will also automatically copy the URL, ready to paste!")),a=yield im(l,{field:{comp:zS,label:"Add to this folder"},form:{saveOnEnter:!1}});return a?ut("windows_integration",{parent:a}).then(r):!1})}})));function o(){const{close:l}=po({dialogProps:{maxWidth:"sm"},Content:()=>u.createElement(jS,{onSave(){e.reload(),l()},keys:[On.roots,On.roots_mandatory],form:{fields:[{k:"roots",label:"Roots for different domains",helperText:"You can decide different home-folders (in the VFS) for different domains, a bit like virtual hosts. If none is matched, the default home will be used.",comp:Oh,fields:[{k:"host",label:"Domain/Host",helperText:"Wildcards supported: domain.*|other.*"},{k:"root",label:"Home/Root",comp:zS,placeholder:"default",helperText:"Root path in VFS"}],toField:a=>Object.entries(a||{}).map(([c,f])=>({host:c,root:f})),fromField:a=>Object.fromEntries(a.map(c=>[c.host,c.root]))},{k:"roots_mandatory",label:"Block requests that are not using any of the domains above",helperText:"localhost connections are not included",comp:Dn}]}})})}}const Kk=Symbol.for("yaml.alias"),VS=Symbol.for("yaml.document"),Ta=Symbol.for("yaml.map"),W6=Symbol.for("yaml.pair"),Dl=Symbol.for("yaml.scalar"),mf=Symbol.for("yaml.seq"),Vs=Symbol.for("yaml.node.type"),Zc=e=>!!e&&typeof e=="object"&&e[Vs]===Kk,gf=e=>!!e&&typeof e=="object"&&e[Vs]===VS,vf=e=>!!e&&typeof e=="object"&&e[Vs]===Ta,Ln=e=>!!e&&typeof e=="object"&&e[Vs]===W6,xn=e=>!!e&&typeof e=="object"&&e[Vs]===Dl,yf=e=>!!e&&typeof e=="object"&&e[Vs]===mf;function jn(e){if(e&&typeof e=="object")switch(e[Vs]){case Ta:case mf:return!0}return!1}function or(e){if(e&&typeof e=="object")switch(e[Vs]){case Kk:case Ta:case Dl:case mf:return!0}return!1}const aMe=e=>(xn(e)||jn(e))&&!!e.anchor,Po=Symbol("break visit"),G6=Symbol("skip children"),Ui=Symbol("remove node");function Aa(e,t){const n=K6(t);gf(e)?Zu(null,e.contents,n,Object.freeze([e]))===Ui&&(e.contents=null):Zu(null,e,n,Object.freeze([]))}Aa.BREAK=Po;Aa.SKIP=G6;Aa.REMOVE=Ui;function Zu(e,t,n,r){const o=q6(e,t,n,r);if(or(o)||Ln(o))return Y6(e,r,o),Zu(e,o,n,r);if(typeof o!="symbol"){if(jn(t)){r=Object.freeze(r.concat(t));for(let s=0;s<t.items.length;++s){const i=Zu(s,t.items[s],n,r);if(typeof i=="number")s=i-1;else{if(i===Po)return Po;i===Ui&&(t.items.splice(s,1),s-=1)}}}else if(Ln(t)){r=Object.freeze(r.concat(t));const s=Zu("key",t.key,n,r);if(s===Po)return Po;s===Ui&&(t.key=null);const i=Zu("value",t.value,n,r);if(i===Po)return Po;i===Ui&&(t.value=null)}}return o}function K0(e,t){return ot(this,null,function*(){const n=K6(t);gf(e)?(yield Ju(null,e.contents,n,Object.freeze([e])))===Ui&&(e.contents=null):yield Ju(null,e,n,Object.freeze([]))})}K0.BREAK=Po;K0.SKIP=G6;K0.REMOVE=Ui;function Ju(e,t,n,r){return ot(this,null,function*(){const o=yield q6(e,t,n,r);if(or(o)||Ln(o))return Y6(e,r,o),Ju(e,o,n,r);if(typeof o!="symbol"){if(jn(t)){r=Object.freeze(r.concat(t));for(let s=0;s<t.items.length;++s){const i=yield Ju(s,t.items[s],n,r);if(typeof i=="number")s=i-1;else{if(i===Po)return Po;i===Ui&&(t.items.splice(s,1),s-=1)}}}else if(Ln(t)){r=Object.freeze(r.concat(t));const s=yield Ju("key",t.key,n,r);if(s===Po)return Po;s===Ui&&(t.key=null);const i=yield Ju("value",t.value,n,r);if(i===Po)return Po;i===Ui&&(t.value=null)}}return o})}function K6(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function q6(e,t,n,r){var o,s,i,l,a;if(typeof n=="function")return n(e,t,r);if(vf(t))return(o=n.Map)==null?void 0:o.call(n,e,t,r);if(yf(t))return(s=n.Seq)==null?void 0:s.call(n,e,t,r);if(Ln(t))return(i=n.Pair)==null?void 0:i.call(n,e,t,r);if(xn(t))return(l=n.Scalar)==null?void 0:l.call(n,e,t,r);if(Zc(t))return(a=n.Alias)==null?void 0:a.call(n,e,t,r)}function Y6(e,t,n){const r=t[t.length-1];if(jn(r))r.items[e]=n;else if(Ln(r))e==="key"?r.key=n:r.value=n;else if(gf(r))r.contents=n;else{const o=Zc(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const cMe={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},uMe=e=>e.replace(/[!,[\]{}]/g,t=>cMe[t]);class so{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},so.defaultYaml,t),this.tags=Object.assign({},so.defaultTags,n)}clone(){const t=new so(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new so(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:so.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},so.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:so.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},so.defaultTags),this.atNextDocument=!1);const r=t.trim().split(/[ \t]+/),o=r.shift();switch(o){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[s,i]=r;return this.tags[s]=i,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[s]=r;if(s==="1.1"||s==="1.2")return this.yaml.version=s,!0;{const i=/^\d+\.\d+$/.test(s);return n(6,`Unsupported YAML version ${s}`,i),!1}}default:return n(0,`Unknown directive ${o}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const i=t.slice(2,-1);return i==="!"||i==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),i)}const[,r,o]=t.match(/^(.*!)([^!]*)$/);o||n(`The ${t} tag has no suffix`);const s=this.tags[r];return s?s+decodeURIComponent(o):r==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,r]of Object.entries(this.tags))if(t.startsWith(r))return n+uMe(t.substring(r.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let o;if(t&&r.length>0&&or(t.contents)){const s={};Aa(t.contents,(i,l)=>{or(l)&&l.tag&&(s[l.tag]=!0)}),o=Object.keys(s)}else o=[];for(const[s,i]of r)s==="!!"&&i==="tag:yaml.org,2002:"||(!t||o.some(l=>l.startsWith(i)))&&n.push(`%TAG ${s} ${i}`);return n.join(`
622
+ `)}}so.defaultYaml={explicit:!1,version:"1.2"};so.defaultTags={"!!":"tag:yaml.org,2002:"};function Q6(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function X6(e){const t=new Set;return Aa(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function Z6(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function dMe(e,t){const n=[],r=new Map;let o=null;return{onAnchor:s=>{n.push(s),o||(o=X6(e));const i=Z6(t,o);return o.add(i),i},setAnchors:()=>{for(const s of n){const i=r.get(s);if(typeof i=="object"&&i.anchor&&(xn(i.node)||jn(i.node)))i.node.anchor=i.anchor;else{const l=new Error("Failed to resolve repeated object (this should not happen)");throw l.source=s,l}}},sourceObjects:r}}function ed(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let o=0,s=r.length;o<s;++o){const i=r[o],l=ed(e,r,String(o),i);l===void 0?delete r[o]:l!==i&&(r[o]=l)}else if(r instanceof Map)for(const o of Array.from(r.keys())){const s=r.get(o),i=ed(e,r,o,s);i===void 0?r.delete(o):i!==s&&r.set(o,i)}else if(r instanceof Set)for(const o of Array.from(r)){const s=ed(e,r,o,o);s===void 0?r.delete(o):s!==o&&(r.delete(o),r.add(s))}else for(const[o,s]of Object.entries(r)){const i=ed(e,r,o,s);i===void 0?delete r[o]:i!==s&&(r[o]=i)}return e.call(t,n,r)}function As(e,t,n){if(Array.isArray(e))return e.map((r,o)=>As(r,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!aMe(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=s=>{r.res=s,delete n.onCreate};const o=e.toJSON(t,n);return n.onCreate&&n.onCreate(o),o}return typeof e=="bigint"&&!(n!=null&&n.keep)?Number(e):e}class qk{constructor(t){Object.defineProperty(this,Vs,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:o,reviver:s}={}){if(!gf(t))throw new TypeError("A document argument is required");const i={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},l=As(this,"",i);if(typeof o=="function")for(const{count:a,res:c}of i.anchors.values())o(c,a);return typeof s=="function"?ed(s,{"":l},"",l):l}}class q0 extends qk{constructor(t){super(Kk),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return Aa(t,{Node:(r,o)=>{if(o===this)return Aa.BREAK;o.anchor===this.source&&(n=o)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:o,maxAliasCount:s}=n,i=this.resolve(o);if(!i){const a=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(a)}let l=r.get(i);if(l||(As(i,null,n),l=r.get(i)),!l||l.res===void 0){const a="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(a)}if(s>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=Sv(o,i,r)),l.count*l.aliasCount>s)){const a="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(a)}return l.res}toString(t,n,r){const o=`*${this.source}`;if(t){if(Q6(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(t.implicitKey)return`${o} `}return o}}function Sv(e,t,n){if(Zc(t)){const r=t.resolve(e),o=n&&r&&n.get(r);return o?o.count*o.aliasCount:0}else if(jn(t)){let r=0;for(const o of t.items){const s=Sv(e,o,n);s>r&&(r=s)}return r}else if(Ln(t)){const r=Sv(e,t.key,n),o=Sv(e,t.value,n);return Math.max(r,o)}return 1}const J6=e=>!e||typeof e!="function"&&typeof e!="object";class Rt extends qk{constructor(t){super(Dl),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:As(this.value,t,n)}toString(){return String(this.value)}}Rt.BLOCK_FOLDED="BLOCK_FOLDED";Rt.BLOCK_LITERAL="BLOCK_LITERAL";Rt.PLAIN="PLAIN";Rt.QUOTE_DOUBLE="QUOTE_DOUBLE";Rt.QUOTE_SINGLE="QUOTE_SINGLE";const fMe="tag:yaml.org,2002:";function pMe(e,t,n){var r;if(t){const o=n.filter(i=>i.tag===t),s=(r=o.find(i=>!i.format))!=null?r:o[0];if(!s)throw new Error(`Tag ${t} not found`);return s}return n.find(o=>{var s;return((s=o.identify)==null?void 0:s.call(o,e))&&!o.format})}function Dh(e,t,n){var p,h,y;if(gf(e)&&(e=e.contents),or(e))return e;if(Ln(e)){const v=(h=(p=n.schema[Ta]).createNode)==null?void 0:h.call(p,n.schema,null,n);return v.items.push(e),v}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!="undefined"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:o,onTagObj:s,schema:i,sourceObjects:l}=n;let a;if(r&&e&&typeof e=="object"){if(a=l.get(e),a)return a.anchor||(a.anchor=o(e)),new q0(a.anchor);a={anchor:null,node:null},l.set(e,a)}t!=null&&t.startsWith("!!")&&(t=fMe+t.slice(2));let c=pMe(e,t,i.tags);if(!c){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const v=new Rt(e);return a&&(a.node=v),v}c=e instanceof Map?i[Ta]:Symbol.iterator in Object(e)?i[mf]:i[Ta]}s&&(s(c),delete n.onTagObj);const f=c!=null&&c.createNode?c.createNode(n.schema,e,n):typeof((y=c==null?void 0:c.nodeClass)==null?void 0:y.from)=="function"?c.nodeClass.from(n.schema,e,n):new Rt(e);return t?f.tag=t:c.default||(f.tag=c.tag),a&&(a.node=f),f}function By(e,t,n){let r=n;for(let o=t.length-1;o>=0;--o){const s=t[o];if(typeof s=="number"&&Number.isInteger(s)&&s>=0){const i=[];i[s]=r,r=i}else r=new Map([[s,r]])}return Dh(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const Cp=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class Y0 extends qk{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>or(r)||Ln(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Cp(t))this.add(n);else{const[r,...o]=t,s=this.get(r,!0);if(jn(s))s.addIn(o,n);else if(s===void 0&&this.schema)this.set(r,By(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}deleteIn(t){const[n,...r]=t;if(r.length===0)return this.delete(n);const o=this.get(n,!0);if(jn(o))return o.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...o]=t,s=this.get(r,!0);return o.length===0?!n&&xn(s)?s.value:s:jn(s)?s.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!Ln(n))return!1;const r=n.value;return r==null||t&&xn(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){const[n,...r]=t;if(r.length===0)return this.has(n);const o=this.get(n,!0);return jn(o)?o.hasIn(r):!1}setIn(t,n){const[r,...o]=t;if(o.length===0)this.set(r,n);else{const s=this.get(r,!0);if(jn(s))s.setIn(o,n);else if(s===void 0&&this.schema)this.set(r,By(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}}Y0.maxFlowStringSingleLineLength=60;const hMe=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function bl(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const ya=(e,t,n)=>e.endsWith(`
623
+ `)?bl(n,t):n.includes(`
624
+ `)?`
625
+ `+bl(n,t):(e.endsWith(" ")?"":" ")+n,ej="flow",HS="block",Pv="quoted";function Q0(e,t,n="flow",{indentAtStart:r,lineWidth:o=80,minContentWidth:s=20,onFold:i,onOverflow:l}={}){if(!o||o<0)return e;const a=Math.max(1+s,1+o-t.length);if(e.length<=a)return e;const c=[],f={};let p=o-t.length;typeof r=="number"&&(r>o-Math.max(2,s)?c.push(0):p=o-r);let h,y,v=!1,m=-1,C=-1,w=-1;n===HS&&(m=WD(e,m),m!==-1&&(p=m+a));for(let x;x=e[m+=1];){if(n===Pv&&x==="\\"){switch(C=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}w=m}if(x===`
626
+ `)n===HS&&(m=WD(e,m)),p=m+a,h=void 0;else{if(x===" "&&y&&y!==" "&&y!==`
627
+ `&&y!==" "){const P=e[m+1];P&&P!==" "&&P!==`
628
+ `&&P!==" "&&(h=m)}if(m>=p)if(h)c.push(h),p=h+a,h=void 0;else if(n===Pv){for(;y===" "||y===" ";)y=x,x=e[m+=1],v=!0;const P=m>w+1?m-2:C-1;if(f[P])return e;c.push(P),f[P]=!0,p=P+a,h=void 0}else v=!0}y=x}if(v&&l&&l(),c.length===0)return e;i&&i();let b=e.slice(0,c[0]);for(let x=0;x<c.length;++x){const P=c[x],k=c[x+1]||e.length;P===0?b=`
629
+ ${t}${e.slice(0,k)}`:(n===Pv&&f[P]&&(b+=`${e[P]}\\`),b+=`
630
+ ${t}${e.slice(P+1,k)}`)}return b}function WD(e,t){let n=e[t+1];for(;n===" "||n===" ";){do n=e[t+=1];while(n&&n!==`
631
+ `);n=e[t+1]}return t}const X0=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Z0=e=>/^(%|---|\.\.\.)/m.test(e);function mMe(e,t,n){if(!t||t<0)return!1;const r=t-n,o=e.length;if(o<=r)return!1;for(let s=0,i=0;s<o;++s)if(e[s]===`
632
+ `){if(s-i>r)return!0;if(i=s+1,o-i<=r)return!1}return!0}function Vp(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,s=t.indent||(Z0(e)?" ":"");let i="",l=0;for(let a=0,c=n[a];c;c=n[++a])if(c===" "&&n[a+1]==="\\"&&n[a+2]==="n"&&(i+=n.slice(l,a)+"\\ ",a+=1,l=a,c="\\"),c==="\\")switch(n[a+1]){case"u":{i+=n.slice(l,a);const f=n.substr(a+2,4);switch(f){case"0000":i+="\\0";break;case"0007":i+="\\a";break;case"000b":i+="\\v";break;case"001b":i+="\\e";break;case"0085":i+="\\N";break;case"00a0":i+="\\_";break;case"2028":i+="\\L";break;case"2029":i+="\\P";break;default:f.substr(0,2)==="00"?i+="\\x"+f.substr(2):i+=n.substr(a,6)}a+=5,l=a+1}break;case"n":if(r||n[a+2]==='"'||n.length<o)a+=1;else{for(i+=n.slice(l,a)+`
633
+
634
+ `;n[a+2]==="\\"&&n[a+3]==="n"&&n[a+4]!=='"';)i+=`
635
+ `,a+=2;i+=s,n[a+2]===" "&&(i+="\\"),a+=1,l=a+1}break;default:a+=1}return i=l?i+n.slice(l):n,r?i:Q0(i,s,Pv,X0(t,!1))}function US(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
636
+ `)||/[ \t]\n|\n[ \t]/.test(e))return Vp(e,t);const n=t.indent||(Z0(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
637
+ ${n}`)+"'";return t.implicitKey?r:Q0(r,n,ej,X0(t,!1))}function td(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=Vp;else{const o=e.includes('"'),s=e.includes("'");o&&!s?r=US:s&&!o?r=Vp:r=n?US:Vp}return r(e,t)}let WS;try{WS=new RegExp(`(^|(?<!
638
+ ))
639
+ +(?!
640
+ |$)`,"g")}catch(e){WS=/\n+(?!\n|$)/g}function Ev({comment:e,type:t,value:n},r,o,s){const{blockQuote:i,commentString:l,lineWidth:a}=r.options;if(!i||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return td(n,r);const c=r.indent||(r.forceBlockIndent||Z0(n)?" ":""),f=i==="literal"?!0:i==="folded"||t===Rt.BLOCK_FOLDED?!1:t===Rt.BLOCK_LITERAL?!0:!mMe(n,a,c.length);if(!n)return f?`|
641
+ `:`>
642
+ `;let p,h;for(h=n.length;h>0;--h){const E=n[h-1];if(E!==`
643
+ `&&E!==" "&&E!==" ")break}let y=n.substring(h);const v=y.indexOf(`
644
+ `);v===-1?p="-":n===y||v!==y.length-1?(p="+",s&&s()):p="",y&&(n=n.slice(0,-y.length),y[y.length-1]===`
645
+ `&&(y=y.slice(0,-1)),y=y.replace(WS,`$&${c}`));let m=!1,C,w=-1;for(C=0;C<n.length;++C){const E=n[C];if(E===" ")m=!0;else if(E===`
646
+ `)w=C;else break}let b=n.substring(0,w<C?w+1:C);b&&(n=n.substring(b.length),b=b.replace(/\n+/g,`$&${c}`));let P=(f?"|":">")+(m?c?"2":"1":"")+p;if(e&&(P+=" "+l(e.replace(/ ?[\r\n]+/g," ")),o&&o()),f)return n=n.replace(/\n+/g,`$&${c}`),`${P}
647
+ ${c}${b}${n}${y}`;n=n.replace(/\n+/g,`
648
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);const k=Q0(`${b}${n}${y}`,c,HS,X0(r,!0));return`${P}
649
+ ${c}${k}`}function gMe(e,t,n,r){const{type:o,value:s}=e,{actualString:i,implicitKey:l,indent:a,indentStep:c,inFlow:f}=t;if(l&&/[\n[\]{},]/.test(s)||f&&/[[\]{},]/.test(s))return td(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return l||f||!s.includes(`
650
+ `)?td(s,t):Ev(e,t,n,r);if(!l&&!f&&o!==Rt.PLAIN&&s.includes(`
651
+ `))return Ev(e,t,n,r);if(Z0(s)){if(a==="")return t.forceBlockIndent=!0,Ev(e,t,n,r);if(l&&a===c)return td(s,t)}const p=s.replace(/\n+/g,`$&
652
+ ${a}`);if(i){const h=m=>{var C;return m.default&&m.tag!=="tag:yaml.org,2002:str"&&((C=m.test)==null?void 0:C.test(p))},{compat:y,tags:v}=t.doc.schema;if(v.some(h)||y!=null&&y.some(h))return td(s,t)}return l?p:Q0(p,a,ej,X0(t,!1))}function ym(e,t,n,r){const{implicitKey:o,inFlow:s}=t,i=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:l}=e;l!==Rt.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(i.value)&&(l=Rt.QUOTE_DOUBLE);const a=f=>{switch(f){case Rt.BLOCK_FOLDED:case Rt.BLOCK_LITERAL:return o||s?td(i.value,t):Ev(i,t,n,r);case Rt.QUOTE_DOUBLE:return Vp(i.value,t);case Rt.QUOTE_SINGLE:return US(i.value,t);case Rt.PLAIN:return gMe(i,t,n,r);default:return null}};let c=a(l);if(c===null){const{defaultKeyType:f,defaultStringType:p}=t.options,h=o&&f||p;if(c=a(h),c===null)throw new Error(`Unsupported default string type ${h}`)}return c}function tj(e,t){const n=Object.assign({blockQuote:!0,commentString:hMe,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}function vMe(e,t){var o,s,i,l;if(t.tag){const a=e.filter(c=>c.tag===t.tag);if(a.length>0)return(o=a.find(c=>c.format===t.format))!=null?o:a[0]}let n,r;if(xn(t)){r=t.value;const a=e.filter(c=>{var f;return(f=c.identify)==null?void 0:f.call(c,r)});n=(s=a.find(c=>c.format===t.format))!=null?s:a.find(c=>!c.format)}else r=t,n=e.find(a=>a.nodeClass&&r instanceof a.nodeClass);if(!n){const a=(l=(i=r==null?void 0:r.constructor)==null?void 0:i.name)!=null?l:typeof r;throw new Error(`Tag not resolved for ${a} value`)}return n}function yMe(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const o=[],s=(xn(e)||jn(e))&&e.anchor;s&&Q6(s)&&(n.add(s),o.push(`&${s}`));const i=e.tag?e.tag:t.default?null:t.tag;return i&&o.push(r.directives.tagString(i)),o.join(" ")}function Ud(e,t,n,r){var a,c;if(Ln(e))return e.toString(t,n,r);if(Zc(e)){if(t.doc.directives)return e.toString(t);if((a=t.resolvedAliases)!=null&&a.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o;const s=or(e)?e:t.doc.createNode(e,{onTagObj:f=>o=f});o||(o=vMe(t.doc.schema.tags,s));const i=yMe(s,o,t);i.length>0&&(t.indentAtStart=((c=t.indentAtStart)!=null?c:0)+i.length+1);const l=typeof o.stringify=="function"?o.stringify(s,t,n,r):xn(s)?ym(s,t,n,r):s.toString(t,n,r);return i?xn(s)||l[0]==="{"||l[0]==="["?`${i} ${l}`:`${i}
653
+ ${t.indent}${l}`:l}function bMe({key:e,value:t},n,r,o){var I,R;const{allNullValues:s,doc:i,indent:l,indentStep:a,options:{commentString:c,indentSeq:f,simpleKeys:p}}=n;let h=or(e)&&e.comment||null;if(p){if(h)throw new Error("With simple keys, key nodes cannot have comments");if(jn(e)){const O="With simple keys, collection cannot be used as a key value";throw new Error(O)}}let y=!p&&(!e||h&&t==null&&!n.inFlow||jn(e)||(xn(e)?e.type===Rt.BLOCK_FOLDED||e.type===Rt.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!y&&(p||!s),indent:l+a});let v=!1,m=!1,C=Ud(e,n,()=>v=!0,()=>m=!0);if(!y&&!n.inFlow&&C.length>1024){if(p)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");y=!0}if(n.inFlow){if(s||t==null)return v&&r&&r(),C===""?"?":y?`? ${C}`:C}else if(s&&!p||t==null&&y)return C=`? ${C}`,h&&!v?C+=ya(C,n.indent,c(h)):m&&o&&o(),C;v&&(h=null),y?(h&&(C+=ya(C,n.indent,c(h))),C=`? ${C}
654
+ ${l}:`):(C=`${C}:`,h&&(C+=ya(C,n.indent,c(h))));let w,b,x;or(t)?(w=!!t.spaceBefore,b=t.commentBefore,x=t.comment):(w=!1,b=null,x=null,t&&typeof t=="object"&&(t=i.createNode(t))),n.implicitKey=!1,!y&&!h&&xn(t)&&(n.indentAtStart=C.length+1),m=!1,!f&&a.length>=2&&!n.inFlow&&!y&&yf(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let P=!1;const k=Ud(t,n,()=>P=!0,()=>m=!0);let E=" ";if(h||w||b){if(E=w?`
655
+ `:"",b){const O=c(b);E+=`
656
+ ${bl(O,n.indent)}`}k===""&&!n.inFlow?E===`
657
+ `&&(E=`
658
+
659
+ `):E+=`
660
+ ${n.indent}`}else if(!y&&jn(t)){const O=k[0],$=k.indexOf(`
661
+ `),L=$!==-1,j=(R=(I=n.inFlow)!=null?I:t.flow)!=null?R:t.items.length===0;if(L||!j){let N=!1;if(L&&(O==="&"||O==="!")){let _=k.indexOf(" ");O==="&"&&_!==-1&&_<$&&k[_+1]==="!"&&(_=k.indexOf(" ",_+1)),(_===-1||$<_)&&(N=!0)}N||(E=`
662
+ ${n.indent}`)}}else(k===""||k[0]===`
663
+ `)&&(E="");return C+=E+k,n.inFlow?P&&r&&r():x&&!P?C+=ya(C,n.indent,c(x)):m&&o&&o(),C}function nj(e,t){(e==="debug"||e==="warn")&&(typeof process!="undefined"&&process.emitWarning?process.emitWarning(t):console.warn(t))}const GD="<<";function rj(e,t,{key:n,value:r}){if(e!=null&&e.doc.schema.merge&&wMe(n))if(r=Zc(r)?r.resolve(e.doc):r,yf(r))for(const o of r.items)$C(e,t,o);else if(Array.isArray(r))for(const o of r)$C(e,t,o);else $C(e,t,r);else{const o=As(n,"",e);if(t instanceof Map)t.set(o,As(r,o,e));else if(t instanceof Set)t.add(o);else{const s=CMe(n,o,e),i=As(r,s,e);s in t?Object.defineProperty(t,s,{value:i,writable:!0,enumerable:!0,configurable:!0}):t[s]=i}}return t}const wMe=e=>e===GD||xn(e)&&e.value===GD&&(!e.type||e.type===Rt.PLAIN);function $C(e,t,n){const r=e&&Zc(n)?n.resolve(e.doc):n;if(!vf(r))throw new Error("Merge sources must be maps or map aliases");const o=r.toJSON(null,e,Map);for(const[s,i]of o)t instanceof Map?t.has(s)||t.set(s,i):t instanceof Set?t.add(s):Object.prototype.hasOwnProperty.call(t,s)||Object.defineProperty(t,s,{value:i,writable:!0,enumerable:!0,configurable:!0});return t}function CMe(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(or(e)&&n&&n.doc){const r=tj(n.doc,{});r.anchors=new Set;for(const s of n.anchors.keys())r.anchors.add(s.anchor);r.inFlow=!0,r.inStringifyKey=!0;const o=e.toString(r);if(!n.mapKeyWarned){let s=JSON.stringify(o);s.length>40&&(s=s.substring(0,36)+'..."'),nj(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${s}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return o}return JSON.stringify(t)}function Yk(e,t,n){const r=Dh(e,void 0,n),o=Dh(t,void 0,n);return new qr(r,o)}class qr{constructor(t,n=null){Object.defineProperty(this,Vs,{value:W6}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return or(n)&&(n=n.clone(t)),or(r)&&(r=r.clone(t)),new qr(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return rj(n,r,this)}toString(t,n,r){return t!=null&&t.doc?bMe(this,t,n,r):JSON.stringify(this)}}function oj(e,t,n){var s;return(((s=t.inFlow)!=null?s:e.flow)?SMe:xMe)(e,t,n)}function xMe({comment:e,items:t},n,{blockItemPrefix:r,flowChars:o,itemIndent:s,onChompKeep:i,onComment:l}){const{indent:a,options:{commentString:c}}=n,f=Object.assign({},n,{indent:s,type:null});let p=!1;const h=[];for(let v=0;v<t.length;++v){const m=t[v];let C=null;if(or(m))!p&&m.spaceBefore&&h.push(""),jy(n,h,m.commentBefore,p),m.comment&&(C=m.comment);else if(Ln(m)){const b=or(m.key)?m.key:null;b&&(!p&&b.spaceBefore&&h.push(""),jy(n,h,b.commentBefore,p))}p=!1;let w=Ud(m,f,()=>C=null,()=>p=!0);C&&(w+=ya(w,s,c(C))),p&&C&&(p=!1),h.push(r+w)}let y;if(h.length===0)y=o.start+o.end;else{y=h[0];for(let v=1;v<h.length;++v){const m=h[v];y+=m?`
664
+ ${a}${m}`:`
665
+ `}}return e?(y+=`
666
+ `+bl(c(e),a),l&&l()):p&&i&&i(),y}function SMe({comment:e,items:t},n,{flowChars:r,itemIndent:o,onComment:s}){const{indent:i,indentStep:l,flowCollectionPadding:a,options:{commentString:c}}=n;o+=l;const f=Object.assign({},n,{indent:o,inFlow:!0,type:null});let p=!1,h=0;const y=[];for(let w=0;w<t.length;++w){const b=t[w];let x=null;if(or(b))b.spaceBefore&&y.push(""),jy(n,y,b.commentBefore,!1),b.comment&&(x=b.comment);else if(Ln(b)){const k=or(b.key)?b.key:null;k&&(k.spaceBefore&&y.push(""),jy(n,y,k.commentBefore,!1),k.comment&&(p=!0));const E=or(b.value)?b.value:null;E?(E.comment&&(x=E.comment),E.commentBefore&&(p=!0)):b.value==null&&k&&k.comment&&(x=k.comment)}x&&(p=!0);let P=Ud(b,f,()=>x=null);w<t.length-1&&(P+=","),x&&(P+=ya(P,o,c(x))),!p&&(y.length>h||P.includes(`
667
+ `))&&(p=!0),y.push(P),h=y.length}let v;const{start:m,end:C}=r;if(y.length===0)v=m+C;else if(p||(p=y.reduce((b,x)=>b+x.length+2,2)>Y0.maxFlowStringSingleLineLength),p){v=m;for(const w of y)v+=w?`
668
+ ${l}${i}${w}`:`
669
+ `;v+=`
670
+ ${i}${C}`}else v=`${m}${a}${y.join(" ")}${a}${C}`;return e&&(v+=ya(v,i,c(e)),s&&s()),v}function jy({indent:e,options:{commentString:t}},n,r,o){if(r&&o&&(r=r.replace(/^\n+/,"")),r){const s=bl(t(r),e);n.push(s.trimStart())}}function yc(e,t){const n=xn(t)?t.value:t;for(const r of e)if(Ln(r)&&(r.key===t||r.key===n||xn(r.key)&&r.key.value===n))return r}class qo extends Y0{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Ta,t),this.items=[]}static from(t,n,r){const{keepUndefined:o,replacer:s}=r,i=new this(t),l=(a,c)=>{if(typeof s=="function")c=s.call(n,a,c);else if(Array.isArray(s)&&!s.includes(a))return;(c!==void 0||o)&&i.items.push(Yk(a,c,r))};if(n instanceof Map)for(const[a,c]of n)l(a,c);else if(n&&typeof n=="object")for(const a of Object.keys(n))l(a,n[a]);return typeof t.sortMapEntries=="function"&&i.items.sort(t.sortMapEntries),i}add(t,n){var i;let r;Ln(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new qr(t,t==null?void 0:t.value):r=new qr(t.key,t.value);const o=yc(this.items,r.key),s=(i=this.schema)==null?void 0:i.sortMapEntries;if(o){if(!n)throw new Error(`Key ${r.key} already set`);xn(o.value)&&J6(r.value)?o.value.value=r.value:o.value=r.value}else if(s){const l=this.items.findIndex(a=>s(r,a)<0);l===-1?this.items.push(r):this.items.splice(l,0,r)}else this.items.push(r)}delete(t){const n=yc(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){var s;const r=yc(this.items,t),o=r==null?void 0:r.value;return(s=!n&&xn(o)?o.value:o)!=null?s:void 0}has(t){return!!yc(this.items,t)}set(t,n){this.add(new qr(t,n),!0)}toJSON(t,n,r){const o=r?new r:n!=null&&n.mapAsMap?new Map:{};n!=null&&n.onCreate&&n.onCreate(o);for(const s of this.items)rj(n,o,s);return o}toString(t,n,r){if(!t)return JSON.stringify(this);for(const o of this.items)if(!Ln(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),oj(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const bf={collection:"map",default:!0,nodeClass:qo,tag:"tag:yaml.org,2002:map",resolve(e,t){return vf(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>qo.from(e,t,n)};class La extends Y0{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(mf,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=Wg(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=Wg(t);if(typeof r!="number")return;const o=this.items[r];return!n&&xn(o)?o.value:o}has(t){const n=Wg(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=Wg(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[r];xn(o)&&J6(n)?o.value=n:this.items[r]=n}toJSON(t,n){const r=[];n!=null&&n.onCreate&&n.onCreate(r);let o=0;for(const s of this.items)r.push(As(s,String(o++),n));return r}toString(t,n,r){return t?oj(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){const{replacer:o}=r,s=new this(t);if(n&&Symbol.iterator in Object(n)){let i=0;for(let l of n){if(typeof o=="function"){const a=n instanceof Set?l:String(i++);l=o.call(n,a,l)}s.items.push(Dh(l,void 0,r))}}return s}}function Wg(e){let t=xn(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const wf={collection:"seq",default:!0,nodeClass:La,tag:"tag:yaml.org,2002:seq",resolve(e,t){return yf(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>La.from(e,t,n)},J0={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),ym(e,t,n,r)}},eb={identify:e=>e==null,createNode:()=>new Rt(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Rt(null),stringify:({source:e},t)=>typeof e=="string"&&eb.test.test(e)?e:t.options.nullStr},Qk={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Rt(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&Qk.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?n.options.trueStr:n.options.falseStr}};function wi({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r=="bigint")return String(r);const o=typeof r=="number"?r:Number(r);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let s=JSON.stringify(r);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let i=s.indexOf(".");i<0&&(i=s.length,s+=".");let l=t-(s.length-i-1);for(;l-- >0;)s+="0"}return s}const sj={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:wi},ij={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():wi(e)}},lj={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new Rt(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:wi},tb=e=>typeof e=="bigint"||Number.isInteger(e),Xk=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function aj(e,t,n){const{value:r}=e;return tb(r)&&r>=0?n+r.toString(t):wi(e)}const cj={identify:e=>tb(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>Xk(e,2,8,n),stringify:e=>aj(e,8,"0o")},uj={identify:tb,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Xk(e,0,10,n),stringify:wi},dj={identify:e=>tb(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Xk(e,2,16,n),stringify:e=>aj(e,16,"0x")},PMe=[bf,wf,J0,eb,Qk,cj,uj,dj,sj,ij,lj];function KD(e){return typeof e=="bigint"||Number.isInteger(e)}const Gg=({value:e})=>JSON.stringify(e),EMe=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Gg},{identify:e=>e==null,createNode:()=>new Rt(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Gg},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:Gg},{identify:KD,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>KD(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Gg}],kMe={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},IMe=[bf,wf].concat(EMe,kMe),Zk={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer=="function")return Buffer.from(e,"base64");if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let o=0;o<n.length;++o)r[o]=n.charCodeAt(o);return r}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,o,s){const i=n;let l;if(typeof Buffer=="function")l=i instanceof Buffer?i.toString("base64"):Buffer.from(i.buffer).toString("base64");else if(typeof btoa=="function"){let a="";for(let c=0;c<i.length;++c)a+=String.fromCharCode(i[c]);l=btoa(a)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=Rt.BLOCK_LITERAL),t!==Rt.QUOTE_DOUBLE){const a=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),c=Math.ceil(l.length/a),f=new Array(c);for(let p=0,h=0;p<c;++p,h+=a)f[p]=l.substr(h,a);l=f.join(t===Rt.BLOCK_LITERAL?`
671
+ `:" ")}return ym({comment:e,type:t,value:l},r,o,s)}};function fj(e,t){var n;if(yf(e))for(let r=0;r<e.items.length;++r){let o=e.items[r];if(!Ln(o)){if(vf(o)){o.items.length>1&&t("Each pair must have its own sequence indicator");const s=o.items[0]||new qr(new Rt(null));if(o.commentBefore&&(s.key.commentBefore=s.key.commentBefore?`${o.commentBefore}
672
+ ${s.key.commentBefore}`:o.commentBefore),o.comment){const i=(n=s.value)!=null?n:s.key;i.comment=i.comment?`${o.comment}
673
+ ${i.comment}`:o.comment}o=s}e.items[r]=Ln(o)?o:new qr(o)}}else t("Expected a sequence for this tag");return e}function pj(e,t,n){const{replacer:r}=n,o=new La(e);o.tag="tag:yaml.org,2002:pairs";let s=0;if(t&&Symbol.iterator in Object(t))for(let i of t){typeof r=="function"&&(i=r.call(t,String(s++),i));let l,a;if(Array.isArray(i))if(i.length===2)l=i[0],a=i[1];else throw new TypeError(`Expected [key, value] tuple: ${i}`);else if(i&&i instanceof Object){const c=Object.keys(i);if(c.length===1)l=c[0],a=i[l];else throw new TypeError(`Expected { key: value } tuple: ${i}`)}else l=i;o.items.push(Yk(l,a,n))}return o}const Jk={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:fj,createNode:pj};class gd extends La{constructor(){super(),this.add=qo.prototype.add.bind(this),this.delete=qo.prototype.delete.bind(this),this.get=qo.prototype.get.bind(this),this.has=qo.prototype.has.bind(this),this.set=qo.prototype.set.bind(this),this.tag=gd.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n!=null&&n.onCreate&&n.onCreate(r);for(const o of this.items){let s,i;if(Ln(o)?(s=As(o.key,"",n),i=As(o.value,s,n)):s=As(o,"",n),r.has(s))throw new Error("Ordered maps must not include duplicate keys");r.set(s,i)}return r}static from(t,n,r){const o=pj(t,n,r),s=new this;return s.items=o.items,s}}gd.tag="tag:yaml.org,2002:omap";const eI={collection:"seq",identify:e=>e instanceof Map,nodeClass:gd,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=fj(e,t),r=[];for(const{key:o}of n.items)xn(o)&&(r.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):r.push(o.value));return Object.assign(new gd,n)},createNode:(e,t,n)=>gd.from(e,t,n)};function hj({value:e,source:t},n){return t&&(e?mj:gj).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const mj={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Rt(!0),stringify:hj},gj={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new Rt(!1),stringify:hj},MMe={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:wi},_Me={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():wi(e)}},TMe={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Rt(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const r=e.substring(n+1).replace(/_/g,"");r[r.length-1]==="0"&&(t.minFractionDigits=r.length)}return t},stringify:wi},bm=e=>typeof e=="bigint"||Number.isInteger(e);function nb(e,t,n,{intAsBigInt:r}){const o=e[0];if((o==="-"||o==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const i=BigInt(e);return o==="-"?BigInt(-1)*i:i}const s=parseInt(e,n);return o==="-"?-1*s:s}function tI(e,t,n){const{value:r}=e;if(bm(r)){const o=r.toString(t);return r<0?"-"+n+o.substr(1):n+o}return wi(e)}const $Me={identify:bm,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>nb(e,2,2,n),stringify:e=>tI(e,2,"0b")},RMe={identify:bm,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>nb(e,1,8,n),stringify:e=>tI(e,8,"0")},OMe={identify:bm,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>nb(e,0,10,n),stringify:wi},DMe={identify:bm,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>nb(e,2,16,n),stringify:e=>tI(e,16,"0x")};class vd extends qo{constructor(t){super(t),this.tag=vd.tag}add(t){let n;Ln(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new qr(t.key,null):n=new qr(t,null),yc(this.items,n.key)||this.items.push(n)}get(t,n){const r=yc(this.items,t);return!n&&Ln(r)?xn(r.key)?r.key.value:r.key:r}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const r=yc(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new qr(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,r){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(t,n,r){const{replacer:o}=r,s=new this(t);if(n&&Symbol.iterator in Object(n))for(let i of n)typeof o=="function"&&(i=o.call(n,i,i)),s.items.push(Yk(i,null,r));return s}}vd.tag="tag:yaml.org,2002:set";const nI={collection:"map",identify:e=>e instanceof Set,nodeClass:vd,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>vd.from(e,t,n),resolve(e,t){if(vf(e)){if(e.hasAllNullValues(!0))return Object.assign(new vd,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function rI(e,t){const n=e[0],r=n==="-"||n==="+"?e.substring(1):e,o=i=>t?BigInt(i):Number(i),s=r.replace(/_/g,"").split(":").reduce((i,l)=>i*o(60)+o(l),o(0));return n==="-"?o(-1)*s:s}function vj(e){let{value:t}=e,n=i=>i;if(typeof t=="bigint")n=i=>BigInt(i);else if(isNaN(t)||!isFinite(t))return wi(e);let r="";t<0&&(r="-",t*=n(-1));const o=n(60),s=[t%o];return t<60?s.unshift(0):(t=(t-s[0])/o,s.unshift(t%o),t>=60&&(t=(t-s[0])/o,s.unshift(t))),r+s.map(i=>String(i).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const yj={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>rI(e,n),stringify:vj},bj={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>rI(e,!1),stringify:vj},rb={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(rb.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,o,s,i,l]=t.map(Number),a=t[7]?Number((t[7]+"00").substr(1,3)):0;let c=Date.UTC(n,r-1,o,s||0,i||0,l||0,a);const f=t[8];if(f&&f!=="Z"){let p=rI(f,!1);Math.abs(p)<30&&(p*=60),c-=6e4*p}return new Date(c)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},qD=[bf,wf,J0,eb,mj,gj,$Me,RMe,OMe,DMe,MMe,_Me,TMe,Zk,eI,Jk,nI,yj,bj,rb],YD=new Map([["core",PMe],["failsafe",[bf,wf,J0]],["json",IMe],["yaml11",qD],["yaml-1.1",qD]]),QD={binary:Zk,bool:Qk,float:lj,floatExp:ij,floatNaN:sj,floatTime:bj,int:uj,intHex:dj,intOct:cj,intTime:yj,map:bf,null:eb,omap:eI,pairs:Jk,seq:wf,set:nI,timestamp:rb},AMe={"tag:yaml.org,2002:binary":Zk,"tag:yaml.org,2002:omap":eI,"tag:yaml.org,2002:pairs":Jk,"tag:yaml.org,2002:set":nI,"tag:yaml.org,2002:timestamp":rb};function RC(e,t){let n=YD.get(t);if(!n)if(Array.isArray(e))n=[];else{const r=Array.from(YD.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${r} or define customTags array`)}if(Array.isArray(e))for(const r of e)n=n.concat(r);else typeof e=="function"&&(n=e(n.slice()));return n.map(r=>{if(typeof r!="string")return r;const o=QD[r];if(o)return o;const s=Object.keys(QD).map(i=>JSON.stringify(i)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${s}`)})}const LMe=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class ob{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:o,schema:s,sortMapEntries:i,toStringDefaults:l}){this.compat=Array.isArray(t)?RC(t,"compat"):t?RC(null,t):null,this.merge=!!r,this.name=typeof s=="string"&&s||"core",this.knownTags=o?AMe:{},this.tags=RC(n,this.name),this.toStringOptions=l!=null?l:null,Object.defineProperty(this,Ta,{value:bf}),Object.defineProperty(this,Dl,{value:J0}),Object.defineProperty(this,mf,{value:wf}),this.sortMapEntries=typeof i=="function"?i:i===!0?LMe:null}clone(){const t=Object.create(ob.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function FMe(e,t){var a;const n=[];let r=t.directives===!0;if(t.directives!==!1&&e.directives){const c=e.directives.toString(e);c?(n.push(c),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const o=tj(e,t),{commentString:s}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const c=s(e.commentBefore);n.unshift(bl(c,""))}let i=!1,l=null;if(e.contents){if(or(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const p=s(e.contents.commentBefore);n.push(bl(p,""))}o.forceBlockIndent=!!e.comment,l=e.contents.comment}const c=l?void 0:()=>i=!0;let f=Ud(e.contents,o,()=>l=null,c);l&&(f+=ya(f,"",s(l))),(f[0]==="|"||f[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${f}`:n.push(f)}else n.push(Ud(e.contents,o));if((a=e.directives)!=null&&a.docEnd)if(e.comment){const c=s(e.comment);c.includes(`
674
+ `)?(n.push("..."),n.push(bl(c,""))):n.push(`... ${c}`)}else n.push("...");else{let c=e.comment;c&&i&&(c=c.replace(/^\n+/,"")),c&&((!i||l)&&n[n.length-1]!==""&&n.push(""),n.push(bl(s(c),"")))}return n.join(`
675
+ `)+`
676
+ `}class Cf{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Vs,{value:VS});let o=null;typeof n=="function"||Array.isArray(n)?o=n:r===void 0&&n&&(r=n,n=void 0);const s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},r);this.options=s;let{version:i}=s;r!=null&&r._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(i=this.directives.yaml.version)):this.directives=new so({version:i}),this.setSchema(i,r),this.contents=t===void 0?null:this.createNode(t,o,r)}clone(){const t=Object.create(Cf.prototype,{[Vs]:{value:VS}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=or(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){Iu(this.contents)&&this.contents.add(t)}addIn(t,n){Iu(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=X6(this);t.anchor=!n||r.has(n)?Z6(n||"a",r):n}return new q0(t.anchor)}createNode(t,n,r){let o;if(typeof n=="function")t=n.call({"":t},"",t),o=n;else if(Array.isArray(n)){const C=b=>typeof b=="number"||b instanceof String||b instanceof Number,w=n.filter(C).map(String);w.length>0&&(n=n.concat(w)),o=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:s,anchorPrefix:i,flow:l,keepUndefined:a,onTagObj:c,tag:f}=r!=null?r:{},{onAnchor:p,setAnchors:h,sourceObjects:y}=dMe(this,i||"a"),v={aliasDuplicateObjects:s!=null?s:!0,keepUndefined:a!=null?a:!1,onAnchor:p,onTagObj:c,replacer:o,schema:this.schema,sourceObjects:y},m=Dh(t,f,v);return l&&jn(m)&&(m.flow=!0),h(),m}createPair(t,n,r={}){const o=this.createNode(t,null,r),s=this.createNode(n,null,r);return new qr(o,s)}delete(t){return Iu(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Cp(t)?this.contents==null?!1:(this.contents=null,!0):Iu(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return jn(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return Cp(t)?!n&&xn(this.contents)?this.contents.value:this.contents:jn(this.contents)?this.contents.getIn(t,n):void 0}has(t){return jn(this.contents)?this.contents.has(t):!1}hasIn(t){return Cp(t)?this.contents!==void 0:jn(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=By(this.schema,[t],n):Iu(this.contents)&&this.contents.set(t,n)}setIn(t,n){Cp(t)?this.contents=n:this.contents==null?this.contents=By(this.schema,Array.from(t),n):Iu(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let r;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new so({version:"1.1"}),r={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new so({version:t}),r={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const o=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(r)this.schema=new ob(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:r,maxAliasCount:o,onAnchor:s,reviver:i}={}){const l={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},a=As(this.contents,n!=null?n:"",l);if(typeof s=="function")for(const{count:c,res:f}of l.anchors.values())s(f,c);return typeof i=="function"?ed(i,{"":a},"",a):a}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return FMe(this,t)}}function Iu(e){if(jn(e))return!0;throw new Error("Expected a YAML collection as document contents")}class oI extends Error{constructor(t,n,r,o){super(),this.name=t,this.code=r,this.message=o,this.pos=n}}class bc extends oI{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class wj extends oI{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const zy=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(l=>t.linePos(l));const{line:r,col:o}=n.linePos[0];n.message+=` at line ${r}, column ${o}`;let s=o-1,i=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(s>=60&&i.length>80){const l=Math.min(s-39,i.length-79);i="…"+i.substring(l),s-=l-1}if(i.length>80&&(i=i.substring(0,79)+"…"),r>1&&/^ *$/.test(i.substring(0,s))){let l=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);l.length>80&&(l=l.substring(0,79)+`…
677
+ `),i=l+i}if(/[^ ]/.test(i)){let l=1;const a=n.linePos[1];a&&a.line===r&&a.col>o&&(l=Math.max(1,Math.min(a.col-o,80-s)));const c=" ".repeat(s)+"^".repeat(l);n.message+=`:
678
+
679
+ ${i}
680
+ ${c}
681
+ `}};function Wd(e,{flow:t,indicator:n,next:r,offset:o,onError:s,startOnNewline:i}){let l=!1,a=i,c=i,f="",p="",h=!1,y=!1,v=!1,m=null,C=null,w=null,b=null,x=null;for(const E of e)switch(v&&(E.type!=="space"&&E.type!=="newline"&&E.type!=="comma"&&s(E.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),v=!1),E.type){case"space":!t&&a&&n!=="doc-start"&&E.source[0]===" "&&s(E,"TAB_AS_INDENT","Tabs are not allowed as indentation"),c=!0;break;case"comment":{c||s(E,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const I=E.source.substring(1)||" ";f?f+=p+I:f=I,p="",a=!1;break}case"newline":a?f?f+=E.source:l=!0:p+=E.source,a=!0,h=!0,(m||C)&&(y=!0),c=!0;break;case"anchor":m&&s(E,"MULTIPLE_ANCHORS","A node can have at most one anchor"),E.source.endsWith(":")&&s(E.offset+E.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=E,x===null&&(x=E.offset),a=!1,c=!1,v=!0;break;case"tag":{C&&s(E,"MULTIPLE_TAGS","A node can have at most one tag"),C=E,x===null&&(x=E.offset),a=!1,c=!1,v=!0;break}case n:(m||C)&&s(E,"BAD_PROP_ORDER",`Anchors and tags must be after the ${E.source} indicator`),b&&s(E,"UNEXPECTED_TOKEN",`Unexpected ${E.source} in ${t!=null?t:"collection"}`),b=E,a=!1,c=!1;break;case"comma":if(t){w&&s(E,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),w=E,a=!1,c=!1;break}default:s(E,"UNEXPECTED_TOKEN",`Unexpected ${E.type} token`),a=!1,c=!1}const P=e[e.length-1],k=P?P.offset+P.source.length:o;return v&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&s(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:w,found:b,spaceBefore:l,comment:f,hasNewline:h,hasNewlineAfterProp:y,anchor:m,tag:C,end:k,start:x!=null?x:k}}function Ah(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
682
+ `))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(Ah(t.key)||Ah(t.value))return!0}return!1;default:return!0}}function GS(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&Ah(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Cj(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const o=typeof r=="function"?r:(s,i)=>s===i||xn(s)&&xn(i)&&s.value===i.value&&!(s.value==="<<"&&e.schema.merge);return t.some(s=>o(s.key,n))}const XD="All mapping items must start at the same column";function NMe({composeNode:e,composeEmptyNode:t},n,r,o,s){var f,p;const i=(f=s==null?void 0:s.nodeClass)!=null?f:qo,l=new i(n.schema);n.atRoot&&(n.atRoot=!1);let a=r.offset,c=null;for(const h of r.items){const{start:y,key:v,sep:m,value:C}=h,w=Wd(y,{indicator:"explicit-key-ind",next:v!=null?v:m==null?void 0:m[0],offset:a,onError:o,startOnNewline:!0}),b=!w.found;if(b){if(v&&(v.type==="block-seq"?o(a,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in v&&v.indent!==r.indent&&o(a,"BAD_INDENT",XD)),!w.anchor&&!w.tag&&!m){c=w.end,w.comment&&(l.comment?l.comment+=`
683
+ `+w.comment:l.comment=w.comment);continue}(w.hasNewlineAfterProp||Ah(v))&&o(v!=null?v:y[y.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((p=w.found)==null?void 0:p.indent)!==r.indent&&o(a,"BAD_INDENT",XD);const x=w.end,P=v?e(n,v,w,o):t(n,x,y,null,w,o);n.schema.compat&&GS(r.indent,v,o),Cj(n,l.items,P)&&o(x,"DUPLICATE_KEY","Map keys must be unique");const k=Wd(m!=null?m:[],{indicator:"map-value-ind",next:C,offset:P.range[2],onError:o,startOnNewline:!v||v.type==="block-scalar"});if(a=k.end,k.found){b&&((C==null?void 0:C.type)==="block-map"&&!k.hasNewline&&o(a,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&w.start<k.found.offset-1024&&o(P.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const E=C?e(n,C,k,o):t(n,a,m,null,k,o);n.schema.compat&&GS(r.indent,C,o),a=E.range[2];const I=new qr(P,E);n.options.keepSourceTokens&&(I.srcToken=h),l.items.push(I)}else{b&&o(P.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),k.comment&&(P.comment?P.comment+=`
684
+ `+k.comment:P.comment=k.comment);const E=new qr(P);n.options.keepSourceTokens&&(E.srcToken=h),l.items.push(E)}}return c&&c<a&&o(c,"IMPOSSIBLE","Map comment with trailing content"),l.range=[r.offset,a,c!=null?c:a],l}function BMe({composeNode:e,composeEmptyNode:t},n,r,o,s){var f;const i=(f=s==null?void 0:s.nodeClass)!=null?f:La,l=new i(n.schema);n.atRoot&&(n.atRoot=!1);let a=r.offset,c=null;for(const{start:p,value:h}of r.items){const y=Wd(p,{indicator:"seq-item-ind",next:h,offset:a,onError:o,startOnNewline:!0});if(!y.found)if(y.anchor||y.tag||h)h&&h.type==="block-seq"?o(y.end,"BAD_INDENT","All sequence items must start at the same column"):o(a,"MISSING_CHAR","Sequence item without - indicator");else{c=y.end,y.comment&&(l.comment=y.comment);continue}const v=h?e(n,h,y,o):t(n,y.end,p,null,y,o);n.schema.compat&&GS(r.indent,h,o),a=v.range[2],l.items.push(v)}return l.range=[r.offset,a,c!=null?c:a],l}function wm(e,t,n,r){let o="";if(e){let s=!1,i="";for(const l of e){const{source:a,type:c}=l;switch(c){case"space":s=!0;break;case"comment":{n&&!s&&r(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const f=a.substring(1)||" ";o?o+=i+f:o=f,i="";break}case"newline":o&&(i+=a),s=!0;break;default:r(l,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=a.length}}return{comment:o,offset:t}}const OC="Block collections are not allowed within flow collections",DC=e=>e&&(e.type==="block-map"||e.type==="block-seq");function jMe({composeNode:e,composeEmptyNode:t},n,r,o,s){var C,w;const i=r.start.source==="{",l=i?"flow map":"flow sequence",a=(C=s==null?void 0:s.nodeClass)!=null?C:i?qo:La,c=new a(n.schema);c.flow=!0;const f=n.atRoot;f&&(n.atRoot=!1);let p=r.offset+r.start.source.length;for(let b=0;b<r.items.length;++b){const x=r.items[b],{start:P,key:k,sep:E,value:I}=x,R=Wd(P,{flow:l,indicator:"explicit-key-ind",next:k!=null?k:E==null?void 0:E[0],offset:p,onError:o,startOnNewline:!1});if(!R.found){if(!R.anchor&&!R.tag&&!E&&!I){b===0&&R.comma?o(R.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):b<r.items.length-1&&o(R.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),R.comment&&(c.comment?c.comment+=`
685
+ `+R.comment:c.comment=R.comment),p=R.end;continue}!i&&n.options.strict&&Ah(k)&&o(k,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(b===0)R.comma&&o(R.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(R.comma||o(R.start,"MISSING_CHAR",`Missing , between ${l} items`),R.comment){let O="";e:for(const $ of P)switch($.type){case"comma":case"space":break;case"comment":O=$.source.substring(1);break e;default:break e}if(O){let $=c.items[c.items.length-1];Ln($)&&($=(w=$.value)!=null?w:$.key),$.comment?$.comment+=`
686
+ `+O:$.comment=O,R.comment=R.comment.substring(O.length+1)}}if(!i&&!E&&!R.found){const O=I?e(n,I,R,o):t(n,R.end,E,null,R,o);c.items.push(O),p=O.range[2],DC(I)&&o(O.range,"BLOCK_IN_FLOW",OC)}else{const O=R.end,$=k?e(n,k,R,o):t(n,O,P,null,R,o);DC(k)&&o($.range,"BLOCK_IN_FLOW",OC);const L=Wd(E!=null?E:[],{flow:l,indicator:"map-value-ind",next:I,offset:$.range[2],onError:o,startOnNewline:!1});if(L.found){if(!i&&!R.found&&n.options.strict){if(E)for(const _ of E){if(_===L.found)break;if(_.type==="newline"){o(_,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}R.start<L.found.offset-1024&&o(L.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else I&&("source"in I&&I.source&&I.source[0]===":"?o(I,"MISSING_CHAR",`Missing space after : in ${l}`):o(L.start,"MISSING_CHAR",`Missing , or : between ${l} items`));const j=I?e(n,I,L,o):L.found?t(n,L.end,E,null,L,o):null;j?DC(I)&&o(j.range,"BLOCK_IN_FLOW",OC):L.comment&&($.comment?$.comment+=`
687
+ `+L.comment:$.comment=L.comment);const N=new qr($,j);if(n.options.keepSourceTokens&&(N.srcToken=x),i){const _=c;Cj(n,_.items,$)&&o(O,"DUPLICATE_KEY","Map keys must be unique"),_.items.push(N)}else{const _=new qo(n.schema);_.flow=!0,_.items.push(N),c.items.push(_)}p=j?j.range[2]:L.end}}const h=i?"}":"]",[y,...v]=r.end;let m=p;if(y&&y.source===h)m=y.offset+y.source.length;else{const b=l[0].toUpperCase()+l.substring(1),x=f?`${b} must end with a ${h}`:`${b} in block collection must be sufficiently indented and end with a ${h}`;o(p,f?"MISSING_CHAR":"BAD_INDENT",x),y&&y.source.length!==1&&v.unshift(y)}if(v.length>0){const b=wm(v,m,n.options.strict,o);b.comment&&(c.comment?c.comment+=`
688
+ `+b.comment:c.comment=b.comment),c.range=[r.offset,m,b.offset]}else c.range=[r.offset,m,m];return c}function AC(e,t,n,r,o,s){const i=n.type==="block-map"?NMe(e,t,n,r,s):n.type==="block-seq"?BMe(e,t,n,r,s):jMe(e,t,n,r,s),l=i.constructor;return o==="!"||o===l.tagName?(i.tag=l.tagName,i):(o&&(i.tag=o),i)}function zMe(e,t,n,r,o){var p,h;const s=r?t.directives.tagName(r.source,y=>o(r,"TAG_RESOLVE_FAILED",y)):null,i=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!r||!s||s==="!"||s===qo.tagName&&i==="map"||s===La.tagName&&i==="seq"||!i)return AC(e,t,n,o,s);let l=t.schema.tags.find(y=>y.tag===s&&y.collection===i);if(!l){const y=t.schema.knownTags[s];if(y&&y.collection===i)t.schema.tags.push(Object.assign({},y,{default:!1})),l=y;else return y!=null&&y.collection?o(r,"BAD_COLLECTION_TYPE",`${y.tag} used for ${i} collection, but expects ${y.collection}`,!0):o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),AC(e,t,n,o,s)}const a=AC(e,t,n,o,s,l),c=(h=(p=l.resolve)==null?void 0:p.call(l,a,y=>o(r,"TAG_RESOLVE_FAILED",y),t.options))!=null?h:a,f=or(c)?c:new Rt(c);return f.range=a.range,f.tag=s,l!=null&&l.format&&(f.format=l.format),f}function xj(e,t,n){const r=e.offset,o=VMe(e,t,n);if(!o)return{value:"",type:null,comment:"",range:[r,r,r]};const s=o.mode===">"?Rt.BLOCK_FOLDED:Rt.BLOCK_LITERAL,i=e.source?HMe(e.source):[];let l=i.length;for(let m=i.length-1;m>=0;--m){const C=i[m][1];if(C===""||C==="\r")l=m;else break}if(l===0){const m=o.chomp==="+"&&i.length>0?`
689
+ `.repeat(Math.max(1,i.length-1)):"";let C=r+o.length;return e.source&&(C+=e.source.length),{value:m,type:s,comment:o.comment,range:[r,C,C]}}let a=e.indent+o.indent,c=e.offset+o.length,f=0;for(let m=0;m<l;++m){const[C,w]=i[m];if(w===""||w==="\r")o.indent===0&&C.length>a&&(a=C.length);else{if(C.length<a){const b="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(c+C.length,"MISSING_CHAR",b)}o.indent===0&&(a=C.length),f=m;break}c+=C.length+w.length+1}for(let m=i.length-1;m>=l;--m)i[m][0].length>a&&(l=m+1);let p="",h="",y=!1;for(let m=0;m<f;++m)p+=i[m][0].slice(a)+`
690
+ `;for(let m=f;m<l;++m){let[C,w]=i[m];c+=C.length+w.length+1;const b=w[w.length-1]==="\r";if(b&&(w=w.slice(0,-1)),w&&C.length<a){const P=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(c-w.length-(b?2:1),"BAD_INDENT",P),C=""}s===Rt.BLOCK_LITERAL?(p+=h+C.slice(a)+w,h=`
691
+ `):C.length>a||w[0]===" "?(h===" "?h=`
692
+ `:!y&&h===`
693
+ `&&(h=`
694
+
695
+ `),p+=h+C.slice(a)+w,h=`
696
+ `,y=!0):w===""?h===`
697
+ `?p+=`
698
+ `:h=`
699
+ `:(p+=h+w,h=" ",y=!1)}switch(o.chomp){case"-":break;case"+":for(let m=l;m<i.length;++m)p+=`
700
+ `+i[m][0].slice(a);p[p.length-1]!==`
701
+ `&&(p+=`
702
+ `);break;default:p+=`
703
+ `}const v=r+o.length+e.source.length;return{value:p,type:s,comment:o.comment,range:[r,v,v]}}function VMe({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],s=o[0];let i=0,l="",a=-1;for(let h=1;h<o.length;++h){const y=o[h];if(!l&&(y==="-"||y==="+"))l=y;else{const v=Number(y);!i&&v?i=v:a===-1&&(a=e+h)}}a!==-1&&r(a,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let c=!1,f="",p=o.length;for(let h=1;h<t.length;++h){const y=t[h];switch(y.type){case"space":c=!0;case"newline":p+=y.source.length;break;case"comment":n&&!c&&r(y,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),p+=y.source.length,f=y.source.substring(1);break;case"error":r(y,"UNEXPECTED_TOKEN",y.message),p+=y.source.length;break;default:{const v=`Unexpected token in block scalar header: ${y.type}`;r(y,"UNEXPECTED_TOKEN",v);const m=y.source;m&&typeof m=="string"&&(p+=m.length)}}}return{mode:s,indent:i,chomp:l,comment:f,length:p}}function HMe(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),s=[r!=null&&r[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let i=1;i<t.length;i+=2)s.push([t[i],t[i+1]]);return s}function Sj(e,t,n){const{offset:r,type:o,source:s,end:i}=e;let l,a;const c=(h,y,v)=>n(r+h,y,v);switch(o){case"scalar":l=Rt.PLAIN,a=UMe(s,c);break;case"single-quoted-scalar":l=Rt.QUOTE_SINGLE,a=WMe(s,c);break;case"double-quoted-scalar":l=Rt.QUOTE_DOUBLE,a=GMe(s,c);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[r,r+s.length,r+s.length]}}const f=r+s.length,p=wm(i,f,t,n);return{value:a,type:l,comment:p.comment,range:[r,f,p.offset]}}function UMe(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),Pj(e)}function WMe(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Pj(e.slice(1,-1)).replace(/''/g,"'")}function Pj(e){var a;let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
704
+ `,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
705
+ `,"sy")}catch(c){t=new RegExp("(.*?)[ \\t]*\\r?\\n","sy"),n=new RegExp("[ \\t]*(.*?)[ \\t]*\\r?\\n","sy")}let r=t.exec(e);if(!r)return e;let o=r[1],s=" ",i=t.lastIndex;for(n.lastIndex=i;r=n.exec(e);)r[1]===""?s===`
706
+ `?o+=s:s=`
707
+ `:(o+=s+r[1],s=" "),i=n.lastIndex;const l=new RegExp("[ \\t]*(.*)","sy");return l.lastIndex=i,r=l.exec(e),o+s+((a=r==null?void 0:r[1])!=null?a:"")}function GMe(e,t){let n="";for(let r=1;r<e.length-1;++r){const o=e[r];if(!(o==="\r"&&e[r+1]===`
708
+ `))if(o===`
709
+ `){const{fold:s,offset:i}=KMe(e,r);n+=s,r=i}else if(o==="\\"){let s=e[++r];const i=qMe[s];if(i)n+=i;else if(s===`
710
+ `)for(s=e[r+1];s===" "||s===" ";)s=e[++r+1];else if(s==="\r"&&e[r+1]===`
711
+ `)for(s=e[++r+1];s===" "||s===" ";)s=e[++r+1];else if(s==="x"||s==="u"||s==="U"){const l={x:2,u:4,U:8}[s];n+=YMe(e,r+1,l,t),r+=l}else{const l=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),n+=l}}else if(o===" "||o===" "){const s=r;let i=e[r+1];for(;i===" "||i===" ";)i=e[++r+1];i!==`
712
+ `&&!(i==="\r"&&e[r+2]===`
713
+ `)&&(n+=r>s?e.slice(s,r+1):o)}else n+=o}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function KMe(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
714
+ `||r==="\r")&&!(r==="\r"&&e[t+2]!==`
715
+ `);)r===`
716
+ `&&(n+=`
717
+ `),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const qMe={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
718
+ `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function YMe(e,t,n,r){const o=e.substr(t,n),i=o.length===n&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(i)){const l=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),l}return String.fromCodePoint(i)}function Ej(e,t,n,r){const{value:o,type:s,comment:i,range:l}=t.type==="block-scalar"?xj(t,e.options.strict,r):Sj(t,e.options.strict,r),a=n?e.directives.tagName(n.source,p=>r(n,"TAG_RESOLVE_FAILED",p)):null,c=n&&a?QMe(e.schema,o,a,n,r):t.type==="scalar"?XMe(e,o,t,r):e.schema[Dl];let f;try{const p=c.resolve(o,h=>r(n!=null?n:t,"TAG_RESOLVE_FAILED",h),e.options);f=xn(p)?p:new Rt(p)}catch(p){const h=p instanceof Error?p.message:String(p);r(n!=null?n:t,"TAG_RESOLVE_FAILED",h),f=new Rt(o)}return f.range=l,f.source=o,s&&(f.type=s),a&&(f.tag=a),c.format&&(f.format=c.format),i&&(f.comment=i),f}function QMe(e,t,n,r,o){var l;if(n==="!")return e[Dl];const s=[];for(const a of e.tags)if(!a.collection&&a.tag===n)if(a.default&&a.test)s.push(a);else return a;for(const a of s)if((l=a.test)!=null&&l.test(t))return a;const i=e.knownTags[n];return i&&!i.collection?(e.tags.push(Object.assign({},i,{default:!1,test:void 0})),i):(o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[Dl])}function XMe({directives:e,schema:t},n,r,o){var i;const s=t.tags.find(l=>{var a;return l.default&&((a=l.test)==null?void 0:a.test(n))})||t[Dl];if(t.compat){const l=(i=t.compat.find(a=>{var c;return a.default&&((c=a.test)==null?void 0:c.test(n))}))!=null?i:t[Dl];if(s.tag!==l.tag){const a=e.tagString(s.tag),c=e.tagString(l.tag),f=`Value may be parsed as either ${a} or ${c}`;o(r,"TAG_RESOLVE_FAILED",f,!0)}}return s}function ZMe(e,t,n){if(t){n===null&&(n=t.length);for(let r=n-1;r>=0;--r){let o=t[r];switch(o.type){case"space":case"comment":case"newline":e-=o.source.length;continue}for(o=t[++r];(o==null?void 0:o.type)==="space";)e+=o.source.length,o=t[++r];break}}return e}const JMe={composeNode:kj,composeEmptyNode:sI};function kj(e,t,n,r){const{spaceBefore:o,comment:s,anchor:i,tag:l}=n;let a,c=!0;switch(t.type){case"alias":a=e_e(e,t,r),(i||l)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":a=Ej(e,t,l,r),i&&(a.anchor=i.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":a=zMe(JMe,e,t,l,r),i&&(a.anchor=i.source.substring(1));break;default:{const f=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",f),a=sI(e,t.offset,void 0,null,n,r),c=!1}}return i&&a.anchor===""&&r(i,"BAD_ALIAS","Anchor cannot be an empty string"),o&&(a.spaceBefore=!0),s&&(t.type==="scalar"&&t.source===""?a.comment=s:a.commentBefore=s),e.options.keepSourceTokens&&c&&(a.srcToken=t),a}function sI(e,t,n,r,{spaceBefore:o,comment:s,anchor:i,tag:l,end:a},c){const f={type:"scalar",offset:ZMe(t,n,r),indent:-1,source:""},p=Ej(e,f,l,c);return i&&(p.anchor=i.source.substring(1),p.anchor===""&&c(i,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(p.spaceBefore=!0),s&&(p.comment=s,p.range[2]=a),p}function e_e({options:e},{offset:t,source:n,end:r},o){const s=new q0(n.substring(1));s.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&o(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const i=t+n.length,l=wm(r,i,e.strict,o);return s.range=[t,i,l.offset],l.comment&&(s.comment=l.comment),s}function t_e(e,t,{offset:n,start:r,value:o,end:s},i){const l=Object.assign({_directives:t},e),a=new Cf(void 0,l),c={atRoot:!0,directives:a.directives,options:a.options,schema:a.schema},f=Wd(r,{indicator:"doc-start",next:o!=null?o:s==null?void 0:s[0],offset:n,onError:i,startOnNewline:!0});f.found&&(a.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!f.hasNewline&&i(f.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),a.contents=o?kj(c,o,f,i):sI(c,f.end,r,null,f,i);const p=a.contents.range[2],h=wm(s,p,!1,i);return h.comment&&(a.comment=h.comment),a.range=[n,p,h.offset],a}function sp(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function ZD(e){var o;let t="",n=!1,r=!1;for(let s=0;s<e.length;++s){const i=e[s];switch(i[0]){case"#":t+=(t===""?"":r?`
719
+
720
+ `:`
721
+ `)+(i.substring(1)||" "),n=!0,r=!1;break;case"%":((o=e[s+1])==null?void 0:o[0])!=="#"&&(s+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}class iI{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,o,s)=>{const i=sp(n);s?this.warnings.push(new wj(i,r,o)):this.errors.push(new bc(i,r,o))},this.directives=new so({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:o}=ZD(this.prelude);if(r){const s=t.contents;if(n)t.comment=t.comment?`${t.comment}
722
+ ${r}`:r;else if(o||t.directives.docStart||!s)t.commentBefore=r;else if(jn(s)&&!s.flow&&s.items.length>0){let i=s.items[0];Ln(i)&&(i=i.key);const l=i.commentBefore;i.commentBefore=l?`${r}
723
+ ${l}`:r}else{const i=s.commentBefore;s.commentBefore=i?`${r}
724
+ ${i}`:r}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:ZD(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,r=-1){for(const o of t)yield*Ae(this.next(o));yield*Ae(this.end(n,r))}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,r,o)=>{const s=sp(t);s[0]+=n,this.onError(s,"BAD_DIRECTIVE",r,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=t_e(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,r=new bc(sp(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const r="Unexpected doc-end without preceding document";this.errors.push(new bc(sp(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=wm(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const r=this.doc.comment;this.doc.comment=r?`${r}
725
+ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new bc(sp(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const r=Object.assign({_directives:this.directives},this.options),o=new Cf(void 0,r);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,n,n],this.decorate(o,!1),yield o}}}function n_e(e,t=!0,n){if(e){const r=(o,s,i)=>{const l=typeof o=="number"?o:Array.isArray(o)?o[0]:o.offset;if(n)n(l,s,i);else throw new bc([l,l+1],s,i)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Sj(e,t,r);case"block-scalar":return xj(e,t,r)}}return null}function r_e(e,t){var c;const{implicitKey:n=!1,indent:r,inFlow:o=!1,offset:s=-1,type:i="PLAIN"}=t,l=ym({type:i,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),a=(c=t.end)!=null?c:[{type:"newline",offset:-1,indent:r,source:`
726
+ `}];switch(l[0]){case"|":case">":{const f=l.indexOf(`
727
+ `),p=l.substring(0,f),h=l.substring(f+1)+`
728
+ `,y=[{type:"block-scalar-header",offset:s,indent:r,source:p}];return Ij(y,a)||y.push({type:"newline",offset:-1,indent:r,source:`
729
+ `}),{type:"block-scalar",offset:s,indent:r,props:y,source:h}}case'"':return{type:"double-quoted-scalar",offset:s,indent:r,source:l,end:a};case"'":return{type:"single-quoted-scalar",offset:s,indent:r,source:l,end:a};default:return{type:"scalar",offset:s,indent:r,source:l,end:a}}}function o_e(e,t,n={}){let{afterKey:r=!1,implicitKey:o=!1,inFlow:s=!1,type:i}=n,l="indent"in e?e.indent:null;if(r&&typeof l=="number"&&(l+=2),!i)switch(e.type){case"single-quoted-scalar":i="QUOTE_SINGLE";break;case"double-quoted-scalar":i="QUOTE_DOUBLE";break;case"block-scalar":{const c=e.props[0];if(c.type!=="block-scalar-header")throw new Error("Invalid block scalar header");i=c.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:i="PLAIN"}const a=ym({type:i,value:t},{implicitKey:o||l===null,indent:l!==null&&l>0?" ".repeat(l):"",inFlow:s,options:{blockQuote:!0,lineWidth:-1}});switch(a[0]){case"|":case">":s_e(e,a);break;case'"':LC(e,a,"double-quoted-scalar");break;case"'":LC(e,a,"single-quoted-scalar");break;default:LC(e,a,"scalar")}}function s_e(e,t){const n=t.indexOf(`
730
+ `),r=t.substring(0,n),o=t.substring(n+1)+`
731
+ `;if(e.type==="block-scalar"){const s=e.props[0];if(s.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s.source=r,e.source=o}else{const{offset:s}=e,i="indent"in e?e.indent:-1,l=[{type:"block-scalar-header",offset:s,indent:i,source:r}];Ij(l,"end"in e?e.end:void 0)||l.push({type:"newline",offset:-1,indent:i,source:`
732
+ `});for(const a of Object.keys(e))a!=="type"&&a!=="offset"&&delete e[a];Object.assign(e,{type:"block-scalar",indent:i,props:l,source:o})}}function Ij(e,t){if(t)for(const n of t)switch(n.type){case"space":case"comment":e.push(n);break;case"newline":return e.push(n),!0}return!1}function LC(e,t,n){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=n,e.source=t;break;case"block-scalar":{const r=e.props.slice(1);let o=t.length;e.props[0].type==="block-scalar-header"&&(o-=e.props[0].source.length);for(const s of r)s.offset+=o;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case"block-map":case"block-seq":{const o={type:"newline",offset:e.offset+t.length,indent:e.indent,source:`
733
+ `};delete e.items,Object.assign(e,{type:n,source:t,end:[o]});break}default:{const r="indent"in e?e.indent:-1,o="end"in e&&Array.isArray(e.end)?e.end.filter(s=>s.type==="space"||s.type==="comment"||s.type==="newline"):[];for(const s of Object.keys(e))s!=="type"&&s!=="offset"&&delete e[s];Object.assign(e,{type:n,indent:r,source:t,end:o})}}}const i_e=e=>"type"in e?Vy(e):kv(e);function Vy(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=Vy(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=kv(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=kv(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=kv(e);if(e.end)for(const n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const n of e.end)t+=n.source;return t}}}function kv({start:e,key:t,sep:n,value:r}){let o="";for(const s of e)o+=s.source;if(t&&(o+=Vy(t)),n)for(const s of n)o+=s.source;return r&&(o+=Vy(r)),o}const KS=Symbol("break visit"),l_e=Symbol("skip children"),Mj=Symbol("remove item");function zc(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),_j(Object.freeze([]),e,t)}zc.BREAK=KS;zc.SKIP=l_e;zc.REMOVE=Mj;zc.itemAtPath=(e,t)=>{let n=e;for(const[r,o]of t){const s=n==null?void 0:n[r];if(s&&"items"in s)n=s.items[o];else return}return n};zc.parentCollection=(e,t)=>{const n=zc.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],o=n==null?void 0:n[r];if(o&&"items"in o)return o;throw new Error("Parent collection not found")};function _j(e,t,n){let r=n(t,e);if(typeof r=="symbol")return r;for(const o of["key","value"]){const s=t[o];if(s&&"items"in s){for(let i=0;i<s.items.length;++i){const l=_j(Object.freeze(e.concat([[o,i]])),s.items[i],n);if(typeof l=="number")i=l-1;else{if(l===KS)return KS;l===Mj&&(s.items.splice(i,1),i-=1)}}typeof r=="function"&&o==="key"&&(r=r(t,e))}}return typeof r=="function"?r(t,e):r}const sb="\uFEFF",ib="",lb="",Lh="",a_e=e=>!!e&&"items"in e,c_e=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function u_e(e){switch(e){case sb:return"<BOM>";case ib:return"<DOC>";case lb:return"<FLOW_END>";case Lh:return"<SCALAR>";default:return JSON.stringify(e)}}function Tj(e){switch(e){case sb:return"byte-order-mark";case ib:return"doc-mode";case lb:return"flow-error-end";case Lh:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
734
+ `:case`\r
735
+ `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}const d_e=Object.freeze(Object.defineProperty({__proto__:null,BOM:sb,DOCUMENT:ib,FLOW_END:lb,SCALAR:Lh,createScalarToken:r_e,isCollection:a_e,isScalar:c_e,prettyToken:u_e,resolveAsScalar:n_e,setScalarValue:o_e,stringify:i_e,tokenType:Tj,visit:zc},Symbol.toStringTag,{value:"Module"}));function Ss(e){switch(e){case void 0:case" ":case`
736
+ `:case"\r":case" ":return!0;default:return!1}}const JD="0123456789ABCDEFabcdef".split(""),f_e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),FC=",[]{}".split(""),p_e=` ,[]{}
737
+ \r `.split(""),NC=e=>!e||p_e.includes(e);class $j{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){var o;t&&(this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null),this.atEnd=!n;let r=(o=this.next)!=null?o:"stream";for(;r&&(n||this.hasChars(1));)r=yield*Ae(this.parseNext(r))}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
738
+ `?!0:n==="\r"?this.buffer[t+1]===`
739
+ `:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let r=0;for(;n===" ";)n=this.buffer[++r+t];if(n==="\r"){const o=this.buffer[r+t+1];if(o===`
740
+ `||!o&&!this.atEnd)return t+r+1}return n===`
741
+ `||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&Ss(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
742
+ `,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*Ae(this.parseStream());case"line-start":return yield*Ae(this.parseLineStart());case"block-start":return yield*Ae(this.parseBlockStart());case"doc":return yield*Ae(this.parseDocument());case"flow":return yield*Ae(this.parseFlowCollection());case"quoted-scalar":return yield*Ae(this.parseQuotedScalar());case"block-scalar":return yield*Ae(this.parseBlockScalar());case"plain-scalar":return yield*Ae(this.parsePlainScalar())}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===sb&&(yield*Ae(this.pushCount(1)),t=t.substring(1)),t[0]==="%"){let n=t.length;const r=t.indexOf("#");if(r!==-1){const s=t[r-1];(s===" "||s===" ")&&(n=r-1)}for(;;){const s=t[n-1];if(s===" "||s===" ")n-=1;else break}const o=(yield*Ae(this.pushCount(n)))+(yield*Ae(this.pushSpaces(!0)));return yield*Ae(this.pushCount(t.length-o)),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*Ae(this.pushSpaces(!0));return yield*Ae(this.pushCount(t.length-n)),yield*Ae(this.pushNewline()),"stream"}return yield ib,yield*Ae(this.parseLineStart())}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if(n==="---"&&Ss(this.charAt(3)))return yield*Ae(this.pushCount(3)),this.indentValue=0,this.indentNext=0,"doc";if(n==="..."&&Ss(this.charAt(3)))return yield*Ae(this.pushCount(3)),"stream"}return this.indentValue=yield*Ae(this.pushSpaces(!1)),this.indentNext>this.indentValue&&!Ss(this.charAt(1))&&(this.indentNext=this.indentValue),yield*Ae(this.parseBlockStart())}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&Ss(n)){const r=(yield*Ae(this.pushCount(1)))+(yield*Ae(this.pushSpaces(!0)));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*Ae(this.parseBlockStart())}return"doc"}*parseDocument(){yield*Ae(this.pushSpaces(!0));const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*Ae(this.pushIndicators());switch(t[n]){case"#":yield*Ae(this.pushCount(t.length-n));case void 0:return yield*Ae(this.pushNewline()),yield*Ae(this.parseLineStart());case"{":case"[":return yield*Ae(this.pushCount(1)),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*Ae(this.pushCount(1)),"doc";case"*":return yield*Ae(this.pushUntil(NC)),"doc";case'"':case"'":return yield*Ae(this.parseQuotedScalar());case"|":case">":return n+=yield*Ae(this.parseBlockScalarHeader()),n+=yield*Ae(this.pushSpaces(!0)),yield*Ae(this.pushCount(t.length-n)),yield*Ae(this.pushNewline()),yield*Ae(this.parseBlockScalar());default:return yield*Ae(this.parsePlainScalar())}}*parseFlowCollection(){let t,n,r=-1;do t=yield*Ae(this.pushNewline()),t>0?(n=yield*Ae(this.pushSpaces(!1)),this.indentValue=r=n):n=0,n+=yield*Ae(this.pushSpaces(!0));while(t+n>0);const o=this.getLine();if(o===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&o[0]!=="#"||r===0&&(o.startsWith("---")||o.startsWith("..."))&&Ss(o[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield lb,yield*Ae(this.parseLineStart());let s=0;for(;o[s]===",";)s+=yield*Ae(this.pushCount(1)),s+=yield*Ae(this.pushSpaces(!0)),this.flowKey=!1;switch(s+=yield*Ae(this.pushIndicators()),o[s]){case void 0:return"flow";case"#":return yield*Ae(this.pushCount(o.length-s)),"flow";case"{":case"[":return yield*Ae(this.pushCount(1)),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*Ae(this.pushCount(1)),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*Ae(this.pushUntil(NC)),"flow";case'"':case"'":return this.flowKey=!0,yield*Ae(this.parseQuotedScalar());case":":{const i=this.charAt(1);if(this.flowKey||Ss(i)||i===",")return this.flowKey=!1,yield*Ae(this.pushCount(1)),yield*Ae(this.pushSpaces(!0)),"flow"}default:return this.flowKey=!1,yield*Ae(this.parsePlainScalar())}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let s=0;for(;this.buffer[n-1-s]==="\\";)s+=1;if(s%2===0)break;n=this.buffer.indexOf('"',n+1)}const r=this.buffer.substring(0,n);let o=r.indexOf(`
743
+ `,this.pos);if(o!==-1){for(;o!==-1;){const s=this.continueScalar(o+1);if(s===-1)break;o=r.indexOf(`
744
+ `,s)}o!==-1&&(n=o-(r[o-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*Ae(this.pushToIndex(n+1,!1)),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*Ae(this.pushUntil(n=>Ss(n)||n==="#"))}*parseBlockScalar(){let t=this.pos-1,n=0,r;e:for(let o=this.pos;r=this.buffer[o];++o)switch(r){case" ":n+=1;break;case`
745
+ `:t=o,n=0;break;case"\r":{const s=this.buffer[o+1];if(!s&&!this.atEnd)return this.setNext("block-scalar");if(s===`
746
+ `)break}default:break e}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext+=this.blockScalarIndent;do{const o=this.continueScalar(t+1);if(o===-1)break;t=this.buffer.indexOf(`
747
+ `,o)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}if(!this.blockScalarKeep)do{let o=t-1,s=this.buffer[o];s==="\r"&&(s=this.buffer[--o]);const i=o;for(;s===" "||s===" ";)s=this.buffer[--o];if(s===`
748
+ `&&o>=this.pos&&o+1+n>i)t=o;else break}while(!0);return yield Lh,yield*Ae(this.pushToIndex(t+1,!0)),yield*Ae(this.parseLineStart())}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,r=this.pos-1,o;for(;o=this.buffer[++r];)if(o===":"){const s=this.buffer[r+1];if(Ss(s)||t&&s===",")break;n=r}else if(Ss(o)){let s=this.buffer[r+1];if(o==="\r"&&(s===`
749
+ `?(r+=1,o=`
750
+ `,s=this.buffer[r+1]):n=r),s==="#"||t&&FC.includes(s))break;if(o===`
751
+ `){const i=this.continueScalar(r+1);if(i===-1)break;r=Math.max(r,i-2)}}else{if(t&&FC.includes(o))break;n=r}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield Lh,yield*Ae(this.pushToIndex(n+1,!0)),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const r=this.buffer.slice(this.pos,t);return r?(yield r,this.pos+=r.length,r.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*Ae(this.pushTag()))+(yield*Ae(this.pushSpaces(!0)))+(yield*Ae(this.pushIndicators()));case"&":return(yield*Ae(this.pushUntil(NC)))+(yield*Ae(this.pushSpaces(!0)))+(yield*Ae(this.pushIndicators()));case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(Ss(n)||t&&FC.includes(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*Ae(this.pushCount(1)))+(yield*Ae(this.pushSpaces(!0)))+(yield*Ae(this.pushIndicators()))}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!Ss(n)&&n!==">";)n=this.buffer[++t];return yield*Ae(this.pushToIndex(n===">"?t+1:t,!1))}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(f_e.includes(n))n=this.buffer[++t];else if(n==="%"&&JD.includes(this.buffer[t+1])&&JD.includes(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*Ae(this.pushToIndex(t,!1))}}*pushNewline(){const t=this.buffer[this.pos];return t===`
752
+ `?yield*Ae(this.pushCount(1)):t==="\r"&&this.charAt(1)===`
753
+ `?yield*Ae(this.pushCount(2)):0}*pushSpaces(t){let n=this.pos-1,r;do r=this.buffer[++n];while(r===" "||t&&r===" ");const o=n-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=n),o}*pushUntil(t){let n=this.pos,r=this.buffer[n];for(;!t(r);)r=this.buffer[++n];return yield*Ae(this.pushToIndex(n,!1))}}class Rj{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,r=this.lineStarts.length;for(;n<r;){const s=n+r>>1;this.lineStarts[s]<t?n=s+1:r=s}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const o=this.lineStarts[n-1];return{line:n,col:t-o+1}}}}function ei(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function eA(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function Oj(e){switch(e==null?void 0:e.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Kg(e){var t;switch(e.type){case"document":return e.start;case"block-map":{const n=e.items[e.items.length-1];return(t=n.sep)!=null?t:n.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function Mu(e){var n;if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((n=e[++t])==null?void 0:n.type)==="space";);return e.splice(t,e.length)}function tA(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!ei(t.start,"explicit-key-ind")&&!ei(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,Oj(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}let lI=class{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new $j,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const r of this.lexer.lex(t,n))yield*Ae(this.next(r));n||(yield*Ae(this.end()))}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*Ae(this.step()),this.offset+=t.length;return}const n=Tj(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*Ae(this.step()),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const r=`Not a YAML token: ${t}`;yield*Ae(this.pop({type:"error",offset:this.offset,message:r,source:t})),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*Ae(this.pop())}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(!t||t.type!=="doc-end")){for(;this.stack.length>0;)yield*Ae(this.pop());this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*Ae(this.stream());switch(t.type){case"document":return yield*Ae(this.document(t));case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*Ae(this.scalar(t));case"block-scalar":return yield*Ae(this.blockScalar(t));case"block-map":return yield*Ae(this.blockMap(t));case"block-seq":return yield*Ae(this.blockSequence(t));case"flow-collection":return yield*Ae(this.flowCollection(t));case"doc-end":return yield*Ae(this.documentEnd(t))}yield*Ae(this.pop())}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t!=null?t:this.stack.pop();if(n)if(this.stack.length===0)yield n;else{const r=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in r?r.indent:0:n.type==="flow-collection"&&r.type==="document"&&(n.indent=0),n.type==="flow-collection"&&tA(n),r.type){case"document":r.value=n;break;case"block-scalar":r.props.push(n);break;case"block-map":{const o=r.items[r.items.length-1];if(o.value){r.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=n;else{Object.assign(o,{key:n,sep:[]}),this.onKeyLine=!ei(o.start,"explicit-key-ind");return}break}case"block-seq":{const o=r.items[r.items.length-1];o.value?r.items.push({start:[],value:n}):o.value=n;break}case"flow-collection":{const o=r.items[r.items.length-1];!o||o.value?r.items.push({start:[],key:n,sep:[]}):o.sep?o.value=n:Object.assign(o,{key:n,sep:[]});return}default:yield*Ae(this.pop()),yield*Ae(this.pop(n))}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const o=n.items[n.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&eA(o.start)===-1&&(n.indent===0||o.start.every(s=>s.type!=="comment"||s.indent<n.indent))&&(r.type==="document"?r.end=o.start:r.items.push({start:o.start}),n.items.splice(-1,1))}}else{const r="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:r}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*Ae(this.lineEnd(t));switch(this.type){case"doc-start":{eA(t.start)!==-1?(yield*Ae(this.pop()),yield*Ae(this.step())):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=Kg(this.peek(2)),r=Mu(n);let o;t.end?(o=t.end,o.push(this.sourceToken),delete t.end):o=[this.sourceToken];const s={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:r,key:t,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*Ae(this.lineEnd(t))}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
754
+ `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
755
+ `,n)+1}yield*Ae(this.pop());break;default:yield*Ae(this.pop()),yield*Ae(this.step())}}*blockMap(t){var r;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const o="end"in n.value?n.value.end:void 0,s=Array.isArray(o)?o[o.length-1]:void 0;(s==null?void 0:s.type)==="comment"?o==null||o.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2],s=(r=o==null?void 0:o.value)==null?void 0:r.end;if(Array.isArray(s)){Array.prototype.push.apply(s,n.start),s.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const o=!this.onKeyLine&&this.indent===t.indent&&n.sep;let s=[];if(o&&n.sep&&!n.value){const i=[];for(let l=0;l<n.sep.length;++l){const a=n.sep[l];switch(a.type){case"newline":i.push(l);break;case"space":break;case"comment":a.indent>t.indent&&(i.length=0);break;default:i.length=0}}i.length>=2&&(s=n.sep.splice(i[1]))}switch(this.type){case"anchor":case"tag":o||n.value?(s.push(this.sourceToken),t.items.push({start:s}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!ei(n.start,"explicit-key-ind")?n.start.push(this.sourceToken):o||n.value?(s.push(this.sourceToken),t.items.push({start:s})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}),this.onKeyLine=!0;return;case"map-value-ind":if(ei(n.start,"explicit-key-ind"))if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(ei(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]});else if(Oj(n.key)&&!ei(n.sep,"newline")){const i=Mu(n.start),l=n.key,a=n.sep;a.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:l,sep:a}]})}else s.length>0?n.sep=n.sep.concat(s,this.sourceToken):n.sep.push(this.sourceToken);else if(ei(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const i=Mu(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||o?t.items.push({start:s,key:null,sep:[this.sourceToken]}):ei(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const i=this.flowScalar(this.type);o||n.value?(t.items.push({start:s,key:i,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(i):(Object.assign(n,{key:i,sep:[]}),this.onKeyLine=!0);return}default:{const i=this.startBlockValue(t);if(i){o&&i.type!=="block-seq"&&ei(n.start,"explicit-key-ind")&&t.items.push({start:s}),this.stack.push(i);return}}}}yield*Ae(this.pop()),yield*Ae(this.step())}*blockSequence(t){var r;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const o="end"in n.value?n.value.end:void 0,s=Array.isArray(o)?o[o.length-1]:void 0;(s==null?void 0:s.type)==="comment"?o==null||o.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2],s=(r=o==null?void 0:o.value)==null?void 0:r.end;if(Array.isArray(s)){Array.prototype.push.apply(s,n.start),s.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||ei(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const o=this.startBlockValue(t);if(o){this.stack.push(o);return}}yield*Ae(this.pop()),yield*Ae(this.step())}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let r;do yield*Ae(this.pop()),r=this.peek(1);while(r&&r.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:o,sep:[]}):n.sep?this.stack.push(o):Object.assign(n,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const r=this.startBlockValue(t);r?this.stack.push(r):(yield*Ae(this.pop()),yield*Ae(this.step()))}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===t.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*Ae(this.pop()),yield*Ae(this.step());else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const o=Kg(r),s=Mu(o);tA(t);const i=t.end.splice(1,t.end.length);i.push(this.sourceToken);const l={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:s,key:t,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}else yield*Ae(this.lineEnd(t))}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
756
+ `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
757
+ `,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=Kg(t),r=Mu(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r}]}}case"map-value-ind":{this.onKeyLine=!0;const n=Kg(t),r=Mu(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*Ae(this.pop())))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*Ae(this.pop()),yield*Ae(this.step());break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*Ae(this.pop()))}}};function Dj(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Rj||null,prettyErrors:t}}function h_e(e,t={}){const{lineCounter:n,prettyErrors:r}=Dj(t),o=new lI(n==null?void 0:n.addNewLine),s=new iI(t),i=Array.from(s.compose(o.parse(e)));if(r&&n)for(const l of i)l.errors.forEach(zy(e,n)),l.warnings.forEach(zy(e,n));return i.length>0?i:Object.assign([],{empty:!0},s.streamInfo())}function Aj(e,t={}){const{lineCounter:n,prettyErrors:r}=Dj(t),o=new lI(n==null?void 0:n.addNewLine),s=new iI(t);let i=null;for(const l of s.compose(o.parse(e),!0,e.length))if(!i)i=l;else if(i.options.logLevel!=="silent"){i.errors.push(new bc(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(i.errors.forEach(zy(e,n)),i.warnings.forEach(zy(e,n))),i}function m_e(e,t,n){let r;typeof t=="function"?r=t:n===void 0&&t&&typeof t=="object"&&(n=t);const o=Aj(e,n);if(!o)return null;if(o.warnings.forEach(s=>nj(o.options.logLevel,s)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:r},n))}function g_e(e,t,n){var o;let r=null;if(typeof t=="function"||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n=="string"&&(n=n.length),typeof n=="number"){const s=Math.round(n);n=s<1?void 0:s>8?{indent:8}:{indent:s}}if(e===void 0){const{keepUndefined:s}=(o=n!=null?n:t)!=null?o:{};if(!s)return}return new Cf(e,r,n).toString(n)}const nA=Object.freeze(Object.defineProperty({__proto__:null,Alias:q0,CST:d_e,Composer:iI,Document:Cf,Lexer:$j,LineCounter:Rj,Pair:qr,Parser:lI,Scalar:Rt,Schema:ob,YAMLError:oI,YAMLMap:qo,YAMLParseError:bc,YAMLSeq:La,YAMLWarning:wj,isAlias:Zc,isCollection:jn,isDocument:gf,isMap:vf,isNode:or,isPair:Ln,isScalar:xn,isSeq:yf,parse:m_e,parseAllDocuments:h_e,parseDocument:Aj,stringify:g_e,visit:Aa,visitAsync:K0},Symbol.toStringTag,{value:"Module"}));var aI={},v_e=Je;Object.defineProperty(aI,"__esModule",{value:!0});var cI=aI.default=void 0,y_e=v_e(tt()),b_e=et();cI=aI.default=(0,y_e.default)((0,b_e.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");var uI={},w_e=Je;Object.defineProperty(uI,"__esModule",{value:!0});var Lj=uI.default=void 0,C_e=w_e(tt()),x_e=et();Lj=uI.default=(0,C_e.default)((0,x_e.jsx)("path",{d:"M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1zM6 8c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2m0 12c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2m6-7.5c-.28 0-.5-.22-.5-.5s.22-.5.5-.5.5.22.5.5-.22.5-.5.5M19 3l-6 6 2 2 7-7V3z"}),"ContentCut");var dI={},S_e=Je;Object.defineProperty(dI,"__esModule",{value:!0});var qS=dI.default=void 0,P_e=S_e(tt()),E_e=et();qS=dI.default=(0,P_e.default)((0,E_e.jsx)("path",{d:"M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m7 18H5V4h2v3h10V4h2z"}),"ContentPaste");var fI={},k_e=Je;Object.defineProperty(fI,"__esModule",{value:!0});var Fj=fI.default=void 0,I_e=k_e(tt()),M_e=et();Fj=fI.default=(0,I_e.default)((0,M_e.jsx)("path",{d:"M15 21h-2v-2h2zm-2-7h-2v5h2zm8-2h-2v4h2zm-2-2h-2v2h2zM7 12H5v2h2zm-2-2H3v2h2zm7-5h2V3h-2zm-7.5-.5v3h3v-3zM9 9H3V3h6zm-4.5 7.5v3h3v-3zM9 21H3v-6h6zm7.5-16.5v3h3v-3zM21 9h-6V3h6zm-2 10v-3h-4v2h2v3h4v-2zm-2-7h-4v2h4zm-4-2H7v2h2v2h2v-2h2zm1-1V7h-2V5h-2v4zM6.75 5.25h-1.5v1.5h1.5zm0 12h-1.5v1.5h1.5zm12-12h-1.5v1.5h1.5z"}),"QrCode2");let Nj=null;class Bj{}Bj.render=function(e,t){Nj(e,t)};self.QrCreator=Bj;(function(e){function t(l,a,c,f){var p={},h=e(c,a);h.u(l),h.J(),f=f||0;var y=h.h(),v=h.h()+2*f;return p.text=l,p.level=a,p.version=c,p.O=v,p.a=function(m,C){return m-=f,C-=f,0>m||m>=y||0>C||C>=y?!1:h.a(m,C)},p}function n(l,a,c,f,p,h,y,v,m,C){function w(b,x,P,k,E,I,R){b?(l.lineTo(x+I,P+R),l.arcTo(x,P,k,E,h)):l.lineTo(x,P)}y?l.moveTo(a+h,c):l.moveTo(a,c),w(v,f,c,f,p,-h,0),w(m,f,p,a,p,0,-h),w(C,a,p,a,c,h,0),w(y,a,c,f,c,0,h)}function r(l,a,c,f,p,h,y,v,m,C){function w(b,x,P,k){l.moveTo(b+P,x),l.lineTo(b,x),l.lineTo(b,x+k),l.arcTo(b,x,b+P,x,h)}y&&w(a,c,h,h),v&&w(f,c,-h,h),m&&w(f,p,-h,-h),C&&w(a,p,h,-h)}function o(l,a){var c=a.fill;if(typeof c=="string")l.fillStyle=c;else{var f=c.type,p=c.colorStops;if(c=c.position.map(y=>Math.round(y*a.size)),f==="linear-gradient")var h=l.createLinearGradient.apply(l,c);else if(f==="radial-gradient")h=l.createRadialGradient.apply(l,c);else throw Error("Unsupported fill");p.forEach(([y,v])=>{h.addColorStop(y,v)}),l.fillStyle=h}}function s(l,a){e:{var c=a.text,f=a.v,p=a.N,h=a.K,y=a.P;for(p=Math.max(1,p||1),h=Math.min(40,h||40);p<=h;p+=1)try{var v=t(c,f,p,y);break e}catch(B){}v=void 0}if(!v)return null;for(c=l.getContext("2d"),a.background&&(c.fillStyle=a.background,c.fillRect(a.left,a.top,a.size,a.size)),f=v.O,h=a.size/f,c.beginPath(),y=0;y<f;y+=1)for(p=0;p<f;p+=1){var m=c,C=a.left+p*h,w=a.top+y*h,b=y,x=p,P=v.a,k=C+h,E=w+h,I=b-1,R=b+1,O=x-1,$=x+1,L=Math.floor(Math.min(.5,Math.max(0,a.R))*h),j=P(b,x),N=P(I,O),_=P(I,x);I=P(I,$);var T=P(b,$);$=P(R,$),x=P(R,x),R=P(R,O),b=P(b,O),C=Math.round(C),w=Math.round(w),k=Math.round(k),E=Math.round(E),j?n(m,C,w,k,E,L,!_&&!b,!_&&!T,!x&&!T,!x&&!b):r(m,C,w,k,E,L,_&&b&&N,_&&T&&I,x&&T&&$,x&&b&&R)}return o(c,a),c.fill(),l}var i={minVersion:1,maxVersion:40,ecLevel:"L",left:0,top:0,size:200,fill:"#000",background:null,text:"no text",radius:.5,quiet:0};Nj=function(l,a){var c={};Object.assign(c,i,l),c.N=c.minVersion,c.K=c.maxVersion,c.v=c.ecLevel,c.left=c.left,c.top=c.top,c.size=c.size,c.fill=c.fill,c.background=c.background,c.text=c.text,c.R=c.radius,c.P=c.quiet,a instanceof HTMLCanvasElement?((a.width!==c.size||a.height!==c.size)&&(a.width=c.size,a.height=c.size),a.getContext("2d").clearRect(0,0,a.width,a.height),s(a,c)):(l=document.createElement("canvas"),l.width=c.size,l.height=c.size,c=s(l,c),a.appendChild(c))}})(function(){function e(a){var c=n.s(a);return{S:function(){return 4},b:function(){return c.length},write:function(f){for(var p=0;p<c.length;p+=1)f.put(c[p],8)}}}function t(){var a=[],c=0,f={B:function(){return a},c:function(p){return(a[Math.floor(p/8)]>>>7-p%8&1)==1},put:function(p,h){for(var y=0;y<h;y+=1)f.m((p>>>h-y-1&1)==1)},f:function(){return c},m:function(p){var h=Math.floor(c/8);a.length<=h&&a.push(0),p&&(a[h]|=128>>>c%8),c+=1}};return f}function n(a,c){function f(b,x){for(var P=-1;7>=P;P+=1)if(!(-1>=b+P||v<=b+P))for(var k=-1;7>=k;k+=1)-1>=x+k||v<=x+k||(y[b+P][x+k]=0<=P&&6>=P&&(k==0||k==6)||0<=k&&6>=k&&(P==0||P==6)||2<=P&&4>=P&&2<=k&&4>=k)}function p(b,x){for(var P=v=4*a+17,k=Array(P),E=0;E<P;E+=1){k[E]=Array(P);for(var I=0;I<P;I+=1)k[E][I]=null}for(y=k,f(0,0),f(v-7,0),f(0,v-7),P=s.G(a),k=0;k<P.length;k+=1)for(E=0;E<P.length;E+=1){I=P[k];var R=P[E];if(y[I][R]==null)for(var O=-2;2>=O;O+=1)for(var $=-2;2>=$;$+=1)y[I+O][R+$]=O==-2||O==2||$==-2||$==2||O==0&&$==0}for(P=8;P<v-8;P+=1)y[P][6]==null&&(y[P][6]=P%2==0);for(P=8;P<v-8;P+=1)y[6][P]==null&&(y[6][P]=P%2==0);for(P=s.w(h<<3|x),k=0;15>k;k+=1)E=!b&&(P>>k&1)==1,y[6>k?k:8>k?k+1:v-15+k][8]=E,y[8][8>k?v-k-1:9>k?15-k:14-k]=E;if(y[v-8][8]=!b,7<=a){for(P=s.A(a),k=0;18>k;k+=1)E=!b&&(P>>k&1)==1,y[Math.floor(k/3)][k%3+v-8-3]=E;for(k=0;18>k;k+=1)E=!b&&(P>>k&1)==1,y[k%3+v-8-3][Math.floor(k/3)]=E}if(m==null){for(b=l.I(a,h),P=t(),k=0;k<C.length;k+=1)E=C[k],P.put(4,4),P.put(E.b(),s.f(4,a)),E.write(P);for(k=E=0;k<b.length;k+=1)E+=b[k].j;if(P.f()>8*E)throw Error("code length overflow. ("+P.f()+">"+8*E+")");for(P.f()+4<=8*E&&P.put(0,4);P.f()%8!=0;)P.m(!1);for(;!(P.f()>=8*E)&&(P.put(236,8),!(P.f()>=8*E));)P.put(17,8);var L=0;for(E=k=0,I=Array(b.length),R=Array(b.length),O=0;O<b.length;O+=1){var j=b[O].j,N=b[O].o-j;for(k=Math.max(k,j),E=Math.max(E,N),I[O]=Array(j),$=0;$<I[O].length;$+=1)I[O][$]=255&P.B()[$+L];for(L+=j,$=s.C(N),j=r(I[O],$.b()-1).l($),R[O]=Array($.b()-1),$=0;$<R[O].length;$+=1)N=$+j.b()-R[O].length,R[O][$]=0<=N?j.c(N):0}for($=P=0;$<b.length;$+=1)P+=b[$].o;for(P=Array(P),$=L=0;$<k;$+=1)for(O=0;O<b.length;O+=1)$<I[O].length&&(P[L]=I[O][$],L+=1);for($=0;$<E;$+=1)for(O=0;O<b.length;O+=1)$<R[O].length&&(P[L]=R[O][$],L+=1);m=P}for(b=m,P=-1,k=v-1,E=7,I=0,x=s.F(x),R=v-1;0<R;R-=2)for(R==6&&--R;;){for(O=0;2>O;O+=1)y[k][R-O]==null&&($=!1,I<b.length&&($=(b[I]>>>E&1)==1),x(k,R-O)&&($=!$),y[k][R-O]=$,--E,E==-1&&(I+=1,E=7));if(k+=P,0>k||v<=k){k-=P,P=-P;break}}}var h=o[c],y=null,v=0,m=null,C=[],w={u:function(b){b=e(b),C.push(b),m=null},a:function(b,x){if(0>b||v<=b||0>x||v<=x)throw Error(b+","+x);return y[b][x]},h:function(){return v},J:function(){for(var b=0,x=0,P=0;8>P;P+=1){p(!0,P);var k=s.D(w);(P==0||b>k)&&(b=k,x=P)}p(!1,x)}};return w}function r(a,c){if(typeof a.length=="undefined")throw Error(a.length+"/"+c);var f=function(){for(var h=0;h<a.length&&a[h]==0;)h+=1;for(var y=Array(a.length-h+c),v=0;v<a.length-h;v+=1)y[v]=a[v+h];return y}(),p={c:function(h){return f[h]},b:function(){return f.length},multiply:function(h){for(var y=Array(p.b()+h.b()-1),v=0;v<p.b();v+=1)for(var m=0;m<h.b();m+=1)y[v+m]^=i.i(i.g(p.c(v))+i.g(h.c(m)));return r(y,0)},l:function(h){if(0>p.b()-h.b())return p;for(var y=i.g(p.c(0))-i.g(h.c(0)),v=Array(p.b()),m=0;m<p.b();m+=1)v[m]=p.c(m);for(m=0;m<h.b();m+=1)v[m]^=i.i(i.g(h.c(m))+y);return r(v,0).l(h)}};return p}n.s=function(a){for(var c=[],f=0;f<a.length;f++){var p=a.charCodeAt(f);128>p?c.push(p):2048>p?c.push(192|p>>6,128|p&63):55296>p||57344<=p?c.push(224|p>>12,128|p>>6&63,128|p&63):(f++,p=65536+((p&1023)<<10|a.charCodeAt(f)&1023),c.push(240|p>>18,128|p>>12&63,128|p>>6&63,128|p&63))}return c};var o={L:1,M:0,Q:3,H:2},s=function(){function a(p){for(var h=0;p!=0;)h+=1,p>>>=1;return h}var c=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],f={w:function(p){for(var h=p<<10;0<=a(h)-a(1335);)h^=1335<<a(h)-a(1335);return(p<<10|h)^21522},A:function(p){for(var h=p<<12;0<=a(h)-a(7973);)h^=7973<<a(h)-a(7973);return p<<12|h},G:function(p){return c[p-1]},F:function(p){switch(p){case 0:return function(h,y){return(h+y)%2==0};case 1:return function(h){return h%2==0};case 2:return function(h,y){return y%3==0};case 3:return function(h,y){return(h+y)%3==0};case 4:return function(h,y){return(Math.floor(h/2)+Math.floor(y/3))%2==0};case 5:return function(h,y){return h*y%2+h*y%3==0};case 6:return function(h,y){return(h*y%2+h*y%3)%2==0};case 7:return function(h,y){return(h*y%3+(h+y)%2)%2==0};default:throw Error("bad maskPattern:"+p)}},C:function(p){for(var h=r([1],0),y=0;y<p;y+=1)h=h.multiply(r([1,i.i(y)],0));return h},f:function(p,h){if(p!=4||1>h||40<h)throw Error("mode: "+p+"; type: "+h);return 10>h?8:16},D:function(p){for(var h=p.h(),y=0,v=0;v<h;v+=1)for(var m=0;m<h;m+=1){for(var C=0,w=p.a(v,m),b=-1;1>=b;b+=1)if(!(0>v+b||h<=v+b))for(var x=-1;1>=x;x+=1)0>m+x||h<=m+x||(b!=0||x!=0)&&w==p.a(v+b,m+x)&&(C+=1);5<C&&(y+=3+C-5)}for(v=0;v<h-1;v+=1)for(m=0;m<h-1;m+=1)C=0,p.a(v,m)&&(C+=1),p.a(v+1,m)&&(C+=1),p.a(v,m+1)&&(C+=1),p.a(v+1,m+1)&&(C+=1),(C==0||C==4)&&(y+=3);for(v=0;v<h;v+=1)for(m=0;m<h-6;m+=1)p.a(v,m)&&!p.a(v,m+1)&&p.a(v,m+2)&&p.a(v,m+3)&&p.a(v,m+4)&&!p.a(v,m+5)&&p.a(v,m+6)&&(y+=40);for(m=0;m<h;m+=1)for(v=0;v<h-6;v+=1)p.a(v,m)&&!p.a(v+1,m)&&p.a(v+2,m)&&p.a(v+3,m)&&p.a(v+4,m)&&!p.a(v+5,m)&&p.a(v+6,m)&&(y+=40);for(m=C=0;m<h;m+=1)for(v=0;v<h;v+=1)p.a(v,m)&&(C+=1);return y+=Math.abs(100*C/h/h-50)/5*10}};return f}(),i=function(){for(var a=Array(256),c=Array(256),f=0;8>f;f+=1)a[f]=1<<f;for(f=8;256>f;f+=1)a[f]=a[f-4]^a[f-5]^a[f-6]^a[f-8];for(f=0;255>f;f+=1)c[a[f]]=f;return{g:function(p){if(1>p)throw Error("glog("+p+")");return c[p]},i:function(p){for(;0>p;)p+=255;for(;256<=p;)p-=255;return a[p]}}}(),l=function(){function a(p,h){switch(h){case o.L:return c[4*(p-1)];case o.M:return c[4*(p-1)+1];case o.Q:return c[4*(p-1)+2];case o.H:return c[4*(p-1)+3]}}var c=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],f={I:function(p,h){var y=a(p,h);if(typeof y=="undefined")throw Error("bad rs block @ typeNumber:"+p+"/errorCorrectLevel:"+h);p=y.length/3,h=[];for(var v=0;v<p;v+=1)for(var m=y[3*v],C=y[3*v+1],w=y[3*v+2],b=0;b<m;b+=1){var x=w,P={};P.o=C,P.j=x,h.push(P)}return h}};return f}();return n}());const __e=QrCreator,T_e="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept";function $_e({file:e,addToBar:t,statusApi:n}){var T,B,A;const _=e,{parent:r,children:o,isRoot:s,byMasks:i}=_,l=Lt(_,["parent","children","isRoot","byMasks"]),[a,c]=u.useState(l);u.useEffect(()=>{c(Object.assign(v0(gC,()=>null),l))},[e]);const f=u.useMemo(()=>{let F=e.parent;for(;F;){if(F.default!=null)return F.default;F=F.parent}},[e]),{source:p}=e,h=e.type==="folder",y=!e.type&&p&&e.size<0,v=a.url!==void 0,m=p!==void 0,C=m&&h,w=Jo("lg"),b=!v&&(w||m),x=!v&&w||m&&!C,P=e.accept>""||h&&((B=e.can_upload)!=null?B:(T=e.inherited)==null?void 0:T.can_upload),k=h,E=EE(),{movingFile:I}=Gs(),{data:R,element:O}=Xn("get_accounts");if(O||!R)return O;const $=R.list,L=!m&&"Works only on folders with source! ",j={can_read:!v,can_see:!0,can_archive:!v,can_list:h,can_upload:h&&m,can_delete:h&&m};return u.createElement(Yc,{values:a,set(F,H){c(K=>{var Q;const J=H==="source"&&K.name&&((Q=K.source)==null?void 0:Q.endsWith(K.name))?V5(F):K.name;return it(ye({},K),{name:J,[H]:F})})},barSx:ye({gap:2,width:"100%"},E),stickyBar:!0,addToBar:[u.createElement(dn,{icon:Lj,disabled:s||I===e.id,title:"Cut (you can also use drag & drop to move items)","aria-label":"Cut",onClick(){on.movingFile=e.id,kt(u.createElement(ze,{},"Now that this is marked for moving, click on the destination folder, and then the paste button ",u.createElement(qS)),"info")}}),I&&u.createElement(dn,{icon:qS,disabled:e.type!=="folder"||e.id.startsWith(I)||e.id===I.replace(/[^/]+\/?$/,""),title:I,onClick(){return on.movingFile="",Uj(I,e.id)}}),!s&&u.createElement(dn,{icon:Bl,title:"Delete",confirm:"Delete?",onClick:()=>ut("del_vfs",{uris:[e.id]}).then(()=>Fa())}),...y0(t)],onError:kt,save:{sx:lf(!by(a,l)),onClick(){return ot(this,null,function*(){const F=Ze.omit(a,["ctime","mtime","size","id"]);F.masks||(F.masks=null),yield ut("set_vfs",{uri:a.id,props:F}),F.name!==e.name&&(on.selectedFiles[0].id=e.parent.id+F.name+(h?"/":"")),Fa()})}},fields:[h&&m&&u.createElement(Er,{severity:"info"},'To set permissions on individual items in folder, add them by clicking Add button, and then "from disk"'),s?u.createElement(Er,{severity:"info"},"This is Home, the root of your shared files. Options set here will be applied to all files."):{k:"name",required:!0,xl:!0,helperText:m&&"You can decide a name that's different from the one on your disk"},v?{k:"url",label:"URL",lg:12,required:!0}:{k:"source",label:"Load content from disk",xl:!0,comp:Hp,files:y||!h,folders:y||h,placeholder:"no",helperText:a.source?h?"Content from this path on disk will be listed, but you can also add more":void 0:"This field is empty, and thus this element is a virtual-folder. You can set this field, pointing at any folder/file on disk."},!v&&{k:"id",comp:R_e,statusApi:n,xs:12},N("can_read","Who can see but not download will be asked to login"),N("can_see","If you can't see, you may still download with a direct link"),N("can_archive","Should this be included when user downloads as ZIP",{lg:h?!0:12}),N("can_list","Permission to see content of folders",{contentText:"subfolders"}),N("can_delete",[L,"Those who can delete can also rename and cut/move"]),N("can_upload",L,{contentText:"subfolders"}),x&&{k:"size",comp:Bp,lg:4,toField:$l},b&&{k:"ctime",comp:Bp,md:6,lg:x&&4,label:"Created",toField:gS},b&&{k:"mtime",comp:Bp,md:6,lg:x&&4,label:"Modified",toField:gS},P&&{k:"accept",label:"Accept on upload",placeholder:"anything",xl:k?4:12,helperText:u.createElement(os,{href:T_e,target:"_blank"},"Example: .zip")},k&&{k:"default",comp:Dn,xl:!0,label:"Serve as website if index.html is found"+(f&&a.default==null?" (inherited)":""),value:(A=a.default)!=null?A:f,toField:Boolean,fromField:F=>F&&!f?"index.html":F?null:!1,helperText:Kn("...instead of showing list of files")},h&&{k:"masks",multiline:!0,toField:nA.stringify,fromField:F=>F?nA.parse(F):void 0,sx:{"& textarea":{fontFamily:"monospace"}},helperText:["Special field, leave empty unless you know what you are doing. YAML syntax. ",_a("Permissions","(examples)")]}]});function N(F,H,K={}){var Q,X;if(!j[F])return null;const Y=[F,...qc(Ze.map(j,(ee,oe)=>!ee&&oe))],J=Ze.difference(Object.keys(gC),Y);return ye({comp:jj,k:F,lg:6,xl:4,parent:r,accounts:$,helperText:H,isDir:h,otherPerms:J.map(ee=>({value:ee,label:"As "+YS(ee)})),label:"Who can "+YS(F),inherit:(X=(Q=e.inherited)==null?void 0:Q[F])!=null?X:gC[F],byMasks:i==null?void 0:i[F],fromField:ee=>ee!=null?ee:null},K)}}function YS(e){const t=e.split("_")[1];return t==="read"?"download":t==="archive"?"zip":t}function jj(v){var m=v,{value:e,onChange:t,parent:n,inherit:r,accounts:o,helperText:s,otherPerms:i,byMasks:l,hideValues:a,isChildren:c,isDir:f,contentText:p="folder content",setApi:h}=m,y=Lt(m,["value","onChange","parent","inherit","accounts","helperText","otherPerms","byMasks","hideValues","isChildren","isDir","contentText","setApi"]);const C=(l!==void 0?"As per mask: ":n!==void 0?"As parent: ":"Default: ")+rA(l!=null?l:r),w=the(e),b=w?e.this:e,x=u.useMemo(()=>qc([{value:null,label:C},{value:!0},{value:!1},{value:"*"},...i,{value:[],label:"Select accounts"}].map(I=>!(a!=null&&a.includes(I.value))&&ye({label:Ze.capitalize(rA(I.value))},I))),[r,n,b]),P=500,k=Array.isArray(b);return u.createElement(ze,{sx:{borderRight:w?"8px solid #8884":void 0,transition:`all ${P}ms`}},u.createElement(Wr,it(ye({},y),{value:k?[]:b!=null?b:null,onChange(I,{event:R}){t(w?E(it(ye({},e),{this:I!=null?I:void 0})):I!=null?I:void 0,{was:e,event:R})},options:x})),u.createElement(ly,{in:k,timeout:P},k&&u.createElement(I0,{label:o!=null&&o.length?"Accounts for "+y.label:"You didn't create any account yet",value:b,onChange:t,options:(o==null?void 0:o.map(I=>({value:I.username,label:I.username})))||[]})),u.createElement(nf,{},s,!c&&f&&u.createElement(hl,{sx:{display:"block",mt:-.5},onClick(I){t(w?b:{this:b,children:b==null?!r:void 0},{was:e,event:I})}},w?"Different permission for ":"Same permission for ",p)),!c&&u.createElement(ly,{in:w,timeout:P},u.createElement(jj,{label:"Permission for "+p,parent:n,inherit:r,accounts:o,otherPerms:i,isDir:f,value:w&&(e==null?void 0:e.children),isChildren:!0,hideValues:[b!=null?b:r,b],onChange(I,{event:R}){w&&t(E(it(ye({},e),{children:I})),{was:e,event:R})}})));function E(I){return I.this===I.children?I.this:I}}function rA(e){return e===!1?"no one":e===!0?"anyone":e==="*"?"any account (login required)":Array.isArray(e)?e.join(", "):typeof e=="string"?"as "+YS(e):"*UNKNOWN*"+JSON.stringify(e)}function R_e({value:e,statusApi:t}){const{data:n,reload:r,error:o}=t,s=(n==null?void 0:n.urls.https)||(n==null?void 0:n.urls.http),i=(n==null?void 0:n.baseUrl)&&new URL(n.baseUrl).hostname,l=u.useMemo(()=>i&&Ze.find(n.roots,(h,y)=>bhe(i,y)),[n]);l&&e&&(e=e.indexOf(l)===1?e.slice(l.length):void 0);const a=pi((n==null?void 0:n.baseUrl)||"",e),c=u.useMemo(()=>u.forwardRef((h,y)=>u.createElement(os,it(ye({ref:y},h),{href:a,style:{height:"auto"},target:"frontend"}),a)),[a]);return u.createElement(ze,{display:"flex"},s?u.createElement(Bp,{label:"Link",value:a||`outside of configured base address (${i})`,error:o,InputProps:{inputComponent:c},end:u.createElement(ze,{},u.createElement(dn,{icon:cI,title:"Copy",disabled:!a,onClick:()=>navigator.clipboard.writeText(a)}),u.createElement(dn,{icon:Fj,title:"QR Code",onClick:f}),u.createElement(dn,{icon:pk,title:"Change",onClick(){zj().then(r)}}))}):"error");function f(){po({title:"QR Code",dialogProps:{sx:{bgcolor:"background.default",border:"1px solid"}},Content(){const h=Fn();return u.createElement("canvas",{ref:y=>y&&p(y,a,h.palette.text.primary),style:{width:"100%"}})}})}function p(h,y,v){return ot(this,null,function*(){try{__e.render({text:y,radius:0,ecLevel:"H",fill:v,background:null,size:300},h)}catch(m){console.error("Error generating QR code:",m)}})}}function zj(){return ot(this,null,function*(){return new Promise(e=>ot(this,null,function*(){const t=yield ut("get_status"),{base_url:n}=yield ut("get_config",{only:["base_url"]}),r=t.urls.https||t.urls.http,{close:o}=po({title:"Base address",Content(){const[s,i]=u.useState(n||""),l=new URL(s||r[0]).protocol+"//",a=r.includes(s)?"":s.slice(l.length),c=u.createElement(gE,{sx:{ml:2}});return u.createElement(ze,{display:"flex",flexDirection:"column"},u.createElement(ze,{mb:2},"Choose a base address for your links"),u.createElement(of,{},u.createElement(Pr,{selected:!s,onClick:()=>f("")},"Automatic",!s&&c),r.map(h=>u.createElement(Pr,{key:h,selected:h===s,onClick:()=>f(h)},h,h===s&&c))),u.createElement(Qi,{label:"Custom IP or domain",helperText:Kn(`You can type any address but *you* are responsible to make the address work.
758
+ This functionality is just to help you copy the link in case you have a domain or a complex network configuration.`),value:a,onChange:h=>f(pi(l,h)),start:u.createElement(Wr,{value:l,onChange:h=>a?f(h+a):rr("Enter domain first"),options:["http://","https://"],size:"small",variant:"standard",sx:{"& .MuiSelect-select":{pt:"1px",pb:0}}}),sx:{mt:2}}),u.createElement(ze,{mt:2,textAlign:"right"},u.createElement(Ro,{icon:sm,children:"Save",onClick(){return ot(this,null,function*(){s!==n&&(yield ut("set_config",{values:{base_url:s.replace(/\/$/,"")}})),e(s),o()})}})));function f(h){h.endsWith("/")&&(h=h.slice(0,-1)),i(h)}}})}))})}let QS;function O_e(){var P,k,E;const[e]=u.useState(()=>new Map),{vfs:t,selectedFiles:n,movingFile:r}=Gs(),{data:o,reload:s,element:i}=Xn("get_vfs");u.useMemo(()=>t||s(),[t,s]);const l="md",a=Jo(l),c=Xn("get_status"),{data:f}=c,p=u.useMemo(()=>{const I=f==null?void 0:f.baseUrl,R=(f==null?void 0:f.urls.https)||(f==null?void 0:f.urls.http);return I&&!R.includes(I)?[I,...R]:R},[f]),[h,y]=u.useState(!1);function v(){y(!0)}const m=!n.length||h?null:n.length===1?u.createElement($_e,{addToBar:a&&[u.createElement(ze,{flex:1}),XS(n[0]),u.createElement(dn,{icon:S0,title:"Close",onClick:v})],statusApi:c,file:n[0]}):u.createElement(u.Fragment,{},u.createElement(Gr,{},u.createElement(qn,{variant:"h6"},n.length+" selected"),u.createElement(Yn,{onClick:D_e,startIcon:u.createElement(Bl)},"Remove")),u.createElement(rm,{dense:!0,disablePadding:!0},n.map(I=>u.createElement(N2,{key:I.id},u.createElement(Bi,{primary:I.name,secondary:I.source}))))),[C,w]=u.useState(()=>Ze.noop);if(u.useEffect(()=>{var I;r===((I=n[0])==null?void 0:I.id)&&C()},[r,C]),u.useEffect(()=>{if(a||!m)return;const{close:I}=po({title:n.length>1?"Multiple selection":u.createElement(Gr,{},XS(n[0]),n[0].name||"Home"),Content:()=>m,onClose:v});return w(()=>I),I},[a,n]),u.useEffect(()=>{if(on.vfs=void 0,!o)return;e.clear();const{root:I}=o;if(!I)return;I.isRoot=!0,O(I),on.vfs=I;const R=QS||on.selectedFiles.map($=>$.id);QS=void 0,on.selectedFiles=qc(R.map($=>e.get($)));function O($,L="/",j=void 0){if($.parent=j,$.id=$.isRoot?"/":pi(L,encodeURIComponent($.name),$.type==="folder"?"/":""),e.set($.id,$),!!$.children)for(const N of $.children)O(N,$.id,$)}},[o,e]),i)return e.clear(),i;const x=!((k=(P=o==null?void 0:o.root)==null?void 0:P.children)!=null&&k.length)&&!((E=o==null?void 0:o.root)!=null&&E.source)?{severity:"warning",children:"Add something to your shared files — click Add"}:p&&{severity:"info",children:["Your shared files can be browsed from ",Efe(" or ",p.slice(0,3).map(I=>u.createElement(os,{href:I,target:"frontend"},I)))]};return u.createElement(ai,{container:!0,rowSpacing:1,columnSpacing:2},u.createElement(ai,{item:!0,mb:2,xs:12},u.createElement(Er,{severity:"info"},"If you rename or delete here, it's virtual, and only affects what is presented to the users"),x&&u.createElement(Er,x)),u.createElement(ai,{item:!0,[l]:7,lg:6,xl:5},u.createElement(qn,{variant:"h6",mb:1},"Virtual File System"),u.createElement(lMe,{statusApi:c}),t&&u.createElement(A_e,{id2node:e,statusApi:c,onSelect:()=>y(!1)})),a&&m&&u.createElement(ai,{item:!0,[l]:!0,maxWidth:"100%"},u.createElement(J1,{sx:{overflow:"initial"}},u.createElement(e0,{},m))))}function Fa(e){QS=e,on.vfs=void 0}function D_e(){return ot(this,null,function*(){const e=on.selectedFiles;if(e.length&&(yield mr(`Delete ${e.length} item(s)?`)))try{const t=e.map(o=>o.id);Ze.pull(t,"/");const{errors:n}=yield ut("del_vfs",{uris:t}),r=t.filter((o,s)=>n[s]);if(r.length)return kt("Following elements couldn't be deleted: "+r.join(", "),"error");Fa()}catch(t){yield kt(t)}})}const Vj=D6,Hj=L6;function A_e({id2node:e,statusApi:t,onSelect:n}){const{vfs:r,selectedFiles:o}=Gs(),[s,i]=u.useState(o.map(v=>v.id)),[l,a]=u.useState(Array.from(e.keys())),c=u.useRef(),f=u.useRef();if(!r)return null;const p="vfs";return u.createElement(T6,{ref:f,expanded:l,selected:s,multiSelect:!0,id:p,sx:{overflowX:"auto",maxWidth:f.current&&`calc(100vw - ${16+f.current.offsetLeft}px)`,"& ul":{borderLeft:"1px dashed #444",marginLeft:"15px",paddingLeft:"15px"}},onNodeSelect(v,m){typeof m!="string"&&(i(m),on.selectedFiles=qc(m.map(C=>e.get(C))),n())}},y(r));function h(v){return v!==void 0&&v!==!0}function y(v){var P,k,E;let{id:m,name:C,isRoot:w}=v;if(!m)debugger;const b=v.type==="folder";return u.createElement(FS,{ref(I){I==null||I.addEventListener("focusin",R=>R.stopImmediatePropagation())},label:u.createElement(ze,{draggable:!w,onDragStart(){c.current=m},onDragOver(I){if(!b)return;const R=c.current;R!=null&&R.startsWith(m)&&!R.slice(m.length+1).includes("/")||I.preventDefault()},onDrop(){return ot(this,null,function*(){const I=c.current;I&&(yield mr(`Moving ${I} under ${m}`))&&Uj(I,m)})},sx:{display:"flex",gap:".5em",lineHeight:"2em",alignItems:"center"}},u.createElement(ze,{display:"flex",flex:0},XS(v),u.createElement(ze,{sx:{flex:0,ml:"2px",my:"2px","&>*":{fontSize:"87%",opacity:.6,mt:"-2px"},display:"grid",gridAutoFlow:"column",gridTemplateRows:"auto auto"}},v.can_delete!==void 0&&Hr(Bl,"Delete permission"),v.can_upload!==void 0&&Hr(am,"Upload permission"),!w&&!v.source&&!v.url&&Hr(B6,"Virtual (no source)"),h(v.can_see)&&Hr(F6,"Restrictions on who can see"),h(v.can_read)&&Hr(T0,"Restrictions on who can download"),v.default&&Hr(N6,"Act as website"),v.masks&&Hr(O6,"Masks"),v.size===-1&&Hr(j6,"Source not found"),Rl(Ze.findKey((P=t.data)==null?void 0:P.roots,I=>I===m.slice(1)),I=>I&&Hr(r0,`home for ${I}`)))),w?"Home":(()=>{var $;const I=($=v.parent)==null?void 0:$.source,{source:R}=v,O=I&&(R!=null&&R.startsWith(I))?"."+R.slice(I.length):R;return!O||!(R!=null&&R.endsWith(C))||O.length>45?u.createElement(ze,{lineHeight:"1.2em"},C):u.createElement("span",{},u.createElement("span",{style:{opacity:.4}},O.slice(0,-C.length)),O.slice(-C.length))})()),key:C,collapseIcon:u.createElement(R6,{onClick(I){a(l.filter(R=>R!==m)),I.preventDefault(),I.stopPropagation()}}),expandIcon:u.createElement($6,{onClick(I){a([...l,m]),I.preventDefault(),I.stopPropagation()}}),nodeId:m},w&&!((k=v.children)!=null&&k.length)?u.createElement(FS,{nodeId:"?",label:u.createElement("i",{},"nothing here")}):(E=v.children)==null?void 0:E.map(y))}}function Uj(e,t){ut("move_vfs",{from:e,parent:t}).then(()=>{Fa([t+e.slice(1+e.lastIndexOf("/",e.length-2))])},kt)}function XS(e){return e.isRoot?Hr(r0,"home, or root if you like"):e.type==="folder"?Hr(Vj,"Folder"):e.url?Hr(A6,"Web-link"):Hr(Hj,"File")}var oA=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function L_e(e,t){return!!(e===t||oA(e)&&oA(t))}function F_e(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!L_e(e[n],t[n]))return!1;return!0}function BC(e,t){t===void 0&&(t=F_e);var n,r=[],o,s=!1;function i(){for(var l=[],a=0;a<arguments.length;a++)l[a]=arguments[a];return s&&n===this&&t(l,r)||(o=e.apply(this,l),s=!0,n=this,r=l),o}return i}var N_e=typeof performance=="object"&&typeof performance.now=="function",sA=N_e?function(){return performance.now()}:function(){return Date.now()};function iA(e){cancelAnimationFrame(e.id)}function B_e(e,t){var n=sA();function r(){sA()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var jC=-1;function lA(e){if(e===void 0&&(e=!1),jC===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),jC=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return jC}var _u=null;function aA(e){if(e===void 0&&(e=!1),_u===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?_u="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?_u="negative":_u="positive-ascending"),document.body.removeChild(t),_u}return _u}var j_e=150,z_e=function(t,n){return t};function V_e(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,s=e.getOffsetForIndexAndAlignment,i=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,a=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,f=e.validateProps;return t=function(p){W1(h,p);function h(v){var m;return m=p.call(this,v)||this,m._instanceProps=a(m.props,tS(m)),m._outerRef=void 0,m._resetIsScrollingTimeoutId=null,m.state={instance:tS(m),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof m.props.initialScrollOffset=="number"?m.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},m._callOnItemsRendered=void 0,m._callOnItemsRendered=BC(function(C,w,b,x){return m.props.onItemsRendered({overscanStartIndex:C,overscanStopIndex:w,visibleStartIndex:b,visibleStopIndex:x})}),m._callOnScroll=void 0,m._callOnScroll=BC(function(C,w,b){return m.props.onScroll({scrollDirection:C,scrollOffset:w,scrollUpdateWasRequested:b})}),m._getItemStyle=void 0,m._getItemStyle=function(C){var w=m.props,b=w.direction,x=w.itemSize,P=w.layout,k=m._getItemStyleCache(c&&x,c&&P,c&&b),E;if(k.hasOwnProperty(C))E=k[C];else{var I=n(m.props,C,m._instanceProps),R=o(m.props,C,m._instanceProps),O=b==="horizontal"||P==="horizontal",$=b==="rtl",L=O?I:0;k[C]=E={position:"absolute",left:$?void 0:L,right:$?L:void 0,top:O?0:I,height:O?"100%":R,width:O?R:"100%"}}return E},m._getItemStyleCache=void 0,m._getItemStyleCache=BC(function(C,w,b){return{}}),m._onScrollHorizontal=function(C){var w=C.currentTarget,b=w.clientWidth,x=w.scrollLeft,P=w.scrollWidth;m.setState(function(k){if(k.scrollOffset===x)return null;var E=m.props.direction,I=x;if(E==="rtl")switch(aA()){case"negative":I=-x;break;case"positive-descending":I=P-b-x;break}return I=Math.max(0,Math.min(I,P-b)),{isScrolling:!0,scrollDirection:k.scrollOffset<I?"forward":"backward",scrollOffset:I,scrollUpdateWasRequested:!1}},m._resetIsScrollingDebounced)},m._onScrollVertical=function(C){var w=C.currentTarget,b=w.clientHeight,x=w.scrollHeight,P=w.scrollTop;m.setState(function(k){if(k.scrollOffset===P)return null;var E=Math.max(0,Math.min(P,x-b));return{isScrolling:!0,scrollDirection:k.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},m._resetIsScrollingDebounced)},m._outerRefSetter=function(C){var w=m.props.outerRef;m._outerRef=C,typeof w=="function"?w(C):w!=null&&typeof w=="object"&&w.hasOwnProperty("current")&&(w.current=C)},m._resetIsScrollingDebounced=function(){m._resetIsScrollingTimeoutId!==null&&iA(m._resetIsScrollingTimeoutId),m._resetIsScrollingTimeoutId=B_e(m._resetIsScrolling,j_e)},m._resetIsScrolling=function(){m._resetIsScrollingTimeoutId=null,m.setState({isScrolling:!1},function(){m._getItemStyleCache(-1,null)})},m}h.getDerivedStateFromProps=function(m,C){return H_e(m,C),f(m),null};var y=h.prototype;return y.scrollTo=function(m){m=Math.max(0,m),this.setState(function(C){return C.scrollOffset===m?null:{scrollDirection:C.scrollOffset<m?"forward":"backward",scrollOffset:m,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},y.scrollToItem=function(m,C){C===void 0&&(C="auto");var w=this.props,b=w.itemCount,x=w.layout,P=this.state.scrollOffset;m=Math.max(0,Math.min(m,b-1));var k=0;if(this._outerRef){var E=this._outerRef;x==="vertical"?k=E.scrollWidth>E.clientWidth?lA():0:k=E.scrollHeight>E.clientHeight?lA():0}this.scrollTo(s(this.props,m,C,P,this._instanceProps,k))},y.componentDidMount=function(){var m=this.props,C=m.direction,w=m.initialScrollOffset,b=m.layout;if(typeof w=="number"&&this._outerRef!=null){var x=this._outerRef;C==="horizontal"||b==="horizontal"?x.scrollLeft=w:x.scrollTop=w}this._callPropsCallbacks()},y.componentDidUpdate=function(){var m=this.props,C=m.direction,w=m.layout,b=this.state,x=b.scrollOffset,P=b.scrollUpdateWasRequested;if(P&&this._outerRef!=null){var k=this._outerRef;if(C==="horizontal"||w==="horizontal")if(C==="rtl")switch(aA()){case"negative":k.scrollLeft=-x;break;case"positive-ascending":k.scrollLeft=x;break;default:var E=k.clientWidth,I=k.scrollWidth;k.scrollLeft=I-E-x;break}else k.scrollLeft=x;else k.scrollTop=x}this._callPropsCallbacks()},y.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&iA(this._resetIsScrollingTimeoutId)},y.render=function(){var m=this.props,C=m.children,w=m.className,b=m.direction,x=m.height,P=m.innerRef,k=m.innerElementType,E=m.innerTagName,I=m.itemCount,R=m.itemData,O=m.itemKey,$=O===void 0?z_e:O,L=m.layout,j=m.outerElementType,N=m.outerTagName,_=m.style,T=m.useIsScrolling,B=m.width,V=this.state.isScrolling,A=b==="horizontal"||L==="horizontal",F=A?this._onScrollHorizontal:this._onScrollVertical,H=this._getRangeToRender(),K=H[0],Y=H[1],J=[];if(I>0)for(var Q=K;Q<=Y;Q++)J.push(u.createElement(C,{data:R,key:$(Q,R),index:Q,isScrolling:T?V:void 0,style:this._getItemStyle(Q)}));var X=r(this.props,this._instanceProps);return u.createElement(j||N||"div",{className:w,onScroll:F,ref:this._outerRefSetter,style:S({position:"relative",height:x,width:B,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:b},_)},u.createElement(k||E||"div",{children:J,ref:P,style:{height:A?"100%":X,pointerEvents:V?"none":void 0,width:A?X:"100%"}}))},y._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var m=this.props.itemCount;if(m>0){var C=this._getRangeToRender(),w=C[0],b=C[1],x=C[2],P=C[3];this._callOnItemsRendered(w,b,x,P)}}if(typeof this.props.onScroll=="function"){var k=this.state,E=k.scrollDirection,I=k.scrollOffset,R=k.scrollUpdateWasRequested;this._callOnScroll(E,I,R)}},y._getRangeToRender=function(){var m=this.props,C=m.itemCount,w=m.overscanCount,b=this.state,x=b.isScrolling,P=b.scrollDirection,k=b.scrollOffset;if(C===0)return[0,0,0,0];var E=i(this.props,k,this._instanceProps),I=l(this.props,E,k,this._instanceProps),R=!x||P==="backward"?Math.max(1,w):1,O=!x||P==="forward"?Math.max(1,w):1;return[Math.max(0,E-R),Math.max(0,Math.min(C-1,I+O)),E,I]},h}(u.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var H_e=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},U_e=V_e({getItemOffset:function(t,n){var r=t.itemSize;return n*r},getItemSize:function(t,n){var r=t.itemSize;return r},getEstimatedTotalSize:function(t){var n=t.itemCount,r=t.itemSize;return r*n},getOffsetForIndexAndAlignment:function(t,n,r,o,s,i){var l=t.direction,a=t.height,c=t.itemCount,f=t.itemSize,p=t.layout,h=t.width,y=l==="horizontal"||p==="horizontal",v=y?h:a,m=Math.max(0,c*f-v),C=Math.min(m,n*f),w=Math.max(0,n*f-v+f+i);switch(r==="smart"&&(o>=w-v&&o<=C+v?r="auto":r="center"),r){case"start":return C;case"end":return w;case"center":{var b=Math.round(w+(C-w)/2);return b<Math.ceil(v/2)?0:b>m+Math.floor(v/2)?m:b}case"auto":default:return o>=w&&o<=C?o:o<w?w:C}},getStartIndexForOffset:function(t,n){var r=t.itemCount,o=t.itemSize;return Math.max(0,Math.min(r-1,Math.floor(n/o)))},getStopIndexForStartIndex:function(t,n,r){var o=t.direction,s=t.height,i=t.itemCount,l=t.itemSize,a=t.layout,c=t.width,f=o==="horizontal"||a==="horizontal",p=n*l,h=f?c:s,y=Math.ceil((h+r-p)/l);return Math.max(0,Math.min(i-1,n+y-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}});function Wj({onSelect:e,multiple:t=!0,files:n=!0,folders:r=!0,fileMask:o,from:s=""}){const[i,l]=u.useState(s),[a,c]=u.useState(!1),f=u.useRef(!1);u.useEffect(()=>{ut("resolve_path",{path:s,closestFolder:!0}).then(_=>{typeof _.path=="string"&&(l(_.path),f.current=_.path[1]===":")}).finally(()=>c(!0))},[s]);const{list:p,error:h,connecting:y,reload:v}=Ol(a&&"get_ls",{path:i,files:n,fileMask:o});u.useEffect(()=>{C([]),b("")},[i]);const[m,C]=u.useState([]),[w,b]=u.useState(""),x=u.useMemo(()=>Ze.debounce(_=>b(_)),[]),P=u.useMemo(()=>{const _=new RegExp(Ze.escapeRegExp(w),"i");return T=>_.test(T)},[w]),[k,E]=u.useState(0),I=u.useMemo(()=>Ze.sortBy(p.filter(_=>P(_.n)),["k","d"]),[p,P]),R=f.current?"":"/",O=f.current?"\\":"/",$=ohe(O,i),L=i.length<2;return u.createElement(u.Fragment,{},u.createElement(ze,{display:"flex",gap:1},u.createElement(Yn,{title:"root",disabled:L,onClick(){l(R)}},u.createElement(S6)),u.createElement(Yn,{disabled:L,title:"parent folder",onClick(){const _=/[\\/]$/.test(i)?i.slice(0,-1):i,T=mhe(_)?R:_.slice(0,_.lastIndexOf(O)||1);l(T)}},u.createElement(gk)),u.createElement(Qi,{label:"Current path",value:i,InputLabelProps:{shrink:!0},onChange(_){return ot(this,null,function*(){if(!_)return l(R);const T=yield ut("resolve_path",{path:_});if(T.isFolder===!1)return n?e([_]):l(_.slice(0,-V5(_)));l(T.path)})}})),h?u.createElement(Er,{severity:"error"},Q5(h)):u.createElement(u.Fragment,{},u.createElement(ze,{ref(_){if(!_)return;const T=(_==null?void 0:_.clientHeight)-1;T-k>1&&E(T)},sx:{flex:1,display:"flex",flexDirection:"column"}},p.length?u.createElement(U_e,{width:"100%",height:k,itemSize:46,itemCount:I.length,overscanCount:5,children({index:_,style:T}){const B=I[_],V=B.k==="d";return u.createElement(Pr,{style:it(ye({},T),{padding:0}),key:B.n,onClick(){V?l($+B.n):e([$+B.n])}},t&&u.createElement(F4,{checked:m.includes(B.n),disabled:!r&&V,onClick(A){const F=B.n,H=m.filter(K=>K!==F);C(H.length<m.length?H:[...m,F]),A.stopPropagation()}}),u.createElement(Cl,{},u.createElement(B.k?Vj:Hj)),u.createElement(Bi,{sx:{whiteSpace:"pre-wrap",wordBreak:"break-all"}},B.n),!V&&B.s!==void 0&&u.createElement(qn,{variant:"body2",color:"text.secondary",ml:4,mr:1},$l(B.s)))}}):u.createElement(lm,{flex:1,mt:"4em"},y?a3():"No elements in this folder")),u.createElement(Gr,{alignItems:"stretch"},(t||r||!n)&&u.createElement(Yn,{variant:"contained",disabled:!i||!r&&!m.length&&n,sx:{minWidth:"max-content"},onClick(){e(m.length?m.map(_=>$+_):[i])}},n&&(m.length||!r)?`Select (${m.length})`:"Select this folder"),u.createElement(Wa,{size:"small",value:w,label:`Filter results (${I.length}${I.length<p.length?"/"+p.length:""})`,onChange(_){x(_.target.value)},sx:{flex:1}}),u.createElement(dn,{icon:x6,doneMessage:!0,title:"Create folder",sx:{mt:"5px"},onClick(){return ot(this,null,function*(){const _=yield im("New folder name");if(!_)return!1;yield ut("mkdir",{path:`${i}/${_}`}),v()})}}))))}function Hp(a){var c=a,{value:e,onChange:t,files:n=!0,folders:r=!1,fileMask:o,defaultPath:s,title:i}=c,l=Lt(c,["value","onChange","files","folders","fileMask","defaultPath","title"]);const f=Jo("md");return u.createElement(Qi,it(ye({},l),{value:e,onChange:t,onTyping:p=>!p.includes(`
759
+ `)&&p,InputProps:{multiline:!0,endAdornment:u.createElement(Tl,{position:"end"},u.createElement(dn,{icon:C6,title:"Browse files...",edge:"end",onClick(){const{close:p}=po({title:i!=null?i:n?"Pick a file":"Pick a folder",dialogProps:{fullScreen:!f,sx:{minWidth:"min(90vw, 40em)",minHeight:"calc(100vh - 9em)"}},Content(){return u.createElement(Wj,{multiple:!1,folders:r,files:n,fileMask:o,from:e||s,onSelect(y){return ot(this,null,function*(){var C;let v=y==null?void 0:y[0];if(!v)return;const m=(C=yield ut("get_cwd"))==null?void 0:C.path;v.startsWith(m)&&(v=v.slice(m.length+1)||"."),t(v,{was:e,event:"picker"}),p()})}})}})}}))}}))}var pI={},W_e=Je;Object.defineProperty(pI,"__esModule",{value:!0});var Iv=pI.default=void 0,G_e=W_e(tt()),K_e=et();Iv=pI.default=(0,G_e.default)((0,K_e.jsx)("path",{d:"M22 13v3c0 1.1-.9 2-2 2h-3l1 1v2H6v-2l1-1H4c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h8v2H4v11h16v-3zm-7 2-5-5h4V3h2v7h4z"}),"BrowserUpdated");var hI={},q_e=Je;Object.defineProperty(hI,"__esModule",{value:!0});var Gj=hI.default=void 0,Y_e=q_e(tt()),Q_e=et();Gj=hI.default=(0,Y_e.default)((0,Q_e.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var mI={},X_e=Je;Object.defineProperty(mI,"__esModule",{value:!0});var Kj=mI.default=void 0,Z_e=X_e(tt()),J_e=et();Kj=mI.default=(0,Z_e.default)((0,J_e.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"Launch");var gI={},eTe=Je;Object.defineProperty(gI,"__esModule",{value:!0});var qj=gI.default=void 0,tTe=eTe(tt()),nTe=et();qj=gI.default=(0,tTe.default)((0,nTe.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew");function rTe(){var E,I,R,$;const e=" — ",{username:t}=Gs(),{data:n,reload:r,element:o}=Xn("get_status"),{data:s}=Xn("get_vfs"),{data:i}=Xn(t&&"get_account"),l=Xn("get_config",{only:["https_port","cert","private_key","proxies","update_to_beta"]}),{list:a}=Ol("get_plugins"),[c,f]=u.useState(!1),{list:p}=Ol(c&&"get_plugin_updates"),[h,y]=u.useState();if(o||!n)return o;const{http:v,https:m}=n,C=!(v!=null&&v.listening)&&(m!=null&&m.listening)?"s":"",w=C?m:(v==null?void 0:v.listening)&&v,b=w&&`http${C}://`+window.location.hostname+(w.port===(C?443:80)?"":":"+w.port),x=Ze.pick(n,["http","https"]),P=v0(x,j=>j.busy?[`port ${j.port} already used by ${j.busy}${e}choose a `,qg("different port"),` or stop ${j.busy}`]:j.error),k=P&&qc(Object.entries(P).map(([j,N])=>N&&[Kn(`Protocol <u>${j}</u> cannot work: `),N,(yI(N)||bI(N))&&[e,u.createElement(hl,{onClick(){Uy().then(()=>om(999)).then(l.reload).then(r)}},"make one")," or ",e,qg("provide adequate files")]]));return u.createElement(ze,{display:"flex",gap:2,flexDirection:"column",alignItems:"flex-start",height:"100%"},t&&ro("","Welcome "+t),k.length?xh(k.map(j=>ro("error",xh(j)))):ro("success","Server is working"),s?!((I=(E=s.root)==null?void 0:E.children)!=null&&I.length)&&!((R=s.root)!=null&&R.source)?ro("warning","You have no files shared",e,sTe("add some")):ro("",Kn("This is the Admin-panel, where you manage your server. Access your files on "),u.createElement(os,{target:"frontend",href:"../.."},"Front-end",u.createElement(Kj,{sx:{verticalAlign:"sub",ml:".2em"}}))):u.createElement(uy),!b&&ro("warning","Frontend unreachable: ",Ze.map(P,(j,N)=>N+" "+(j?"is in error":"is off")).join(", "),!k.length&&[e,qg("switch http or https on")]),a.find(j=>j.badApi)&&ro("warning","Some plugins may be incompatible"),!(i!=null&&i.adminActualAccess)&&ro("",Kn("On <u>localhost</u> you don't need to login"),e,"to access Admin-panel from another computer ",u.createElement(_0,{to:"accounts"},Kn("create an account with *admin* permission"))),ZS(l,n)&&ro("warning",ZS(l,n),e,qg("set the number of proxies"),e,"unless you are sure and you can ",u.createElement(Yn,{size:"small",onClick(){return ot(this,null,function*(){(yield mr("Go on only if you know what you are doing"))&&(yield ut("set_config",{values:{ignore_proxies:!0}}))&&l.reload()})}},"ignore this warning"),e,_a("Proxy-warning","Explanation")),((($=l.data)==null?void 0:$.proxies)>0||(n==null?void 0:n.proxyDetected))&&ro("",_a("Reverse-proxy","Read our guide on proxies")),n.frpDetected&&ro("warning",'FRP is detected. It should not be used with "type = tcp" with HFS. Possible solutions are',u.createElement("ol",{},u.createElement("li",{},"configure FRP with type=http (best solution)"),u.createElement("li",{},Kn("configure FRP to connect to HFS <u>not</u> with 127.0.0.1 (safe, but you won't see users' IPs)")),u.createElement("li",{},`disable "admin access for localhost" in HFS (safe, but you won't see users' IPs)`))),ro("",_a("","See the documentation")," and ",u.createElement(os,{target:"support",href:g0+"discussions"},"get support")),p.length>0&&ro("success","Updates available for plugin(s): "+p.map(j=>j.id).join(", ")),n.updatePossible==="local"?u.createElement(Ro,{icon:Iv,onClick:()=>zC()},"Update from local file"):h?Rl(Ze.find(h,"isNewer"),j=>!h.length||!n.updatePossible&&!j?ro("","No update available"):j&&!n.updatePossible?ro("success",`Version ${j.name} available`):u.createElement(Gr,{vert:!0},h.map(N=>u.createElement(Gr,{key:N.name,alignItems:"flex-start",flexWrap:"wrap"},u.createElement(J1,{},u.createElement(e0,{},u.createElement(Ro,it(ye({icon:Iv},!N.isNewer&&N.prerelease&&{color:"warning",variant:"outlined"}),{onClick:()=>zC(N.tag_name)}),pi("Install ",N.name,N.isNewer?"":" (older)")),u.createElement(ze,{mt:1},oTe(N.body)))))))):u.createElement(Ro,{variant:"outlined",icon:Iv,onClick(){return f(!0),ut("check_update").then(j=>y(j.options),kt)},onContextMenu(j){return ot(this,null,function*(){if(j.preventDefault(),!n.updatePossible)return kt("Automatic update is only for binary versions","warning");const N=yield im("Enter a link to the zip to install");N&&(yield zC(N))})},title:n.updatePossible&&"Right-click if you want to install a zip"},"Check for updates"))}function oTe(e){return Kn(e,{onText:t});function t(n){return PE(n,new RegExp("(?<=^|\\W)#(\\d+)\\b","g"),r=>u.createElement(os,{href:g0+"issues/"+r[1],target:"_blank"},u.createElement(qj)))}}function zC(e){return ot(this,null,function*(){if(!(yield mr("Installation may take less than a minute, depending on the speed of your server")))return;rr("Downloading"),yield ut("update",{tag:e}),rr("Restarting");const t=Date.now();let n;for(;yield ut("NONE").then(()=>0,r=>!r.code);)!n&&Date.now()-t>15e3&&(n=kt("This is taking too long, please check your server","warning")),yield om(500);n==null||n.close(),p3(on,"loginRequired",()=>on.loginRequired=!1),yield kt("Procedure complete","success"),window.location.reload()})}function ro(e,...t){return u.createElement(ze,{fontSize:"x-large",color:n=>{var r;return e&&((r=n.palette[e])==null?void 0:r.main)}},u.createElement({success:Gj,info:Cy,"":Cy,warning:E0,error:P0}[e],{sx:{mr:1,color:e?void 0:"primary.main"}}),...t)}function sTe(e="File System page"){return u.createElement(_0,{to:"fs"},e)}function qg(e="Options page"){return u.createElement(_0,{to:"options"},e)}function ZS(e,t){return e.data&&!e.data.proxies&&(t==null?void 0:t.proxyDetected)&&"A proxy was detected but none is configured"}var Yj={},iTe=an&&an.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),br=an&&an.__assign||function(){return br=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},br.apply(this,arguments)},lTe=an&&an.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),aTe=an&&an.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),cTe=an&&an.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&lTe(t,e,n);return aTe(t,e),t},uTe=an&&an.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};Object.defineProperty(Yj,"__esModule",{value:!0});var ip=cTe(u),dTe=13,fTe=9,pTe=8,hTe=89,Yg=90,mTe=77,cA=57,uA=219,dA=222,fA=192,gTe=27,pA=100,vTe=3e3,yTe=typeof window!="undefined"&&"navigator"in window&&/Win/i.test(navigator.platform),VC=typeof window!="undefined"&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),Mv="npm__react-simple-code-editor__textarea",bTe=`
760
+ /**
761
+ * Reset the text fill color so that placeholder is visible
762
+ */
763
+ .`.concat(Mv,`:empty {
764
+ -webkit-text-fill-color: inherit !important;
765
+ }
766
+
767
+ /**
768
+ * Hack to apply on some CSS on IE10 and IE11
769
+ */
770
+ @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
771
+ /**
772
+ * IE doesn't support '-webkit-text-fill-color'
773
+ * So we use 'color: transparent' to make the text transparent on IE
774
+ * Unlike other browsers, it doesn't affect caret color in IE
775
+ */
776
+ .`).concat(Mv,` {
777
+ color: transparent !important;
778
+ }
779
+
780
+ .`).concat(Mv,`::selection {
781
+ background-color: #accef7 !important;
782
+ color: transparent !important;
783
+ }
784
+ }
785
+ `),wTe=function(e){iTe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={capture:!0},n._recordCurrentState=function(){var r=n._input;if(r){var o=r.value,s=r.selectionStart,i=r.selectionEnd;n._recordChange({value:o,selectionStart:s,selectionEnd:i})}},n._getLines=function(r,o){return r.substring(0,o).split(`
786
+ `)},n._recordChange=function(r,o){var s,i,l;o===void 0&&(o=!1);var a=n._history,c=a.stack,f=a.offset;if(c.length&&f>-1){n._history.stack=c.slice(0,f+1);var p=n._history.stack.length;if(p>pA){var h=p-pA;n._history.stack=c.slice(h,p),n._history.offset=Math.max(n._history.offset-h,0)}}var y=Date.now();if(o){var v=n._history.stack[n._history.offset];if(v&&y-v.timestamp<vTe){var m=/[^a-z0-9]([a-z0-9]+)$/i,C=(s=n._getLines(v.value,v.selectionStart).pop())===null||s===void 0?void 0:s.match(m),w=(i=n._getLines(r.value,r.selectionStart).pop())===null||i===void 0?void 0:i.match(m);if(C!=null&&C[1]&&(!((l=w==null?void 0:w[1])===null||l===void 0)&&l.startsWith(C[1]))){n._history.stack[n._history.offset]=br(br({},r),{timestamp:y});return}}}n._history.stack.push(br(br({},r),{timestamp:y})),n._history.offset++},n._updateInput=function(r){var o=n._input;o&&(o.value=r.value,o.selectionStart=r.selectionStart,o.selectionEnd=r.selectionEnd,n.props.onValueChange(r.value))},n._applyEdits=function(r){var o=n._input,s=n._history.stack[n._history.offset];s&&o&&(n._history.stack[n._history.offset]=br(br({},s),{selectionStart:o.selectionStart,selectionEnd:o.selectionEnd})),n._recordChange(r),n._updateInput(r)},n._undoEdit=function(){var r=n._history,o=r.stack,s=r.offset,i=o[s-1];i&&(n._updateInput(i),n._history.offset=Math.max(s-1,0))},n._redoEdit=function(){var r=n._history,o=r.stack,s=r.offset,i=o[s+1];i&&(n._updateInput(i),n._history.offset=Math.min(s+1,o.length-1))},n._handleKeyDown=function(r){var o=n.props,s=o.tabSize,i=o.insertSpaces,l=o.ignoreTabKey,a=o.onKeyDown;if(!(a&&(a(r),r.defaultPrevented))){r.keyCode===gTe&&r.currentTarget.blur();var c=r.currentTarget,f=c.value,p=c.selectionStart,h=c.selectionEnd,y=(i?" ":" ").repeat(s);if(r.keyCode===fTe&&!l&&n.state.capture)if(r.preventDefault(),r.shiftKey){var v=n._getLines(f,p),m=v.length-1,C=n._getLines(f,h).length-1,w=f.split(`
787
+ `).map(function(j,N){return N>=m&&N<=C&&j.startsWith(y)?j.substring(y.length):j}).join(`
788
+ `);if(f!==w){var b=v[m];n._applyEdits({value:w,selectionStart:b!=null&&b.startsWith(y)?p-y.length:p,selectionEnd:h-(f.length-w.length)})}}else if(p!==h){var v=n._getLines(f,p),x=v.length-1,P=n._getLines(f,h).length-1,b=v[x];n._applyEdits({value:f.split(`
789
+ `).map(function(_,T){return T>=x&&T<=P?y+_:_}).join(`
790
+ `),selectionStart:b&&/\S/.test(b)?p+y.length:p,selectionEnd:h+y.length*(P-x+1)})}else{var k=p+y.length;n._applyEdits({value:f.substring(0,p)+y+f.substring(h),selectionStart:k,selectionEnd:k})}else if(r.keyCode===pTe){var E=p!==h,I=f.substring(0,p);if(I.endsWith(y)&&!E){r.preventDefault();var k=p-y.length;n._applyEdits({value:f.substring(0,p-y.length)+f.substring(h),selectionStart:k,selectionEnd:k})}}else if(r.keyCode===dTe){if(p===h){var R=n._getLines(f,p).pop(),O=R==null?void 0:R.match(/^\s+/);if(O!=null&&O[0]){r.preventDefault();var $=`
791
+ `+O[0],k=p+$.length;n._applyEdits({value:f.substring(0,p)+$+f.substring(h),selectionStart:k,selectionEnd:k})}}}else if(r.keyCode===cA||r.keyCode===uA||r.keyCode===dA||r.keyCode===fA){var L=void 0;r.keyCode===cA&&r.shiftKey?L=["(",")"]:r.keyCode===uA?r.shiftKey?L=["{","}"]:L=["[","]"]:r.keyCode===dA?r.shiftKey?L=['"','"']:L=["'","'"]:r.keyCode===fA&&!r.shiftKey&&(L=["`","`"]),p!==h&&L&&(r.preventDefault(),n._applyEdits({value:f.substring(0,p)+L[0]+f.substring(p,h)+L[1]+f.substring(h),selectionStart:p,selectionEnd:h+2}))}else(VC?r.metaKey&&r.keyCode===Yg:r.ctrlKey&&r.keyCode===Yg)&&!r.shiftKey&&!r.altKey?(r.preventDefault(),n._undoEdit()):(VC?r.metaKey&&r.keyCode===Yg&&r.shiftKey:yTe?r.ctrlKey&&r.keyCode===hTe:r.ctrlKey&&r.keyCode===Yg&&r.shiftKey)&&!r.altKey?(r.preventDefault(),n._redoEdit()):r.keyCode===mTe&&r.ctrlKey&&(!VC||r.shiftKey)&&(r.preventDefault(),n.setState(function(j){return{capture:!j.capture}}))}},n._handleChange=function(r){var o=r.currentTarget,s=o.value,i=o.selectionStart,l=o.selectionEnd;n._recordChange({value:s,selectionStart:i,selectionEnd:l},!0),n.props.onValueChange(s)},n._history={stack:[],offset:-1},n._input=null,n}return t.prototype.componentDidMount=function(){this._recordCurrentState()},Object.defineProperty(t.prototype,"session",{get:function(){return{history:this._history}},set:function(n){this._history=n.history},enumerable:!1,configurable:!0}),t.prototype.render=function(){var n=this,r=this.props,o=r.value,s=r.style,i=r.padding,l=r.highlight,a=r.textareaId,c=r.textareaClassName,f=r.autoFocus,p=r.disabled,h=r.form,y=r.maxLength,v=r.minLength,m=r.name,C=r.placeholder,w=r.readOnly,b=r.required,x=r.onClick,P=r.onFocus,k=r.onBlur,E=r.onKeyUp;r.onKeyDown,r.onValueChange,r.tabSize,r.insertSpaces,r.ignoreTabKey;var I=r.preClassName,R=uTe(r,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),O={paddingTop:typeof i=="object"?i.top:i,paddingRight:typeof i=="object"?i.right:i,paddingBottom:typeof i=="object"?i.bottom:i,paddingLeft:typeof i=="object"?i.left:i},$=l(o);return ip.createElement("div",br({},R,{style:br(br({},lp.container),s)}),ip.createElement("pre",br({className:I,"aria-hidden":"true",style:br(br(br({},lp.editor),lp.highlight),O)},typeof $=="string"?{dangerouslySetInnerHTML:{__html:$+"<br />"}}:{children:$})),ip.createElement("textarea",{ref:function(L){return n._input=L},style:br(br(br({},lp.editor),lp.textarea),O),className:Mv+(c?" ".concat(c):""),id:a,value:o,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:x,onKeyUp:E,onFocus:P,onBlur:k,disabled:p,form:h,maxLength:y,minLength:v,name:m,placeholder:C,readOnly:w,required:b,autoFocus:f,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),ip.createElement("style",{dangerouslySetInnerHTML:{__html:bTe}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(ip.Component),CTe=Yj.default=wTe,lp={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}};const vI=u.forwardRef((r,n)=>{var o=r,{style:e}=o,t=Lt(o,["style"]);return u.createElement(CTe,ye({highlight:vhe,padding:10,tabSize:4,insertSpaces:!0,ignoreTabKey:!1,style:ye({fontFamily:"ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace",fontSize:"1em",flex:1,background:"#8883",borderBottom:"1px solid #bbb"},e)},t))});function xTe(s){var i=s,{onChange:e,value:t,onBlur:n,setApi:r}=i,o=Lt(i,["onChange","value","onBlur","setApi"]);const[l,a]=u.useState(t||"");return u.createElement(Wa,it(ye({multiline:!0,fullWidth:!0,value:l,InputProps:{inputComponent:STe},onChange(c){a(c.target.value)},onBlur(c){n==null||n(c),e(c.target.value,{was:t,event:c})}},o),{onKeyDown(c){var v;if((v=o.onKeyDown)==null||v.call(o,c),s0(c)==="Enter")return e(l,{was:t,event:c});if(!c.altKey||c.key!=="Tab")return;c.preventDefault();const f=document.querySelectorAll(D5),p=Ze.indexOf(f,c.target),h=f.length,y=(p+(c.shiftKey?-1:1)+h)%h;f[y].focus(),console.debug(f[y])}}))}const STe=u.forwardRef((r,n)=>{var o=r,{onChange:e}=o,t=Lt(o,["onChange"]);return u.createElement(ze,{sx:{width:"100%",textarea:{outline:0}}},u.createElement(vI,it(ye({ref:n,padding:2,style:{background:"initial",borderBottom:"initial"}},t),{onValueChange:s=>e({target:{value:s}}),onKeyDown(s){s0(s)==="Enter"&&s.preventDefault()}})))});let $a,JS;const Qj=oE({changes:{}});sE(on,e=>{e.some(t=>t[1][0]==="config")&&Xj()});const Hy={log:"Access",error_log:"Access error",console:"Console"},hA=Qi;function PTe(){var m;const{data:e,reload:t,element:n}=Xn("get_config",{omit:["vfs"]}),r=Gs(),{changes:o}=iE(Qj),s=Xn(e&&"get_status"),i=s.data,l=JS=s.reload;u.useEffect(()=>void l(),[e]),u.useEffect(()=>()=>JS=void 0,[]);const a=Jo("sm"),c=(m=Xn("get_admins").data)==null?void 0:m.list;if(n)return n;if(s.error)return s.element;const f=$a!==e?on.config=$a=e:r.config,p={comp:Ho,min:1,unit:"KB/s",placeholder:"no limit",sm:6},h={comp:Ho,min:0,placeholder:"no limit",toField:C=>C||"",sm:4},y=f.https_port>=0;return u.createElement(Yc,{sx:{maxWidth:"60em"},values:f,set(C,w){on.config[w]=C},stickyBar:!0,onError:kt,save:{onClick:v,sx:lf(Object.keys(o).length>0)},barSx:{gap:2},addToBar:[u.createElement(Yn,{onClick(){t(),l()},startIcon:u.createElement(x0)},"Reload"),u.createElement(Yn,{component:XP,to:"/edit",startIcon:u.createElement(ck)},a?"Edit config file":"File")],defaults(){return{sm:6}},fields:[{k:"port",comp:gA,md:4,label:"HTTP port",status:(i==null?void 0:i.http)||!0,suggestedPort:80},{k:"https_port",comp:gA,md:4,label:"HTTPS port",status:(i==null?void 0:i.https)||!0,suggestedPort:443,onChange(C){return C>=0&&!y&&!f.cert&&Uy().then(),C}},i&&{k:"listen_interface",comp:Wr,md:4,options:[{label:"any",value:""},"127.0.0.1","::1",...i==null?void 0:i.ips]},y&&f.port>=0&&{k:"force_https",comp:Dn,md:4,label:"Force HTTPS",helperText:"Not applied to localhost"},y&&{k:"cert",comp:Hp,md:4,label:"HTTPS certificate file",helperText:_a("HTTPS#certificate","What is this?"),error:Rl(i==null?void 0:i.https.error,C=>yI(C)&&(i.https.listening?C:[C," - ",u.createElement(hl,{key:"fix",onClick:Uy},"make one")]))},y&&ye({k:"private_key",comp:Hp,md:4,label:"HTTPS private key file"},Rl(i==null?void 0:i.https.error,C=>bI(C)?{error:!0,helperText:C}:null)),{k:"favicon",comp:Hp,placeholder:"None",fileMask:"*.png|*.ico|*.jpg|*.jpeg|*.gif|*.svg",helperText:"The icon associated to your website"},{k:"allowed_referer",placeholder:"any",label:"Links from other websites",comp:ETe,sm:12,md:6},{k:"open_browser_at_start",comp:Dn,label:"Open Admin-panel at start",helperText:"Browser is automatically launched with HFS"},{k:"localhost_admin",comp:Dn,label:"Unprotected admin on localhost",getError:C=>!C&&(c==null?void 0:c.length)===0&&"First create at least one admin account",helperText:"Access Admin-panel without entering credentials"},it(ye({k:"max_kbps"},p),{label:"Limit output",helperText:"Doesn't apply to localhost"}),it(ye({k:"max_kbps_per_ip"},p),{label:"Limit output per-IP"}),it(ye({k:On.max_downloads},h),{helperText:"Number of simultaneous downloads"}),it(ye({k:On.max_downloads_per_ip},h),{label:"Max downloads per-IP"}),it(ye({k:On.max_downloads_per_account},h),{label:"Max downloads per-account",helperText:"Overrides other limits"}),{k:"dont_overwrite_uploading",comp:Dn,sm:12,md:6,label:"Don't overwrite uploading",helperText:"Files will be numbered to avoid overwriting"},{k:"delete_unfinished_uploads_after",comp:Ho,md:3,min:0,unit:"seconds",placeholder:"Never",helperText:"Leave empty to never delete"},{k:"min_available_mb",comp:Ho,md:3,min:0,unit:"MBytes",placeholder:"None",label:"Min. available disk space",helperText:"Reject uploads that don't comply"},{k:"keep_session_alive",comp:Dn,helperText:"Keeps you logged in while the page is left open and the computer is on"},{k:"session_duration",comp:Ho,sm:3,min:5,unit:"seconds",required:!0},{k:"zip_calculate_size_for_seconds",comp:Ho,sm:3,label:"Calculate ZIP size for",unit:"seconds",helperText:"If time is not enough, the browser will not show download percentage"},{k:"update_to_beta",comp:Dn,helperText:"Include betas searching updates"},{k:"admin_net",comp:hA,label:"Admin-panel accessible from",placeholder:"any address",helperText:u.createElement(u.Fragment,{},"IP address of browser machine. ",u.createElement(xp))},{k:"descript_ion",comp:Dn,label:"Support file DESCRIPT.ION",helperText:"Old file format, used for comments"},{k:"descript_ion_encoding",label:"Encoding of file DESCRIPT.ION",comp:Wr,disabled:!f.descript_ion,options:["utf8",720,775,819,850,852,862,869,874,808,...Ze.range(1250,1257),10029,20866,21866]},{k:"proxies",comp:Ho,min:0,max:9,label:"How many HTTP proxies between this server and users?",error:ZS(f,i),helperText:"Wrong number will prevent detection of users' IP address"},{k:"mime",comp:Oh,label:!1,reorder:!0,prepend:!0,md:6,fields:[{k:"k",label:"File mask",helperText:u.createElement(xp),$width:1,$column:{renderCell:({value:C,id:w})=>u.createElement("code",{},C,C==="*"&&w<Ze.size(f.mime)-1&&Hr(E0,Kn("Mime with `*` should be the last, because first matching row applies"),{color:"warning.main",ml:1}))}},{k:"v",label:"Mime type",placeholder:"auto",$width:2,toField:C=>C==="auto"?"":C,fromField:C=>C?C.toLowerCase():"auto",helperText:"Leave empty to get automatic value"}],toField:C=>Object.entries(C||{}).map(([w,b])=>({k:w,v:b})),fromField:C=>Object.fromEntries(C.map(w=>[w.k,w.v]))},{k:"block",label:!1,comp:Oh,prepend:!0,sm:12,fields:[{k:"ip",label:"Blocked IP",sm:6,required:!0,helperText:u.createElement(xp)},{k:"expire",$type:"dateTime",minDate:new Date,sm:6,helperText:"Leave empty for no expiration"},{k:"comment"}]},{k:"server_code",comp:xTe,sm:12,getError:C=>ahe(()=>new Function(C)&&null,w=>w.message),helperText:Kn(`This code works similarly to [a plugin](${g0}blob/main/dev-plugins.md) (with some limitations)`)},u.createElement(mA,{title:"Log"}),{k:"log",label:Hy.log,md:3,helperText:"Requests are logged here"},{k:"error_log",label:Hy.error_log,md:3,placeholder:"errors go to main log",helperText:"If you want errors in a different log"},{k:"log_rotation",comp:Wr,md:3,options:[{value:"",label:"disabled"},"daily","weekly","monthly"],helperText:"To keep log-files smaller"},{k:"dont_log_net",comp:hA,label:"Don't log address",md:3,placeholder:"no exception",helperText:u.createElement(xp)},{k:"log_gui",sm:4,comp:Dn,label:"Log interface loading",helperText:"Some requests are necessary to load the interface"},{k:"log_api",sm:4,comp:Dn,label:"Log API requests",helperText:"Requests for commands"},{k:"log_ua",sm:4,comp:Dn,label:"Log User-Agent",helperText:"Contains browser and possibly OS information"},u.createElement(mA,{title:"Front-end",subtitle:"Following options affect only the front-end"}),{k:"file_menu_on_link",comp:Wr,label:"Access file menu",md:4,options:{"by clicking on file name":!0,"by dedicated button":!1}},{k:"title",md:8,helperText:"You can see this in the tab of your browser"},{k:"tile_size",comp:Ho,xs:6,sm:4,min:0,max:Qpe,label:"Default tiles size",helperText:"Zero = list mode"},{k:"theme",comp:Wr,xs:6,sm:4,options:Zpe},{k:"sort_by",comp:Wr,xs:6,sm:4,options:Xpe},{k:"invert_order",comp:Dn,xs:6,sm:4},{k:"folders_first",comp:Dn,xs:6,sm:4},{k:"sort_numerics",comp:Dn,xs:6,sm:4,label:"Sort numeric names"}]});function v(){return ot(this,null,function*(){var $,L;if(Ze.isEmpty(o))return rr("Nothing to save");const C=window.location,w=["port","https_port"];if(w.every(j=>o[j]!==void 0))return kt("You cannot change both http and https port at once. Please, do one, save, and then do the other.","warning");const b=[($=i==null?void 0:i.http)==null?void 0:$.listening,(L=i==null?void 0:i.https)==null?void 0:L.listening],x=location.protocol==="https:";x&&(w.reverse(),b.reverse());const P=o[w[0]],k=f[w[1]],E=k>0&&b[1],I=x?"http":"https";if(P<0&&!E)return kt("You cannot switch off this port unless you have a working fixed port for "+I,"warning");if(P===0&&!E)return kt("You cannot randomize this port unless you have a working fixed port for "+I,"warning");if(P>0&&!(yield mr("You are changing the port and you may be disconnected")))return;const R="cert"in o||"private_key"in o;if(x&&R&&!(yield mr("You may disrupt https service, kicking you out")))return;if(yield ut("set_config",{values:o}),P!==void 0||o.listen_interface&&!(C.hostname==="localhost"&&W5(o.listen_interface))){yield kt("You are being redirected but in some cases this may fail. Hold on tight!","warning");const j=G5(o.listen_interface||C.hostname);return window.location.href=P<=0?`${x?"http:":"https:"}//${j}:${k}${C.pathname}`:`${C.protocol}//${j}:${P||f[w[0]]}${C.pathname}`}const O="port"in o||"https_port"in o;setTimeout(l,O||R?1e3:0),Object.assign($a,o),Xj(),rr("Changes applied","success")})}}function mA({title:e,subtitle:t}){return u.createElement(bh,{},u.createElement("h3",{style:{margin:0}},e),u.createElement(ze,{fontSize:"small"},t))}function Xj(){const e={};if(on.config)for(const[t,n]of Object.entries(on.config))JSON.stringify(n)!==JSON.stringify($a==null?void 0:$a[t])&&(e[t]=n);Qj.changes=e}function yI(e){return/certificate/.test(e)}function bI(e){return/private key/.test(e)}function gA({label:e,value:t,onChange:n,setApi:r,status:o,suggestedPort:s=1,error:i,helperText:l}){const a=u.useRef(s);t>0&&(a.current=t);const c=Number(t>0?a.current:t)||0;let f=o==null?void 0:o.error;return f&&(yI(f)||bI(f)?f=void 0:i=!0),u.createElement(ze,{},u.createElement(ze,{display:"flex"},u.createElement(Wr,{sx:{flexGrow:1},label:e,error:i,value:c,options:[{label:"off",value:-1},{label:"random",value:0},{label:"choose",value:a.current}],onChange:n}),t>0&&u.createElement(Ho,{label:"Number",fullWidth:!1,value:t,onChange:n,setApi:r,error:i,min:1,max:65535,helperText:l,sx:{minWidth:"5.5em"}})),o&&u.createElement(nf,{error:i},o===!0?"...":f!=null?f:(o==null?void 0:o.listening)&&"Correctly working on port "+o.port))}function ETe({label:e,value:t,onChange:n,error:r}){const o=!t||t==="-",s="example.com";return u.createElement(ze,{display:"flex"},u.createElement(Wr,{label:e,value:o?t:s,options:{"allow all":"","forbid all":"-","allow some":s},onChange:n,error:r,sx:o?void 0:{maxWidth:"11em"}}),!o&&u.createElement(Qi,{label:"Domain to allow",value:t,placeholder:"example.com",onChange:n,error:r,helperText:u.createElement(xp)}))}function xp(){return _a("Wildcards","Wildcards supported")}function Uy(){return ot(this,null,function*(){return new Promise(e=>{const{close:t}=po({icon:lk,title:"Get a certificate",onClose:e,Content:()=>u.createElement(ze,{p:1,lineHeight:1.5},u.createElement(ze,{},"HTTPS needs a certificate to work."),u.createElement(ze,{},"We suggest you to ",u.createElement(_0,{to:"internet",onClick:t},"get a free but proper certificate"),"."),u.createElement(ze,{},"If you don't have a domain ",u.createElement(hl,{onClick:n},"make a self-signed certificate")," but that ",_a("HTTPS#certificate"," won't be perfect"),"."))});function n(){return ot(this,null,function*(){if(!window.crypto.subtle)return kt("Retry this procedure on localhost","warning");const r=i3();try{yield om(50);const o=yield ut("save_pem",yield kTe({}));r(),yield ut("set_config",{values:o}),$a&&Object.assign($a,o),setTimeout(JS,1e3),Object.assign(on.config,o),t(),yield kt("Certificate saved","success")}finally{r()}})}})})}function kTe(e){return ot(this,null,function*(){const{pki:t}=window.forge,n=t.rsa.generateKeyPair(2048),r=t.createCertificate();r.publicKey=n.publicKey,r.serialNumber="01",r.validity.notBefore=new Date,r.validity.notAfter=new Date,r.validity.notAfter.setFullYear(r.validity.notBefore.getFullYear()+1);const o=Object.entries(e).map(s=>({name:s[0],value:s[1]}));return r.setSubject(o),r.setIssuer(o),r.sign(n.privateKey),{cert:t.certificateToPem(r),private_key:t.privateKeyToPem(n.privateKey)}})}var wI={},ITe=Je;Object.defineProperty(wI,"__esModule",{value:!0});var Zj=wI.default=void 0,MTe=ITe(tt()),_Te=et();Zj=wI.default=(0,MTe.default)((0,_Te.jsx)("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13"}),"SmartToy");function TTe(){const[e,t]=u.useState(0),n=fhe(Hy),{pause:r,pauseButton:o}=d3(),[s,i]=f3(a=>({title:"Show/hide APIs",icon:Zj,sx:{rotate:a?"0deg":"180deg"},disabled:e>=2}),!0),l=!Jo("sm")&&{error_log:"Errors"};return u.createElement(u.Fragment,{},u.createElement(Gr,{gap:0},u.createElement(V2,{value:e,onChange(a,c){t(c)}},n.map(a=>u.createElement(py,{label:Ze.get(l,a)||Hy[a],key:a}))),u.createElement(ze,{flex:1}),i,o),u.createElement($Te,{key:e,pause:r,showApi:s,file:n[e]}))}function $Te({file:e,pause:t,showApi:n}){const[r,o]=u.useState(!1),[s,i]=u.useState(!1),{list:l,error:a,connecting:c}=Ol("get_log",{file:e},{invert:!0,pause:t,map(p){var y;const{extra:h}=p;return h!=null&&h.country&&!r&&o(!0),h!=null&&h.ua&&!s&&i(!0),p.notes=h!=null&&h.dl?"fully downloaded":p.method==="PUT"||h!=null&&h.ul?"uploaded "+$l(h.size,{sep:Bpe}):p.status===sf&&((y=p.uri)!=null&&y.startsWith(Yu+"loginSrp"))?"login failed"+pi(`:
792
+ `,h==null?void 0:h.u):p.notes,p}}),f={field:"ts",headerName:"Timestamp",type:"dateTime",width:90,valueGetter:({value:p})=>new Date(p),renderCell:({value:p})=>u.createElement(u.Fragment,{},p.toLocaleDateString(),u.createElement("br"),p.toLocaleTimeString())};return u.createElement(hm,{error:a,loading:c,rows:u.useMemo(()=>{var p;return n||((p=l==null?void 0:l[0])==null?void 0:p.uri)===void 0?l:l.filter(h=>!h.uri.startsWith(Yu))},[l,n]),compact:!0,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}},columns:e==="console"?[f,{field:"k",headerName:"Level",hideUnder:"sm"},{field:"msg",headerName:"Message",flex:1,mergeRender:{other:"k",override:{valueFormatter:({value:p})=>p!=="log"&&p}}}]:[{field:"ip",headerName:"Address",flex:.6,minWidth:100,maxWidth:230,mergeRender:{other:"user",display:"flex",justifyContent:"space-between",gap:".5em",override:{renderCell:({value:p,row:h})=>{var y;return u.createElement(u.Fragment,{},u.createElement("span",{},p),u.createElement(xy,{code:(y=h.extra)==null?void 0:y.country}))}}}},{headerName:"Country",field:"country",valueGetter:({row:p})=>{var h;return(h=p.extra)==null?void 0:h.country},hidden:!r,hideUnder:"xl",renderCell:({value:p})=>u.createElement(xy,{code:p,def:"-"})},{field:"user",headerName:"Username",flex:.3,maxWidth:200,hideUnder:"xl"},f,{field:"method",headerName:"Method",width:80,hideUnder:"xl"},{field:"status",headerName:"Code",type:"number",width:70,hideUnder:"xl"},{field:"length",headerName:"Size",type:"number",hideUnder:"md",valueFormatter:({value:p})=>$l(p)},{headerName:"Agent",hideUnder:"md",field:"ua",width:60,hidden:!s,valueGetter:({row:p})=>{var h;return(h=p.extra)==null?void 0:h.ua},renderCell:({value:p})=>Jj(p)},{field:"notes",headerName:"Notes",width:105,hideUnder:"sm",cellClassName:"wrap",renderCell:({value:p})=>p&&Kn(p)},{field:"uri",headerName:"URI",flex:2,minWidth:100,mergeRender:{other:"method",fontSize:"small"},renderCell:({value:p,row:h})=>{var b;const[y,v]=she("?",p).map(decodeURIComponent),m=(b=h.extra)==null?void 0:b.ul;if(m)return typeof m=="string"?m:y+m.join(" + ");if(!y.startsWith(Yu))return[y,v&&u.createElement(ze,{key:0,component:"span",color:"text.secondary",fontSize:"smaller"},"?",v)];const C=y.slice(Yu.length),w=v&&": "+Array.from(new URLSearchParams(v)).map(x=>{var P;return`${x[0]}=${(P=dhe(x[1]))!=null?P:x[1]}`}).join(" ; ");return"API "+C+w}}]})}function Jj(e){if(!e)return;const t="https://upload.wikimedia.org/wikipedia/commons/",n=whe(e),r=i(n,{Chrome:t+"e/e1/Google_Chrome_icon_%28February_2022%29.svg",Chromium:t+"f/fe/Chromium_Material_Icon.svg",Firefox:t+"a/a0/Firefox_logo%2C_2019.svg",Safari:t+"5/52/Safari_browser_logo.svg",Edge:t+"f/f6/Edge_Logo_2019.svg",Opera:t+"4/49/Opera_2015_icon.svg"}),o=Ze.findKey(RTe,l=>l.test(e)),s=o&&i(o,{android:t+"d/d7/Android_robot.svg",linux:t+"0/0a/Tux-shaded.svg",win:t+"0/0a/Unofficial_Windows_logo_variant_-_2002%E2%80%932012_%28Multicolored%29.svg",apple:t+"7/74/Apple_logo_dark_grey.svg"});return u.createElement(Nl,{title:e,children:u.createElement("span",{fontSize:"18px"},r||n," ",s)});function i(l,a){const c=a[l];return c&&u.createElement("img",{src:c,style:{height:"1em",verticalAlign:"bottom",marginRight:".2em"}})}}const RTe={apple:/Mac OS|iPhone OS/,win:/Windows NT/,android:/Android/,linux:/Linux/};function OTe(){return u.createElement(u.Fragment,{},u.createElement(ATe),u.createElement(LTe))}const DTe=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function ATe(){const{data:e,element:t}=Xn("get_status"),{data:n}=xfe("get_connection_stats");e&&n&&Object.assign(e,n);const r=Jo("xl"),o=Jo("md"),s=Jo("sm");return t||u.createElement(ze,{display:"flex",flexWrap:"wrap",gap:"1em",mb:2},r&&i("started"),r&&i("http",{label:"HTTP",render:l}),o&&i("https",{label:"HTTPS",render:l}),s&&i("connections"),i("sent",{render:$l,minWidth:"4em"}),s&&i("got",{render:$l,minWidth:"4em"}),i("outSpeed",{label:"Output speed",render:eP}),o&&i("inSpeed",{label:"Input speed",render:eP}));function i(a,{label:c,minWidth:f,render:p}={}){let h=Ze.get(e,a);if(h===void 0)return null;typeof h=="string"&&DTe.test(h)&&(h=new Date(h).toLocaleString());let y;return p&&(h=p(h),Array.isArray(h)&&([h,y]=h)),c||(c=Ze.capitalize(a.replaceAll("_"," "))),u.createElement(tm,{variant:"filled",color:y,label:u.createElement(u.Fragment,{},u.createElement("b",{},c),": ",u.createElement("span",{style:{display:"inline-block",minWidth:f}},h))})}function l(a){return a.listening?["port "+a.port,"success"]:a.error?[a.error,"error"]:"off"}}function LTe(){var a;const{list:e,error:t,props:n}=Ol("get_connections"),r=Xn("get_config",{only:[On.geo_enable]}),{monitorOnlyFiles:o}=Gs(),{pause:s,pauseButton:i}=d3(),l=u.useMemo(()=>e==null?void 0:e.filter(c=>!o||c.op).map((c,f)=>ye({id:f},c)),[!s&&e,o]);return u.createElement(u.Fragment,{},u.createElement(ze,{display:"flex",alignItems:"center"},u.createElement(Wr,{fullWidth:!1,value:o,onChange:c=>on.monitorOnlyFiles=c,options:{"Show only files":!0,"Show all connections":!1}}),u.createElement(ze,{flex:1}),i),u.createElement(hm,{error:t,rows:l,noRows:o&&"No downloads at the moment",columns:[{field:"ip",headerName:"Address",flex:1,maxWidth:400,renderCell:({row:c,value:f})=>G5(f)+" :"+c.port,mergeRender:{other:"user",fontSize:"small"}},{field:"country",hidden:((a=r.data)==null?void 0:a[On.geo_enable])!==!0,headerName:"Country",hideUnder:"md",renderCell:({value:c,row:f})=>u.createElement(xy,{code:c,ip:f.ip,def:"-"})},{field:"user",headerName:"User",hideUnder:"md"},{field:"started",headerName:"Started",type:"dateTime",width:100,hideUnder:"lg",valueFormatter:({value:c})=>new Date(c).toLocaleTimeString()},{field:"path",headerName:"File",flex:1.5,renderCell({value:c,row:f}){var p;if(!(!c||!f.op))return f.op==="browsing"?u.createElement(ze,{},c,u.createElement(ze,{fontSize:"x-small"},"browsing")):u.createElement(u.Fragment,{},u.createElement(c3,{icon:f.archive?w3:f.op==="upload"?am:BE,progress:(p=f.opProgress)!=null?p:f.opOffset,offset:f.opOffset,addTitle:f.opTotal&&"Total: "+$l(f.opTotal),sx:{mr:1}}),f.archive?u.createElement(ze,{},c,u.createElement(ze,{fontSize:"x-small",color:"text.secondary"},f.archive)):Rl(c==null?void 0:c.lastIndexOf("/"),h=>u.createElement(ze,{},c.slice(h+1),h>0&&u.createElement(ze,{fontSize:"x-small",color:"text.secondary"},c.slice(0,h)))))}},{field:"outSpeed",headerName:"Speed",width:110,hideUnder:"sm",type:"number",renderCell:({value:c,row:f})=>eP(Math.max(c||0,f.inSpeed||0)||void 0),mergeRender:{other:"sent",fontSize:"small",textAlign:"right"}},{field:"sent",headerName:"Sent",type:"number",hideUnder:"md",renderCell:({value:c,row:f})=>$l(Math.max(c||0,f.got||0))},{field:"v",headerName:"Protocol",align:"center",hideUnder:1/0,renderCell:({value:c})=>u.createElement(u.Fragment,{},"IPv"+c,Hr(T0,"HTTPS",{opacity:.5}))},{field:"agent",headerName:"Agent",hideUnder:"lg",renderCell:({value:c})=>Jj(c)}],actionsProps:{hideUnder:"sm"},actions:({row:c})=>[u.createElement(dn,{icon:y3,title:"Disconnect",onClick:()=>ut("disconnect",Ze.pick(c,["ip","port"])).then(()=>rr("Disconnection requested"))}),u.createElement(dn,{icon:b3,title:"Block IP",confirm:"Block address "+c.ip,disabled:c.ip===(n==null?void 0:n.you),onClick:()=>FTe(c.ip)})]}))}function FTe(e){return Ehe("block",t=>[...t,{ip:e}])}function eP(e){return e===void 0?"":rhe(e*1e3,{digits:1})}var CI={},NTe=Je;Object.defineProperty(CI,"__esModule",{value:!0});var ez=CI.default=void 0,BTe=NTe(tt()),jTe=et();ez=CI.default=(0,BTe.default)((0,jTe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20m6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9"}),"DoNotDisturb");var xI={},zTe=Je;Object.defineProperty(xI,"__esModule",{value:!0});var SI=xI.default=void 0,VTe=zTe(tt()),HTe=et();SI=xI.default=(0,VTe.default)((0,HTe.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group");var PI={},UTe=Je;Object.defineProperty(PI,"__esModule",{value:!0});var tz=PI.default=void 0,WTe=UTe(tt()),GTe=et();tz=PI.default=(0,WTe.default)((0,GTe.jsx)("path",{d:"M17 10.43V2H7v8.43c0 .35.18.68.49.86l4.18 2.51-.99 2.34-3.41.29 2.59 2.24L9.07 22 12 20.23 14.93 22l-.78-3.33 2.59-2.24-3.41-.29-.99-2.34 4.18-2.51c.3-.18.48-.5.48-.86m-4 1.8-1 .6-1-.6V3h2z"}),"MilitaryTech");var EI={},KTe=Je;Object.defineProperty(EI,"__esModule",{value:!0});var nz=EI.default=void 0,qTe=KTe(tt()),YTe=et();nz=EI.default=(0,qTe.default)((0,YTe.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person");var kI={},QTe=Je;Object.defineProperty(kI,"__esModule",{value:!0});var rz=kI.default=void 0,XTe=QTe(tt()),ZTe=et();rz=kI.default=(0,XTe.default)((0,ZTe.jsx)("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonAdd");var II={},JTe=Je;Object.defineProperty(II,"__esModule",{value:!0});var oz=II.default=void 0,e$e=JTe(tt()),vA=et();oz=II.default=(0,e$e.default)([(0,vA.jsx)("path",{d:"M15 2h-3.5l-1-1h-5l-1 1H1v2h14zm1 7c-.7 0-1.37.1-2 .29V5H2v12c0 1.1.9 2 2 2h5.68c1.12 2.36 3.53 4 6.32 4 3.87 0 7-3.13 7-7s-3.13-7-7-7m0 12c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"},"0"),(0,vA.jsx)("path",{d:"M16.5 12H15v5l3.6 2.1.8-1.2-2.9-1.7z"},"1")],"AutoDelete");function t$e({account:e,done:t,groups:n,addToBar:r,reload:o}){const{username:s}=Gs(),[i,l]=u.useState(e),[a,c]=u.useState([]);u.useEffect(()=>{var v,m;l(e),c(n.filter(C=>C!==e.username)),xhe()||(m=(v=h.current)==null?void 0:v.querySelector("input"))==null||m.focus()},[JSON.stringify(e)]);const f=!e.username,p=!i.hasPassword,h=u.useRef();return u.createElement(Yc,{formRef:h,values:i,set(v,m){l(C=>it(ye({},C),{[m]:v}))},barSx:ye({gap:2,width:"100%"},EE()),stickyBar:!0,addToBar:[!f&&u.createElement(dn,it(ye({icon:Bl,title:"Delete",confirm:"Delete?"},s===e.username&&{disabled:!0,title:"Cannot delete current account"}),{onClick:()=>ut("del_account",{username:e.username}).then(o)})),u.createElement(dn,{icon:oz,title:"Invalidate past sessions",doneMessage:!0,disabled:e.invalidated,onClick:()=>ut("invalidate_sessions",{username:e.username}).then(o)}),...y0(r)],fields:[{k:"username",label:p?"Group name":void 0,autoComplete:"off",required:!0,xl:p?12:4,getError:v=>v!==e.username&&ut("get_account",{username:v}).then(m=>(m==null?void 0:m.username)===e.username?"usernames are case-insensitive":"already used",()=>!1)},!p&&{k:"password",md:6,xl:4,type:"password",autoComplete:"new-password",required:f,label:f?"Password":"Change password"},!p&&{k:"password2",md:6,xl:4,type:"password",autoComplete:"new-password",label:"Repeat password",getError:(v,{values:m})=>(v||"")!==(m.password||"")&&"Enter same password"},{k:"disabled",comp:Dn,fromField:v=>!v,toField:v=>!v,label:"Enabled",xs:12,sm:6,xl:8,helperText:"Login is prevented if account is disabled, or if all its groups are disabled"},{k:"ignore_limits",comp:Dn,xs:"auto",helperText:i.ignore_limits?"Speed limits don't apply to this account":"Speed limits apply to this account"},ye({k:"admin",comp:Dn,fromField:v=>v||null,label:"Admin-panel access",xs:12,sm:6,xl:8,helperText:"To access THIS interface you are using right now"},!e.admin&&e.adminActualAccess&&{value:!0,helperText:"This permission is inherited"}),{k:"disable_password_change",comp:Dn,fromField:v=>!v,toField:v=>!v,label:"Allow password change",xs:"auto"},p&&u.createElement(Er,{severity:"info"},'To add users to this group, select the user and then click "Inherit"'),{k:"belongs",comp:I0,label:"Inherit from groups",options:a,helperText:"Specify groups to inherit permissions from"+(p?". A group can inherit from another group":"")+(a.length?"":". Now disabled because there are no groups to select, create one first.")},{k:"redirect",comp:zS,helperText:"If you want this account to be redirected to a specific folder/address at login time"}],onError:kt,save:{sx:lf(!by(i,e)),onClick(){return ot(this,null,function*(){const k=i,{password:v="",password2:m,adminActualAccess:C,hasPassword:w,invalidated:b}=k,x=Lt(k,["password","password2","adminActualAccess","hasPassword","invalidated"]);if(f){const E=yield ut("add_account",x);if(v)try{yield tP(i.username,v)}catch(I){throw ut("del_account",{username:i.username}).then(),I}t(E==null?void 0:E.username),rr("Account created","success");return}const P=yield ut("set_account",{username:e.username,changes:x});v&&(yield tP(i.username,v)),e.username===s&&(on.username=i.username),setTimeout(()=>rr("Account modified","success"),1),t(P==null?void 0:P.username)})}}})}function tP(e,t){return ot(this,null,function*(){const n=new Ec.SRPRoutines(new Ec.SRPParameters),r=yield Ec.createVerifierAndSalt(n,e,t);return ut("change_srp_others",{username:e,salt:String(r.s),verifier:String(r.v)}).catch(o=>{if(o.code!==zpe)throw o;return ut("change_password_others",{username:e,newPassword:t})})})}const HC={fieldSeparator:",",lineSeparator:`
793
+ `,quote:'"'},Qg={field:0,fieldOffset:0,line:0,lineOffset:0,quoted:!1,appendCell:!1,appendField:!1,appendRow:!1};class yA extends Error{constructor(t,n){super(`Invalid CSV at ${t}:${n}`)}}class n$e{constructor(t=HC){Ei(this,"_rows",[]);Ei(this,"_row",[]);Ei(this,"_cell","");Ei(this,"_options",HC);Ei(this,"_state",ye({},Qg));Ei(this,"_index",0);Ei(this,"_current","");Ei(this,"_previous","");Ei(this,"_quoteState",ye({},Qg));this._options=Object.assign({},HC,t)}parse(t){for(this.reset(),this._index=0;this._index<t.length;this._index++)this._state.appendCell=!0,this._previous=this._current,this._current=t[this._index],this.handleNext();if(this._row.length>0&&(this.addField(this.fieldValue(this._cell),this._row,this._state),this.addRow(this._row,this._rows,this._state)),this._state.quoted)throw new yA(this._quoteState.line,this._quoteState.lineOffset);return this.makeImmutable(),this._rows}get rows(){return this._rows}get json(){if(this.rows.length>0){const t=this.rows[0].filter(n=>typeof n=="string");return Object.freeze(this.rows.filter((n,r)=>n&&r>0).map(n=>{const r={};return t.forEach((o,s)=>{r[o]=n[s]}),Object.freeze(r)}))}return Object.freeze([])}handleNext(){this.handleQuote()||this.handleFieldSeparator()||this.handleLineSeparator(),this.processState()}handleQuote(){return this._current===this._options.quote?(this._quoteState=ye({},this._state),this._previous==="\\"?this.handleQuoteEscaped():this.handleQuoteNotEscaped(),!0):!1}handleQuoteEscaped(){this._cell=this._cell.slice(0,Math.max(0,this._cell.length-1))}handleQuoteNotEscaped(){if(this._cell.length===0||this._state.quoted)this._state.quoted=!this._state.quoted;else throw new yA(this._state.line,this._state.lineOffset);this._state.appendCell=!1}handleFieldSeparator(){return this._current===this._options.fieldSeparator?(this._state.quoted||(this._state.appendCell=!1,this._state.appendField=!0),!0):!1}handleLineSeparator(){return this._current===this._options.lineSeparator?(this._state.quoted||(this._state.appendCell=!1,this._state.appendField=!0,this._state.appendRow=!0),!0):!1}processState(){this._state.appendCell&&(this._cell+=this._current),this._state.appendField&&(this.addField(this.fieldValue(this._cell),this._row,this._state),this._cell=""),this._state.appendRow&&(this.addRow(this._row,this._rows,this._state),this._row=[]),this._state.lineOffset++,this._state.fieldOffset++}fieldValue(t){return t}addField(t,n,r){n.push(t),r.field++,r.fieldOffset=-1,r.appendField=!1}addRow(t,n,r){n.push(t),r.field=0,r.line++,r.lineOffset=-1,r.appendRow=!1}makeImmutable(){this.rows.forEach(t=>{t.forEach(n=>Object.freeze(n)),Object.freeze(t)}),Object.freeze(this._rows)}reset(){this._rows=[],this._row=[],this._cell="",this._state=ye({},Qg),this._index=0,this._current="",this._previous="",this._quoteState=ye({},Qg)}}function r$e(e){return ot(this,null,function*(){K5(t=>ot(this,null,function*(){const n=t==null?void 0:t[0];if(!n)return;const r=yield q5(n);if(!r)return;const s=new n$e().parse(r.trim()),i={comp:Ho,min:1,max:9,xs:6,typing:!0},l={skipFirstLines:0,usernameColumn:1,passwordColumn:2,groupColumn:3,redirectColumn:4,overwriteExistingAccounts:!1},a=yield Sh({title:"Import accounts from CSV",dialogProps:{maxWidth:"sm"},values:l,form:p=>{const h=s[p.skipFirstLines||0],y=f(h,ye(ye({},l),p));return{save:{startIcon:u.createElement(am),children:"Go"},fields:[u.createElement(ze,{p:1},"Total lines:",s.length),{k:"skipFirstLines",comp:Ho,min:0,max:s.length-1,typing:!0,md:6,helperText:u.createElement(u.Fragment,{},"First line: ",u.createElement("code",{},h.join(", ")))},{k:"overwriteExistingAccounts",comp:Dn,md:6},it(ye({k:"usernameColumn"},i),{helperText:u.createElement(u.Fragment,{},"First username: ",y.u)}),it(ye({k:"passwordColumn"},i),{helperText:u.createElement(u.Fragment,{},"First password: ",y.p)}),it(ye({k:"groupColumn"},i),{helperText:u.createElement(u.Fragment,{},"First group: ",y.g)}),it(ye({k:"redirectColumn"},i),{helperText:u.createElement(u.Fragment,{},"First redirect: ",y.r)})]}}});if(!a)return;const{close:c}=po({title:"Importing...",Content(){const[p,h]=u.useState(0),[y,v]=u.useState();return u.useEffect(()=>{let m=!1;return setTimeout(()=>ot(this,null,function*(){var P;if(m)return;let C=0,w=0,b=a.skipFirstLines;const x=s.length-b;try{let k=0;for(const E of s){if(m)return;if(b){b--;continue}const I=f(E,a);v(I),h(k++/x),yield ut("add_account",{username:I.u,belongs:(P=I.g)==null?void 0:P.split(","),redirect:I.r,overwrite:a.overwriteExistingAccounts}).then(()=>{if(I.p)return tP(I.u,I.p)},R=>{if(R.code===Vpe)return w++;C++})}}finally{c();const k=x-C-w,E="Results: "+[pi("",C," failed"),pi("",k," succeeded"),pi("",w," skipped because already present")].filter(Boolean).join(", ");kt(E,!k&&C?"error":C||w?"warning":"success"),e==null||e()}})),()=>{m=!0}},[]),u.createElement(ze,{display:"flex",gap:2,alignItems:"center"},u.createElement(c3,{icon:SI,progress:p}),y==null?void 0:y.u)}});function f(p,h){return{u:p[h.usernameColumn-1],p:p[h.passwordColumn-1],g:p[h.groupColumn-1],r:p[h.redirectColumn-1]}}}),{multiple:!1,accept:".csv"})})}function o$e(){const{username:e}=Gs(),{data:t,reload:n,element:r}=Xn("get_accounts"),[o,s]=u.useState([]),i=Array.isArray(o);u.useEffect(()=>{Array.isArray(t==null?void 0:t.list)&&i&&s(o.filter(v=>t.list.find(m=>(m==null?void 0:m.username)===v)))},[t]);const l=t==null?void 0:t.list,a=i&&Ze.find(l,{username:o[0]}),f=Jo("md"),p=!(o.length>0)||!l?null:i&&o.length>1?u.createElement(u.Fragment,{},u.createElement(Gr,{},u.createElement(qn,{variant:"h6"},o.length+" selected"),u.createElement(Yn,{onClick:y,startIcon:u.createElement(Bl)},"Remove")),u.createElement(rm,{},o.map(v=>u.createElement(N2,{key:v},u.createElement(Bi,{},v))))):Rl(a||{username:"",hasPassword:o==="new-user",adminActualAccess:!1,invalidated:!0},v=>u.createElement(t$e,{account:v,groups:l.filter(m=>!m.hasPassword).map(m=>m.username),addToBar:f&&[u.createElement(ze,{flex:1}),bA(v,{fontSize:"large",sx:{p:1}}),u.createElement(dn,{icon:S0,title:"Close",onClick:h})],reload:n,done(m){s([m]),n()}}));return u.useEffect(()=>{if(f||!p||!o.length)return;const{close:v}=po({title:Ze.isString(o)?Ze.startCase(o):o.length>1?"Multiple selection":a?(a.hasPassword?"User: ":"Group: ")+a.username:"?",Content:()=>p,onClose:h});return v},[f,o,a]),r||u.createElement(ai,{container:!0,maxWidth:"80em"},u.createElement(ai,{item:!0,xs:12},u.createElement(ze,{display:"flex",flexWrap:"wrap",gap:2,mb:2,sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"}},u.createElement(H6,{variant:"contained",startIcon:u.createElement(rz),items:[{children:"user",onClick:()=>s("new-user")},{children:"group",onClick:()=>s("new-group")},{children:"from CSV",onClick:()=>r$e(n)}]},"Add"),M0(n),(l==null?void 0:l.length)>0&&u.createElement(qn,{p:1},`${l.length} account(s)`))),u.createElement(ai,{item:!0,md:5},!(l!=null&&l.length)&&u.createElement(Er,{severity:"info"},Kn`To access administration <u>remotely</u> you will need to create a user account with admin permission`),u.createElement(T6,{multiSelect:!0,sx:{pr:4,pb:2,minWidth:"15em"},selected:i?o:[],onNodeSelect(v,m){s(m)}},l==null?void 0:l.map(v=>{var m,C;return u.createElement(FS,{key:v.username,nodeId:v.username,label:u.createElement(ze,{sx:{display:"flex",flexWrap:"wrap",padding:".2em 0",gap:".5em",alignItems:"center"}},bA(v),v.adminActualAccess&&Hr(tz,"Can login into Admin"),v.username,!!((m=v.belongs)!=null&&m.length)&&u.createElement(ze,{sx:{color:"text.secondary",fontSize:"small"}},"(",(C=v.belongs)==null?void 0:C.join(", "),")"))})}))),f&&p&&u.createElement(ai,{item:!0,md:7},u.createElement(J1,{},u.createElement(e0,{},p))));function h(){s([])}function y(){return ot(this,null,function*(){if(!(o.length>Ze.pull(o,e).length&&!(yield mr(`Will delete the rest but not current account (${e})`)))&&o.length&&(yield mr(`Delete ${o.length} item(s)?`)))try{const v=[];for(const m of o)(yield ut("del_account",{username:m}).then(()=>1,()=>0))||v.push(m);if(n(),v.length)return kt("Following elements couldn't be deleted: "+v.join(", "),"error")}catch(v){yield kt(v)}})}}function bA(e,t={}){return u.createElement(u.Fragment,{},u.createElement(e.hasPassword?nz:SI,t),e.disabled&&u.createElement(ez))}var MI={},s$e=Je;Object.defineProperty(MI,"__esModule",{value:!0});var sz=MI.default=void 0,i$e=s$e(tt()),l$e=et();sz=MI.default=(0,i$e.default)((0,l$e.jsx)("path",{d:"M13 3h-2v10h2zm4.83 2.17-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83"}),"PowerSettingsNew");function a$e(){const{element:e}=Xn("get_config",{only:[]}),{username:t}=Gs();return e||u.createElement(ze,{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:2},t?u.createElement(u.Fragment,{},"You are logged in as: "+t,u.createElement(Ro,{icon:q2,size:"large",variant:"contained",onClick:()=>ut("logout").catch(r=>r.code!==sf&&kt(r))},"I want to logout")):u.createElement(Er,{severity:"info"},"You are not logged in, because authentication is not required on localhost"),u.createElement(Ro,{icon:sz,size:"large",variant:"contained",color:"warning",confirm:"Stopping the server, this interface won't respond anymore",onClick(){return ot(this,null,function*(){yield ut("quit"),yield kt("Good-bye","success"),location.reload()})}},"Quit HFS"))}function c$e(){const{list:e,error:t,connecting:n,reload:r}=Ol("get_langs"),o=u.useMemo(()=>["en",...Ze.uniq(e.map(l=>l.code))],[e]),s=Jo("md");return u.createElement(u.Fragment,{},s&&u.createElement(Er,{severity:"info"},"Translation is limited to Front-end, it doesn't apply to Admin-panel"),u.createElement(ze,{mt:1,maxWidth:"40em",flex:1,display:"flex",flexDirection:"column"},u.createElement(ze,{mb:1,display:"flex"},u.createElement(Yn,{variant:"contained",startIcon:u.createElement(am),onClick:i},"Add"),u.createElement(ze,{flex:1}),u.createElement(u$e,{langs:o})),u.createElement(hm,{error:t,loading:n,rows:e,hideFooter:!0,sx:{flex:1},columns:[{field:"code",width:110,valueFormatter:({value:l})=>l==null?void 0:l.toUpperCase()},{field:"version",width:120,hideUnder:"sm"},{field:"hfs_version",headerName:"HFS version",width:110},{field:"author",flex:1,hideUnder:"sm"}],actions:({row:l})=>[u.createElement(dn,{icon:Bl,title:l.embedded?"Cannot delete (embedded)":"Delete",confirm:"Delete?",disabled:l.embedded,onClick(){return ot(this,null,function*(){yield ut("del_lang",Ze.pick(l,"code")),r(),rr("Deleted")})}})]})));function i(){K5(l=>ot(this,null,function*(){if(!l)return;const a={};for(const c of l)a[c.name]=yield q5(c);try{yield ut("add_langs",{langs:a}),r(),rr("Loaded")}catch(c){yield kt(c)}}),{accept:".json"})}}function u$e({langs:e}){const t="force_lang",{data:n,reload:r,loading:o}=Xn("get_config",{only:[t]}),[s,i]=u.useState();u.useEffect(()=>{var f;return i((f=n==null?void 0:n[t])!=null?f:s)},[n]);const[l,a]=u.useState();return u.createElement(Wr,{fullWidth:!1,disabled:!!o||typeof l=="string",value:l!=null?l:s,onChange(f){return ot(this,null,function*(){a(f);try{yield ut("set_config",{values:{[t]:f}}),yield r()}finally{a(void 0)}})},options:[{label:"Respect browser language",value:""},...e.map(f=>({value:f,label:"Force language: "+f}))]})}var _I={},d$e=Je;Object.defineProperty(_I,"__esModule",{value:!0});var nP=_I.default=void 0,f$e=d$e(tt()),p$e=et();nP=_I.default=(0,f$e.default)((0,p$e.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m4 14H8V8h8z"}),"StopCircle");var TI={},h$e=Je;Object.defineProperty(TI,"__esModule",{value:!0});var iz=TI.default=void 0,m$e=h$e(tt()),g$e=et();iz=TI.default=(0,m$e.default)((0,g$e.jsx)("path",{d:"M16 18v2H8v-2zM11 7.99V16h2V7.99h3L12 4 8 7.99z"}),"Upgrade");function wA({updates:e}){const{list:t,updateEntry:n,error:r,updateList:o,initializing:s}=Ol(e?"get_plugin_updates":"get_plugins");u.useEffect(()=>{s||o(l=>Ze.sortBy(l,a=>(a.started?"0":"1")+a.id))},[s]);const i="small";return u.createElement(hm,{error:b0(r,fz),rows:t.length?t:[],initializing:s,disableColumnSelector:!0,disableColumnMenu:!0,hideFooter:!0,noRows:e&&'No updates available. Only plugins available on "search online" are checked.',columns:[{field:"id",headerName:"name",flex:.3,minWidth:150,renderCell:lz,mergeRender:{other:"description",fontSize:"x-small"}},{field:"version",width:70,hideUnder:"sm"},{field:"description",flex:1,hideUnder:"sm"}],actions:({row:l,id:a})=>e?[u.createElement(dn,{icon:iz,title:l.updated?"Already updated":"Update",disabled:l.updated,size:i,onClick(){return ot(this,null,function*(){yield ut("update_plugin",{id:a,branch:l.branch},{timeout:!1}).catch(y=>{var v;throw y.code!==mS?y:Error("Failed dependencies: "+((v=y.cause)==null?void 0:v.map(m=>pi('plugin "',m.id||m.repo,'" ')+m.error).join("; ")))}),n({id:a},{updated:!0}),rr("Plugin updated")})}})]:[u.createElement(dn,l.started?{icon:nP,title:u.createElement(ze,{"aria-hidden":!0},`Stop ${a}`,u.createElement("br"),"Started "+new Date(l.started).toLocaleString()),"aria-label":`Stop ${a}`,size:i,color:"success",onClick(){return ot(this,null,function*(){yield ut("stop_plugin",{id:a}),rr("Plugin stopped",u.createElement(nP,{color:"warning"}))})}}:{icon:C0,title:`Start ${a}`,size:i,onClick:()=>cz(a)}),u.createElement(dn,{icon:J2,title:"Options",size:i,disabled:!l.started&&"Start plugin to access options"||!l.config&&"No options available for this plugin",progress:!1,onClick(){return ot(this,null,function*(){const y=yield ut("get_plugin",{id:a});let v=y.config;const m=yield Sh({title:`Options for ${a}`,form:w=>({before:u.createElement(ze,{mx:2,mb:3},l.description),fields:az(l.config),save:{children:"Save and close"},barSx:{gap:1},addToBar:[u.createElement(Ro,{variant:"outlined",onClick:()=>C(w)},"Save")]}),values:y.config,dialogProps:Ze.merge({sx:{m:"auto"}},l.configDialog)});if(m&&!Ze.isEqual(v,m))return C(m);function C(w){return ot(this,null,function*(){yield ut("set_plugin",{id:a,config:w}),Object.assign(v,w),rr("Configuration saved")})}})}}),u.createElement(dn,{icon:Bl,title:"Uninstall",size:i,confirm:"Remove?",onClick(){return ot(this,null,function*(){yield ut("uninstall_plugin",{id:a}),rr("Plugin uninstalled")})}})]})}function lz({row:e,value:t}){const{repo:n}=e;return u.createElement(u.Fragment,{},r(e.badApi,!0),r(e.error),n!=null&&n.includes("//")?u.createElement(os,{href:n,target:"plugin"},t):n?Rl(n==null?void 0:n.split("/"),o=>u.createElement(u.Fragment,{},u.createElement(os,{href:"https://github.com/"+n,target:"plugin"},o[1])," by ",o[0])):t);function r(o,s=!1){return o&&u.createElement(Nl,{title:o,children:u.createElement(P0,{fontSize:"small",color:s?"warning":"error",sx:{ml:-.5,mr:.5}})})}}function az(e){return Object.entries(e).map(([t,n])=>{if(!Ze.isPlainObject(n))return n;let c=n,{type:r,defaultValue:o,fields:s,frontend:i}=c,l=Lt(c,["type","defaultValue","fields","frontend"]);const a=v$e[r];return a===Oh&&(s=az(s)),o!==void 0&&r==="boolean"&&(l.placeholder=`Default value is ${JSON.stringify(o)}`),ye({k:t,comp:a,fields:s},l)})}const v$e={string:Qi,number:Ho,boolean:Dn,select:Wr,multiselect:I0,array:Oh,real_path:Hp};function cz(e){return ot(this,null,function*(){try{return yield ut("start_plugin",{id:e}),rr("Plugin started",u.createElement(C0,{color:"success"})),!0}catch(t){kt(`Plugin ${e} didn't start, with error: ${String((t==null?void 0:t.message)||t)}`,"error")}})}var $I={},y$e=Je;Object.defineProperty($I,"__esModule",{value:!0});var uz=$I.default=void 0,b$e=y$e(tt()),w$e=et();uz=$I.default=(0,b$e.default)((0,w$e.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search");function C$e(){const[e,t]=u.useState(""),n=nE(e,1e3),{list:r,error:o,initializing:s}=Ol("get_online_plugins",{text:n}),i=Gs();return u.createElement(u.Fragment,{},u.createElement(Qi,{value:e,onChange:t,start:u.createElement(uz),typing:!0,label:"Search text"}),u.createElement(hm,{error:b0(o,fz),rows:r.length?r:[],noRows:"No compatible plugins have been found",initializing:s,columnVisibilityModel:i.onlinePluginsColumns,onColumnVisibilityModelChange:a=>Object.assign(on.onlinePluginsColumns,a),columns:[{field:"id",headerName:"name",flex:1,renderCell:lz,mergeRender:{other:"description",fontSize:"x-small"}},{field:"version",width:70},{field:"pushed_at",headerName:"last update",valueGetter:({value:a})=>new Date(a).toLocaleDateString()},{field:"license",width:80},{field:"description",flex:3,hideUnder:"sm"},{field:"stargazers_count",width:50,headerName:"stars",align:"center",hideUnder:"sm"}],actions:({row:a,id:c})=>[u.createElement(dn,{icon:BE,title:"Install",progress:a.downloading,disabled:a.installed&&"Already installed",tooltipProps:{placement:"bottom-end"},confirm:"WARNING - Proceed only if you trust this author and this plugin",onClick(){return ot(this,null,function*(){if(a.missing&&!(yield mr("This will also install: "+Ze.map(a.missing,"repo").join(", "))))return;const p=a.branch||a.default_branch;l(c,p).catch(h=>{if(h.code!==mS)return kt(h);const y=u.createElement(u.Fragment,{},"This plugin has some dependencies unmet:",h.data.map(v=>u.createElement("li",{key:v.repo},v.repo+": "+v.error)));return kt(y,"error")})})}})]}));function l(a,c){return ot(this,null,function*(){try{const f=yield ut("download_plugin",{id:a,branch:c,stop:!0},{timeout:!1});(yield mr(`Plugin ${a} downloaded`,{confirmText:"Start"}))&&(yield cz(f.id))}catch(f){let p=!1;if(f.code===mS)for(const h of f.cause)h.error==="missing"&&(rr("Installing dependency: "+h.repo),yield l(h.repo),p=!0);if(p)return l(a,c);throw f}})}}const dz={Installed:wA,"Search online|Search":C$e,"Check updates|Updates":()=>u.createElement(wA,{updates:!0})},x$e=Object.keys(dz),S$e=Object.values(dz),fz={ENOTFOUND:"Cannot reach github.com"};function P$e(){const[e,t]=u.useState(0),n=!Jo("sm");return u.createElement(u.Fragment,{},u.createElement(V2,{value:e,onChange(r,o){t(o)}},x$e.map(r=>u.createElement(py,{key:r,label:r.split("|").slice(n?-1:0)[0]}))),u.createElement(S$e[e]))}const E$e={top:"Top of HTML Body",bottom:"Bottom of HTML Body"};function k$e(){const{data:e,reload:t}=Xn("get_custom_html"),[n,r]=u.useState(""),[o,s]=u.useState({}),[i,l]=u.useState({});u.useEffect(()=>e&&l(e==null?void 0:e.sections),[e]),u.useEffect(()=>s(i),[i]);const a=u.useMemo(()=>{const p=Ze.sortBy(Object.keys(o),h=>!isNaN(+h));return p.includes(n)||r(Ze.findKey(o,Boolean)||(p==null?void 0:p[0])||""),p.map(h=>{var y;return{value:h,label:(E$e[h]||pi("HTTP ",Wpe[h])||Ze.startCase(h))+((y=o[h])!=null&&y.trim()?" *":"")}})},[nE(o,500)]),c=u.useMemo(()=>!Ze.isEqualWith(i,o,(p,h)=>!p&&!h||void 0),[i,o]);return u.createElement(u.Fragment,{},u.createElement(Er,{severity:"info"},Kn("Add HTML code to some parts of the Front-end. It's saved to file `custom.html`, that you can edit directly with your editor of choice. "),_a("customization","More help")),u.createElement(ze,{display:"flex",alignItems:"center",gap:1,mb:1},u.createElement(Wr,{label:"Section",value:n,options:a,onChange:r}),M0(t),u.createElement(dn,{icon:sm,title:`Save
794
+ (ctrl+enter)`,sx:lf(c),onClick:f})),u.createElement(vI,{value:(o==null?void 0:o[n])||"",style:{background:"#8881"},onValueChange(p){s(h=>it(ye({},h),{[n]:p}))},onKeyDown(p){["s","Enter"].includes(s0(p))&&(f().then(),p.preventDefault())}}));function f(){return ut("set_custom_html",{sections:o}).then(()=>l(o))}}var RI={},I$e=Je;Object.defineProperty(RI,"__esModule",{value:!0});var pz=RI.default=void 0,M$e=I$e(tt()),Xg=et();pz=RI.default=(0,M$e.default)([(0,Xg.jsx)("path",{d:"M17 11h2v2h-2v2h2v2h-2v2h4V5h-9v1.4l5 3.57zm0-4h2v2h-2z",opacity:".3"},"0"),(0,Xg.jsx)("path",{d:"M10 3v1.97l.96.69L12 6.4V5h9v14h-4v2h6V3z"},"1"),(0,Xg.jsx)("path",{d:"M3 12v7h2v-5h6v5h2v-7L8 8.5z",opacity:".3"},"2"),(0,Xg.jsx)("path",{d:"M17 7h2v2h-2zm0 4h2v2h-2zm0 4h2v2h-2zM1 11v10h6v-5h2v5h6V11L8 6zm12 8h-2v-5H5v5H3v-7l5-3.5 5 3.5z"},"3")],"HomeWorkTwoTone");var OI={},_$e=Je;Object.defineProperty(OI,"__esModule",{value:!0});var hz=OI.default=void 0,T$e=_$e(tt()),CA=et();hz=OI.default=(0,T$e.default)([(0,CA.jsx)("path",{d:"M14.99 4.59V5c0 1.1-.9 2-2 2h-2v2c0 .55-.45 1-1 1h-2v2h6c.55 0 1 .45 1 1v3h1c.89 0 1.64.59 1.9 1.4C19.19 15.98 20 14.08 20 12c0-3.35-2.08-6.23-5.01-7.41M8.99 16v-1l-4.78-4.78C4.08 10.79 4 11.39 4 12c0 4.07 3.06 7.43 6.99 7.93V18c-1.1 0-2-.9-2-2",opacity:".3"},"0"),(0,CA.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1.01 17.93C7.06 19.43 4 16.07 4 12c0-.61.08-1.21.21-1.78L8.99 15v1c0 1.1.9 2 2 2zm6.9-2.53c-.26-.81-1-1.4-1.9-1.4h-1v-3c0-.55-.45-1-1-1h-6v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41C17.92 5.77 20 8.65 20 12c0 2.08-.81 3.98-2.11 5.4"},"1")],"PublicTwoTone");var DI={},$$e=Je;Object.defineProperty(DI,"__esModule",{value:!0});var mz=DI.default=void 0,R$e=$$e(tt()),xA=et();mz=DI.default=(0,R$e.default)([(0,xA.jsx)("path",{d:"M15 15H5v4h14v-4zm-7 3H6v-2h2zm3.5 0h-2v-2h2zm3.5 0h-2v-2h2z",opacity:".3"},"0"),(0,xA.jsx)("path",{d:"M16 4.2c1.5 0 3 .6 4.2 1.7l.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2m-3.3 2.5.8.8c.7-.7 1.6-1 2.5-1s1.8.3 2.5 1l.8-.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4M19 13h-2V9h-2v4H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2m0 6H5v-4h14zM6 16h2v2H6zm3.5 0h2v2h-2zm3.5 0h2v2h-2z"},"1")],"RouterTwoTone");var AI={},O$e=Je;Object.defineProperty(AI,"__esModule",{value:!0});var gz=AI.default=void 0,D$e=O$e(tt()),A$e=et();gz=AI.default=(0,D$e.default)((0,A$e.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var LI={},L$e=Je;Object.defineProperty(LI,"__esModule",{value:!0});var vz=LI.default=void 0,F$e=L$e(tt()),N$e=et();vz=LI.default=(0,F$e.default)((0,N$e.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage");const SA=l3.filter(e=>Cme.includes(e.code)),PA="https://portforward.com/",UC=1080,WC=`It is possible that your Internet Provider won't let you get incoming connections. Ask them if they sell "public IP" as an extra service.`;function B$e(){var R,O,$,L;const[e,t]=u.useState(),[n,r]=u.useState(!1),[o,s]=u.useState(!1),i=Xn("get_status"),l=Xn("get_config",{only:["base_url"]}),a=Rl([(O=(R=i.data)==null?void 0:R.http)==null?void 0:O.error,(L=($=i.data)==null?void 0:$.https)==null?void 0:L.error],([j,N])=>j&&N?"error":j||N?"warning":"success"),c=Xn("get_nat",{},{timeout:20}),{data:f}=c,p=f==null?void 0:f.internalPort,h=(f==null?void 0:f.mapped)&&f.mapped.private.port!==p&&f.mapped.private.port,y=(f==null?void 0:f.externalIp)&&(f==null?void 0:f.publicIps)&&!f.publicIps.includes(f.externalIp),v=I5();return u.useEffect(()=>{v.state&&P(!0).then()},[v.state]),u.createElement(Gr,{vert:!0,gap:"2em",maxWidth:"40em"},u.createElement(Er,{severity:"info"},"This page makes sure your site is working correctly on the Internet"),b(),x(),C(),m());function m(){const j=u.useMemo(()=>Ze.sortBy(SA,"name").map(N=>({value:N.code,label:N.name})),[SA]);return u.createElement(KC,{title:"Geo IP",icon:hy},u.createElement(jS,{keys:[On.geo_enable,On.geo_allow,On.geo_list,On.geo_allow_unknown],form:N=>{var _;return{fields:[{k:On.geo_enable,comp:Dn,label:"Enable",helperText:Kn("Necessary database will be downloaded every month (2MB). Service is made possibly thanks to [IP2Location](https://www.ip2location.com).")},...N[On.geo_enable]?[{k:On.geo_allow,comp:Wr,label:"Rule",options:{"no restriction":null,"block selected countries":!1,"allow selected countries":!0}},N[On.geo_allow]!=null&&{k:On.geo_list,comp:I0,label:`Selected countries (${((_=N[On.geo_list])==null?void 0:_.length)||0})`,placeholder:"none",options:j,renderOption:T=>u.createElement(xy,{code:T.value,long:!0}),clearable:!0,getError:T=>N[On.geo_allow]&&!(T!=null&&T.length)&&"Cannot be empty"},N[On.geo_allow]!=null&&{k:On.geo_allow_unknown,comp:Wr,label:"When country cannot be determined",options:{Allow:!0,Block:!1}}]:[]]}}}))}function C(){const[j,N]=u.useState(),_=Xn("get_cert");if(u.useEffect(()=>{ut("get_config",{only:["acme_domain","acme_email","acme_renew"]}).then(N)},[]),!i||!j)return u.createElement(Gi);const{https:T}=i.data||{},B=(T==null?void 0:T.port)===Npe,V=T==null?void 0:T.error;return c.element||i.element||u.createElement(KC,{title:"HTTPS",icon:T0,color:T!=null&&T.listening&&!V?"success":"warning"},V?u.createElement(Er,{severity:"warning"},V):B&&u.createElement(hl,{onClick:w},"Not enabled"),_.element||Rl(_.data,F=>{var H,K;return F.none?u.createElement(hl,{onClick:()=>Uy().then(_.reload)},"No certificate configured"):u.createElement(ze,{},u.createElement(lk,{fontSize:"small",sx:{mr:1,verticalAlign:"middle"}}),"Current certificate",u.createElement("ul",{},u.createElement("li",{},"Domain: ",((H=F.altNames)==null?void 0:H.join(" + "))||"-"),u.createElement("li",{},"Issuer: ",((K=F.issuer)==null?void 0:K.O)||u.createElement("i",{},"self-signed")),u.createElement("li",{},"Validity: ",["validFrom","validTo"].map(Y=>gS(F[Y])).join(" – "))))}),u.createElement(bh),u.createElement(Yc,{gap:1,gridProps:{rowSpacing:1},values:j,set(F,H){N(K=>{const Y=it(ye({},K),{[H]:F});return ut("set_config",{values:Y}),Y})},fields:[Kn("Generate certificate using [Let's Encrypt](https://letsencrypt.org)"),{k:"acme_domain",label:"Domain for certificate",sm:6,required:!0,helperText:Kn(`Example: your.domain.com
795
+ Multiple domains separated by commas`)},{k:"acme_email",label:"E-mail for certificate",sm:6},{k:"acme_renew",label:"Automatic renew one month before expiration",comp:Dn,disabled:!j.acme_domain}],save:{children:"Request",startIcon:u.createElement(gz),onClick(){return ot(this,null,function*(){var J;const[F,...H]=j.acme_domain.split(",");F===((J=_.data.subject)==null?void 0:J.CN)&&Number(new Date(_.data.validTo))-Date.now()>=30*Ype&&!(yield mr("Your certificate is still good",{confirmText:"Make a new one anyway"}))||!(yield mr("HFS must temporarily serve HTTP on public port 80, and your router must be configured or this operation will fail"))||(yield ut("check_domain",{domain:F}).catch(Q=>mr(String(Q),{confirmText:"Continue anyway"})))===!1||(yield ut("make_cert",{domain:F,altNames:H,email:j.acme_email},{timeout:2e4}).then(()=>ot(this,null,function*(){yield kt("Certificate created","success"),B&&(yield w()),_.reload()}),kt))})}}}))}function w(){return ot(this,null,function*(){if(!(yield mr(`HTTPS is currently disabled.
796
+ Full configuration is available in the Options page.`,{confirmText:"Enable it"})))return;const j=i3();try{yield ut("set_config",{values:{https_port:443}}),yield om(1e3),i.reload()}finally{j()}})}function b(){var T;const j=(T=l.data)==null?void 0:T.base_url,N=j&&new URL(j).hostname,_=!hhe(N)&&N;return l.element||u.createElement(KC,{icon:hy,title:"Address / Domain"},u.createElement(Gr,{flexWrap:"wrap"},j||"Automatic, not configured",u.createElement(Gr,{},u.createElement(Ro,{size:"small",variant:"outlined",onClick:()=>void zj().then(l.reload)},"Change"),_&&u.createElement(Ro,{size:"small",variant:"outlined",onClick:()=>ut("check_domain",{domain:_}).then(()=>kt("Domain seems ok","success"))},"Check"))),u.createElement(jS,{keys:["force_base_url"],saveOnChange:!0,form:{fields:[{k:"force_base_url",comp:Dn,label:"Accept requests only using domain (and localhost)"}]}}))}function x(){if(c.error)return c.element;if(!f)return u.createElement(Gi);const j=f==null?void 0:f.publicIps.includes(f==null?void 0:f.localIp);return u.createElement(Gr,{justifyContent:"space-around"},u.createElement(GC,{name:"Server",icon:j?vz:pz,color:a,ip:f==null?void 0:f.localIp,below:p&&u.createElement(ze,{fontSize:"smaller"},"port ",p)}),!j&&u.createElement(EA),!j&&u.createElement(GC,{name:"Router",icon:mz,ip:f==null?void 0:f.gatewayIp,color:(f==null?void 0:f.mapped)&&(h?"warning":"success"),below:o?u.createElement(uy,{sx:{height:"1em"}}):u.createElement(hl,{fontSize:"smaller",display:"block",onClick:k},"port ",h?"is wrong":(f==null?void 0:f.externalPort)||"unknown")}),u.createElement(EA),u.createElement(GC,{name:"Internet",icon:hz,ip:f==null?void 0:f.publicIps,color:e?"success":e===!1?"error":y?"warning":void 0,below:n?u.createElement(uy,{sx:{height:"1em"}}):u.createElement(ze,{fontSize:"smaller"},y&&u.createElement(hl,{display:"block",onClick:()=>kt(WC,"warning")},"Double NAT"),e?"Working!":e===!1?"Failed!":""," ",(f==null?void 0:f.publicIps.length)>0&&f.internalPort&&u.createElement(hl,{onClick:()=>P()},"Verify"))}))}function P(j=!1){return ot(this,null,function*(){var _;yield c.loading;const N=c.getData();if(N&&(t(void 0),!(!j&&!(yield mr("This test will check if your server is working properly on the Internet"))))){r(!0);try{const T=(_=l.data)==null?void 0:_.base_url,B=T&&(yield ut("self_check",{url:T}).catch(()=>kt(Kn(`Sorry, we couldn't verify your configured address ${T} 😰
797
+ still, we are going to test your IP address 🤞`),"warning")));if(B!=null&&B.success)return t(!0),kt(u.createElement(ze,{},"Your server is responding correctly over the Internet:",u.createElement("ul",{},u.createElement("li",{},B.url))),"success");(B==null?void 0:B.success)===!1&&(yield kt(Kn(`Your configured address ${T} doesn't seem to work 😰
798
+ still, we are going to test your IP address 🤞`),"warning"));const V=yield ut("self_check",{});if(V.some(K=>K.success)){t(!0);const K=B.success===!1&&Kn(`Your server is responding over the Internet 👍
799
+ but not with configured address ${T} 👎
800
+ just on your IP:`);return kt(u.createElement(ze,{},K||"Your server is responding correctly over the Internet:",u.createElement("ul",{},...V.map(Y=>u.createElement("li",{},Y.url)))),K?"warning":"success")}if(t(!1),h)return E().then(v);if(y)return kt(WC,"warning");const A="We couldn't reach your server from the Internet. ";if(N.upnp&&!N.mapped)return mr(A+"Try port-forwarding on your router",{confirmText:"Fix it"}).then(K=>ot(this,null,function*(){if(K){try{yield I(N.internalPort,"","")}catch(Y){yield I(UC,"")}rr("Port forwarded, now we verify again","success"),v()}}));const F=yield ut("get_config",{only:[On.geo_enable,On.geo_allow]}),{close:H}=kt(u.createElement(ze,{},A+"Possible causes:",u.createElement("ul",{},F[On.geo_enable]&&F[On.geo_allow]!=null&&u.createElement("li",{},"You may be blocking a country from where the test is performed"),!N.upnp&&u.createElement("li",{},"Your router may need to be configured. ",u.createElement(os,{href:PA,target:"help"},"How?")),u.createElement("li",{},"There could be a firewall, try configuring or disabling it."),(N.externalPort||N.internalPort)<=1024&&u.createElement("li",{},"Your Internet Provider may be blocking ports under 1024. ",N.upnp&&u.createElement(Yn,{size:"small",onClick(){H(),I(UC).then(v)}},"Try "+UC)),N.mapped&&u.createElement("li",{},"A bug in your modem/router, try rebooting it."),u.createElement("li",{},WC))),"warning")}catch(T){kt(T)}finally{r(!1)}}})}function k(){return ot(this,null,function*(){if(!f)return;if(h)return(yield mr(`There is a port-forwarding but it is pointing to the wrong port (${h})`,{confirmText:"Fix it"}))&&E();if(!f.upnp)return kt(u.createElement(ze,{lineHeight:1.5},Kn(`We cannot help you configuring your router because UPnP is not available.
801
+ Find more help [on this website](${PA}).`)),"info");const j=yield im(Kn(`This will ask the router to map your port, so that it can be reached from the Internet.
802
+ You can set the same number of the local network (${p}), or a different one.`),{value:f.externalPort||p,field:{label:"Port seen from the Internet",comp:Ho},addToBar:f.mapped&&[u.createElement(Yn,{color:"warning",onClick:N},"Remove")],dialogProps:{sx:{maxWidth:"20em"}}});j&&(yield I(Number(j),"Port forwarded"));function N(){Ki(),I(0,"Port removed")}})}function E(){return f!=null&&f.externalPort?I(f.externalPort,"Forwarding corrected"):kt("externalPort not found","error")}function I(j,N="",_="Operation failed"){return ot(this,null,function*(){s(!0);try{yield ut("map_port",{external:j}),c.reload(),N&&rr(N,"success"),t(void 0)}catch(T){if(_){const B=j&&Math.min(j,f.internalPort)<1024,V=_+(B?". Some routers refuse to work with ports under 1024.":"");yield kt(V,"error")}throw T}finally{s(!1)}})}}function EA(){return u.createElement(ze,{flex:1,className:"animated-dashed-line"})}function GC({name:e,icon:t,color:n,ip:r,below:o}){const s="min(20vw, 10vh)";return u.createElement(ze,{display:"inline-block",textAlign:"center"},u.createElement(t,{color:n,sx:{fontSize:s,mb:"-0.1em"}}),u.createElement(ze,{fontSize:"larger"},e),u.createElement(ze,{fontSize:"smaller",whiteSpace:"pre-wrap"},y0(r).join(`
803
+ `)||"unknown"),o)}function KC({title:e,icon:t,color:n,children:r}){return u.createElement(J1,{},u.createElement(e0,{},u.createElement(Gr,{vert:!0},u.createElement(ze,{fontSize:"x-large"},t&&u.createElement(t,{color:n,sx:{mr:1,mb:"2px"}}),e),r)))}const _v=[{path:"",icon:r0,label:"Home",comp:rTe},{path:"fs",icon:h5,label:"Shared files",comp:O_e},{path:"accounts",icon:v5,comp:o$e},{path:"options",icon:J2,comp:PTe},{path:"internet",icon:hy,comp:B$e},{path:"monitoring",icon:y5,comp:OTe,noPaddingOnMobile:!0},{path:"logs",icon:g5,comp:TTe,noPaddingOnMobile:!0},{path:"language",icon:b5,comp:c$e},{path:"plugins",icon:m5,comp:P$e,noPaddingOnMobile:!0},{path:"html",icon:w5,label:"Custom HTML",comp:k$e},{path:"logout",icon:q2,comp:a$e}];function kA({onSelect:e}){const{VERSION:t}=w0(),n="hfs-logo.svg",r=o0().height<700;return u.createElement(ze,{display:"flex",flexDirection:"column",bgcolor:"primary.main",minHeight:"100%"},u.createElement(rm,{sx:{pr:1,py:0,color:"primary.contrastText",height:"100vh",boxSizing:"border-box",overflowY:"auto",position:"sticky",top:0,display:"flex",flexDirection:"column","&>a":{flex:"0"}}},u.createElement(ze,{display:"flex",px:2,py:.5,gap:2,alignItems:"center"},u.createElement(ze,{fontSize:"min(3rem, max(5vw, 4vh))"},"HFS"),u.createElement(ze,{fontSize:"small"},PE(t||"",/-/,()=>u.createElement("br"))),r&&u.createElement("img",{src:n,style:{height:"2.5em"}})),_v.map(o=>u.createElement(bae,{key:o.path,to:o.path,component:nY,onClick:e,style:({isActive:s})=>s?{textDecoration:"underline"}:{},children:void 0},o.icon&&u.createElement(Cl,{sx:{color:"primary.contrastText",minWidth:48}},u.createElement(o.icon)),u.createElement(Bi,{sx:{whiteSpace:"nowrap"},primary:yz(o)}))),!r&&u.createElement(ze,{sx:{flex:1,opacity:.7,background:`url(${n}) no-repeat bottom`,backgroundSize:"contain",margin:2}})))}function yz(e){var t;return e&&((t=e.label)!=null?t:Ze.capitalize(e.path))}function j$e({children:e}){const{loginRequired:t}=Gs();return t===m0?u.createElement(lm,{},u.createElement(Er,{severity:"error"},"Admin-panel only for localhost"),u.createElement(ze,{mt:2,fontSize:"small"},"because no admin account was configured")):t?u.createElement(z$e):u.createElement(u.Fragment,{},e)}function z$e(){var i;const[e,t]=u.useState({username:"",password:""}),[n,r]=u.useState(""),o=u.useRef(),s=(i=o.current)==null?void 0:i.querySelector('input[value=""]');return u.useEffect(()=>{var a;return(a=s==null?void 0:s.focus)==null?void 0:a.call(s)},[s]),u.createElement(lm,{},u.createElement(Yc,{formRef:o,values:e,set(a,c){t(f=>it(ye({},f),{[c]:a}))},fields:[{k:"username",autoComplete:"username",autoFocus:!0,required:!0},{k:"password",type:"password",autoComplete:"current-password",required:!0}],addToBar:[n&&u.createElement(Er,{severity:"error",sx:{flex:1}},n)],saveOnEnter:!0,save:{children:"Enter",startIcon:null,onClick(){return ot(this,null,function*(){try{r(""),yield V$e(e.username,e.password)}catch(a){r(String(a))}})}}}))}function V$e(e,t){return ot(this,null,function*(){const n=yield ipe(e,t,ut).catch(r=>{throw(r==null?void 0:r.code)===sf?"Wrong username or password":r==="trust"?"Login aborted: server identity cannot be trusted":(r==null?void 0:r.name)==="AbortError"?"Server didn't respond":(r==null?void 0:r.message)||"Unknown error"});if(!n.adminUrl)throw"This account has no Admin access";on.loginRequired=!1,bz(n)})}const bz=She(on);bz(w0().session);var FI={},H$e=Je;Object.defineProperty(FI,"__esModule",{value:!0});var wz=FI.default=void 0,U$e=H$e(tt()),W$e=et();wz=FI.default=(0,U$e.default)((0,W$e.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");var Cz={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(an,function(){var n="week",r="year";return function(o,s,i){var l=s.prototype;l.week=function(a){if(a===void 0&&(a=null),a!==null)return this.add(7*(a-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=i(this).startOf(r).add(1,r).date(c),p=i(this).endOf(n);if(f.isBefore(p))return 1}var h=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),y=this.diff(h,n,!0);return y<0?i(this).startOf("week").week():Math.ceil(y)},l.weeks=function(a){return a===void 0&&(a=null),this.week(a)}}})})(Cz);var G$e=Cz.exports;const K$e=vi(G$e);var xz={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(an,function(){var n={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"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,s=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,l={},a=function(m){return(m=+m)+(m>68?1900:2e3)},c=function(m){return function(C){this[m]=+C}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var w=C.match(/([+-]|\d\d)/g),b=60*w[1]+(+w[2]||0);return b===0?0:w[0]==="+"?-b:b}(m)}],p=function(m){var C=l[m];return C&&(C.indexOf?C:C.s.concat(C.f))},h=function(m,C){var w,b=l.meridiem;if(b){for(var x=1;x<=24;x+=1)if(m.indexOf(b(x,0,C))>-1){w=x>12;break}}else w=m===(C?"pm":"PM");return w},y={A:[i,function(m){this.afternoon=h(m,!1)}],a:[i,function(m){this.afternoon=h(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[o,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[s,c("seconds")],ss:[s,c("seconds")],m:[s,c("minutes")],mm:[s,c("minutes")],H:[s,c("hours")],h:[s,c("hours")],HH:[s,c("hours")],hh:[s,c("hours")],D:[s,c("day")],DD:[o,c("day")],Do:[i,function(m){var C=l.ordinal,w=m.match(/\d+/);if(this.day=w[0],C)for(var b=1;b<=31;b+=1)C(b).replace(/\[|\]/g,"")===m&&(this.day=b)}],M:[s,c("month")],MM:[o,c("month")],MMM:[i,function(m){var C=p("months"),w=(p("monthsShort")||C.map(function(b){return b.slice(0,3)})).indexOf(m)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[i,function(m){var C=p("months").indexOf(m)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(m){this.year=a(m)}],YYYY:[/\d{4}/,c("year")],Z:f,ZZ:f};function v(m){var C,w;C=m,w=l&&l.formats;for(var b=(m=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(O,$,L){var j=L&&L.toUpperCase();return $||w[L]||n[L]||w[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(N,_,T){return _||T.slice(1)})})).match(r),x=b.length,P=0;P<x;P+=1){var k=b[P],E=y[k],I=E&&E[0],R=E&&E[1];b[P]=R?{regex:I,parser:R}:k.replace(/^\[|\]$/g,"")}return function(O){for(var $={},L=0,j=0;L<x;L+=1){var N=b[L];if(typeof N=="string")j+=N.length;else{var _=N.regex,T=N.parser,B=O.slice(j),V=_.exec(B)[0];T.call($,V),O=O.replace(V,"")}}return function(A){var F=A.afternoon;if(F!==void 0){var H=A.hours;F?H<12&&(A.hours+=12):H===12&&(A.hours=0),delete A.afternoon}}($),$}}return function(m,C,w){w.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(a=m.parseTwoDigitYear);var b=C.prototype,x=b.parse;b.parse=function(P){var k=P.date,E=P.utc,I=P.args;this.$u=E;var R=I[1];if(typeof R=="string"){var O=I[2]===!0,$=I[3]===!0,L=O||$,j=I[2];$&&(j=I[2]),l=this.$locale(),!O&&j&&(l=w.Ls[j]),this.$d=function(B,V,A){try{if(["x","X"].indexOf(V)>-1)return new Date((V==="X"?1e3:1)*B);var F=v(V)(B),H=F.year,K=F.month,Y=F.day,J=F.hours,Q=F.minutes,X=F.seconds,ee=F.milliseconds,oe=F.zone,Z=new Date,pe=Y||(H||K?1:Z.getDate()),ne=H||Z.getFullYear(),re=0;H&&!K||(re=K>0?K-1:Z.getMonth());var me=J||0,ce=Q||0,Ce=X||0,Ee=ee||0;return oe?new Date(Date.UTC(ne,re,pe,me,ce,Ce,Ee+60*oe.offset*1e3)):A?new Date(Date.UTC(ne,re,pe,me,ce,Ce,Ee)):new Date(ne,re,pe,me,ce,Ce,Ee)}catch(fe){return new Date("")}}(k,R,E),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),L&&k!=this.format(R)&&(this.$d=new Date("")),l={}}else if(R instanceof Array)for(var N=R.length,_=1;_<=N;_+=1){I[1]=R[_-1];var T=w.apply(this,I);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}_===N&&(this.$d=new Date(""))}else x.call(this,P)}}})})(xz);var q$e=xz.exports;const Y$e=vi(q$e);var Sz={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(an,function(){var n={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"};return function(r,o,s){var i=o.prototype,l=i.format;s.en.formats=n,i.format=function(a){a===void 0&&(a="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,f=function(p,h){return p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(y,v,m){var C=m&&m.toUpperCase();return v||h[m]||n[m]||h[C].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(w,b,x){return b||x.slice(1)})})}(a,c===void 0?{}:c);return l.call(this,f)}}})})(Sz);var Q$e=Sz.exports;const X$e=vi(Q$e);var Pz={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(an,function(){return function(n,r,o){r.prototype.isBetween=function(s,i,l,a){var c=o(s),f=o(i),p=(a=a||"()")[0]==="(",h=a[1]===")";return(p?this.isAfter(c,l):!this.isBefore(c,l))&&(h?this.isBefore(f,l):!this.isAfter(f,l))||(p?this.isBefore(c,l):!this.isAfter(c,l))&&(h?this.isAfter(f,l):!this.isBefore(f,l))}}})})(Pz);var Z$e=Pz.exports;const J$e=vi(Z$e);$r.extend(Y$e);$r.extend(X$e);$r.extend(J$e);const eRe=o6(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),tRe={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"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},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"},nRe={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"dd",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"},qC=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
804
+ `),IA=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
805
+ `),rRe=(e,t)=>t?(...n)=>e(...n).locale(t):e;class oRe{constructor({locale:t,formats:n,instance:r}={}){var o;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=tRe,this.setLocaleToValue=s=>{const i=this.getCurrentLocaleCode();return i===s.locale()?s:s.locale(i)},this.hasUTCPlugin=()=>typeof $r.utc!="undefined",this.hasTimezonePlugin=()=>typeof $r.tz!="undefined",this.isSame=(s,i,l)=>{const a=this.setTimezone(i,this.getTimezone(s));return s.format(l)===a.format(l)},this.cleanTimezone=s=>{switch(s){case"default":return;case"system":return $r.tz.guess();default:return s}},this.createSystemDate=s=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(s);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const i=$r.tz.guess();return i!=="UTC"?$r.tz(s,i):$r(s)}return $r(s)},this.createUTCDate=s=>{if(!this.hasUTCPlugin())throw new Error(qC);return $r.utc(s)},this.createTZDate=(s,i)=>{if(!this.hasUTCPlugin())throw new Error(qC);if(!this.hasTimezonePlugin())throw new Error(IA);const l=s!==void 0&&!s.endsWith("Z");return $r(s).tz(this.cleanTimezone(i),l)},this.getLocaleFormats=()=>{const s=$r.Ls,i=this.locale||"en";let l=s[i];return l===void 0&&(eRe(),l=s.en),l.formats},this.adjustOffset=s=>{if(!this.hasTimezonePlugin())return s;const i=this.getTimezone(s);if(i!=="UTC"){var l,a;const c=s.tz(this.cleanTimezone(i),!0);return((l=c.$offset)!=null?l:0)===((a=s.$offset)!=null?a:0)?s:c}return s},this.date=s=>s===null?null:this.dayjs(s),this.dateWithTimezone=(s,i)=>{if(s===null)return null;let l;return i==="UTC"?l=this.createUTCDate(s):i==="system"||i==="default"&&!this.hasTimezonePlugin()?l=this.createSystemDate(s):l=this.createTZDate(s,i),this.locale===void 0?l:l.locale(this.locale)},this.getTimezone=s=>{if(this.hasTimezonePlugin()){var i;const l=(i=s.$x)==null?void 0:i.$timezone;if(l)return l}return this.hasUTCPlugin()&&s.isUTC()?"UTC":"system"},this.setTimezone=(s,i)=>{if(this.getTimezone(s)===i)return s;if(i==="UTC"){if(!this.hasUTCPlugin())throw new Error(qC);return s.utc()}if(i==="system")return s.local();if(!this.hasTimezonePlugin()){if(i==="default")return s;throw new Error(IA)}return $r.tz(s,this.cleanTimezone(i))},this.toJsDate=s=>s.toDate(),this.parseISO=s=>this.dayjs(s),this.toISO=s=>s.toISOString(),this.parse=(s,i)=>s===""?null:this.dayjs(s,i,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=s=>{const i=this.getLocaleFormats(),l=a=>a.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(c,f,p)=>f||p.slice(1));return s.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(a,c,f)=>{const p=f&&f.toUpperCase();return c||i[f]||l(i[p])})},this.getFormatHelperText=s=>this.expandFormat(s).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=s=>s===null,this.isValid=s=>this.dayjs(s).isValid(),this.format=(s,i)=>this.formatByString(s,this.formats[i]),this.formatByString=(s,i)=>this.dayjs(s).format(i),this.formatNumber=s=>s,this.getDiff=(s,i,l)=>s.diff(i,l),this.isEqual=(s,i)=>s===null&&i===null?!0:this.dayjs(s).toDate().getTime()===this.dayjs(i).toDate().getTime(),this.isSameYear=(s,i)=>this.isSame(s,i,"YYYY"),this.isSameMonth=(s,i)=>this.isSame(s,i,"YYYY-MM"),this.isSameDay=(s,i)=>this.isSame(s,i,"YYYY-MM-DD"),this.isSameHour=(s,i)=>s.isSame(i,"hour"),this.isAfter=(s,i)=>s>i,this.isAfterYear=(s,i)=>this.hasUTCPlugin()?!this.isSameYear(s,i)&&s.utc()>i.utc():s.isAfter(i,"year"),this.isAfterDay=(s,i)=>this.hasUTCPlugin()?!this.isSameDay(s,i)&&s.utc()>i.utc():s.isAfter(i,"day"),this.isBefore=(s,i)=>s<i,this.isBeforeYear=(s,i)=>this.hasUTCPlugin()?!this.isSameYear(s,i)&&s.utc()<i.utc():s.isBefore(i,"year"),this.isBeforeDay=(s,i)=>this.hasUTCPlugin()?!this.isSameDay(s,i)&&s.utc()<i.utc():s.isBefore(i,"day"),this.isWithinRange=(s,[i,l])=>s>=i&&s<=l,this.startOfYear=s=>this.adjustOffset(s.startOf("year")),this.startOfMonth=s=>this.adjustOffset(s.startOf("month")),this.startOfWeek=s=>this.adjustOffset(s.startOf("week")),this.startOfDay=s=>this.adjustOffset(s.startOf("day")),this.endOfYear=s=>this.adjustOffset(s.endOf("year")),this.endOfMonth=s=>this.adjustOffset(s.endOf("month")),this.endOfWeek=s=>this.adjustOffset(s.endOf("week")),this.endOfDay=s=>this.adjustOffset(s.endOf("day")),this.addYears=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"year"):s.add(i,"year")),this.addMonths=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"month"):s.add(i,"month")),this.addWeeks=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"week"):s.add(i,"week")),this.addDays=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"day"):s.add(i,"day")),this.addHours=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"hour"):s.add(i,"hour")),this.addMinutes=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"minute"):s.add(i,"minute")),this.addSeconds=(s,i)=>this.adjustOffset(i<0?s.subtract(Math.abs(i),"second"):s.add(i,"second")),this.getYear=s=>s.year(),this.getMonth=s=>s.month(),this.getDate=s=>s.date(),this.getHours=s=>s.hour(),this.getMinutes=s=>s.minute(),this.getSeconds=s=>s.second(),this.getMilliseconds=s=>s.millisecond(),this.setYear=(s,i)=>this.adjustOffset(s.set("year",i)),this.setMonth=(s,i)=>this.adjustOffset(s.set("month",i)),this.setDate=(s,i)=>this.adjustOffset(s.set("date",i)),this.setHours=(s,i)=>this.adjustOffset(s.set("hour",i)),this.setMinutes=(s,i)=>this.adjustOffset(s.set("minute",i)),this.setSeconds=(s,i)=>this.adjustOffset(s.set("second",i)),this.setMilliseconds=(s,i)=>this.adjustOffset(s.set("millisecond",i)),this.getDaysInMonth=s=>s.daysInMonth(),this.getNextMonth=s=>this.addMonths(s,1),this.getPreviousMonth=s=>this.addMonths(s,-1),this.getMonthArray=s=>{const l=[s.startOf("year")];for(;l.length<12;){const a=l[l.length-1];l.push(this.addMonths(a,1))}return l},this.mergeDateAndTime=(s,i)=>s.hour(i.hour()).minute(i.minute()).second(i.second()),this.getWeekdays=()=>{const s=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(i=>this.formatByString(this.addDays(s,i),"dd"))},this.getWeekArray=s=>{const i=this.setLocaleToValue(s),l=i.startOf("month").startOf("week"),a=i.endOf("month").endOf("week");let c=0,f=l;const p=[];for(;f<a;){const h=Math.floor(c/7);p[h]=p[h]||[],p[h].push(f),f=this.addDays(f,1),c+=1}return p},this.getWeekNumber=s=>s.week(),this.getYearRange=(s,i)=>{const l=s.startOf("year"),a=i.endOf("year"),c=[];let f=l;for(;f<a;)c.push(f),f=this.addYears(f,1);return c},this.getMeridiemText=s=>s==="am"?"AM":"PM",this.rawDayJsInstance=r,this.dayjs=rRe((o=this.rawDayJsInstance)!=null?o:$r,t),this.locale=t,this.formats=S({},nRe,n),$r.extend(K$e)}}function sRe(){on.title="Config file";const{data:e,reload:t,element:n}=Xn("get_config_text",{}),[r,o]=u.useState(),[s,i]=u.useState(),[l,a]=u.useState(!1);return u.useEffect(()=>{i(e==null?void 0:e.text)},[e]),u.useEffect(()=>{s!==void 0&&o(s||"")},[s]),u.createElement(u.Fragment,{},u.createElement(Gr,{flexWrap:"wrap",justifyContent:"space-between"},u.createElement(Ro,{icon:cI,onClick:f},"Copy excluding passwords"),l?u.createElement(u.Fragment,{},M0(t),u.createElement(dn,{icon:sm,title:`Save
806
+ (ctrl+enter)`,sx:lf(r!==s),onClick:c}),u.createElement(Er,{severity:"warning",sx:{flex:1,minWidth:"10em"}},"Be careful, you can easily break things here")):u.createElement(Ro,{icon:ck,variant:"outlined",labelFrom:"sm",onClick(){a(!0),setTimeout(()=>wy("main textarea"),500)}},"Edit"),u.createElement(ze,{flex:1,minWidth:"fit-content"},u.createElement(Bp,{label:"File path",value:e==null?void 0:e.fullPath}))),n||r!==void 0&&u.createElement(kfe,{margin:10},u.createElement(vI,{value:r,disabled:!l,style:{background:"#8881"},onValueChange:o,onKeyDown(p){["s","Enter"].includes(s0(p))&&(c().then(),p.preventDefault())}})));function c(){return ut("set_config_text",{text:r}).then(()=>i(r))}function f(){r&&(navigator.clipboard.writeText(r.replace(/^\s*(\w*password|srp):.+\n/gm,"")),rr("copied"))}}function iRe(){return u.createElement(HJ,{theme:bme()},u.createElement(lRe,{},u.createElement(bk,{dateAdapter:oRe},u.createElement(j$e,{},u.createElement(Jq,{},u.createElement(Qfe,{style:{display:"flex",flexDirection:"column",minHeight:"100%",flex:1,maxWidth:"100%"}},u.createElement(aRe)))))))}function lRe(e){return u.createElement(ze,ye({sx:{bgcolor:"background.default",color:"text.primary",flex:1}},e))}function aRe(){const e=Yd().pathname.slice(1),t=_v.find(a=>a.path===e);let{title:n}=Gs();n=t&&(t.title||yz(t))||n;const[r,o]=u.useState(!1),s=Jo("lg"),i=t!=null&&t.noPaddingOnMobile?0:1,l=YF();return k5("keydown",({key:a,ctrlKey:c})=>{var h;if(!c)return;const f=Number(b0(a,{0:10}));if(!f)return;const p=(h=_v[f-1])==null?void 0:h.path;p!==void 0&&l(p||"/")}),u.createElement(u.Fragment,{},u.createElement(Ife,{},u.createElement("h1",{},"Admin-panel")),!s&&u.createElement(cRe,{title:n,openMenu:()=>o(!0)}),!s&&u.createElement(kie,{anchor:"left",open:r,onClose(){o(!1)}},u.createElement(kA,{onSelect:()=>o(!1)})),u.createElement(ze,{display:"flex",flex:1},s&&u.createElement(kA),u.createElement(ze,{component:"main",sx:{background:"url(cup.svg) no-repeat right fixed",backgroundSize:"contain",px:{xs:i,md:2,lg:3},pb:{xs:i,md:2},boxSizing:"border-box",position:"relative",display:"flex",flexDirection:"column",width:"100%",overflowX:"clip"}},n&&s&&u.createElement(qn,{variant:"h2",mb:2},n),u.createElement(Gq,{},_v.map((a,c)=>u.createElement(Hx,{key:c,path:a.path,element:u.createElement(a.comp)})),u.createElement(Hx,{path:"edit",element:u.createElement(sRe)})))))}function cRe({title:e,openMenu:t}){return u.createElement(Cte,{position:"sticky",sx:{mb:2}},u.createElement(d5,{},u.createElement(xr,{size:"large",edge:"start",color:"inherit",sx:{mr:2},"aria-label":"menu",onClick:t},u.createElement(wz)),u.createElement(ze,{component:"h2",m:0},e)))}Phe();jF(document.getElementById("root")).render(u.createElement(u.StrictMode,{},u.createElement(iRe)));export{an as c,vi as g};