hfs 0.47.2 → 0.48.0-alpha1

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.
Files changed (39) hide show
  1. package/admin/assets/index-12bfad23.js +520 -0
  2. package/admin/assets/{index-62247236.css → index-5f04953d.css} +1 -1
  3. package/{frontend/assets/sha512-108e3b0a.js → admin/assets/sha512-888f0eaa.js} +1 -1
  4. package/admin/index.html +2 -2
  5. package/frontend/assets/index-05dfd82f.css +1 -0
  6. package/frontend/assets/{index-7eec0199.js → index-12411ff6.js} +15 -15
  7. package/{admin/assets/sha512-0935647a.js → frontend/assets/sha512-549e6c3a.js} +1 -1
  8. package/frontend/index.html +2 -2
  9. package/package.json +20 -13
  10. package/plugins/vhosting/plugin.js +15 -15
  11. package/src/adminApis.js +4 -2
  12. package/src/api.auth.js +0 -3
  13. package/src/api.file_list.js +8 -7
  14. package/src/api.lang.js +1 -1
  15. package/src/api.net.js +133 -0
  16. package/src/api.plugins.js +31 -36
  17. package/src/api.vfs.js +1 -1
  18. package/src/apiMiddleware.js +22 -20
  19. package/src/config.js +2 -16
  20. package/src/const.js +4 -2
  21. package/src/cross.js +221 -0
  22. package/src/customHtml.js +7 -22
  23. package/src/debounceAsync.js +12 -9
  24. package/src/frontEndApis.js +2 -4
  25. package/src/github.js +86 -40
  26. package/src/langs/embedded.js +2 -1
  27. package/src/langs/hfs-lang-de.json +131 -0
  28. package/src/langs/hfs-lang-it.json +1 -1
  29. package/src/listen.js +49 -40
  30. package/src/log.js +3 -3
  31. package/src/middlewares.js +9 -6
  32. package/src/misc.js +33 -137
  33. package/src/plugins.js +46 -26
  34. package/src/update.js +1 -1
  35. package/src/util-http.js +11 -8
  36. package/src/util-os.js +1 -1
  37. package/admin/assets/index-ca5ac85e.js +0 -518
  38. package/frontend/assets/index-0ea37f5f.css +0 -1
  39. package/src/util-generators.js +0 -31
@@ -0,0 +1,520 @@
1
+ var K9=Object.defineProperty,q9=Object.defineProperties;var Y9=Object.getOwnPropertyDescriptors;var Fh=Object.getOwnPropertySymbols;var qI=Object.prototype.hasOwnProperty,YI=Object.prototype.propertyIsEnumerable;var Yi=Math.pow,n1=(e,t,n)=>t in e?K9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ce=(e,t)=>{for(var n in t||(t={}))qI.call(t,n)&&n1(e,n,t[n]);if(Fh)for(var n of Fh(t))YI.call(t,n)&&n1(e,n,t[n]);return e},Pt=(e,t)=>q9(e,Y9(t));var Wt=(e,t)=>{var n={};for(var r in e)qI.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Fh)for(var r of Fh(e))t.indexOf(r)<0&&YI.call(e,r)&&(n[r]=e[r]);return n};var Qi=(e,t,n)=>(n1(e,typeof t!="symbol"?t+"":t,n),n);var ct=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(d){o(d)}},s=c=>{try{a(n.throw(c))}catch(d){o(d)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});function Q9(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 i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{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 i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Sn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function yp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function UM(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return 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 WM={exports:{}},jt={};/**
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 bp=Symbol.for("react.element"),X9=Symbol.for("react.portal"),J9=Symbol.for("react.fragment"),Z9=Symbol.for("react.strict_mode"),eH=Symbol.for("react.profiler"),tH=Symbol.for("react.provider"),nH=Symbol.for("react.context"),rH=Symbol.for("react.forward_ref"),oH=Symbol.for("react.suspense"),iH=Symbol.for("react.memo"),sH=Symbol.for("react.lazy"),QI=Symbol.iterator;function lH(e){return e===null||typeof e!="object"?null:(e=QI&&e[QI]||e["@@iterator"],typeof e=="function"?e:null)}var GM={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},KM=Object.assign,qM={};function qu(e,t,n){this.props=e,this.context=t,this.refs=qM,this.updater=n||GM}qu.prototype.isReactComponent={};qu.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")};qu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function YM(){}YM.prototype=qu.prototype;function gC(e,t,n){this.props=e,this.context=t,this.refs=qM,this.updater=n||GM}var vC=gC.prototype=new YM;vC.constructor=gC;KM(vC,qu.prototype);vC.isPureReactComponent=!0;var XI=Array.isArray,QM=Object.prototype.hasOwnProperty,yC={current:null},XM={key:!0,ref:!0,__self:!0,__source:!0};function JM(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)QM.call(t,r)&&!XM.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var c=Array(a),d=0;d<a;d++)c[d]=arguments[d+2];o.children=c}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:bp,type:e,key:i,ref:s,props:o,_owner:yC.current}}function aH(e,t){return{$$typeof:bp,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function bC(e){return typeof e=="object"&&e!==null&&e.$$typeof===bp}function cH(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var JI=/\/+/g;function r1(e,t){return typeof e=="object"&&e!==null&&e.key!=null?cH(""+e.key):t.toString(36)}function bm(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case bp:case X9:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+r1(s,0):r,XI(o)?(n="",e!=null&&(n=e.replace(JI,"$&/")+"/"),bm(o,t,n,"",function(d){return d})):o!=null&&(bC(o)&&(o=aH(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(JI,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",XI(e))for(var a=0;a<e.length;a++){i=e[a];var c=r+r1(i,a);s+=bm(i,t,n,c,o)}else if(c=lH(e),typeof c=="function")for(e=c.call(e),a=0;!(i=e.next()).done;)i=i.value,c=r+r1(i,a++),s+=bm(i,t,n,c,o);else if(i==="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 s}function Lh(e,t,n){if(e==null)return e;var r=[],o=0;return bm(e,r,"","",function(i){return t.call(n,i,o++)}),r}function uH(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 qr={current:null},wm={transition:null},dH={ReactCurrentDispatcher:qr,ReactCurrentBatchConfig:wm,ReactCurrentOwner:yC};jt.Children={map:Lh,forEach:function(e,t,n){Lh(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Lh(e,function(){t++}),t},toArray:function(e){return Lh(e,function(t){return t})||[]},only:function(e){if(!bC(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};jt.Component=qu;jt.Fragment=J9;jt.Profiler=eH;jt.PureComponent=gC;jt.StrictMode=Z9;jt.Suspense=oH;jt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dH;jt.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=KM({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=yC.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(c in t)QM.call(t,c)&&!XM.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&a!==void 0?a[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){a=Array(c);for(var d=0;d<c;d++)a[d]=arguments[d+2];r.children=a}return{$$typeof:bp,type:e.type,key:o,ref:i,props:r,_owner:s}};jt.createContext=function(e){return e={$$typeof:nH,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:tH,_context:e},e.Consumer=e};jt.createElement=JM;jt.createFactory=function(e){var t=JM.bind(null,e);return t.type=e,t};jt.createRef=function(){return{current:null}};jt.forwardRef=function(e){return{$$typeof:rH,render:e}};jt.isValidElement=bC;jt.lazy=function(e){return{$$typeof:sH,_payload:{_status:-1,_result:e},_init:uH}};jt.memo=function(e,t){return{$$typeof:iH,type:e,compare:t===void 0?null:t}};jt.startTransition=function(e){var t=wm.transition;wm.transition={};try{e()}finally{wm.transition=t}};jt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};jt.useCallback=function(e,t){return qr.current.useCallback(e,t)};jt.useContext=function(e){return qr.current.useContext(e)};jt.useDebugValue=function(){};jt.useDeferredValue=function(e){return qr.current.useDeferredValue(e)};jt.useEffect=function(e,t){return qr.current.useEffect(e,t)};jt.useId=function(){return qr.current.useId()};jt.useImperativeHandle=function(e,t,n){return qr.current.useImperativeHandle(e,t,n)};jt.useInsertionEffect=function(e,t){return qr.current.useInsertionEffect(e,t)};jt.useLayoutEffect=function(e,t){return qr.current.useLayoutEffect(e,t)};jt.useMemo=function(e,t){return qr.current.useMemo(e,t)};jt.useReducer=function(e,t,n){return qr.current.useReducer(e,t,n)};jt.useRef=function(e){return qr.current.useRef(e)};jt.useState=function(e){return qr.current.useState(e)};jt.useSyncExternalStore=function(e,t,n){return qr.current.useSyncExternalStore(e,t,n)};jt.useTransition=function(){return qr.current.useTransition()};jt.version="18.2.0";WM.exports=jt;var u=WM.exports;const $o=yp(u),Aa=Q9({__proto__:null,default:$o},[u]);var ZM={exports:{}},Bo={},eT={exports:{}},tT={};/**
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(D,H){var W=D.length;D.push(H);e:for(;0<W;){var K=W-1>>>1,Y=D[K];if(0<o(Y,H))D[K]=H,D[W]=Y,W=K;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var H=D[0],W=D.pop();if(W!==H){D[0]=W;e:for(var K=0,Y=D.length,ie=Y>>>1;K<ie;){var re=2*(K+1)-1,de=D[re],se=re+1,le=D[se];if(0>o(de,W))se<Y&&0>o(le,de)?(D[K]=le,D[se]=W,K=se):(D[K]=de,D[re]=W,K=re);else if(se<Y&&0>o(le,W))D[K]=le,D[se]=W,K=se;else break e}}return H}function o(D,H){var W=D.sortIndex-H.sortIndex;return W!==0?W:D.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var c=[],d=[],p=1,h=null,m=3,g=!1,y=!1,v=!1,E=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,C=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(D){for(var H=n(d);H!==null;){if(H.callback===null)r(d);else if(H.startTime<=D)r(d),H.sortIndex=H.expirationTime,t(c,H);else break;H=n(d)}}function P(D){if(v=!1,x(D),!y)if(n(c)!==null)y=!0,z(_);else{var H=n(d);H!==null&&V(P,H.startTime-D)}}function _(D,H){y=!1,v&&(v=!1,w(R),R=-1),g=!0;var W=m;try{for(x(H),h=n(c);h!==null&&(!(h.expirationTime>H)||D&&!O());){var K=h.callback;if(typeof K=="function"){h.callback=null,m=h.priorityLevel;var Y=K(h.expirationTime<=H);H=e.unstable_now(),typeof Y=="function"?h.callback=Y:h===n(c)&&r(c),x(H)}else r(c);h=n(c)}if(h!==null)var ie=!0;else{var re=n(d);re!==null&&V(P,re.startTime-H),ie=!1}return ie}finally{h=null,m=W,g=!1}}var k=!1,I=null,R=-1,F=5,A=-1;function O(){return!(e.unstable_now()-A<F)}function N(){if(I!==null){var D=e.unstable_now();A=D;var H=!0;try{H=I(!0,D)}finally{H?B():(k=!1,I=null)}}else k=!1}var B;if(typeof C=="function")B=function(){C(N)};else if(typeof MessageChannel!="undefined"){var M=new MessageChannel,L=M.port2;M.port1.onmessage=N,B=function(){L.postMessage(null)}}else B=function(){E(N,0)};function z(D){I=D,k||(k=!0,B())}function V(D,H){R=E(function(){D(e.unstable_now())},H)}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(D){D.callback=null},e.unstable_continueExecution=function(){y||g||(y=!0,z(_))},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(D){switch(m){case 1:case 2:case 3:var H=3;break;default:H=m}var W=m;m=H;try{return D()}finally{m=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,H){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var W=m;m=D;try{return H()}finally{m=W}},e.unstable_scheduleCallback=function(D,H,W){var K=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?K+W:K):W=K,D){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=W+Y,D={id:p++,callback:H,priorityLevel:D,startTime:W,expirationTime:Y,sortIndex:-1},W>K?(D.sortIndex=W,t(d,D),n(c)===null&&D===n(d)&&(v?(w(R),R=-1):v=!0,V(P,W-K))):(D.sortIndex=Y,t(c,D),y||g||(y=!0,z(_))),D},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(D){var H=m;return function(){var W=m;m=H;try{return D.apply(this,arguments)}finally{m=W}}}})(tT);eT.exports=tT;var fH=eT.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 nT=u,Oo=fH;function Te(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 rT=new Set,Mf={};function tc(e,t){Eu(e,t),Eu(e+"Capture",t)}function Eu(e,t){for(Mf[e]=t,e=0;e<t.length;e++)rT.add(t[e])}var Vs=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),xb=Object.prototype.hasOwnProperty,pH=/^[: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]*$/,ZI={},ek={};function hH(e){return xb.call(ek,e)?!0:xb.call(ZI,e)?!1:pH.test(e)?ek[e]=!0:(ZI[e]=!0,!1)}function mH(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 gH(e,t,n,r){if(t===null||typeof t=="undefined"||mH(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 Yr(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Er={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Er[e]=new Yr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Er[t]=new Yr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Er[e]=new Yr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Er[e]=new Yr(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){Er[e]=new Yr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Er[e]=new Yr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Er[e]=new Yr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Er[e]=new Yr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Er[e]=new Yr(e,5,!1,e.toLowerCase(),null,!1,!1)});var wC=/[\-:]([a-z])/g;function CC(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(wC,CC);Er[t]=new Yr(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(wC,CC);Er[t]=new Yr(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(wC,CC);Er[t]=new Yr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Er[e]=new Yr(e,1,!1,e.toLowerCase(),null,!1,!1)});Er.xlinkHref=new Yr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Er[e]=new Yr(e,1,!1,e.toLowerCase(),null,!0,!0)});function xC(e,t,n,r){var o=Er.hasOwnProperty(t)?Er[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(gH(t,n,o,r)&&(n=null),r||o===null?hH(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 Js=nT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ah=Symbol.for("react.element"),Wc=Symbol.for("react.portal"),Gc=Symbol.for("react.fragment"),SC=Symbol.for("react.strict_mode"),Sb=Symbol.for("react.profiler"),oT=Symbol.for("react.provider"),iT=Symbol.for("react.context"),EC=Symbol.for("react.forward_ref"),Eb=Symbol.for("react.suspense"),Pb=Symbol.for("react.suspense_list"),PC=Symbol.for("react.memo"),bl=Symbol.for("react.lazy"),sT=Symbol.for("react.offscreen"),tk=Symbol.iterator;function Td(e){return e===null||typeof e!="object"?null:(e=tk&&e[tk]||e["@@iterator"],typeof e=="function"?e:null)}var zn=Object.assign,o1;function tf(e){if(o1===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);o1=t&&t[1]||""}return`
26
+ `+o1+e}var i1=!1;function s1(e,t){if(!e||i1)return"";i1=!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(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var o=d.stack.split(`
27
+ `),i=r.stack.split(`
28
+ `),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var c=`
29
+ `+o[s].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=s&&0<=a);break}}}finally{i1=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?tf(e):""}function vH(e){switch(e.tag){case 5:return tf(e.type);case 16:return tf("Lazy");case 13:return tf("Suspense");case 19:return tf("SuspenseList");case 0:case 2:case 15:return e=s1(e.type,!1),e;case 11:return e=s1(e.type.render,!1),e;case 1:return e=s1(e.type,!0),e;default:return""}}function Ib(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 Gc:return"Fragment";case Wc:return"Portal";case Sb:return"Profiler";case SC:return"StrictMode";case Eb:return"Suspense";case Pb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case iT:return(e.displayName||"Context")+".Consumer";case oT:return(e._context.displayName||"Context")+".Provider";case EC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case PC:return t=e.displayName||null,t!==null?t:Ib(e.type)||"Memo";case bl:t=e._payload,e=e._init;try{return Ib(e(t))}catch(n){}}return null}function yH(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 Ib(t);case 8:return t===SC?"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 Wl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lT(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bH(e){var t=lT(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,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Dh(e){e._valueTracker||(e._valueTracker=bH(e))}function aT(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=lT(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Km(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 kb(e,t){var n=t.checked;return zn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function nk(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Wl(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 cT(e,t){t=t.checked,t!=null&&xC(e,"checked",t,!1)}function _b(e,t){cT(e,t);var n=Wl(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")?$b(e,t.type,n):t.hasOwnProperty("defaultValue")&&$b(e,t.type,Wl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function rk(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 $b(e,t,n){(t!=="number"||Km(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var nf=Array.isArray;function cu(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=""+Wl(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 Rb(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Te(91));return zn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ok(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Te(92));if(nf(n)){if(1<n.length)throw Error(Te(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Wl(n)}}function uT(e,t){var n=Wl(t.value),r=Wl(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 ik(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function dT(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 Mb(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?dT(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Nh,fT=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(Nh=Nh||document.createElement("div"),Nh.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Nh.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Tf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ff={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},wH=["Webkit","ms","Moz","O"];Object.keys(ff).forEach(function(e){wH.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ff[t]=ff[e]})});function pT(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ff.hasOwnProperty(e)&&ff[e]?(""+t).trim():t+"px"}function hT(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=pT(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var CH=zn({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 Tb(e,t){if(t){if(CH[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Te(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Te(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Te(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Te(62))}}function Ob(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 Fb=null;function IC(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Lb=null,uu=null,du=null;function sk(e){if(e=xp(e)){if(typeof Lb!="function")throw Error(Te(280));var t=e.stateNode;t&&(t=ev(t),Lb(e.stateNode,e.type,t))}}function mT(e){uu?du?du.push(e):du=[e]:uu=e}function gT(){if(uu){var e=uu,t=du;if(du=uu=null,sk(e),t)for(e=0;e<t.length;e++)sk(t[e])}}function vT(e,t){return e(t)}function yT(){}var l1=!1;function bT(e,t,n){if(l1)return e(t,n);l1=!0;try{return vT(e,t,n)}finally{l1=!1,(uu!==null||du!==null)&&(yT(),gT())}}function Of(e,t){var n=e.stateNode;if(n===null)return null;var r=ev(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(Te(231,t,typeof n));return n}var Ab=!1;if(Vs)try{var Od={};Object.defineProperty(Od,"passive",{get:function(){Ab=!0}}),window.addEventListener("test",Od,Od),window.removeEventListener("test",Od,Od)}catch(e){Ab=!1}function xH(e,t,n,r,o,i,s,a,c){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(p){this.onError(p)}}var pf=!1,qm=null,Ym=!1,Db=null,SH={onError:function(e){pf=!0,qm=e}};function EH(e,t,n,r,o,i,s,a,c){pf=!1,qm=null,xH.apply(SH,arguments)}function PH(e,t,n,r,o,i,s,a,c){if(EH.apply(this,arguments),pf){if(pf){var d=qm;pf=!1,qm=null}else throw Error(Te(198));Ym||(Ym=!0,Db=d)}}function nc(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 wT(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 lk(e){if(nc(e)!==e)throw Error(Te(188))}function IH(e){var t=e.alternate;if(!t){if(t=nc(e),t===null)throw Error(Te(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return lk(o),e;if(i===r)return lk(o),t;i=i.sibling}throw Error(Te(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s)throw Error(Te(189))}}if(n.alternate!==r)throw Error(Te(190))}if(n.tag!==3)throw Error(Te(188));return n.stateNode.current===n?e:t}function CT(e){return e=IH(e),e!==null?xT(e):null}function xT(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=xT(e);if(t!==null)return t;e=e.sibling}return null}var ST=Oo.unstable_scheduleCallback,ak=Oo.unstable_cancelCallback,kH=Oo.unstable_shouldYield,_H=Oo.unstable_requestPaint,Yn=Oo.unstable_now,$H=Oo.unstable_getCurrentPriorityLevel,kC=Oo.unstable_ImmediatePriority,ET=Oo.unstable_UserBlockingPriority,Qm=Oo.unstable_NormalPriority,RH=Oo.unstable_LowPriority,PT=Oo.unstable_IdlePriority,Qg=null,is=null;function MH(e){if(is&&typeof is.onCommitFiberRoot=="function")try{is.onCommitFiberRoot(Qg,e,void 0,(e.current.flags&128)===128)}catch(t){}}var Ni=Math.clz32?Math.clz32:FH,TH=Math.log,OH=Math.LN2;function FH(e){return e>>>=0,e===0?32:31-(TH(e)/OH|0)|0}var Bh=64,zh=4194304;function rf(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 Xm(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=rf(a):(i&=s,i!==0&&(r=rf(i)))}else s=n&~o,s!==0?r=rf(s):i!==0&&(r=rf(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ni(t),o=1<<n,r|=e[n],t&=~o;return r}function LH(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 AH(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-Ni(i),a=1<<s,c=o[s];c===-1?(!(a&n)||a&r)&&(o[s]=LH(a,t)):c<=t&&(e.expiredLanes|=a),i&=~a}}function Nb(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function IT(){var e=Bh;return Bh<<=1,!(Bh&4194240)&&(Bh=64),e}function a1(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function wp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ni(t),e[t]=n}function DH(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-Ni(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function _C(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ni(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ln=0;function kT(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var _T,$C,$T,RT,MT,Bb=!1,jh=[],Ol=null,Fl=null,Ll=null,Ff=new Map,Lf=new Map,El=[],NH="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 ck(e,t){switch(e){case"focusin":case"focusout":Ol=null;break;case"dragenter":case"dragleave":Fl=null;break;case"mouseover":case"mouseout":Ll=null;break;case"pointerover":case"pointerout":Ff.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lf.delete(t.pointerId)}}function Fd(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=xp(t),t!==null&&$C(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function BH(e,t,n,r,o){switch(t){case"focusin":return Ol=Fd(Ol,e,t,n,r,o),!0;case"dragenter":return Fl=Fd(Fl,e,t,n,r,o),!0;case"mouseover":return Ll=Fd(Ll,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Ff.set(i,Fd(Ff.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Lf.set(i,Fd(Lf.get(i)||null,e,t,n,r,o)),!0}return!1}function TT(e){var t=Sa(e.target);if(t!==null){var n=nc(t);if(n!==null){if(t=n.tag,t===13){if(t=wT(n),t!==null){e.blockedOn=t,MT(e.priority,function(){$T(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 Cm(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=zb(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Fb=r,n.target.dispatchEvent(r),Fb=null}else return t=xp(n),t!==null&&$C(t),e.blockedOn=n,!1;t.shift()}return!0}function uk(e,t,n){Cm(e)&&n.delete(t)}function zH(){Bb=!1,Ol!==null&&Cm(Ol)&&(Ol=null),Fl!==null&&Cm(Fl)&&(Fl=null),Ll!==null&&Cm(Ll)&&(Ll=null),Ff.forEach(uk),Lf.forEach(uk)}function Ld(e,t){e.blockedOn===t&&(e.blockedOn=null,Bb||(Bb=!0,Oo.unstable_scheduleCallback(Oo.unstable_NormalPriority,zH)))}function Af(e){function t(o){return Ld(o,e)}if(0<jh.length){Ld(jh[0],e);for(var n=1;n<jh.length;n++){var r=jh[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ol!==null&&Ld(Ol,e),Fl!==null&&Ld(Fl,e),Ll!==null&&Ld(Ll,e),Ff.forEach(t),Lf.forEach(t),n=0;n<El.length;n++)r=El[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<El.length&&(n=El[0],n.blockedOn===null);)TT(n),n.blockedOn===null&&El.shift()}var fu=Js.ReactCurrentBatchConfig,Jm=!0;function jH(e,t,n,r){var o=ln,i=fu.transition;fu.transition=null;try{ln=1,RC(e,t,n,r)}finally{ln=o,fu.transition=i}}function HH(e,t,n,r){var o=ln,i=fu.transition;fu.transition=null;try{ln=4,RC(e,t,n,r)}finally{ln=o,fu.transition=i}}function RC(e,t,n,r){if(Jm){var o=zb(e,t,n,r);if(o===null)y1(e,t,r,Zm,n),ck(e,r);else if(BH(o,e,t,n,r))r.stopPropagation();else if(ck(e,r),t&4&&-1<NH.indexOf(e)){for(;o!==null;){var i=xp(o);if(i!==null&&_T(i),i=zb(e,t,n,r),i===null&&y1(e,t,r,Zm,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else y1(e,t,r,null,n)}}var Zm=null;function zb(e,t,n,r){if(Zm=null,e=IC(r),e=Sa(e),e!==null)if(t=nc(e),t===null)e=null;else if(n=t.tag,n===13){if(e=wT(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 Zm=e,null}function OT(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($H()){case kC:return 1;case ET:return 4;case Qm:case RH:return 16;case PT:return 536870912;default:return 16}default:return 16}}var kl=null,MC=null,xm=null;function FT(){if(xm)return xm;var e,t=MC,n=t.length,r,o="value"in kl?kl.value:kl.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return xm=o.slice(e,1<r?1-r:void 0)}function Sm(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 Hh(){return!0}function dk(){return!1}function zo(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Hh:dk,this.isPropagationStopped=dk,this}return zn(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=Hh)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Hh)},persist:function(){},isPersistent:Hh}),t}var Yu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},TC=zo(Yu),Cp=zn({},Yu,{view:0,detail:0}),VH=zo(Cp),c1,u1,Ad,Xg=zn({},Cp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:OC,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!==Ad&&(Ad&&e.type==="mousemove"?(c1=e.screenX-Ad.screenX,u1=e.screenY-Ad.screenY):u1=c1=0,Ad=e),c1)},movementY:function(e){return"movementY"in e?e.movementY:u1}}),fk=zo(Xg),UH=zn({},Xg,{dataTransfer:0}),WH=zo(UH),GH=zn({},Cp,{relatedTarget:0}),d1=zo(GH),KH=zn({},Yu,{animationName:0,elapsedTime:0,pseudoElement:0}),qH=zo(KH),YH=zn({},Yu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),QH=zo(YH),XH=zn({},Yu,{data:0}),pk=zo(XH),JH={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ZH={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"},e8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function t8(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=e8[e])?!!t[e]:!1}function OC(){return t8}var n8=zn({},Cp,{key:function(e){if(e.key){var t=JH[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Sm(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ZH[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:OC,charCode:function(e){return e.type==="keypress"?Sm(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Sm(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),r8=zo(n8),o8=zn({},Xg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hk=zo(o8),i8=zn({},Cp,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:OC}),s8=zo(i8),l8=zn({},Yu,{propertyName:0,elapsedTime:0,pseudoElement:0}),a8=zo(l8),c8=zn({},Xg,{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}),u8=zo(c8),d8=[9,13,27,32],FC=Vs&&"CompositionEvent"in window,hf=null;Vs&&"documentMode"in document&&(hf=document.documentMode);var f8=Vs&&"TextEvent"in window&&!hf,LT=Vs&&(!FC||hf&&8<hf&&11>=hf),mk=String.fromCharCode(32),gk=!1;function AT(e,t){switch(e){case"keyup":return d8.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function DT(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Kc=!1;function p8(e,t){switch(e){case"compositionend":return DT(t);case"keypress":return t.which!==32?null:(gk=!0,mk);case"textInput":return e=t.data,e===mk&&gk?null:e;default:return null}}function h8(e,t){if(Kc)return e==="compositionend"||!FC&&AT(e,t)?(e=FT(),xm=MC=kl=null,Kc=!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 LT&&t.locale!=="ko"?null:t.data;default:return null}}var m8={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 vk(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!m8[e.type]:t==="textarea"}function NT(e,t,n,r){mT(r),t=eg(t,"onChange"),0<t.length&&(n=new TC("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var mf=null,Df=null;function g8(e){YT(e,0)}function Jg(e){var t=Qc(e);if(aT(t))return e}function v8(e,t){if(e==="change")return t}var BT=!1;if(Vs){var f1;if(Vs){var p1="oninput"in document;if(!p1){var yk=document.createElement("div");yk.setAttribute("oninput","return;"),p1=typeof yk.oninput=="function"}f1=p1}else f1=!1;BT=f1&&(!document.documentMode||9<document.documentMode)}function bk(){mf&&(mf.detachEvent("onpropertychange",zT),Df=mf=null)}function zT(e){if(e.propertyName==="value"&&Jg(Df)){var t=[];NT(t,Df,e,IC(e)),bT(g8,t)}}function y8(e,t,n){e==="focusin"?(bk(),mf=t,Df=n,mf.attachEvent("onpropertychange",zT)):e==="focusout"&&bk()}function b8(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jg(Df)}function w8(e,t){if(e==="click")return Jg(t)}function C8(e,t){if(e==="input"||e==="change")return Jg(t)}function x8(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Hi=typeof Object.is=="function"?Object.is:x8;function Nf(e,t){if(Hi(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(!xb.call(t,o)||!Hi(e[o],t[o]))return!1}return!0}function wk(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ck(e,t){var n=wk(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=wk(n)}}function jT(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jT(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function HT(){for(var e=window,t=Km();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=Km(e.document)}return t}function LC(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 S8(e){var t=HT(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&jT(n.ownerDocument.documentElement,n)){if(r!==null&&LC(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Ck(n,i);var s=Ck(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var E8=Vs&&"documentMode"in document&&11>=document.documentMode,qc=null,jb=null,gf=null,Hb=!1;function xk(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hb||qc==null||qc!==Km(r)||(r=qc,"selectionStart"in r&&LC(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}),gf&&Nf(gf,r)||(gf=r,r=eg(jb,"onSelect"),0<r.length&&(t=new TC("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=qc)))}function Vh(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Yc={animationend:Vh("Animation","AnimationEnd"),animationiteration:Vh("Animation","AnimationIteration"),animationstart:Vh("Animation","AnimationStart"),transitionend:Vh("Transition","TransitionEnd")},h1={},VT={};Vs&&(VT=document.createElement("div").style,"AnimationEvent"in window||(delete Yc.animationend.animation,delete Yc.animationiteration.animation,delete Yc.animationstart.animation),"TransitionEvent"in window||delete Yc.transitionend.transition);function Zg(e){if(h1[e])return h1[e];if(!Yc[e])return e;var t=Yc[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in VT)return h1[e]=t[n];return e}var UT=Zg("animationend"),WT=Zg("animationiteration"),GT=Zg("animationstart"),KT=Zg("transitionend"),qT=new Map,Sk="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 ta(e,t){qT.set(e,t),tc(t,[e])}for(var m1=0;m1<Sk.length;m1++){var g1=Sk[m1],P8=g1.toLowerCase(),I8=g1[0].toUpperCase()+g1.slice(1);ta(P8,"on"+I8)}ta(UT,"onAnimationEnd");ta(WT,"onAnimationIteration");ta(GT,"onAnimationStart");ta("dblclick","onDoubleClick");ta("focusin","onFocus");ta("focusout","onBlur");ta(KT,"onTransitionEnd");Eu("onMouseEnter",["mouseout","mouseover"]);Eu("onMouseLeave",["mouseout","mouseover"]);Eu("onPointerEnter",["pointerout","pointerover"]);Eu("onPointerLeave",["pointerout","pointerover"]);tc("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));tc("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));tc("onBeforeInput",["compositionend","keypress","textInput","paste"]);tc("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));tc("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));tc("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var of="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(" "),k8=new Set("cancel close invalid load scroll toggle".split(" ").concat(of));function Ek(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,PH(r,t,void 0,e),e.currentTarget=null}function YT(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 i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],c=a.instance,d=a.currentTarget;if(a=a.listener,c!==i&&o.isPropagationStopped())break e;Ek(o,a,d),i=c}else for(s=0;s<r.length;s++){if(a=r[s],c=a.instance,d=a.currentTarget,a=a.listener,c!==i&&o.isPropagationStopped())break e;Ek(o,a,d),i=c}}}if(Ym)throw e=Db,Ym=!1,Db=null,e}function Cn(e,t){var n=t[Kb];n===void 0&&(n=t[Kb]=new Set);var r=e+"__bubble";n.has(r)||(QT(t,e,2,!1),n.add(r))}function v1(e,t,n){var r=0;t&&(r|=4),QT(n,e,r,t)}var Uh="_reactListening"+Math.random().toString(36).slice(2);function Bf(e){if(!e[Uh]){e[Uh]=!0,rT.forEach(function(n){n!=="selectionchange"&&(k8.has(n)||v1(n,!1,e),v1(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Uh]||(t[Uh]=!0,v1("selectionchange",!1,t))}}function QT(e,t,n,r){switch(OT(t)){case 1:var o=jH;break;case 4:o=HH;break;default:o=RC}n=o.bind(null,t,n,e),o=void 0,!Ab||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 y1(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var c=s.tag;if((c===3||c===4)&&(c=s.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;s=s.return}for(;a!==null;){if(s=Sa(a),s===null)return;if(c=s.tag,c===5||c===6){r=i=s;continue e}a=a.parentNode}}r=r.return}bT(function(){var d=i,p=IC(n),h=[];e:{var m=qT.get(e);if(m!==void 0){var g=TC,y=e;switch(e){case"keypress":if(Sm(n)===0)break e;case"keydown":case"keyup":g=r8;break;case"focusin":y="focus",g=d1;break;case"focusout":y="blur",g=d1;break;case"beforeblur":case"afterblur":g=d1;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":g=fk;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=WH;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=s8;break;case UT:case WT:case GT:g=qH;break;case KT:g=a8;break;case"scroll":g=VH;break;case"wheel":g=u8;break;case"copy":case"cut":case"paste":g=QH;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=hk}var v=(t&4)!==0,E=!v&&e==="scroll",w=v?m!==null?m+"Capture":null:m;v=[];for(var C=d,x;C!==null;){x=C;var P=x.stateNode;if(x.tag===5&&P!==null&&(x=P,w!==null&&(P=Of(C,w),P!=null&&v.push(zf(C,P,x)))),E)break;C=C.return}0<v.length&&(m=new g(m,y,null,n,p),h.push({event:m,listeners:v}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",m&&n!==Fb&&(y=n.relatedTarget||n.fromElement)&&(Sa(y)||y[Us]))break e;if((g||m)&&(m=p.window===p?p:(m=p.ownerDocument)?m.defaultView||m.parentWindow:window,g?(y=n.relatedTarget||n.toElement,g=d,y=y?Sa(y):null,y!==null&&(E=nc(y),y!==E||y.tag!==5&&y.tag!==6)&&(y=null)):(g=null,y=d),g!==y)){if(v=fk,P="onMouseLeave",w="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(v=hk,P="onPointerLeave",w="onPointerEnter",C="pointer"),E=g==null?m:Qc(g),x=y==null?m:Qc(y),m=new v(P,C+"leave",g,n,p),m.target=E,m.relatedTarget=x,P=null,Sa(p)===d&&(v=new v(w,C+"enter",y,n,p),v.target=x,v.relatedTarget=E,P=v),E=P,g&&y)t:{for(v=g,w=y,C=0,x=v;x;x=Pc(x))C++;for(x=0,P=w;P;P=Pc(P))x++;for(;0<C-x;)v=Pc(v),C--;for(;0<x-C;)w=Pc(w),x--;for(;C--;){if(v===w||w!==null&&v===w.alternate)break t;v=Pc(v),w=Pc(w)}v=null}else v=null;g!==null&&Pk(h,m,g,v,!1),y!==null&&E!==null&&Pk(h,E,y,v,!0)}}e:{if(m=d?Qc(d):window,g=m.nodeName&&m.nodeName.toLowerCase(),g==="select"||g==="input"&&m.type==="file")var _=v8;else if(vk(m))if(BT)_=C8;else{_=b8;var k=y8}else(g=m.nodeName)&&g.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(_=w8);if(_&&(_=_(e,d))){NT(h,_,n,p);break e}k&&k(e,m,d),e==="focusout"&&(k=m._wrapperState)&&k.controlled&&m.type==="number"&&$b(m,"number",m.value)}switch(k=d?Qc(d):window,e){case"focusin":(vk(k)||k.contentEditable==="true")&&(qc=k,jb=d,gf=null);break;case"focusout":gf=jb=qc=null;break;case"mousedown":Hb=!0;break;case"contextmenu":case"mouseup":case"dragend":Hb=!1,xk(h,n,p);break;case"selectionchange":if(E8)break;case"keydown":case"keyup":xk(h,n,p)}var I;if(FC)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 Kc?AT(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(LT&&n.locale!=="ko"&&(Kc||R!=="onCompositionStart"?R==="onCompositionEnd"&&Kc&&(I=FT()):(kl=p,MC="value"in kl?kl.value:kl.textContent,Kc=!0)),k=eg(d,R),0<k.length&&(R=new pk(R,e,null,n,p),h.push({event:R,listeners:k}),I?R.data=I:(I=DT(n),I!==null&&(R.data=I)))),(I=f8?p8(e,n):h8(e,n))&&(d=eg(d,"onBeforeInput"),0<d.length&&(p=new pk("onBeforeInput","beforeinput",null,n,p),h.push({event:p,listeners:d}),p.data=I))}YT(h,t)})}function zf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function eg(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Of(e,n),i!=null&&r.unshift(zf(e,i,o)),i=Of(e,t),i!=null&&r.push(zf(e,i,o))),e=e.return}return r}function Pc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Pk(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,c=a.alternate,d=a.stateNode;if(c!==null&&c===r)break;a.tag===5&&d!==null&&(a=d,o?(c=Of(n,i),c!=null&&s.unshift(zf(n,c,a))):o||(c=Of(n,i),c!=null&&s.push(zf(n,c,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var _8=/\r\n?/g,$8=/\u0000|\uFFFD/g;function Ik(e){return(typeof e=="string"?e:""+e).replace(_8,`
30
+ `).replace($8,"")}function Wh(e,t,n){if(t=Ik(t),Ik(e)!==t&&n)throw Error(Te(425))}function tg(){}var Vb=null,Ub=null;function Wb(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 Gb=typeof setTimeout=="function"?setTimeout:void 0,R8=typeof clearTimeout=="function"?clearTimeout:void 0,kk=typeof Promise=="function"?Promise:void 0,M8=typeof queueMicrotask=="function"?queueMicrotask:typeof kk!="undefined"?function(e){return kk.resolve(null).then(e).catch(T8)}:Gb;function T8(e){setTimeout(function(){throw e})}function b1(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),Af(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Af(t)}function Al(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 _k(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 Qu=Math.random().toString(36).slice(2),rs="__reactFiber$"+Qu,jf="__reactProps$"+Qu,Us="__reactContainer$"+Qu,Kb="__reactEvents$"+Qu,O8="__reactListeners$"+Qu,F8="__reactHandles$"+Qu;function Sa(e){var t=e[rs];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Us]||n[rs]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_k(e);e!==null;){if(n=e[rs])return n;e=_k(e)}return t}e=n,n=e.parentNode}return null}function xp(e){return e=e[rs]||e[Us],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Qc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Te(33))}function ev(e){return e[jf]||null}var qb=[],Xc=-1;function na(e){return{current:e}}function En(e){0>Xc||(e.current=qb[Xc],qb[Xc]=null,Xc--)}function gn(e,t){Xc++,qb[Xc]=e.current,e.current=t}var Gl={},Lr=na(Gl),ao=na(!1),Da=Gl;function Pu(e,t){var n=e.type.contextTypes;if(!n)return Gl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function co(e){return e=e.childContextTypes,e!=null}function ng(){En(ao),En(Lr)}function $k(e,t,n){if(Lr.current!==Gl)throw Error(Te(168));gn(Lr,t),gn(ao,n)}function XT(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(Te(108,yH(e)||"Unknown",o));return zn({},n,r)}function rg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gl,Da=Lr.current,gn(Lr,e),gn(ao,ao.current),!0}function Rk(e,t,n){var r=e.stateNode;if(!r)throw Error(Te(169));n?(e=XT(e,t,Da),r.__reactInternalMemoizedMergedChildContext=e,En(ao),En(Lr),gn(Lr,e)):En(ao),gn(ao,n)}var As=null,tv=!1,w1=!1;function JT(e){As===null?As=[e]:As.push(e)}function L8(e){tv=!0,JT(e)}function ra(){if(!w1&&As!==null){w1=!0;var e=0,t=ln;try{var n=As;for(ln=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}As=null,tv=!1}catch(o){throw As!==null&&(As=As.slice(e+1)),ST(kC,ra),o}finally{ln=t,w1=!1}}return null}var Jc=[],Zc=0,og=null,ig=0,ii=[],si=0,Na=null,Ds=1,Ns="";function va(e,t){Jc[Zc++]=ig,Jc[Zc++]=og,og=e,ig=t}function ZT(e,t,n){ii[si++]=Ds,ii[si++]=Ns,ii[si++]=Na,Na=e;var r=Ds;e=Ns;var o=32-Ni(r)-1;r&=~(1<<o),n+=1;var i=32-Ni(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Ds=1<<32-Ni(t)+o|n<<o|r,Ns=i+e}else Ds=1<<i|n<<o|r,Ns=e}function AC(e){e.return!==null&&(va(e,1),ZT(e,1,0))}function DC(e){for(;e===og;)og=Jc[--Zc],Jc[Zc]=null,ig=Jc[--Zc],Jc[Zc]=null;for(;e===Na;)Na=ii[--si],ii[si]=null,Ns=ii[--si],ii[si]=null,Ds=ii[--si],ii[si]=null}var Mo=null,Ro=null,Mn=!1,Ti=null;function eO(e,t){var n=li(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 Mk(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,Mo=e,Ro=Al(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Mo=e,Ro=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Na!==null?{id:Ds,overflow:Ns}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=li(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Mo=e,Ro=null,!0):!1;default:return!1}}function Yb(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Qb(e){if(Mn){var t=Ro;if(t){var n=t;if(!Mk(e,t)){if(Yb(e))throw Error(Te(418));t=Al(n.nextSibling);var r=Mo;t&&Mk(e,t)?eO(r,n):(e.flags=e.flags&-4097|2,Mn=!1,Mo=e)}}else{if(Yb(e))throw Error(Te(418));e.flags=e.flags&-4097|2,Mn=!1,Mo=e}}}function Tk(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Mo=e}function Gh(e){if(e!==Mo)return!1;if(!Mn)return Tk(e),Mn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Wb(e.type,e.memoizedProps)),t&&(t=Ro)){if(Yb(e))throw tO(),Error(Te(418));for(;t;)eO(e,t),t=Al(t.nextSibling)}if(Tk(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Te(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ro=Al(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ro=null}}else Ro=Mo?Al(e.stateNode.nextSibling):null;return!0}function tO(){for(var e=Ro;e;)e=Al(e.nextSibling)}function Iu(){Ro=Mo=null,Mn=!1}function NC(e){Ti===null?Ti=[e]:Ti.push(e)}var A8=Js.ReactCurrentBatchConfig;function $i(e,t){if(e&&e.defaultProps){t=zn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var sg=na(null),lg=null,eu=null,BC=null;function zC(){BC=eu=lg=null}function jC(e){var t=sg.current;En(sg),e._currentValue=t}function Xb(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 pu(e,t){lg=e,BC=eu=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(lo=!0),e.firstContext=null)}function hi(e){var t=e._currentValue;if(BC!==e)if(e={context:e,memoizedValue:t,next:null},eu===null){if(lg===null)throw Error(Te(308));eu=e,lg.dependencies={lanes:0,firstContext:e}}else eu=eu.next=e;return t}var Ea=null;function HC(e){Ea===null?Ea=[e]:Ea.push(e)}function nO(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,HC(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ws(e,r)}function Ws(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 wl=!1;function VC(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function rO(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 zs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Dl(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,qt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ws(e,n)}return o=r.interleaved,o===null?(t.next=t,HC(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ws(e,n)}function Em(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,_C(e,n)}}function Ok(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,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 ag(e,t,n,r){var o=e.updateQueue;wl=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var c=a,d=c.next;c.next=null,s===null?i=d:s.next=d,s=c;var p=e.alternate;p!==null&&(p=p.updateQueue,a=p.lastBaseUpdate,a!==s&&(a===null?p.firstBaseUpdate=d:a.next=d,p.lastBaseUpdate=c))}if(i!==null){var h=o.baseState;s=0,p=d=c=null,a=i;do{var m=a.lane,g=a.eventTime;if((r&m)===m){p!==null&&(p=p.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,v=a;switch(m=t,g=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){h=y.call(g,h,m);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,m=typeof y=="function"?y.call(g,h,m):y,m==null)break e;h=zn({},h,m);break e;case 2:wl=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[a]:m.push(a))}else g={eventTime:g,lane:m,tag:a.tag,payload:a.payload,callback:a.callback,next:null},p===null?(d=p=g,c=h):p=p.next=g,s|=m;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;m=a,a=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(1);if(p===null&&(c=h),o.baseState=c,o.firstBaseUpdate=d,o.lastBaseUpdate=p,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);za|=s,e.lanes=s,e.memoizedState=h}}function Fk(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(Te(191,o));o.call(r)}}}var oO=new nT.Component().refs;function Jb(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:zn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var nv={isMounted:function(e){return(e=e._reactInternals)?nc(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Wr(),o=Bl(e),i=zs(r,o);i.payload=t,n!=null&&(i.callback=n),t=Dl(e,i,o),t!==null&&(Bi(t,e,o,r),Em(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Wr(),o=Bl(e),i=zs(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Dl(e,i,o),t!==null&&(Bi(t,e,o,r),Em(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Wr(),r=Bl(e),o=zs(n,r);o.tag=2,t!=null&&(o.callback=t),t=Dl(e,o,r),t!==null&&(Bi(t,e,r,n),Em(t,e,r))}};function Lk(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!Nf(n,r)||!Nf(o,i):!0}function iO(e,t,n){var r=!1,o=Gl,i=t.contextType;return typeof i=="object"&&i!==null?i=hi(i):(o=co(t)?Da:Lr.current,r=t.contextTypes,i=(r=r!=null)?Pu(e,o):Gl),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=nv,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ak(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&&nv.enqueueReplaceState(t,t.state,null)}function Zb(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=oO,VC(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=hi(i):(i=co(t)?Da:Lr.current,o.context=Pu(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Jb(e,t,i,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&&nv.enqueueReplaceState(o,o.state,null),ag(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Dd(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(Te(309));var r=n.stateNode}if(!r)throw Error(Te(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;a===oO&&(a=o.refs={}),s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(Te(284));if(!n._owner)throw Error(Te(290,e))}return e}function Kh(e,t){throw e=Object.prototype.toString.call(t),Error(Te(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Dk(e){var t=e._init;return t(e._payload)}function sO(e){function t(w,C){if(e){var x=w.deletions;x===null?(w.deletions=[C],w.flags|=16):x.push(C)}}function n(w,C){if(!e)return null;for(;C!==null;)t(w,C),C=C.sibling;return null}function r(w,C){for(w=new Map;C!==null;)C.key!==null?w.set(C.key,C):w.set(C.index,C),C=C.sibling;return w}function o(w,C){return w=zl(w,C),w.index=0,w.sibling=null,w}function i(w,C,x){return w.index=x,e?(x=w.alternate,x!==null?(x=x.index,x<C?(w.flags|=2,C):x):(w.flags|=2,C)):(w.flags|=1048576,C)}function s(w){return e&&w.alternate===null&&(w.flags|=2),w}function a(w,C,x,P){return C===null||C.tag!==6?(C=k1(x,w.mode,P),C.return=w,C):(C=o(C,x),C.return=w,C)}function c(w,C,x,P){var _=x.type;return _===Gc?p(w,C,x.props.children,P,x.key):C!==null&&(C.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===bl&&Dk(_)===C.type)?(P=o(C,x.props),P.ref=Dd(w,C,x),P.return=w,P):(P=Rm(x.type,x.key,x.props,null,w.mode,P),P.ref=Dd(w,C,x),P.return=w,P)}function d(w,C,x,P){return C===null||C.tag!==4||C.stateNode.containerInfo!==x.containerInfo||C.stateNode.implementation!==x.implementation?(C=_1(x,w.mode,P),C.return=w,C):(C=o(C,x.children||[]),C.return=w,C)}function p(w,C,x,P,_){return C===null||C.tag!==7?(C=Ra(x,w.mode,P,_),C.return=w,C):(C=o(C,x),C.return=w,C)}function h(w,C,x){if(typeof C=="string"&&C!==""||typeof C=="number")return C=k1(""+C,w.mode,x),C.return=w,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Ah:return x=Rm(C.type,C.key,C.props,null,w.mode,x),x.ref=Dd(w,null,C),x.return=w,x;case Wc:return C=_1(C,w.mode,x),C.return=w,C;case bl:var P=C._init;return h(w,P(C._payload),x)}if(nf(C)||Td(C))return C=Ra(C,w.mode,x,null),C.return=w,C;Kh(w,C)}return null}function m(w,C,x,P){var _=C!==null?C.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return _!==null?null:a(w,C,""+x,P);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Ah:return x.key===_?c(w,C,x,P):null;case Wc:return x.key===_?d(w,C,x,P):null;case bl:return _=x._init,m(w,C,_(x._payload),P)}if(nf(x)||Td(x))return _!==null?null:p(w,C,x,P,null);Kh(w,x)}return null}function g(w,C,x,P,_){if(typeof P=="string"&&P!==""||typeof P=="number")return w=w.get(x)||null,a(C,w,""+P,_);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case Ah:return w=w.get(P.key===null?x:P.key)||null,c(C,w,P,_);case Wc:return w=w.get(P.key===null?x:P.key)||null,d(C,w,P,_);case bl:var k=P._init;return g(w,C,x,k(P._payload),_)}if(nf(P)||Td(P))return w=w.get(x)||null,p(C,w,P,_,null);Kh(C,P)}return null}function y(w,C,x,P){for(var _=null,k=null,I=C,R=C=0,F=null;I!==null&&R<x.length;R++){I.index>R?(F=I,I=null):F=I.sibling;var A=m(w,I,x[R],P);if(A===null){I===null&&(I=F);break}e&&I&&A.alternate===null&&t(w,I),C=i(A,C,R),k===null?_=A:k.sibling=A,k=A,I=F}if(R===x.length)return n(w,I),Mn&&va(w,R),_;if(I===null){for(;R<x.length;R++)I=h(w,x[R],P),I!==null&&(C=i(I,C,R),k===null?_=I:k.sibling=I,k=I);return Mn&&va(w,R),_}for(I=r(w,I);R<x.length;R++)F=g(I,w,R,x[R],P),F!==null&&(e&&F.alternate!==null&&I.delete(F.key===null?R:F.key),C=i(F,C,R),k===null?_=F:k.sibling=F,k=F);return e&&I.forEach(function(O){return t(w,O)}),Mn&&va(w,R),_}function v(w,C,x,P){var _=Td(x);if(typeof _!="function")throw Error(Te(150));if(x=_.call(x),x==null)throw Error(Te(151));for(var k=_=null,I=C,R=C=0,F=null,A=x.next();I!==null&&!A.done;R++,A=x.next()){I.index>R?(F=I,I=null):F=I.sibling;var O=m(w,I,A.value,P);if(O===null){I===null&&(I=F);break}e&&I&&O.alternate===null&&t(w,I),C=i(O,C,R),k===null?_=O:k.sibling=O,k=O,I=F}if(A.done)return n(w,I),Mn&&va(w,R),_;if(I===null){for(;!A.done;R++,A=x.next())A=h(w,A.value,P),A!==null&&(C=i(A,C,R),k===null?_=A:k.sibling=A,k=A);return Mn&&va(w,R),_}for(I=r(w,I);!A.done;R++,A=x.next())A=g(I,w,R,A.value,P),A!==null&&(e&&A.alternate!==null&&I.delete(A.key===null?R:A.key),C=i(A,C,R),k===null?_=A:k.sibling=A,k=A);return e&&I.forEach(function(N){return t(w,N)}),Mn&&va(w,R),_}function E(w,C,x,P){if(typeof x=="object"&&x!==null&&x.type===Gc&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Ah:e:{for(var _=x.key,k=C;k!==null;){if(k.key===_){if(_=x.type,_===Gc){if(k.tag===7){n(w,k.sibling),C=o(k,x.props.children),C.return=w,w=C;break e}}else if(k.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===bl&&Dk(_)===k.type){n(w,k.sibling),C=o(k,x.props),C.ref=Dd(w,k,x),C.return=w,w=C;break e}n(w,k);break}else t(w,k);k=k.sibling}x.type===Gc?(C=Ra(x.props.children,w.mode,P,x.key),C.return=w,w=C):(P=Rm(x.type,x.key,x.props,null,w.mode,P),P.ref=Dd(w,C,x),P.return=w,w=P)}return s(w);case Wc:e:{for(k=x.key;C!==null;){if(C.key===k)if(C.tag===4&&C.stateNode.containerInfo===x.containerInfo&&C.stateNode.implementation===x.implementation){n(w,C.sibling),C=o(C,x.children||[]),C.return=w,w=C;break e}else{n(w,C);break}else t(w,C);C=C.sibling}C=_1(x,w.mode,P),C.return=w,w=C}return s(w);case bl:return k=x._init,E(w,C,k(x._payload),P)}if(nf(x))return y(w,C,x,P);if(Td(x))return v(w,C,x,P);Kh(w,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,C!==null&&C.tag===6?(n(w,C.sibling),C=o(C,x),C.return=w,w=C):(n(w,C),C=k1(x,w.mode,P),C.return=w,w=C),s(w)):n(w,C)}return E}var ku=sO(!0),lO=sO(!1),Sp={},ss=na(Sp),Hf=na(Sp),Vf=na(Sp);function Pa(e){if(e===Sp)throw Error(Te(174));return e}function UC(e,t){switch(gn(Vf,t),gn(Hf,e),gn(ss,Sp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Mb(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Mb(t,e)}En(ss),gn(ss,t)}function _u(){En(ss),En(Hf),En(Vf)}function aO(e){Pa(Vf.current);var t=Pa(ss.current),n=Mb(t,e.type);t!==n&&(gn(Hf,e),gn(ss,n))}function WC(e){Hf.current===e&&(En(ss),En(Hf))}var Dn=na(0);function cg(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 C1=[];function GC(){for(var e=0;e<C1.length;e++)C1[e]._workInProgressVersionPrimary=null;C1.length=0}var Pm=Js.ReactCurrentDispatcher,x1=Js.ReactCurrentBatchConfig,Ba=0,Bn=null,rr=null,pr=null,ug=!1,vf=!1,Uf=0,D8=0;function kr(){throw Error(Te(321))}function KC(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Hi(e[n],t[n]))return!1;return!0}function qC(e,t,n,r,o,i){if(Ba=i,Bn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Pm.current=e===null||e.memoizedState===null?j8:H8,e=n(r,o),vf){i=0;do{if(vf=!1,Uf=0,25<=i)throw Error(Te(301));i+=1,pr=rr=null,t.updateQueue=null,Pm.current=V8,e=n(r,o)}while(vf)}if(Pm.current=dg,t=rr!==null&&rr.next!==null,Ba=0,pr=rr=Bn=null,ug=!1,t)throw Error(Te(300));return e}function YC(){var e=Uf!==0;return Uf=0,e}function Ji(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pr===null?Bn.memoizedState=pr=e:pr=pr.next=e,pr}function mi(){if(rr===null){var e=Bn.alternate;e=e!==null?e.memoizedState:null}else e=rr.next;var t=pr===null?Bn.memoizedState:pr.next;if(t!==null)pr=t,rr=e;else{if(e===null)throw Error(Te(310));rr=e,e={memoizedState:rr.memoizedState,baseState:rr.baseState,baseQueue:rr.baseQueue,queue:rr.queue,next:null},pr===null?Bn.memoizedState=pr=e:pr=pr.next=e}return pr}function Wf(e,t){return typeof t=="function"?t(e):t}function S1(e){var t=mi(),n=t.queue;if(n===null)throw Error(Te(311));n.lastRenderedReducer=e;var r=rr,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,c=null,d=i;do{var p=d.lane;if((Ba&p)===p)c!==null&&(c=c.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var h={lane:p,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};c===null?(a=c=h,s=r):c=c.next=h,Bn.lanes|=p,za|=p}d=d.next}while(d!==null&&d!==i);c===null?s=r:c.next=a,Hi(r,t.memoizedState)||(lo=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Bn.lanes|=i,za|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function E1(e){var t=mi(),n=t.queue;if(n===null)throw Error(Te(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);Hi(i,t.memoizedState)||(lo=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function cO(){}function uO(e,t){var n=Bn,r=mi(),o=t(),i=!Hi(r.memoizedState,o);if(i&&(r.memoizedState=o,lo=!0),r=r.queue,QC(pO.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||pr!==null&&pr.memoizedState.tag&1){if(n.flags|=2048,Gf(9,fO.bind(null,n,r,o,t),void 0,null),hr===null)throw Error(Te(349));Ba&30||dO(n,t,o)}return o}function dO(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Bn.updateQueue,t===null?(t={lastEffect:null,stores:null},Bn.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function fO(e,t,n,r){t.value=n,t.getSnapshot=r,hO(t)&&mO(e)}function pO(e,t,n){return n(function(){hO(t)&&mO(e)})}function hO(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Hi(e,n)}catch(r){return!0}}function mO(e){var t=Ws(e,1);t!==null&&Bi(t,e,1,-1)}function Nk(e){var t=Ji();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Wf,lastRenderedState:e},t.queue=e,e=e.dispatch=z8.bind(null,Bn,e),[t.memoizedState,e]}function Gf(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Bn.updateQueue,t===null?(t={lastEffect:null,stores:null},Bn.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 gO(){return mi().memoizedState}function Im(e,t,n,r){var o=Ji();Bn.flags|=e,o.memoizedState=Gf(1|t,n,void 0,r===void 0?null:r)}function rv(e,t,n,r){var o=mi();r=r===void 0?null:r;var i=void 0;if(rr!==null){var s=rr.memoizedState;if(i=s.destroy,r!==null&&KC(r,s.deps)){o.memoizedState=Gf(t,n,i,r);return}}Bn.flags|=e,o.memoizedState=Gf(1|t,n,i,r)}function Bk(e,t){return Im(8390656,8,e,t)}function QC(e,t){return rv(2048,8,e,t)}function vO(e,t){return rv(4,2,e,t)}function yO(e,t){return rv(4,4,e,t)}function bO(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 wO(e,t,n){return n=n!=null?n.concat([e]):null,rv(4,4,bO.bind(null,t,e),n)}function XC(){}function CO(e,t){var n=mi();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&KC(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function xO(e,t){var n=mi();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&KC(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function SO(e,t,n){return Ba&21?(Hi(n,t)||(n=IT(),Bn.lanes|=n,za|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,lo=!0),e.memoizedState=n)}function N8(e,t){var n=ln;ln=n!==0&&4>n?n:4,e(!0);var r=x1.transition;x1.transition={};try{e(!1),t()}finally{ln=n,x1.transition=r}}function EO(){return mi().memoizedState}function B8(e,t,n){var r=Bl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},PO(e))IO(t,n);else if(n=nO(e,t,n,r),n!==null){var o=Wr();Bi(n,e,r,o),kO(n,t,r)}}function z8(e,t,n){var r=Bl(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(PO(e))IO(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Hi(a,s)){var c=t.interleaved;c===null?(o.next=o,HC(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch(d){}finally{}n=nO(e,t,o,r),n!==null&&(o=Wr(),Bi(n,e,r,o),kO(n,t,r))}}function PO(e){var t=e.alternate;return e===Bn||t!==null&&t===Bn}function IO(e,t){vf=ug=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function kO(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_C(e,n)}}var dg={readContext:hi,useCallback:kr,useContext:kr,useEffect:kr,useImperativeHandle:kr,useInsertionEffect:kr,useLayoutEffect:kr,useMemo:kr,useReducer:kr,useRef:kr,useState:kr,useDebugValue:kr,useDeferredValue:kr,useTransition:kr,useMutableSource:kr,useSyncExternalStore:kr,useId:kr,unstable_isNewReconciler:!1},j8={readContext:hi,useCallback:function(e,t){return Ji().memoizedState=[e,t===void 0?null:t],e},useContext:hi,useEffect:Bk,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Im(4194308,4,bO.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Im(4194308,4,e,t)},useInsertionEffect:function(e,t){return Im(4,2,e,t)},useMemo:function(e,t){var n=Ji();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ji();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=B8.bind(null,Bn,e),[r.memoizedState,e]},useRef:function(e){var t=Ji();return e={current:e},t.memoizedState=e},useState:Nk,useDebugValue:XC,useDeferredValue:function(e){return Ji().memoizedState=e},useTransition:function(){var e=Nk(!1),t=e[0];return e=N8.bind(null,e[1]),Ji().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Bn,o=Ji();if(Mn){if(n===void 0)throw Error(Te(407));n=n()}else{if(n=t(),hr===null)throw Error(Te(349));Ba&30||dO(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Bk(pO.bind(null,r,i,e),[e]),r.flags|=2048,Gf(9,fO.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ji(),t=hr.identifierPrefix;if(Mn){var n=Ns,r=Ds;n=(r&~(1<<32-Ni(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Uf++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=D8++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},H8={readContext:hi,useCallback:CO,useContext:hi,useEffect:QC,useImperativeHandle:wO,useInsertionEffect:vO,useLayoutEffect:yO,useMemo:xO,useReducer:S1,useRef:gO,useState:function(){return S1(Wf)},useDebugValue:XC,useDeferredValue:function(e){var t=mi();return SO(t,rr.memoizedState,e)},useTransition:function(){var e=S1(Wf)[0],t=mi().memoizedState;return[e,t]},useMutableSource:cO,useSyncExternalStore:uO,useId:EO,unstable_isNewReconciler:!1},V8={readContext:hi,useCallback:CO,useContext:hi,useEffect:QC,useImperativeHandle:wO,useInsertionEffect:vO,useLayoutEffect:yO,useMemo:xO,useReducer:E1,useRef:gO,useState:function(){return E1(Wf)},useDebugValue:XC,useDeferredValue:function(e){var t=mi();return rr===null?t.memoizedState=e:SO(t,rr.memoizedState,e)},useTransition:function(){var e=E1(Wf)[0],t=mi().memoizedState;return[e,t]},useMutableSource:cO,useSyncExternalStore:uO,useId:EO,unstable_isNewReconciler:!1};function $u(e,t){try{var n="",r=t;do n+=vH(r),r=r.return;while(r);var o=n}catch(i){o=`
31
+ Error generating stack: `+i.message+`
32
+ `+i.stack}return{value:e,source:t,stack:o,digest:null}}function P1(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function ew(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var U8=typeof WeakMap=="function"?WeakMap:Map;function _O(e,t,n){n=zs(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pg||(pg=!0,uw=r),ew(e,t)},n}function $O(e,t,n){n=zs(-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(){ew(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){ew(e,t),typeof r!="function"&&(Nl===null?Nl=new Set([this]):Nl.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function zk(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new U8;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=o7.bind(null,e,t,n),t.then(e,e))}function jk(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 Hk(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=zs(-1,1),t.tag=2,Dl(n,t,1))),n.lanes|=1),e)}var W8=Js.ReactCurrentOwner,lo=!1;function zr(e,t,n,r){t.child=e===null?lO(t,null,n,r):ku(t,e.child,n,r)}function Vk(e,t,n,r,o){n=n.render;var i=t.ref;return pu(t,o),r=qC(e,t,n,r,i,o),n=YC(),e!==null&&!lo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gs(e,t,o)):(Mn&&n&&AC(t),t.flags|=1,zr(e,t,r,o),t.child)}function Uk(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!ix(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,RO(e,t,i,r,o)):(e=Rm(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Nf,n(s,r)&&e.ref===t.ref)return Gs(e,t,o)}return t.flags|=1,e=zl(i,r),e.ref=t.ref,e.return=t,t.child=e}function RO(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Nf(i,r)&&e.ref===t.ref)if(lo=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(lo=!0);else return t.lanes=e.lanes,Gs(e,t,o)}return tw(e,t,n,r,o)}function MO(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},gn(nu,So),So|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,gn(nu,So),So|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,gn(nu,So),So|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,gn(nu,So),So|=r;return zr(e,t,o,n),t.child}function TO(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function tw(e,t,n,r,o){var i=co(n)?Da:Lr.current;return i=Pu(t,i),pu(t,o),n=qC(e,t,n,r,i,o),r=YC(),e!==null&&!lo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gs(e,t,o)):(Mn&&r&&AC(t),t.flags|=1,zr(e,t,n,o),t.child)}function Wk(e,t,n,r,o){if(co(n)){var i=!0;rg(t)}else i=!1;if(pu(t,o),t.stateNode===null)km(e,t),iO(t,n,r),Zb(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var c=s.context,d=n.contextType;typeof d=="object"&&d!==null?d=hi(d):(d=co(n)?Da:Lr.current,d=Pu(t,d));var p=n.getDerivedStateFromProps,h=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||c!==d)&&Ak(t,s,r,d),wl=!1;var m=t.memoizedState;s.state=m,ag(t,r,s,o),c=t.memoizedState,a!==r||m!==c||ao.current||wl?(typeof p=="function"&&(Jb(t,n,p,r),c=t.memoizedState),(a=wl||Lk(t,n,a,r,m,c,d))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),s.props=r,s.state=c,s.context=d,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,rO(e,t),a=t.memoizedProps,d=t.type===t.elementType?a:$i(t.type,a),s.props=d,h=t.pendingProps,m=s.context,c=n.contextType,typeof c=="object"&&c!==null?c=hi(c):(c=co(n)?Da:Lr.current,c=Pu(t,c));var g=n.getDerivedStateFromProps;(p=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||m!==c)&&Ak(t,s,r,c),wl=!1,m=t.memoizedState,s.state=m,ag(t,r,s,o);var y=t.memoizedState;a!==h||m!==y||ao.current||wl?(typeof g=="function"&&(Jb(t,n,g,r),y=t.memoizedState),(d=wl||Lk(t,n,d,r,m,y,c)||!1)?(p||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,y,c),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,y,c)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),s.props=r,s.state=y,s.context=c,r=d):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return nw(e,t,n,r,i,o)}function nw(e,t,n,r,o,i){TO(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Rk(t,n,!1),Gs(e,t,i);r=t.stateNode,W8.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=ku(t,e.child,null,i),t.child=ku(t,null,a,i)):zr(e,t,a,i),t.memoizedState=r.state,o&&Rk(t,n,!0),t.child}function OO(e){var t=e.stateNode;t.pendingContext?$k(e,t.pendingContext,t.pendingContext!==t.context):t.context&&$k(e,t.context,!1),UC(e,t.containerInfo)}function Gk(e,t,n,r,o){return Iu(),NC(o),t.flags|=256,zr(e,t,n,r),t.child}var rw={dehydrated:null,treeContext:null,retryLane:0};function ow(e){return{baseLanes:e,cachePool:null,transitions:null}}function FO(e,t,n){var r=t.pendingProps,o=Dn.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),gn(Dn,o&1),e===null)return Qb(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):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=sv(s,r,0,null),e=Ra(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=ow(n),t.memoizedState=rw,e):JC(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return G8(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var c={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=zl(o,c),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=zl(a,i):(i=Ra(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?ow(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=rw,r}return i=e.child,e=i.sibling,r=zl(i,{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 JC(e,t){return t=sv({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function qh(e,t,n,r){return r!==null&&NC(r),ku(t,e.child,null,n),e=JC(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function G8(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=P1(Error(Te(422))),qh(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=sv({mode:"visible",children:r.children},o,0,null),i=Ra(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&ku(t,e.child,null,s),t.child.memoizedState=ow(s),t.memoizedState=rw,i);if(!(t.mode&1))return qh(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(Te(419)),r=P1(i,r,void 0),qh(e,t,s,r)}if(a=(s&e.childLanes)!==0,lo||a){if(r=hr,r!==null){switch(s&-s){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|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Ws(e,o),Bi(r,e,o,-1))}return ox(),r=P1(Error(Te(421))),qh(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=i7.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Ro=Al(o.nextSibling),Mo=t,Mn=!0,Ti=null,e!==null&&(ii[si++]=Ds,ii[si++]=Ns,ii[si++]=Na,Ds=e.id,Ns=e.overflow,Na=t),t=JC(t,r.children),t.flags|=4096,t)}function Kk(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Xb(e.return,t,n)}function I1(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function LO(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(zr(e,t,r.children,n),r=Dn.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&&Kk(e,n,t);else if(e.tag===19)Kk(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(gn(Dn,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&&cg(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),I1(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&cg(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}I1(t,!0,n,null,i);break;case"together":I1(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function km(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gs(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),za|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Te(153));if(t.child!==null){for(e=t.child,n=zl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=zl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function K8(e,t,n){switch(t.tag){case 3:OO(t),Iu();break;case 5:aO(t);break;case 1:co(t.type)&&rg(t);break;case 4:UC(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;gn(sg,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(gn(Dn,Dn.current&1),t.flags|=128,null):n&t.child.childLanes?FO(e,t,n):(gn(Dn,Dn.current&1),e=Gs(e,t,n),e!==null?e.sibling:null);gn(Dn,Dn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return LO(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),gn(Dn,Dn.current),r)break;return null;case 22:case 23:return t.lanes=0,MO(e,t,n)}return Gs(e,t,n)}var AO,iw,DO,NO;AO=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}};iw=function(){};DO=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Pa(ss.current);var i=null;switch(n){case"input":o=kb(e,o),r=kb(e,r),i=[];break;case"select":o=zn({},o,{value:void 0}),r=zn({},r,{value:void 0}),i=[];break;case"textarea":o=Rb(e,o),r=Rb(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=tg)}Tb(n,r);var s;n=null;for(d in o)if(!r.hasOwnProperty(d)&&o.hasOwnProperty(d)&&o[d]!=null)if(d==="style"){var a=o[d];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Mf.hasOwnProperty(d)?i||(i=[]):(i=i||[]).push(d,null));for(d in r){var c=r[d];if(a=o!=null?o[d]:void 0,r.hasOwnProperty(d)&&c!==a&&(c!=null||a!=null))if(d==="style")if(a){for(s in a)!a.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&a[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(i||(i=[]),i.push(d,n)),n=c;else d==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,a=a?a.__html:void 0,c!=null&&a!==c&&(i=i||[]).push(d,c)):d==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(d,""+c):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Mf.hasOwnProperty(d)?(c!=null&&d==="onScroll"&&Cn("scroll",e),i||a===c||(i=[])):(i=i||[]).push(d,c))}n&&(i=i||[]).push("style",n);var d=i;(t.updateQueue=d)&&(t.flags|=4)}};NO=function(e,t,n,r){n!==r&&(t.flags|=4)};function Nd(e,t){if(!Mn)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 _r(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 q8(e,t,n){var r=t.pendingProps;switch(DC(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _r(t),null;case 1:return co(t.type)&&ng(),_r(t),null;case 3:return r=t.stateNode,_u(),En(ao),En(Lr),GC(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Gh(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ti!==null&&(pw(Ti),Ti=null))),iw(e,t),_r(t),null;case 5:WC(t);var o=Pa(Vf.current);if(n=t.type,e!==null&&t.stateNode!=null)DO(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Te(166));return _r(t),null}if(e=Pa(ss.current),Gh(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[rs]=t,r[jf]=i,e=(t.mode&1)!==0,n){case"dialog":Cn("cancel",r),Cn("close",r);break;case"iframe":case"object":case"embed":Cn("load",r);break;case"video":case"audio":for(o=0;o<of.length;o++)Cn(of[o],r);break;case"source":Cn("error",r);break;case"img":case"image":case"link":Cn("error",r),Cn("load",r);break;case"details":Cn("toggle",r);break;case"input":nk(r,i),Cn("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Cn("invalid",r);break;case"textarea":ok(r,i),Cn("invalid",r)}Tb(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];s==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Wh(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Wh(r.textContent,a,e),o=["children",""+a]):Mf.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Cn("scroll",r)}switch(n){case"input":Dh(r),rk(r,i,!0);break;case"textarea":Dh(r),ik(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=tg)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=dT(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[rs]=t,e[jf]=r,AO(e,t,!1,!1),t.stateNode=e;e:{switch(s=Ob(n,r),n){case"dialog":Cn("cancel",e),Cn("close",e),o=r;break;case"iframe":case"object":case"embed":Cn("load",e),o=r;break;case"video":case"audio":for(o=0;o<of.length;o++)Cn(of[o],e);o=r;break;case"source":Cn("error",e),o=r;break;case"img":case"image":case"link":Cn("error",e),Cn("load",e),o=r;break;case"details":Cn("toggle",e),o=r;break;case"input":nk(e,r),o=kb(e,r),Cn("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=zn({},r,{value:void 0}),Cn("invalid",e);break;case"textarea":ok(e,r),o=Rb(e,r),Cn("invalid",e);break;default:o=r}Tb(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var c=a[i];i==="style"?hT(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&fT(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Tf(e,c):typeof c=="number"&&Tf(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Mf.hasOwnProperty(i)?c!=null&&i==="onScroll"&&Cn("scroll",e):c!=null&&xC(e,i,c,s))}switch(n){case"input":Dh(e),rk(e,r,!1);break;case"textarea":Dh(e),ik(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Wl(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?cu(e,!!r.multiple,i,!1):r.defaultValue!=null&&cu(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=tg)}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 _r(t),null;case 6:if(e&&t.stateNode!=null)NO(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Te(166));if(n=Pa(Vf.current),Pa(ss.current),Gh(t)){if(r=t.stateNode,n=t.memoizedProps,r[rs]=t,(i=r.nodeValue!==n)&&(e=Mo,e!==null))switch(e.tag){case 3:Wh(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Wh(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[rs]=t,t.stateNode=r}return _r(t),null;case 13:if(En(Dn),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Mn&&Ro!==null&&t.mode&1&&!(t.flags&128))tO(),Iu(),t.flags|=98560,i=!1;else if(i=Gh(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(Te(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(Te(317));i[rs]=t}else Iu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_r(t),i=!1}else Ti!==null&&(pw(Ti),Ti=null),i=!0;if(!i)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||Dn.current&1?or===0&&(or=3):ox())),t.updateQueue!==null&&(t.flags|=4),_r(t),null);case 4:return _u(),iw(e,t),e===null&&Bf(t.stateNode.containerInfo),_r(t),null;case 10:return jC(t.type._context),_r(t),null;case 17:return co(t.type)&&ng(),_r(t),null;case 19:if(En(Dn),i=t.memoizedState,i===null)return _r(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)Nd(i,!1);else{if(or!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=cg(e),s!==null){for(t.flags|=128,Nd(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return gn(Dn,Dn.current&1|2),t.child}e=e.sibling}i.tail!==null&&Yn()>Ru&&(t.flags|=128,r=!0,Nd(i,!1),t.lanes=4194304)}else{if(!r)if(e=cg(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Nd(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Mn)return _r(t),null}else 2*Yn()-i.renderingStartTime>Ru&&n!==1073741824&&(t.flags|=128,r=!0,Nd(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Yn(),t.sibling=null,n=Dn.current,gn(Dn,r?n&1|2:n&1),t):(_r(t),null);case 22:case 23:return rx(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?So&1073741824&&(_r(t),t.subtreeFlags&6&&(t.flags|=8192)):_r(t),null;case 24:return null;case 25:return null}throw Error(Te(156,t.tag))}function Y8(e,t){switch(DC(t),t.tag){case 1:return co(t.type)&&ng(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _u(),En(ao),En(Lr),GC(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return WC(t),null;case 13:if(En(Dn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Te(340));Iu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return En(Dn),null;case 4:return _u(),null;case 10:return jC(t.type._context),null;case 22:case 23:return rx(),null;case 24:return null;default:return null}}var Yh=!1,Mr=!1,Q8=typeof WeakSet=="function"?WeakSet:Set,Qe=null;function tu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Wn(e,t,r)}else n.current=null}function sw(e,t,n){try{n()}catch(r){Wn(e,t,r)}}var qk=!1;function X8(e,t){if(Vb=Jm,e=HT(),LC(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(P){n=null;break e}var s=0,a=-1,c=-1,d=0,p=0,h=e,m=null;t:for(;;){for(var g;h!==n||o!==0&&h.nodeType!==3||(a=s+o),h!==i||r!==0&&h.nodeType!==3||(c=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(g=h.firstChild)!==null;)m=h,h=g;for(;;){if(h===e)break t;if(m===n&&++d===o&&(a=s),m===i&&++p===r&&(c=s),(g=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=g}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ub={focusedElem:e,selectionRange:n},Jm=!1,Qe=t;Qe!==null;)if(t=Qe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Qe=e;else for(;Qe!==null;){t=Qe;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,E=y.memoizedState,w=t.stateNode,C=w.getSnapshotBeforeUpdate(t.elementType===t.type?v:$i(t.type,v),E);w.__reactInternalSnapshotBeforeUpdate=C}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(Te(163))}}catch(P){Wn(t,t.return,P)}if(e=t.sibling,e!==null){e.return=t.return,Qe=e;break}Qe=t.return}return y=qk,qk=!1,y}function yf(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&sw(t,n,i)}o=o.next}while(o!==r)}}function ov(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 lw(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 BO(e){var t=e.alternate;t!==null&&(e.alternate=null,BO(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rs],delete t[jf],delete t[Kb],delete t[O8],delete t[F8])),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 zO(e){return e.tag===5||e.tag===3||e.tag===4}function Yk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||zO(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 aw(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=tg));else if(r!==4&&(e=e.child,e!==null))for(aw(e,t,n),e=e.sibling;e!==null;)aw(e,t,n),e=e.sibling}function cw(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(cw(e,t,n),e=e.sibling;e!==null;)cw(e,t,n),e=e.sibling}var br=null,Mi=!1;function dl(e,t,n){for(n=n.child;n!==null;)jO(e,t,n),n=n.sibling}function jO(e,t,n){if(is&&typeof is.onCommitFiberUnmount=="function")try{is.onCommitFiberUnmount(Qg,n)}catch(a){}switch(n.tag){case 5:Mr||tu(n,t);case 6:var r=br,o=Mi;br=null,dl(e,t,n),br=r,Mi=o,br!==null&&(Mi?(e=br,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):br.removeChild(n.stateNode));break;case 18:br!==null&&(Mi?(e=br,n=n.stateNode,e.nodeType===8?b1(e.parentNode,n):e.nodeType===1&&b1(e,n),Af(e)):b1(br,n.stateNode));break;case 4:r=br,o=Mi,br=n.stateNode.containerInfo,Mi=!0,dl(e,t,n),br=r,Mi=o;break;case 0:case 11:case 14:case 15:if(!Mr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&sw(n,t,s),o=o.next}while(o!==r)}dl(e,t,n);break;case 1:if(!Mr&&(tu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Wn(n,t,a)}dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:n.mode&1?(Mr=(r=Mr)||n.memoizedState!==null,dl(e,t,n),Mr=r):dl(e,t,n);break;default:dl(e,t,n)}}function Qk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Q8),t.forEach(function(r){var o=s7.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ki(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:br=a.stateNode,Mi=!1;break e;case 3:br=a.stateNode.containerInfo,Mi=!0;break e;case 4:br=a.stateNode.containerInfo,Mi=!0;break e}a=a.return}if(br===null)throw Error(Te(160));jO(i,s,o),br=null,Mi=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(d){Wn(o,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)HO(t,e),t=t.sibling}function HO(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ki(t,e),Xi(e),r&4){try{yf(3,e,e.return),ov(3,e)}catch(v){Wn(e,e.return,v)}try{yf(5,e,e.return)}catch(v){Wn(e,e.return,v)}}break;case 1:ki(t,e),Xi(e),r&512&&n!==null&&tu(n,n.return);break;case 5:if(ki(t,e),Xi(e),r&512&&n!==null&&tu(n,n.return),e.flags&32){var o=e.stateNode;try{Tf(o,"")}catch(v){Wn(e,e.return,v)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&cT(o,i),Ob(a,s);var d=Ob(a,i);for(s=0;s<c.length;s+=2){var p=c[s],h=c[s+1];p==="style"?hT(o,h):p==="dangerouslySetInnerHTML"?fT(o,h):p==="children"?Tf(o,h):xC(o,p,h,d)}switch(a){case"input":_b(o,i);break;case"textarea":uT(o,i);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?cu(o,!!i.multiple,g,!1):m!==!!i.multiple&&(i.defaultValue!=null?cu(o,!!i.multiple,i.defaultValue,!0):cu(o,!!i.multiple,i.multiple?[]:"",!1))}o[jf]=i}catch(v){Wn(e,e.return,v)}}break;case 6:if(ki(t,e),Xi(e),r&4){if(e.stateNode===null)throw Error(Te(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(v){Wn(e,e.return,v)}}break;case 3:if(ki(t,e),Xi(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Af(t.containerInfo)}catch(v){Wn(e,e.return,v)}break;case 4:ki(t,e),Xi(e);break;case 13:ki(t,e),Xi(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(tx=Yn())),r&4&&Qk(e);break;case 22:if(p=n!==null&&n.memoizedState!==null,e.mode&1?(Mr=(d=Mr)||p,ki(t,e),Mr=d):ki(t,e),Xi(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!p&&e.mode&1)for(Qe=e,p=e.child;p!==null;){for(h=Qe=p;Qe!==null;){switch(m=Qe,g=m.child,m.tag){case 0:case 11:case 14:case 15:yf(4,m,m.return);break;case 1:tu(m,m.return);var y=m.stateNode;if(typeof y.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(v){Wn(r,n,v)}}break;case 5:tu(m,m.return);break;case 22:if(m.memoizedState!==null){Jk(h);continue}}g!==null?(g.return=m,Qe=g):Jk(h)}p=p.sibling}e:for(p=null,h=e;;){if(h.tag===5){if(p===null){p=h;try{o=h.stateNode,d?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=h.stateNode,c=h.memoizedProps.style,s=c!=null&&c.hasOwnProperty("display")?c.display:null,a.style.display=pT("display",s))}catch(v){Wn(e,e.return,v)}}}else if(h.tag===6){if(p===null)try{h.stateNode.nodeValue=d?"":h.memoizedProps}catch(v){Wn(e,e.return,v)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;p===h&&(p=null),h=h.return}p===h&&(p=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:ki(t,e),Xi(e),r&4&&Qk(e);break;case 21:break;default:ki(t,e),Xi(e)}}function Xi(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(zO(n)){var r=n;break e}n=n.return}throw Error(Te(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Tf(o,""),r.flags&=-33);var i=Yk(e);cw(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=Yk(e);aw(e,a,s);break;default:throw Error(Te(161))}}catch(c){Wn(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function J8(e,t,n){Qe=e,VO(e)}function VO(e,t,n){for(var r=(e.mode&1)!==0;Qe!==null;){var o=Qe,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Yh;if(!s){var a=o.alternate,c=a!==null&&a.memoizedState!==null||Mr;a=Yh;var d=Mr;if(Yh=s,(Mr=c)&&!d)for(Qe=o;Qe!==null;)s=Qe,c=s.child,s.tag===22&&s.memoizedState!==null?Zk(o):c!==null?(c.return=s,Qe=c):Zk(o);for(;i!==null;)Qe=i,VO(i),i=i.sibling;Qe=o,Yh=a,Mr=d}Xk(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,Qe=i):Xk(e)}}function Xk(e){for(;Qe!==null;){var t=Qe;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Mr||ov(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Mr)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:$i(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Fk(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Fk(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var p=d.memoizedState;if(p!==null){var h=p.dehydrated;h!==null&&Af(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Te(163))}Mr||t.flags&512&&lw(t)}catch(m){Wn(t,t.return,m)}}if(t===e){Qe=null;break}if(n=t.sibling,n!==null){n.return=t.return,Qe=n;break}Qe=t.return}}function Jk(e){for(;Qe!==null;){var t=Qe;if(t===e){Qe=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Qe=n;break}Qe=t.return}}function Zk(e){for(;Qe!==null;){var t=Qe;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ov(4,t)}catch(c){Wn(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){Wn(t,o,c)}}var i=t.return;try{lw(t)}catch(c){Wn(t,i,c)}break;case 5:var s=t.return;try{lw(t)}catch(c){Wn(t,s,c)}}}catch(c){Wn(t,t.return,c)}if(t===e){Qe=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Qe=a;break}Qe=t.return}}var Z8=Math.ceil,fg=Js.ReactCurrentDispatcher,ZC=Js.ReactCurrentOwner,ci=Js.ReactCurrentBatchConfig,qt=0,hr=null,er=null,xr=0,So=0,nu=na(0),or=0,Kf=null,za=0,iv=0,ex=0,bf=null,no=null,tx=0,Ru=1/0,Ls=null,pg=!1,uw=null,Nl=null,Qh=!1,_l=null,hg=0,wf=0,dw=null,_m=-1,$m=0;function Wr(){return qt&6?Yn():_m!==-1?_m:_m=Yn()}function Bl(e){return e.mode&1?qt&2&&xr!==0?xr&-xr:A8.transition!==null?($m===0&&($m=IT()),$m):(e=ln,e!==0||(e=window.event,e=e===void 0?16:OT(e.type)),e):1}function Bi(e,t,n,r){if(50<wf)throw wf=0,dw=null,Error(Te(185));wp(e,n,r),(!(qt&2)||e!==hr)&&(e===hr&&(!(qt&2)&&(iv|=n),or===4&&Pl(e,xr)),uo(e,r),n===1&&qt===0&&!(t.mode&1)&&(Ru=Yn()+500,tv&&ra()))}function uo(e,t){var n=e.callbackNode;AH(e,t);var r=Xm(e,e===hr?xr:0);if(r===0)n!==null&&ak(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ak(n),t===1)e.tag===0?L8(e_.bind(null,e)):JT(e_.bind(null,e)),M8(function(){!(qt&6)&&ra()}),n=null;else{switch(kT(r)){case 1:n=kC;break;case 4:n=ET;break;case 16:n=Qm;break;case 536870912:n=PT;break;default:n=Qm}n=XO(n,UO.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function UO(e,t){if(_m=-1,$m=0,qt&6)throw Error(Te(327));var n=e.callbackNode;if(hu()&&e.callbackNode!==n)return null;var r=Xm(e,e===hr?xr:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=mg(e,r);else{t=r;var o=qt;qt|=2;var i=GO();(hr!==e||xr!==t)&&(Ls=null,Ru=Yn()+500,$a(e,t));do try{n7();break}catch(a){WO(e,a)}while(1);zC(),fg.current=i,qt=o,er!==null?t=0:(hr=null,xr=0,t=or)}if(t!==0){if(t===2&&(o=Nb(e),o!==0&&(r=o,t=fw(e,o))),t===1)throw n=Kf,$a(e,0),Pl(e,r),uo(e,Yn()),n;if(t===6)Pl(e,r);else{if(o=e.current.alternate,!(r&30)&&!e7(o)&&(t=mg(e,r),t===2&&(i=Nb(e),i!==0&&(r=i,t=fw(e,i))),t===1))throw n=Kf,$a(e,0),Pl(e,r),uo(e,Yn()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(Te(345));case 2:ya(e,no,Ls);break;case 3:if(Pl(e,r),(r&130023424)===r&&(t=tx+500-Yn(),10<t)){if(Xm(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Wr(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Gb(ya.bind(null,e,no,Ls),t);break}ya(e,no,Ls);break;case 4:if(Pl(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-Ni(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=Yn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Z8(r/1960))-r,10<r){e.timeoutHandle=Gb(ya.bind(null,e,no,Ls),r);break}ya(e,no,Ls);break;case 5:ya(e,no,Ls);break;default:throw Error(Te(329))}}}return uo(e,Yn()),e.callbackNode===n?UO.bind(null,e):null}function fw(e,t){var n=bf;return e.current.memoizedState.isDehydrated&&($a(e,t).flags|=256),e=mg(e,t),e!==2&&(t=no,no=n,t!==null&&pw(t)),e}function pw(e){no===null?no=e:no.push.apply(no,e)}function e7(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],i=o.getSnapshot;o=o.value;try{if(!Hi(i(),o))return!1}catch(s){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 Pl(e,t){for(t&=~ex,t&=~iv,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ni(t),r=1<<n;e[n]=-1,t&=~r}}function e_(e){if(qt&6)throw Error(Te(327));hu();var t=Xm(e,0);if(!(t&1))return uo(e,Yn()),null;var n=mg(e,t);if(e.tag!==0&&n===2){var r=Nb(e);r!==0&&(t=r,n=fw(e,r))}if(n===1)throw n=Kf,$a(e,0),Pl(e,t),uo(e,Yn()),n;if(n===6)throw Error(Te(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ya(e,no,Ls),uo(e,Yn()),null}function nx(e,t){var n=qt;qt|=1;try{return e(t)}finally{qt=n,qt===0&&(Ru=Yn()+500,tv&&ra())}}function ja(e){_l!==null&&_l.tag===0&&!(qt&6)&&hu();var t=qt;qt|=1;var n=ci.transition,r=ln;try{if(ci.transition=null,ln=1,e)return e()}finally{ln=r,ci.transition=n,qt=t,!(qt&6)&&ra()}}function rx(){So=nu.current,En(nu)}function $a(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,R8(n)),er!==null)for(n=er.return;n!==null;){var r=n;switch(DC(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ng();break;case 3:_u(),En(ao),En(Lr),GC();break;case 5:WC(r);break;case 4:_u();break;case 13:En(Dn);break;case 19:En(Dn);break;case 10:jC(r.type._context);break;case 22:case 23:rx()}n=n.return}if(hr=e,er=e=zl(e.current,null),xr=So=t,or=0,Kf=null,ex=iv=za=0,no=bf=null,Ea!==null){for(t=0;t<Ea.length;t++)if(n=Ea[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}Ea=null}return e}function WO(e,t){do{var n=er;try{if(zC(),Pm.current=dg,ug){for(var r=Bn.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}ug=!1}if(Ba=0,pr=rr=Bn=null,vf=!1,Uf=0,ZC.current=null,n===null||n.return===null){or=1,Kf=t,er=null;break}e:{var i=e,s=n.return,a=n,c=t;if(t=xr,a.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var d=c,p=a,h=p.tag;if(!(p.mode&1)&&(h===0||h===11||h===15)){var m=p.alternate;m?(p.updateQueue=m.updateQueue,p.memoizedState=m.memoizedState,p.lanes=m.lanes):(p.updateQueue=null,p.memoizedState=null)}var g=jk(s);if(g!==null){g.flags&=-257,Hk(g,s,a,i,t),g.mode&1&&zk(i,d,t),t=g,c=d;var y=t.updateQueue;if(y===null){var v=new Set;v.add(c),t.updateQueue=v}else y.add(c);break e}else{if(!(t&1)){zk(i,d,t),ox();break e}c=Error(Te(426))}}else if(Mn&&a.mode&1){var E=jk(s);if(E!==null){!(E.flags&65536)&&(E.flags|=256),Hk(E,s,a,i,t),NC($u(c,a));break e}}i=c=$u(c,a),or!==4&&(or=2),bf===null?bf=[i]:bf.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var w=_O(i,c,t);Ok(i,w);break e;case 1:a=c;var C=i.type,x=i.stateNode;if(!(i.flags&128)&&(typeof C.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Nl===null||!Nl.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var P=$O(i,a,t);Ok(i,P);break e}}i=i.return}while(i!==null)}qO(n)}catch(_){t=_,er===n&&n!==null&&(er=n=n.return);continue}break}while(1)}function GO(){var e=fg.current;return fg.current=dg,e===null?dg:e}function ox(){(or===0||or===3||or===2)&&(or=4),hr===null||!(za&268435455)&&!(iv&268435455)||Pl(hr,xr)}function mg(e,t){var n=qt;qt|=2;var r=GO();(hr!==e||xr!==t)&&(Ls=null,$a(e,t));do try{t7();break}catch(o){WO(e,o)}while(1);if(zC(),qt=n,fg.current=r,er!==null)throw Error(Te(261));return hr=null,xr=0,or}function t7(){for(;er!==null;)KO(er)}function n7(){for(;er!==null&&!kH();)KO(er)}function KO(e){var t=QO(e.alternate,e,So);e.memoizedProps=e.pendingProps,t===null?qO(e):er=t,ZC.current=null}function qO(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Y8(n,t),n!==null){n.flags&=32767,er=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{or=6,er=null;return}}else if(n=q8(n,t,So),n!==null){er=n;return}if(t=t.sibling,t!==null){er=t;return}er=t=e}while(t!==null);or===0&&(or=5)}function ya(e,t,n){var r=ln,o=ci.transition;try{ci.transition=null,ln=1,r7(e,t,n,r)}finally{ci.transition=o,ln=r}return null}function r7(e,t,n,r){do hu();while(_l!==null);if(qt&6)throw Error(Te(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(Te(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(DH(e,i),e===hr&&(er=hr=null,xr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Qh||(Qh=!0,XO(Qm,function(){return hu(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=ci.transition,ci.transition=null;var s=ln;ln=1;var a=qt;qt|=4,ZC.current=null,X8(e,n),HO(n,e),S8(Ub),Jm=!!Vb,Ub=Vb=null,e.current=n,J8(n),_H(),qt=a,ln=s,ci.transition=i}else e.current=n;if(Qh&&(Qh=!1,_l=e,hg=o),i=e.pendingLanes,i===0&&(Nl=null),MH(n.stateNode),uo(e,Yn()),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(pg)throw pg=!1,e=uw,uw=null,e;return hg&1&&e.tag!==0&&hu(),i=e.pendingLanes,i&1?e===dw?wf++:(wf=0,dw=e):wf=0,ra(),null}function hu(){if(_l!==null){var e=kT(hg),t=ci.transition,n=ln;try{if(ci.transition=null,ln=16>e?16:e,_l===null)var r=!1;else{if(e=_l,_l=null,hg=0,qt&6)throw Error(Te(331));var o=qt;for(qt|=4,Qe=e.current;Qe!==null;){var i=Qe,s=i.child;if(Qe.flags&16){var a=i.deletions;if(a!==null){for(var c=0;c<a.length;c++){var d=a[c];for(Qe=d;Qe!==null;){var p=Qe;switch(p.tag){case 0:case 11:case 15:yf(8,p,i)}var h=p.child;if(h!==null)h.return=p,Qe=h;else for(;Qe!==null;){p=Qe;var m=p.sibling,g=p.return;if(BO(p),p===d){Qe=null;break}if(m!==null){m.return=g,Qe=m;break}Qe=g}}}var y=i.alternate;if(y!==null){var v=y.child;if(v!==null){y.child=null;do{var E=v.sibling;v.sibling=null,v=E}while(v!==null)}}Qe=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,Qe=s;else e:for(;Qe!==null;){if(i=Qe,i.flags&2048)switch(i.tag){case 0:case 11:case 15:yf(9,i,i.return)}var w=i.sibling;if(w!==null){w.return=i.return,Qe=w;break e}Qe=i.return}}var C=e.current;for(Qe=C;Qe!==null;){s=Qe;var x=s.child;if(s.subtreeFlags&2064&&x!==null)x.return=s,Qe=x;else e:for(s=C;Qe!==null;){if(a=Qe,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:ov(9,a)}}catch(_){Wn(a,a.return,_)}if(a===s){Qe=null;break e}var P=a.sibling;if(P!==null){P.return=a.return,Qe=P;break e}Qe=a.return}}if(qt=o,ra(),is&&typeof is.onPostCommitFiberRoot=="function")try{is.onPostCommitFiberRoot(Qg,e)}catch(_){}r=!0}return r}finally{ln=n,ci.transition=t}}return!1}function t_(e,t,n){t=$u(n,t),t=_O(e,t,1),e=Dl(e,t,1),t=Wr(),e!==null&&(wp(e,1,t),uo(e,t))}function Wn(e,t,n){if(e.tag===3)t_(e,e,n);else for(;t!==null;){if(t.tag===3){t_(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Nl===null||!Nl.has(r))){e=$u(n,e),e=$O(t,e,1),t=Dl(t,e,1),e=Wr(),t!==null&&(wp(t,1,e),uo(t,e));break}}t=t.return}}function o7(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Wr(),e.pingedLanes|=e.suspendedLanes&n,hr===e&&(xr&n)===n&&(or===4||or===3&&(xr&130023424)===xr&&500>Yn()-tx?$a(e,0):ex|=n),uo(e,t)}function YO(e,t){t===0&&(e.mode&1?(t=zh,zh<<=1,!(zh&130023424)&&(zh=4194304)):t=1);var n=Wr();e=Ws(e,t),e!==null&&(wp(e,t,n),uo(e,n))}function i7(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),YO(e,n)}function s7(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(Te(314))}r!==null&&r.delete(t),YO(e,n)}var QO;QO=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ao.current)lo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return lo=!1,K8(e,t,n);lo=!!(e.flags&131072)}else lo=!1,Mn&&t.flags&1048576&&ZT(t,ig,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;km(e,t),e=t.pendingProps;var o=Pu(t,Lr.current);pu(t,n),o=qC(null,t,r,e,o,n);var i=YC();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,co(r)?(i=!0,rg(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,VC(t),o.updater=nv,t.stateNode=o,o._reactInternals=t,Zb(t,r,e,n),t=nw(null,t,r,!0,i,n)):(t.tag=0,Mn&&i&&AC(t),zr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(km(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=a7(r),e=$i(r,e),o){case 0:t=tw(null,t,r,e,n);break e;case 1:t=Wk(null,t,r,e,n);break e;case 11:t=Vk(null,t,r,e,n);break e;case 14:t=Uk(null,t,r,$i(r.type,e),n);break e}throw Error(Te(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$i(r,o),tw(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$i(r,o),Wk(e,t,r,o,n);case 3:e:{if(OO(t),e===null)throw Error(Te(387));r=t.pendingProps,i=t.memoizedState,o=i.element,rO(e,t),ag(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=$u(Error(Te(423)),t),t=Gk(e,t,r,n,o);break e}else if(r!==o){o=$u(Error(Te(424)),t),t=Gk(e,t,r,n,o);break e}else for(Ro=Al(t.stateNode.containerInfo.firstChild),Mo=t,Mn=!0,Ti=null,n=lO(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Iu(),r===o){t=Gs(e,t,n);break e}zr(e,t,r,n)}t=t.child}return t;case 5:return aO(t),e===null&&Qb(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Wb(r,o)?s=null:i!==null&&Wb(r,i)&&(t.flags|=32),TO(e,t),zr(e,t,s,n),t.child;case 6:return e===null&&Qb(t),null;case 13:return FO(e,t,n);case 4:return UC(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ku(t,null,r,n):zr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$i(r,o),Vk(e,t,r,o,n);case 7:return zr(e,t,t.pendingProps,n),t.child;case 8:return zr(e,t,t.pendingProps.children,n),t.child;case 12:return zr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,gn(sg,r._currentValue),r._currentValue=s,i!==null)if(Hi(i.value,s)){if(i.children===o.children&&!ao.current){t=Gs(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var c=a.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=zs(-1,n&-n),c.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var p=d.pending;p===null?c.next=c:(c.next=p.next,p.next=c),d.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),Xb(i.return,n,t),a.lanes|=n;break}c=c.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(Te(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Xb(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}zr(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,pu(t,n),o=hi(o),r=r(o),t.flags|=1,zr(e,t,r,n),t.child;case 14:return r=t.type,o=$i(r,t.pendingProps),o=$i(r.type,o),Uk(e,t,r,o,n);case 15:return RO(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$i(r,o),km(e,t),t.tag=1,co(r)?(e=!0,rg(t)):e=!1,pu(t,n),iO(t,r,o),Zb(t,r,o,n),nw(null,t,r,!0,e,n);case 19:return LO(e,t,n);case 22:return MO(e,t,n)}throw Error(Te(156,t.tag))};function XO(e,t){return ST(e,t)}function l7(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 li(e,t,n,r){return new l7(e,t,n,r)}function ix(e){return e=e.prototype,!(!e||!e.isReactComponent)}function a7(e){if(typeof e=="function")return ix(e)?1:0;if(e!=null){if(e=e.$$typeof,e===EC)return 11;if(e===PC)return 14}return 2}function zl(e,t){var n=e.alternate;return n===null?(n=li(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 Rm(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")ix(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Gc:return Ra(n.children,o,i,t);case SC:s=8,o|=8;break;case Sb:return e=li(12,n,t,o|2),e.elementType=Sb,e.lanes=i,e;case Eb:return e=li(13,n,t,o),e.elementType=Eb,e.lanes=i,e;case Pb:return e=li(19,n,t,o),e.elementType=Pb,e.lanes=i,e;case sT:return sv(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case oT:s=10;break e;case iT:s=9;break e;case EC:s=11;break e;case PC:s=14;break e;case bl:s=16,r=null;break e}throw Error(Te(130,e==null?e:typeof e,""))}return t=li(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Ra(e,t,n,r){return e=li(7,e,r,t),e.lanes=n,e}function sv(e,t,n,r){return e=li(22,e,r,t),e.elementType=sT,e.lanes=n,e.stateNode={isHidden:!1},e}function k1(e,t,n){return e=li(6,e,null,t),e.lanes=n,e}function _1(e,t,n){return t=li(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function c7(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=a1(0),this.expirationTimes=a1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=a1(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function sx(e,t,n,r,o,i,s,a,c){return e=new c7(e,t,n,a,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=li(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},VC(i),e}function u7(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Wc,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function JO(e){if(!e)return Gl;e=e._reactInternals;e:{if(nc(e)!==e||e.tag!==1)throw Error(Te(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(co(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Te(171))}if(e.tag===1){var n=e.type;if(co(n))return XT(e,n,t)}return t}function ZO(e,t,n,r,o,i,s,a,c){return e=sx(n,r,!0,e,o,i,s,a,c),e.context=JO(null),n=e.current,r=Wr(),o=Bl(n),i=zs(r,o),i.callback=t!=null?t:null,Dl(n,i,o),e.current.lanes=o,wp(e,o,r),uo(e,r),e}function lv(e,t,n,r){var o=t.current,i=Wr(),s=Bl(o);return n=JO(n),t.context===null?t.context=n:t.pendingContext=n,t=zs(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Dl(o,t,s),e!==null&&(Bi(e,o,s,i),Em(e,o,s)),s}function gg(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 n_(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function lx(e,t){n_(e,t),(e=e.alternate)&&n_(e,t)}function d7(){return null}var eF=typeof reportError=="function"?reportError:function(e){console.error(e)};function ax(e){this._internalRoot=e}av.prototype.render=ax.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Te(409));lv(e,t,null,null)};av.prototype.unmount=ax.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ja(function(){lv(null,e,null,null)}),t[Us]=null}};function av(e){this._internalRoot=e}av.prototype.unstable_scheduleHydration=function(e){if(e){var t=RT();e={blockedOn:null,target:e,priority:t};for(var n=0;n<El.length&&t!==0&&t<El[n].priority;n++);El.splice(n,0,e),n===0&&TT(e)}};function cx(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function cv(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function r_(){}function f7(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var d=gg(s);i.call(d)}}var s=ZO(t,r,e,0,null,!1,!1,"",r_);return e._reactRootContainer=s,e[Us]=s.current,Bf(e.nodeType===8?e.parentNode:e),ja(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var d=gg(c);a.call(d)}}var c=sx(e,0,!1,null,null,!1,!1,"",r_);return e._reactRootContainer=c,e[Us]=c.current,Bf(e.nodeType===8?e.parentNode:e),ja(function(){lv(t,c,n,r)}),c}function uv(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var c=gg(s);a.call(c)}}lv(t,s,e,o)}else s=f7(n,t,e,o,r);return gg(s)}_T=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=rf(t.pendingLanes);n!==0&&(_C(t,n|1),uo(t,Yn()),!(qt&6)&&(Ru=Yn()+500,ra()))}break;case 13:ja(function(){var r=Ws(e,1);if(r!==null){var o=Wr();Bi(r,e,1,o)}}),lx(e,1)}};$C=function(e){if(e.tag===13){var t=Ws(e,134217728);if(t!==null){var n=Wr();Bi(t,e,134217728,n)}lx(e,134217728)}};$T=function(e){if(e.tag===13){var t=Bl(e),n=Ws(e,t);if(n!==null){var r=Wr();Bi(n,e,t,r)}lx(e,t)}};RT=function(){return ln};MT=function(e,t){var n=ln;try{return ln=e,t()}finally{ln=n}};Lb=function(e,t,n){switch(t){case"input":if(_b(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=ev(r);if(!o)throw Error(Te(90));aT(r),_b(r,o)}}}break;case"textarea":uT(e,n);break;case"select":t=n.value,t!=null&&cu(e,!!n.multiple,t,!1)}};vT=nx;yT=ja;var p7={usingClientEntryPoint:!1,Events:[xp,Qc,ev,mT,gT,nx]},Bd={findFiberByHostInstance:Sa,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},h7={bundleType:Bd.bundleType,version:Bd.version,rendererPackageName:Bd.rendererPackageName,rendererConfig:Bd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Js.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=CT(e),e===null?null:e.stateNode},findFiberByHostInstance:Bd.findFiberByHostInstance||d7,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 Xh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xh.isDisabled&&Xh.supportsFiber)try{Qg=Xh.inject(h7),is=Xh}catch(e){}}Bo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=p7;Bo.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!cx(t))throw Error(Te(200));return u7(e,t,null,n)};Bo.createRoot=function(e,t){if(!cx(e))throw Error(Te(299));var n=!1,r="",o=eF;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=sx(e,1,!1,null,null,n,!1,r,o),e[Us]=t.current,Bf(e.nodeType===8?e.parentNode:e),new ax(t)};Bo.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(Te(188)):(e=Object.keys(e).join(","),Error(Te(268,e)));return e=CT(t),e=e===null?null:e.stateNode,e};Bo.flushSync=function(e){return ja(e)};Bo.hydrate=function(e,t,n){if(!cv(t))throw Error(Te(200));return uv(null,e,t,!0,n)};Bo.hydrateRoot=function(e,t,n){if(!cx(e))throw Error(Te(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=eF;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=ZO(t,null,e,1,n!=null?n:null,o,!1,i,s),e[Us]=t.current,Bf(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 av(t)};Bo.render=function(e,t,n){if(!cv(t))throw Error(Te(200));return uv(null,e,t,!1,n)};Bo.unmountComponentAtNode=function(e){if(!cv(e))throw Error(Te(40));return e._reactRootContainer?(ja(function(){uv(null,null,e,!1,function(){e._reactRootContainer=null,e[Us]=null})}),!0):!1};Bo.unstable_batchedUpdates=nx;Bo.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!cv(n))throw Error(Te(200));if(e==null||e._reactInternals===void 0)throw Error(Te(38));return uv(e,t,n,!1,r)};Bo.version="18.2.0-next-9e3b772b8-20220608";function tF(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(tF)}catch(e){console.error(e)}}tF(),ZM.exports=Bo;var Xu=ZM.exports;const Jh=yp(Xu);var nF,o_=Xu;nF=o_.createRoot,o_.hydrateRoot;const m7="modulepreload",g7=function(e){return"/"+e},i_={},v7=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=g7(i),i in i_)return;i_[i]=!0;const s=i.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!r)for(let p=o.length-1;p>=0;p--){const h=o[p];if(h.href===i&&(!s||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const d=document.createElement("link");if(d.rel=s?"stylesheet":m7,s||(d.as="script",d.crossOrigin=""),d.href=i,document.head.appendChild(d),s)return new Promise((p,h)=>{d.addEventListener("load",p),d.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};var VM;if(!((VM=window.crypto)!=null&&VM.subtle)){let t;console.debug("poly subtle");const e={digest(n,r){return ct(this,null,function*(){if(n!=="SHA-512")return alert(n+" required but not supported");const i=(yield v7(()=>import("./sha512-888f0eaa.js").then(s=>s.s),[])).default.arrayBuffer;return i(r)})}};window.crypto||(window.crypto={subtle:e}),crypto.subtle||(crypto.subtle=e)}/**
33
+ * @remix-run/router v1.5.0
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 qf(){return qf=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},qf.apply(this,arguments)}var $l;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})($l||($l={}));const s_="popstate";function y7(e){e===void 0&&(e={});function t(o,i){let{pathname:s="/",search:a="",hash:c=""}=rc(o.location.hash.substr(1));return hw("",{pathname:s,search:a,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(o,i){let s=o.document.querySelector("base"),a="";if(s&&s.getAttribute("href")){let c=o.location.href,d=c.indexOf("#");a=d===-1?c:c.slice(0,d)}return a+"#"+(typeof i=="string"?i:vg(i))}function r(o,i){dv(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return w7(t,n,r,e)}function sr(e,t){if(e===!1||e===null||typeof e=="undefined")throw new Error(t)}function dv(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function b7(){return Math.random().toString(36).substr(2,8)}function l_(e,t){return{usr:e.state,key:e.key,idx:t}}function hw(e,t,n,r){return n===void 0&&(n=null),qf({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?rc(t):t,{state:n,key:t&&t.key||r||b7()})}function vg(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 rc(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 w7(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=$l.Pop,c=null,d=p();d==null&&(d=0,s.replaceState(qf({},s.state,{idx:d}),""));function p(){return(s.state||{idx:null}).idx}function h(){a=$l.Pop;let E=p(),w=E==null?null:E-d;d=E,c&&c({action:a,location:v.location,delta:w})}function m(E,w){a=$l.Push;let C=hw(v.location,E,w);n&&n(C,E),d=p()+1;let x=l_(C,d),P=v.createHref(C);try{s.pushState(x,"",P)}catch(_){o.location.assign(P)}i&&c&&c({action:a,location:v.location,delta:1})}function g(E,w){a=$l.Replace;let C=hw(v.location,E,w);n&&n(C,E),d=p();let x=l_(C,d),P=v.createHref(C);s.replaceState(x,"",P),i&&c&&c({action:a,location:v.location,delta:0})}function y(E){let w=o.location.origin!=="null"?o.location.origin:o.location.href,C=typeof E=="string"?E:vg(E);return sr(w,"No window.location.(origin|href) available to create URL for href: "+C),new URL(C,w)}let v={get action(){return a},get location(){return e(o,s)},listen(E){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(s_,h),c=E,()=>{o.removeEventListener(s_,h),c=null}},createHref(E){return t(o,E)},createURL:y,encodeLocation(E){let w=y(E);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:m,replace:g,go(E){return s.go(E)}};return v}var a_;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(a_||(a_={}));function C7(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?rc(t):t,o=ux(r.pathname||"/",n);if(o==null)return null;let i=rF(e);x7(i);let s=null;for(let a=0;s==null&&a<i.length;++a)s=M7(i[a],F7(o));return s}function rF(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,s,a)=>{let c={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};c.relativePath.startsWith("/")&&(sr(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let d=jl([r,c.relativePath]),p=n.concat(c);i.children&&i.children.length>0&&(sr(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),rF(i.children,t,p,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:$7(d,i.index),routesMeta:p})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let c of oF(i.path))o(i,s,c)}),t}function oF(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=oF(r.join("/")),a=[];return a.push(...s.map(c=>c===""?i:[i,c].join("/"))),o&&a.push(...s),a.map(c=>e.startsWith("/")&&c===""?"/":c)}function x7(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:R7(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const S7=/^:\w+$/,E7=3,P7=2,I7=1,k7=10,_7=-2,c_=e=>e==="*";function $7(e,t){let n=e.split("/"),r=n.length;return n.some(c_)&&(r+=_7),t&&(r+=P7),n.filter(o=>!c_(o)).reduce((o,i)=>o+(S7.test(i)?E7:i===""?I7:k7),r)}function R7(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 M7(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let s=0;s<n.length;++s){let a=n[s],c=s===n.length-1,d=o==="/"?t:t.slice(o.length)||"/",p=T7({path:a.relativePath,caseSensitive:a.caseSensitive,end:c},d);if(!p)return null;Object.assign(r,p.params);let h=a.route;i.push({params:r,pathname:jl([o,p.pathname]),pathnameBase:N7(jl([o,p.pathnameBase])),route:h}),p.pathnameBase!=="/"&&(o=jl([o,p.pathnameBase]))}return i}function T7(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=O7(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((d,p,h)=>{if(p==="*"){let m=a[h]||"";s=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}return d[p]=L7(a[h]||"",p),d},{}),pathname:i,pathnameBase:s,pattern:e}}function O7(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),dv(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,(s,a)=>(r.push(a),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function F7(e){try{return decodeURI(e)}catch(t){return dv(!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 L7(e,t){try{return decodeURIComponent(e)}catch(n){return dv(!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 ux(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 A7(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?rc(e):e;return{pathname:n?n.startsWith("/")?n:D7(n,t):t,search:B7(r),hash:z7(o)}}function D7(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 $1(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 iF(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function sF(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=rc(e):(o=qf({},e),sr(!o.pathname||!o.pathname.includes("?"),$1("?","pathname","search",o)),sr(!o.pathname||!o.pathname.includes("#"),$1("#","pathname","hash",o)),sr(!o.search||!o.search.includes("#"),$1("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(r||s==null)a=n;else{let h=t.length-1;if(s.startsWith("..")){let m=s.split("/");for(;m[0]==="..";)m.shift(),h-=1;o.pathname=m.join("/")}a=h>=0?t[h]:"/"}let c=A7(o,a),d=s&&s!=="/"&&s.endsWith("/"),p=(i||s===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||p)&&(c.pathname+="/"),c}const jl=e=>e.join("/").replace(/\/\/+/g,"/"),N7=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),B7=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,z7=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function j7(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const lF=["post","put","patch","delete"];new Set(lF);const H7=["get",...lF];new Set(H7);/**
42
+ * React Router v6.10.0
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 V7(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const U7=typeof Object.is=="function"?Object.is:V7,{useState:W7,useEffect:G7,useLayoutEffect:K7,useDebugValue:q7}=Aa;function Y7(e,t,n){const r=t(),[{inst:o},i]=W7({inst:{value:r,getSnapshot:t}});return K7(()=>{o.value=r,o.getSnapshot=t,R1(o)&&i({inst:o})},[e,r,t]),G7(()=>(R1(o)&&i({inst:o}),e(()=>{R1(o)&&i({inst:o})})),[e]),q7(r),r}function R1(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!U7(n,r)}catch(r){return!0}}function Q7(e,t,n){return t()}const X7=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",J7=!X7,Z7=J7?Q7:Y7;"useSyncExternalStore"in Aa&&(e=>e.useSyncExternalStore)(Aa);const aF=u.createContext(null),dx=u.createContext(null),Ju=u.createContext(null),fv=u.createContext(null),Zu=u.createContext({outlet:null,matches:[]}),cF=u.createContext(null);function mw(){return mw=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},mw.apply(this,arguments)}function eV(e,t){let{relative:n}=t===void 0?{}:t;Ep()||sr(!1);let{basename:r,navigator:o}=u.useContext(Ju),{hash:i,pathname:s,search:a}=fx(e,{relative:n}),c=s;return r!=="/"&&(c=s==="/"?r:jl([r,s])),o.createHref({pathname:c,search:a,hash:i})}function Ep(){return u.useContext(fv)!=null}function ed(){return Ep()||sr(!1),u.useContext(fv).location}function tV(){Ep()||sr(!1);let{basename:e,navigator:t}=u.useContext(Ju),{matches:n}=u.useContext(Zu),{pathname:r}=ed(),o=JSON.stringify(iF(n).map(a=>a.pathnameBase)),i=u.useRef(!1);return u.useEffect(()=>{i.current=!0}),u.useCallback(function(a,c){if(c===void 0&&(c={}),!i.current)return;if(typeof a=="number"){t.go(a);return}let d=sF(a,JSON.parse(o),r,c.relative==="path");e!=="/"&&(d.pathname=d.pathname==="/"?e:jl([e,d.pathname])),(c.replace?t.replace:t.push)(d,c.state,c)},[e,t,o,r])}function fx(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=u.useContext(Zu),{pathname:o}=ed(),i=JSON.stringify(iF(r).map(s=>s.pathnameBase));return u.useMemo(()=>sF(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function nV(e,t){Ep()||sr(!1);let{navigator:n}=u.useContext(Ju),r=u.useContext(dx),{matches:o}=u.useContext(Zu),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let a=i?i.pathnameBase:"/";i&&i.route;let c=ed(),d;if(t){var p;let v=typeof t=="string"?rc(t):t;a==="/"||(p=v.pathname)!=null&&p.startsWith(a)||sr(!1),d=v}else d=c;let h=d.pathname||"/",m=a==="/"?h:h.slice(a.length)||"/",g=C7(e,{pathname:m}),y=sV(g&&g.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:jl([a,n.encodeLocation?n.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?a:jl([a,n.encodeLocation?n.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),o,r||void 0);return t&&y?u.createElement(fv.Provider,{value:{location:mw({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:$l.Pop}},y):y}function rV(){let e=uV(),t=j7(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)"},i=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,i)}class oV extends u.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?u.createElement(Zu.Provider,{value:this.props.routeContext},u.createElement(cF.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function iV(e){let{routeContext:t,match:n,children:r}=e,o=u.useContext(aF);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),u.createElement(Zu.Provider,{value:t},r)}function sV(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,o=n==null?void 0:n.errors;if(o!=null){let i=r.findIndex(s=>s.route.id&&(o==null?void 0:o[s.route.id]));i>=0||sr(!1),r=r.slice(0,Math.min(r.length,i+1))}return r.reduceRight((i,s,a)=>{let c=s.route.id?o==null?void 0:o[s.route.id]:null,d=null;n&&(s.route.ErrorBoundary?d=u.createElement(s.route.ErrorBoundary,null):s.route.errorElement?d=s.route.errorElement:d=u.createElement(rV,null));let p=t.concat(r.slice(0,a+1)),h=()=>{let m=i;return c?m=d:s.route.Component?m=u.createElement(s.route.Component,null):s.route.element&&(m=s.route.element),u.createElement(iV,{match:s,routeContext:{outlet:i,matches:p},children:m})};return n&&(s.route.ErrorBoundary||s.route.errorElement||a===0)?u.createElement(oV,{location:n.location,component:d,error:c,children:h(),routeContext:{outlet:null,matches:p}}):h()},null)}var u_;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(u_||(u_={}));var yg;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(yg||(yg={}));function lV(e){let t=u.useContext(dx);return t||sr(!1),t}function aV(e){let t=u.useContext(Zu);return t||sr(!1),t}function cV(e){let t=aV(),n=t.matches[t.matches.length-1];return n.route.id||sr(!1),n.route.id}function uV(){var e;let t=u.useContext(cF),n=lV(yg.UseRouteError),r=cV(yg.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function uF(e){sr(!1)}function dV(e){let{basename:t="/",children:n=null,location:r,navigationType:o=$l.Pop,navigator:i,static:s=!1}=e;Ep()&&sr(!1);let a=t.replace(/^\/*/,"/"),c=u.useMemo(()=>({basename:a,navigator:i,static:s}),[a,i,s]);typeof r=="string"&&(r=rc(r));let{pathname:d="/",search:p="",hash:h="",state:m=null,key:g="default"}=r,y=u.useMemo(()=>{let v=ux(d,a);return v==null?null:{location:{pathname:v,search:p,hash:h,state:m,key:g},navigationType:o}},[a,d,p,h,m,g,o]);return y==null?null:u.createElement(Ju.Provider,{value:c},u.createElement(fv.Provider,{children:n,value:y}))}function fV(e){let{children:t,location:n}=e,r=u.useContext(aF),o=r&&!t?r.router.routes:gw(t);return nV(o,n)}var d_;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(d_||(d_={}));new Promise(()=>{});function gw(e,t){t===void 0&&(t=[]);let n=[];return u.Children.forEach(e,(r,o)=>{if(!u.isValidElement(r))return;let i=[...t,o];if(r.type===u.Fragment){n.push.apply(n,gw(r.props.children,i));return}r.type!==uF&&sr(!1),!r.props.index||!r.props.children||sr(!1);let s={id:r.props.id||i.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&&(s.children=gw(r.props.children,i)),n.push(s)}),n}/**
51
+ * React Router DOM v6.10.0
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 bg(){return bg=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},bg.apply(this,arguments)}function dF(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function pV(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function hV(e,t){return e.button===0&&(!t||t==="_self")&&!pV(e)}const mV=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],gV=["aria-current","caseSensitive","className","end","style","to","children"];function vV(e){let{basename:t,children:n,window:r}=e,o=u.useRef();o.current==null&&(o.current=y7({window:r,v5Compat:!0}));let i=o.current,[s,a]=u.useState({action:i.action,location:i.location});return u.useLayoutEffect(()=>i.listen(a),[i]),u.createElement(dV,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i})}const yV=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",bV=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fF=u.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:c,to:d,preventScrollReset:p}=t,h=dF(t,mV),{basename:m}=u.useContext(Ju),g,y=!1;if(typeof d=="string"&&bV.test(d)&&(g=d,yV)){let C=new URL(window.location.href),x=d.startsWith("//")?new URL(C.protocol+d):new URL(d),P=ux(x.pathname,m);x.origin===C.origin&&P!=null?d=P+x.search+x.hash:y=!0}let v=eV(d,{relative:o}),E=CV(d,{replace:s,state:a,target:c,preventScrollReset:p,relative:o});function w(C){r&&r(C),C.defaultPrevented||E(C)}return u.createElement("a",bg({},h,{href:g||v,onClick:y||i?r:w,ref:n,target:c}))}),wV=u.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:s=!1,style:a,to:c,children:d}=t,p=dF(t,gV),h=fx(c,{relative:p.relative}),m=ed(),g=u.useContext(dx),{navigator:y}=u.useContext(Ju),v=y.encodeLocation?y.encodeLocation(h).pathname:h.pathname,E=m.pathname,w=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;o||(E=E.toLowerCase(),w=w?w.toLowerCase():null,v=v.toLowerCase());let C=E===v||!s&&E.startsWith(v)&&E.charAt(v.length)==="/",x=w!=null&&(w===v||!s&&w.startsWith(v)&&w.charAt(v.length)==="/"),P=C?r:void 0,_;typeof i=="function"?_=i({isActive:C,isPending:x}):_=[i,C?"active":null,x?"pending":null].filter(Boolean).join(" ");let k=typeof a=="function"?a({isActive:C,isPending:x}):a;return u.createElement(fF,bg({},p,{"aria-current":P,className:_,ref:n,style:k,to:c}),typeof d=="function"?d({isActive:C,isPending:x}):d)});var f_;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(f_||(f_={}));var p_;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(p_||(p_={}));function CV(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s}=t===void 0?{}:t,a=tV(),c=ed(),d=fx(e,{relative:s});return u.useCallback(p=>{if(hV(p,n)){p.preventDefault();let h=r!==void 0?r:vg(c)===vg(d);a(e,{replace:h,state:o,preventScrollReset:i,relative:s})}},[c,a,d,r,o,n,e,i,s])}const xV={black:"#000",white:"#fff"},Yf=xV,SV={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"},Ic=SV,EV={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"},kc=EV,PV={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"},_c=PV,IV={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"},$c=IV,kV={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"},Rc=kV,_V={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"},zd=_V,$V={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"},RV=$V;function MV(e,t){return()=>null}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 xa(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function pF(e){if(!xa(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=pF(e[n])}),t}function ui(e,t,n={clone:!0}){const r=n.clone?S({},e):e;return xa(e)&&xa(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(xa(t[o])&&o in e&&xa(e[o])?r[o]=ui(e[o],t[o],n):n.clone?r[o]=xa(t[o])?pF(t[o]):t[o]:r[o]=t[o])}),r}var hF={exports:{}},TV="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",OV=TV,FV=OV;function mF(){}function gF(){}gF.resetWarningCache=mF;var LV=function(){function e(r,o,i,s,a,c){if(c!==FV){var d=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 d.name="Invariant Violation",d}}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:gF,resetWarningCache:mF};return n.PropTypes=n,n};hF.exports=LV();var AV=hF.exports;const ae=yp(AV);function Kl(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."}var dn={};/**
60
+ * @license React
61
+ * react-is.production.min.js
62
+ *
63
+ * Copyright (c) Facebook, Inc. and its affiliates.
64
+ *
65
+ * This source code is licensed under the MIT license found in the
66
+ * LICENSE file in the root directory of this source tree.
67
+ */var px=Symbol.for("react.element"),hx=Symbol.for("react.portal"),pv=Symbol.for("react.fragment"),hv=Symbol.for("react.strict_mode"),mv=Symbol.for("react.profiler"),gv=Symbol.for("react.provider"),vv=Symbol.for("react.context"),DV=Symbol.for("react.server_context"),yv=Symbol.for("react.forward_ref"),bv=Symbol.for("react.suspense"),wv=Symbol.for("react.suspense_list"),Cv=Symbol.for("react.memo"),xv=Symbol.for("react.lazy"),NV=Symbol.for("react.offscreen"),vF;vF=Symbol.for("react.module.reference");function Ci(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case px:switch(e=e.type,e){case pv:case mv:case hv:case bv:case wv:return e;default:switch(e=e&&e.$$typeof,e){case DV:case vv:case yv:case xv:case Cv:case gv:return e;default:return t}}case hx:return t}}}dn.ContextConsumer=vv;dn.ContextProvider=gv;dn.Element=px;dn.ForwardRef=yv;dn.Fragment=pv;dn.Lazy=xv;dn.Memo=Cv;dn.Portal=hx;dn.Profiler=mv;dn.StrictMode=hv;dn.Suspense=bv;dn.SuspenseList=wv;dn.isAsyncMode=function(){return!1};dn.isConcurrentMode=function(){return!1};dn.isContextConsumer=function(e){return Ci(e)===vv};dn.isContextProvider=function(e){return Ci(e)===gv};dn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===px};dn.isForwardRef=function(e){return Ci(e)===yv};dn.isFragment=function(e){return Ci(e)===pv};dn.isLazy=function(e){return Ci(e)===xv};dn.isMemo=function(e){return Ci(e)===Cv};dn.isPortal=function(e){return Ci(e)===hx};dn.isProfiler=function(e){return Ci(e)===mv};dn.isStrictMode=function(e){return Ci(e)===hv};dn.isSuspense=function(e){return Ci(e)===bv};dn.isSuspenseList=function(e){return Ci(e)===wv};dn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===pv||e===mv||e===hv||e===bv||e===wv||e===NV||typeof e=="object"&&e!==null&&(e.$$typeof===xv||e.$$typeof===Cv||e.$$typeof===gv||e.$$typeof===vv||e.$$typeof===yv||e.$$typeof===vF||e.getModuleId!==void 0)};dn.typeOf=Ci;function ue(e){if(typeof e!="string")throw new Error(Kl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function vw(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Ks(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function BV(e,t){return()=>null}function Cf(e,t){return u.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function vn(e){return e&&e.ownerDocument||document}function Fo(e){return vn(e).defaultView||window}function zV(e,t){return()=>null}function Qf(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const jV=typeof window!="undefined"?u.useLayoutEffect:u.useEffect,an=jV;let h_=0;function HV(e){const[t,n]=u.useState(e),r=e||t;return u.useEffect(()=>{t==null&&(h_+=1,n(`mui-${h_}`))},[t]),r}const m_=Aa["useId".toString()];function sn(e){if(m_!==void 0){const t=m_();return e!=null?e:t}return HV(e)}function VV(e,t,n,r,o){return null}function ls({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=u.useRef(e!==void 0),[i,s]=u.useState(t),a=o?e:i,c=u.useCallback(d=>{o||s(d)},[]);return[a,c]}function Pn(e){const t=u.useRef(e);return an(()=>{t.current=e}),u.useCallback((...n)=>(0,t.current)(...n),[])}function Vt(...e){return u.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Qf(n,t)})},e)}let Sv=!0,yw=!1,g_;const UV={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 WV(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&UV[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function GV(e){e.metaKey||e.altKey||e.ctrlKey||(Sv=!0)}function M1(){Sv=!1}function KV(){this.visibilityState==="hidden"&&yw&&(Sv=!0)}function qV(e){e.addEventListener("keydown",GV,!0),e.addEventListener("mousedown",M1,!0),e.addEventListener("pointerdown",M1,!0),e.addEventListener("touchstart",M1,!0),e.addEventListener("visibilitychange",KV,!0)}function YV(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return Sv||WV(t)}function Ev(){const e=u.useCallback(o=>{o!=null&&qV(o.ownerDocument)},[]),t=u.useRef(!1);function n(){return t.current?(yw=!0,window.clearTimeout(g_),g_=window.setTimeout(()=>{yw=!1},100),t.current=!1,!0):!1}function r(o){return YV(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function yF(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Mc;function bF(){if(Mc)return Mc;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),Mc="reverse",e.scrollLeft>0?Mc="default":(e.scrollLeft=1,e.scrollLeft===0&&(Mc="negative")),document.body.removeChild(e),Mc}function v_(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(bF()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const QV=e=>{const t=u.useRef({});return u.useEffect(()=>{t.current=e}),t.current},mx=QV;function gx(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]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=S({},i),Object.keys(o).forEach(s=>{n[r][s]=gx(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Me(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const y_=e=>e,XV=()=>{let e=y_;return{configure(t){e=t},generate(t){return e(t)},reset(){e=y_}}},JV=XV(),vx=JV,ZV={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Je(e,t,n="Mui"){const r=ZV[t];return r?`${n}-${r}`:`${vx.generate(e)}-${t}`}function Xe(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Je(e,o,n)}),r}const Ha="$$material";function ne(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function wF(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var eU=/^((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)-.*))$/,tU=wF(function(e){return eU.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function nU(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 rU(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 oU=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),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(rU(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=nU(o);try{i.insertRule(r,i.cssRules.length)}catch(s){}}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}(),$r="-ms-",wg="-moz-",Xt="-webkit-",CF="comm",yx="rule",bx="decl",iU="@import",xF="@keyframes",sU=Math.abs,Pv=String.fromCharCode,lU=Object.assign;function aU(e,t){return Cr(e,0)^45?(((t<<2^Cr(e,0))<<2^Cr(e,1))<<2^Cr(e,2))<<2^Cr(e,3):0}function SF(e){return e.trim()}function cU(e,t){return(e=t.exec(e))?e[0]:e}function Zt(e,t,n){return e.replace(t,n)}function bw(e,t){return e.indexOf(t)}function Cr(e,t){return e.charCodeAt(t)|0}function Xf(e,t,n){return e.slice(t,n)}function es(e){return e.length}function wx(e){return e.length}function Zh(e,t){return t.push(e),e}function uU(e,t){return e.map(t).join("")}var Iv=1,Mu=1,EF=0,ho=0,Zn=0,td="";function kv(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Iv,column:Mu,length:s,return:""}}function jd(e,t){return lU(kv("",null,null,"",null,null,0),e,{length:-e.length},t)}function dU(){return Zn}function fU(){return Zn=ho>0?Cr(td,--ho):0,Mu--,Zn===10&&(Mu=1,Iv--),Zn}function To(){return Zn=ho<EF?Cr(td,ho++):0,Mu++,Zn===10&&(Mu=1,Iv++),Zn}function as(){return Cr(td,ho)}function Mm(){return ho}function Pp(e,t){return Xf(td,e,t)}function Jf(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 PF(e){return Iv=Mu=1,EF=es(td=e),ho=0,[]}function IF(e){return td="",e}function Tm(e){return SF(Pp(ho-1,ww(e===91?e+2:e===40?e+1:e)))}function pU(e){for(;(Zn=as())&&Zn<33;)To();return Jf(e)>2||Jf(Zn)>3?"":" "}function hU(e,t){for(;--t&&To()&&!(Zn<48||Zn>102||Zn>57&&Zn<65||Zn>70&&Zn<97););return Pp(e,Mm()+(t<6&&as()==32&&To()==32))}function ww(e){for(;To();)switch(Zn){case e:return ho;case 34:case 39:e!==34&&e!==39&&ww(Zn);break;case 40:e===41&&ww(e);break;case 92:To();break}return ho}function mU(e,t){for(;To()&&e+Zn!==47+10;)if(e+Zn===42+42&&as()===47)break;return"/*"+Pp(t,ho-1)+"*"+Pv(e===47?e:To())}function gU(e){for(;!Jf(as());)To();return Pp(e,ho)}function vU(e){return IF(Om("",null,null,null,[""],e=PF(e),0,[0],e))}function Om(e,t,n,r,o,i,s,a,c){for(var d=0,p=0,h=s,m=0,g=0,y=0,v=1,E=1,w=1,C=0,x="",P=o,_=i,k=r,I=x;E;)switch(y=C,C=To()){case 40:if(y!=108&&Cr(I,h-1)==58){bw(I+=Zt(Tm(C),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:I+=Tm(C);break;case 9:case 10:case 13:case 32:I+=pU(y);break;case 92:I+=hU(Mm()-1,7);continue;case 47:switch(as()){case 42:case 47:Zh(yU(mU(To(),Mm()),t,n),c);break;default:I+="/"}break;case 123*v:a[d++]=es(I)*w;case 125*v:case 59:case 0:switch(C){case 0:case 125:E=0;case 59+p:g>0&&es(I)-h&&Zh(g>32?w_(I+";",r,n,h-1):w_(Zt(I," ","")+";",r,n,h-2),c);break;case 59:I+=";";default:if(Zh(k=b_(I,t,n,d,p,o,a,x,P=[],_=[],h),i),C===123)if(p===0)Om(I,t,k,k,P,i,h,a,_);else switch(m===99&&Cr(I,3)===110?100:m){case 100:case 109:case 115:Om(e,k,k,r&&Zh(b_(e,k,k,0,0,o,a,x,o,P=[],h),_),o,_,h,a,r?P:_);break;default:Om(I,k,k,k,[""],_,0,a,_)}}d=p=g=0,v=w=1,x=I="",h=s;break;case 58:h=1+es(I),g=y;default:if(v<1){if(C==123)--v;else if(C==125&&v++==0&&fU()==125)continue}switch(I+=Pv(C),C*v){case 38:w=p>0?1:(I+="\f",-1);break;case 44:a[d++]=(es(I)-1)*w,w=1;break;case 64:as()===45&&(I+=Tm(To())),m=as(),p=h=es(x=I+=gU(Mm())),C++;break;case 45:y===45&&es(I)==2&&(v=0)}}return i}function b_(e,t,n,r,o,i,s,a,c,d,p){for(var h=o-1,m=o===0?i:[""],g=wx(m),y=0,v=0,E=0;y<r;++y)for(var w=0,C=Xf(e,h+1,h=sU(v=s[y])),x=e;w<g;++w)(x=SF(v>0?m[w]+" "+C:Zt(C,/&\f/g,m[w])))&&(c[E++]=x);return kv(e,t,n,o===0?yx:a,c,d,p)}function yU(e,t,n){return kv(e,t,n,CF,Pv(dU()),Xf(e,2,-2),0)}function w_(e,t,n,r){return kv(e,t,n,bx,Xf(e,0,r),Xf(e,r+1,-1),r)}function mu(e,t){for(var n="",r=wx(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function bU(e,t,n,r){switch(e.type){case iU:case bx:return e.return=e.return||e.value;case CF:return"";case xF:return e.return=e.value+"{"+mu(e.children,r)+"}";case yx:e.value=e.props.join(",")}return es(n=mu(e.children,r))?e.return=e.value+"{"+n+"}":""}function wU(e){var t=wx(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}function CU(e){return function(t){t.root||(t=t.return)&&e(t)}}var xU=function(t,n,r){for(var o=0,i=0;o=i,i=as(),o===38&&i===12&&(n[r]=1),!Jf(i);)To();return Pp(t,ho)},SU=function(t,n){var r=-1,o=44;do switch(Jf(o)){case 0:o===38&&as()===12&&(n[r]=1),t[r]+=xU(ho-1,n,r);break;case 2:t[r]+=Tm(o);break;case 4:if(o===44){t[++r]=as()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Pv(o)}while(o=To());return t},EU=function(t,n){return IF(SU(PF(t),n))},C_=new WeakMap,PU=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&&!C_.get(r))&&!o){C_.set(t,!0);for(var i=[],s=EU(n,i),a=r.props,c=0,d=0;c<s.length;c++)for(var p=0;p<a.length;p++,d++)t.props[d]=i[c]?s[c].replace(/&\f/g,a[p]):a[p]+" "+s[c]}}},IU=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function kF(e,t){switch(aU(e,t)){case 5103:return Xt+"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 Xt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Xt+e+wg+e+$r+e+e;case 6828:case 4268:return Xt+e+$r+e+e;case 6165:return Xt+e+$r+"flex-"+e+e;case 5187:return Xt+e+Zt(e,/(\w+).+(:[^]+)/,Xt+"box-$1$2"+$r+"flex-$1$2")+e;case 5443:return Xt+e+$r+"flex-item-"+Zt(e,/flex-|-self/,"")+e;case 4675:return Xt+e+$r+"flex-line-pack"+Zt(e,/align-content|flex-|-self/,"")+e;case 5548:return Xt+e+$r+Zt(e,"shrink","negative")+e;case 5292:return Xt+e+$r+Zt(e,"basis","preferred-size")+e;case 6060:return Xt+"box-"+Zt(e,"-grow","")+Xt+e+$r+Zt(e,"grow","positive")+e;case 4554:return Xt+Zt(e,/([^-])(transform)/g,"$1"+Xt+"$2")+e;case 6187:return Zt(Zt(Zt(e,/(zoom-|grab)/,Xt+"$1"),/(image-set)/,Xt+"$1"),e,"")+e;case 5495:case 3959:return Zt(e,/(image-set\([^]*)/,Xt+"$1$`$1");case 4968:return Zt(Zt(e,/(.+:)(flex-)?(.*)/,Xt+"box-pack:$3"+$r+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Xt+e+e;case 4095:case 3583:case 4068:case 2532:return Zt(e,/(.+)-inline(.+)/,Xt+"$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(es(e)-1-t>6)switch(Cr(e,t+1)){case 109:if(Cr(e,t+4)!==45)break;case 102:return Zt(e,/(.+:)(.+)-([^]+)/,"$1"+Xt+"$2-$3$1"+wg+(Cr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~bw(e,"stretch")?kF(Zt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Cr(e,t+1)!==115)break;case 6444:switch(Cr(e,es(e)-3-(~bw(e,"!important")&&10))){case 107:return Zt(e,":",":"+Xt)+e;case 101:return Zt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Xt+(Cr(e,14)===45?"inline-":"")+"box$3$1"+Xt+"$2$3$1"+$r+"$2box$3")+e}break;case 5936:switch(Cr(e,t+11)){case 114:return Xt+e+$r+Zt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Xt+e+$r+Zt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Xt+e+$r+Zt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Xt+e+$r+e+e}return e}var kU=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case bx:t.return=kF(t.value,t.length);break;case xF:return mu([jd(t,{value:Zt(t.value,"@","@"+Xt)})],o);case yx:if(t.length)return uU(t.props,function(i){switch(cU(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return mu([jd(t,{props:[Zt(i,/:(read-\w+)/,":"+wg+"$1")]})],o);case"::placeholder":return mu([jd(t,{props:[Zt(i,/:(plac\w+)/,":"+Xt+"input-$1")]}),jd(t,{props:[Zt(i,/:(plac\w+)/,":"+wg+"$1")]}),jd(t,{props:[Zt(i,/:(plac\w+)/,$r+"input-$1")]})],o)}return""})}},_U=[kU],$U=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(v){var E=v.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||_U,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var E=v.getAttribute("data-emotion").split(" "),w=1;w<E.length;w++)i[E[w]]=!0;a.push(v)});var c,d=[PU,IU];{var p,h=[bU,CU(function(v){p.insert(v)})],m=wU(d.concat(o,h)),g=function(E){return mu(vU(E),m)};c=function(E,w,C,x){p=C,g(E?E+"{"+w.styles+"}":w.styles),x&&(y.inserted[w.name]=!0)}}var y={key:n,sheet:new oU({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return y.sheet.hydrate(a),y},_F={exports:{}},cn={};/** @license React v16.13.1
68
+ * react-is.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 mr=typeof Symbol=="function"&&Symbol.for,Cx=mr?Symbol.for("react.element"):60103,xx=mr?Symbol.for("react.portal"):60106,_v=mr?Symbol.for("react.fragment"):60107,$v=mr?Symbol.for("react.strict_mode"):60108,Rv=mr?Symbol.for("react.profiler"):60114,Mv=mr?Symbol.for("react.provider"):60109,Tv=mr?Symbol.for("react.context"):60110,Sx=mr?Symbol.for("react.async_mode"):60111,Ov=mr?Symbol.for("react.concurrent_mode"):60111,Fv=mr?Symbol.for("react.forward_ref"):60112,Lv=mr?Symbol.for("react.suspense"):60113,RU=mr?Symbol.for("react.suspense_list"):60120,Av=mr?Symbol.for("react.memo"):60115,Dv=mr?Symbol.for("react.lazy"):60116,MU=mr?Symbol.for("react.block"):60121,TU=mr?Symbol.for("react.fundamental"):60117,OU=mr?Symbol.for("react.responder"):60118,FU=mr?Symbol.for("react.scope"):60119;function jo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Cx:switch(e=e.type,e){case Sx:case Ov:case _v:case Rv:case $v:case Lv:return e;default:switch(e=e&&e.$$typeof,e){case Tv:case Fv:case Dv:case Av:case Mv:return e;default:return t}}case xx:return t}}}function $F(e){return jo(e)===Ov}cn.AsyncMode=Sx;cn.ConcurrentMode=Ov;cn.ContextConsumer=Tv;cn.ContextProvider=Mv;cn.Element=Cx;cn.ForwardRef=Fv;cn.Fragment=_v;cn.Lazy=Dv;cn.Memo=Av;cn.Portal=xx;cn.Profiler=Rv;cn.StrictMode=$v;cn.Suspense=Lv;cn.isAsyncMode=function(e){return $F(e)||jo(e)===Sx};cn.isConcurrentMode=$F;cn.isContextConsumer=function(e){return jo(e)===Tv};cn.isContextProvider=function(e){return jo(e)===Mv};cn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Cx};cn.isForwardRef=function(e){return jo(e)===Fv};cn.isFragment=function(e){return jo(e)===_v};cn.isLazy=function(e){return jo(e)===Dv};cn.isMemo=function(e){return jo(e)===Av};cn.isPortal=function(e){return jo(e)===xx};cn.isProfiler=function(e){return jo(e)===Rv};cn.isStrictMode=function(e){return jo(e)===$v};cn.isSuspense=function(e){return jo(e)===Lv};cn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===_v||e===Ov||e===Rv||e===$v||e===Lv||e===RU||typeof e=="object"&&e!==null&&(e.$$typeof===Dv||e.$$typeof===Av||e.$$typeof===Mv||e.$$typeof===Tv||e.$$typeof===Fv||e.$$typeof===TU||e.$$typeof===OU||e.$$typeof===FU||e.$$typeof===MU)};cn.typeOf=jo;_F.exports=cn;var LU=_F.exports,RF=LU,AU={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},DU={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},MF={};MF[RF.ForwardRef]=AU;MF[RF.Memo]=DU;var NU=!0;function BU(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var TF=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||NU===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},OF=function(t,n,r){TF(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function zU(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 jU={animationIterationCount: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},HU=/[A-Z]|^ms/g,VU=/_EMO_([^_]+?)_([^]*?)_EMO_/g,FF=function(t){return t.charCodeAt(1)===45},x_=function(t){return t!=null&&typeof t!="boolean"},T1=wF(function(e){return FF(e)?e:e.replace(HU,"-$&").toLowerCase()}),S_=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(VU,function(r,o,i){return ts={name:o,styles:i,next:ts},o})}return jU[t]!==1&&!FF(t)&&typeof n=="number"&&n!==0?n+"px":n};function Zf(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 ts={name:n.name,styles:n.styles,next:ts},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ts={name:r.name,styles:r.styles,next:ts},r=r.next;var o=n.styles+";";return o}return UU(e,t,n)}case"function":{if(e!==void 0){var i=ts,s=n(e);return ts=i,Zf(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function UU(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Zf(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object")t!=null&&t[s]!==void 0?r+=i+"{"+t[s]+"}":x_(s)&&(r+=T1(i)+":"+S_(i,s)+";");else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var a=0;a<s.length;a++)x_(s[a])&&(r+=T1(i)+":"+S_(i,s[a])+";");else{var c=Zf(e,t,s);switch(i){case"animation":case"animationName":{r+=T1(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var E_=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ts,Ex=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,i="";ts=void 0;var s=t[0];s==null||s.raw===void 0?(o=!1,i+=Zf(r,n,s)):i+=s[0];for(var a=1;a<t.length;a++)i+=Zf(r,n,t[a]),o&&(i+=s[a]);E_.lastIndex=0;for(var c="",d;(d=E_.exec(i))!==null;)c+="-"+d[1];var p=zU(i)+c;return{name:p,styles:i,next:ts}},WU=function(t){return t()},LF=Aa["useInsertionEffect"]?Aa["useInsertionEffect"]:!1,GU=LF||WU,P_=LF||u.useLayoutEffect,AF=u.createContext(typeof HTMLElement!="undefined"?$U({key:"css"}):null);AF.Provider;var DF=function(t){return u.forwardRef(function(n,r){var o=u.useContext(AF);return t(n,o,r)})},Nv=u.createContext({}),KU=DF(function(e,t){var n=e.styles,r=Ex([n],void 0,u.useContext(Nv)),o=u.useRef();return P_(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,c=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),c!==null&&(a=!0,c.setAttribute("data-emotion",i),s.hydrate([c])),o.current=[s,a],function(){s.flush()}},[t]),P_(function(){var i=o.current,s=i[0],a=i[1];if(a){i[1]=!1;return}if(r.next!==void 0&&OF(t,r.next,!0),s.tags.length){var c=s.tags[s.tags.length-1].nextElementSibling;s.before=c,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function ql(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ex(t)}var bs=function(){var t=ql.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_"}}},qU=tU,YU=function(t){return t!=="theme"},I_=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?qU:YU},k_=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},QU=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return TF(n,r,o),GU(function(){return OF(n,r,o)}),null},XU=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=k_(t,n,r),c=a||I_(o),d=!c("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{h.push(p[0][0]);for(var m=p.length,g=1;g<m;g++)h.push(p[g],p[0][g])}var y=DF(function(v,E,w){var C=d&&v.as||o,x="",P=[],_=v;if(v.theme==null){_={};for(var k in v)_[k]=v[k];_.theme=u.useContext(Nv)}typeof v.className=="string"?x=BU(E.registered,P,v.className):v.className!=null&&(x=v.className+" ");var I=Ex(h.concat(P),E.registered,_);x+=E.key+"-"+I.name,s!==void 0&&(x+=" "+s);var R=d&&a===void 0?I_(C):c,F={};for(var A in v)d&&A==="as"||R(A)&&(F[A]=v[A]);return F.className=x,F.ref=w,u.createElement(u.Fragment,null,u.createElement(QU,{cache:E,serialized:I,isStringTag:typeof C=="string"}),u.createElement(C,F))});return y.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=o,y.__emotion_styles=h,y.__emotion_forwardProp=a,Object.defineProperty(y,"toString",{value:function(){return"."+s}}),y.withComponent=function(v,E){return e(v,S({},n,E,{shouldForwardProp:k_(y,E,!0)})).apply(void 0,h)},y}};const JU=XU;var ZU=["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"],Cw=JU.bind();ZU.forEach(function(e){Cw[e]=Cw(e)});const eW=Cw;var O1={exports:{}},Hd={};/**
75
+ * @license React
76
+ * react-jsx-runtime.production.min.js
77
+ *
78
+ * Copyright (c) Facebook, Inc. and its affiliates.
79
+ *
80
+ * This source code is licensed under the MIT license found in the
81
+ * LICENSE file in the root directory of this source tree.
82
+ */var __;function tW(){if(__)return Hd;__=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,i={key:!0,ref:!0,__self:!0,__source:!0};function s(a,c,d){var p,h={},m=null,g=null;d!==void 0&&(m=""+d),c.key!==void 0&&(m=""+c.key),c.ref!==void 0&&(g=c.ref);for(p in c)r.call(c,p)&&!i.hasOwnProperty(p)&&(h[p]=c[p]);if(a&&a.defaultProps)for(p in c=a.defaultProps,c)h[p]===void 0&&(h[p]=c[p]);return{$$typeof:t,type:a,key:m,ref:g,props:h,_owner:o.current}}return Hd.Fragment=n,Hd.jsx=s,Hd.jsxs=s,Hd}var $_;function tt(){return $_||($_=1,O1.exports=tW()),O1.exports}var T=tt();function nW(e){return e==null||Object.keys(e).length===0}function rW(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(nW(o)?n:o):t;return T.jsx(KU,{styles:r})}/**
83
+ * @mui/styled-engine v5.12.0
84
+ *
85
+ * @license MIT
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
+ */function NF(e,t){return eW(e,t)}const oW=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},iW=["values","unit","step"],sW=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 lW(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ne(e,iW),i=sW(t),s=Object.keys(i);function a(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function c(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function d(m,g){const y=s.indexOf(g);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(y!==-1&&typeof t[s[y]]=="number"?t[s[y]]:g)-r/100}${n})`}function p(m){return s.indexOf(m)+1<s.length?d(m,s[s.indexOf(m)+1]):a(m)}function h(m){const g=s.indexOf(m);return g===0?a(s[1]):g===s.length-1?c(s[g]):d(m,s[s.indexOf(m)+1]).replace("@media","@media not all and")}return S({keys:s,values:i,up:a,down:c,between:d,only:p,not:h,unit:n},o)}const aW={borderRadius:4},cW=aW;function xf(e,t){return t?ui(e,t,{clone:!1}):e}const Px={xs:0,sm:600,md:900,lg:1200,xl:1536},R_={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Px[e]}px)`};function gi(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||R_;return t.reduce((s,a,c)=>(s[i.up(i.keys[c])]=n(t[c]),s),{})}if(typeof t=="object"){const i=r.breakpoints||R_;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||Px).indexOf(a)!==-1){const c=i.up(a);s[c]=n(t[a],a)}else{const c=a;s[c]=t[c]}return s},{})}return n(t)}function uW(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function dW(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function fW(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function Bv({values:e,breakpoints:t,base:n}){const r=n||fW(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((s,a,c)=>(Array.isArray(e)?(s[a]=e[c]!=null?e[c]:e[i],i=c):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[i],i=a):s[a]=e,s),{})}function Tu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Cg(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Tu(e,n)||r,t&&(o=t(o,r,e)),o}function en(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],c=s.theme,d=Tu(c,r)||{};return gi(s,a,h=>{let m=Cg(d,o,h);return h===m&&typeof h=="string"&&(m=Cg(d,o,`${t}${h==="default"?"":ue(h)}`,h)),n===!1?m:{[n]:m}})};return i.propTypes={},i.filterProps=[t],i}function pW(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const hW={m:"margin",p:"padding"},mW={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},M_={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gW=pW(e=>{if(e.length>2)if(M_[e])e=M_[e];else return[e];const[t,n]=e.split(""),r=hW[t],o=mW[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Ix=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],kx=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Ix,...kx];function Ip(e,t,n,r){var o;const i=(o=Tu(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function BF(e){return Ip(e,"spacing",8)}function kp(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 vW(e,t){return n=>e.reduce((r,o)=>(r[o]=kp(t,n),r),{})}function yW(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=gW(n),i=vW(o,r),s=e[n];return gi(e,s,i)}function zF(e,t){const n=BF(e.theme);return Object.keys(e).map(r=>yW(e,t,r,n)).reduce(xf,{})}function Vn(e){return zF(e,Ix)}Vn.propTypes={};Vn.filterProps=Ix;function Un(e){return zF(e,kx)}Un.propTypes={};Un.filterProps=kx;function bW(e=8){if(e.mui)return e;const t=BF({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function zv(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?xf(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function os(e){return typeof e!="number"?e:`${e}px solid`}const wW=en({prop:"border",themeKey:"borders",transform:os}),CW=en({prop:"borderTop",themeKey:"borders",transform:os}),xW=en({prop:"borderRight",themeKey:"borders",transform:os}),SW=en({prop:"borderBottom",themeKey:"borders",transform:os}),EW=en({prop:"borderLeft",themeKey:"borders",transform:os}),PW=en({prop:"borderColor",themeKey:"palette"}),IW=en({prop:"borderTopColor",themeKey:"palette"}),kW=en({prop:"borderRightColor",themeKey:"palette"}),_W=en({prop:"borderBottomColor",themeKey:"palette"}),$W=en({prop:"borderLeftColor",themeKey:"palette"}),jv=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ip(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:kp(t,r)});return gi(e,e.borderRadius,n)}return null};jv.propTypes={};jv.filterProps=["borderRadius"];zv(wW,CW,xW,SW,EW,PW,IW,kW,_W,$W,jv);const Hv=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ip(e.theme,"spacing",8),n=r=>({gap:kp(t,r)});return gi(e,e.gap,n)}return null};Hv.propTypes={};Hv.filterProps=["gap"];const Vv=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ip(e.theme,"spacing",8),n=r=>({columnGap:kp(t,r)});return gi(e,e.columnGap,n)}return null};Vv.propTypes={};Vv.filterProps=["columnGap"];const Uv=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ip(e.theme,"spacing",8),n=r=>({rowGap:kp(t,r)});return gi(e,e.rowGap,n)}return null};Uv.propTypes={};Uv.filterProps=["rowGap"];const RW=en({prop:"gridColumn"}),MW=en({prop:"gridRow"}),TW=en({prop:"gridAutoFlow"}),OW=en({prop:"gridAutoColumns"}),FW=en({prop:"gridAutoRows"}),LW=en({prop:"gridTemplateColumns"}),AW=en({prop:"gridTemplateRows"}),DW=en({prop:"gridTemplateAreas"}),NW=en({prop:"gridArea"});zv(Hv,Vv,Uv,RW,MW,TW,OW,FW,LW,AW,DW,NW);function gu(e,t){return t==="grey"?t:e}const BW=en({prop:"color",themeKey:"palette",transform:gu}),zW=en({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gu}),jW=en({prop:"backgroundColor",themeKey:"palette",transform:gu});zv(BW,zW,jW);function ko(e){return e<=1&&e!==0?`${e*100}%`:e}const HW=en({prop:"width",transform:ko}),_x=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o,i;return{maxWidth:((r=e.theme)==null||(o=r.breakpoints)==null||(i=o.values)==null?void 0:i[n])||Px[n]||ko(n)}};return gi(e,e.maxWidth,t)}return null};_x.filterProps=["maxWidth"];const VW=en({prop:"minWidth",transform:ko}),UW=en({prop:"height",transform:ko}),WW=en({prop:"maxHeight",transform:ko}),GW=en({prop:"minHeight",transform:ko});en({prop:"size",cssProperty:"width",transform:ko});en({prop:"size",cssProperty:"height",transform:ko});const KW=en({prop:"boxSizing"});zv(HW,_x,VW,UW,WW,GW,KW);const qW={border:{themeKey:"borders",transform:os},borderTop:{themeKey:"borders",transform:os},borderRight:{themeKey:"borders",transform:os},borderBottom:{themeKey:"borders",transform:os},borderLeft:{themeKey:"borders",transform:os},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:jv},color:{themeKey:"palette",transform:gu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gu},backgroundColor:{themeKey:"palette",transform:gu},p:{style:Un},pt:{style:Un},pr:{style:Un},pb:{style:Un},pl:{style:Un},px:{style:Un},py:{style:Un},padding:{style:Un},paddingTop:{style:Un},paddingRight:{style:Un},paddingBottom:{style:Un},paddingLeft:{style:Un},paddingX:{style:Un},paddingY:{style:Un},paddingInline:{style:Un},paddingInlineStart:{style:Un},paddingInlineEnd:{style:Un},paddingBlock:{style:Un},paddingBlockStart:{style:Un},paddingBlockEnd:{style:Un},m:{style:Vn},mt:{style:Vn},mr:{style:Vn},mb:{style:Vn},ml:{style:Vn},mx:{style:Vn},my:{style:Vn},margin:{style:Vn},marginTop:{style:Vn},marginRight:{style:Vn},marginBottom:{style:Vn},marginLeft:{style:Vn},marginX:{style:Vn},marginY:{style:Vn},marginInline:{style:Vn},marginInlineStart:{style:Vn},marginInlineEnd:{style:Vn},marginBlock:{style:Vn},marginBlockStart:{style:Vn},marginBlockEnd:{style:Vn},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:Hv},rowGap:{style:Uv},columnGap:{style:Vv},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:_x},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"}},Wv=qW;function YW(...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 QW(e,t){return typeof e=="function"?e(t):e}function XW(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:c=n,themeKey:d,transform:p,style:h}=a;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const m=Tu(o,d)||{};return h?h(s):gi(s,r,y=>{let v=Cg(m,p,y);return y===v&&typeof y=="string"&&(v=Cg(m,p,`${n}${y==="default"?"":ue(y)}`,y)),c===!1?v:{[c]:v}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:Wv;function a(c){let d=c;if(typeof c=="function")d=c(i);else if(typeof c!="object")return c;if(!d)return null;const p=uW(i.breakpoints),h=Object.keys(p);let m=p;return Object.keys(d).forEach(g=>{const y=QW(d[g],i);if(y!=null)if(typeof y=="object")if(s[g])m=xf(m,e(g,y,i,s));else{const v=gi({theme:i},y,E=>({[g]:E}));YW(v,y)?m[g]=t({sx:y,theme:i}):m=xf(m,v)}else m=xf(m,e(g,y,i,s))}),dW(h,m)}return Array.isArray(o)?o.map(a):a(o)}return t}const jF=XW();jF.filterProps=["sx"];const Gv=jF,JW=["breakpoints","palette","spacing","shape"];function $x(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=ne(e,JW),a=lW(n),c=bW(o);let d=ui({breakpoints:a,direction:"ltr",components:{},palette:S({mode:"light"},r),spacing:c,shape:S({},cW,i)},s);return d=t.reduce((p,h)=>ui(p,h),d),d.unstable_sxConfig=S({},Wv,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(h){return Gv({sx:h,theme:this})},d}function ZW(e){return Object.keys(e).length===0}function Kv(e=null){const t=u.useContext(Nv);return!t||ZW(t)?e:t}const eG=$x();function _p(e=eG){return Kv(e)}function tG({styles:e,themeId:t,defaultTheme:n={}}){const r=_p(n),o=typeof e=="function"?e(t&&r[t]||r):e;return T.jsx(rW,{styles:o})}const nG=["sx"],rG=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Wv;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function Rx(e){const{sx:t}=e,n=ne(e,nG),{systemProps:r,otherProps:o}=rG(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return xa(a)?S({},r,a):r}:i=S({},r,t),S({},o,{sx:i})}function HF(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=HF(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function he(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=HF(e))&&(r&&(r+=" "),r+=t);return r}const oG=["className","component"];function iG(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=NF("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(Gv);return u.forwardRef(function(c,d){const p=_p(n),h=Rx(c),{className:m,component:g="div"}=h,y=ne(h,oG);return T.jsx(i,S({as:g,ref:d,className:he(m,o?o(r):r),theme:t&&p[t]||p},y))})}const sG=["variant"];function T_(e){return e.length===0}function VF(e){const{variant:t}=e,n=ne(e,sG);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=T_(r)?e[o]:ue(e[o]):r+=`${T_(r)?o:ue(o)}${ue(e[o].toString())}`}),r}const lG=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function aG(e){return Object.keys(e).length===0}function cG(e){return typeof e=="string"&&e.charCodeAt(0)>96}const uG=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,dG=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(o=>{const i=VF(o.props);r[i]=o.style}),r},fG=(e,t,n,r)=>{var o,i;const{ownerState:s={}}=e,a=[],c=n==null||(o=n.components)==null||(i=o[r])==null?void 0:i.variants;return c&&c.forEach(d=>{let p=!0;Object.keys(d.props).forEach(h=>{s[h]!==d.props[h]&&e[h]!==d.props[h]&&(p=!1)}),p&&a.push(t[VF(d.props)])}),a};function Sf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const pG=$x();function Vd({defaultTheme:e,theme:t,themeId:n}){return aG(t)?e:t[n]||t}function UF(e={}){const{themeId:t,defaultTheme:n=pG,rootShouldForwardProp:r=Sf,slotShouldForwardProp:o=Sf}=e,i=s=>Gv(S({},s,{theme:Vd(S({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{oW(s,P=>P.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:c,slot:d,skipVariantsResolver:p,skipSx:h,overridesResolver:m}=a,g=ne(a,lG),y=p!==void 0?p:d&&d!=="Root"||!1,v=h||!1;let E,w=Sf;d==="Root"?w=r:d?w=o:cG(s)&&(w=void 0);const C=NF(s,S({shouldForwardProp:w,label:E},g)),x=(P,..._)=>{const k=_?_.map(A=>typeof A=="function"&&A.__emotion_real!==A?O=>A(S({},O,{theme:Vd(S({},O,{defaultTheme:n,themeId:t}))})):A):[];let I=P;c&&m&&k.push(A=>{const O=Vd(S({},A,{defaultTheme:n,themeId:t})),N=uG(c,O);if(N){const B={};return Object.entries(N).forEach(([M,L])=>{B[M]=typeof L=="function"?L(S({},A,{theme:O})):L}),m(A,B)}return null}),c&&!y&&k.push(A=>{const O=Vd(S({},A,{defaultTheme:n,themeId:t}));return fG(A,dG(c,O),O,c)}),v||k.push(i);const R=k.length-_.length;if(Array.isArray(P)&&R>0){const A=new Array(R).fill("");I=[...P,...A],I.raw=[...P.raw,...A]}else typeof P=="function"&&P.__emotion_real!==P&&(I=A=>P(S({},A,{theme:Vd(S({},A,{defaultTheme:n,themeId:t}))})));const F=C(I,...k);return s.muiName&&(F.muiName=s.muiName),F};return C.withConfig&&(x.withConfig=C.withConfig),x}}const hG=UF(),gr=hG;function WF(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:gx(t.components[n].defaultProps,r)}function mG({props:e,name:t,defaultTheme:n,themeId:r}){let o=_p(n);return r&&(o=o[r]||o),WF({theme:o,name:t,props:e})}function Mx(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function gG(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 Va(e){if(e.type)return e;if(e.charAt(0)==="#")return Va(gG(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Kl(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(Kl(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function qv(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function vG(e){e=Va(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(d,p=(d+n/30)%12)=>o-i*Math.max(Math.min(p-3,9-p,1),-1);let a="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",c.push(t[3])),qv({type:a,values:c})}function O_(e){e=Va(e);let t=e.type==="hsl"||e.type==="hsla"?Va(vG(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:Yi((n+.055)/1.055,2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function yG(e,t){const n=O_(e),r=O_(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function dt(e,t){return e=Va(e),t=Mx(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,qv(e)}function Ua(e,t){if(e=Va(e),t=Mx(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 qv(e)}function Wa(e,t){if(e=Va(e),t=Mx(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 qv(e)}const bG=u.createContext(null),GF=bG;function KF(){return u.useContext(GF)}const wG=typeof Symbol=="function"&&Symbol.for,CG=wG?Symbol.for("mui.nested"):"__THEME_NESTED__";function xG(e,t){return typeof t=="function"?t(e):S({},e,t)}function SG(e){const{children:t,theme:n}=e,r=KF(),o=u.useMemo(()=>{const i=r===null?n:xG(r,n);return i!=null&&(i[CG]=r!==null),i},[n,r]);return T.jsx(GF.Provider,{value:o,children:t})}const F_={};function L_(e,t,n,r=!1){return u.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),s=e?S({},t,{[e]:i}):i;return r?()=>s:s}return e?S({},t,{[e]:n}):S({},t,n)},[e,t,n,r])}function EG(e){const{children:t,theme:n,themeId:r}=e,o=Kv(F_),i=KF()||F_,s=L_(r,o,n),a=L_(r,i,n,!0);return T.jsx(SG,{theme:a,children:T.jsx(Nv.Provider,{value:s,children:t})})}function PG(e,t){return S({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const IG=["mode","contrastThreshold","tonalOffset"],A_={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:Yf.white,default:Yf.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}},F1={text:{primary:Yf.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:Yf.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 D_(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Wa(e.main,o):t==="dark"&&(e.dark=Ua(e.main,i)))}function kG(e="light"){return e==="dark"?{main:_c[200],light:_c[50],dark:_c[400]}:{main:_c[700],light:_c[400],dark:_c[800]}}function _G(e="light"){return e==="dark"?{main:kc[200],light:kc[50],dark:kc[400]}:{main:kc[500],light:kc[300],dark:kc[700]}}function $G(e="light"){return e==="dark"?{main:Ic[500],light:Ic[300],dark:Ic[700]}:{main:Ic[700],light:Ic[400],dark:Ic[800]}}function RG(e="light"){return e==="dark"?{main:$c[400],light:$c[300],dark:$c[700]}:{main:$c[700],light:$c[500],dark:$c[900]}}function MG(e="light"){return e==="dark"?{main:Rc[400],light:Rc[300],dark:Rc[700]}:{main:Rc[800],light:Rc[500],dark:Rc[900]}}function TG(e="light"){return e==="dark"?{main:zd[400],light:zd[300],dark:zd[700]}:{main:"#ed6c02",light:zd[500],dark:zd[900]}}function OG(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ne(e,IG),i=e.primary||kG(t),s=e.secondary||_G(t),a=e.error||$G(t),c=e.info||RG(t),d=e.success||MG(t),p=e.warning||TG(t);function h(v){return yG(v,F1.text.primary)>=n?F1.text.primary:A_.text.primary}const m=({color:v,name:E,mainShade:w=500,lightShade:C=300,darkShade:x=700})=>{if(v=S({},v),!v.main&&v[w]&&(v.main=v[w]),!v.hasOwnProperty("main"))throw new Error(Kl(11,E?` (${E})`:"",w));if(typeof v.main!="string")throw new Error(Kl(12,E?` (${E})`:"",JSON.stringify(v.main)));return D_(v,"light",C,r),D_(v,"dark",x,r),v.contrastText||(v.contrastText=h(v.main)),v},g={dark:F1,light:A_};return ui(S({common:S({},Yf),mode:t,primary:m({color:i,name:"primary"}),secondary:m({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:a,name:"error"}),warning:m({color:p,name:"warning"}),info:m({color:c,name:"info"}),success:m({color:d,name:"success"}),grey:RV,contrastThreshold:n,getContrastText:h,augmentColor:m,tonalOffset:r},g[t]),o)}const FG=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function LG(e){return Math.round(e*1e5)/1e5}const N_={textTransform:"uppercase"},B_='"Roboto", "Helvetica", "Arial", sans-serif';function AG(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=B_,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:p,pxToRem:h}=n,m=ne(n,FG),g=o/14,y=h||(w=>`${w/d*g}rem`),v=(w,C,x,P,_)=>S({fontFamily:r,fontWeight:w,fontSize:y(C),lineHeight:x},r===B_?{letterSpacing:`${LG(P/C)}em`}:{},_,p),E={h1:v(i,96,1.167,-1.5),h2:v(i,60,1.2,-.5),h3:v(s,48,1.167,0),h4:v(s,34,1.235,.25),h5:v(s,24,1.334,0),h6:v(a,20,1.6,.15),subtitle1:v(s,16,1.75,.15),subtitle2:v(a,14,1.57,.1),body1:v(s,16,1.5,.15),body2:v(s,14,1.43,.15),button:v(a,14,1.75,.4,N_),caption:v(s,12,1.66,.4),overline:v(s,12,2.66,1,N_),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ui(S({htmlFontSize:d,pxToRem:y,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:c},E),m,{clone:!1})}const DG=.2,NG=.14,BG=.12;function Rn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${DG})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${NG})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${BG})`].join(",")}const zG=["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)],jG=zG,HG=["duration","easing","delay"],VG={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)"},qF={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function z_(e){return`${Math.round(e)}ms`}function UG(e){if(!e)return 0;const t=e/36;return Math.round((4+15*Yi(t,.25)+t/5)*10)}function WG(e){const t=S({},VG,e.easing),n=S({},qF,e.duration);return S({getAutoHeightDuration:UG,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:c=0}=i;return ne(i,HG),(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof s=="string"?s:z_(s)} ${a} ${typeof c=="string"?c:z_(c)}`).join(",")}},e,{easing:t,duration:n})}const GG={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},KG=GG,qG=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Tx(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=ne(e,qG);if(e.vars)throw new Error(Kl(18));const a=OG(r),c=$x(e);let d=ui(c,{mixins:PG(c.breakpoints,n),palette:a,shadows:jG.slice(),typography:AG(a,i),transitions:WG(o),zIndex:S({},KG)});return d=ui(d,s),d=t.reduce((p,h)=>ui(p,h),d),d.unstable_sxConfig=S({},Wv,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(h){return Gv({sx:h,theme:this})},d}function YG(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function QG(e){return parseFloat(e)}const XG=Tx(),Yv=XG;function lr(){const e=_p(Yv);return e[Ha]||e}function nt({props:e,name:t}){return mG({props:e,name:t,defaultTheme:Yv,themeId:Ha})}const Ho=e=>Sf(e)&&e!=="classes",JG=Sf,ZG=UF({themeId:Ha,defaultTheme:Yv,rootShouldForwardProp:Ho}),oe=ZG,eK=["theme"];function tK(e){let{theme:t}=e,n=ne(e,eK);const r=t[Ha];return T.jsx(EG,S({},n,{themeId:r?Ha:void 0,theme:r||t}))}const nK=e=>{let t;return e<1?t=5.11916*Yi(e,2):t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},j_=nK;function Ga(e){return typeof e=="string"}function sf(e,t,n){return e===void 0||Ga(e)?t:S({},t,{ownerState:S({},t.ownerState,n)})}const rK={disableDefaultClasses:!1},oK=u.createContext(rK);function YF(e){const{disableDefaultClasses:t}=u.useContext(oK);return n=>t?"":e(n)}function iK(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 xw(e,t){return typeof e=="function"?e(t):e}function H_(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 sK(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const g=he(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),y=S({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=S({},n,o,r);return g.length>0&&(v.className=g),Object.keys(y).length>0&&(v.style=y),{props:v,internalRef:void 0}}const s=iK(S({},o,r)),a=H_(r),c=H_(o),d=t(s),p=he(d==null?void 0:d.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),h=S({},d==null?void 0:d.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=S({},d,n,c,a);return p.length>0&&(m.className=p),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:d.ref}}const lK=["elementType","externalSlotProps","ownerState"];function qs(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=ne(e,lK),s=xw(r,o),{props:a,internalRef:c}=sK(S({},i,{externalSlotProps:s})),d=Vt(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return sf(n,S({},a,{ref:d}),o)}function aK(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=mx({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!o&&(s=!0);const{badgeContent:a,max:c=r}=s?i:e,d=a&&Number(a)>c?`${c}+`:a;return{badgeContent:a,invisible:s,max:c,displayValue:d}}function V_(e){return e.substring(2).toLowerCase()}function cK(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function QF(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,s=u.useRef(!1),a=u.useRef(null),c=u.useRef(!1),d=u.useRef(!1);u.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const p=Vt(t.ref,a),h=Pn(y=>{const v=d.current;d.current=!1;const E=vn(a.current);if(!c.current||!a.current||"clientX"in y&&cK(y,E))return;if(s.current){s.current=!1;return}let w;y.composedPath?w=y.composedPath().indexOf(a.current)>-1:w=!E.documentElement.contains(y.target)||a.current.contains(y.target),!w&&(n||!v)&&o(y)}),m=y=>v=>{d.current=!0;const E=t.props[y];E&&E(v)},g={ref:p};return i!==!1&&(g[i]=m(i)),u.useEffect(()=>{if(i!==!1){const y=V_(i),v=vn(a.current),E=()=>{s.current=!0};return v.addEventListener(y,h),v.addEventListener("touchmove",E),()=>{v.removeEventListener(y,h),v.removeEventListener("touchmove",E)}}},[h,i]),r!==!1&&(g[r]=m(r)),u.useEffect(()=>{if(r!==!1){const y=V_(r),v=vn(a.current);return v.addEventListener(y,h),()=>{v.removeEventListener(y,h)}}},[h,r]),T.jsx(u.Fragment,{children:u.cloneElement(t,g)})}const uK=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function dK(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 fK(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 pK(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||fK(e))}function hK(e){const t=[],n=[];return Array.from(e.querySelectorAll(uK)).forEach((r,o)=>{const i=dK(r);i===-1||!pK(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function mK(){return!0}function XF(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=hK,isEnabled:s=mK,open:a}=e,c=u.useRef(!1),d=u.useRef(null),p=u.useRef(null),h=u.useRef(null),m=u.useRef(null),g=u.useRef(!1),y=u.useRef(null),v=Vt(t.ref,y),E=u.useRef(null);u.useEffect(()=>{!a||!y.current||(g.current=!n)},[n,a]),u.useEffect(()=>{if(!a||!y.current)return;const x=vn(y.current);return y.current.contains(x.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),g.current&&y.current.focus()),()=>{o||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[a]),u.useEffect(()=>{if(!a||!y.current)return;const x=vn(y.current),P=I=>{const{current:R}=y;if(R!==null){if(!x.hasFocus()||r||!s()||c.current){c.current=!1;return}if(!R.contains(x.activeElement)){if(I&&m.current!==I.target||x.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!g.current)return;let O=[];if((x.activeElement===d.current||x.activeElement===p.current)&&(O=i(y.current)),O.length>0){var F,A;const N=!!((F=E.current)!=null&&F.shiftKey&&((A=E.current)==null?void 0:A.key)==="Tab"),B=O[0],M=O[O.length-1];typeof B!="string"&&typeof M!="string"&&(N?M.focus():B.focus())}else R.focus()}}},_=I=>{E.current=I,!(r||!s()||I.key!=="Tab")&&x.activeElement===y.current&&I.shiftKey&&(c.current=!0,p.current&&p.current.focus())};x.addEventListener("focusin",P),x.addEventListener("keydown",_,!0);const k=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&P(null)},50);return()=>{clearInterval(k),x.removeEventListener("focusin",P),x.removeEventListener("keydown",_,!0)}},[n,r,o,s,a,i]);const w=x=>{h.current===null&&(h.current=x.relatedTarget),g.current=!0,m.current=x.target;const P=t.props.onFocus;P&&P(x)},C=x=>{h.current===null&&(h.current=x.relatedTarget),g.current=!0};return T.jsxs(u.Fragment,{children:[T.jsx("div",{tabIndex:a?0:-1,onFocus:C,ref:d,"data-testid":"sentinelStart"}),u.cloneElement(t,{ref:v,onFocus:w}),T.jsx("div",{tabIndex:a?0:-1,onFocus:C,ref:p,"data-testid":"sentinelEnd"})]})}var fo="top",vi="bottom",yi="right",po="left",Ox="auto",$p=[fo,vi,yi,po],Ou="start",ep="end",gK="clippingParents",JF="viewport",Ud="popper",vK="reference",U_=$p.reduce(function(e,t){return e.concat([t+"-"+Ou,t+"-"+ep])},[]),ZF=[].concat($p,[Ox]).reduce(function(e,t){return e.concat([t,t+"-"+Ou,t+"-"+ep])},[]),yK="beforeRead",bK="read",wK="afterRead",CK="beforeMain",xK="main",SK="afterMain",EK="beforeWrite",PK="write",IK="afterWrite",kK=[yK,bK,wK,CK,xK,SK,EK,PK,IK];function ms(e){return e?(e.nodeName||"").toLowerCase():null}function Lo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ka(e){var t=Lo(e).Element;return e instanceof t||e instanceof Element}function di(e){var t=Lo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Fx(e){if(typeof ShadowRoot=="undefined")return!1;var t=Lo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function _K(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!di(i)||!ms(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function $K(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(c,d){return c[d]="",c},{});!di(o)||!ms(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const RK={name:"applyStyles",enabled:!0,phase:"write",fn:_K,effect:$K,requires:["computeStyles"]};function cs(e){return e.split("-")[0]}var Ma=Math.max,xg=Math.min,Fu=Math.round;function Sw(){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 eL(){return!/^((?!chrome|android).)*safari/i.test(Sw())}function Lu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&di(e)&&(o=e.offsetWidth>0&&Fu(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Fu(r.height)/e.offsetHeight||1);var s=Ka(e)?Lo(e):window,a=s.visualViewport,c=!eL()&&n,d=(r.left+(c&&a?a.offsetLeft:0))/o,p=(r.top+(c&&a?a.offsetTop:0))/i,h=r.width/o,m=r.height/i;return{width:h,height:m,top:p,right:d+h,bottom:p+m,left:d,x:d,y:p}}function Lx(e){var t=Lu(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 tL(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Fx(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ys(e){return Lo(e).getComputedStyle(e)}function MK(e){return["table","td","th"].indexOf(ms(e))>=0}function oa(e){return((Ka(e)?e.ownerDocument:e.document)||window.document).documentElement}function Qv(e){return ms(e)==="html"?e:e.assignedSlot||e.parentNode||(Fx(e)?e.host:null)||oa(e)}function W_(e){return!di(e)||Ys(e).position==="fixed"?null:e.offsetParent}function TK(e){var t=/firefox/i.test(Sw()),n=/Trident/i.test(Sw());if(n&&di(e)){var r=Ys(e);if(r.position==="fixed")return null}var o=Qv(e);for(Fx(o)&&(o=o.host);di(o)&&["html","body"].indexOf(ms(o))<0;){var i=Ys(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Rp(e){for(var t=Lo(e),n=W_(e);n&&MK(n)&&Ys(n).position==="static";)n=W_(n);return n&&(ms(n)==="html"||ms(n)==="body"&&Ys(n).position==="static")?t:n||TK(e)||t}function Ax(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ef(e,t,n){return Ma(e,xg(t,n))}function OK(e,t,n){var r=Ef(e,t,n);return r>n?n:r}function nL(){return{top:0,right:0,bottom:0,left:0}}function rL(e){return Object.assign({},nL(),e)}function oL(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var FK=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,rL(typeof t!="number"?t:oL(t,$p))};function LK(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=cs(n.placement),c=Ax(a),d=[po,yi].indexOf(a)>=0,p=d?"height":"width";if(!(!i||!s)){var h=FK(o.padding,n),m=Lx(i),g=c==="y"?fo:po,y=c==="y"?vi:yi,v=n.rects.reference[p]+n.rects.reference[c]-s[c]-n.rects.popper[p],E=s[c]-n.rects.reference[c],w=Rp(i),C=w?c==="y"?w.clientHeight||0:w.clientWidth||0:0,x=v/2-E/2,P=h[g],_=C-m[p]-h[y],k=C/2-m[p]/2+x,I=Ef(P,k,_),R=c;n.modifiersData[r]=(t={},t[R]=I,t.centerOffset=I-k,t)}}function AK(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)||tL(t.elements.popper,o)&&(t.elements.arrow=o))}const DK={name:"arrow",enabled:!0,phase:"main",fn:LK,effect:AK,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Au(e){return e.split("-")[1]}var NK={top:"auto",right:"auto",bottom:"auto",left:"auto"};function BK(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Fu(n*o)/o||0,y:Fu(r*o)/o||0}}function G_(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=e.isFixed,m=s.x,g=m===void 0?0:m,y=s.y,v=y===void 0?0:y,E=typeof p=="function"?p({x:g,y:v}):{x:g,y:v};g=E.x,v=E.y;var w=s.hasOwnProperty("x"),C=s.hasOwnProperty("y"),x=po,P=fo,_=window;if(d){var k=Rp(n),I="clientHeight",R="clientWidth";if(k===Lo(n)&&(k=oa(n),Ys(k).position!=="static"&&a==="absolute"&&(I="scrollHeight",R="scrollWidth")),k=k,o===fo||(o===po||o===yi)&&i===ep){P=vi;var F=h&&k===_&&_.visualViewport?_.visualViewport.height:k[I];v-=F-r.height,v*=c?1:-1}if(o===po||(o===fo||o===vi)&&i===ep){x=yi;var A=h&&k===_&&_.visualViewport?_.visualViewport.width:k[R];g-=A-r.width,g*=c?1:-1}}var O=Object.assign({position:a},d&&NK),N=p===!0?BK({x:g,y:v},Lo(n)):{x:g,y:v};if(g=N.x,v=N.y,c){var B;return Object.assign({},O,(B={},B[P]=C?"0":"",B[x]=w?"0":"",B.transform=(_.devicePixelRatio||1)<=1?"translate("+g+"px, "+v+"px)":"translate3d("+g+"px, "+v+"px, 0)",B))}return Object.assign({},O,(t={},t[P]=C?v+"px":"",t[x]=w?g+"px":"",t.transform="",t))}function zK(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,c=a===void 0?!0:a,d={placement:cs(t.placement),variation:Au(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,G_(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,G_(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const jK={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:zK,data:{}};var em={passive:!0};function HK(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,c=Lo(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(p){p.addEventListener("scroll",n.update,em)}),a&&c.addEventListener("resize",n.update,em),function(){i&&d.forEach(function(p){p.removeEventListener("scroll",n.update,em)}),a&&c.removeEventListener("resize",n.update,em)}}const VK={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:HK,data:{}};var UK={left:"right",right:"left",bottom:"top",top:"bottom"};function Fm(e){return e.replace(/left|right|bottom|top/g,function(t){return UK[t]})}var WK={start:"end",end:"start"};function K_(e){return e.replace(/start|end/g,function(t){return WK[t]})}function Dx(e){var t=Lo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Nx(e){return Lu(oa(e)).left+Dx(e).scrollLeft}function GK(e,t){var n=Lo(e),r=oa(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;var d=eL();(d||!d&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a+Nx(e),y:c}}function KK(e){var t,n=oa(e),r=Dx(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Ma(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ma(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Nx(e),c=-r.scrollTop;return Ys(o||n).direction==="rtl"&&(a+=Ma(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:c}}function Bx(e){var t=Ys(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function iL(e){return["html","body","#document"].indexOf(ms(e))>=0?e.ownerDocument.body:di(e)&&Bx(e)?e:iL(Qv(e))}function Pf(e,t){var n;t===void 0&&(t=[]);var r=iL(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Lo(r),s=o?[i].concat(i.visualViewport||[],Bx(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Pf(Qv(s)))}function Ew(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qK(e,t){var n=Lu(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 q_(e,t,n){return t===JF?Ew(GK(e,n)):Ka(t)?qK(t,n):Ew(KK(oa(e)))}function YK(e){var t=Pf(Qv(e)),n=["absolute","fixed"].indexOf(Ys(e).position)>=0,r=n&&di(e)?Rp(e):e;return Ka(r)?t.filter(function(o){return Ka(o)&&tL(o,r)&&ms(o)!=="body"}):[]}function QK(e,t,n,r){var o=t==="clippingParents"?YK(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(c,d){var p=q_(e,d,r);return c.top=Ma(p.top,c.top),c.right=xg(p.right,c.right),c.bottom=xg(p.bottom,c.bottom),c.left=Ma(p.left,c.left),c},q_(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function sL(e){var t=e.reference,n=e.element,r=e.placement,o=r?cs(r):null,i=r?Au(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case fo:c={x:s,y:t.y-n.height};break;case vi:c={x:s,y:t.y+t.height};break;case yi:c={x:t.x+t.width,y:a};break;case po:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var d=o?Ax(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(i){case Ou:c[d]=c[d]-(t[p]/2-n[p]/2);break;case ep:c[d]=c[d]+(t[p]/2-n[p]/2);break}}return c}function tp(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,c=a===void 0?gK:a,d=n.rootBoundary,p=d===void 0?JF:d,h=n.elementContext,m=h===void 0?Ud:h,g=n.altBoundary,y=g===void 0?!1:g,v=n.padding,E=v===void 0?0:v,w=rL(typeof E!="number"?E:oL(E,$p)),C=m===Ud?vK:Ud,x=e.rects.popper,P=e.elements[y?C:m],_=QK(Ka(P)?P:P.contextElement||oa(e.elements.popper),c,p,s),k=Lu(e.elements.reference),I=sL({reference:k,element:x,strategy:"absolute",placement:o}),R=Ew(Object.assign({},x,I)),F=m===Ud?R:k,A={top:_.top-F.top+w.top,bottom:F.bottom-_.bottom+w.bottom,left:_.left-F.left+w.left,right:F.right-_.right+w.right},O=e.modifiersData.offset;if(m===Ud&&O){var N=O[o];Object.keys(A).forEach(function(B){var M=[yi,vi].indexOf(B)>=0?1:-1,L=[fo,vi].indexOf(B)>=0?"y":"x";A[B]+=N[L]*M})}return A}function XK(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?ZF:c,p=Au(r),h=p?a?U_:U_.filter(function(y){return Au(y)===p}):$p,m=h.filter(function(y){return d.indexOf(y)>=0});m.length===0&&(m=h);var g=m.reduce(function(y,v){return y[v]=tp(e,{placement:v,boundary:o,rootBoundary:i,padding:s})[cs(v)],y},{});return Object.keys(g).sort(function(y,v){return g[y]-g[v]})}function JK(e){if(cs(e)===Ox)return[];var t=Fm(e);return[K_(e),t,K_(t)]}function ZK(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,c=n.fallbackPlacements,d=n.padding,p=n.boundary,h=n.rootBoundary,m=n.altBoundary,g=n.flipVariations,y=g===void 0?!0:g,v=n.allowedAutoPlacements,E=t.options.placement,w=cs(E),C=w===E,x=c||(C||!y?[Fm(E)]:JK(E)),P=[E].concat(x).reduce(function(re,de){return re.concat(cs(de)===Ox?XK(t,{placement:de,boundary:p,rootBoundary:h,padding:d,flipVariations:y,allowedAutoPlacements:v}):de)},[]),_=t.rects.reference,k=t.rects.popper,I=new Map,R=!0,F=P[0],A=0;A<P.length;A++){var O=P[A],N=cs(O),B=Au(O)===Ou,M=[fo,vi].indexOf(N)>=0,L=M?"width":"height",z=tp(t,{placement:O,boundary:p,rootBoundary:h,altBoundary:m,padding:d}),V=M?B?yi:po:B?vi:fo;_[L]>k[L]&&(V=Fm(V));var D=Fm(V),H=[];if(i&&H.push(z[N]<=0),a&&H.push(z[V]<=0,z[D]<=0),H.every(function(re){return re})){F=O,R=!1;break}I.set(O,H)}if(R)for(var W=y?3:1,K=function(de){var se=P.find(function(le){var ke=I.get(le);if(ke)return ke.slice(0,de).every(function(ve){return ve})});if(se)return F=se,"break"},Y=W;Y>0;Y--){var ie=K(Y);if(ie==="break")break}t.placement!==F&&(t.modifiersData[r]._skip=!0,t.placement=F,t.reset=!0)}}const eq={name:"flip",enabled:!0,phase:"main",fn:ZK,requiresIfExists:["offset"],data:{_skip:!1}};function Y_(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 Q_(e){return[fo,yi,vi,po].some(function(t){return e[t]>=0})}function tq(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=tp(t,{elementContext:"reference"}),a=tp(t,{altBoundary:!0}),c=Y_(s,r),d=Y_(a,o,i),p=Q_(c),h=Q_(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const nq={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:tq};function rq(e,t,n){var r=cs(e),o=[po,fo].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[po,yi].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function oq(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=ZF.reduce(function(p,h){return p[h]=rq(h,t.rects,i),p},{}),a=s[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=s}const iq={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:oq};function sq(e){var t=e.state,n=e.name;t.modifiersData[n]=sL({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const lq={name:"popperOffsets",enabled:!0,phase:"read",fn:sq,data:{}};function aq(e){return e==="x"?"y":"x"}function cq(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.padding,m=n.tether,g=m===void 0?!0:m,y=n.tetherOffset,v=y===void 0?0:y,E=tp(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:p}),w=cs(t.placement),C=Au(t.placement),x=!C,P=Ax(w),_=aq(P),k=t.modifiersData.popperOffsets,I=t.rects.reference,R=t.rects.popper,F=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,A=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(k){if(i){var B,M=P==="y"?fo:po,L=P==="y"?vi:yi,z=P==="y"?"height":"width",V=k[P],D=V+E[M],H=V-E[L],W=g?-R[z]/2:0,K=C===Ou?I[z]:R[z],Y=C===Ou?-R[z]:-I[z],ie=t.elements.arrow,re=g&&ie?Lx(ie):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:nL(),se=de[M],le=de[L],ke=Ef(0,I[z],re[z]),ve=x?I[z]/2-W-ke-se-A.mainAxis:K-ke-se-A.mainAxis,Pe=x?-I[z]/2+W+ke+le+A.mainAxis:Y+ke+le+A.mainAxis,ee=t.elements.arrow&&Rp(t.elements.arrow),_e=ee?P==="y"?ee.clientTop||0:ee.clientLeft||0:0,Re=(B=O==null?void 0:O[P])!=null?B:0,Ee=V+ve-Re-_e,pe=V+Pe-Re,be=Ef(g?xg(D,Ee):D,V,g?Ma(H,pe):H);k[P]=be,N[P]=be-V}if(a){var te,Oe=P==="x"?fo:po,Ye=P==="x"?vi:yi,Ke=k[_],Ue=_==="y"?"height":"width",Be=Ke+E[Oe],ft=Ke-E[Ye],yt=[fo,po].indexOf(w)!==-1,ut=(te=O==null?void 0:O[_])!=null?te:0,It=yt?Be:Ke-I[Ue]-R[Ue]-ut+A.altAxis,bt=yt?Ke+I[Ue]+R[Ue]-ut-A.altAxis:ft,De=g&&yt?OK(It,Ke,bt):Ef(g?It:Be,Ke,g?bt:ft);k[_]=De,N[_]=De-Ke}t.modifiersData[r]=N}}const uq={name:"preventOverflow",enabled:!0,phase:"main",fn:cq,requiresIfExists:["offset"]};function dq(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function fq(e){return e===Lo(e)||!di(e)?Dx(e):dq(e)}function pq(e){var t=e.getBoundingClientRect(),n=Fu(t.width)/e.offsetWidth||1,r=Fu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function hq(e,t,n){n===void 0&&(n=!1);var r=di(t),o=di(t)&&pq(t),i=oa(t),s=Lu(e,o,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((ms(t)!=="body"||Bx(i))&&(a=fq(t)),di(t)?(c=Lu(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Nx(i))),{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function mq(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function gq(e){var t=mq(e);return kK.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function vq(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function yq(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 X_={placement:"bottom",modifiers:[],strategy:"absolute"};function J_(){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 bq(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?X_:o;return function(a,c,d){d===void 0&&(d=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},X_,i),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],m=!1,g={state:p,setOptions:function(w){var C=typeof w=="function"?w(p.options):w;v(),p.options=Object.assign({},i,p.options,C),p.scrollParents={reference:Ka(a)?Pf(a):a.contextElement?Pf(a.contextElement):[],popper:Pf(c)};var x=gq(yq([].concat(r,p.options.modifiers)));return p.orderedModifiers=x.filter(function(P){return P.enabled}),y(),g.update()},forceUpdate:function(){if(!m){var w=p.elements,C=w.reference,x=w.popper;if(J_(C,x)){p.rects={reference:hq(C,Rp(x),p.options.strategy==="fixed"),popper:Lx(x)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(A){return p.modifiersData[A.name]=Object.assign({},A.data)});for(var P=0;P<p.orderedModifiers.length;P++){if(p.reset===!0){p.reset=!1,P=-1;continue}var _=p.orderedModifiers[P],k=_.fn,I=_.options,R=I===void 0?{}:I,F=_.name;typeof k=="function"&&(p=k({state:p,options:R,name:F,instance:g})||p)}}}},update:vq(function(){return new Promise(function(E){g.forceUpdate(),E(p)})}),destroy:function(){v(),m=!0}};if(!J_(a,c))return g;g.setOptions(d).then(function(E){!m&&d.onFirstUpdate&&d.onFirstUpdate(E)});function y(){p.orderedModifiers.forEach(function(E){var w=E.name,C=E.options,x=C===void 0?{}:C,P=E.effect;if(typeof P=="function"){var _=P({state:p,name:w,instance:g,options:x}),k=function(){};h.push(_||k)}})}function v(){h.forEach(function(E){return E()}),h=[]}return g}}var wq=[VK,lq,jK,RK,iq,eq,uq,DK,nq],Cq=bq({defaultModifiers:wq});function xq(e){return typeof e=="function"?e():e}const Sq=u.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=u.useState(null),c=Vt(u.isValidElement(r)?r.ref:null,n);if(an(()=>{i||a(xq(o)||document.body)},[o,i]),an(()=>{if(s&&!i)return Qf(n,s),()=>{Qf(n,null)}},[n,s,i]),i){if(u.isValidElement(r)){const d={ref:c};return u.cloneElement(r,d)}return T.jsx(u.Fragment,{children:r})}return T.jsx(u.Fragment,{children:s&&Xu.createPortal(r,s)})}),lL=Sq;function Eq(e){return Je("MuiPopper",e)}Xe("MuiPopper",["root"]);const Pq=["anchorEl","children","component","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Iq=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function kq(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 Pw(e){return typeof e=="function"?e():e}function _q(e){return e.nodeType!==void 0}const $q=()=>Me({root:["root"]},YF(Eq)),Rq={},Mq=u.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,component:s,direction:a,disablePortal:c,modifiers:d,open:p,placement:h,popperOptions:m,popperRef:g,slotProps:y={},slots:v={},TransitionProps:E}=t,w=ne(t,Pq),C=u.useRef(null),x=Vt(C,n),P=u.useRef(null),_=Vt(P,g),k=u.useRef(_);an(()=>{k.current=_},[_]),u.useImperativeHandle(g,()=>P.current,[]);const I=kq(h,a),[R,F]=u.useState(I),[A,O]=u.useState(Pw(o));u.useEffect(()=>{P.current&&P.current.forceUpdate()}),u.useEffect(()=>{o&&O(Pw(o))},[o]),an(()=>{if(!A||!p)return;const z=H=>{F(H.placement)};let V=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:H})=>{z(H)}}];d!=null&&(V=V.concat(d)),m&&m.modifiers!=null&&(V=V.concat(m.modifiers));const D=Cq(A,C.current,S({placement:I},m,{modifiers:V}));return k.current(D),()=>{D.destroy(),k.current(null)}},[A,c,d,p,m,I]);const N={placement:R};E!==null&&(N.TransitionProps=E);const B=$q(),M=(r=s!=null?s:v.root)!=null?r:"div",L=qs({elementType:M,externalSlotProps:y.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:B.root});return T.jsx(M,S({},L,{children:typeof i=="function"?i(N):i}))}),Tq=u.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:c=!1,modifiers:d,open:p,placement:h="bottom",popperOptions:m=Rq,popperRef:g,style:y,transition:v=!1,slotProps:E={},slots:w={}}=t,C=ne(t,Iq),[x,P]=u.useState(!0),_=()=>{P(!1)},k=()=>{P(!0)};if(!c&&!p&&(!v||x))return null;let I;if(i)I=i;else if(r){const A=Pw(r);I=A&&_q(A)?vn(A).body:vn(null).body}const R=!p&&c&&(!v||x)?"none":void 0,F=v?{in:p,onEnter:_,onExited:k}:void 0;return T.jsx(lL,{disablePortal:a,container:I,children:T.jsx(Mq,S({anchorEl:r,direction:s,disablePortal:a,modifiers:d,ref:n,open:v?!x:p,placement:h,popperOptions:m,popperRef:g,slotProps:E,slots:w},C,{style:S({position:"fixed",top:0,left:0,display:R},y),TransitionProps:F,children:o}))})}),Oq=Tq;function Fq(e){const t=vn(e);return t.body===e?Fo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function If(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Z_(e){return parseInt(Fo(e).getComputedStyle(e).paddingRight,10)||0}function Lq(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 e$(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,c=!Lq(s);a&&c&&If(s,o)})}function L1(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function Aq(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Fq(r)){const s=yF(vn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Z_(r)+s}px`;const a=vn(r).querySelectorAll(".mui-fixed");[].forEach.call(a,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${Z_(c)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=vn(r).body;else{const s=r.parentElement,a=Fo(r);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function Dq(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Nq{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&&If(t.modalRef,!1);const o=Dq(n);e$(n,t.mount,t.modalRef,o,!0);const i=L1(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=L1(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=Aq(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=L1(this.containers,s=>s.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&If(t.modalRef,n),e$(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&If(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Bq(e){return Je("MuiModal",e)}Xe("MuiModal",["root","hidden","backdrop"]);const zq=["children","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],jq=e=>{const{open:t,exited:n}=e;return Me({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},YF(Bq))};function Hq(e){return typeof e=="function"?e():e}function Vq(e){return e?e.props.hasOwnProperty("in"):!1}const Uq=new Nq,Wq=u.forwardRef(function(t,n){var r,o;const{children:i,closeAfterTransition:s=!1,component:a,container:c,disableAutoFocus:d=!1,disableEnforceFocus:p=!1,disableEscapeKeyDown:h=!1,disablePortal:m=!1,disableRestoreFocus:g=!1,disableScrollLock:y=!1,hideBackdrop:v=!1,keepMounted:E=!1,manager:w=Uq,onBackdropClick:C,onClose:x,onKeyDown:P,open:_,onTransitionEnter:k,onTransitionExited:I,slotProps:R={},slots:F={}}=t,A=ne(t,zq),[O,N]=u.useState(!_),B=u.useRef({}),M=u.useRef(null),L=u.useRef(null),z=Vt(L,n),V=Vq(i),D=(r=t["aria-hidden"])!=null?r:!0,H=()=>vn(M.current),W=()=>(B.current.modalRef=L.current,B.current.mountNode=M.current,B.current),K=()=>{w.mount(W(),{disableScrollLock:y}),L.current&&(L.current.scrollTop=0)},Y=Pn(()=>{const te=Hq(c)||H().body;w.add(W(),te),L.current&&K()}),ie=u.useCallback(()=>w.isTopModal(W()),[w]),re=Pn(te=>{M.current=te,!(!te||!L.current)&&(_&&ie()?K():If(L.current,D))}),de=u.useCallback(()=>{w.remove(W(),D)},[w,D]);u.useEffect(()=>()=>{de()},[de]),u.useEffect(()=>{_?Y():(!V||!s)&&de()},[_,de,V,s,Y]);const se=S({},t,{closeAfterTransition:s,disableAutoFocus:d,disableEnforceFocus:p,disableEscapeKeyDown:h,disablePortal:m,disableRestoreFocus:g,disableScrollLock:y,exited:O,hideBackdrop:v,keepMounted:E}),le=jq(se),ke=()=>{N(!1),k&&k()},ve=()=>{N(!0),I&&I(),s&&de()},Pe=te=>{te.target===te.currentTarget&&(C&&C(te),x&&x(te,"backdropClick"))},ee=te=>{P&&P(te),!(te.key!=="Escape"||!ie())&&(h||(te.stopPropagation(),x&&x(te,"escapeKeyDown")))},_e={};i.props.tabIndex===void 0&&(_e.tabIndex="-1"),V&&(_e.onEnter=vw(ke,i.props.onEnter),_e.onExited=vw(ve,i.props.onExited));const Re=(o=a!=null?a:F.root)!=null?o:"div",Ee=qs({elementType:Re,externalSlotProps:R.root,externalForwardedProps:A,additionalProps:{ref:z,role:"presentation",onKeyDown:ee},className:le.root,ownerState:se}),pe=F.backdrop,be=qs({elementType:pe,externalSlotProps:R.backdrop,additionalProps:{"aria-hidden":!0,onClick:Pe,open:_},className:le.backdrop,ownerState:se});return!E&&!_&&(!V||O)?null:T.jsx(lL,{ref:re,container:c,disablePortal:m,children:T.jsxs(Re,S({},Ee,{children:[!v&&pe?T.jsx(pe,S({},be)):null,T.jsx(XF,{disableEnforceFocus:p,disableAutoFocus:d,disableRestoreFocus:g,isEnabled:ie,open:_,children:u.cloneElement(i,_e)})]}))})}),Gq=Wq,Kq=["onChange","maxRows","minRows","style","value"];function tm(e){return parseInt(e,10)||0}const qq={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function t$(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const Yq=u.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a}=t,c=ne(t,Kq),{current:d}=u.useRef(a!=null),p=u.useRef(null),h=Vt(n,p),m=u.useRef(null),g=u.useRef(0),[y,v]=u.useState({outerHeightStyle:0}),E=u.useCallback(()=>{const _=p.current,I=Fo(_).getComputedStyle(_);if(I.width==="0px")return{outerHeightStyle:0};const R=m.current;R.style.width=I.width,R.value=_.value||t.placeholder||"x",R.value.slice(-1)===`
89
+ `&&(R.value+=" ");const F=I.boxSizing,A=tm(I.paddingBottom)+tm(I.paddingTop),O=tm(I.borderBottomWidth)+tm(I.borderTopWidth),N=R.scrollHeight;R.value="x";const B=R.scrollHeight;let M=N;i&&(M=Math.max(Number(i)*B,M)),o&&(M=Math.min(Number(o)*B,M)),M=Math.max(M,B);const L=M+(F==="border-box"?A+O:0),z=Math.abs(M-N)<=1;return{outerHeightStyle:L,overflow:z}},[o,i,t.placeholder]),w=(_,k)=>{const{outerHeightStyle:I,overflow:R}=k;return g.current<20&&(I>0&&Math.abs((_.outerHeightStyle||0)-I)>1||_.overflow!==R)?(g.current+=1,{overflow:R,outerHeightStyle:I}):_},C=u.useCallback(()=>{const _=E();t$(_)||v(k=>w(k,_))},[E]),x=()=>{const _=E();t$(_)||Xu.flushSync(()=>{v(k=>w(k,_))})};u.useEffect(()=>{const _=Ks(()=>{g.current=0,p.current&&x()});let k;const I=p.current,R=Fo(I);return R.addEventListener("resize",_),typeof ResizeObserver!="undefined"&&(k=new ResizeObserver(_),k.observe(I)),()=>{_.clear(),R.removeEventListener("resize",_),k&&k.disconnect()}}),an(()=>{C()}),u.useEffect(()=>{g.current=0},[a]);const P=_=>{g.current=0,d||C(),r&&r(_)};return T.jsxs(u.Fragment,{children:[T.jsx("textarea",S({value:a,onChange:P,ref:h,rows:i,style:S({height:y.outerHeightStyle,overflow:y.overflow?"hidden":void 0},s)},c)),T.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:S({},qq.shadow,s,{padding:0})})]})}),Qq=Yq;function n$(e){return typeof e.normalize!="undefined"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function aL(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:s=!1}=e;return(a,{inputValue:c,getOptionLabel:d})=>{let p=s?c.trim():c;n&&(p=p.toLowerCase()),t&&(p=n$(p));const h=p?a.filter(m=>{let g=(i||d)(m);return n&&(g=g.toLowerCase()),t&&(g=n$(g)),o==="start"?g.indexOf(p)===0:g.indexOf(p)>-1}):a;return typeof r=="number"?h.slice(0,r):h}}function A1(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const Xq=aL(),r$=5,Jq=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function Zq(e){const{unstable_isActiveElementInListbox:t=Jq,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:s=!1,clearOnBlur:a=!e.freeSolo,clearOnEscape:c=!1,componentName:d="useAutocomplete",defaultValue:p=e.multiple?[]:null,disableClearable:h=!1,disableCloseOnSelect:m=!1,disabled:g,disabledItemsFocusable:y=!1,disableListWrap:v=!1,filterOptions:E=Xq,filterSelectedOptions:w=!1,freeSolo:C=!1,getOptionDisabled:x,getOptionLabel:P=we=>{var me;return(me=we.label)!=null?me:we},groupBy:_,handleHomeEndKeys:k=!e.freeSolo,id:I,includeInputInList:R=!1,inputValue:F,isOptionEqualToValue:A=(we,me)=>we===me,multiple:O=!1,onChange:N,onClose:B,onHighlightChange:M,onInputChange:L,onOpen:z,open:V,openOnFocus:D=!1,options:H,readOnly:W=!1,selectOnFocus:K=!e.freeSolo,value:Y}=e,ie=sn(I);let re=P;re=we=>{const me=P(we);return typeof me!="string"?String(me):me};const de=u.useRef(!1),se=u.useRef(!0),le=u.useRef(null),ke=u.useRef(null),[ve,Pe]=u.useState(null),[ee,_e]=u.useState(-1),Re=o?0:-1,Ee=u.useRef(Re),[pe,be]=ls({controlled:Y,default:p,name:d}),[te,Oe]=ls({controlled:F,default:"",name:d,state:"inputValue"}),[Ye,Ke]=u.useState(!1),Ue=u.useCallback((we,me)=>{if(!(O?pe.length<me.length:me!==null)&&!a)return;let ht;if(O)ht="";else if(me==null)ht="";else{const Kt=re(me);ht=typeof Kt=="string"?Kt:""}te!==ht&&(Oe(ht),L&&L(we,ht,"reset"))},[re,te,O,L,Oe,a,pe]),[Be,ft]=ls({controlled:V,default:!1,name:d,state:"open"}),[yt,ut]=u.useState(!0),It=!O&&pe!=null&&te===re(pe),bt=Be&&!W,De=bt?E(H.filter(we=>!(w&&(O?pe:[pe]).some(me=>me!==null&&A(we,me)))),{inputValue:It&&yt?"":te,getOptionLabel:re}):[],Ae=mx({filteredOptions:De,value:pe});u.useEffect(()=>{const we=pe!==Ae.value;Ye&&!we||C&&!we||Ue(null,pe)},[pe,Ue,Ye,Ae.value,C]);const ze=Be&&De.length>0&&!W,Ze=Pn(we=>{we===-1?le.current.focus():ve.querySelector(`[data-tag-index="${we}"]`).focus()});u.useEffect(()=>{O&&ee>pe.length-1&&(_e(-1),Ze(-1))},[pe,O,ee,Ze]);function Ie(we,me){if(!ke.current||we===-1)return-1;let We=we;for(;;){if(me==="next"&&We===De.length||me==="previous"&&We===-1)return-1;const ht=ke.current.querySelector(`[data-option-index="${We}"]`),Kt=y?!1:!ht||ht.disabled||ht.getAttribute("aria-disabled")==="true";if(ht&&!ht.hasAttribute("tabindex")||Kt)We+=me==="next"?1:-1;else return We}}const Fe=Pn(({event:we,index:me,reason:We="auto"})=>{if(Ee.current=me,me===-1?le.current.removeAttribute("aria-activedescendant"):le.current.setAttribute("aria-activedescendant",`${ie}-option-${me}`),M&&M(we,me===-1?null:De[me],We),!ke.current)return;const ht=ke.current.querySelector(`[role="option"].${n}-focused`);ht&&(ht.classList.remove(`${n}-focused`),ht.classList.remove(`${n}-focusVisible`));const Kt=ke.current.parentElement.querySelector('[role="listbox"]');if(!Kt)return;if(me===-1){Kt.scrollTop=0;return}const Fn=ke.current.querySelector(`[data-option-index="${me}"]`);if(Fn&&(Fn.classList.add(`${n}-focused`),We==="keyboard"&&Fn.classList.add(`${n}-focusVisible`),Kt.scrollHeight>Kt.clientHeight&&We!=="mouse")){const Ln=Fn,St=Kt.clientHeight+Kt.scrollTop,ur=Ln.offsetTop+Ln.offsetHeight;ur>St?Kt.scrollTop=ur-Kt.clientHeight:Ln.offsetTop-Ln.offsetHeight*(_?1.3:0)<Kt.scrollTop&&(Kt.scrollTop=Ln.offsetTop-Ln.offsetHeight*(_?1.3:0))}}),Ve=Pn(({event:we,diff:me,direction:We="next",reason:ht="auto"})=>{if(!bt)return;const Fn=Ie((()=>{const Ln=De.length-1;if(me==="reset")return Re;if(me==="start")return 0;if(me==="end")return Ln;const St=Ee.current+me;return St<0?St===-1&&R?-1:v&&Ee.current!==-1||Math.abs(me)>1?0:Ln:St>Ln?St===Ln+1&&R?-1:v||Math.abs(me)>1?Ln:0:St})(),We);if(Fe({index:Fn,reason:ht,event:we}),r&&me!=="reset")if(Fn===-1)le.current.value=te;else{const Ln=re(De[Fn]);le.current.value=Ln,Ln.toLowerCase().indexOf(te.toLowerCase())===0&&te.length>0&&le.current.setSelectionRange(te.length,Ln.length)}}),it=()=>{const we=(me,We)=>{const ht=me?re(me):"",Kt=We?re(We):"";return ht===Kt};if(Ee.current!==-1&&Ae.filteredOptions&&Ae.filteredOptions.length!==De.length&&(O?pe.length===Ae.value.length&&Ae.value.every((me,We)=>re(pe[We])===re(me)):we(Ae.value,pe))){const me=Ae.filteredOptions[Ee.current];if(me&&De.some(ht=>re(ht)===re(me)))return!0}return!1},mt=u.useCallback(()=>{if(!bt||it())return;const we=O?pe[0]:pe;if(De.length===0||we==null){Ve({diff:"reset"});return}if(ke.current){if(we!=null){const me=De[Ee.current];if(O&&me&&A1(pe,ht=>A(me,ht))!==-1)return;const We=A1(De,ht=>A(ht,we));We===-1?Ve({diff:"reset"}):Fe({index:We});return}if(Ee.current>=De.length-1){Fe({index:De.length-1});return}Fe({index:Ee.current})}},[De.length,O?!1:pe,w,Ve,Fe,bt,te,O]),tn=Pn(we=>{Qf(ke,we),we&&mt()});u.useEffect(()=>{mt()},[mt]);const kn=we=>{Be||(ft(!0),ut(!0),z&&z(we))},On=(we,me)=>{Be&&(ft(!1),B&&B(we,me))},Jn=(we,me,We,ht)=>{if(O){if(pe.length===me.length&&pe.every((Kt,Fn)=>Kt===me[Fn]))return}else if(pe===me)return;N&&N(we,me,We,ht),be(me)},ar=u.useRef(!1),cr=(we,me,We="selectOption",ht="options")=>{let Kt=We,Fn=me;if(O){Fn=Array.isArray(pe)?pe.slice():[];const Ln=A1(Fn,St=>A(me,St));Ln===-1?Fn.push(me):ht!=="freeSolo"&&(Fn.splice(Ln,1),Kt="removeOption")}Ue(we,Fn),Jn(we,Fn,Kt,{option:me}),!m&&(!we||!we.ctrlKey&&!we.metaKey)&&On(we,Kt),(s===!0||s==="touch"&&ar.current||s==="mouse"&&!ar.current)&&le.current.blur()};function bn(we,me){if(we===-1)return-1;let We=we;for(;;){if(me==="next"&&We===pe.length||me==="previous"&&We===-1)return-1;const ht=ve.querySelector(`[data-tag-index="${We}"]`);if(!ht||!ht.hasAttribute("tabindex")||ht.disabled||ht.getAttribute("aria-disabled")==="true")We+=me==="next"?1:-1;else return We}}const nn=(we,me)=>{if(!O)return;te===""&&On(we,"toggleInput");let We=ee;ee===-1?te===""&&me==="previous"&&(We=pe.length-1):(We+=me==="next"?1:-1,We<0&&(We=0),We===pe.length&&(We=-1)),We=bn(We,me),_e(We),Ze(We)},jn=we=>{de.current=!0,Oe(""),L&&L(we,"","clear"),Jn(we,O?[]:null,"clear")},Uo=we=>me=>{if(we.onKeyDown&&we.onKeyDown(me),!me.defaultMuiPrevented&&(ee!==-1&&["ArrowLeft","ArrowRight"].indexOf(me.key)===-1&&(_e(-1),Ze(-1)),me.which!==229))switch(me.key){case"Home":bt&&k&&(me.preventDefault(),Ve({diff:"start",direction:"next",reason:"keyboard",event:me}));break;case"End":bt&&k&&(me.preventDefault(),Ve({diff:"end",direction:"previous",reason:"keyboard",event:me}));break;case"PageUp":me.preventDefault(),Ve({diff:-r$,direction:"previous",reason:"keyboard",event:me}),kn(me);break;case"PageDown":me.preventDefault(),Ve({diff:r$,direction:"next",reason:"keyboard",event:me}),kn(me);break;case"ArrowDown":me.preventDefault(),Ve({diff:1,direction:"next",reason:"keyboard",event:me}),kn(me);break;case"ArrowUp":me.preventDefault(),Ve({diff:-1,direction:"previous",reason:"keyboard",event:me}),kn(me);break;case"ArrowLeft":nn(me,"previous");break;case"ArrowRight":nn(me,"next");break;case"Enter":if(Ee.current!==-1&&bt){const We=De[Ee.current],ht=x?x(We):!1;if(me.preventDefault(),ht)return;cr(me,We,"selectOption"),r&&le.current.setSelectionRange(le.current.value.length,le.current.value.length)}else C&&te!==""&&It===!1&&(O&&me.preventDefault(),cr(me,te,"createOption","freeSolo"));break;case"Escape":bt?(me.preventDefault(),me.stopPropagation(),On(me,"escape")):c&&(te!==""||O&&pe.length>0)&&(me.preventDefault(),me.stopPropagation(),jn(me));break;case"Backspace":if(O&&!W&&te===""&&pe.length>0){const We=ee===-1?pe.length-1:ee,ht=pe.slice();ht.splice(We,1),Jn(me,ht,"removeOption",{option:pe[We]})}break;case"Delete":if(O&&!W&&te===""&&pe.length>0&&ee!==-1){const We=ee,ht=pe.slice();ht.splice(We,1),Jn(me,ht,"removeOption",{option:pe[We]})}break}},Wi=we=>{Ke(!0),D&&!de.current&&kn(we)},xs=we=>{if(t(ke)){le.current.focus();return}Ke(!1),se.current=!0,de.current=!1,i&&Ee.current!==-1&&bt?cr(we,De[Ee.current],"blur"):i&&C&&te!==""?cr(we,te,"blur","freeSolo"):a&&Ue(we,pe),On(we,"blur")},Ss=we=>{const me=we.target.value;te!==me&&(Oe(me),ut(!1),L&&L(we,me,"input")),me===""?!h&&!O&&Jn(we,null,"clear"):kn(we)},ce=we=>{const me=Number(we.currentTarget.getAttribute("data-option-index"));Ee.current!==me&&Fe({event:we,index:me,reason:"mouse"})},ge=we=>{Fe({event:we,index:Number(we.currentTarget.getAttribute("data-option-index")),reason:"touch"}),ar.current=!0},Ne=we=>{const me=Number(we.currentTarget.getAttribute("data-option-index"));cr(we,De[me],"selectOption"),ar.current=!1},pt=we=>me=>{const We=pe.slice();We.splice(we,1),Jn(me,We,"removeOption",{option:pe[we]})},at=we=>{Be?On(we,"toggleInput"):kn(we)},He=we=>{we.target.getAttribute("id")!==ie&&we.preventDefault()},xt=()=>{le.current.focus(),K&&se.current&&le.current.selectionEnd-le.current.selectionStart===0&&le.current.select(),se.current=!1},Ut=we=>{(te===""||!Be)&&at(we)};let _n=C&&te.length>0;_n=_n||(O?pe.length>0:pe!==null);let mo=De;return _&&(mo=De.reduce((we,me,We)=>{const ht=_(me);return we.length>0&&we[we.length-1].group===ht?we[we.length-1].options.push(me):we.push({key:We,index:We,group:ht,options:[me]}),we},[])),g&&Ye&&xs(),{getRootProps:(we={})=>S({"aria-owns":ze?`${ie}-listbox`:null},we,{onKeyDown:Uo(we),onMouseDown:He,onClick:xt}),getInputLabelProps:()=>({id:`${ie}-label`,htmlFor:ie}),getInputProps:()=>({id:ie,value:te,onBlur:xs,onFocus:Wi,onChange:Ss,onMouseDown:Ut,"aria-activedescendant":bt?"":null,"aria-autocomplete":r?"both":"list","aria-controls":ze?`${ie}-listbox`:void 0,"aria-expanded":ze,autoComplete:"off",ref:le,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:g}),getClearProps:()=>({tabIndex:-1,onClick:jn}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:at}),getTagProps:({index:we})=>S({key:we,"data-tag-index":we,tabIndex:-1},!W&&{onDelete:pt(we)}),getListboxProps:()=>({role:"listbox",id:`${ie}-listbox`,"aria-labelledby":`${ie}-label`,ref:tn,onMouseDown:we=>{we.preventDefault()}}),getOptionProps:({index:we,option:me})=>{const We=(O?pe:[pe]).some(Kt=>Kt!=null&&A(me,Kt)),ht=x?x(me):!1;return{key:re(me),tabIndex:-1,role:"option",id:`${ie}-option-${we}`,onMouseMove:ce,onClick:Ne,onTouchStart:ge,"data-option-index":we,"aria-disabled":ht,"aria-selected":We}},id:ie,inputValue:te,value:pe,dirty:_n,expanded:bt&&ve,popupOpen:bt,focused:Ye||ee!==-1,anchorEl:ve,setAnchorEl:Pe,focusedTag:ee,groupedOptions:mo}}function eY(e){return Je("MuiSvgIcon",e)}Xe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const tY=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],nY=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ue(t)}`,`fontSize${ue(n)}`]};return Me(o,eY,r)},rY=oe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ue(n.color)}`],t[`fontSize${ue(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,a,c,d,p,h,m,g,y,v,E,w,C;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(i=o.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(a=s.pxToRem)==null?void 0:a.call(s,20))||"1.25rem",medium:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,24))||"1.5rem",large:((p=e.typography)==null||(h=p.pxToRem)==null?void 0:h.call(p,35))||"2.1875rem"}[t.fontSize],color:(m=(g=(e.vars||e).palette)==null||(y=g[t.color])==null?void 0:y.main)!=null?m:{action:(v=(e.vars||e).palette)==null||(E=v.action)==null?void 0:E.active,disabled:(w=(e.vars||e).palette)==null||(C=w.action)==null?void 0:C.disabled,inherit:void 0}[t.color]}}),cL=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:p=!1,titleAccess:h,viewBox:m="0 0 24 24"}=r,g=ne(r,tY),y=S({},r,{color:s,component:a,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:m}),v={};p||(v.viewBox=m);const E=nY(y);return T.jsxs(rY,S({as:a,className:he(E.root,i),focusable:"false",color:d,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},v,g,{ownerState:y,children:[o,h?T.jsx("title",{children:h}):null]}))});cL.muiName="SvgIcon";const o$=cL;function $t(e,t){function n(r,o){return T.jsx(o$,S({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=o$.muiName,u.memo(u.forwardRef(n))}const oY={configure:e=>{vx.configure(e)}},iY=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ue,createChainedFunction:vw,createSvgIcon:$t,debounce:Ks,deprecatedPropType:BV,isMuiElement:Cf,ownerDocument:vn,ownerWindow:Fo,requirePropFactory:zV,setRef:Qf,unstable_ClassNameGenerator:oY,unstable_useEnhancedEffect:an,unstable_useId:sn,unsupportedProp:VV,useControlled:ls,useEventCallback:Pn,useForkRef:Vt,useIsFocusVisible:Ev},Symbol.toStringTag,{value:"Module"}));function Iw(e,t){return Iw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Iw(e,t)}function zx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Iw(e,t)}const i$={disabled:!1},Sg=$o.createContext(null);var sY=function(t){return t.scrollTop},lf="unmounted",ba="exited",wa="entering",Bc="entered",kw="exiting",Zs=function(e){zx(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?a?(c=ba,i.appearStatus=wa):c=Bc:r.unmountOnExit||r.mountOnEnter?c=lf:c=ba,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===lf?{status:ba}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==wa&&s!==Bc&&(i=wa):(s===wa||s===Bc)&&(i=kw)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===wa){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Jh.findDOMNode(this);s&&sY(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ba&&this.setState({status:lf})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,c=this.props.nodeRef?[a]:[Jh.findDOMNode(this),a],d=c[0],p=c[1],h=this.getTimeouts(),m=a?h.appear:h.enter;if(!o&&!s||i$.disabled){this.safeSetState({status:Bc},function(){i.props.onEntered(d)});return}this.props.onEnter(d,p),this.safeSetState({status:wa},function(){i.props.onEntering(d,p),i.onTransitionEnd(m,function(){i.safeSetState({status:Bc},function(){i.props.onEntered(d,p)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Jh.findDOMNode(this);if(!i||i$.disabled){this.safeSetState({status:ba},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:kw},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:ba},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Jh.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=c[0],p=c[1];this.props.addEndListener(d,p)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===lf)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=ne(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return $o.createElement(Sg.Provider,{value:null},typeof s=="function"?s(o,a):$o.cloneElement($o.Children.only(s),a))},t}($o.Component);Zs.contextType=Sg;Zs.propTypes={};function Tc(){}Zs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Tc,onEntering:Tc,onEntered:Tc,onExit:Tc,onExiting:Tc,onExited:Tc};Zs.UNMOUNTED=lf;Zs.EXITED=ba;Zs.ENTERING=wa;Zs.ENTERED=Bc;Zs.EXITING=kw;const Xv=Zs;function _w(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jx(e,t){var n=function(i){return t&&u.isValidElement(i)?t(i):i},r=Object.create(null);return e&&u.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function lY(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var c in t){if(r[c])for(s=0;s<r[c].length;s++){var d=r[c][s];a[r[c][s]]=n(d)}a[c]=n(c)}for(s=0;s<o.length;s++)a[o[s]]=n(o[s]);return a}function Ia(e,t,n){return n[t]!=null?n[t]:e.props[t]}function aY(e,t){return jx(e.children,function(n){return u.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Ia(n,"appear",e),enter:Ia(n,"enter",e),exit:Ia(n,"exit",e)})})}function cY(e,t,n){var r=jx(e.children),o=lY(t,r);return Object.keys(o).forEach(function(i){var s=o[i];if(u.isValidElement(s)){var a=i in t,c=i in r,d=t[i],p=u.isValidElement(d)&&!d.props.in;c&&(!a||p)?o[i]=u.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Ia(s,"exit",e),enter:Ia(s,"enter",e)}):!c&&a&&!p?o[i]=u.cloneElement(s,{in:!1}):c&&a&&u.isValidElement(d)&&(o[i]=u.cloneElement(s,{onExited:n.bind(null,s),in:d.props.in,exit:Ia(s,"exit",e),enter:Ia(s,"enter",e)}))}}),o}var uY=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},dY={component:"div",childFactory:function(t){return t}},Hx=function(e){zx(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=i.handleExited.bind(_w(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}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,i){var s=i.children,a=i.handleExited,c=i.firstRender;return{children:c?aY(o,a):cY(o,s,a),firstRender:!1}},n.handleExited=function(o,i){var s=jx(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(a){var c=S({},a.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,i=o.component,s=o.childFactory,a=ne(o,["component","childFactory"]),c=this.state.contextValue,d=uY(this.state.children).map(s);return delete a.appear,delete a.enter,delete a.exit,i===null?$o.createElement(Sg.Provider,{value:c},d):$o.createElement(Sg.Provider,{value:c},$o.createElement(i,a,d))},t}($o.Component);Hx.propTypes={};Hx.defaultProps=dY;const fY=Hx,Vx=e=>e.scrollTop;function Yl(e,t){var n,r;const{timeout:o,easing:i,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:s.transitionDelay}}function pY(e){return Je("MuiCollapse",e)}Xe("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const hY=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],mY=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Me(r,pY,n)},gY=oe("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"})),vY=oe("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>S({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),yY=oe("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>S({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),uL=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:s,collapsedSize:a="0px",component:c,easing:d,in:p,onEnter:h,onEntered:m,onEntering:g,onExit:y,onExited:v,onExiting:E,orientation:w="vertical",style:C,timeout:x=qF.standard,TransitionComponent:P=Xv}=r,_=ne(r,hY),k=S({},r,{orientation:w,collapsedSize:a}),I=mY(k),R=lr(),F=u.useRef(),A=u.useRef(null),O=u.useRef(),N=typeof a=="number"?`${a}px`:a,B=w==="horizontal",M=B?"width":"height";u.useEffect(()=>()=>{clearTimeout(F.current)},[]);const L=u.useRef(null),z=Vt(n,L),V=se=>le=>{if(se){const ke=L.current;le===void 0?se(ke):se(ke,le)}},D=()=>A.current?A.current[B?"clientWidth":"clientHeight"]:0,H=V((se,le)=>{A.current&&B&&(A.current.style.position="absolute"),se.style[M]=N,h&&h(se,le)}),W=V((se,le)=>{const ke=D();A.current&&B&&(A.current.style.position="");const{duration:ve,easing:Pe}=Yl({style:C,timeout:x,easing:d},{mode:"enter"});if(x==="auto"){const ee=R.transitions.getAutoHeightDuration(ke);se.style.transitionDuration=`${ee}ms`,O.current=ee}else se.style.transitionDuration=typeof ve=="string"?ve:`${ve}ms`;se.style[M]=`${ke}px`,se.style.transitionTimingFunction=Pe,g&&g(se,le)}),K=V((se,le)=>{se.style[M]="auto",m&&m(se,le)}),Y=V(se=>{se.style[M]=`${D()}px`,y&&y(se)}),ie=V(v),re=V(se=>{const le=D(),{duration:ke,easing:ve}=Yl({style:C,timeout:x,easing:d},{mode:"exit"});if(x==="auto"){const Pe=R.transitions.getAutoHeightDuration(le);se.style.transitionDuration=`${Pe}ms`,O.current=Pe}else se.style.transitionDuration=typeof ke=="string"?ke:`${ke}ms`;se.style[M]=N,se.style.transitionTimingFunction=ve,E&&E(se)}),de=se=>{x==="auto"&&(F.current=setTimeout(se,O.current||0)),o&&o(L.current,se)};return T.jsx(P,S({in:p,onEnter:H,onEntered:K,onEntering:W,onExit:Y,onExited:ie,onExiting:re,addEndListener:de,nodeRef:L,timeout:x==="auto"?null:x},_,{children:(se,le)=>T.jsx(gY,S({as:c,className:he(I.root,s,{entered:I.entered,exited:!p&&N==="0px"&&I.hidden}[se]),style:S({[B?"minWidth":"minHeight"]:N},C),ownerState:S({},k,{state:se}),ref:z},le,{children:T.jsx(vY,{ownerState:S({},k,{state:se}),className:I.wrapper,ref:A,children:T.jsx(yY,{ownerState:S({},k,{state:se}),className:I.wrapperInner,children:i})})}))}))});uL.muiSupportAuto=!0;const Eg=uL;function bY(e){return Je("MuiPaper",e)}Xe("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 wY=["className","component","elevation","square","variant"],CY=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Me(i,bY,o)},xY=oe("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(${dt("#fff",j_(t.elevation))}, ${dt("#fff",j_(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),SY=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:a=!1,variant:c="elevation"}=r,d=ne(r,wY),p=S({},r,{component:i,elevation:s,square:a,variant:c}),h=CY(p);return T.jsx(xY,S({as:i,ownerState:p,className:he(h.root,o),ref:n},d))}),xi=SY;function EY(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:a,onExited:c,timeout:d}=e,[p,h]=u.useState(!1),m=he(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},y=he(n.child,p&&n.childLeaving,r&&n.childPulsate);return!a&&!p&&h(!0),u.useEffect(()=>{if(!a&&c!=null){const v=setTimeout(c,d);return()=>{clearTimeout(v)}}},[c,a,d]),T.jsx("span",{className:m,style:g,children:T.jsx("span",{className:y})})}const PY=Xe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ni=PY,IY=["center","classes","className"];let Jv=e=>e,s$,l$,a$,c$;const $w=550,kY=80,_Y=bs(s$||(s$=Jv`
90
+ 0% {
91
+ transform: scale(0);
92
+ opacity: 0.1;
93
+ }
94
+
95
+ 100% {
96
+ transform: scale(1);
97
+ opacity: 0.3;
98
+ }
99
+ `)),$Y=bs(l$||(l$=Jv`
100
+ 0% {
101
+ opacity: 1;
102
+ }
103
+
104
+ 100% {
105
+ opacity: 0;
106
+ }
107
+ `)),RY=bs(a$||(a$=Jv`
108
+ 0% {
109
+ transform: scale(1);
110
+ }
111
+
112
+ 50% {
113
+ transform: scale(0.92);
114
+ }
115
+
116
+ 100% {
117
+ transform: scale(1);
118
+ }
119
+ `)),MY=oe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),TY=oe(EY,{name:"MuiTouchRipple",slot:"Ripple"})(c$||(c$=Jv`
120
+ opacity: 0;
121
+ position: absolute;
122
+
123
+ &.${0} {
124
+ opacity: 0.3;
125
+ transform: scale(1);
126
+ animation-name: ${0};
127
+ animation-duration: ${0}ms;
128
+ animation-timing-function: ${0};
129
+ }
130
+
131
+ &.${0} {
132
+ animation-duration: ${0}ms;
133
+ }
134
+
135
+ & .${0} {
136
+ opacity: 1;
137
+ display: block;
138
+ width: 100%;
139
+ height: 100%;
140
+ border-radius: 50%;
141
+ background-color: currentColor;
142
+ }
143
+
144
+ & .${0} {
145
+ opacity: 0;
146
+ animation-name: ${0};
147
+ animation-duration: ${0}ms;
148
+ animation-timing-function: ${0};
149
+ }
150
+
151
+ & .${0} {
152
+ position: absolute;
153
+ /* @noflip */
154
+ left: 0px;
155
+ top: 0;
156
+ animation-name: ${0};
157
+ animation-duration: 2500ms;
158
+ animation-timing-function: ${0};
159
+ animation-iteration-count: infinite;
160
+ animation-delay: 200ms;
161
+ }
162
+ `),ni.rippleVisible,_Y,$w,({theme:e})=>e.transitions.easing.easeInOut,ni.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ni.child,ni.childLeaving,$Y,$w,({theme:e})=>e.transitions.easing.easeInOut,ni.childPulsate,RY,({theme:e})=>e.transitions.easing.easeInOut),OY=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=ne(r,IY),[c,d]=u.useState([]),p=u.useRef(0),h=u.useRef(null);u.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const m=u.useRef(!1),g=u.useRef(null),y=u.useRef(null),v=u.useRef(null);u.useEffect(()=>()=>{clearTimeout(g.current)},[]);const E=u.useCallback(P=>{const{pulsate:_,rippleX:k,rippleY:I,rippleSize:R,cb:F}=P;d(A=>[...A,T.jsx(TY,{classes:{ripple:he(i.ripple,ni.ripple),rippleVisible:he(i.rippleVisible,ni.rippleVisible),ripplePulsate:he(i.ripplePulsate,ni.ripplePulsate),child:he(i.child,ni.child),childLeaving:he(i.childLeaving,ni.childLeaving),childPulsate:he(i.childPulsate,ni.childPulsate)},timeout:$w,pulsate:_,rippleX:k,rippleY:I,rippleSize:R},p.current)]),p.current+=1,h.current=F},[i]),w=u.useCallback((P={},_={},k=()=>{})=>{const{pulsate:I=!1,center:R=o||_.pulsate,fakeElement:F=!1}=_;if((P==null?void 0:P.type)==="mousedown"&&m.current){m.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(m.current=!0);const A=F?null:v.current,O=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let N,B,M;if(R||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)N=Math.round(O.width/2),B=Math.round(O.height/2);else{const{clientX:L,clientY:z}=P.touches&&P.touches.length>0?P.touches[0]:P;N=Math.round(L-O.left),B=Math.round(z-O.top)}if(R)M=Math.sqrt((2*Yi(O.width,2)+Yi(O.height,2))/3),M%2===0&&(M+=1);else{const L=Math.max(Math.abs((A?A.clientWidth:0)-N),N)*2+2,z=Math.max(Math.abs((A?A.clientHeight:0)-B),B)*2+2;M=Math.sqrt(Yi(L,2)+Yi(z,2))}P!=null&&P.touches?y.current===null&&(y.current=()=>{E({pulsate:I,rippleX:N,rippleY:B,rippleSize:M,cb:k})},g.current=setTimeout(()=>{y.current&&(y.current(),y.current=null)},kY)):E({pulsate:I,rippleX:N,rippleY:B,rippleSize:M,cb:k})},[o,E]),C=u.useCallback(()=>{w({},{pulsate:!0})},[w]),x=u.useCallback((P,_)=>{if(clearTimeout(g.current),(P==null?void 0:P.type)==="touchend"&&y.current){y.current(),y.current=null,g.current=setTimeout(()=>{x(P,_)});return}y.current=null,d(k=>k.length>0?k.slice(1):k),h.current=_},[]);return u.useImperativeHandle(n,()=>({pulsate:C,start:w,stop:x}),[C,w,x]),T.jsx(MY,S({className:he(ni.root,i.root,s),ref:v},a,{children:T.jsx(fY,{component:null,exit:!0,children:c})}))}),FY=OY;function LY(e){return Je("MuiButtonBase",e)}const AY=Xe("MuiButtonBase",["root","disabled","focusVisible"]),DY=AY,NY=["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"],BY=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=Me({root:["root",t&&"disabled",n&&"focusVisible"]},LY,o);return n&&r&&(s.root+=` ${r}`),s},zY=oe("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"},[`&.${DY.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),jY=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:c="button",disabled:d=!1,disableRipple:p=!1,disableTouchRipple:h=!1,focusRipple:m=!1,LinkComponent:g="a",onBlur:y,onClick:v,onContextMenu:E,onDragLeave:w,onFocus:C,onFocusVisible:x,onKeyDown:P,onKeyUp:_,onMouseDown:k,onMouseLeave:I,onMouseUp:R,onTouchEnd:F,onTouchMove:A,onTouchStart:O,tabIndex:N=0,TouchRippleProps:B,touchRippleRef:M,type:L}=r,z=ne(r,NY),V=u.useRef(null),D=u.useRef(null),H=Vt(D,M),{isFocusVisibleRef:W,onFocus:K,onBlur:Y,ref:ie}=Ev(),[re,de]=u.useState(!1);d&&re&&de(!1),u.useImperativeHandle(o,()=>({focusVisible:()=>{de(!0),V.current.focus()}}),[]);const[se,le]=u.useState(!1);u.useEffect(()=>{le(!0)},[]);const ke=se&&!p&&!d;u.useEffect(()=>{re&&m&&!p&&se&&D.current.pulsate()},[p,m,re,se]);function ve(Ae,ze,Ze=h){return Pn(Ie=>(ze&&ze(Ie),!Ze&&D.current&&D.current[Ae](Ie),!0))}const Pe=ve("start",k),ee=ve("stop",E),_e=ve("stop",w),Re=ve("stop",R),Ee=ve("stop",Ae=>{re&&Ae.preventDefault(),I&&I(Ae)}),pe=ve("start",O),be=ve("stop",F),te=ve("stop",A),Oe=ve("stop",Ae=>{Y(Ae),W.current===!1&&de(!1),y&&y(Ae)},!1),Ye=Pn(Ae=>{V.current||(V.current=Ae.currentTarget),K(Ae),W.current===!0&&(de(!0),x&&x(Ae)),C&&C(Ae)}),Ke=()=>{const Ae=V.current;return c&&c!=="button"&&!(Ae.tagName==="A"&&Ae.href)},Ue=u.useRef(!1),Be=Pn(Ae=>{m&&!Ue.current&&re&&D.current&&Ae.key===" "&&(Ue.current=!0,D.current.stop(Ae,()=>{D.current.start(Ae)})),Ae.target===Ae.currentTarget&&Ke()&&Ae.key===" "&&Ae.preventDefault(),P&&P(Ae),Ae.target===Ae.currentTarget&&Ke()&&Ae.key==="Enter"&&!d&&(Ae.preventDefault(),v&&v(Ae))}),ft=Pn(Ae=>{m&&Ae.key===" "&&D.current&&re&&!Ae.defaultPrevented&&(Ue.current=!1,D.current.stop(Ae,()=>{D.current.pulsate(Ae)})),_&&_(Ae),v&&Ae.target===Ae.currentTarget&&Ke()&&Ae.key===" "&&!Ae.defaultPrevented&&v(Ae)});let yt=c;yt==="button"&&(z.href||z.to)&&(yt=g);const ut={};yt==="button"?(ut.type=L===void 0?"button":L,ut.disabled=d):(!z.href&&!z.to&&(ut.role="button"),d&&(ut["aria-disabled"]=d));const It=Vt(n,ie,V),bt=S({},r,{centerRipple:i,component:c,disabled:d,disableRipple:p,disableTouchRipple:h,focusRipple:m,tabIndex:N,focusVisible:re}),De=BY(bt);return T.jsxs(zY,S({as:yt,className:he(De.root,a),ownerState:bt,onBlur:Oe,onClick:v,onContextMenu:ee,onFocus:Ye,onKeyDown:Be,onKeyUp:ft,onMouseDown:Pe,onMouseLeave:Ee,onMouseUp:Re,onDragLeave:_e,onTouchEnd:be,onTouchMove:te,onTouchStart:pe,ref:It,tabIndex:d?-1:N,type:L},ut,z,{children:[s,ke?T.jsx(FY,S({ref:H,center:i},B)):null]}))}),gs=jY;function HY(e){return Je("MuiAlert",e)}const VY=Xe("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),u$=VY;function UY(e){return Je("MuiIconButton",e)}const WY=Xe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),GY=WY,KY=["edge","children","className","color","disabled","disableFocusRipple","size"],qY=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${ue(r)}`,o&&`edge${ue(o)}`,`size${ue(i)}`]};return Me(s,UY,t)},YY=oe(gs,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ue(n.color)}`],n.edge&&t[`edge${ue(n.edge)}`],t[`size${ue(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})`:dt(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})`:dt(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)},{[`&.${GY.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),QY=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:c=!1,disableFocusRipple:d=!1,size:p="medium"}=r,h=ne(r,KY),m=S({},r,{edge:o,color:a,disabled:c,disableFocusRipple:d,size:p}),g=qY(m);return T.jsx(YY,S({className:he(g.root,s),centerRipple:!0,focusRipple:!d,disabled:c,ref:n,ownerState:m},h,{children:i}))}),ai=QY,XY=$t(T.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"),JY=$t(T.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),ZY=$t(T.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"),eQ=$t(T.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"),dL=$t(T.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"),tQ=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],nQ=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`${t}${ue(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Me(i,HY,o)},rQ=oe(xi,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ue(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Ua:Wa,r=e.palette.mode==="light"?Wa:Ua,o=t.color||t.severity;return S({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:r(e.palette[o].light,.9),[`& .${u$.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${u$.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&S({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}))}),oQ=oe("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),iQ=oe("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),d$=oe("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),f$={success:T.jsx(XY,{fontSize:"inherit"}),warning:T.jsx(JY,{fontSize:"inherit"}),error:T.jsx(ZY,{fontSize:"inherit"}),info:T.jsx(eQ,{fontSize:"inherit"})},sQ=u.forwardRef(function(t,n){var r,o,i,s,a,c;const d=nt({props:t,name:"MuiAlert"}),{action:p,children:h,className:m,closeText:g="Close",color:y,components:v={},componentsProps:E={},icon:w,iconMapping:C=f$,onClose:x,role:P="alert",severity:_="success",slotProps:k={},slots:I={},variant:R="standard"}=d,F=ne(d,tQ),A=S({},d,{color:y,severity:_,variant:R}),O=nQ(A),N=(r=(o=I.closeButton)!=null?o:v.CloseButton)!=null?r:ai,B=(i=(s=I.closeIcon)!=null?s:v.CloseIcon)!=null?i:dL,M=(a=k.closeButton)!=null?a:E.closeButton,L=(c=k.closeIcon)!=null?c:E.closeIcon;return T.jsxs(rQ,S({role:P,elevation:0,ownerState:A,className:he(O.root,m),ref:n},F,{children:[w!==!1?T.jsx(oQ,{ownerState:A,className:O.icon,children:w||C[_]||f$[_]}):null,T.jsx(iQ,{ownerState:A,className:O.message,children:h}),p!=null?T.jsx(d$,{ownerState:A,className:O.action,children:p}):null,p==null&&x?T.jsx(d$,{ownerState:A,className:O.action,children:T.jsx(N,S({size:"small","aria-label":g,title:g,color:"inherit",onClick:x},M,{children:T.jsx(B,S({fontSize:"small"},L))}))}):null]}))}),Kr=sQ;function lQ(e){return Je("MuiTypography",e)}Xe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const aQ=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],cQ=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${ue(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Me(a,lQ,s)},uQ=oe("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${ue(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>S({margin:0},t.variant&&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})),p$={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},dQ={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},fQ=e=>dQ[e]||e,pQ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTypography"}),o=fQ(r.color),i=Rx(S({},r,{color:o})),{align:s="inherit",className:a,component:c,gutterBottom:d=!1,noWrap:p=!1,paragraph:h=!1,variant:m="body1",variantMapping:g=p$}=i,y=ne(i,aQ),v=S({},i,{align:s,color:o,className:a,component:c,gutterBottom:d,noWrap:p,paragraph:h,variant:m,variantMapping:g}),E=c||(h?"p":g[m]||p$[m])||"span",w=cQ(v);return T.jsx(uQ,S({as:E,ref:n,ownerState:v,className:he(w.root,a)},y))}),Ur=pQ;function hQ(e){return Je("MuiAppBar",e)}Xe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const mQ=["className","color","enableColorOnDark","position"],gQ=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${ue(t)}`,`position${ue(n)}`]};return Me(o,hQ,r)},nm=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,vQ=oe(xi,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ue(n.position)}`],t[`color${ue(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:nm(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:nm(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:nm(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:nm(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"}))}),yQ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:s=!1,position:a="fixed"}=r,c=ne(r,mQ),d=S({},r,{color:i,position:a,enableColorOnDark:s}),p=gQ(d);return T.jsx(vQ,S({square:!0,component:"header",ownerState:d,elevation:4,className:he(p.root,o,a==="fixed"&&"mui-fixed"),ref:n},c))}),bQ=yQ,wQ=["components","componentsProps","slots","slotProps"],CQ=oe(Oq,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xQ=u.forwardRef(function(t,n){var r;const o=Kv(),i=nt({props:t,name:"MuiPopper"}),{components:s,componentsProps:a,slots:c,slotProps:d}=i,p=ne(i,wQ),h=(r=c==null?void 0:c.root)!=null?r:s==null?void 0:s.Root;return T.jsx(CQ,S({direction:o==null?void 0:o.direction,slots:{root:h},slotProps:d!=null?d:a},p,{ref:n}))}),oc=xQ;function SQ(e){return Je("MuiListSubheader",e)}Xe("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const EQ=["className","color","component","disableGutters","disableSticky","inset"],PQ=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,s={root:["root",n!=="default"&&`color${ue(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return Me(s,SQ,t)},IQ=oe("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ue(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})),fL=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:s="li",disableGutters:a=!1,disableSticky:c=!1,inset:d=!1}=r,p=ne(r,EQ),h=S({},r,{color:i,component:s,disableGutters:a,disableSticky:c,inset:d}),m=PQ(h);return T.jsx(IQ,S({as:s,className:he(m.root,o),ref:n,ownerState:h},p))});fL.muiSkipListHighlight=!0;const kQ=fL,_Q=$t(T.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 $Q(e){return Je("MuiChip",e)}const RQ=Xe("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"]),Yt=RQ,MQ=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],TQ=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:s,clickable:a,variant:c}=e,d={root:["root",c,n&&"disabled",`size${ue(r)}`,`color${ue(o)}`,a&&"clickable",a&&`clickableColor${ue(o)}`,s&&"deletable",s&&`deletableColor${ue(o)}`,`${c}${ue(o)}`],label:["label",`label${ue(r)}`],avatar:["avatar",`avatar${ue(r)}`,`avatarColor${ue(o)}`],icon:["icon",`icon${ue(r)}`,`iconColor${ue(i)}`],deleteIcon:["deleteIcon",`deleteIcon${ue(r)}`,`deleteIconColor${ue(o)}`,`deleteIcon${ue(c)}Color${ue(o)}`]};return Me(d,$Q,t)},OQ=oe("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:s,size:a,variant:c}=n;return[{[`& .${Yt.avatar}`]:t.avatar},{[`& .${Yt.avatar}`]:t[`avatar${ue(a)}`]},{[`& .${Yt.avatar}`]:t[`avatarColor${ue(r)}`]},{[`& .${Yt.icon}`]:t.icon},{[`& .${Yt.icon}`]:t[`icon${ue(a)}`]},{[`& .${Yt.icon}`]:t[`iconColor${ue(o)}`]},{[`& .${Yt.deleteIcon}`]:t.deleteIcon},{[`& .${Yt.deleteIcon}`]:t[`deleteIcon${ue(a)}`]},{[`& .${Yt.deleteIcon}`]:t[`deleteIconColor${ue(r)}`]},{[`& .${Yt.deleteIcon}`]:t[`deleteIcon${ue(c)}Color${ue(r)}`]},t.root,t[`size${ue(a)}`],t[`color${ue(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${ue(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${ue(r)}`],t[c],t[`${c}${ue(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:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Yt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Yt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Yt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Yt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Yt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Yt.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"})),[`& .${Yt.deleteIcon}`]:S({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:dt(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)`:dt(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)`:dt(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&&{[`&.${Yt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:dt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Yt.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}))`:dt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Yt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:dt(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, &.${Yt.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]}`,[`&.${Yt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Yt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Yt.avatar}`]:{marginLeft:4},[`& .${Yt.avatarSmall}`]:{marginLeft:2},[`& .${Yt.icon}`]:{marginLeft:4},[`& .${Yt.iconSmall}`]:{marginLeft:2},[`& .${Yt.deleteIcon}`]:{marginRight:5},[`& .${Yt.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)`:dt(e.palette[t.color].main,.7)}`,[`&.${Yt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:dt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Yt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:dt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Yt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:dt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),FQ=oe("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ue(r)}`]]}})(({ownerState:e})=>S({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function h$(e){return e.key==="Backspace"||e.key==="Delete"}const LQ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:c,deleteIcon:d,disabled:p=!1,icon:h,label:m,onClick:g,onDelete:y,onKeyDown:v,onKeyUp:E,size:w="medium",variant:C="filled",tabIndex:x,skipFocusWhenDisabled:P=!1}=r,_=ne(r,MQ),k=u.useRef(null),I=Vt(k,n),R=H=>{H.stopPropagation(),y&&y(H)},F=H=>{H.currentTarget===H.target&&h$(H)&&H.preventDefault(),v&&v(H)},A=H=>{H.currentTarget===H.target&&(y&&h$(H)?y(H):H.key==="Escape"&&k.current&&k.current.blur()),E&&E(H)},O=s!==!1&&g?!0:s,N=O||y?gs:c||"div",B=S({},r,{component:N,disabled:p,size:w,color:a,iconColor:u.isValidElement(h)&&h.props.color||a,onDelete:!!y,clickable:O,variant:C}),M=TQ(B),L=N===gs?S({component:c||"div",focusVisibleClassName:M.focusVisible},y&&{disableRipple:!0}):{};let z=null;y&&(z=d&&u.isValidElement(d)?u.cloneElement(d,{className:he(d.props.className,M.deleteIcon),onClick:R}):T.jsx(_Q,{className:he(M.deleteIcon),onClick:R}));let V=null;o&&u.isValidElement(o)&&(V=u.cloneElement(o,{className:he(M.avatar,o.props.className)}));let D=null;return h&&u.isValidElement(h)&&(D=u.cloneElement(h,{className:he(M.icon,h.props.className)})),T.jsxs(OQ,S({as:N,className:he(M.root,i),disabled:O&&p?!0:void 0,onClick:g,onKeyDown:F,onKeyUp:A,ref:I,tabIndex:P&&p?-1:x,ownerState:B},L,_,{children:[V||D,T.jsx(FQ,{className:he(M.label),ownerState:B,children:m}),z]}))}),Ux=LQ;function ic({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 AQ=u.createContext(void 0),Zv=AQ;function el(){return u.useContext(Zv)}function DQ(e){return T.jsx(tG,S({},e,{defaultTheme:Yv,themeId:Ha}))}function m$(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Wx(e,t=!1){return e&&(m$(e.value)&&e.value!==""||t&&m$(e.defaultValue)&&e.defaultValue!=="")}function NQ(e){return e.startAdornment}function BQ(e){return Je("MuiInputBase",e)}const zQ=Xe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Po=zQ,jQ=["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"],ey=(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${ue(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},ty=(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]},HQ=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:c,hiddenLabel:d,multiline:p,readOnly:h,size:m,startAdornment:g,type:y}=e,v={root:["root",`color${ue(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",s&&"focused",a&&"formControl",m==="small"&&"sizeSmall",p&&"multiline",g&&"adornedStart",i&&"adornedEnd",d&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",p&&"inputMultiline",m==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",g&&"inputAdornedStart",i&&"inputAdornedEnd",h&&"readOnly"]};return Me(v,BQ,t)},ny=oe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ey})(({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",[`&.${Po.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%"})),ry=oe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ty})(({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"},i=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] + .${Po.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Po.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"})}),VQ=T.jsx(DQ,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),UQ=u.forwardRef(function(t,n){var r;const o=nt({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:c,components:d={},componentsProps:p={},defaultValue:h,disabled:m,disableInjectingGlobalStyles:g,endAdornment:y,fullWidth:v=!1,id:E,inputComponent:w="input",inputProps:C={},inputRef:x,maxRows:P,minRows:_,multiline:k=!1,name:I,onBlur:R,onChange:F,onClick:A,onFocus:O,onKeyDown:N,onKeyUp:B,placeholder:M,readOnly:L,renderSuffix:z,rows:V,slotProps:D={},slots:H={},startAdornment:W,type:K="text",value:Y}=o,ie=ne(o,jQ),re=C.value!=null?C.value:Y,{current:de}=u.useRef(re!=null),se=u.useRef(),le=u.useCallback(De=>{},[]),ke=Vt(se,x,C.ref,le),[ve,Pe]=u.useState(!1),ee=el(),_e=ic({props:o,muiFormControl:ee,states:["color","disabled","error","hiddenLabel","size","required","filled"]});_e.focused=ee?ee.focused:ve,u.useEffect(()=>{!ee&&m&&ve&&(Pe(!1),R&&R())},[ee,m,ve,R]);const Re=ee&&ee.onFilled,Ee=ee&&ee.onEmpty,pe=u.useCallback(De=>{Wx(De)?Re&&Re():Ee&&Ee()},[Re,Ee]);an(()=>{de&&pe({value:re})},[re,pe,de]);const be=De=>{if(_e.disabled){De.stopPropagation();return}O&&O(De),C.onFocus&&C.onFocus(De),ee&&ee.onFocus?ee.onFocus(De):Pe(!0)},te=De=>{R&&R(De),C.onBlur&&C.onBlur(De),ee&&ee.onBlur?ee.onBlur(De):Pe(!1)},Oe=(De,...Ae)=>{if(!de){const ze=De.target||se.current;if(ze==null)throw new Error(Kl(1));pe({value:ze.value})}C.onChange&&C.onChange(De,...Ae),F&&F(De,...Ae)};u.useEffect(()=>{pe(se.current)},[]);const Ye=De=>{se.current&&De.currentTarget===De.target&&se.current.focus(),A&&A(De)};let Ke=w,Ue=C;k&&Ke==="input"&&(V?Ue=S({type:void 0,minRows:V,maxRows:V},Ue):Ue=S({type:void 0,maxRows:P,minRows:_},Ue),Ke=Qq);const Be=De=>{pe(De.animationName==="mui-auto-fill-cancel"?se.current:{value:"x"})};u.useEffect(()=>{ee&&ee.setAdornedStart(!!W)},[ee,W]);const ft=S({},o,{color:_e.color||"primary",disabled:_e.disabled,endAdornment:y,error:_e.error,focused:_e.focused,formControl:ee,fullWidth:v,hiddenLabel:_e.hiddenLabel,multiline:k,size:_e.size,startAdornment:W,type:K}),yt=HQ(ft),ut=H.root||d.Root||ny,It=D.root||p.root||{},bt=H.input||d.Input||ry;return Ue=S({},Ue,(r=D.input)!=null?r:p.input),T.jsxs(u.Fragment,{children:[!g&&VQ,T.jsxs(ut,S({},It,!Ga(ut)&&{ownerState:S({},ft,It.ownerState)},{ref:n,onClick:Ye},ie,{className:he(yt.root,It.className,c,L&&"MuiInputBase-readOnly"),children:[W,T.jsx(Zv.Provider,{value:null,children:T.jsx(bt,S({ownerState:ft,"aria-invalid":_e.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:h,disabled:_e.disabled,id:E,onAnimationStart:Be,name:I,placeholder:M,readOnly:L,required:_e.required,rows:V,value:re,onKeyDown:N,onKeyUp:B,type:K},Ue,!Ga(bt)&&{as:Ke,ownerState:S({},ft,Ue.ownerState)},{ref:ke,className:he(yt.input,Ue.className,L&&"MuiInputBase-readOnly"),onBlur:te,onChange:Oe,onFocus:be}))}),y,z?z(S({},_e,{startAdornment:W})):null]}))]})}),nd=UQ;function WQ(e){return Je("MuiInput",e)}const GQ=S({},Po,Xe("MuiInput",["root","underline","input"])),Il=GQ;function KQ(e){return Je("MuiOutlinedInput",e)}const qQ=S({},Po,Xe("MuiOutlinedInput",["root","notchedOutline","input"])),Zi=qQ;function YQ(e){return Je("MuiFilledInput",e)}const QQ=S({},Po,Xe("MuiFilledInput",["root","underline","input"])),Io=QQ,pL=$t(T.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function XQ(e){return Je("MuiAutocomplete",e)}const JQ=Xe("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"]),Dt=JQ;var g$,v$;const ZQ=["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","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"],eX=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:s,hasPopupIcon:a,inputFocused:c,popupOpen:d,size:p}=e,h={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",s&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${ue(p)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",d&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Me(h,XQ,t)},tX=oe("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:s,size:a}=n;return[{[`& .${Dt.tag}`]:t.tag},{[`& .${Dt.tag}`]:t[`tagSize${ue(a)}`]},{[`& .${Dt.inputRoot}`]:t.inputRoot},{[`& .${Dt.input}`]:t.input},{[`& .${Dt.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>S({[`&.${Dt.focused} .${Dt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Dt.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${Dt.tag}`]:S({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${Dt.inputRoot}`]:{flexWrap:"wrap",[`.${Dt.hasPopupIcon}&, .${Dt.hasClearIcon}&`]:{paddingRight:26+4},[`.${Dt.hasPopupIcon}.${Dt.hasClearIcon}&`]:{paddingRight:52+4},[`& .${Dt.input}`]:{width:0,minWidth:30}},[`& .${Il.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Il.root}.${Po.sizeSmall}`]:{[`& .${Il.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Zi.root}`]:{padding:9,[`.${Dt.hasPopupIcon}&, .${Dt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${Dt.hasPopupIcon}.${Dt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Dt.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Dt.endAdornment}`]:{right:9}},[`& .${Zi.root}.${Po.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Dt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Io.root}`]:{paddingTop:19,paddingLeft:8,[`.${Dt.hasPopupIcon}&, .${Dt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${Dt.hasPopupIcon}.${Dt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Io.input}`]:{padding:"7px 4px"},[`& .${Dt.endAdornment}`]:{right:9}},[`& .${Io.root}.${Po.sizeSmall}`]:{paddingBottom:1,[`& .${Io.input}`]:{padding:"2.5px 4px"}},[`& .${Po.hiddenLabel}`]:{paddingTop:8},[`& .${Io.root}.${Po.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Dt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Io.root}.${Po.hiddenLabel}.${Po.sizeSmall}`]:{[`& .${Dt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Dt.input}`]:S({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),nX=oe("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),rX=oe(ai,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),oX=oe(ai,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>S({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>S({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),iX=oe(oc,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Dt.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>S({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),sX=oe(xi,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>S({},e.typography.body1,{overflow:"auto"})),lX=oe("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),aX=oe("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),cX=oe("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",[`& .${Dt.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"},[`&.${Dt.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"},[`&.${Dt.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})`:dt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Dt.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:dt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Dt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:dt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),uX=oe(kQ,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),dX=oe("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Dt.option}`]:{paddingLeft:24}}),fX=u.forwardRef(function(t,n){var r,o,i,s;const a=nt({props:t,name:"MuiAutocomplete"}),{autoComplete:c=!1,autoHighlight:d=!1,autoSelect:p=!1,blurOnSelect:h=!1,ChipProps:m,className:g,clearIcon:y=g$||(g$=T.jsx(dL,{fontSize:"small"})),clearOnBlur:v=!a.freeSolo,clearOnEscape:E=!1,clearText:w="Clear",closeText:C="Close",componentsProps:x={},defaultValue:P=a.multiple?[]:null,disableClearable:_=!1,disableCloseOnSelect:k=!1,disabled:I=!1,disabledItemsFocusable:R=!1,disableListWrap:F=!1,disablePortal:A=!1,filterSelectedOptions:O=!1,forcePopupIcon:N="auto",freeSolo:B=!1,fullWidth:M=!1,getLimitTagsText:L=He=>`+${He}`,getOptionLabel:z=He=>{var xt;return(xt=He.label)!=null?xt:He},groupBy:V,handleHomeEndKeys:D=!a.freeSolo,includeInputInList:H=!1,limitTags:W=-1,ListboxComponent:K="ul",ListboxProps:Y,loading:ie=!1,loadingText:re="Loading…",multiple:de=!1,noOptionsText:se="No options",openOnFocus:le=!1,openText:ke="Open",PaperComponent:ve=xi,PopperComponent:Pe=oc,popupIcon:ee=v$||(v$=T.jsx(pL,{})),readOnly:_e=!1,renderGroup:Re,renderInput:Ee,renderOption:pe,renderTags:be,selectOnFocus:te=!a.freeSolo,size:Oe="medium",slotProps:Ye={}}=a,Ke=ne(a,ZQ),{getRootProps:Ue,getInputProps:Be,getInputLabelProps:ft,getPopupIndicatorProps:yt,getClearProps:ut,getTagProps:It,getListboxProps:bt,getOptionProps:De,value:Ae,dirty:ze,expanded:Ze,id:Ie,popupOpen:Fe,focused:Ve,focusedTag:it,anchorEl:mt,setAnchorEl:tn,inputValue:kn,groupedOptions:On}=Zq(S({},a,{componentName:"Autocomplete"})),Jn=!_&&!I&&ze&&!_e,ar=(!B||N===!0)&&N!==!1,{onMouseDown:cr}=Be(),bn=S({},a,{disablePortal:A,expanded:Ze,focused:Ve,fullWidth:M,hasClearIcon:Jn,hasPopupIcon:ar,inputFocused:it===-1,popupOpen:Fe,size:Oe}),nn=eX(bn);let jn;if(de&&Ae.length>0){const He=xt=>S({className:nn.tag,disabled:I},It(xt));be?jn=be(Ae,He,bn):jn=Ae.map((xt,Ut)=>T.jsx(Ux,S({label:z(xt),size:Oe},He({index:Ut}),m)))}if(W>-1&&Array.isArray(jn)){const He=jn.length-W;!Ve&&He>0&&(jn=jn.splice(0,W),jn.push(T.jsx("span",{className:nn.tag,children:L(He)},jn.length)))}const Wi=Re||(He=>T.jsxs("li",{children:[T.jsx(uX,{className:nn.groupLabel,ownerState:bn,component:"div",children:He.group}),T.jsx(dX,{className:nn.groupUl,ownerState:bn,children:He.children})]},He.key)),Ss=pe||((He,xt)=>T.jsx("li",S({},He,{children:z(xt)}))),ce=(He,xt)=>{const Ut=De({option:He,index:xt});return Ss(S({},Ut,{className:nn.option}),He,{selected:Ut["aria-selected"],index:xt,inputValue:kn})},ge=(r=Ye.clearIndicator)!=null?r:x.clearIndicator,Ne=(o=Ye.paper)!=null?o:x.paper,pt=(i=Ye.popper)!=null?i:x.popper,at=(s=Ye.popupIndicator)!=null?s:x.popupIndicator;return T.jsxs(u.Fragment,{children:[T.jsx(tX,S({ref:n,className:he(nn.root,g),ownerState:bn},Ue(Ke),{children:Ee({id:Ie,disabled:I,fullWidth:!0,size:Oe==="small"?"small":void 0,InputLabelProps:ft(),InputProps:S({ref:tn,className:nn.inputRoot,startAdornment:jn,onClick:He=>{He.target===He.currentTarget&&cr(He)}},(Jn||ar)&&{endAdornment:T.jsxs(nX,{className:nn.endAdornment,ownerState:bn,children:[Jn?T.jsx(rX,S({},ut(),{"aria-label":w,title:w,ownerState:bn},ge,{className:he(nn.clearIndicator,ge==null?void 0:ge.className),children:y})):null,ar?T.jsx(oX,S({},yt(),{disabled:I,"aria-label":Fe?C:ke,title:Fe?C:ke,ownerState:bn},at,{className:he(nn.popupIndicator,at==null?void 0:at.className),children:ee})):null]})}),inputProps:S({className:nn.input,disabled:I,readOnly:_e},Be())})})),mt?T.jsx(iX,S({as:Pe,disablePortal:A,style:{width:mt?mt.clientWidth:null},ownerState:bn,role:"presentation",anchorEl:mt,open:Fe},pt,{className:he(nn.popper,pt==null?void 0:pt.className),children:T.jsxs(sX,S({ownerState:bn,as:ve},Ne,{className:he(nn.paper,Ne==null?void 0:Ne.className),children:[ie&&On.length===0?T.jsx(lX,{className:nn.loading,ownerState:bn,children:re}):null,On.length===0&&!B&&!ie?T.jsx(aX,{className:nn.noOptions,ownerState:bn,role:"presentation",onMouseDown:He=>{He.preventDefault()},children:se}):null,On.length>0?T.jsx(cX,S({as:K,className:nn.listbox,ownerState:bn},bt(),Y,{children:On.map((He,xt)=>V?Wi({key:He.key,group:He.group,children:He.options.map((Ut,_n)=>ce(Ut,He.index+_n))}):ce(He,xt))})):null]}))})):null]})}),Gx=fX,pX=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],hX={entering:{opacity:1},entered:{opacity:1}},mX=u.forwardRef(function(t,n){const r=lr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:c,in:d,onEnter:p,onEntered:h,onEntering:m,onExit:g,onExited:y,onExiting:v,style:E,timeout:w=o,TransitionComponent:C=Xv}=t,x=ne(t,pX),P=u.useRef(null),_=Vt(P,a.ref,n),k=M=>L=>{if(M){const z=P.current;L===void 0?M(z):M(z,L)}},I=k(m),R=k((M,L)=>{Vx(M);const z=Yl({style:E,timeout:w,easing:c},{mode:"enter"});M.style.webkitTransition=r.transitions.create("opacity",z),M.style.transition=r.transitions.create("opacity",z),p&&p(M,L)}),F=k(h),A=k(v),O=k(M=>{const L=Yl({style:E,timeout:w,easing:c},{mode:"exit"});M.style.webkitTransition=r.transitions.create("opacity",L),M.style.transition=r.transitions.create("opacity",L),g&&g(M)}),N=k(y),B=M=>{i&&i(P.current,M)};return T.jsx(C,S({appear:s,in:d,nodeRef:P,onEnter:R,onEntered:F,onEntering:I,onExit:O,onExited:N,onExiting:A,addEndListener:B,timeout:w},x,{children:(M,L)=>u.cloneElement(a,S({style:S({opacity:0,visibility:M==="exited"&&!d?"hidden":void 0},hX[M],E,a.props.style),ref:_},L))}))}),hL=mX;function gX(e){return Je("MuiBackdrop",e)}Xe("MuiBackdrop",["root","invisible"]);const vX=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],yX=e=>{const{classes:t,invisible:n}=e;return Me({root:["root",n&&"invisible"]},gX,t)},bX=oe("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"})),wX=u.forwardRef(function(t,n){var r,o,i;const s=nt({props:t,name:"MuiBackdrop"}),{children:a,className:c,component:d="div",components:p={},componentsProps:h={},invisible:m=!1,open:g,slotProps:y={},slots:v={},TransitionComponent:E=hL,transitionDuration:w}=s,C=ne(s,vX),x=S({},s,{component:d,invisible:m}),P=yX(x),_=(r=y.root)!=null?r:h.root;return T.jsx(E,S({in:g,timeout:w},C,{children:T.jsx(bX,S({"aria-hidden":!0},_,{as:(o=(i=v.root)!=null?i:p.Root)!=null?o:d,className:he(P.root,c,_==null?void 0:_.className),ownerState:S({},x,_==null?void 0:_.ownerState),classes:P,ref:n,children:a}))}))}),mL=wX;function CX(e){return Je("MuiBadge",e)}const xX=Xe("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"]),fl=xX,SX=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],D1=10,N1=4,EX=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:s={}}=e,a={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${ue(n.vertical)}${ue(n.horizontal)}`,`anchorOrigin${ue(n.vertical)}${ue(n.horizontal)}${ue(o)}`,`overlap${ue(o)}`,t!=="default"&&`color${ue(t)}`]};return Me(a,CX,s)},PX=oe("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),IX=oe("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${ue(n.anchorOrigin.vertical)}${ue(n.anchorOrigin.horizontal)}${ue(n.overlap)}`],n.color!=="default"&&t[`color${ue(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>S({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:D1*2,lineHeight:1,padding:"0 6px",height:D1*2,borderRadius:D1,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.variant==="dot"&&{borderRadius:N1,height:N1*2,minWidth:N1*2,padding:0},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${fl.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular"&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${fl.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${fl.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular"&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${fl.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${fl.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular"&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${fl.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${fl.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular"&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${fl.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),kX=u.forwardRef(function(t,n){var r,o,i,s,a,c;const d=nt({props:t,name:"MuiBadge"}),{anchorOrigin:p={vertical:"top",horizontal:"right"},className:h,component:m,components:g={},componentsProps:y={},children:v,overlap:E="rectangular",color:w="default",invisible:C=!1,max:x=99,badgeContent:P,slots:_,slotProps:k,showZero:I=!1,variant:R="standard"}=d,F=ne(d,SX),{badgeContent:A,invisible:O,max:N,displayValue:B}=aK({max:x,invisible:C,badgeContent:P,showZero:I}),M=mx({anchorOrigin:p,color:w,overlap:E,variant:R,badgeContent:P}),L=O||A==null&&R!=="dot",{color:z=w,overlap:V=E,anchorOrigin:D=p,variant:H=R}=L?M:d,W=H!=="dot"?B:void 0,K=S({},d,{badgeContent:A,invisible:L,max:N,displayValue:W,showZero:I,anchorOrigin:D,color:z,overlap:V,variant:H}),Y=EX(K),ie=(r=(o=_==null?void 0:_.root)!=null?o:g.Root)!=null?r:PX,re=(i=(s=_==null?void 0:_.badge)!=null?s:g.Badge)!=null?i:IX,de=(a=k==null?void 0:k.root)!=null?a:y.root,se=(c=k==null?void 0:k.badge)!=null?c:y.badge,le=qs({elementType:ie,externalSlotProps:de,externalForwardedProps:F,additionalProps:{ref:n,as:m},ownerState:K,className:he(de==null?void 0:de.className,Y.root,h)}),ke=qs({elementType:re,externalSlotProps:se,ownerState:K,className:he(Y.badge,se==null?void 0:se.className)});return T.jsxs(ie,S({},le,{children:[v,T.jsx(re,S({},ke,{children:W}))]}))}),gL=kX,_X=Tx(),$X=iG({themeId:Ha,defaultTheme:_X,defaultClassName:"MuiBox-root",generateClassName:vx.generate}),Le=$X;function RX(e){return Je("MuiButton",e)}const MX=Xe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),rm=MX,TX=u.createContext({}),OX=TX,FX=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],LX=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${ue(t)}`,`size${ue(o)}`,`${i}Size${ue(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${ue(o)}`],endIcon:["endIcon",`iconSize${ue(o)}`]},c=Me(a,RX,s);return S({},s,c)},vL=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}}),AX=oe(gs,{shouldForwardProp:e=>Ho(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ue(n.color)}`],t[`size${ue(n.size)}`],t[`${n.variant}Size${ue(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return 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})`:dt(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})`:dt(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})`:dt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${rm.focusVisible}`]:S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${rm.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 ${dt(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"},[`&.${rm.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${rm.disabled}`]:{boxShadow:"none"}}),DX=oe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ue(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},vL(e))),NX=oe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ue(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},vL(e))),BX=u.forwardRef(function(t,n){const r=u.useContext(OX),o=gx(r,t),i=nt({props:o,name:"MuiButton"}),{children:s,color:a="primary",component:c="button",className:d,disabled:p=!1,disableElevation:h=!1,disableFocusRipple:m=!1,endIcon:g,focusVisibleClassName:y,fullWidth:v=!1,size:E="medium",startIcon:w,type:C,variant:x="text"}=i,P=ne(i,FX),_=S({},i,{color:a,component:c,disabled:p,disableElevation:h,disableFocusRipple:m,fullWidth:v,size:E,type:C,variant:x}),k=LX(_),I=w&&T.jsx(DX,{className:k.startIcon,ownerState:_,children:w}),R=g&&T.jsx(NX,{className:k.endIcon,ownerState:_,children:g});return T.jsxs(AX,S({ownerState:_,className:he(r.className,k.root,d),component:c,disabled:p,focusRipple:!m,focusVisibleClassName:he(k.focusVisible,y),ref:n,type:C},P,{classes:k,children:[I,s,R]}))}),Qn=BX;function zX(e){return Je("MuiCard",e)}Xe("MuiCard",["root"]);const jX=["className","raised"],HX=e=>{const{classes:t}=e;return Me({root:["root"]},zX,t)},VX=oe(xi,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),UX=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,s=ne(r,jX),a=S({},r,{raised:i}),c=HX(a);return T.jsx(VX,S({className:he(c.root,o),elevation:i?8:void 0,ref:n,ownerState:a},s))}),oy=UX;function WX(e){return Je("MuiCardContent",e)}Xe("MuiCardContent",["root"]);const GX=["className","component"],KX=e=>{const{classes:t}=e;return Me({root:["root"]},WX,t)},qX=oe("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),YX=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,s=ne(r,GX),a=S({},r,{component:i}),c=KX(a);return T.jsx(qX,S({as:i,className:he(c.root,o),ownerState:a,ref:n},s))}),iy=YX;function QX(e){return Je("PrivateSwitchBase",e)}Xe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const XX=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],JX=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${ue(o)}`],input:["input"]};return Me(i,QX,t)},ZX=oe(gs)(({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})),eJ=oe("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),tJ=u.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:s,defaultChecked:a,disabled:c,disableFocusRipple:d=!1,edge:p=!1,icon:h,id:m,inputProps:g,inputRef:y,name:v,onBlur:E,onChange:w,onFocus:C,readOnly:x,required:P=!1,tabIndex:_,type:k,value:I}=t,R=ne(t,XX),[F,A]=ls({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),O=el(),N=H=>{C&&C(H),O&&O.onFocus&&O.onFocus(H)},B=H=>{E&&E(H),O&&O.onBlur&&O.onBlur(H)},M=H=>{if(H.nativeEvent.defaultPrevented)return;const W=H.target.checked;A(W),w&&w(H,W)};let L=c;O&&typeof L=="undefined"&&(L=O.disabled);const z=k==="checkbox"||k==="radio",V=S({},t,{checked:F,disabled:L,disableFocusRipple:d,edge:p}),D=JX(V);return T.jsxs(ZX,S({component:"span",className:he(D.root,s),centerRipple:!0,focusRipple:!d,disabled:L,tabIndex:null,role:void 0,onFocus:N,onBlur:B,ownerState:V,ref:n},R,{children:[T.jsx(eJ,S({autoFocus:r,checked:o,defaultChecked:a,className:D.input,disabled:L,id:z?m:void 0,name:v,onChange:M,readOnly:x,ref:y,required:P,ownerState:V,tabIndex:_,type:k},k==="checkbox"&&I===void 0?{}:{value:I},g)),F?i:h]}))}),yL=tJ,nJ=$t(T.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"),rJ=$t(T.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"),oJ=$t(T.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 iJ(e){return Je("MuiCheckbox",e)}const sJ=Xe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),B1=sJ,lJ=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],aJ=e=>{const{classes:t,indeterminate:n,color:r}=e,o={root:["root",n&&"indeterminate",`color${ue(r)}`]},i=Me(o,iJ,t);return S({},t,i)},cJ=oe(yL,{shouldForwardProp:e=>Ho(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${ue(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.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:dt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${B1.checked}, &.${B1.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${B1.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),uJ=T.jsx(rJ,{}),dJ=T.jsx(nJ,{}),fJ=T.jsx(oJ,{}),pJ=u.forwardRef(function(t,n){var r,o;const i=nt({props:t,name:"MuiCheckbox"}),{checkedIcon:s=uJ,color:a="primary",icon:c=dJ,indeterminate:d=!1,indeterminateIcon:p=fJ,inputProps:h,size:m="medium",className:g}=i,y=ne(i,lJ),v=d?p:c,E=d?p:s,w=S({},i,{color:a,indeterminate:d,size:m}),C=aJ(w);return T.jsx(cJ,S({type:"checkbox",inputProps:S({"data-indeterminate":d},h),icon:u.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:m}),checkedIcon:u.cloneElement(E,{fontSize:(o=E.props.fontSize)!=null?o:m}),ownerState:w,ref:n,className:he(C.root,g)},y,{classes:C}))}),bL=pJ;function hJ(e){return Je("MuiCircularProgress",e)}Xe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const mJ=["className","color","disableShrink","size","style","thickness","value","variant"];let sy=e=>e,y$,b$,w$,C$;const pl=44,gJ=bs(y$||(y$=sy`
163
+ 0% {
164
+ transform: rotate(0deg);
165
+ }
166
+
167
+ 100% {
168
+ transform: rotate(360deg);
169
+ }
170
+ `)),vJ=bs(b$||(b$=sy`
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
+ `)),yJ=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${ue(r)}`],svg:["svg"],circle:["circle",`circle${ue(n)}`,o&&"circleDisableShrink"]};return Me(i,hJ,t)},bJ=oe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ue(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"&&ql(w$||(w$=sy`
186
+ animation: ${0} 1.4s linear infinite;
187
+ `),gJ)),wJ=oe("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),CJ=oe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ue(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&&ql(C$||(C$=sy`
188
+ animation: ${0} 1.4s ease-in-out infinite;
189
+ `),vJ)),xJ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,size:a=40,style:c,thickness:d=3.6,value:p=0,variant:h="indeterminate"}=r,m=ne(r,mJ),g=S({},r,{color:i,disableShrink:s,size:a,thickness:d,value:p,variant:h}),y=yJ(g),v={},E={},w={};if(h==="determinate"){const C=2*Math.PI*((pl-d)/2);v.strokeDasharray=C.toFixed(3),w["aria-valuenow"]=Math.round(p),v.strokeDashoffset=`${((100-p)/100*C).toFixed(3)}px`,E.transform="rotate(-90deg)"}return T.jsx(bJ,S({className:he(y.root,o),style:S({width:a,height:a},E,c),ownerState:g,ref:n,role:"progressbar"},w,m,{children:T.jsx(wJ,{className:y.svg,ownerState:g,viewBox:`${pl/2} ${pl/2} ${pl} ${pl}`,children:T.jsx(CJ,{className:y.circle,style:v,ownerState:g,cx:pl,cy:pl,r:(pl-d)/2,fill:"none",strokeWidth:d})})}))}),Qs=xJ,SJ=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],EJ=oe("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"})),PJ=oe(mL,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),IJ=u.forwardRef(function(t,n){var r,o,i,s,a,c;const d=nt({name:"MuiModal",props:t}),{BackdropComponent:p=PJ,BackdropProps:h,classes:m,className:g,closeAfterTransition:y=!1,children:v,component:E,components:w={},componentsProps:C={},disableAutoFocus:x=!1,disableEnforceFocus:P=!1,disableEscapeKeyDown:_=!1,disablePortal:k=!1,disableRestoreFocus:I=!1,disableScrollLock:R=!1,hideBackdrop:F=!1,keepMounted:A=!1,slotProps:O,slots:N,theme:B}=d,M=ne(d,SJ),[L,z]=u.useState(!0),V={closeAfterTransition:y,disableAutoFocus:x,disableEnforceFocus:P,disableEscapeKeyDown:_,disablePortal:k,disableRestoreFocus:I,disableScrollLock:R,hideBackdrop:F,keepMounted:A},D=S({},d,V,{exited:L}),H=(r=(o=N==null?void 0:N.root)!=null?o:w.Root)!=null?r:EJ,W=(i=(s=N==null?void 0:N.backdrop)!=null?s:w.Backdrop)!=null?i:p,K=(a=O==null?void 0:O.root)!=null?a:C.root,Y=(c=O==null?void 0:O.backdrop)!=null?c:C.backdrop;return T.jsx(Gq,S({slots:{root:H,backdrop:W},slotProps:{root:()=>S({},xw(K,D),!Ga(H)&&{as:E,theme:B},{className:he(g,K==null?void 0:K.className,m==null?void 0:m.root,!D.open&&D.exited&&(m==null?void 0:m.hidden))}),backdrop:()=>S({},h,xw(Y,D),{className:he(Y==null?void 0:Y.className,m==null?void 0:m.backdrop)})},onTransitionEnter:()=>z(!1),onTransitionExited:()=>z(!0),ref:n},M,V,{children:v}))}),ly=IJ;function kJ(e){return Je("MuiDialog",e)}const _J=Xe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),z1=_J,$J=u.createContext({}),wL=$J,RJ=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],MJ=oe(mL,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),TJ=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${ue(n)}`],paper:["paper",`paperScroll${ue(n)}`,`paperWidth${ue(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Me(s,kJ,t)},OJ=oe(ly,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),FJ=oe("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ue(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"}})),LJ=oe(xi,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ue(n.scroll)}`],t[`paperWidth${ue(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):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${z1.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}`,[`&.${z1.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,[`&.${z1.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),AJ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDialog"}),o=lr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:c,BackdropProps:d,children:p,className:h,disableEscapeKeyDown:m=!1,fullScreen:g=!1,fullWidth:y=!1,maxWidth:v="sm",onBackdropClick:E,onClose:w,open:C,PaperComponent:x=xi,PaperProps:P={},scroll:_="paper",TransitionComponent:k=hL,transitionDuration:I=i,TransitionProps:R}=r,F=ne(r,RJ),A=S({},r,{disableEscapeKeyDown:m,fullScreen:g,fullWidth:y,maxWidth:v,scroll:_}),O=TJ(A),N=u.useRef(),B=V=>{N.current=V.target===V.currentTarget},M=V=>{N.current&&(N.current=null,E&&E(V),w&&w(V,"backdropClick"))},L=sn(a),z=u.useMemo(()=>({titleId:L}),[L]);return T.jsx(OJ,S({className:he(O.root,h),closeAfterTransition:!0,components:{Backdrop:MJ},componentsProps:{backdrop:S({transitionDuration:I,as:c},d)},disableEscapeKeyDown:m,onClose:w,open:C,ref:n,onClick:M,ownerState:A},F,{children:T.jsx(k,S({appear:!0,in:C,timeout:I,role:"presentation"},R,{children:T.jsx(FJ,{className:he(O.container),onMouseDown:B,ownerState:A,children:T.jsx(LJ,S({as:x,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":L},P,{className:he(O.paper,P.className),ownerState:A,children:T.jsx(wL.Provider,{value:z,children:p})}))})}))}))}),DJ=AJ;function NJ(e){return Je("MuiDialogContent",e)}Xe("MuiDialogContent",["root","dividers"]);function BJ(e){return Je("MuiDialogTitle",e)}const zJ=Xe("MuiDialogTitle",["root"]),jJ=zJ,HJ=["className","dividers"],VJ=e=>{const{classes:t,dividers:n}=e;return Me({root:["root",n&&"dividers"]},NJ,t)},UJ=oe("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}`}:{[`.${jJ.root} + &`]:{paddingTop:0}})),WJ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=ne(r,HJ),a=S({},r,{dividers:i}),c=VJ(a);return T.jsx(UJ,S({className:he(c.root,o),ownerState:a,ref:n},s))}),GJ=WJ,KJ=["className","id"],qJ=e=>{const{classes:t}=e;return Me({root:["root"]},BJ,t)},YJ=oe(Ur,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),QJ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,s=ne(r,KJ),a=r,c=qJ(a),{titleId:d=i}=u.useContext(wL);return T.jsx(YJ,S({component:"h2",className:he(c.root,o),ownerState:a,ref:n,variant:"h6",id:i!=null?i:d},s))}),XJ=QJ;function JJ(e){return Je("MuiDivider",e)}const ZJ=Xe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),x$=ZJ,eZ=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],tZ=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:s,textAlign:a,variant:c}=e;return Me({root:["root",t&&"absolute",c,i&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},JJ,r)},nZ=oe("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)`:dt(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"}),({theme:e,ownerState:t})=>S({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}}),({theme:e,ownerState:t})=>S({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,transform:"translateX(0%)"}}),({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%"}})),rZ=oe("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)`})),oZ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:s,component:a=i?"div":"hr",flexItem:c=!1,light:d=!1,orientation:p="horizontal",role:h=a!=="hr"?"separator":void 0,textAlign:m="center",variant:g="fullWidth"}=r,y=ne(r,eZ),v=S({},r,{absolute:o,component:a,flexItem:c,light:d,orientation:p,role:h,textAlign:m,variant:g}),E=tZ(v);return T.jsx(nZ,S({as:a,className:he(E.root,s),role:h,ref:n,ownerState:v},y,{children:i?T.jsx(rZ,{className:E.wrapper,ownerState:v,children:i}):null}))}),iZ=oZ,sZ=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function lZ(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Fo(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const d=i.getComputedStyle(t);s=d.getPropertyValue("-webkit-transform")||d.getPropertyValue("transform")}let a=0,c=0;if(s&&s!=="none"&&typeof s=="string"){const d=s.split("(")[1].split(")")[0].split(",");a=parseInt(d[4],10),c=parseInt(d[5],10)}return e==="left"?o?`translateX(${o.right+a-r.left}px)`:`translateX(${i.innerWidth+a-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:e==="up"?o?`translateY(${o.bottom+c-r.top}px)`:`translateY(${i.innerHeight+c-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-c}px)`:`translateY(-${r.top+r.height-c}px)`}function aZ(e){return typeof e=="function"?e():e}function om(e,t,n){const r=aZ(n),o=lZ(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const cZ=u.forwardRef(function(t,n){const r=lr(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:c,container:d,direction:p="down",easing:h=o,in:m,onEnter:g,onEntered:y,onEntering:v,onExit:E,onExited:w,onExiting:C,style:x,timeout:P=i,TransitionComponent:_=Xv}=t,k=ne(t,sZ),I=u.useRef(null),R=Vt(c.ref,I,n),F=D=>H=>{D&&(H===void 0?D(I.current):D(I.current,H))},A=F((D,H)=>{om(p,D,d),Vx(D),g&&g(D,H)}),O=F((D,H)=>{const W=Yl({timeout:P,style:x,easing:h},{mode:"enter"});D.style.webkitTransition=r.transitions.create("-webkit-transform",S({},W)),D.style.transition=r.transitions.create("transform",S({},W)),D.style.webkitTransform="none",D.style.transform="none",v&&v(D,H)}),N=F(y),B=F(C),M=F(D=>{const H=Yl({timeout:P,style:x,easing:h},{mode:"exit"});D.style.webkitTransition=r.transitions.create("-webkit-transform",H),D.style.transition=r.transitions.create("transform",H),om(p,D,d),E&&E(D)}),L=F(D=>{D.style.webkitTransition="",D.style.transition="",w&&w(D)}),z=D=>{s&&s(I.current,D)},V=u.useCallback(()=>{I.current&&om(p,I.current,d)},[p,d]);return u.useEffect(()=>{if(m||p==="down"||p==="right")return;const D=Ks(()=>{I.current&&om(p,I.current,d)}),H=Fo(I.current);return H.addEventListener("resize",D),()=>{D.clear(),H.removeEventListener("resize",D)}},[p,m,d]),u.useEffect(()=>{m||V()},[m,V]),T.jsx(_,S({nodeRef:I,onEnter:A,onEntered:N,onEntering:O,onExit:M,onExited:L,onExiting:B,addEndListener:z,appear:a,in:m,timeout:P},k,{children:(D,H)=>u.cloneElement(c,S({ref:R,style:S({visibility:D==="exited"&&!m?"hidden":void 0},x,c.props.style)},H))}))}),uZ=cZ;function dZ(e){return Je("MuiDrawer",e)}Xe("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const fZ=["BackdropProps"],pZ=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],CL=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},hZ=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ue(n)}`,r!=="temporary"&&`paperAnchorDocked${ue(n)}`]};return Me(o,dZ,t)},mZ=oe(ly,{name:"MuiDrawer",slot:"Root",overridesResolver:CL})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),S$=oe("div",{shouldForwardProp:Ho,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:CL})({flex:"0 0 auto"}),gZ=oe(xi,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${ue(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${ue(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}`})),xL={left:"right",right:"left",top:"down",bottom:"up"};function vZ(e){return["left","right"].indexOf(e)!==-1}function yZ(e,t){return e.direction==="rtl"&&vZ(t)?xL[t]:t}const bZ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDrawer"}),o=lr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:a,children:c,className:d,elevation:p=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:m}={},onClose:g,open:y=!1,PaperProps:v={},SlideProps:E,TransitionComponent:w=uZ,transitionDuration:C=i,variant:x="temporary"}=r,P=ne(r.ModalProps,fZ),_=ne(r,pZ),k=u.useRef(!1);u.useEffect(()=>{k.current=!0},[]);const I=yZ(o,s),F=S({},r,{anchor:s,elevation:p,open:y,variant:x},_),A=hZ(F),O=T.jsx(gZ,S({elevation:x==="temporary"?p:0,square:!0},v,{className:he(A.paper,v.className),ownerState:F,children:c}));if(x==="permanent")return T.jsx(S$,S({className:he(A.root,A.docked,d),ownerState:F,ref:n},_,{children:O}));const N=T.jsx(w,S({in:y,direction:xL[I],timeout:C,appear:k.current},E,{children:O}));return x==="persistent"?T.jsx(S$,S({className:he(A.root,A.docked,d),ownerState:F,ref:n},_,{children:N})):T.jsx(mZ,S({BackdropProps:S({},a,m,{transitionDuration:C}),className:he(A.root,A.modal,d),open:y,ownerState:F,onClose:g,hideBackdrop:h,ref:n},_,P,{children:N}))}),wZ=bZ,CZ=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],xZ=e=>{const{classes:t,disableUnderline:n}=e,o=Me({root:["root",!n&&"underline"],input:["input"]},YQ,t);return S({},t,o)},SZ=oe(ny,{shouldForwardProp:e=>Ho(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ey(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return S({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Io.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Io.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Io.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Io.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(.${Io.disabled}, .${Io.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Io.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}))}),EZ=oe(ry,{name:"MuiFilledInput",slot:"Input",overridesResolver:ty})(({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.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),SL=u.forwardRef(function(t,n){var r,o,i,s;const a=nt({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:d,fullWidth:p=!1,inputComponent:h="input",multiline:m=!1,slotProps:g,slots:y={},type:v="text"}=a,E=ne(a,CZ),w=S({},a,{fullWidth:p,inputComponent:h,multiline:m,type:v}),C=xZ(a),x={root:{ownerState:w},input:{ownerState:w}},P=(g!=null?g:d)?ui(g!=null?g:d,x):x,_=(r=(o=y.root)!=null?o:c.Root)!=null?r:SZ,k=(i=(s=y.input)!=null?s:c.Input)!=null?i:EZ;return T.jsx(nd,S({slots:{root:_,input:k},componentsProps:P,fullWidth:p,inputComponent:h,multiline:m,ref:n,type:v},E,{classes:C}))});SL.muiName="Input";const EL=SL;function PZ(e){return Je("MuiFormControl",e)}Xe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const IZ=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],kZ=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ue(n)}`,r&&"fullWidth"]};return Me(o,PZ,t)},_Z=oe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,t[`margin${ue(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%"})),$Z=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:c=!1,error:d=!1,focused:p,fullWidth:h=!1,hiddenLabel:m=!1,margin:g="none",required:y=!1,size:v="medium",variant:E="outlined"}=r,w=ne(r,IZ),C=S({},r,{color:s,component:a,disabled:c,error:d,fullWidth:h,hiddenLabel:m,margin:g,required:y,size:v,variant:E}),x=kZ(C),[P,_]=u.useState(()=>{let B=!1;return o&&u.Children.forEach(o,M=>{if(!Cf(M,["Input","Select"]))return;const L=Cf(M,["Select"])?M.props.input:M;L&&NQ(L.props)&&(B=!0)}),B}),[k,I]=u.useState(()=>{let B=!1;return o&&u.Children.forEach(o,M=>{Cf(M,["Input","Select"])&&Wx(M.props,!0)&&(B=!0)}),B}),[R,F]=u.useState(!1);c&&R&&F(!1);const A=p!==void 0&&!c?p:R;let O;const N=u.useMemo(()=>({adornedStart:P,setAdornedStart:_,color:s,disabled:c,error:d,filled:k,focused:A,fullWidth:h,hiddenLabel:m,size:v,onBlur:()=>{F(!1)},onEmpty:()=>{I(!1)},onFilled:()=>{I(!0)},onFocus:()=>{F(!0)},registerEffect:O,required:y,variant:E}),[P,s,c,d,k,A,h,m,O,y,v,E]);return T.jsx(Zv.Provider,{value:N,children:T.jsx(_Z,S({as:a,ownerState:C,className:he(x.root,i),ref:n},w,{children:o}))})}),PL=$Z;function RZ(e){return Je("MuiFormControlLabel",e)}const MZ=Xe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),af=MZ,TZ=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],OZ=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${ue(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Me(s,RZ,t)},FZ=oe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${af.label}`]:t.label},t.root,t[`labelPlacement${ue(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${af.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},{[`& .${af.label}`]:{[`&.${af.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),LZ=oe("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${af.error}`]:{color:(e.vars||e).palette.error.main}})),AZ=u.forwardRef(function(t,n){var r,o;const i=nt({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:c,disabled:d,disableTypography:p,label:h,labelPlacement:m="end",required:g,slotProps:y={}}=i,v=ne(i,TZ),E=el(),w=(r=d!=null?d:c.props.disabled)!=null?r:E==null?void 0:E.disabled,C=g!=null?g:c.props.required,x={disabled:w,required:C};["checked","name","onChange","value","inputRef"].forEach(F=>{typeof c.props[F]=="undefined"&&typeof i[F]!="undefined"&&(x[F]=i[F])});const P=ic({props:i,muiFormControl:E,states:["error"]}),_=S({},i,{disabled:w,labelPlacement:m,required:C,error:P.error}),k=OZ(_),I=(o=y.typography)!=null?o:a.typography;let R=h;return R!=null&&R.type!==Ur&&!p&&(R=T.jsx(Ur,S({component:"span"},I,{className:he(k.label,I==null?void 0:I.className),children:R}))),T.jsxs(FZ,S({className:he(k.root,s),ownerState:_,ref:n},v,{children:[u.cloneElement(c,x),R,C&&T.jsxs(LZ,{ownerState:_,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]}))}),IL=AZ;function DZ(e){return Je("MuiFormHelperText",e)}const NZ=Xe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),E$=NZ;var P$;const BZ=["children","className","component","disabled","error","filled","focused","margin","required","variant"],zZ=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:c}=e,d={root:["root",o&&"disabled",i&&"error",r&&`size${ue(r)}`,n&&"contained",a&&"focused",s&&"filled",c&&"required"]};return Me(d,DZ,t)},jZ=oe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ue(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,[`&.${E$.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${E$.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),HZ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,a=ne(r,BZ),c=el(),d=ic({props:r,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),p=S({},r,{component:s,contained:d.variant==="filled"||d.variant==="outlined",variant:d.variant,size:d.size,disabled:d.disabled,error:d.error,filled:d.filled,focused:d.focused,required:d.required}),h=zZ(p);return T.jsx(jZ,S({as:s,ownerState:p,className:he(h.root,i),ref:n},a,{children:o===" "?P$||(P$=T.jsx("span",{className:"notranslate",children:"​"})):o}))}),Mp=HZ;function VZ(e){return Je("MuiFormLabel",e)}const UZ=Xe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),kf=UZ,WZ=["children","className","color","component","disabled","error","filled","focused","required"],GZ=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,c={root:["root",`color${ue(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return Me(c,VZ,t)},KZ=oe("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",[`&.${kf.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${kf.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${kf.error}`]:{color:(e.vars||e).palette.error.main}})),qZ=oe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${kf.error}`]:{color:(e.vars||e).palette.error.main}})),YZ=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,a=ne(r,WZ),c=el(),d=ic({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),p=S({},r,{color:d.color||"primary",component:s,disabled:d.disabled,error:d.error,filled:d.filled,focused:d.focused,required:d.required}),h=GZ(p);return T.jsxs(KZ,S({as:s,ownerState:p,className:he(h.root,i),ref:n},a,{children:[o,d.required&&T.jsxs(qZ,{ownerState:p,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),kL=YZ,QZ=u.createContext(),I$=QZ;function XZ(e){return Je("MuiGrid",e)}const JZ=[0,1,2,3,4,5,6,7,8,9,10],ZZ=["column-reverse","column","row-reverse","row"],eee=["nowrap","wrap-reverse","wrap"],Wd=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],np=Xe("MuiGrid",["root","container","item","zeroMinWidth",...JZ.map(e=>`spacing-xs-${e}`),...ZZ.map(e=>`direction-xs-${e}`),...eee.map(e=>`wrap-xs-${e}`),...Wd.map(e=>`grid-xs-${e}`),...Wd.map(e=>`grid-sm-${e}`),...Wd.map(e=>`grid-md-${e}`),...Wd.map(e=>`grid-lg-${e}`),...Wd.map(e=>`grid-xl-${e}`)]),tee=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function vu(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function nee({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=Bv({values:t.columns,breakpoints:e.breakpoints.values}),a=typeof s=="object"?s[o]:s;if(a==null)return r;const c=`${Math.round(n/a*1e8)/1e6}%`;let d={};if(t.container&&t.item&&t.columnSpacing!==0){const p=e.spacing(t.columnSpacing);if(p!=="0px"){const h=`calc(${c} + ${vu(p)})`;d={flexBasis:h,maxWidth:h}}}i=S({flexBasis:c,flexGrow:0,maxWidth:c},d)}return e.breakpoints.values[o]===0?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})}function ree({theme:e,ownerState:t}){const n=Bv({values:t.direction,breakpoints:e.breakpoints.values});return gi({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${np.item}`]={maxWidth:"none"}),o})}function _L({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,i)=>e[o]-e[i]);return r.slice(0,r.indexOf(n))}function oee({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=Bv({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=_L({breakpoints:e.breakpoints.values,values:i})),o=gi({theme:e},i,(a,c)=>{var d;const p=e.spacing(a);return p!=="0px"?{marginTop:`-${vu(p)}`,[`& > .${np.item}`]:{paddingTop:vu(p)}}:(d=s)!=null&&d.includes(c)?{}:{marginTop:0,[`& > .${np.item}`]:{paddingTop:0}}})}return o}function iee({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=Bv({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=_L({breakpoints:e.breakpoints.values,values:i})),o=gi({theme:e},i,(a,c)=>{var d;const p=e.spacing(a);return p!=="0px"?{width:`calc(100% + ${vu(p)})`,marginLeft:`-${vu(p)}`,[`& > .${np.item}`]:{paddingLeft:vu(p)}}:(d=s)!=null&&d.includes(c)?{}:{width:"100%",marginLeft:0,[`& > .${np.item}`]:{paddingLeft:0}}})}return o}function see(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 i=e[o];Number(i)>0&&r.push(n[`spacing-${o}-${String(i)}`])}),r}const lee=oe("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:s,wrap:a,zeroMinWidth:c,breakpoints:d}=n;let p=[];r&&(p=see(s,d,t));const h=[];return d.forEach(m=>{const g=n[m];g&&h.push(t[`grid-${m}-${String(g)}`])}),[t.root,r&&t.container,i&&t.item,c&&t.zeroMinWidth,...p,o!=="row"&&t[`direction-xs-${String(o)}`],a!=="wrap"&&t[`wrap-xs-${String(a)}`],...h]}})(({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}),ree,oee,iee,nee);function aee(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 i=`spacing-${r}-${String(o)}`;n.push(i)}}),n}const cee=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:s,zeroMinWidth:a,breakpoints:c}=e;let d=[];n&&(d=aee(i,c));const p=[];c.forEach(m=>{const g=e[m];g&&p.push(`grid-${m}-${String(g)}`)});const h={root:["root",n&&"container",o&&"item",a&&"zeroMinWidth",...d,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...p]};return Me(h,XZ,t)},uee=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiGrid"}),{breakpoints:o}=lr(),i=Rx(r),{className:s,columns:a,columnSpacing:c,component:d="div",container:p=!1,direction:h="row",item:m=!1,rowSpacing:g,spacing:y=0,wrap:v="wrap",zeroMinWidth:E=!1}=i,w=ne(i,tee),C=g||y,x=c||y,P=u.useContext(I$),_=p?a||12:P,k={},I=S({},w);o.keys.forEach(A=>{w[A]!=null&&(k[A]=w[A],delete I[A])});const R=S({},i,{columns:_,container:p,direction:h,item:m,rowSpacing:C,columnSpacing:x,wrap:v,zeroMinWidth:E,spacing:y},k,{breakpoints:o.keys}),F=cee(R);return T.jsx(I$.Provider,{value:_,children:T.jsx(lee,S({ownerState:R,className:he(F.root,s),as:d,ref:n},I))})}),Ai=uee,dee=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Rw(e){return`scale(${e}, ${Yi(e,2)})`}const fee={entering:{opacity:1,transform:Rw(1)},entered:{opacity:1,transform:"none"}},j1=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),$L=u.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:c,onEntered:d,onEntering:p,onExit:h,onExited:m,onExiting:g,style:y,timeout:v="auto",TransitionComponent:E=Xv}=t,w=ne(t,dee),C=u.useRef(),x=u.useRef(),P=lr(),_=u.useRef(null),k=Vt(_,i.ref,n),I=L=>z=>{if(L){const V=_.current;z===void 0?L(V):L(V,z)}},R=I(p),F=I((L,z)=>{Vx(L);const{duration:V,delay:D,easing:H}=Yl({style:y,timeout:v,easing:s},{mode:"enter"});let W;v==="auto"?(W=P.transitions.getAutoHeightDuration(L.clientHeight),x.current=W):W=V,L.style.transition=[P.transitions.create("opacity",{duration:W,delay:D}),P.transitions.create("transform",{duration:j1?W:W*.666,delay:D,easing:H})].join(","),c&&c(L,z)}),A=I(d),O=I(g),N=I(L=>{const{duration:z,delay:V,easing:D}=Yl({style:y,timeout:v,easing:s},{mode:"exit"});let H;v==="auto"?(H=P.transitions.getAutoHeightDuration(L.clientHeight),x.current=H):H=z,L.style.transition=[P.transitions.create("opacity",{duration:H,delay:V}),P.transitions.create("transform",{duration:j1?H:H*.666,delay:j1?V:V||H*.333,easing:D})].join(","),L.style.opacity=0,L.style.transform=Rw(.75),h&&h(L)}),B=I(m),M=L=>{v==="auto"&&(C.current=setTimeout(L,x.current||0)),r&&r(_.current,L)};return u.useEffect(()=>()=>{clearTimeout(C.current)},[]),T.jsx(E,S({appear:o,in:a,nodeRef:_,onEnter:F,onEntered:A,onEntering:R,onExit:N,onExited:B,onExiting:O,addEndListener:M,timeout:v==="auto"?null:v},w,{children:(L,z)=>u.cloneElement(i,S({style:S({opacity:0,transform:Rw(.75),visibility:L==="exited"&&!a?"hidden":void 0},fee[L],y,i.props.style),ref:k},z))}))});$L.muiSupportAuto=!0;const Pg=$L;function pee(e,t,n,r,o){const[i,s]=u.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return an(()=>{let a=!0;if(!n)return;const c=n(e),d=()=>{a&&s(c.matches)};return d(),c.addListener(d),()=>{a=!1,c.removeListener(d)}},[e,n]),i}const RL=Aa["useSyncExternalStore"];function hee(e,t,n,r,o){const i=u.useCallback(()=>t,[t]),s=u.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:p}=r(e);return()=>p}return i},[i,e,r,o,n]),[a,c]=u.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const p=n(e);return[()=>p.matches,h=>(p.addListener(h),()=>{p.removeListener(h)})]},[i,n,e]);return RL(c,a,s)}function ML(e,t={}){const n=Kv(),r=typeof window!="undefined"&&typeof window.matchMedia!="undefined",{defaultMatches:o=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:a=!1}=WF({name:"MuiUseMediaQuery",props:t,theme:n});let c=typeof e=="function"?e(n):e;return c=c.replace(/^@media( ?)/m,""),(RL!==void 0?hee:pee)(c,o,i,s,a)}const mee=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],gee=e=>{const{classes:t,disableUnderline:n}=e,o=Me({root:["root",!n&&"underline"],input:["input"]},WQ,t);return S({},t,o)},vee=oe(ny,{shouldForwardProp:e=>Ho(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ey(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"},[`&.${Il.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Il.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(.${Il.disabled}, .${Il.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Il.disabled}:before`]:{borderBottomStyle:"dotted"}})}),yee=oe(ry,{name:"MuiInput",slot:"Input",overridesResolver:ty})({}),TL=u.forwardRef(function(t,n){var r,o,i,s;const a=nt({props:t,name:"MuiInput"}),{disableUnderline:c,components:d={},componentsProps:p,fullWidth:h=!1,inputComponent:m="input",multiline:g=!1,slotProps:y,slots:v={},type:E="text"}=a,w=ne(a,mee),C=gee(a),P={root:{ownerState:{disableUnderline:c}}},_=(y!=null?y:p)?ui(y!=null?y:p,P):P,k=(r=(o=v.root)!=null?o:d.Root)!=null?r:vee,I=(i=(s=v.input)!=null?s:d.Input)!=null?i:yee;return T.jsx(nd,S({slots:{root:k,input:I},slotProps:_,fullWidth:h,inputComponent:m,multiline:g,ref:n,type:E},w,{classes:C}))});TL.muiName="Input";const OL=TL;function bee(e){return Je("MuiInputAdornment",e)}const wee=Xe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),k$=wee;var _$;const Cee=["children","className","component","disablePointerEvents","disableTypography","position","variant"],xee=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ue(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},See=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${ue(o)}`,s,r&&"hiddenLabel",i&&`size${ue(i)}`]};return Me(a,bee,t)},Eee=oe("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:xee})(({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"&&{[`&.${k$.positionStart}&:not(.${k$.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Pee=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:s="div",disablePointerEvents:a=!1,disableTypography:c=!1,position:d,variant:p}=r,h=ne(r,Cee),m=el()||{};let g=p;p&&m.variant,m&&!g&&(g=m.variant);const y=S({},r,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:a,position:d,variant:g}),v=See(y);return T.jsx(Zv.Provider,{value:null,children:T.jsx(Eee,S({as:s,ownerState:y,className:he(v.root,i),ref:n},h,{children:typeof o=="string"&&!c?T.jsx(Ur,{color:"text.secondary",children:o}):T.jsxs(u.Fragment,{children:[d==="start"?_$||(_$=T.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),qa=Pee;function Iee(e){return Je("MuiInputLabel",e)}Xe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const kee=["disableAnimation","margin","shrink","variant","className"],_ee=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,d=Me({root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r==="small"&&"sizeSmall",s],asterisk:[a&&"asterisk"]},Iee,t);return S({},t,d)},$ee=oe(kL,{shouldForwardProp:e=>Ho(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${kf.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,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)"}))),Ree=u.forwardRef(function(t,n){const r=nt({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:s}=r,a=ne(r,kee),c=el();let d=i;typeof d=="undefined"&&c&&(d=c.filled||c.focused||c.adornedStart);const p=ic({props:r,muiFormControl:c,states:["size","variant","required"]}),h=S({},r,{disableAnimation:o,formControl:c,shrink:d,size:p.size,variant:p.variant,required:p.required}),m=_ee(h);return T.jsx($ee,S({"data-shrink":d,ownerState:h,ref:n,className:he(m.root,s)},a,{classes:m}))}),FL=Ree;function Mee(e){return Je("MuiLinearProgress",e)}Xe("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Tee=["className","color","value","valueBuffer","variant"];let rd=e=>e,$$,R$,M$,T$,O$,F$;const Mw=4,Oee=bs($$||($$=rd`
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
+ `)),Fee=bs(R$||(R$=rd`
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
+ `)),Lee=bs(M$||(M$=rd`
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
+ `)),Aee=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${ue(r)}`,n],dashed:["dashed",`dashedColor${ue(r)}`],bar1:["bar",`barColor${ue(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${ue(r)}`,n==="buffer"&&`color${ue(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Me(o,Mee,t)},Kx=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?Wa(e.palette[t].main,.62):Ua(e.palette[t].main,.5),Dee=oe("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ue(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:Kx(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)"})),Nee=oe("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${ue(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=Kx(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"})},ql(T$||(T$=rd`
235
+ animation: ${0} 3s infinite linear;
236
+ `),Lee)),Bee=oe("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${ue(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 .${Mw}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${Mw}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&ql(O$||(O$=rd`
237
+ width: auto;
238
+ animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
239
+ `),Oee)),zee=oe("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${ue(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:Kx(t,e.color),transition:`transform .${Mw}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&ql(F$||(F$=rd`
240
+ width: auto;
241
+ animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
242
+ `),Fee)),jee=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:s,valueBuffer:a,variant:c="indeterminate"}=r,d=ne(r,Tee),p=S({},r,{color:i,variant:c}),h=Aee(p),m=lr(),g={},y={bar1:{},bar2:{}};if((c==="determinate"||c==="buffer")&&s!==void 0){g["aria-valuenow"]=Math.round(s),g["aria-valuemin"]=0,g["aria-valuemax"]=100;let v=s-100;m.direction==="rtl"&&(v=-v),y.bar1.transform=`translateX(${v}%)`}if(c==="buffer"&&a!==void 0){let v=(a||0)-100;m.direction==="rtl"&&(v=-v),y.bar2.transform=`translateX(${v}%)`}return T.jsxs(Dee,S({className:he(h.root,o),ownerState:p,role:"progressbar"},g,{ref:n},d,{children:[c==="buffer"?T.jsx(Nee,{className:h.dashed,ownerState:p}):null,T.jsx(Bee,{className:h.bar1,ownerState:p,style:y.bar1}),c==="determinate"?null:T.jsx(zee,{className:h.bar2,ownerState:p,style:y.bar2})]}))}),Ig=jee;function Hee(e){return Je("MuiLink",e)}const Vee=Xe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Uee=Vee,LL={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Wee=e=>LL[e]||e,Gee=({theme:e,ownerState:t})=>{const n=Wee(t.color),r=Tu(e,`palette.${n}`,!1)||t.color,o=Tu(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:dt(r,.4)},Kee=Gee,qee=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Yee=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${ue(o)}`,n==="button"&&"button",r&&"focusVisible"]};return Me(i,Hee,t)},Qee=oe(Ur,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ue(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:Kee({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"},[`&.${Uee.focusVisible}`]:{outline:"auto"}})),Xee=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:s="a",onBlur:a,onFocus:c,TypographyClasses:d,underline:p="always",variant:h="inherit",sx:m}=r,g=ne(r,qee),{isFocusVisibleRef:y,onBlur:v,onFocus:E,ref:w}=Ev(),[C,x]=u.useState(!1),P=Vt(n,w),_=F=>{v(F),y.current===!1&&x(!1),a&&a(F)},k=F=>{E(F),y.current===!0&&x(!0),c&&c(F)},I=S({},r,{color:i,component:s,focusVisible:C,underline:p,variant:h}),R=Yee(I);return T.jsx(Qee,S({color:i,className:he(R.root,o),classes:d,component:s,onBlur:_,onFocus:k,ref:P,ownerState:I,variant:h,sx:[...Object.keys(LL).includes(i)?[]:[{color:i}],...Array.isArray(m)?m:[m]]},g))}),Ao=Xee,Jee=u.createContext({}),zi=Jee;function Zee(e){return Je("MuiList",e)}Xe("MuiList",["root","padding","dense","subheader"]);const ete=["children","className","component","dense","disablePadding","subheader"],tte=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Me({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Zee,t)},nte=oe("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})),rte=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:c=!1,subheader:d}=r,p=ne(r,ete),h=u.useMemo(()=>({dense:a}),[a]),m=S({},r,{component:s,dense:a,disablePadding:c}),g=tte(m);return T.jsx(zi.Provider,{value:h,children:T.jsxs(nte,S({as:s,className:he(g.root,i),ref:n,ownerState:m},p,{children:[d,o]}))})}),ay=rte;function ote(e){return Je("MuiListItem",e)}const ite=Xe("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),zc=ite;function ste(e){return Je("MuiListItemButton",e)}const lte=Xe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),jc=lte,ate=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],cte=(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]},ute=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:s,selected:a}=e,d=Me({root:["root",r&&"dense",!i&&"gutters",s&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},ste,n);return S({},n,d)},dte=oe(gs,{shouldForwardProp:e=>Ho(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:cte})(({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"}},[`&.${jc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:dt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${jc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:dt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${jc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:dt(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})`:dt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${jc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${jc.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})),fte=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:s="div",children:a,dense:c=!1,disableGutters:d=!1,divider:p=!1,focusVisibleClassName:h,selected:m=!1,className:g}=r,y=ne(r,ate),v=u.useContext(zi),E=u.useMemo(()=>({dense:c||v.dense||!1,alignItems:o,disableGutters:d}),[o,v.dense,c,d]),w=u.useRef(null);an(()=>{i&&w.current&&w.current.focus()},[i]);const C=S({},r,{alignItems:o,dense:E.dense,disableGutters:d,divider:p,selected:m}),x=ute(C),P=Vt(w,n);return T.jsx(zi.Provider,{value:E,children:T.jsx(dte,S({ref:P,href:y.href||y.to,component:(y.href||y.to)&&s==="div"?"button":s,focusVisibleClassName:he(x.focusVisible,h),ownerState:C,className:he(x.root,g)},y,{classes:x,children:a}))})}),pte=fte;function hte(e){return Je("MuiListItemSecondaryAction",e)}Xe("MuiListItemSecondaryAction",["root","disableGutters"]);const mte=["className"],gte=e=>{const{disableGutters:t,classes:n}=e;return Me({root:["root",t&&"disableGutters"]},hte,n)},vte=oe("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})),AL=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=ne(r,mte),s=u.useContext(zi),a=S({},r,{disableGutters:s.disableGutters}),c=gte(a);return T.jsx(vte,S({className:he(c.root,o),ownerState:a,ref:n},i))});AL.muiName="ListItemSecondaryAction";const yte=AL,bte=["className"],wte=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Cte=(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]},xte=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:s,disablePadding:a,divider:c,hasSecondaryAction:d,selected:p}=e;return Me({root:["root",o&&"dense",!s&&"gutters",!a&&"padding",c&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",d&&"secondaryAction",p&&"selected"],container:["container"]},ote,r)},Ste=oe("div",{name:"MuiListItem",slot:"Root",overridesResolver:Cte})(({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&&{[`& > .${jc.root}`]:{paddingRight:48}},{[`&.${zc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${zc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:dt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${zc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:dt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${zc.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"}},[`&.${zc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:dt(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})`:dt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Ete=oe("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Pte=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:s=!1,children:a,className:c,component:d,components:p={},componentsProps:h={},ContainerComponent:m="li",ContainerProps:{className:g}={},dense:y=!1,disabled:v=!1,disableGutters:E=!1,disablePadding:w=!1,divider:C=!1,focusVisibleClassName:x,secondaryAction:P,selected:_=!1,slotProps:k={},slots:I={}}=r,R=ne(r.ContainerProps,bte),F=ne(r,wte),A=u.useContext(zi),O=u.useMemo(()=>({dense:y||A.dense||!1,alignItems:o,disableGutters:E}),[o,A.dense,y,E]),N=u.useRef(null);an(()=>{i&&N.current&&N.current.focus()},[i]);const B=u.Children.toArray(a),M=B.length&&Cf(B[B.length-1],["ListItemSecondaryAction"]),L=S({},r,{alignItems:o,autoFocus:i,button:s,dense:O.dense,disabled:v,disableGutters:E,disablePadding:w,divider:C,hasSecondaryAction:M,selected:_}),z=xte(L),V=Vt(N,n),D=I.root||p.Root||Ste,H=k.root||h.root||{},W=S({className:he(z.root,H.className,c),disabled:v},F);let K=d||"li";return s&&(W.component=d||"div",W.focusVisibleClassName=he(zc.focusVisible,x),K=gs),M?(K=!W.component&&!d?"div":K,m==="li"&&(K==="li"?K="div":W.component==="li"&&(W.component="div")),T.jsx(zi.Provider,{value:O,children:T.jsxs(Ete,S({as:m,className:he(z.container,g),ref:V,ownerState:L},R,{children:[T.jsx(D,S({},H,!Ga(D)&&{as:K,ownerState:S({},L,H.ownerState)},W,{children:B})),B.pop()]}))})):T.jsx(zi.Provider,{value:O,children:T.jsxs(D,S({},H,{as:K,ref:V},!Ga(D)&&{ownerState:S({},L,H.ownerState)},W,{children:[B,P&&T.jsx(yte,{children:P})]}))})}),DL=Pte;function Ite(e){return Je("MuiListItemIcon",e)}const kte=Xe("MuiListItemIcon",["root","alignItemsFlexStart"]),L$=kte,_te=["className"],$te=e=>{const{alignItems:t,classes:n}=e;return Me({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Ite,n)},Rte=oe("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})),Mte=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=ne(r,_te),s=u.useContext(zi),a=S({},r,{alignItems:s.alignItems}),c=$te(a);return T.jsx(Rte,S({className:he(c.root,o),ownerState:a,ref:n},i))}),js=Mte;function Tte(e){return Je("MuiListItemText",e)}const Ote=Xe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),kg=Ote,Fte=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Lte=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return Me({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Tte,t)},Ate=oe("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${kg.primary}`]:t.primary},{[`& .${kg.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})),Dte=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:a=!1,primary:c,primaryTypographyProps:d,secondary:p,secondaryTypographyProps:h}=r,m=ne(r,Fte),{dense:g}=u.useContext(zi);let y=c!=null?c:o,v=p;const E=S({},r,{disableTypography:s,inset:a,primary:!!y,secondary:!!v,dense:g}),w=Lte(E);return y!=null&&y.type!==Ur&&!s&&(y=T.jsx(Ur,S({variant:g?"body2":"body1",className:w.primary,component:d!=null&&d.variant?void 0:"span",display:"block"},d,{children:y}))),v!=null&&v.type!==Ur&&!s&&(v=T.jsx(Ur,S({variant:"body2",className:w.secondary,color:"text.secondary",display:"block"},h,{children:v}))),T.jsxs(Ate,S({className:he(w.root,i),ownerState:E,ref:n},m,{children:[y,v]}))}),us=Dte,Nte=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function H1(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function A$(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function NL(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 Gd(e,t,n,r,o,i){let s=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const c=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!NL(a,i)||c)a=o(e,a,n);else return a.focus(),!0}return!1}const Bte=u.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:c=!1,disableListWrap:d=!1,onKeyDown:p,variant:h="selectedMenu"}=t,m=ne(t,Nte),g=u.useRef(null),y=u.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});an(()=>{o&&g.current.focus()},[o]),u.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,P)=>{const _=!g.current.style.width;if(x.clientHeight<g.current.clientHeight&&_){const k=`${yF(vn(x))}px`;g.current.style[P.direction==="rtl"?"paddingLeft":"paddingRight"]=k,g.current.style.width=`calc(100% + ${k})`}return g.current}}),[]);const v=x=>{const P=g.current,_=x.key,k=vn(P).activeElement;if(_==="ArrowDown")x.preventDefault(),Gd(P,k,d,c,H1);else if(_==="ArrowUp")x.preventDefault(),Gd(P,k,d,c,A$);else if(_==="Home")x.preventDefault(),Gd(P,null,d,c,H1);else if(_==="End")x.preventDefault(),Gd(P,null,d,c,A$);else if(_.length===1){const I=y.current,R=_.toLowerCase(),F=performance.now();I.keys.length>0&&(F-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&R!==I.keys[0]&&(I.repeating=!1)),I.lastTime=F,I.keys.push(R);const A=k&&!I.repeating&&NL(k,I);I.previousKeyMatched&&(A||Gd(P,k,!1,c,H1,I))?x.preventDefault():I.previousKeyMatched=!1}p&&p(x)},E=Vt(g,n);let w=-1;u.Children.forEach(s,(x,P)=>{u.isValidElement(x)&&(x.props.disabled||(h==="selectedMenu"&&x.props.selected||w===-1)&&(w=P),w===P&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(w+=1,w>=s.length&&(w=-1)))});const C=u.Children.map(s,(x,P)=>{if(P===w){const _={};return i&&(_.autoFocus=!0),x.props.tabIndex===void 0&&h==="selectedMenu"&&(_.tabIndex=0),u.cloneElement(x,_)}return x});return T.jsx(ay,S({role:"menu",ref:E,className:a,onKeyDown:v,tabIndex:o?0:-1},m,{children:C}))}),cy=Bte;function zte(e){return Je("MuiPopover",e)}Xe("MuiPopover",["root","paper"]);const jte=["onEntering"],Hte=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function D$(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function N$(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function B$(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function V1(e){return typeof e=="function"?e():e}const Vte=e=>{const{classes:t}=e;return Me({root:["root"],paper:["paper"]},zte,t)},Ute=oe(ly,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Wte=oe(xi,{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}),Gte=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:c="anchorEl",children:d,className:p,container:h,elevation:m=8,marginThreshold:g=16,open:y,PaperProps:v={},transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:w=Pg,transitionDuration:C="auto",TransitionProps:{onEntering:x}={}}=r,P=ne(r.TransitionProps,jte),_=ne(r,Hte),k=u.useRef(),I=Vt(k,v.ref),R=S({},r,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:g,PaperProps:v,transformOrigin:E,TransitionComponent:w,transitionDuration:C,TransitionProps:P}),F=Vte(R),A=u.useCallback(()=>{if(c==="anchorPosition")return a;const W=V1(i),Y=(W&&W.nodeType===1?W:vn(k.current).body).getBoundingClientRect();return{top:Y.top+D$(Y,s.vertical),left:Y.left+N$(Y,s.horizontal)}},[i,s.horizontal,s.vertical,a,c]),O=u.useCallback(W=>({vertical:D$(W,E.vertical),horizontal:N$(W,E.horizontal)}),[E.horizontal,E.vertical]),N=u.useCallback(W=>{const K={width:W.offsetWidth,height:W.offsetHeight},Y=O(K);if(c==="none")return{top:null,left:null,transformOrigin:B$(Y)};const ie=A();let re=ie.top-Y.vertical,de=ie.left-Y.horizontal;const se=re+K.height,le=de+K.width,ke=Fo(V1(i)),ve=ke.innerHeight-g,Pe=ke.innerWidth-g;if(re<g){const ee=re-g;re-=ee,Y.vertical+=ee}else if(se>ve){const ee=se-ve;re-=ee,Y.vertical+=ee}if(de<g){const ee=de-g;de-=ee,Y.horizontal+=ee}else if(le>Pe){const ee=le-Pe;de-=ee,Y.horizontal+=ee}return{top:`${Math.round(re)}px`,left:`${Math.round(de)}px`,transformOrigin:B$(Y)}},[i,c,A,O,g]),[B,M]=u.useState(y),L=u.useCallback(()=>{const W=k.current;if(!W)return;const K=N(W);K.top!==null&&(W.style.top=K.top),K.left!==null&&(W.style.left=K.left),W.style.transformOrigin=K.transformOrigin,M(!0)},[N]),z=(W,K)=>{x&&x(W,K),L()},V=()=>{M(!1)};u.useEffect(()=>{y&&L()}),u.useImperativeHandle(o,()=>y?{updatePosition:()=>{L()}}:null,[y,L]),u.useEffect(()=>{if(!y)return;const W=Ks(()=>{L()}),K=Fo(i);return K.addEventListener("resize",W),()=>{W.clear(),K.removeEventListener("resize",W)}},[i,y,L]);let D=C;C==="auto"&&!w.muiSupportAuto&&(D=void 0);const H=h||(i?vn(V1(i)).body:void 0);return T.jsx(Ute,S({BackdropProps:{invisible:!0},className:he(F.root,p),container:H,open:y,ref:n,ownerState:R},_,{children:T.jsx(w,S({appear:!0,in:y,onEntering:z,onExited:V,timeout:D},P,{children:T.jsx(Wte,S({elevation:m},v,{ref:I,className:he(F.paper,v.className)},B?void 0:{style:S({},v.style,{opacity:0})},{ownerState:R,children:d}))}))}))}),Kte=Gte;function qte(e){return Je("MuiMenu",e)}Xe("MuiMenu",["root","paper","list"]);const Yte=["onEntering"],Qte=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],Xte={vertical:"top",horizontal:"right"},Jte={vertical:"top",horizontal:"left"},Zte=e=>{const{classes:t}=e;return Me({root:["root"],paper:["paper"],list:["list"]},qte,t)},ene=oe(Kte,{shouldForwardProp:e=>Ho(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tne=oe(xi,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),nne=oe(cy,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),rne=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,disableAutoFocusItem:s=!1,MenuListProps:a={},onClose:c,open:d,PaperProps:p={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:g}={},variant:y="selectedMenu"}=r,v=ne(r.TransitionProps,Yte),E=ne(r,Qte),w=lr(),C=w.direction==="rtl",x=S({},r,{autoFocus:o,disableAutoFocusItem:s,MenuListProps:a,onEntering:g,PaperProps:p,transitionDuration:m,TransitionProps:v,variant:y}),P=Zte(x),_=o&&!s&&d,k=u.useRef(null),I=(A,O)=>{k.current&&k.current.adjustStyleForScrollbar(A,w),g&&g(A,O)},R=A=>{A.key==="Tab"&&(A.preventDefault(),c&&c(A,"tabKeyDown"))};let F=-1;return u.Children.map(i,(A,O)=>{u.isValidElement(A)&&(A.props.disabled||(y==="selectedMenu"&&A.props.selected||F===-1)&&(F=O))}),T.jsx(ene,S({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Xte:Jte,PaperProps:S({as:tne},p,{classes:S({},p.classes,{root:P.paper})}),className:P.root,open:d,ref:n,transitionDuration:m,TransitionProps:S({onEntering:I},v),ownerState:x},E,{classes:h,children:T.jsx(nne,S({onKeyDown:R,actions:k,autoFocus:o&&(F===-1||s),autoFocusItem:_,variant:y},a,{className:he(P.list,a.className),children:i}))}))}),BL=rne;function one(e){return Je("MuiMenuItem",e)}const ine=Xe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Kd=ine,sne=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],lne=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},ane=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,c=Me({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},one,s);return S({},s,c)},cne=oe(gs,{shouldForwardProp:e=>Ho(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:lne})(({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"}},[`&.${Kd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:dt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Kd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:dt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Kd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:dt(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})`:dt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Kd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Kd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${x$.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${x$.inset}`]:{marginLeft:52},[`& .${kg.root}`]:{marginTop:0,marginBottom:0},[`& .${kg.inset}`]:{paddingLeft:36},[`& .${L$.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&S({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${L$.root} svg`]:{fontSize:"1.25rem"}}))),une=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:c=!1,focusVisibleClassName:d,role:p="menuitem",tabIndex:h,className:m}=r,g=ne(r,sne),y=u.useContext(zi),v=u.useMemo(()=>({dense:s||y.dense||!1,disableGutters:c}),[y.dense,s,c]),E=u.useRef(null);an(()=>{o&&E.current&&E.current.focus()},[o]);const w=S({},r,{dense:v.dense,divider:a,disableGutters:c}),C=ane(r),x=Vt(E,n);let P;return r.disabled||(P=h!==void 0?h:-1),T.jsx(zi.Provider,{value:v,children:T.jsx(cne,S({ref:x,role:p,tabIndex:P,component:i,focusVisibleClassName:he(C.focusVisible,d),className:he(C.root,m)},g,{ownerState:w,classes:C}))})}),Or=une;function dne(e){return Je("MuiNativeSelect",e)}const fne=Xe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),qx=fne,pne=["className","disabled","error","IconComponent","inputRef","variant"],hne=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${ue(n)}`,i&&"iconOpen",r&&"disabled"]};return Me(a,dne,t)},zL=({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"},[`&.${qx.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}}),mne=oe("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ho,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${qx.multiple}`]:t.multiple}]}})(zL),jL=({ownerState:e,theme:t})=>S({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${qx.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),gne=oe("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ue(n.variant)}`],n.open&&t.iconOpen]}})(jL),vne=u.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:c="standard"}=t,d=ne(t,pne),p=S({},t,{disabled:o,variant:c,error:i}),h=hne(p);return T.jsxs(u.Fragment,{children:[T.jsx(mne,S({ownerState:p,className:he(h.select,r),disabled:o,ref:a||n},d)),t.multiple?null:T.jsx(gne,{as:s,ownerState:p,className:h.icon})]})}),yne=vne;var z$;const bne=["children","classes","className","label","notched"],wne=oe("fieldset")({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%"}),Cne=oe("legend")(({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 xne(e){const{className:t,label:n,notched:r}=e,o=ne(e,bne),i=n!=null&&n!=="",s=S({},e,{notched:r,withLabel:i});return T.jsx(wne,S({"aria-hidden":!0,className:t,ownerState:s},o,{children:T.jsx(Cne,{ownerState:s,children:i?T.jsx("span",{children:n}):z$||(z$=T.jsx("span",{className:"notranslate",children:"​"}))})}))}const Sne=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Ene=e=>{const{classes:t}=e,r=Me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},KQ,t);return S({},t,r)},Pne=oe(ny,{shouldForwardProp:e=>Ho(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ey})(({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 .${Zi.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Zi.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Zi.focused} .${Zi.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Zi.error} .${Zi.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Zi.disabled} .${Zi.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"}))}),Ine=oe(xne,{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}}),kne=oe(ry,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ty})(({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})),HL=u.forwardRef(function(t,n){var r,o,i,s,a;const c=nt({props:t,name:"MuiOutlinedInput"}),{components:d={},fullWidth:p=!1,inputComponent:h="input",label:m,multiline:g=!1,notched:y,slots:v={},type:E="text"}=c,w=ne(c,Sne),C=Ene(c),x=el(),P=ic({props:c,muiFormControl:x,states:["required"]}),_=S({},c,{color:P.color||"primary",disabled:P.disabled,error:P.error,focused:P.focused,formControl:x,fullWidth:p,hiddenLabel:P.hiddenLabel,multiline:g,size:P.size,type:E}),k=(r=(o=v.root)!=null?o:d.Root)!=null?r:Pne,I=(i=(s=v.input)!=null?s:d.Input)!=null?i:kne;return T.jsx(nd,S({slots:{root:k,input:I},renderSuffix:R=>T.jsx(Ine,{ownerState:_,className:C.notchedOutline,label:m!=null&&m!==""&&P.required?a||(a=T.jsxs(u.Fragment,{children:[m," ","*"]})):m,notched:typeof y!="undefined"?y:!!(R.startAdornment||R.filled||R.focused)}),fullWidth:p,inputComponent:h,multiline:g,ref:n,type:E},w,{classes:S({},C,{notchedOutline:null})}))});HL.muiName="Input";const VL=HL,j$=$t(T.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),H$=$t(T.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function _ne(e){return Je("MuiSelect",e)}const $ne=Xe("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),qd=$ne;var V$;const Rne=["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"],Mne=oe("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${qd.select}`]:t.select},{[`&.${qd.select}`]:t[n.variant]},{[`&.${qd.error}`]:t.error},{[`&.${qd.multiple}`]:t.multiple}]}})(zL,{[`&.${qd.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Tne=oe("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ue(n.variant)}`],n.open&&t.iconOpen]}})(jL),One=oe("input",{shouldForwardProp:e=>JG(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 U$(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Fne(e){return e==null||typeof e=="string"&&!e.trim()}const Lne=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${ue(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Me(a,_ne,t)},Ane=u.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:s,children:a,className:c,defaultOpen:d,defaultValue:p,disabled:h,displayEmpty:m,error:g=!1,IconComponent:y,inputRef:v,labelId:E,MenuProps:w={},multiple:C,name:x,onBlur:P,onChange:_,onClose:k,onFocus:I,onOpen:R,open:F,readOnly:A,renderValue:O,SelectDisplayProps:N={},tabIndex:B,value:M,variant:L="standard"}=t,z=ne(t,Rne),[V,D]=ls({controlled:M,default:p,name:"Select"}),[H,W]=ls({controlled:F,default:d,name:"Select"}),K=u.useRef(null),Y=u.useRef(null),[ie,re]=u.useState(null),{current:de}=u.useRef(F!=null),[se,le]=u.useState(),ke=Vt(n,v),ve=u.useCallback(ze=>{Y.current=ze,ze&&re(ze)},[]),Pe=ie==null?void 0:ie.parentNode;u.useImperativeHandle(ke,()=>({focus:()=>{Y.current.focus()},node:K.current,value:V}),[V]),u.useEffect(()=>{d&&H&&ie&&!de&&(le(s?null:Pe.clientWidth),Y.current.focus())},[ie,s]),u.useEffect(()=>{i&&Y.current.focus()},[i]),u.useEffect(()=>{if(!E)return;const ze=vn(Y.current).getElementById(E);if(ze){const Ze=()=>{getSelection().isCollapsed&&Y.current.focus()};return ze.addEventListener("click",Ze),()=>{ze.removeEventListener("click",Ze)}}},[E]);const ee=(ze,Ze)=>{ze?R&&R(Ze):k&&k(Ze),de||(le(s?null:Pe.clientWidth),W(ze))},_e=ze=>{ze.button===0&&(ze.preventDefault(),Y.current.focus(),ee(!0,ze))},Re=ze=>{ee(!1,ze)},Ee=u.Children.toArray(a),pe=ze=>{const Ze=Ee.map(Fe=>Fe.props.value).indexOf(ze.target.value);if(Ze===-1)return;const Ie=Ee[Ze];D(Ie.props.value),_&&_(ze,Ie)},be=ze=>Ze=>{let Ie;if(Ze.currentTarget.hasAttribute("tabindex")){if(C){Ie=Array.isArray(V)?V.slice():[];const Fe=V.indexOf(ze.props.value);Fe===-1?Ie.push(ze.props.value):Ie.splice(Fe,1)}else Ie=ze.props.value;if(ze.props.onClick&&ze.props.onClick(Ze),V!==Ie&&(D(Ie),_)){const Fe=Ze.nativeEvent||Ze,Ve=new Fe.constructor(Fe.type,Fe);Object.defineProperty(Ve,"target",{writable:!0,value:{value:Ie,name:x}}),_(Ve,ze)}C||ee(!1,Ze)}},te=ze=>{A||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ze.key)!==-1&&(ze.preventDefault(),ee(!0,ze))},Oe=ie!==null&&H,Ye=ze=>{!Oe&&P&&(Object.defineProperty(ze,"target",{writable:!0,value:{value:V,name:x}}),P(ze))};delete z["aria-invalid"];let Ke,Ue;const Be=[];let ft=!1;(Wx({value:V})||m)&&(O?Ke=O(V):ft=!0);const yt=Ee.map(ze=>{if(!u.isValidElement(ze))return null;let Ze;if(C){if(!Array.isArray(V))throw new Error(Kl(2));Ze=V.some(Ie=>U$(Ie,ze.props.value)),Ze&&ft&&Be.push(ze.props.children)}else Ze=U$(V,ze.props.value),Ze&&ft&&(Ue=ze.props.children);return u.cloneElement(ze,{"aria-selected":Ze?"true":"false",onClick:be(ze),onKeyUp:Ie=>{Ie.key===" "&&Ie.preventDefault(),ze.props.onKeyUp&&ze.props.onKeyUp(Ie)},role:"option",selected:Ze,value:void 0,"data-value":ze.props.value})});ft&&(C?Be.length===0?Ke=null:Ke=Be.reduce((ze,Ze,Ie)=>(ze.push(Ze),Ie<Be.length-1&&ze.push(", "),ze),[]):Ke=Ue);let ut=se;!s&&de&&ie&&(ut=Pe.clientWidth);let It;typeof B!="undefined"?It=B:It=h?null:0;const bt=N.id||(x?`mui-component-select-${x}`:void 0),De=S({},t,{variant:L,value:V,open:Oe,error:g}),Ae=Lne(De);return T.jsxs(u.Fragment,{children:[T.jsx(Mne,S({ref:ve,tabIndex:It,role:"button","aria-disabled":h?"true":void 0,"aria-expanded":Oe?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[E,bt].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:te,onMouseDown:h||A?null:_e,onBlur:Ye,onFocus:I},N,{ownerState:De,className:he(N.className,Ae.select,c),id:bt,children:Fne(Ke)?V$||(V$=T.jsx("span",{className:"notranslate",children:"​"})):Ke})),T.jsx(One,S({"aria-invalid":g,value:Array.isArray(V)?V.join(","):V,name:x,ref:K,"aria-hidden":!0,onChange:pe,tabIndex:-1,disabled:h,className:Ae.nativeInput,autoFocus:i,ownerState:De},z)),T.jsx(Tne,{as:y,className:Ae.icon,ownerState:De}),T.jsx(BL,S({id:`menu-${x||""}`,anchorEl:Pe,open:Oe,onClose:Re,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},w,{MenuListProps:S({"aria-labelledby":E,role:"listbox",disableListWrap:!0},w.MenuListProps),PaperProps:S({},w.PaperProps,{style:S({minWidth:ut},w.PaperProps!=null?w.PaperProps.style:null)}),children:yt}))]})}),Dne=Ane,Nne=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Bne=e=>{const{classes:t}=e;return t},Yx={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ho(e)&&e!=="variant",slot:"Root"},zne=oe(OL,Yx)(""),jne=oe(VL,Yx)(""),Hne=oe(EL,Yx)(""),UL=u.forwardRef(function(t,n){const r=nt({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:c=!1,displayEmpty:d=!1,IconComponent:p=pL,id:h,input:m,inputProps:g,label:y,labelId:v,MenuProps:E,multiple:w=!1,native:C=!1,onClose:x,onOpen:P,open:_,renderValue:k,SelectDisplayProps:I,variant:R="outlined"}=r,F=ne(r,Nne),A=C?yne:Dne,O=el(),N=ic({props:r,muiFormControl:O,states:["variant","error"]}),B=N.variant||R,M=S({},r,{variant:B,classes:s}),L=Bne(M),z=m||{standard:T.jsx(zne,{ownerState:M}),outlined:T.jsx(jne,{label:y,ownerState:M}),filled:T.jsx(Hne,{ownerState:M})}[B],V=Vt(n,z.ref);return T.jsx(u.Fragment,{children:u.cloneElement(z,S({inputComponent:A,inputProps:S({children:i,error:N.error,IconComponent:p,variant:B,type:void 0,multiple:w},C?{id:h}:{autoWidth:o,defaultOpen:c,displayEmpty:d,labelId:v,MenuProps:E,onClose:x,onOpen:P,open:_,renderValue:k,SelectDisplayProps:S({id:h},I)},g,{classes:g?ui(L,g.classes):L},m?m.props.inputProps:{})},w&&C&&B==="outlined"?{notched:!0}:{},{ref:V,className:he(z.props.className,a)},!m&&{variant:B},F))})});UL.muiName="Select";const Qx=UL;function Vne(e){return Je("MuiSkeleton",e)}Xe("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Une=["animation","className","component","height","style","variant","width"];let _g=e=>e,W$,G$,K$,q$;const Wne=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:s}=e;return Me({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!s&&"heightAuto"]},Vne,t)},Gne=bs(W$||(W$=_g`
243
+ 0% {
244
+ opacity: 1;
245
+ }
246
+
247
+ 50% {
248
+ opacity: 0.4;
249
+ }
250
+
251
+ 100% {
252
+ opacity: 1;
253
+ }
254
+ `)),Kne=bs(G$||(G$=_g`
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
+ `)),qne=oe("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=YG(e.shape.borderRadius)||"px",r=QG(e.shape.borderRadius);return S({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:dt(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"&&ql(K$||(K$=_g`
268
+ animation: ${0} 1.5s ease-in-out 0.5s infinite;
269
+ `),Gne),({ownerState:e,theme:t})=>e.animation==="wave"&&ql(q$||(q$=_g`
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} 1.6s 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
+ `),Kne,(t.vars||t).palette.action.hover)),Yne=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:s="span",height:a,style:c,variant:d="text",width:p}=r,h=ne(r,Une),m=S({},r,{animation:o,component:s,variant:d,hasChildren:!!h.children}),g=Wne(m);return T.jsx(qne,S({as:s,ref:n,className:he(g.root,i),ownerState:m},h,{style:S({width:p,height:a},c)}))}),Qne=Yne;function Xne(e){return Je("MuiTooltip",e)}const Jne=Xe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Rl=Jne,Zne=["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 ere(e){return Math.round(e*1e5)/1e5}const tre=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${ue(i.split("-")[0])}`],arrow:["arrow"]};return Me(s,Xne,t)},nre=oe(oc,{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"] .${Rl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Rl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Rl.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"] .${Rl.arrow}`]:S({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),rre=oe("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${ue(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>S({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:dt(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:`${ere(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Rl.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"})),[`.${Rl.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"})),[`.${Rl.popper}[data-popper-placement*="top"] &`]:S({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Rl.popper}[data-popper-placement*="bottom"] &`]:S({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),ore=oe("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:dt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let im=!1,U1=null,Yd={x:0,y:0};function sm(e,t){return n=>{t&&t(n),e(n)}}const ire=u.forwardRef(function(t,n){var r,o,i,s,a,c,d,p,h,m,g,y,v,E,w,C,x,P,_;const k=nt({props:t,name:"MuiTooltip"}),{arrow:I=!1,children:R,components:F={},componentsProps:A={},describeChild:O=!1,disableFocusListener:N=!1,disableHoverListener:B=!1,disableInteractive:M=!1,disableTouchListener:L=!1,enterDelay:z=100,enterNextDelay:V=0,enterTouchDelay:D=700,followCursor:H=!1,id:W,leaveDelay:K=0,leaveTouchDelay:Y=1500,onClose:ie,onOpen:re,open:de,placement:se="bottom",PopperComponent:le,PopperProps:ke={},slotProps:ve={},slots:Pe={},title:ee,TransitionComponent:_e=Pg,TransitionProps:Re}=k,Ee=ne(k,Zne),pe=lr(),be=pe.direction==="rtl",[te,Oe]=u.useState(),[Ye,Ke]=u.useState(null),Ue=u.useRef(!1),Be=M||H,ft=u.useRef(),yt=u.useRef(),ut=u.useRef(),It=u.useRef(),[bt,De]=ls({controlled:de,default:!1,name:"Tooltip",state:"open"});let Ae=bt;const ze=sn(W),Ze=u.useRef(),Ie=u.useCallback(()=>{Ze.current!==void 0&&(document.body.style.WebkitUserSelect=Ze.current,Ze.current=void 0),clearTimeout(It.current)},[]);u.useEffect(()=>()=>{clearTimeout(ft.current),clearTimeout(yt.current),clearTimeout(ut.current),Ie()},[Ie]);const Fe=St=>{clearTimeout(U1),im=!0,De(!0),re&&!Ae&&re(St)},Ve=Pn(St=>{clearTimeout(U1),U1=setTimeout(()=>{im=!1},800+K),De(!1),ie&&Ae&&ie(St),clearTimeout(ft.current),ft.current=setTimeout(()=>{Ue.current=!1},pe.transitions.duration.shortest)}),it=St=>{Ue.current&&St.type!=="touchstart"||(te&&te.removeAttribute("title"),clearTimeout(yt.current),clearTimeout(ut.current),z||im&&V?yt.current=setTimeout(()=>{Fe(St)},im?V:z):Fe(St))},mt=St=>{clearTimeout(yt.current),clearTimeout(ut.current),ut.current=setTimeout(()=>{Ve(St)},K)},{isFocusVisibleRef:tn,onBlur:kn,onFocus:On,ref:Jn}=Ev(),[,ar]=u.useState(!1),cr=St=>{kn(St),tn.current===!1&&(ar(!1),mt(St))},bn=St=>{te||Oe(St.currentTarget),On(St),tn.current===!0&&(ar(!0),it(St))},nn=St=>{Ue.current=!0;const ur=R.props;ur.onTouchStart&&ur.onTouchStart(St)},jn=it,Uo=mt,Wi=St=>{nn(St),clearTimeout(ut.current),clearTimeout(ft.current),Ie(),Ze.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",It.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ze.current,it(St)},D)},xs=St=>{R.props.onTouchEnd&&R.props.onTouchEnd(St),Ie(),clearTimeout(ut.current),ut.current=setTimeout(()=>{Ve(St)},Y)};u.useEffect(()=>{if(!Ae)return;function St(ur){(ur.key==="Escape"||ur.key==="Esc")&&Ve(ur)}return document.addEventListener("keydown",St),()=>{document.removeEventListener("keydown",St)}},[Ve,Ae]);const Ss=Vt(R.ref,Jn,Oe,n);!ee&&ee!==0&&(Ae=!1);const ce=u.useRef(),ge=St=>{const ur=R.props;ur.onMouseMove&&ur.onMouseMove(St),Yd={x:St.clientX,y:St.clientY},ce.current&&ce.current.update()},Ne={},pt=typeof ee=="string";O?(Ne.title=!Ae&&pt&&!B?ee:null,Ne["aria-describedby"]=Ae?ze:null):(Ne["aria-label"]=pt?ee:null,Ne["aria-labelledby"]=Ae&&!pt?ze:null);const at=S({},Ne,Ee,R.props,{className:he(Ee.className,R.props.className),onTouchStart:nn,ref:Ss},H?{onMouseMove:ge}:{}),He={};L||(at.onTouchStart=Wi,at.onTouchEnd=xs),B||(at.onMouseOver=sm(jn,at.onMouseOver),at.onMouseLeave=sm(Uo,at.onMouseLeave),Be||(He.onMouseOver=jn,He.onMouseLeave=Uo)),N||(at.onFocus=sm(bn,at.onFocus),at.onBlur=sm(cr,at.onBlur),Be||(He.onFocus=bn,He.onBlur=cr));const xt=u.useMemo(()=>{var St;let ur=[{name:"arrow",enabled:!!Ye,options:{element:Ye,padding:4}}];return(St=ke.popperOptions)!=null&&St.modifiers&&(ur=ur.concat(ke.popperOptions.modifiers)),S({},ke.popperOptions,{modifiers:ur})},[Ye,ke]),Ut=S({},k,{isRtl:be,arrow:I,disableInteractive:Be,placement:se,PopperComponentProp:le,touch:Ue.current}),_n=tre(Ut),mo=(r=(o=Pe.popper)!=null?o:F.Popper)!=null?r:nre,we=(i=(s=(a=Pe.transition)!=null?a:F.Transition)!=null?s:_e)!=null?i:Pg,me=(c=(d=Pe.tooltip)!=null?d:F.Tooltip)!=null?c:rre,We=(p=(h=Pe.arrow)!=null?h:F.Arrow)!=null?p:ore,ht=sf(mo,S({},ke,(m=ve.popper)!=null?m:A.popper,{className:he(_n.popper,ke==null?void 0:ke.className,(g=(y=ve.popper)!=null?y:A.popper)==null?void 0:g.className)}),Ut),Kt=sf(we,S({},Re,(v=ve.transition)!=null?v:A.transition),Ut),Fn=sf(me,S({},(E=ve.tooltip)!=null?E:A.tooltip,{className:he(_n.tooltip,(w=(C=ve.tooltip)!=null?C:A.tooltip)==null?void 0:w.className)}),Ut),Ln=sf(We,S({},(x=ve.arrow)!=null?x:A.arrow,{className:he(_n.arrow,(P=(_=ve.arrow)!=null?_:A.arrow)==null?void 0:P.className)}),Ut);return T.jsxs(u.Fragment,{children:[u.cloneElement(R,at),T.jsx(mo,S({as:le!=null?le:oc,placement:se,anchorEl:H?{getBoundingClientRect:()=>({top:Yd.y,left:Yd.x,right:Yd.x,bottom:Yd.y,width:0,height:0})}:te,popperRef:ce,open:te?Ae:!1,id:ze,transition:!0},He,ht,{popperOptions:xt,children:({TransitionProps:St})=>T.jsx(we,S({timeout:pe.transitions.duration.shorter},St,Kt,{children:T.jsxs(me,S({},Fn,{children:[ee,I?T.jsx(We,S({},Ln,{ref:Ke})):null]}))}))}))]})}),od=ire;function sre(e){return Je("MuiSwitch",e)}const lre=Xe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Rr=lre,are=["className","color","edge","size","sx"],cre=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:s}=e,a={root:["root",n&&`edge${ue(n)}`,`size${ue(r)}`],switchBase:["switchBase",`color${ue(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=Me(a,sre,t);return S({},t,c)},ure=oe("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${ue(n.edge)}`],t[`size${ue(n.size)}`]]}})(({ownerState:e})=>S({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"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${Rr.thumb}`]:{width:16,height:16},[`& .${Rr.switchBase}`]:{padding:4,[`&.${Rr.checked}`]:{transform:"translateX(16px)"}}})),dre=oe(yL,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Rr.input}`]:t.input},n.color!=="default"&&t[`color${ue(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}),[`&.${Rr.checked}`]:{transform:"translateX(20px)"},[`&.${Rr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Rr.checked} + .${Rr.track}`]:{opacity:.5},[`&.${Rr.disabled} + .${Rr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Rr.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>S({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:dt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Rr.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:dt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Rr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Wa(e.palette[t.color].main,.62):Ua(e.palette[t.color].main,.55)}`}},[`&.${Rr.checked} + .${Rr.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),fre=oe("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}`})),pre=oe("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%"})),hre=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:s=!1,size:a="medium",sx:c}=r,d=ne(r,are),p=S({},r,{color:i,edge:s,size:a}),h=cre(p),m=T.jsx(pre,{className:h.thumb,ownerState:p});return T.jsxs(ure,{className:he(h.root,o),sx:c,ownerState:p,children:[T.jsx(dre,S({type:"checkbox",icon:m,checkedIcon:m,ref:n,ownerState:p},d,{classes:S({},h,{root:h.switchBase})})),T.jsx(fre,{className:h.track,ownerState:p})]})}),WL=hre;function mre(e){return Je("MuiTab",e)}const gre=Xe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),ga=gre,vre=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],yre=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:s,selected:a,disabled:c}=e,d={root:["root",i&&s&&"labelIcon",`textColor${ue(n)}`,r&&"fullWidth",o&&"wrapped",a&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return Me(d,mre,t)},bre=oe(gs,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${ue(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,[`& > .${ga.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,[`&.${ga.selected}`]:{opacity:1},[`&.${ga.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ga.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ga.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ga.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ga.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)})),wre=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:s=!1,fullWidth:a,icon:c,iconPosition:d="top",indicator:p,label:h,onChange:m,onClick:g,onFocus:y,selected:v,selectionFollowsFocus:E,textColor:w="inherit",value:C,wrapped:x=!1}=r,P=ne(r,vre),_=S({},r,{disabled:i,disableFocusRipple:s,selected:v,icon:!!c,iconPosition:d,label:!!h,fullWidth:a,textColor:w,wrapped:x}),k=yre(_),I=c&&h&&u.isValidElement(c)?u.cloneElement(c,{className:he(k.iconWrapper,c.props.className)}):c,R=A=>{!v&&m&&m(A,C),g&&g(A)},F=A=>{E&&!v&&m&&m(A,C),y&&y(A)};return T.jsxs(bre,S({focusRipple:!s,className:he(k.root,o),ref:n,role:"tab","aria-selected":v,disabled:i,onClick:R,onFocus:F,ownerState:_,tabIndex:v?0:-1},P,{children:[d==="top"||d==="start"?T.jsxs(u.Fragment,{children:[I,h]}):T.jsxs(u.Fragment,{children:[h,I]}),p]}))}),GL=wre,Cre=u.createContext(),xre=Cre,Sre=u.createContext(),Ere=Sre;function Pre(e){return Je("MuiTableCell",e)}const Ire=Xe("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),kre=Ire,_re=["align","className","component","padding","scope","size","sortDirection","variant"],$re=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:s}=e,a={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${ue(r)}`,o!=="normal"&&`padding${ue(o)}`,`size${ue(i)}`]};return Me(a,Pre,t)},Rre=oe("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ue(n.size)}`],n.padding!=="normal"&&t[`padding${ue(n.padding)}`],n.align!=="inherit"&&t[`align${ue(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"?Wa(dt(e.palette.divider,1),.88):Ua(dt(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",[`&.${kre.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})),Mre=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:s,padding:a,scope:c,size:d,sortDirection:p,variant:h}=r,m=ne(r,_re),g=u.useContext(xre),y=u.useContext(Ere),v=y&&y.variant==="head";let E;s?E=s:E=v?"th":"td";let w=c;E==="td"?w=void 0:!w&&v&&(w="col");const C=h||y&&y.variant,x=S({},r,{align:o,component:E,padding:a||(g&&g.padding?g.padding:"normal"),size:d||(g&&g.size?g.size:"medium"),sortDirection:p,stickyHeader:C==="head"&&g&&g.stickyHeader,variant:C}),P=$re(x);let _=null;return p&&(_=p==="asc"?"ascending":"descending"),T.jsx(Rre,S({as:E,ref:n,className:he(P.root,i),"aria-sort":_,scope:w,ownerState:x},m))}),Tw=Mre;function Tre(e){return Je("MuiToolbar",e)}Xe("MuiToolbar",["root","gutters","regular","dense"]);const Ore=["className","component","disableGutters","variant"],Fre=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Me({root:["root",!n&&"gutters",r]},Tre,t)},Lre=oe("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),Are=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:s=!1,variant:a="regular"}=r,c=ne(r,Ore),d=S({},r,{component:i,disableGutters:s,variant:a}),p=Fre(d);return T.jsx(Lre,S({as:i,className:he(p.root,o),ref:n,ownerState:d},c))}),KL=Are,Ow=$t(T.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Fw=$t(T.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var Y$,Q$,X$,J$,Z$,eR,tR,nR;const Dre=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],Nre=u.forwardRef(function(t,n){const{backIconButtonProps:r,count:o,getItemAriaLabel:i,nextIconButtonProps:s,onPageChange:a,page:c,rowsPerPage:d,showFirstButton:p,showLastButton:h}=t,m=ne(t,Dre),g=lr(),y=C=>{a(C,0)},v=C=>{a(C,c-1)},E=C=>{a(C,c+1)},w=C=>{a(C,Math.max(0,Math.ceil(o/d)-1))};return T.jsxs("div",S({ref:n},m,{children:[p&&T.jsx(ai,{onClick:y,disabled:c===0,"aria-label":i("first",c),title:i("first",c),children:g.direction==="rtl"?Y$||(Y$=T.jsx(H$,{})):Q$||(Q$=T.jsx(j$,{}))}),T.jsx(ai,S({onClick:v,disabled:c===0,color:"inherit","aria-label":i("previous",c),title:i("previous",c)},r,{children:g.direction==="rtl"?X$||(X$=T.jsx(Fw,{})):J$||(J$=T.jsx(Ow,{}))})),T.jsx(ai,S({onClick:E,disabled:o!==-1?c>=Math.ceil(o/d)-1:!1,color:"inherit","aria-label":i("next",c),title:i("next",c)},s,{children:g.direction==="rtl"?Z$||(Z$=T.jsx(Ow,{})):eR||(eR=T.jsx(Fw,{}))})),h&&T.jsx(ai,{onClick:w,disabled:c>=Math.ceil(o/d)-1,"aria-label":i("last",c),title:i("last",c),children:g.direction==="rtl"?tR||(tR=T.jsx(j$,{})):nR||(nR=T.jsx(H$,{}))})]}))}),Bre=Nre;function zre(e){return Je("MuiTablePagination",e)}const jre=Xe("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Ta=jre;var rR;const Hre=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],Vre=oe(Tw,{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}})),Ure=oe(KL,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>S({[`& .${Ta.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},[`& .${Ta.actions}`]:{flexShrink:0,marginLeft:20}})),Wre=oe("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),Gre=oe("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>S({},e.typography.body2,{flexShrink:0})),Kre=oe(Qx,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>S({[`& .${Ta.selectIcon}`]:t.selectIcon,[`& .${Ta.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Ta.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),qre=oe(Or,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Yre=oe("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>S({},e.typography.body2,{flexShrink:0}));function Qre({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function Xre(e){return`Go to ${e} page`}const Jre=e=>{const{classes:t}=e;return Me({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},zre,t)},Zre=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=Bre,backIconButtonProps:i,className:s,colSpan:a,component:c=Tw,count:d,getItemAriaLabel:p=Xre,labelDisplayedRows:h=Qre,labelRowsPerPage:m="Rows per page:",nextIconButtonProps:g,onPageChange:y,onRowsPerPageChange:v,page:E,rowsPerPage:w,rowsPerPageOptions:C=[10,25,50,100],SelectProps:x={},showFirstButton:P=!1,showLastButton:_=!1}=r,k=ne(r,Hre),I=r,R=Jre(I),F=x.native?"option":qre;let A;(c===Tw||c==="td")&&(A=a||1e3);const O=sn(x.id),N=sn(x.labelId),B=()=>d===-1?(E+1)*w:w===-1?d:Math.min(d,(E+1)*w);return T.jsx(Vre,S({colSpan:A,ref:n,as:c,ownerState:I,className:he(R.root,s)},k,{children:T.jsxs(Ure,{className:R.toolbar,children:[T.jsx(Wre,{className:R.spacer}),C.length>1&&T.jsx(Gre,{className:R.selectLabel,id:N,children:m}),C.length>1&&T.jsx(Kre,S({variant:"standard"},!x.variant&&{input:rR||(rR=T.jsx(nd,{}))},{value:w,onChange:v,id:O,labelId:N},x,{classes:S({},x.classes,{root:he(R.input,R.selectRoot,(x.classes||{}).root),select:he(R.select,(x.classes||{}).select),icon:he(R.selectIcon,(x.classes||{}).icon)}),children:C.map(M=>u.createElement(F,S({},!Ga(F)&&{ownerState:I},{className:R.menuItem,key:M.label?M.label:M,value:M.value?M.value:M}),M.label?M.label:M))})),T.jsx(Yre,{className:R.displayedRows,children:h({from:d===0?0:E*w+1,to:B(),count:d===-1?-1:d,page:E})}),T.jsx(o,{className:R.actions,backIconButtonProps:i,count:d,nextIconButtonProps:g,onPageChange:y,page:E,rowsPerPage:w,showFirstButton:P,showLastButton:_,getItemAriaLabel:p})]})}))}),eoe=Zre;function toe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function noe(e,t,n,r={},o=()=>{}){const{ease:i=toe,duration:s=300}=r;let a=null;const c=t[e];let d=!1;const p=()=>{d=!0},h=m=>{if(d){o(new Error("Animation cancelled"));return}a===null&&(a=m);const g=Math.min(1,(m-a)/s);if(t[e]=i(g)*(n-c)+c,g>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(h)};return c===n?(o(new Error("Element already at target position")),p):(requestAnimationFrame(h),p)}const roe=["onChange"],ooe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function ioe(e){const{onChange:t}=e,n=ne(e,roe),r=u.useRef(),o=u.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return an(()=>{const s=Ks(()=>{const c=r.current;i(),c!==r.current&&t(r.current)}),a=Fo(o.current);return a.addEventListener("resize",s),()=>{s.clear(),a.removeEventListener("resize",s)}},[t]),u.useEffect(()=>{i(),t(r.current)},[t]),T.jsx("div",S({style:ooe,ref:o},n))}function soe(e){return Je("MuiTabScrollButton",e)}const loe=Xe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),aoe=loe,coe=["className","slots","slotProps","direction","orientation","disabled"],uoe=e=>{const{classes:t,orientation:n,disabled:r}=e;return Me({root:["root",n,r&&"disabled"]},soe,t)},doe=oe(gs,{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,[`&.${aoe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),foe=u.forwardRef(function(t,n){var r,o;const i=nt({props:t,name:"MuiTabScrollButton"}),{className:s,slots:a={},slotProps:c={},direction:d}=i,p=ne(i,coe),m=lr().direction==="rtl",g=S({isRtl:m},i),y=uoe(g),v=(r=a.StartScrollButtonIcon)!=null?r:Ow,E=(o=a.EndScrollButtonIcon)!=null?o:Fw,w=qs({elementType:v,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),C=qs({elementType:E,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return T.jsx(doe,S({component:"div",className:he(y.root,s),ref:n,role:null,ownerState:g,tabIndex:null},p,{children:d==="left"?T.jsx(v,S({},w)):T.jsx(E,S({},C))}))}),poe=foe;function hoe(e){return Je("MuiTabs",e)}const moe=Xe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),W1=moe,goe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],oR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,iR=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,lm=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},voe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:s,scrollButtonsHideMobile:a,classes:c}=e;return Me({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},hoe,c)},yoe=oe("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${W1.scrollButtons}`]:t.scrollButtons},{[`& .${W1.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&&{[`& .${W1.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),boe=oe("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"})),woe=oe("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"})),Coe=oe("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})),xoe=oe(ioe,{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),sR={},Soe=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTabs"}),o=lr(),i=o.direction==="rtl",{"aria-label":s,"aria-labelledby":a,action:c,centered:d=!1,children:p,className:h,component:m="div",allowScrollButtonsMobile:g=!1,indicatorColor:y="primary",onChange:v,orientation:E="horizontal",ScrollButtonComponent:w=poe,scrollButtons:C="auto",selectionFollowsFocus:x,slots:P={},slotProps:_={},TabIndicatorProps:k={},TabScrollButtonProps:I={},textColor:R="primary",value:F,variant:A="standard",visibleScrollbar:O=!1}=r,N=ne(r,goe),B=A==="scrollable",M=E==="vertical",L=M?"scrollTop":"scrollLeft",z=M?"top":"left",V=M?"bottom":"right",D=M?"clientHeight":"clientWidth",H=M?"height":"width",W=S({},r,{component:m,allowScrollButtonsMobile:g,indicatorColor:y,orientation:E,vertical:M,scrollButtons:C,textColor:R,variant:A,visibleScrollbar:O,fixed:!B,hideScrollbar:B&&!O,scrollableX:B&&!M,scrollableY:B&&M,centered:d&&!B,scrollButtonsHideMobile:!g}),K=voe(W),Y=qs({elementType:P.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:W}),ie=qs({elementType:P.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:W}),[re,de]=u.useState(!1),[se,le]=u.useState(sR),[ke,ve]=u.useState({start:!1,end:!1}),[Pe,ee]=u.useState({overflow:"hidden",scrollbarWidth:0}),_e=new Map,Re=u.useRef(null),Ee=u.useRef(null),pe=()=>{const Ie=Re.current;let Fe;if(Ie){const it=Ie.getBoundingClientRect();Fe={clientWidth:Ie.clientWidth,scrollLeft:Ie.scrollLeft,scrollTop:Ie.scrollTop,scrollLeftNormalized:v_(Ie,o.direction),scrollWidth:Ie.scrollWidth,top:it.top,bottom:it.bottom,left:it.left,right:it.right}}let Ve;if(Ie&&F!==!1){const it=Ee.current.children;if(it.length>0){const mt=it[_e.get(F)];Ve=mt?mt.getBoundingClientRect():null}}return{tabsMeta:Fe,tabMeta:Ve}},be=Pn(()=>{const{tabsMeta:Ie,tabMeta:Fe}=pe();let Ve=0,it;if(M)it="top",Fe&&Ie&&(Ve=Fe.top-Ie.top+Ie.scrollTop);else if(it=i?"right":"left",Fe&&Ie){const tn=i?Ie.scrollLeftNormalized+Ie.clientWidth-Ie.scrollWidth:Ie.scrollLeft;Ve=(i?-1:1)*(Fe[it]-Ie[it]+tn)}const mt={[it]:Ve,[H]:Fe?Fe[H]:0};if(isNaN(se[it])||isNaN(se[H]))le(mt);else{const tn=Math.abs(se[it]-mt[it]),kn=Math.abs(se[H]-mt[H]);(tn>=1||kn>=1)&&le(mt)}}),te=(Ie,{animation:Fe=!0}={})=>{Fe?noe(L,Re.current,Ie,{duration:o.transitions.duration.standard}):Re.current[L]=Ie},Oe=Ie=>{let Fe=Re.current[L];M?Fe+=Ie:(Fe+=Ie*(i?-1:1),Fe*=i&&bF()==="reverse"?-1:1),te(Fe)},Ye=()=>{const Ie=Re.current[D];let Fe=0;const Ve=Array.from(Ee.current.children);for(let it=0;it<Ve.length;it+=1){const mt=Ve[it];if(Fe+mt[D]>Ie){it===0&&(Fe=Ie);break}Fe+=mt[D]}return Fe},Ke=()=>{Oe(-1*Ye())},Ue=()=>{Oe(Ye())},Be=u.useCallback(Ie=>{ee({overflow:null,scrollbarWidth:Ie})},[]),ft=()=>{const Ie={};Ie.scrollbarSizeListener=B?T.jsx(xoe,{onChange:Be,className:he(K.scrollableX,K.hideScrollbar)}):null;const Fe=ke.start||ke.end,Ve=B&&(C==="auto"&&Fe||C===!0);return Ie.scrollButtonStart=Ve?T.jsx(w,S({slots:{StartScrollButtonIcon:P.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Y},orientation:E,direction:i?"right":"left",onClick:Ke,disabled:!ke.start},I,{className:he(K.scrollButtons,I.className)})):null,Ie.scrollButtonEnd=Ve?T.jsx(w,S({slots:{EndScrollButtonIcon:P.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ie},orientation:E,direction:i?"left":"right",onClick:Ue,disabled:!ke.end},I,{className:he(K.scrollButtons,I.className)})):null,Ie},yt=Pn(Ie=>{const{tabsMeta:Fe,tabMeta:Ve}=pe();if(!(!Ve||!Fe)){if(Ve[z]<Fe[z]){const it=Fe[L]+(Ve[z]-Fe[z]);te(it,{animation:Ie})}else if(Ve[V]>Fe[V]){const it=Fe[L]+(Ve[V]-Fe[V]);te(it,{animation:Ie})}}}),ut=Pn(()=>{if(B&&C!==!1){const{scrollTop:Ie,scrollHeight:Fe,clientHeight:Ve,scrollWidth:it,clientWidth:mt}=Re.current;let tn,kn;if(M)tn=Ie>1,kn=Ie<Fe-Ve-1;else{const On=v_(Re.current,o.direction);tn=i?On<it-mt-1:On>1,kn=i?On>1:On<it-mt-1}(tn!==ke.start||kn!==ke.end)&&ve({start:tn,end:kn})}});u.useEffect(()=>{const Ie=Ks(()=>{Re.current&&(be(),ut())}),Fe=Fo(Re.current);Fe.addEventListener("resize",Ie);let Ve;return typeof ResizeObserver!="undefined"&&(Ve=new ResizeObserver(Ie),Array.from(Ee.current.children).forEach(it=>{Ve.observe(it)})),()=>{Ie.clear(),Fe.removeEventListener("resize",Ie),Ve&&Ve.disconnect()}},[be,ut]);const It=u.useMemo(()=>Ks(()=>{ut()}),[ut]);u.useEffect(()=>()=>{It.clear()},[It]),u.useEffect(()=>{de(!0)},[]),u.useEffect(()=>{be(),ut()}),u.useEffect(()=>{yt(sR!==se)},[yt,se]),u.useImperativeHandle(c,()=>({updateIndicator:be,updateScrollButtons:ut}),[be,ut]);const bt=T.jsx(Coe,S({},k,{className:he(K.indicator,k.className),ownerState:W,style:S({},se,k.style)}));let De=0;const Ae=u.Children.map(p,Ie=>{if(!u.isValidElement(Ie))return null;const Fe=Ie.props.value===void 0?De:Ie.props.value;_e.set(Fe,De);const Ve=Fe===F;return De+=1,u.cloneElement(Ie,S({fullWidth:A==="fullWidth",indicator:Ve&&!re&&bt,selected:Ve,selectionFollowsFocus:x,onChange:v,textColor:R,value:Fe},De===1&&F===!1&&!Ie.props.tabIndex?{tabIndex:0}:{}))}),ze=Ie=>{const Fe=Ee.current,Ve=vn(Fe).activeElement;if(Ve.getAttribute("role")!=="tab")return;let mt=E==="horizontal"?"ArrowLeft":"ArrowUp",tn=E==="horizontal"?"ArrowRight":"ArrowDown";switch(E==="horizontal"&&i&&(mt="ArrowRight",tn="ArrowLeft"),Ie.key){case mt:Ie.preventDefault(),lm(Fe,Ve,iR);break;case tn:Ie.preventDefault(),lm(Fe,Ve,oR);break;case"Home":Ie.preventDefault(),lm(Fe,null,oR);break;case"End":Ie.preventDefault(),lm(Fe,null,iR);break}},Ze=ft();return T.jsxs(yoe,S({className:he(K.root,h),ownerState:W,ref:n,as:m},N,{children:[Ze.scrollButtonStart,Ze.scrollbarSizeListener,T.jsxs(boe,{className:K.scroller,ownerState:W,style:{overflow:Pe.overflow,[M?`margin${i?"Left":"Right"}`:"marginBottom"]:O?void 0:-Pe.scrollbarWidth},ref:Re,onScroll:It,children:[T.jsx(woe,{"aria-label":s,"aria-labelledby":a,"aria-orientation":E==="vertical"?"vertical":null,className:K.flexContainer,ownerState:W,onKeyDown:ze,ref:Ee,role:"tablist",children:Ae}),re&&bt]}),Ze.scrollButtonEnd]}))}),qL=Soe;function Eoe(e){return Je("MuiTextField",e)}Xe("MuiTextField",["root"]);const Poe=["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"],Ioe={standard:OL,filled:EL,outlined:VL},koe=e=>{const{classes:t}=e;return Me({root:["root"]},Eoe,t)},_oe=oe(PL,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$oe=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:c="primary",defaultValue:d,disabled:p=!1,error:h=!1,FormHelperTextProps:m,fullWidth:g=!1,helperText:y,id:v,InputLabelProps:E,inputProps:w,InputProps:C,inputRef:x,label:P,maxRows:_,minRows:k,multiline:I=!1,name:R,onBlur:F,onChange:A,onFocus:O,placeholder:N,required:B=!1,rows:M,select:L=!1,SelectProps:z,type:V,value:D,variant:H="outlined"}=r,W=ne(r,Poe),K=S({},r,{autoFocus:i,color:c,disabled:p,error:h,fullWidth:g,multiline:I,required:B,select:L,variant:H}),Y=koe(K),ie={};H==="outlined"&&(E&&typeof E.shrink!="undefined"&&(ie.notched=E.shrink),ie.label=P),L&&((!z||!z.native)&&(ie.id=void 0),ie["aria-describedby"]=void 0);const re=sn(v),de=y&&re?`${re}-helper-text`:void 0,se=P&&re?`${re}-label`:void 0,le=Ioe[H],ke=T.jsx(le,S({"aria-describedby":de,autoComplete:o,autoFocus:i,defaultValue:d,fullWidth:g,multiline:I,name:R,rows:M,maxRows:_,minRows:k,type:V,value:D,id:re,inputRef:x,onBlur:F,onChange:A,onFocus:O,placeholder:N,inputProps:w},ie,C));return T.jsxs(_oe,S({className:he(Y.root,a),disabled:p,error:h,fullWidth:g,ref:n,required:B,color:c,variant:H,ownerState:K},W,{children:[P!=null&&P!==""&&T.jsx(FL,S({htmlFor:re,id:se},E,{children:P})),L?T.jsx(Qx,S({"aria-describedby":de,id:re,labelId:se,value:D,input:ke},z,{children:s})):ke,y&&T.jsx(Mp,S({id:de},m,{children:y}))]}))}),id=$oe;var Xx={},YL={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})(YL);var rt=YL.exports,G1={};const QL=UM(iY);var lR;function ot(){return lR||(lR=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=QL}(G1)),G1}var Roe=rt;Object.defineProperty(Xx,"__esModule",{value:!0});var XL=Xx.default=void 0,Moe=Roe(ot()),Toe=tt(),Ooe=(0,Moe.default)((0,Toe.jsx)("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"}),"AccountTree");XL=Xx.default=Ooe;var Jx={},Foe=rt;Object.defineProperty(Jx,"__esModule",{value:!0});var JL=Jx.default=void 0,Loe=Foe(ot()),Aoe=tt(),Doe=(0,Loe.default)((0,Aoe.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 11z"}),"Extension");JL=Jx.default=Doe;var Zx={},Noe=rt;Object.defineProperty(Zx,"__esModule",{value:!0});var ZL=Zx.default=void 0,Boe=Noe(ot()),zoe=tt(),joe=(0,Boe.default)((0,zoe.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-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}),"History");ZL=Zx.default=joe;var eS={},Hoe=rt;Object.defineProperty(eS,"__esModule",{value:!0});var tS=eS.default=void 0,Voe=Hoe(ot()),Uoe=tt(),Woe=(0,Voe.default)((0,Uoe.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");tS=eS.default=Woe;var nS={},Goe=rt;Object.defineProperty(nS,"__esModule",{value:!0});var rS=nS.default=void 0,Koe=Goe(ot()),qoe=tt(),Yoe=(0,Koe.default)((0,qoe.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-2H4V5z"}),"Logout");rS=nS.default=Yoe;var oS={},Qoe=rt;Object.defineProperty(oS,"__esModule",{value:!0});var eA=oS.default=void 0,Xoe=Qoe(ot()),aR=tt(),Joe=(0,Xoe.default)([(0,aR.jsx)("circle",{cx:"10",cy:"8",r:"4"},"0"),(0,aR.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.98zM20.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-.63zM17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"},"1")],"ManageAccounts");eA=oS.default=Joe;var iS={},Zoe=rt;Object.defineProperty(iS,"__esModule",{value:!0});var tA=iS.default=void 0,eie=Zoe(ot()),tie=tt(),nie=(0,eie.default)((0,tie.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-2zm0 13H4V5h16v11z"}),"Monitor");tA=iS.default=nie;var sS={},rie=rt;Object.defineProperty(sS,"__esModule",{value:!0});var nA=sS.default=void 0,oie=rie(ot()),iie=tt(),sie=(0,oie.default)((0,iie.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-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 2v1.93zm6.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.39z"}),"Public");nA=sS.default=sie;var lS={},lie=rt;Object.defineProperty(lS,"__esModule",{value:!0});var aS=lS.default=void 0,aie=lie(ot()),cie=tt(),uie=(0,aie.default)((0,cie.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-.61l-2.01-1.58zM12 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.6z"}),"Settings");aS=lS.default=uie;var cS={},die=rt;Object.defineProperty(cS,"__esModule",{value:!0});var rA=cS.default=void 0,fie=die(ot()),pie=tt(),hie=(0,fie.default)((0,pie.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.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7 1.62-4.33L19.12 17h-3.24z"}),"Translate");rA=cS.default=hie;var uS={},mie=rt;Object.defineProperty(uS,"__esModule",{value:!0});var oA=uS.default=void 0,gie=mie(ot()),vie=tt(),yie=(0,gie.default)((0,vie.jsx)("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}),"Code");oA=uS.default=yie;var $g={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
+ */$g.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",h=1,m=2,g=4,y=1,v=2,E=1,w=2,C=4,x=8,P=16,_=32,k=64,I=128,R=256,F=512,A=30,O="...",N=800,B=16,M=1,L=2,z=3,V=1/0,D=9007199254740991,H=17976931348623157e292,W=0/0,K=4294967295,Y=K-1,ie=K>>>1,re=[["ary",I],["bind",E],["bindKey",w],["curry",x],["curryRight",P],["flip",F],["partial",_],["partialRight",k],["rearg",R]],de="[object Arguments]",se="[object Array]",le="[object AsyncFunction]",ke="[object Boolean]",ve="[object Date]",Pe="[object DOMException]",ee="[object Error]",_e="[object Function]",Re="[object GeneratorFunction]",Ee="[object Map]",pe="[object Number]",be="[object Null]",te="[object Object]",Oe="[object Promise]",Ye="[object Proxy]",Ke="[object RegExp]",Ue="[object Set]",Be="[object String]",ft="[object Symbol]",yt="[object Undefined]",ut="[object WeakMap]",It="[object WeakSet]",bt="[object ArrayBuffer]",De="[object DataView]",Ae="[object Float32Array]",ze="[object Float64Array]",Ze="[object Int8Array]",Ie="[object Int16Array]",Fe="[object Int32Array]",Ve="[object Uint8Array]",it="[object Uint8ClampedArray]",mt="[object Uint16Array]",tn="[object Uint32Array]",kn=/\b__p \+= '';/g,On=/\b(__p \+=) '' \+/g,Jn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ar=/&(?:amp|lt|gt|quot|#39);/g,cr=/[&<>"']/g,bn=RegExp(ar.source),nn=RegExp(cr.source),jn=/<%-([\s\S]+?)%>/g,Uo=/<%([\s\S]+?)%>/g,Wi=/<%=([\s\S]+?)%>/g,xs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ss=/^\w*$/,ce=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ge=/[\\^$.*+?()[\]{}|]/g,Ne=RegExp(ge.source),pt=/^\s+/,at=/\s/,He=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,xt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ut=/,? & /,_n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,mo=/[()=,{}\[\]\/\s]/,we=/\\(\\)?/g,me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,We=/\w*$/,ht=/^[-+]0x[0-9a-f]+$/i,Kt=/^0b[01]+$/i,Fn=/^\[object .+?Constructor\]$/,Ln=/^0o[0-7]+$/i,St=/^(?:0|[1-9]\d*)$/,ur=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gp=/($^)/,BN=/['\n\r\u2028\u2029\\]/g,Kp="\\ud800-\\udfff",zN="\\u0300-\\u036f",jN="\\ufe20-\\ufe2f",HN="\\u20d0-\\u20ff",SP=zN+jN+HN,EP="\\u2700-\\u27bf",PP="a-z\\xdf-\\xf6\\xf8-\\xff",VN="\\xac\\xb1\\xd7\\xf7",UN="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",WN="\\u2000-\\u206f",GN=" \\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",IP="A-Z\\xc0-\\xd6\\xd8-\\xde",kP="\\ufe0e\\ufe0f",_P=VN+UN+WN+GN,Gy="['’]",KN="["+Kp+"]",$P="["+_P+"]",qp="["+SP+"]",RP="\\d+",qN="["+EP+"]",MP="["+PP+"]",TP="[^"+Kp+_P+RP+EP+PP+IP+"]",Ky="\\ud83c[\\udffb-\\udfff]",YN="(?:"+qp+"|"+Ky+")",OP="[^"+Kp+"]",qy="(?:\\ud83c[\\udde6-\\uddff]){2}",Yy="[\\ud800-\\udbff][\\udc00-\\udfff]",dc="["+IP+"]",FP="\\u200d",LP="(?:"+MP+"|"+TP+")",QN="(?:"+dc+"|"+TP+")",AP="(?:"+Gy+"(?:d|ll|m|re|s|t|ve))?",DP="(?:"+Gy+"(?:D|LL|M|RE|S|T|VE))?",NP=YN+"?",BP="["+kP+"]?",XN="(?:"+FP+"(?:"+[OP,qy,Yy].join("|")+")"+BP+NP+")*",JN="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ZN="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",zP=BP+NP+XN,e5="(?:"+[qN,qy,Yy].join("|")+")"+zP,t5="(?:"+[OP+qp+"?",qp,qy,Yy,KN].join("|")+")",n5=RegExp(Gy,"g"),r5=RegExp(qp,"g"),Qy=RegExp(Ky+"(?="+Ky+")|"+t5+zP,"g"),o5=RegExp([dc+"?"+MP+"+"+AP+"(?="+[$P,dc,"$"].join("|")+")",QN+"+"+DP+"(?="+[$P,dc+LP,"$"].join("|")+")",dc+"?"+LP+"+"+AP,dc+"+"+DP,ZN,JN,RP,e5].join("|"),"g"),i5=RegExp("["+FP+Kp+SP+kP+"]"),s5=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,l5=["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"],a5=-1,wn={};wn[Ae]=wn[ze]=wn[Ze]=wn[Ie]=wn[Fe]=wn[Ve]=wn[it]=wn[mt]=wn[tn]=!0,wn[de]=wn[se]=wn[bt]=wn[ke]=wn[De]=wn[ve]=wn[ee]=wn[_e]=wn[Ee]=wn[pe]=wn[te]=wn[Ke]=wn[Ue]=wn[Be]=wn[ut]=!1;var hn={};hn[de]=hn[se]=hn[bt]=hn[De]=hn[ke]=hn[ve]=hn[Ae]=hn[ze]=hn[Ze]=hn[Ie]=hn[Fe]=hn[Ee]=hn[pe]=hn[te]=hn[Ke]=hn[Ue]=hn[Be]=hn[ft]=hn[Ve]=hn[it]=hn[mt]=hn[tn]=!0,hn[ee]=hn[_e]=hn[ut]=!1;var c5={À:"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"},u5={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},d5={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},f5={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},p5=parseFloat,h5=parseInt,jP=typeof Sn=="object"&&Sn&&Sn.Object===Object&&Sn,m5=typeof self=="object"&&self&&self.Object===Object&&self,vr=jP||m5||Function("return this")(),Xy=t&&!t.nodeType&&t,la=Xy&&!0&&e&&!e.nodeType&&e,HP=la&&la.exports===Xy,Jy=HP&&jP.process,Wo=function(){try{var J=la&&la.require&&la.require("util").types;return J||Jy&&Jy.binding&&Jy.binding("util")}catch(ye){}}(),VP=Wo&&Wo.isArrayBuffer,UP=Wo&&Wo.isDate,WP=Wo&&Wo.isMap,GP=Wo&&Wo.isRegExp,KP=Wo&&Wo.isSet,qP=Wo&&Wo.isTypedArray;function go(J,ye,fe){switch(fe.length){case 0:return J.call(ye);case 1:return J.call(ye,fe[0]);case 2:return J.call(ye,fe[0],fe[1]);case 3:return J.call(ye,fe[0],fe[1],fe[2])}return J.apply(ye,fe)}function g5(J,ye,fe,qe){for(var kt=-1,Qt=J==null?0:J.length;++kt<Qt;){var tr=J[kt];ye(qe,tr,fe(tr),J)}return qe}function Go(J,ye){for(var fe=-1,qe=J==null?0:J.length;++fe<qe&&ye(J[fe],fe,J)!==!1;);return J}function v5(J,ye){for(var fe=J==null?0:J.length;fe--&&ye(J[fe],fe,J)!==!1;);return J}function YP(J,ye){for(var fe=-1,qe=J==null?0:J.length;++fe<qe;)if(!ye(J[fe],fe,J))return!1;return!0}function nl(J,ye){for(var fe=-1,qe=J==null?0:J.length,kt=0,Qt=[];++fe<qe;){var tr=J[fe];ye(tr,fe,J)&&(Qt[kt++]=tr)}return Qt}function Yp(J,ye){var fe=J==null?0:J.length;return!!fe&&fc(J,ye,0)>-1}function Zy(J,ye,fe){for(var qe=-1,kt=J==null?0:J.length;++qe<kt;)if(fe(ye,J[qe]))return!0;return!1}function $n(J,ye){for(var fe=-1,qe=J==null?0:J.length,kt=Array(qe);++fe<qe;)kt[fe]=ye(J[fe],fe,J);return kt}function rl(J,ye){for(var fe=-1,qe=ye.length,kt=J.length;++fe<qe;)J[kt+fe]=ye[fe];return J}function e0(J,ye,fe,qe){var kt=-1,Qt=J==null?0:J.length;for(qe&&Qt&&(fe=J[++kt]);++kt<Qt;)fe=ye(fe,J[kt],kt,J);return fe}function y5(J,ye,fe,qe){var kt=J==null?0:J.length;for(qe&&kt&&(fe=J[--kt]);kt--;)fe=ye(fe,J[kt],kt,J);return fe}function t0(J,ye){for(var fe=-1,qe=J==null?0:J.length;++fe<qe;)if(ye(J[fe],fe,J))return!0;return!1}var b5=n0("length");function w5(J){return J.split("")}function C5(J){return J.match(_n)||[]}function QP(J,ye,fe){var qe;return fe(J,function(kt,Qt,tr){if(ye(kt,Qt,tr))return qe=Qt,!1}),qe}function Qp(J,ye,fe,qe){for(var kt=J.length,Qt=fe+(qe?1:-1);qe?Qt--:++Qt<kt;)if(ye(J[Qt],Qt,J))return Qt;return-1}function fc(J,ye,fe){return ye===ye?O5(J,ye,fe):Qp(J,XP,fe)}function x5(J,ye,fe,qe){for(var kt=fe-1,Qt=J.length;++kt<Qt;)if(qe(J[kt],ye))return kt;return-1}function XP(J){return J!==J}function JP(J,ye){var fe=J==null?0:J.length;return fe?o0(J,ye)/fe:W}function n0(J){return function(ye){return ye==null?n:ye[J]}}function r0(J){return function(ye){return J==null?n:J[ye]}}function ZP(J,ye,fe,qe,kt){return kt(J,function(Qt,tr,fn){fe=qe?(qe=!1,Qt):ye(fe,Qt,tr,fn)}),fe}function S5(J,ye){var fe=J.length;for(J.sort(ye);fe--;)J[fe]=J[fe].value;return J}function o0(J,ye){for(var fe,qe=-1,kt=J.length;++qe<kt;){var Qt=ye(J[qe]);Qt!==n&&(fe=fe===n?Qt:fe+Qt)}return fe}function i0(J,ye){for(var fe=-1,qe=Array(J);++fe<J;)qe[fe]=ye(fe);return qe}function E5(J,ye){return $n(ye,function(fe){return[fe,J[fe]]})}function e2(J){return J&&J.slice(0,o2(J)+1).replace(pt,"")}function vo(J){return function(ye){return J(ye)}}function s0(J,ye){return $n(ye,function(fe){return J[fe]})}function vd(J,ye){return J.has(ye)}function t2(J,ye){for(var fe=-1,qe=J.length;++fe<qe&&fc(ye,J[fe],0)>-1;);return fe}function n2(J,ye){for(var fe=J.length;fe--&&fc(ye,J[fe],0)>-1;);return fe}function P5(J,ye){for(var fe=J.length,qe=0;fe--;)J[fe]===ye&&++qe;return qe}var I5=r0(c5),k5=r0(u5);function _5(J){return"\\"+f5[J]}function $5(J,ye){return J==null?n:J[ye]}function pc(J){return i5.test(J)}function R5(J){return s5.test(J)}function M5(J){for(var ye,fe=[];!(ye=J.next()).done;)fe.push(ye.value);return fe}function l0(J){var ye=-1,fe=Array(J.size);return J.forEach(function(qe,kt){fe[++ye]=[kt,qe]}),fe}function r2(J,ye){return function(fe){return J(ye(fe))}}function ol(J,ye){for(var fe=-1,qe=J.length,kt=0,Qt=[];++fe<qe;){var tr=J[fe];(tr===ye||tr===p)&&(J[fe]=p,Qt[kt++]=fe)}return Qt}function Xp(J){var ye=-1,fe=Array(J.size);return J.forEach(function(qe){fe[++ye]=qe}),fe}function T5(J){var ye=-1,fe=Array(J.size);return J.forEach(function(qe){fe[++ye]=[qe,qe]}),fe}function O5(J,ye,fe){for(var qe=fe-1,kt=J.length;++qe<kt;)if(J[qe]===ye)return qe;return-1}function F5(J,ye,fe){for(var qe=fe+1;qe--;)if(J[qe]===ye)return qe;return qe}function hc(J){return pc(J)?A5(J):b5(J)}function Si(J){return pc(J)?D5(J):w5(J)}function o2(J){for(var ye=J.length;ye--&&at.test(J.charAt(ye)););return ye}var L5=r0(d5);function A5(J){for(var ye=Qy.lastIndex=0;Qy.test(J);)++ye;return ye}function D5(J){return J.match(Qy)||[]}function N5(J){return J.match(o5)||[]}var B5=function J(ye){ye=ye==null?vr:mc.defaults(vr.Object(),ye,mc.pick(vr,l5));var fe=ye.Array,qe=ye.Date,kt=ye.Error,Qt=ye.Function,tr=ye.Math,fn=ye.Object,a0=ye.RegExp,z5=ye.String,Ko=ye.TypeError,Jp=fe.prototype,j5=Qt.prototype,gc=fn.prototype,Zp=ye["__core-js_shared__"],eh=j5.toString,rn=gc.hasOwnProperty,H5=0,i2=function(){var l=/[^.]+$/.exec(Zp&&Zp.keys&&Zp.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),th=gc.toString,V5=eh.call(fn),U5=vr._,W5=a0("^"+eh.call(rn).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nh=HP?ye.Buffer:n,il=ye.Symbol,rh=ye.Uint8Array,s2=nh?nh.allocUnsafe:n,oh=r2(fn.getPrototypeOf,fn),l2=fn.create,a2=gc.propertyIsEnumerable,ih=Jp.splice,c2=il?il.isConcatSpreadable:n,yd=il?il.iterator:n,aa=il?il.toStringTag:n,sh=function(){try{var l=pa(fn,"defineProperty");return l({},"",{}),l}catch(f){}}(),G5=ye.clearTimeout!==vr.clearTimeout&&ye.clearTimeout,K5=qe&&qe.now!==vr.Date.now&&qe.now,q5=ye.setTimeout!==vr.setTimeout&&ye.setTimeout,lh=tr.ceil,ah=tr.floor,c0=fn.getOwnPropertySymbols,Y5=nh?nh.isBuffer:n,u2=ye.isFinite,Q5=Jp.join,X5=r2(fn.keys,fn),nr=tr.max,Pr=tr.min,J5=qe.now,Z5=ye.parseInt,d2=tr.random,e3=Jp.reverse,u0=pa(ye,"DataView"),bd=pa(ye,"Map"),d0=pa(ye,"Promise"),vc=pa(ye,"Set"),wd=pa(ye,"WeakMap"),Cd=pa(fn,"create"),ch=wd&&new wd,yc={},t3=ha(u0),n3=ha(bd),r3=ha(d0),o3=ha(vc),i3=ha(wd),uh=il?il.prototype:n,xd=uh?uh.valueOf:n,f2=uh?uh.toString:n;function U(l){if(Hn(l)&&!_t(l)&&!(l instanceof zt)){if(l instanceof qo)return l;if(rn.call(l,"__wrapped__"))return pI(l)}return new qo(l)}var bc=function(){function l(){}return function(f){if(!An(f))return{};if(l2)return l2(f);l.prototype=f;var b=new l;return l.prototype=n,b}}();function dh(){}function qo(l,f){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}U.templateSettings={escape:jn,evaluate:Uo,interpolate:Wi,variable:"",imports:{_:U}},U.prototype=dh.prototype,U.prototype.constructor=U,qo.prototype=bc(dh.prototype),qo.prototype.constructor=qo;function zt(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function s3(){var l=new zt(this.__wrapped__);return l.__actions__=Qr(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=Qr(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=Qr(this.__views__),l}function l3(){if(this.__filtered__){var l=new zt(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function a3(){var l=this.__wrapped__.value(),f=this.__dir__,b=_t(l),$=f<0,j=b?l.length:0,G=wB(0,j,this.__views__),q=G.start,Q=G.end,Z=Q-q,xe=$?Q:q-1,Se=this.__iteratees__,$e=Se.length,je=0,st=Pr(Z,this.__takeCount__);if(!b||!$&&j==Z&&st==Z)return A2(l,this.__actions__);var wt=[];e:for(;Z--&&je<st;){xe+=f;for(var Ot=-1,Ct=l[xe];++Ot<$e;){var At=Se[Ot],Ht=At.iteratee,wo=At.type,Br=Ht(Ct);if(wo==L)Ct=Br;else if(!Br){if(wo==M)continue e;break e}}wt[je++]=Ct}return wt}zt.prototype=bc(dh.prototype),zt.prototype.constructor=zt;function ca(l){var f=-1,b=l==null?0:l.length;for(this.clear();++f<b;){var $=l[f];this.set($[0],$[1])}}function c3(){this.__data__=Cd?Cd(null):{},this.size=0}function u3(l){var f=this.has(l)&&delete this.__data__[l];return this.size-=f?1:0,f}function d3(l){var f=this.__data__;if(Cd){var b=f[l];return b===c?n:b}return rn.call(f,l)?f[l]:n}function f3(l){var f=this.__data__;return Cd?f[l]!==n:rn.call(f,l)}function p3(l,f){var b=this.__data__;return this.size+=this.has(l)?0:1,b[l]=Cd&&f===n?c:f,this}ca.prototype.clear=c3,ca.prototype.delete=u3,ca.prototype.get=d3,ca.prototype.has=f3,ca.prototype.set=p3;function Es(l){var f=-1,b=l==null?0:l.length;for(this.clear();++f<b;){var $=l[f];this.set($[0],$[1])}}function h3(){this.__data__=[],this.size=0}function m3(l){var f=this.__data__,b=fh(f,l);if(b<0)return!1;var $=f.length-1;return b==$?f.pop():ih.call(f,b,1),--this.size,!0}function g3(l){var f=this.__data__,b=fh(f,l);return b<0?n:f[b][1]}function v3(l){return fh(this.__data__,l)>-1}function y3(l,f){var b=this.__data__,$=fh(b,l);return $<0?(++this.size,b.push([l,f])):b[$][1]=f,this}Es.prototype.clear=h3,Es.prototype.delete=m3,Es.prototype.get=g3,Es.prototype.has=v3,Es.prototype.set=y3;function Ps(l){var f=-1,b=l==null?0:l.length;for(this.clear();++f<b;){var $=l[f];this.set($[0],$[1])}}function b3(){this.size=0,this.__data__={hash:new ca,map:new(bd||Es),string:new ca}}function w3(l){var f=Eh(this,l).delete(l);return this.size-=f?1:0,f}function C3(l){return Eh(this,l).get(l)}function x3(l){return Eh(this,l).has(l)}function S3(l,f){var b=Eh(this,l),$=b.size;return b.set(l,f),this.size+=b.size==$?0:1,this}Ps.prototype.clear=b3,Ps.prototype.delete=w3,Ps.prototype.get=C3,Ps.prototype.has=x3,Ps.prototype.set=S3;function ua(l){var f=-1,b=l==null?0:l.length;for(this.__data__=new Ps;++f<b;)this.add(l[f])}function E3(l){return this.__data__.set(l,c),this}function P3(l){return this.__data__.has(l)}ua.prototype.add=ua.prototype.push=E3,ua.prototype.has=P3;function Ei(l){var f=this.__data__=new Es(l);this.size=f.size}function I3(){this.__data__=new Es,this.size=0}function k3(l){var f=this.__data__,b=f.delete(l);return this.size=f.size,b}function _3(l){return this.__data__.get(l)}function $3(l){return this.__data__.has(l)}function R3(l,f){var b=this.__data__;if(b instanceof Es){var $=b.__data__;if(!bd||$.length<o-1)return $.push([l,f]),this.size=++b.size,this;b=this.__data__=new Ps($)}return b.set(l,f),this.size=b.size,this}Ei.prototype.clear=I3,Ei.prototype.delete=k3,Ei.prototype.get=_3,Ei.prototype.has=$3,Ei.prototype.set=R3;function p2(l,f){var b=_t(l),$=!b&&ma(l),j=!b&&!$&&ul(l),G=!b&&!$&&!j&&Sc(l),q=b||$||j||G,Q=q?i0(l.length,z5):[],Z=Q.length;for(var xe in l)(f||rn.call(l,xe))&&!(q&&(xe=="length"||j&&(xe=="offset"||xe=="parent")||G&&(xe=="buffer"||xe=="byteLength"||xe=="byteOffset")||$s(xe,Z)))&&Q.push(xe);return Q}function h2(l){var f=l.length;return f?l[x0(0,f-1)]:n}function M3(l,f){return Ph(Qr(l),da(f,0,l.length))}function T3(l){return Ph(Qr(l))}function f0(l,f,b){(b!==n&&!Pi(l[f],b)||b===n&&!(f in l))&&Is(l,f,b)}function Sd(l,f,b){var $=l[f];(!(rn.call(l,f)&&Pi($,b))||b===n&&!(f in l))&&Is(l,f,b)}function fh(l,f){for(var b=l.length;b--;)if(Pi(l[b][0],f))return b;return-1}function O3(l,f,b,$){return sl(l,function(j,G,q){f($,j,b(j),q)}),$}function m2(l,f){return l&&Ki(f,dr(f),l)}function F3(l,f){return l&&Ki(f,Jr(f),l)}function Is(l,f,b){f=="__proto__"&&sh?sh(l,f,{configurable:!0,enumerable:!0,value:b,writable:!0}):l[f]=b}function p0(l,f){for(var b=-1,$=f.length,j=fe($),G=l==null;++b<$;)j[b]=G?n:K0(l,f[b]);return j}function da(l,f,b){return l===l&&(b!==n&&(l=l<=b?l:b),f!==n&&(l=l>=f?l:f)),l}function Yo(l,f,b,$,j,G){var q,Q=f&h,Z=f&m,xe=f&g;if(b&&(q=j?b(l,$,j,G):b(l)),q!==n)return q;if(!An(l))return l;var Se=_t(l);if(Se){if(q=xB(l),!Q)return Qr(l,q)}else{var $e=Ir(l),je=$e==_e||$e==Re;if(ul(l))return B2(l,Q);if($e==te||$e==de||je&&!j){if(q=Z||je?{}:oI(l),!Q)return Z?dB(l,F3(q,l)):uB(l,m2(q,l))}else{if(!hn[$e])return j?l:{};q=SB(l,$e,Q)}}G||(G=new Ei);var st=G.get(l);if(st)return st;G.set(l,q),OI(l)?l.forEach(function(Ct){q.add(Yo(Ct,f,b,Ct,l,G))}):MI(l)&&l.forEach(function(Ct,At){q.set(At,Yo(Ct,f,b,At,l,G))});var wt=xe?Z?O0:T0:Z?Jr:dr,Ot=Se?n:wt(l);return Go(Ot||l,function(Ct,At){Ot&&(At=Ct,Ct=l[At]),Sd(q,At,Yo(Ct,f,b,At,l,G))}),q}function L3(l){var f=dr(l);return function(b){return g2(b,l,f)}}function g2(l,f,b){var $=b.length;if(l==null)return!$;for(l=fn(l);$--;){var j=b[$],G=f[j],q=l[j];if(q===n&&!(j in l)||!G(q))return!1}return!0}function v2(l,f,b){if(typeof l!="function")throw new Ko(s);return Rd(function(){l.apply(n,b)},f)}function Ed(l,f,b,$){var j=-1,G=Yp,q=!0,Q=l.length,Z=[],xe=f.length;if(!Q)return Z;b&&(f=$n(f,vo(b))),$?(G=Zy,q=!1):f.length>=o&&(G=vd,q=!1,f=new ua(f));e:for(;++j<Q;){var Se=l[j],$e=b==null?Se:b(Se);if(Se=$||Se!==0?Se:0,q&&$e===$e){for(var je=xe;je--;)if(f[je]===$e)continue e;Z.push(Se)}else G(f,$e,$)||Z.push(Se)}return Z}var sl=U2(Gi),y2=U2(m0,!0);function A3(l,f){var b=!0;return sl(l,function($,j,G){return b=!!f($,j,G),b}),b}function ph(l,f,b){for(var $=-1,j=l.length;++$<j;){var G=l[$],q=f(G);if(q!=null&&(Q===n?q===q&&!bo(q):b(q,Q)))var Q=q,Z=G}return Z}function D3(l,f,b,$){var j=l.length;for(b=Mt(b),b<0&&(b=-b>j?0:j+b),$=$===n||$>j?j:Mt($),$<0&&($+=j),$=b>$?0:LI($);b<$;)l[b++]=f;return l}function b2(l,f){var b=[];return sl(l,function($,j,G){f($,j,G)&&b.push($)}),b}function yr(l,f,b,$,j){var G=-1,q=l.length;for(b||(b=PB),j||(j=[]);++G<q;){var Q=l[G];f>0&&b(Q)?f>1?yr(Q,f-1,b,$,j):rl(j,Q):$||(j[j.length]=Q)}return j}var h0=W2(),w2=W2(!0);function Gi(l,f){return l&&h0(l,f,dr)}function m0(l,f){return l&&w2(l,f,dr)}function hh(l,f){return nl(f,function(b){return Rs(l[b])})}function fa(l,f){f=al(f,l);for(var b=0,$=f.length;l!=null&&b<$;)l=l[qi(f[b++])];return b&&b==$?l:n}function C2(l,f,b){var $=f(l);return _t(l)?$:rl($,b(l))}function Dr(l){return l==null?l===n?yt:be:aa&&aa in fn(l)?bB(l):TB(l)}function g0(l,f){return l>f}function N3(l,f){return l!=null&&rn.call(l,f)}function B3(l,f){return l!=null&&f in fn(l)}function z3(l,f,b){return l>=Pr(f,b)&&l<nr(f,b)}function v0(l,f,b){for(var $=b?Zy:Yp,j=l[0].length,G=l.length,q=G,Q=fe(G),Z=1/0,xe=[];q--;){var Se=l[q];q&&f&&(Se=$n(Se,vo(f))),Z=Pr(Se.length,Z),Q[q]=!b&&(f||j>=120&&Se.length>=120)?new ua(q&&Se):n}Se=l[0];var $e=-1,je=Q[0];e:for(;++$e<j&&xe.length<Z;){var st=Se[$e],wt=f?f(st):st;if(st=b||st!==0?st:0,!(je?vd(je,wt):$(xe,wt,b))){for(q=G;--q;){var Ot=Q[q];if(!(Ot?vd(Ot,wt):$(l[q],wt,b)))continue e}je&&je.push(wt),xe.push(st)}}return xe}function j3(l,f,b,$){return Gi(l,function(j,G,q){f($,b(j),G,q)}),$}function Pd(l,f,b){f=al(f,l),l=aI(l,f);var $=l==null?l:l[qi(Xo(f))];return $==null?n:go($,l,b)}function x2(l){return Hn(l)&&Dr(l)==de}function H3(l){return Hn(l)&&Dr(l)==bt}function V3(l){return Hn(l)&&Dr(l)==ve}function Id(l,f,b,$,j){return l===f?!0:l==null||f==null||!Hn(l)&&!Hn(f)?l!==l&&f!==f:U3(l,f,b,$,Id,j)}function U3(l,f,b,$,j,G){var q=_t(l),Q=_t(f),Z=q?se:Ir(l),xe=Q?se:Ir(f);Z=Z==de?te:Z,xe=xe==de?te:xe;var Se=Z==te,$e=xe==te,je=Z==xe;if(je&&ul(l)){if(!ul(f))return!1;q=!0,Se=!1}if(je&&!Se)return G||(G=new Ei),q||Sc(l)?tI(l,f,b,$,j,G):vB(l,f,Z,b,$,j,G);if(!(b&y)){var st=Se&&rn.call(l,"__wrapped__"),wt=$e&&rn.call(f,"__wrapped__");if(st||wt){var Ot=st?l.value():l,Ct=wt?f.value():f;return G||(G=new Ei),j(Ot,Ct,b,$,G)}}return je?(G||(G=new Ei),yB(l,f,b,$,j,G)):!1}function W3(l){return Hn(l)&&Ir(l)==Ee}function y0(l,f,b,$){var j=b.length,G=j,q=!$;if(l==null)return!G;for(l=fn(l);j--;){var Q=b[j];if(q&&Q[2]?Q[1]!==l[Q[0]]:!(Q[0]in l))return!1}for(;++j<G;){Q=b[j];var Z=Q[0],xe=l[Z],Se=Q[1];if(q&&Q[2]){if(xe===n&&!(Z in l))return!1}else{var $e=new Ei;if($)var je=$(xe,Se,Z,l,f,$e);if(!(je===n?Id(Se,xe,y|v,$,$e):je))return!1}}return!0}function S2(l){if(!An(l)||kB(l))return!1;var f=Rs(l)?W5:Fn;return f.test(ha(l))}function G3(l){return Hn(l)&&Dr(l)==Ke}function K3(l){return Hn(l)&&Ir(l)==Ue}function q3(l){return Hn(l)&&Mh(l.length)&&!!wn[Dr(l)]}function E2(l){return typeof l=="function"?l:l==null?Zr:typeof l=="object"?_t(l)?k2(l[0],l[1]):I2(l):GI(l)}function b0(l){if(!$d(l))return X5(l);var f=[];for(var b in fn(l))rn.call(l,b)&&b!="constructor"&&f.push(b);return f}function Y3(l){if(!An(l))return MB(l);var f=$d(l),b=[];for(var $ in l)$=="constructor"&&(f||!rn.call(l,$))||b.push($);return b}function w0(l,f){return l<f}function P2(l,f){var b=-1,$=Xr(l)?fe(l.length):[];return sl(l,function(j,G,q){$[++b]=f(j,G,q)}),$}function I2(l){var f=L0(l);return f.length==1&&f[0][2]?sI(f[0][0],f[0][1]):function(b){return b===l||y0(b,l,f)}}function k2(l,f){return D0(l)&&iI(f)?sI(qi(l),f):function(b){var $=K0(b,l);return $===n&&$===f?q0(b,l):Id(f,$,y|v)}}function mh(l,f,b,$,j){l!==f&&h0(f,function(G,q){if(j||(j=new Ei),An(G))Q3(l,f,q,b,mh,$,j);else{var Q=$?$(B0(l,q),G,q+"",l,f,j):n;Q===n&&(Q=G),f0(l,q,Q)}},Jr)}function Q3(l,f,b,$,j,G,q){var Q=B0(l,b),Z=B0(f,b),xe=q.get(Z);if(xe){f0(l,b,xe);return}var Se=G?G(Q,Z,b+"",l,f,q):n,$e=Se===n;if($e){var je=_t(Z),st=!je&&ul(Z),wt=!je&&!st&&Sc(Z);Se=Z,je||st||wt?_t(Q)?Se=Q:Kn(Q)?Se=Qr(Q):st?($e=!1,Se=B2(Z,!0)):wt?($e=!1,Se=z2(Z,!0)):Se=[]:Md(Z)||ma(Z)?(Se=Q,ma(Q)?Se=AI(Q):(!An(Q)||Rs(Q))&&(Se=oI(Z))):$e=!1}$e&&(q.set(Z,Se),j(Se,Z,$,G,q),q.delete(Z)),f0(l,b,Se)}function _2(l,f){var b=l.length;if(b)return f+=f<0?b:0,$s(f,b)?l[f]:n}function $2(l,f,b){f.length?f=$n(f,function(G){return _t(G)?function(q){return fa(q,G.length===1?G[0]:G)}:G}):f=[Zr];var $=-1;f=$n(f,vo(vt()));var j=P2(l,function(G,q,Q){var Z=$n(f,function(xe){return xe(G)});return{criteria:Z,index:++$,value:G}});return S5(j,function(G,q){return cB(G,q,b)})}function X3(l,f){return R2(l,f,function(b,$){return q0(l,$)})}function R2(l,f,b){for(var $=-1,j=f.length,G={};++$<j;){var q=f[$],Q=fa(l,q);b(Q,q)&&kd(G,al(q,l),Q)}return G}function J3(l){return function(f){return fa(f,l)}}function C0(l,f,b,$){var j=$?x5:fc,G=-1,q=f.length,Q=l;for(l===f&&(f=Qr(f)),b&&(Q=$n(l,vo(b)));++G<q;)for(var Z=0,xe=f[G],Se=b?b(xe):xe;(Z=j(Q,Se,Z,$))>-1;)Q!==l&&ih.call(Q,Z,1),ih.call(l,Z,1);return l}function M2(l,f){for(var b=l?f.length:0,$=b-1;b--;){var j=f[b];if(b==$||j!==G){var G=j;$s(j)?ih.call(l,j,1):P0(l,j)}}return l}function x0(l,f){return l+ah(d2()*(f-l+1))}function Z3(l,f,b,$){for(var j=-1,G=nr(lh((f-l)/(b||1)),0),q=fe(G);G--;)q[$?G:++j]=l,l+=b;return q}function S0(l,f){var b="";if(!l||f<1||f>D)return b;do f%2&&(b+=l),f=ah(f/2),f&&(l+=l);while(f);return b}function Ft(l,f){return z0(lI(l,f,Zr),l+"")}function eB(l){return h2(Ec(l))}function tB(l,f){var b=Ec(l);return Ph(b,da(f,0,b.length))}function kd(l,f,b,$){if(!An(l))return l;f=al(f,l);for(var j=-1,G=f.length,q=G-1,Q=l;Q!=null&&++j<G;){var Z=qi(f[j]),xe=b;if(Z==="__proto__"||Z==="constructor"||Z==="prototype")return l;if(j!=q){var Se=Q[Z];xe=$?$(Se,Z,Q):n,xe===n&&(xe=An(Se)?Se:$s(f[j+1])?[]:{})}Sd(Q,Z,xe),Q=Q[Z]}return l}var T2=ch?function(l,f){return ch.set(l,f),l}:Zr,nB=sh?function(l,f){return sh(l,"toString",{configurable:!0,enumerable:!1,value:Q0(f),writable:!0})}:Zr;function rB(l){return Ph(Ec(l))}function Qo(l,f,b){var $=-1,j=l.length;f<0&&(f=-f>j?0:j+f),b=b>j?j:b,b<0&&(b+=j),j=f>b?0:b-f>>>0,f>>>=0;for(var G=fe(j);++$<j;)G[$]=l[$+f];return G}function oB(l,f){var b;return sl(l,function($,j,G){return b=f($,j,G),!b}),!!b}function gh(l,f,b){var $=0,j=l==null?$:l.length;if(typeof f=="number"&&f===f&&j<=ie){for(;$<j;){var G=$+j>>>1,q=l[G];q!==null&&!bo(q)&&(b?q<=f:q<f)?$=G+1:j=G}return j}return E0(l,f,Zr,b)}function E0(l,f,b,$){var j=0,G=l==null?0:l.length;if(G===0)return 0;f=b(f);for(var q=f!==f,Q=f===null,Z=bo(f),xe=f===n;j<G;){var Se=ah((j+G)/2),$e=b(l[Se]),je=$e!==n,st=$e===null,wt=$e===$e,Ot=bo($e);if(q)var Ct=$||wt;else xe?Ct=wt&&($||je):Q?Ct=wt&&je&&($||!st):Z?Ct=wt&&je&&!st&&($||!Ot):st||Ot?Ct=!1:Ct=$?$e<=f:$e<f;Ct?j=Se+1:G=Se}return Pr(G,Y)}function O2(l,f){for(var b=-1,$=l.length,j=0,G=[];++b<$;){var q=l[b],Q=f?f(q):q;if(!b||!Pi(Q,Z)){var Z=Q;G[j++]=q===0?0:q}}return G}function F2(l){return typeof l=="number"?l:bo(l)?W:+l}function yo(l){if(typeof l=="string")return l;if(_t(l))return $n(l,yo)+"";if(bo(l))return f2?f2.call(l):"";var f=l+"";return f=="0"&&1/l==-V?"-0":f}function ll(l,f,b){var $=-1,j=Yp,G=l.length,q=!0,Q=[],Z=Q;if(b)q=!1,j=Zy;else if(G>=o){var xe=f?null:mB(l);if(xe)return Xp(xe);q=!1,j=vd,Z=new ua}else Z=f?[]:Q;e:for(;++$<G;){var Se=l[$],$e=f?f(Se):Se;if(Se=b||Se!==0?Se:0,q&&$e===$e){for(var je=Z.length;je--;)if(Z[je]===$e)continue e;f&&Z.push($e),Q.push(Se)}else j(Z,$e,b)||(Z!==Q&&Z.push($e),Q.push(Se))}return Q}function P0(l,f){return f=al(f,l),l=aI(l,f),l==null||delete l[qi(Xo(f))]}function L2(l,f,b,$){return kd(l,f,b(fa(l,f)),$)}function vh(l,f,b,$){for(var j=l.length,G=$?j:-1;($?G--:++G<j)&&f(l[G],G,l););return b?Qo(l,$?0:G,$?G+1:j):Qo(l,$?G+1:0,$?j:G)}function A2(l,f){var b=l;return b instanceof zt&&(b=b.value()),e0(f,function($,j){return j.func.apply(j.thisArg,rl([$],j.args))},b)}function I0(l,f,b){var $=l.length;if($<2)return $?ll(l[0]):[];for(var j=-1,G=fe($);++j<$;)for(var q=l[j],Q=-1;++Q<$;)Q!=j&&(G[j]=Ed(G[j]||q,l[Q],f,b));return ll(yr(G,1),f,b)}function D2(l,f,b){for(var $=-1,j=l.length,G=f.length,q={};++$<j;){var Q=$<G?f[$]:n;b(q,l[$],Q)}return q}function k0(l){return Kn(l)?l:[]}function _0(l){return typeof l=="function"?l:Zr}function al(l,f){return _t(l)?l:D0(l,f)?[l]:fI(Jt(l))}var iB=Ft;function cl(l,f,b){var $=l.length;return b=b===n?$:b,!f&&b>=$?l:Qo(l,f,b)}var N2=G5||function(l){return vr.clearTimeout(l)};function B2(l,f){if(f)return l.slice();var b=l.length,$=s2?s2(b):new l.constructor(b);return l.copy($),$}function $0(l){var f=new l.constructor(l.byteLength);return new rh(f).set(new rh(l)),f}function sB(l,f){var b=f?$0(l.buffer):l.buffer;return new l.constructor(b,l.byteOffset,l.byteLength)}function lB(l){var f=new l.constructor(l.source,We.exec(l));return f.lastIndex=l.lastIndex,f}function aB(l){return xd?fn(xd.call(l)):{}}function z2(l,f){var b=f?$0(l.buffer):l.buffer;return new l.constructor(b,l.byteOffset,l.length)}function j2(l,f){if(l!==f){var b=l!==n,$=l===null,j=l===l,G=bo(l),q=f!==n,Q=f===null,Z=f===f,xe=bo(f);if(!Q&&!xe&&!G&&l>f||G&&q&&Z&&!Q&&!xe||$&&q&&Z||!b&&Z||!j)return 1;if(!$&&!G&&!xe&&l<f||xe&&b&&j&&!$&&!G||Q&&b&&j||!q&&j||!Z)return-1}return 0}function cB(l,f,b){for(var $=-1,j=l.criteria,G=f.criteria,q=j.length,Q=b.length;++$<q;){var Z=j2(j[$],G[$]);if(Z){if($>=Q)return Z;var xe=b[$];return Z*(xe=="desc"?-1:1)}}return l.index-f.index}function H2(l,f,b,$){for(var j=-1,G=l.length,q=b.length,Q=-1,Z=f.length,xe=nr(G-q,0),Se=fe(Z+xe),$e=!$;++Q<Z;)Se[Q]=f[Q];for(;++j<q;)($e||j<G)&&(Se[b[j]]=l[j]);for(;xe--;)Se[Q++]=l[j++];return Se}function V2(l,f,b,$){for(var j=-1,G=l.length,q=-1,Q=b.length,Z=-1,xe=f.length,Se=nr(G-Q,0),$e=fe(Se+xe),je=!$;++j<Se;)$e[j]=l[j];for(var st=j;++Z<xe;)$e[st+Z]=f[Z];for(;++q<Q;)(je||j<G)&&($e[st+b[q]]=l[j++]);return $e}function Qr(l,f){var b=-1,$=l.length;for(f||(f=fe($));++b<$;)f[b]=l[b];return f}function Ki(l,f,b,$){var j=!b;b||(b={});for(var G=-1,q=f.length;++G<q;){var Q=f[G],Z=$?$(b[Q],l[Q],Q,b,l):n;Z===n&&(Z=l[Q]),j?Is(b,Q,Z):Sd(b,Q,Z)}return b}function uB(l,f){return Ki(l,A0(l),f)}function dB(l,f){return Ki(l,nI(l),f)}function yh(l,f){return function(b,$){var j=_t(b)?g5:O3,G=f?f():{};return j(b,l,vt($,2),G)}}function wc(l){return Ft(function(f,b){var $=-1,j=b.length,G=j>1?b[j-1]:n,q=j>2?b[2]:n;for(G=l.length>3&&typeof G=="function"?(j--,G):n,q&&Nr(b[0],b[1],q)&&(G=j<3?n:G,j=1),f=fn(f);++$<j;){var Q=b[$];Q&&l(f,Q,$,G)}return f})}function U2(l,f){return function(b,$){if(b==null)return b;if(!Xr(b))return l(b,$);for(var j=b.length,G=f?j:-1,q=fn(b);(f?G--:++G<j)&&$(q[G],G,q)!==!1;);return b}}function W2(l){return function(f,b,$){for(var j=-1,G=fn(f),q=$(f),Q=q.length;Q--;){var Z=q[l?Q:++j];if(b(G[Z],Z,G)===!1)break}return f}}function fB(l,f,b){var $=f&E,j=_d(l);function G(){var q=this&&this!==vr&&this instanceof G?j:l;return q.apply($?b:this,arguments)}return G}function G2(l){return function(f){f=Jt(f);var b=pc(f)?Si(f):n,$=b?b[0]:f.charAt(0),j=b?cl(b,1).join(""):f.slice(1);return $[l]()+j}}function Cc(l){return function(f){return e0(UI(VI(f).replace(n5,"")),l,"")}}function _d(l){return function(){var f=arguments;switch(f.length){case 0:return new l;case 1:return new l(f[0]);case 2:return new l(f[0],f[1]);case 3:return new l(f[0],f[1],f[2]);case 4:return new l(f[0],f[1],f[2],f[3]);case 5:return new l(f[0],f[1],f[2],f[3],f[4]);case 6:return new l(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new l(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var b=bc(l.prototype),$=l.apply(b,f);return An($)?$:b}}function pB(l,f,b){var $=_d(l);function j(){for(var G=arguments.length,q=fe(G),Q=G,Z=xc(j);Q--;)q[Q]=arguments[Q];var xe=G<3&&q[0]!==Z&&q[G-1]!==Z?[]:ol(q,Z);if(G-=xe.length,G<b)return X2(l,f,bh,j.placeholder,n,q,xe,n,n,b-G);var Se=this&&this!==vr&&this instanceof j?$:l;return go(Se,this,q)}return j}function K2(l){return function(f,b,$){var j=fn(f);if(!Xr(f)){var G=vt(b,3);f=dr(f),b=function(Q){return G(j[Q],Q,j)}}var q=l(f,b,$);return q>-1?j[G?f[q]:q]:n}}function q2(l){return _s(function(f){var b=f.length,$=b,j=qo.prototype.thru;for(l&&f.reverse();$--;){var G=f[$];if(typeof G!="function")throw new Ko(s);if(j&&!q&&Sh(G)=="wrapper")var q=new qo([],!0)}for($=q?$:b;++$<b;){G=f[$];var Q=Sh(G),Z=Q=="wrapper"?F0(G):n;Z&&N0(Z[0])&&Z[1]==(I|x|_|R)&&!Z[4].length&&Z[9]==1?q=q[Sh(Z[0])].apply(q,Z[3]):q=G.length==1&&N0(G)?q[Q]():q.thru(G)}return function(){var xe=arguments,Se=xe[0];if(q&&xe.length==1&&_t(Se))return q.plant(Se).value();for(var $e=0,je=b?f[$e].apply(this,xe):Se;++$e<b;)je=f[$e].call(this,je);return je}})}function bh(l,f,b,$,j,G,q,Q,Z,xe){var Se=f&I,$e=f&E,je=f&w,st=f&(x|P),wt=f&F,Ot=je?n:_d(l);function Ct(){for(var At=arguments.length,Ht=fe(At),wo=At;wo--;)Ht[wo]=arguments[wo];if(st)var Br=xc(Ct),Co=P5(Ht,Br);if($&&(Ht=H2(Ht,$,j,st)),G&&(Ht=V2(Ht,G,q,st)),At-=Co,st&&At<xe){var qn=ol(Ht,Br);return X2(l,f,bh,Ct.placeholder,b,Ht,qn,Q,Z,xe-At)}var Ii=$e?b:this,Ts=je?Ii[l]:l;return At=Ht.length,Q?Ht=OB(Ht,Q):wt&&At>1&&Ht.reverse(),Se&&Z<At&&(Ht.length=Z),this&&this!==vr&&this instanceof Ct&&(Ts=Ot||_d(Ts)),Ts.apply(Ii,Ht)}return Ct}function Y2(l,f){return function(b,$){return j3(b,l,f($),{})}}function wh(l,f){return function(b,$){var j;if(b===n&&$===n)return f;if(b!==n&&(j=b),$!==n){if(j===n)return $;typeof b=="string"||typeof $=="string"?(b=yo(b),$=yo($)):(b=F2(b),$=F2($)),j=l(b,$)}return j}}function R0(l){return _s(function(f){return f=$n(f,vo(vt())),Ft(function(b){var $=this;return l(f,function(j){return go(j,$,b)})})})}function Ch(l,f){f=f===n?" ":yo(f);var b=f.length;if(b<2)return b?S0(f,l):f;var $=S0(f,lh(l/hc(f)));return pc(f)?cl(Si($),0,l).join(""):$.slice(0,l)}function hB(l,f,b,$){var j=f&E,G=_d(l);function q(){for(var Q=-1,Z=arguments.length,xe=-1,Se=$.length,$e=fe(Se+Z),je=this&&this!==vr&&this instanceof q?G:l;++xe<Se;)$e[xe]=$[xe];for(;Z--;)$e[xe++]=arguments[++Q];return go(je,j?b:this,$e)}return q}function Q2(l){return function(f,b,$){return $&&typeof $!="number"&&Nr(f,b,$)&&(b=$=n),f=Ms(f),b===n?(b=f,f=0):b=Ms(b),$=$===n?f<b?1:-1:Ms($),Z3(f,b,$,l)}}function xh(l){return function(f,b){return typeof f=="string"&&typeof b=="string"||(f=Jo(f),b=Jo(b)),l(f,b)}}function X2(l,f,b,$,j,G,q,Q,Z,xe){var Se=f&x,$e=Se?q:n,je=Se?n:q,st=Se?G:n,wt=Se?n:G;f|=Se?_:k,f&=~(Se?k:_),f&C||(f&=~(E|w));var Ot=[l,f,j,st,$e,wt,je,Q,Z,xe],Ct=b.apply(n,Ot);return N0(l)&&cI(Ct,Ot),Ct.placeholder=$,uI(Ct,l,f)}function M0(l){var f=tr[l];return function(b,$){if(b=Jo(b),$=$==null?0:Pr(Mt($),292),$&&u2(b)){var j=(Jt(b)+"e").split("e"),G=f(j[0]+"e"+(+j[1]+$));return j=(Jt(G)+"e").split("e"),+(j[0]+"e"+(+j[1]-$))}return f(b)}}var mB=vc&&1/Xp(new vc([,-0]))[1]==V?function(l){return new vc(l)}:Z0;function J2(l){return function(f){var b=Ir(f);return b==Ee?l0(f):b==Ue?T5(f):E5(f,l(f))}}function ks(l,f,b,$,j,G,q,Q){var Z=f&w;if(!Z&&typeof l!="function")throw new Ko(s);var xe=$?$.length:0;if(xe||(f&=~(_|k),$=j=n),q=q===n?q:nr(Mt(q),0),Q=Q===n?Q:Mt(Q),xe-=j?j.length:0,f&k){var Se=$,$e=j;$=j=n}var je=Z?n:F0(l),st=[l,f,b,$,j,Se,$e,G,q,Q];if(je&&RB(st,je),l=st[0],f=st[1],b=st[2],$=st[3],j=st[4],Q=st[9]=st[9]===n?Z?0:l.length:nr(st[9]-xe,0),!Q&&f&(x|P)&&(f&=~(x|P)),!f||f==E)var wt=fB(l,f,b);else f==x||f==P?wt=pB(l,f,Q):(f==_||f==(E|_))&&!j.length?wt=hB(l,f,b,$):wt=bh.apply(n,st);var Ot=je?T2:cI;return uI(Ot(wt,st),l,f)}function Z2(l,f,b,$){return l===n||Pi(l,gc[b])&&!rn.call($,b)?f:l}function eI(l,f,b,$,j,G){return An(l)&&An(f)&&(G.set(f,l),mh(l,f,n,eI,G),G.delete(f)),l}function gB(l){return Md(l)?n:l}function tI(l,f,b,$,j,G){var q=b&y,Q=l.length,Z=f.length;if(Q!=Z&&!(q&&Z>Q))return!1;var xe=G.get(l),Se=G.get(f);if(xe&&Se)return xe==f&&Se==l;var $e=-1,je=!0,st=b&v?new ua:n;for(G.set(l,f),G.set(f,l);++$e<Q;){var wt=l[$e],Ot=f[$e];if($)var Ct=q?$(Ot,wt,$e,f,l,G):$(wt,Ot,$e,l,f,G);if(Ct!==n){if(Ct)continue;je=!1;break}if(st){if(!t0(f,function(At,Ht){if(!vd(st,Ht)&&(wt===At||j(wt,At,b,$,G)))return st.push(Ht)})){je=!1;break}}else if(!(wt===Ot||j(wt,Ot,b,$,G))){je=!1;break}}return G.delete(l),G.delete(f),je}function vB(l,f,b,$,j,G,q){switch(b){case De:if(l.byteLength!=f.byteLength||l.byteOffset!=f.byteOffset)return!1;l=l.buffer,f=f.buffer;case bt:return!(l.byteLength!=f.byteLength||!G(new rh(l),new rh(f)));case ke:case ve:case pe:return Pi(+l,+f);case ee:return l.name==f.name&&l.message==f.message;case Ke:case Be:return l==f+"";case Ee:var Q=l0;case Ue:var Z=$&y;if(Q||(Q=Xp),l.size!=f.size&&!Z)return!1;var xe=q.get(l);if(xe)return xe==f;$|=v,q.set(l,f);var Se=tI(Q(l),Q(f),$,j,G,q);return q.delete(l),Se;case ft:if(xd)return xd.call(l)==xd.call(f)}return!1}function yB(l,f,b,$,j,G){var q=b&y,Q=T0(l),Z=Q.length,xe=T0(f),Se=xe.length;if(Z!=Se&&!q)return!1;for(var $e=Z;$e--;){var je=Q[$e];if(!(q?je in f:rn.call(f,je)))return!1}var st=G.get(l),wt=G.get(f);if(st&&wt)return st==f&&wt==l;var Ot=!0;G.set(l,f),G.set(f,l);for(var Ct=q;++$e<Z;){je=Q[$e];var At=l[je],Ht=f[je];if($)var wo=q?$(Ht,At,je,f,l,G):$(At,Ht,je,l,f,G);if(!(wo===n?At===Ht||j(At,Ht,b,$,G):wo)){Ot=!1;break}Ct||(Ct=je=="constructor")}if(Ot&&!Ct){var Br=l.constructor,Co=f.constructor;Br!=Co&&"constructor"in l&&"constructor"in f&&!(typeof Br=="function"&&Br instanceof Br&&typeof Co=="function"&&Co instanceof Co)&&(Ot=!1)}return G.delete(l),G.delete(f),Ot}function _s(l){return z0(lI(l,n,gI),l+"")}function T0(l){return C2(l,dr,A0)}function O0(l){return C2(l,Jr,nI)}var F0=ch?function(l){return ch.get(l)}:Z0;function Sh(l){for(var f=l.name+"",b=yc[f],$=rn.call(yc,f)?b.length:0;$--;){var j=b[$],G=j.func;if(G==null||G==l)return j.name}return f}function xc(l){var f=rn.call(U,"placeholder")?U:l;return f.placeholder}function vt(){var l=U.iteratee||X0;return l=l===X0?E2:l,arguments.length?l(arguments[0],arguments[1]):l}function Eh(l,f){var b=l.__data__;return IB(f)?b[typeof f=="string"?"string":"hash"]:b.map}function L0(l){for(var f=dr(l),b=f.length;b--;){var $=f[b],j=l[$];f[b]=[$,j,iI(j)]}return f}function pa(l,f){var b=$5(l,f);return S2(b)?b:n}function bB(l){var f=rn.call(l,aa),b=l[aa];try{l[aa]=n;var $=!0}catch(G){}var j=th.call(l);return $&&(f?l[aa]=b:delete l[aa]),j}var A0=c0?function(l){return l==null?[]:(l=fn(l),nl(c0(l),function(f){return a2.call(l,f)}))}:e1,nI=c0?function(l){for(var f=[];l;)rl(f,A0(l)),l=oh(l);return f}:e1,Ir=Dr;(u0&&Ir(new u0(new ArrayBuffer(1)))!=De||bd&&Ir(new bd)!=Ee||d0&&Ir(d0.resolve())!=Oe||vc&&Ir(new vc)!=Ue||wd&&Ir(new wd)!=ut)&&(Ir=function(l){var f=Dr(l),b=f==te?l.constructor:n,$=b?ha(b):"";if($)switch($){case t3:return De;case n3:return Ee;case r3:return Oe;case o3:return Ue;case i3:return ut}return f});function wB(l,f,b){for(var $=-1,j=b.length;++$<j;){var G=b[$],q=G.size;switch(G.type){case"drop":l+=q;break;case"dropRight":f-=q;break;case"take":f=Pr(f,l+q);break;case"takeRight":l=nr(l,f-q);break}}return{start:l,end:f}}function CB(l){var f=l.match(xt);return f?f[1].split(Ut):[]}function rI(l,f,b){f=al(f,l);for(var $=-1,j=f.length,G=!1;++$<j;){var q=qi(f[$]);if(!(G=l!=null&&b(l,q)))break;l=l[q]}return G||++$!=j?G:(j=l==null?0:l.length,!!j&&Mh(j)&&$s(q,j)&&(_t(l)||ma(l)))}function xB(l){var f=l.length,b=new l.constructor(f);return f&&typeof l[0]=="string"&&rn.call(l,"index")&&(b.index=l.index,b.input=l.input),b}function oI(l){return typeof l.constructor=="function"&&!$d(l)?bc(oh(l)):{}}function SB(l,f,b){var $=l.constructor;switch(f){case bt:return $0(l);case ke:case ve:return new $(+l);case De:return sB(l,b);case Ae:case ze:case Ze:case Ie:case Fe:case Ve:case it:case mt:case tn:return z2(l,b);case Ee:return new $;case pe:case Be:return new $(l);case Ke:return lB(l);case Ue:return new $;case ft:return aB(l)}}function EB(l,f){var b=f.length;if(!b)return l;var $=b-1;return f[$]=(b>1?"& ":"")+f[$],f=f.join(b>2?", ":" "),l.replace(He,`{
301
+ /* [wrapped with `+f+`] */
302
+ `)}function PB(l){return _t(l)||ma(l)||!!(c2&&l&&l[c2])}function $s(l,f){var b=typeof l;return f=f==null?D:f,!!f&&(b=="number"||b!="symbol"&&St.test(l))&&l>-1&&l%1==0&&l<f}function Nr(l,f,b){if(!An(b))return!1;var $=typeof f;return($=="number"?Xr(b)&&$s(f,b.length):$=="string"&&f in b)?Pi(b[f],l):!1}function D0(l,f){if(_t(l))return!1;var b=typeof l;return b=="number"||b=="symbol"||b=="boolean"||l==null||bo(l)?!0:Ss.test(l)||!xs.test(l)||f!=null&&l in fn(f)}function IB(l){var f=typeof l;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?l!=="__proto__":l===null}function N0(l){var f=Sh(l),b=U[f];if(typeof b!="function"||!(f in zt.prototype))return!1;if(l===b)return!0;var $=F0(b);return!!$&&l===$[0]}function kB(l){return!!i2&&i2 in l}var _B=Zp?Rs:t1;function $d(l){var f=l&&l.constructor,b=typeof f=="function"&&f.prototype||gc;return l===b}function iI(l){return l===l&&!An(l)}function sI(l,f){return function(b){return b==null?!1:b[l]===f&&(f!==n||l in fn(b))}}function $B(l){var f=$h(l,function($){return b.size===d&&b.clear(),$}),b=f.cache;return f}function RB(l,f){var b=l[1],$=f[1],j=b|$,G=j<(E|w|I),q=$==I&&b==x||$==I&&b==R&&l[7].length<=f[8]||$==(I|R)&&f[7].length<=f[8]&&b==x;if(!(G||q))return l;$&E&&(l[2]=f[2],j|=b&E?0:C);var Q=f[3];if(Q){var Z=l[3];l[3]=Z?H2(Z,Q,f[4]):Q,l[4]=Z?ol(l[3],p):f[4]}return Q=f[5],Q&&(Z=l[5],l[5]=Z?V2(Z,Q,f[6]):Q,l[6]=Z?ol(l[5],p):f[6]),Q=f[7],Q&&(l[7]=Q),$&I&&(l[8]=l[8]==null?f[8]:Pr(l[8],f[8])),l[9]==null&&(l[9]=f[9]),l[0]=f[0],l[1]=j,l}function MB(l){var f=[];if(l!=null)for(var b in fn(l))f.push(b);return f}function TB(l){return th.call(l)}function lI(l,f,b){return f=nr(f===n?l.length-1:f,0),function(){for(var $=arguments,j=-1,G=nr($.length-f,0),q=fe(G);++j<G;)q[j]=$[f+j];j=-1;for(var Q=fe(f+1);++j<f;)Q[j]=$[j];return Q[f]=b(q),go(l,this,Q)}}function aI(l,f){return f.length<2?l:fa(l,Qo(f,0,-1))}function OB(l,f){for(var b=l.length,$=Pr(f.length,b),j=Qr(l);$--;){var G=f[$];l[$]=$s(G,b)?j[G]:n}return l}function B0(l,f){if(!(f==="constructor"&&typeof l[f]=="function")&&f!="__proto__")return l[f]}var cI=dI(T2),Rd=q5||function(l,f){return vr.setTimeout(l,f)},z0=dI(nB);function uI(l,f,b){var $=f+"";return z0(l,EB($,FB(CB($),b)))}function dI(l){var f=0,b=0;return function(){var $=J5(),j=B-($-b);if(b=$,j>0){if(++f>=N)return arguments[0]}else f=0;return l.apply(n,arguments)}}function Ph(l,f){var b=-1,$=l.length,j=$-1;for(f=f===n?$:f;++b<f;){var G=x0(b,j),q=l[G];l[G]=l[b],l[b]=q}return l.length=f,l}var fI=$B(function(l){var f=[];return l.charCodeAt(0)===46&&f.push(""),l.replace(ce,function(b,$,j,G){f.push(j?G.replace(we,"$1"):$||b)}),f});function qi(l){if(typeof l=="string"||bo(l))return l;var f=l+"";return f=="0"&&1/l==-V?"-0":f}function ha(l){if(l!=null){try{return eh.call(l)}catch(f){}try{return l+""}catch(f){}}return""}function FB(l,f){return Go(re,function(b){var $="_."+b[0];f&b[1]&&!Yp(l,$)&&l.push($)}),l.sort()}function pI(l){if(l instanceof zt)return l.clone();var f=new qo(l.__wrapped__,l.__chain__);return f.__actions__=Qr(l.__actions__),f.__index__=l.__index__,f.__values__=l.__values__,f}function LB(l,f,b){(b?Nr(l,f,b):f===n)?f=1:f=nr(Mt(f),0);var $=l==null?0:l.length;if(!$||f<1)return[];for(var j=0,G=0,q=fe(lh($/f));j<$;)q[G++]=Qo(l,j,j+=f);return q}function AB(l){for(var f=-1,b=l==null?0:l.length,$=0,j=[];++f<b;){var G=l[f];G&&(j[$++]=G)}return j}function DB(){var l=arguments.length;if(!l)return[];for(var f=fe(l-1),b=arguments[0],$=l;$--;)f[$-1]=arguments[$];return rl(_t(b)?Qr(b):[b],yr(f,1))}var NB=Ft(function(l,f){return Kn(l)?Ed(l,yr(f,1,Kn,!0)):[]}),BB=Ft(function(l,f){var b=Xo(f);return Kn(b)&&(b=n),Kn(l)?Ed(l,yr(f,1,Kn,!0),vt(b,2)):[]}),zB=Ft(function(l,f){var b=Xo(f);return Kn(b)&&(b=n),Kn(l)?Ed(l,yr(f,1,Kn,!0),n,b):[]});function jB(l,f,b){var $=l==null?0:l.length;return $?(f=b||f===n?1:Mt(f),Qo(l,f<0?0:f,$)):[]}function HB(l,f,b){var $=l==null?0:l.length;return $?(f=b||f===n?1:Mt(f),f=$-f,Qo(l,0,f<0?0:f)):[]}function VB(l,f){return l&&l.length?vh(l,vt(f,3),!0,!0):[]}function UB(l,f){return l&&l.length?vh(l,vt(f,3),!0):[]}function WB(l,f,b,$){var j=l==null?0:l.length;return j?(b&&typeof b!="number"&&Nr(l,f,b)&&(b=0,$=j),D3(l,f,b,$)):[]}function hI(l,f,b){var $=l==null?0:l.length;if(!$)return-1;var j=b==null?0:Mt(b);return j<0&&(j=nr($+j,0)),Qp(l,vt(f,3),j)}function mI(l,f,b){var $=l==null?0:l.length;if(!$)return-1;var j=$-1;return b!==n&&(j=Mt(b),j=b<0?nr($+j,0):Pr(j,$-1)),Qp(l,vt(f,3),j,!0)}function gI(l){var f=l==null?0:l.length;return f?yr(l,1):[]}function GB(l){var f=l==null?0:l.length;return f?yr(l,V):[]}function KB(l,f){var b=l==null?0:l.length;return b?(f=f===n?1:Mt(f),yr(l,f)):[]}function qB(l){for(var f=-1,b=l==null?0:l.length,$={};++f<b;){var j=l[f];$[j[0]]=j[1]}return $}function vI(l){return l&&l.length?l[0]:n}function YB(l,f,b){var $=l==null?0:l.length;if(!$)return-1;var j=b==null?0:Mt(b);return j<0&&(j=nr($+j,0)),fc(l,f,j)}function QB(l){var f=l==null?0:l.length;return f?Qo(l,0,-1):[]}var XB=Ft(function(l){var f=$n(l,k0);return f.length&&f[0]===l[0]?v0(f):[]}),JB=Ft(function(l){var f=Xo(l),b=$n(l,k0);return f===Xo(b)?f=n:b.pop(),b.length&&b[0]===l[0]?v0(b,vt(f,2)):[]}),ZB=Ft(function(l){var f=Xo(l),b=$n(l,k0);return f=typeof f=="function"?f:n,f&&b.pop(),b.length&&b[0]===l[0]?v0(b,n,f):[]});function ez(l,f){return l==null?"":Q5.call(l,f)}function Xo(l){var f=l==null?0:l.length;return f?l[f-1]:n}function tz(l,f,b){var $=l==null?0:l.length;if(!$)return-1;var j=$;return b!==n&&(j=Mt(b),j=j<0?nr($+j,0):Pr(j,$-1)),f===f?F5(l,f,j):Qp(l,XP,j,!0)}function nz(l,f){return l&&l.length?_2(l,Mt(f)):n}var rz=Ft(yI);function yI(l,f){return l&&l.length&&f&&f.length?C0(l,f):l}function oz(l,f,b){return l&&l.length&&f&&f.length?C0(l,f,vt(b,2)):l}function iz(l,f,b){return l&&l.length&&f&&f.length?C0(l,f,n,b):l}var sz=_s(function(l,f){var b=l==null?0:l.length,$=p0(l,f);return M2(l,$n(f,function(j){return $s(j,b)?+j:j}).sort(j2)),$});function lz(l,f){var b=[];if(!(l&&l.length))return b;var $=-1,j=[],G=l.length;for(f=vt(f,3);++$<G;){var q=l[$];f(q,$,l)&&(b.push(q),j.push($))}return M2(l,j),b}function j0(l){return l==null?l:e3.call(l)}function az(l,f,b){var $=l==null?0:l.length;return $?(b&&typeof b!="number"&&Nr(l,f,b)?(f=0,b=$):(f=f==null?0:Mt(f),b=b===n?$:Mt(b)),Qo(l,f,b)):[]}function cz(l,f){return gh(l,f)}function uz(l,f,b){return E0(l,f,vt(b,2))}function dz(l,f){var b=l==null?0:l.length;if(b){var $=gh(l,f);if($<b&&Pi(l[$],f))return $}return-1}function fz(l,f){return gh(l,f,!0)}function pz(l,f,b){return E0(l,f,vt(b,2),!0)}function hz(l,f){var b=l==null?0:l.length;if(b){var $=gh(l,f,!0)-1;if(Pi(l[$],f))return $}return-1}function mz(l){return l&&l.length?O2(l):[]}function gz(l,f){return l&&l.length?O2(l,vt(f,2)):[]}function vz(l){var f=l==null?0:l.length;return f?Qo(l,1,f):[]}function yz(l,f,b){return l&&l.length?(f=b||f===n?1:Mt(f),Qo(l,0,f<0?0:f)):[]}function bz(l,f,b){var $=l==null?0:l.length;return $?(f=b||f===n?1:Mt(f),f=$-f,Qo(l,f<0?0:f,$)):[]}function wz(l,f){return l&&l.length?vh(l,vt(f,3),!1,!0):[]}function Cz(l,f){return l&&l.length?vh(l,vt(f,3)):[]}var xz=Ft(function(l){return ll(yr(l,1,Kn,!0))}),Sz=Ft(function(l){var f=Xo(l);return Kn(f)&&(f=n),ll(yr(l,1,Kn,!0),vt(f,2))}),Ez=Ft(function(l){var f=Xo(l);return f=typeof f=="function"?f:n,ll(yr(l,1,Kn,!0),n,f)});function Pz(l){return l&&l.length?ll(l):[]}function Iz(l,f){return l&&l.length?ll(l,vt(f,2)):[]}function kz(l,f){return f=typeof f=="function"?f:n,l&&l.length?ll(l,n,f):[]}function H0(l){if(!(l&&l.length))return[];var f=0;return l=nl(l,function(b){if(Kn(b))return f=nr(b.length,f),!0}),i0(f,function(b){return $n(l,n0(b))})}function bI(l,f){if(!(l&&l.length))return[];var b=H0(l);return f==null?b:$n(b,function($){return go(f,n,$)})}var _z=Ft(function(l,f){return Kn(l)?Ed(l,f):[]}),$z=Ft(function(l){return I0(nl(l,Kn))}),Rz=Ft(function(l){var f=Xo(l);return Kn(f)&&(f=n),I0(nl(l,Kn),vt(f,2))}),Mz=Ft(function(l){var f=Xo(l);return f=typeof f=="function"?f:n,I0(nl(l,Kn),n,f)}),Tz=Ft(H0);function Oz(l,f){return D2(l||[],f||[],Sd)}function Fz(l,f){return D2(l||[],f||[],kd)}var Lz=Ft(function(l){var f=l.length,b=f>1?l[f-1]:n;return b=typeof b=="function"?(l.pop(),b):n,bI(l,b)});function wI(l){var f=U(l);return f.__chain__=!0,f}function Az(l,f){return f(l),l}function Ih(l,f){return f(l)}var Dz=_s(function(l){var f=l.length,b=f?l[0]:0,$=this.__wrapped__,j=function(G){return p0(G,l)};return f>1||this.__actions__.length||!($ instanceof zt)||!$s(b)?this.thru(j):($=$.slice(b,+b+(f?1:0)),$.__actions__.push({func:Ih,args:[j],thisArg:n}),new qo($,this.__chain__).thru(function(G){return f&&!G.length&&G.push(n),G}))});function Nz(){return wI(this)}function Bz(){return new qo(this.value(),this.__chain__)}function zz(){this.__values__===n&&(this.__values__=FI(this.value()));var l=this.__index__>=this.__values__.length,f=l?n:this.__values__[this.__index__++];return{done:l,value:f}}function jz(){return this}function Hz(l){for(var f,b=this;b instanceof dh;){var $=pI(b);$.__index__=0,$.__values__=n,f?j.__wrapped__=$:f=$;var j=$;b=b.__wrapped__}return j.__wrapped__=l,f}function Vz(){var l=this.__wrapped__;if(l instanceof zt){var f=l;return this.__actions__.length&&(f=new zt(this)),f=f.reverse(),f.__actions__.push({func:Ih,args:[j0],thisArg:n}),new qo(f,this.__chain__)}return this.thru(j0)}function Uz(){return A2(this.__wrapped__,this.__actions__)}var Wz=yh(function(l,f,b){rn.call(l,b)?++l[b]:Is(l,b,1)});function Gz(l,f,b){var $=_t(l)?YP:A3;return b&&Nr(l,f,b)&&(f=n),$(l,vt(f,3))}function Kz(l,f){var b=_t(l)?nl:b2;return b(l,vt(f,3))}var qz=K2(hI),Yz=K2(mI);function Qz(l,f){return yr(kh(l,f),1)}function Xz(l,f){return yr(kh(l,f),V)}function Jz(l,f,b){return b=b===n?1:Mt(b),yr(kh(l,f),b)}function CI(l,f){var b=_t(l)?Go:sl;return b(l,vt(f,3))}function xI(l,f){var b=_t(l)?v5:y2;return b(l,vt(f,3))}var Zz=yh(function(l,f,b){rn.call(l,b)?l[b].push(f):Is(l,b,[f])});function e6(l,f,b,$){l=Xr(l)?l:Ec(l),b=b&&!$?Mt(b):0;var j=l.length;return b<0&&(b=nr(j+b,0)),Th(l)?b<=j&&l.indexOf(f,b)>-1:!!j&&fc(l,f,b)>-1}var t6=Ft(function(l,f,b){var $=-1,j=typeof f=="function",G=Xr(l)?fe(l.length):[];return sl(l,function(q){G[++$]=j?go(f,q,b):Pd(q,f,b)}),G}),n6=yh(function(l,f,b){Is(l,b,f)});function kh(l,f){var b=_t(l)?$n:P2;return b(l,vt(f,3))}function r6(l,f,b,$){return l==null?[]:(_t(f)||(f=f==null?[]:[f]),b=$?n:b,_t(b)||(b=b==null?[]:[b]),$2(l,f,b))}var o6=yh(function(l,f,b){l[b?0:1].push(f)},function(){return[[],[]]});function i6(l,f,b){var $=_t(l)?e0:ZP,j=arguments.length<3;return $(l,vt(f,4),b,j,sl)}function s6(l,f,b){var $=_t(l)?y5:ZP,j=arguments.length<3;return $(l,vt(f,4),b,j,y2)}function l6(l,f){var b=_t(l)?nl:b2;return b(l,Rh(vt(f,3)))}function a6(l){var f=_t(l)?h2:eB;return f(l)}function c6(l,f,b){(b?Nr(l,f,b):f===n)?f=1:f=Mt(f);var $=_t(l)?M3:tB;return $(l,f)}function u6(l){var f=_t(l)?T3:rB;return f(l)}function d6(l){if(l==null)return 0;if(Xr(l))return Th(l)?hc(l):l.length;var f=Ir(l);return f==Ee||f==Ue?l.size:b0(l).length}function f6(l,f,b){var $=_t(l)?t0:oB;return b&&Nr(l,f,b)&&(f=n),$(l,vt(f,3))}var p6=Ft(function(l,f){if(l==null)return[];var b=f.length;return b>1&&Nr(l,f[0],f[1])?f=[]:b>2&&Nr(f[0],f[1],f[2])&&(f=[f[0]]),$2(l,yr(f,1),[])}),_h=K5||function(){return vr.Date.now()};function h6(l,f){if(typeof f!="function")throw new Ko(s);return l=Mt(l),function(){if(--l<1)return f.apply(this,arguments)}}function SI(l,f,b){return f=b?n:f,f=l&&f==null?l.length:f,ks(l,I,n,n,n,n,f)}function EI(l,f){var b;if(typeof f!="function")throw new Ko(s);return l=Mt(l),function(){return--l>0&&(b=f.apply(this,arguments)),l<=1&&(f=n),b}}var V0=Ft(function(l,f,b){var $=E;if(b.length){var j=ol(b,xc(V0));$|=_}return ks(l,$,f,b,j)}),PI=Ft(function(l,f,b){var $=E|w;if(b.length){var j=ol(b,xc(PI));$|=_}return ks(f,$,l,b,j)});function II(l,f,b){f=b?n:f;var $=ks(l,x,n,n,n,n,n,f);return $.placeholder=II.placeholder,$}function kI(l,f,b){f=b?n:f;var $=ks(l,P,n,n,n,n,n,f);return $.placeholder=kI.placeholder,$}function _I(l,f,b){var $,j,G,q,Q,Z,xe=0,Se=!1,$e=!1,je=!0;if(typeof l!="function")throw new Ko(s);f=Jo(f)||0,An(b)&&(Se=!!b.leading,$e="maxWait"in b,G=$e?nr(Jo(b.maxWait)||0,f):G,je="trailing"in b?!!b.trailing:je);function st(qn){var Ii=$,Ts=j;return $=j=n,xe=qn,q=l.apply(Ts,Ii),q}function wt(qn){return xe=qn,Q=Rd(At,f),Se?st(qn):q}function Ot(qn){var Ii=qn-Z,Ts=qn-xe,KI=f-Ii;return $e?Pr(KI,G-Ts):KI}function Ct(qn){var Ii=qn-Z,Ts=qn-xe;return Z===n||Ii>=f||Ii<0||$e&&Ts>=G}function At(){var qn=_h();if(Ct(qn))return Ht(qn);Q=Rd(At,Ot(qn))}function Ht(qn){return Q=n,je&&$?st(qn):($=j=n,q)}function wo(){Q!==n&&N2(Q),xe=0,$=Z=j=Q=n}function Br(){return Q===n?q:Ht(_h())}function Co(){var qn=_h(),Ii=Ct(qn);if($=arguments,j=this,Z=qn,Ii){if(Q===n)return wt(Z);if($e)return N2(Q),Q=Rd(At,f),st(Z)}return Q===n&&(Q=Rd(At,f)),q}return Co.cancel=wo,Co.flush=Br,Co}var m6=Ft(function(l,f){return v2(l,1,f)}),g6=Ft(function(l,f,b){return v2(l,Jo(f)||0,b)});function v6(l){return ks(l,F)}function $h(l,f){if(typeof l!="function"||f!=null&&typeof f!="function")throw new Ko(s);var b=function(){var $=arguments,j=f?f.apply(this,$):$[0],G=b.cache;if(G.has(j))return G.get(j);var q=l.apply(this,$);return b.cache=G.set(j,q)||G,q};return b.cache=new($h.Cache||Ps),b}$h.Cache=Ps;function Rh(l){if(typeof l!="function")throw new Ko(s);return function(){var f=arguments;switch(f.length){case 0:return!l.call(this);case 1:return!l.call(this,f[0]);case 2:return!l.call(this,f[0],f[1]);case 3:return!l.call(this,f[0],f[1],f[2])}return!l.apply(this,f)}}function y6(l){return EI(2,l)}var b6=iB(function(l,f){f=f.length==1&&_t(f[0])?$n(f[0],vo(vt())):$n(yr(f,1),vo(vt()));var b=f.length;return Ft(function($){for(var j=-1,G=Pr($.length,b);++j<G;)$[j]=f[j].call(this,$[j]);return go(l,this,$)})}),U0=Ft(function(l,f){var b=ol(f,xc(U0));return ks(l,_,n,f,b)}),$I=Ft(function(l,f){var b=ol(f,xc($I));return ks(l,k,n,f,b)}),w6=_s(function(l,f){return ks(l,R,n,n,n,f)});function C6(l,f){if(typeof l!="function")throw new Ko(s);return f=f===n?f:Mt(f),Ft(l,f)}function x6(l,f){if(typeof l!="function")throw new Ko(s);return f=f==null?0:nr(Mt(f),0),Ft(function(b){var $=b[f],j=cl(b,0,f);return $&&rl(j,$),go(l,this,j)})}function S6(l,f,b){var $=!0,j=!0;if(typeof l!="function")throw new Ko(s);return An(b)&&($="leading"in b?!!b.leading:$,j="trailing"in b?!!b.trailing:j),_I(l,f,{leading:$,maxWait:f,trailing:j})}function E6(l){return SI(l,1)}function P6(l,f){return U0(_0(f),l)}function I6(){if(!arguments.length)return[];var l=arguments[0];return _t(l)?l:[l]}function k6(l){return Yo(l,g)}function _6(l,f){return f=typeof f=="function"?f:n,Yo(l,g,f)}function $6(l){return Yo(l,h|g)}function R6(l,f){return f=typeof f=="function"?f:n,Yo(l,h|g,f)}function M6(l,f){return f==null||g2(l,f,dr(f))}function Pi(l,f){return l===f||l!==l&&f!==f}var T6=xh(g0),O6=xh(function(l,f){return l>=f}),ma=x2(function(){return arguments}())?x2:function(l){return Hn(l)&&rn.call(l,"callee")&&!a2.call(l,"callee")},_t=fe.isArray,F6=VP?vo(VP):H3;function Xr(l){return l!=null&&Mh(l.length)&&!Rs(l)}function Kn(l){return Hn(l)&&Xr(l)}function L6(l){return l===!0||l===!1||Hn(l)&&Dr(l)==ke}var ul=Y5||t1,A6=UP?vo(UP):V3;function D6(l){return Hn(l)&&l.nodeType===1&&!Md(l)}function N6(l){if(l==null)return!0;if(Xr(l)&&(_t(l)||typeof l=="string"||typeof l.splice=="function"||ul(l)||Sc(l)||ma(l)))return!l.length;var f=Ir(l);if(f==Ee||f==Ue)return!l.size;if($d(l))return!b0(l).length;for(var b in l)if(rn.call(l,b))return!1;return!0}function B6(l,f){return Id(l,f)}function z6(l,f,b){b=typeof b=="function"?b:n;var $=b?b(l,f):n;return $===n?Id(l,f,n,b):!!$}function W0(l){if(!Hn(l))return!1;var f=Dr(l);return f==ee||f==Pe||typeof l.message=="string"&&typeof l.name=="string"&&!Md(l)}function j6(l){return typeof l=="number"&&u2(l)}function Rs(l){if(!An(l))return!1;var f=Dr(l);return f==_e||f==Re||f==le||f==Ye}function RI(l){return typeof l=="number"&&l==Mt(l)}function Mh(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=D}function An(l){var f=typeof l;return l!=null&&(f=="object"||f=="function")}function Hn(l){return l!=null&&typeof l=="object"}var MI=WP?vo(WP):W3;function H6(l,f){return l===f||y0(l,f,L0(f))}function V6(l,f,b){return b=typeof b=="function"?b:n,y0(l,f,L0(f),b)}function U6(l){return TI(l)&&l!=+l}function W6(l){if(_B(l))throw new kt(i);return S2(l)}function G6(l){return l===null}function K6(l){return l==null}function TI(l){return typeof l=="number"||Hn(l)&&Dr(l)==pe}function Md(l){if(!Hn(l)||Dr(l)!=te)return!1;var f=oh(l);if(f===null)return!0;var b=rn.call(f,"constructor")&&f.constructor;return typeof b=="function"&&b instanceof b&&eh.call(b)==V5}var G0=GP?vo(GP):G3;function q6(l){return RI(l)&&l>=-D&&l<=D}var OI=KP?vo(KP):K3;function Th(l){return typeof l=="string"||!_t(l)&&Hn(l)&&Dr(l)==Be}function bo(l){return typeof l=="symbol"||Hn(l)&&Dr(l)==ft}var Sc=qP?vo(qP):q3;function Y6(l){return l===n}function Q6(l){return Hn(l)&&Ir(l)==ut}function X6(l){return Hn(l)&&Dr(l)==It}var J6=xh(w0),Z6=xh(function(l,f){return l<=f});function FI(l){if(!l)return[];if(Xr(l))return Th(l)?Si(l):Qr(l);if(yd&&l[yd])return M5(l[yd]());var f=Ir(l),b=f==Ee?l0:f==Ue?Xp:Ec;return b(l)}function Ms(l){if(!l)return l===0?l:0;if(l=Jo(l),l===V||l===-V){var f=l<0?-1:1;return f*H}return l===l?l:0}function Mt(l){var f=Ms(l),b=f%1;return f===f?b?f-b:f:0}function LI(l){return l?da(Mt(l),0,K):0}function Jo(l){if(typeof l=="number")return l;if(bo(l))return W;if(An(l)){var f=typeof l.valueOf=="function"?l.valueOf():l;l=An(f)?f+"":f}if(typeof l!="string")return l===0?l:+l;l=e2(l);var b=Kt.test(l);return b||Ln.test(l)?h5(l.slice(2),b?2:8):ht.test(l)?W:+l}function AI(l){return Ki(l,Jr(l))}function ej(l){return l?da(Mt(l),-D,D):l===0?l:0}function Jt(l){return l==null?"":yo(l)}var tj=wc(function(l,f){if($d(f)||Xr(f)){Ki(f,dr(f),l);return}for(var b in f)rn.call(f,b)&&Sd(l,b,f[b])}),DI=wc(function(l,f){Ki(f,Jr(f),l)}),Oh=wc(function(l,f,b,$){Ki(f,Jr(f),l,$)}),nj=wc(function(l,f,b,$){Ki(f,dr(f),l,$)}),rj=_s(p0);function oj(l,f){var b=bc(l);return f==null?b:m2(b,f)}var ij=Ft(function(l,f){l=fn(l);var b=-1,$=f.length,j=$>2?f[2]:n;for(j&&Nr(f[0],f[1],j)&&($=1);++b<$;)for(var G=f[b],q=Jr(G),Q=-1,Z=q.length;++Q<Z;){var xe=q[Q],Se=l[xe];(Se===n||Pi(Se,gc[xe])&&!rn.call(l,xe))&&(l[xe]=G[xe])}return l}),sj=Ft(function(l){return l.push(n,eI),go(NI,n,l)});function lj(l,f){return QP(l,vt(f,3),Gi)}function aj(l,f){return QP(l,vt(f,3),m0)}function cj(l,f){return l==null?l:h0(l,vt(f,3),Jr)}function uj(l,f){return l==null?l:w2(l,vt(f,3),Jr)}function dj(l,f){return l&&Gi(l,vt(f,3))}function fj(l,f){return l&&m0(l,vt(f,3))}function pj(l){return l==null?[]:hh(l,dr(l))}function hj(l){return l==null?[]:hh(l,Jr(l))}function K0(l,f,b){var $=l==null?n:fa(l,f);return $===n?b:$}function mj(l,f){return l!=null&&rI(l,f,N3)}function q0(l,f){return l!=null&&rI(l,f,B3)}var gj=Y2(function(l,f,b){f!=null&&typeof f.toString!="function"&&(f=th.call(f)),l[f]=b},Q0(Zr)),vj=Y2(function(l,f,b){f!=null&&typeof f.toString!="function"&&(f=th.call(f)),rn.call(l,f)?l[f].push(b):l[f]=[b]},vt),yj=Ft(Pd);function dr(l){return Xr(l)?p2(l):b0(l)}function Jr(l){return Xr(l)?p2(l,!0):Y3(l)}function bj(l,f){var b={};return f=vt(f,3),Gi(l,function($,j,G){Is(b,f($,j,G),$)}),b}function wj(l,f){var b={};return f=vt(f,3),Gi(l,function($,j,G){Is(b,j,f($,j,G))}),b}var Cj=wc(function(l,f,b){mh(l,f,b)}),NI=wc(function(l,f,b,$){mh(l,f,b,$)}),xj=_s(function(l,f){var b={};if(l==null)return b;var $=!1;f=$n(f,function(G){return G=al(G,l),$||($=G.length>1),G}),Ki(l,O0(l),b),$&&(b=Yo(b,h|m|g,gB));for(var j=f.length;j--;)P0(b,f[j]);return b});function Sj(l,f){return BI(l,Rh(vt(f)))}var Ej=_s(function(l,f){return l==null?{}:X3(l,f)});function BI(l,f){if(l==null)return{};var b=$n(O0(l),function($){return[$]});return f=vt(f),R2(l,b,function($,j){return f($,j[0])})}function Pj(l,f,b){f=al(f,l);var $=-1,j=f.length;for(j||(j=1,l=n);++$<j;){var G=l==null?n:l[qi(f[$])];G===n&&($=j,G=b),l=Rs(G)?G.call(l):G}return l}function Ij(l,f,b){return l==null?l:kd(l,f,b)}function kj(l,f,b,$){return $=typeof $=="function"?$:n,l==null?l:kd(l,f,b,$)}var zI=J2(dr),jI=J2(Jr);function _j(l,f,b){var $=_t(l),j=$||ul(l)||Sc(l);if(f=vt(f,4),b==null){var G=l&&l.constructor;j?b=$?new G:[]:An(l)?b=Rs(G)?bc(oh(l)):{}:b={}}return(j?Go:Gi)(l,function(q,Q,Z){return f(b,q,Q,Z)}),b}function $j(l,f){return l==null?!0:P0(l,f)}function Rj(l,f,b){return l==null?l:L2(l,f,_0(b))}function Mj(l,f,b,$){return $=typeof $=="function"?$:n,l==null?l:L2(l,f,_0(b),$)}function Ec(l){return l==null?[]:s0(l,dr(l))}function Tj(l){return l==null?[]:s0(l,Jr(l))}function Oj(l,f,b){return b===n&&(b=f,f=n),b!==n&&(b=Jo(b),b=b===b?b:0),f!==n&&(f=Jo(f),f=f===f?f:0),da(Jo(l),f,b)}function Fj(l,f,b){return f=Ms(f),b===n?(b=f,f=0):b=Ms(b),l=Jo(l),z3(l,f,b)}function Lj(l,f,b){if(b&&typeof b!="boolean"&&Nr(l,f,b)&&(f=b=n),b===n&&(typeof f=="boolean"?(b=f,f=n):typeof l=="boolean"&&(b=l,l=n)),l===n&&f===n?(l=0,f=1):(l=Ms(l),f===n?(f=l,l=0):f=Ms(f)),l>f){var $=l;l=f,f=$}if(b||l%1||f%1){var j=d2();return Pr(l+j*(f-l+p5("1e-"+((j+"").length-1))),f)}return x0(l,f)}var Aj=Cc(function(l,f,b){return f=f.toLowerCase(),l+(b?HI(f):f)});function HI(l){return Y0(Jt(l).toLowerCase())}function VI(l){return l=Jt(l),l&&l.replace(ur,I5).replace(r5,"")}function Dj(l,f,b){l=Jt(l),f=yo(f);var $=l.length;b=b===n?$:da(Mt(b),0,$);var j=b;return b-=f.length,b>=0&&l.slice(b,j)==f}function Nj(l){return l=Jt(l),l&&nn.test(l)?l.replace(cr,k5):l}function Bj(l){return l=Jt(l),l&&Ne.test(l)?l.replace(ge,"\\$&"):l}var zj=Cc(function(l,f,b){return l+(b?"-":"")+f.toLowerCase()}),jj=Cc(function(l,f,b){return l+(b?" ":"")+f.toLowerCase()}),Hj=G2("toLowerCase");function Vj(l,f,b){l=Jt(l),f=Mt(f);var $=f?hc(l):0;if(!f||$>=f)return l;var j=(f-$)/2;return Ch(ah(j),b)+l+Ch(lh(j),b)}function Uj(l,f,b){l=Jt(l),f=Mt(f);var $=f?hc(l):0;return f&&$<f?l+Ch(f-$,b):l}function Wj(l,f,b){l=Jt(l),f=Mt(f);var $=f?hc(l):0;return f&&$<f?Ch(f-$,b)+l:l}function Gj(l,f,b){return b||f==null?f=0:f&&(f=+f),Z5(Jt(l).replace(pt,""),f||0)}function Kj(l,f,b){return(b?Nr(l,f,b):f===n)?f=1:f=Mt(f),S0(Jt(l),f)}function qj(){var l=arguments,f=Jt(l[0]);return l.length<3?f:f.replace(l[1],l[2])}var Yj=Cc(function(l,f,b){return l+(b?"_":"")+f.toLowerCase()});function Qj(l,f,b){return b&&typeof b!="number"&&Nr(l,f,b)&&(f=b=n),b=b===n?K:b>>>0,b?(l=Jt(l),l&&(typeof f=="string"||f!=null&&!G0(f))&&(f=yo(f),!f&&pc(l))?cl(Si(l),0,b):l.split(f,b)):[]}var Xj=Cc(function(l,f,b){return l+(b?" ":"")+Y0(f)});function Jj(l,f,b){return l=Jt(l),b=b==null?0:da(Mt(b),0,l.length),f=yo(f),l.slice(b,b+f.length)==f}function Zj(l,f,b){var $=U.templateSettings;b&&Nr(l,f,b)&&(f=n),l=Jt(l),f=Oh({},f,$,Z2);var j=Oh({},f.imports,$.imports,Z2),G=dr(j),q=s0(j,G),Q,Z,xe=0,Se=f.interpolate||Gp,$e="__p += '",je=a0((f.escape||Gp).source+"|"+Se.source+"|"+(Se===Wi?me:Gp).source+"|"+(f.evaluate||Gp).source+"|$","g"),st="//# sourceURL="+(rn.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++a5+"]")+`
303
+ `;l.replace(je,function(Ct,At,Ht,wo,Br,Co){return Ht||(Ht=wo),$e+=l.slice(xe,Co).replace(BN,_5),At&&(Q=!0,$e+=`' +
304
+ __e(`+At+`) +
305
+ '`),Br&&(Z=!0,$e+=`';
306
+ `+Br+`;
307
+ __p += '`),Ht&&($e+=`' +
308
+ ((__t = (`+Ht+`)) == null ? '' : __t) +
309
+ '`),xe=Co+Ct.length,Ct}),$e+=`';
310
+ `;var wt=rn.call(f,"variable")&&f.variable;if(!wt)$e=`with (obj) {
311
+ `+$e+`
312
+ }
313
+ `;else if(mo.test(wt))throw new kt(a);$e=(Z?$e.replace(kn,""):$e).replace(On,"$1").replace(Jn,"$1;"),$e="function("+(wt||"obj")+`) {
314
+ `+(wt?"":`obj || (obj = {});
315
+ `)+"var __t, __p = ''"+(Q?", __e = _.escape":"")+(Z?`, __j = Array.prototype.join;
316
+ function print() { __p += __j.call(arguments, '') }
317
+ `:`;
318
+ `)+$e+`return __p
319
+ }`;var Ot=WI(function(){return Qt(G,st+"return "+$e).apply(n,q)});if(Ot.source=$e,W0(Ot))throw Ot;return Ot}function e9(l){return Jt(l).toLowerCase()}function t9(l){return Jt(l).toUpperCase()}function n9(l,f,b){if(l=Jt(l),l&&(b||f===n))return e2(l);if(!l||!(f=yo(f)))return l;var $=Si(l),j=Si(f),G=t2($,j),q=n2($,j)+1;return cl($,G,q).join("")}function r9(l,f,b){if(l=Jt(l),l&&(b||f===n))return l.slice(0,o2(l)+1);if(!l||!(f=yo(f)))return l;var $=Si(l),j=n2($,Si(f))+1;return cl($,0,j).join("")}function o9(l,f,b){if(l=Jt(l),l&&(b||f===n))return l.replace(pt,"");if(!l||!(f=yo(f)))return l;var $=Si(l),j=t2($,Si(f));return cl($,j).join("")}function i9(l,f){var b=A,$=O;if(An(f)){var j="separator"in f?f.separator:j;b="length"in f?Mt(f.length):b,$="omission"in f?yo(f.omission):$}l=Jt(l);var G=l.length;if(pc(l)){var q=Si(l);G=q.length}if(b>=G)return l;var Q=b-hc($);if(Q<1)return $;var Z=q?cl(q,0,Q).join(""):l.slice(0,Q);if(j===n)return Z+$;if(q&&(Q+=Z.length-Q),G0(j)){if(l.slice(Q).search(j)){var xe,Se=Z;for(j.global||(j=a0(j.source,Jt(We.exec(j))+"g")),j.lastIndex=0;xe=j.exec(Se);)var $e=xe.index;Z=Z.slice(0,$e===n?Q:$e)}}else if(l.indexOf(yo(j),Q)!=Q){var je=Z.lastIndexOf(j);je>-1&&(Z=Z.slice(0,je))}return Z+$}function s9(l){return l=Jt(l),l&&bn.test(l)?l.replace(ar,L5):l}var l9=Cc(function(l,f,b){return l+(b?" ":"")+f.toUpperCase()}),Y0=G2("toUpperCase");function UI(l,f,b){return l=Jt(l),f=b?n:f,f===n?R5(l)?N5(l):C5(l):l.match(f)||[]}var WI=Ft(function(l,f){try{return go(l,n,f)}catch(b){return W0(b)?b:new kt(b)}}),a9=_s(function(l,f){return Go(f,function(b){b=qi(b),Is(l,b,V0(l[b],l))}),l});function c9(l){var f=l==null?0:l.length,b=vt();return l=f?$n(l,function($){if(typeof $[1]!="function")throw new Ko(s);return[b($[0]),$[1]]}):[],Ft(function($){for(var j=-1;++j<f;){var G=l[j];if(go(G[0],this,$))return go(G[1],this,$)}})}function u9(l){return L3(Yo(l,h))}function Q0(l){return function(){return l}}function d9(l,f){return l==null||l!==l?f:l}var f9=q2(),p9=q2(!0);function Zr(l){return l}function X0(l){return E2(typeof l=="function"?l:Yo(l,h))}function h9(l){return I2(Yo(l,h))}function m9(l,f){return k2(l,Yo(f,h))}var g9=Ft(function(l,f){return function(b){return Pd(b,l,f)}}),v9=Ft(function(l,f){return function(b){return Pd(l,b,f)}});function J0(l,f,b){var $=dr(f),j=hh(f,$);b==null&&!(An(f)&&(j.length||!$.length))&&(b=f,f=l,l=this,j=hh(f,dr(f)));var G=!(An(b)&&"chain"in b)||!!b.chain,q=Rs(l);return Go(j,function(Q){var Z=f[Q];l[Q]=Z,q&&(l.prototype[Q]=function(){var xe=this.__chain__;if(G||xe){var Se=l(this.__wrapped__),$e=Se.__actions__=Qr(this.__actions__);return $e.push({func:Z,args:arguments,thisArg:l}),Se.__chain__=xe,Se}return Z.apply(l,rl([this.value()],arguments))})}),l}function y9(){return vr._===this&&(vr._=U5),this}function Z0(){}function b9(l){return l=Mt(l),Ft(function(f){return _2(f,l)})}var w9=R0($n),C9=R0(YP),x9=R0(t0);function GI(l){return D0(l)?n0(qi(l)):J3(l)}function S9(l){return function(f){return l==null?n:fa(l,f)}}var E9=Q2(),P9=Q2(!0);function e1(){return[]}function t1(){return!1}function I9(){return{}}function k9(){return""}function _9(){return!0}function $9(l,f){if(l=Mt(l),l<1||l>D)return[];var b=K,$=Pr(l,K);f=vt(f),l-=K;for(var j=i0($,f);++b<l;)f(b);return j}function R9(l){return _t(l)?$n(l,qi):bo(l)?[l]:Qr(fI(Jt(l)))}function M9(l){var f=++H5;return Jt(l)+f}var T9=wh(function(l,f){return l+f},0),O9=M0("ceil"),F9=wh(function(l,f){return l/f},1),L9=M0("floor");function A9(l){return l&&l.length?ph(l,Zr,g0):n}function D9(l,f){return l&&l.length?ph(l,vt(f,2),g0):n}function N9(l){return JP(l,Zr)}function B9(l,f){return JP(l,vt(f,2))}function z9(l){return l&&l.length?ph(l,Zr,w0):n}function j9(l,f){return l&&l.length?ph(l,vt(f,2),w0):n}var H9=wh(function(l,f){return l*f},1),V9=M0("round"),U9=wh(function(l,f){return l-f},0);function W9(l){return l&&l.length?o0(l,Zr):0}function G9(l,f){return l&&l.length?o0(l,vt(f,2)):0}return U.after=h6,U.ary=SI,U.assign=tj,U.assignIn=DI,U.assignInWith=Oh,U.assignWith=nj,U.at=rj,U.before=EI,U.bind=V0,U.bindAll=a9,U.bindKey=PI,U.castArray=I6,U.chain=wI,U.chunk=LB,U.compact=AB,U.concat=DB,U.cond=c9,U.conforms=u9,U.constant=Q0,U.countBy=Wz,U.create=oj,U.curry=II,U.curryRight=kI,U.debounce=_I,U.defaults=ij,U.defaultsDeep=sj,U.defer=m6,U.delay=g6,U.difference=NB,U.differenceBy=BB,U.differenceWith=zB,U.drop=jB,U.dropRight=HB,U.dropRightWhile=VB,U.dropWhile=UB,U.fill=WB,U.filter=Kz,U.flatMap=Qz,U.flatMapDeep=Xz,U.flatMapDepth=Jz,U.flatten=gI,U.flattenDeep=GB,U.flattenDepth=KB,U.flip=v6,U.flow=f9,U.flowRight=p9,U.fromPairs=qB,U.functions=pj,U.functionsIn=hj,U.groupBy=Zz,U.initial=QB,U.intersection=XB,U.intersectionBy=JB,U.intersectionWith=ZB,U.invert=gj,U.invertBy=vj,U.invokeMap=t6,U.iteratee=X0,U.keyBy=n6,U.keys=dr,U.keysIn=Jr,U.map=kh,U.mapKeys=bj,U.mapValues=wj,U.matches=h9,U.matchesProperty=m9,U.memoize=$h,U.merge=Cj,U.mergeWith=NI,U.method=g9,U.methodOf=v9,U.mixin=J0,U.negate=Rh,U.nthArg=b9,U.omit=xj,U.omitBy=Sj,U.once=y6,U.orderBy=r6,U.over=w9,U.overArgs=b6,U.overEvery=C9,U.overSome=x9,U.partial=U0,U.partialRight=$I,U.partition=o6,U.pick=Ej,U.pickBy=BI,U.property=GI,U.propertyOf=S9,U.pull=rz,U.pullAll=yI,U.pullAllBy=oz,U.pullAllWith=iz,U.pullAt=sz,U.range=E9,U.rangeRight=P9,U.rearg=w6,U.reject=l6,U.remove=lz,U.rest=C6,U.reverse=j0,U.sampleSize=c6,U.set=Ij,U.setWith=kj,U.shuffle=u6,U.slice=az,U.sortBy=p6,U.sortedUniq=mz,U.sortedUniqBy=gz,U.split=Qj,U.spread=x6,U.tail=vz,U.take=yz,U.takeRight=bz,U.takeRightWhile=wz,U.takeWhile=Cz,U.tap=Az,U.throttle=S6,U.thru=Ih,U.toArray=FI,U.toPairs=zI,U.toPairsIn=jI,U.toPath=R9,U.toPlainObject=AI,U.transform=_j,U.unary=E6,U.union=xz,U.unionBy=Sz,U.unionWith=Ez,U.uniq=Pz,U.uniqBy=Iz,U.uniqWith=kz,U.unset=$j,U.unzip=H0,U.unzipWith=bI,U.update=Rj,U.updateWith=Mj,U.values=Ec,U.valuesIn=Tj,U.without=_z,U.words=UI,U.wrap=P6,U.xor=$z,U.xorBy=Rz,U.xorWith=Mz,U.zip=Tz,U.zipObject=Oz,U.zipObjectDeep=Fz,U.zipWith=Lz,U.entries=zI,U.entriesIn=jI,U.extend=DI,U.extendWith=Oh,J0(U,U),U.add=T9,U.attempt=WI,U.camelCase=Aj,U.capitalize=HI,U.ceil=O9,U.clamp=Oj,U.clone=k6,U.cloneDeep=$6,U.cloneDeepWith=R6,U.cloneWith=_6,U.conformsTo=M6,U.deburr=VI,U.defaultTo=d9,U.divide=F9,U.endsWith=Dj,U.eq=Pi,U.escape=Nj,U.escapeRegExp=Bj,U.every=Gz,U.find=qz,U.findIndex=hI,U.findKey=lj,U.findLast=Yz,U.findLastIndex=mI,U.findLastKey=aj,U.floor=L9,U.forEach=CI,U.forEachRight=xI,U.forIn=cj,U.forInRight=uj,U.forOwn=dj,U.forOwnRight=fj,U.get=K0,U.gt=T6,U.gte=O6,U.has=mj,U.hasIn=q0,U.head=vI,U.identity=Zr,U.includes=e6,U.indexOf=YB,U.inRange=Fj,U.invoke=yj,U.isArguments=ma,U.isArray=_t,U.isArrayBuffer=F6,U.isArrayLike=Xr,U.isArrayLikeObject=Kn,U.isBoolean=L6,U.isBuffer=ul,U.isDate=A6,U.isElement=D6,U.isEmpty=N6,U.isEqual=B6,U.isEqualWith=z6,U.isError=W0,U.isFinite=j6,U.isFunction=Rs,U.isInteger=RI,U.isLength=Mh,U.isMap=MI,U.isMatch=H6,U.isMatchWith=V6,U.isNaN=U6,U.isNative=W6,U.isNil=K6,U.isNull=G6,U.isNumber=TI,U.isObject=An,U.isObjectLike=Hn,U.isPlainObject=Md,U.isRegExp=G0,U.isSafeInteger=q6,U.isSet=OI,U.isString=Th,U.isSymbol=bo,U.isTypedArray=Sc,U.isUndefined=Y6,U.isWeakMap=Q6,U.isWeakSet=X6,U.join=ez,U.kebabCase=zj,U.last=Xo,U.lastIndexOf=tz,U.lowerCase=jj,U.lowerFirst=Hj,U.lt=J6,U.lte=Z6,U.max=A9,U.maxBy=D9,U.mean=N9,U.meanBy=B9,U.min=z9,U.minBy=j9,U.stubArray=e1,U.stubFalse=t1,U.stubObject=I9,U.stubString=k9,U.stubTrue=_9,U.multiply=H9,U.nth=nz,U.noConflict=y9,U.noop=Z0,U.now=_h,U.pad=Vj,U.padEnd=Uj,U.padStart=Wj,U.parseInt=Gj,U.random=Lj,U.reduce=i6,U.reduceRight=s6,U.repeat=Kj,U.replace=qj,U.result=Pj,U.round=V9,U.runInContext=J,U.sample=a6,U.size=d6,U.snakeCase=Yj,U.some=f6,U.sortedIndex=cz,U.sortedIndexBy=uz,U.sortedIndexOf=dz,U.sortedLastIndex=fz,U.sortedLastIndexBy=pz,U.sortedLastIndexOf=hz,U.startCase=Xj,U.startsWith=Jj,U.subtract=U9,U.sum=W9,U.sumBy=G9,U.template=Zj,U.times=$9,U.toFinite=Ms,U.toInteger=Mt,U.toLength=LI,U.toLower=e9,U.toNumber=Jo,U.toSafeInteger=ej,U.toString=Jt,U.toUpper=t9,U.trim=n9,U.trimEnd=r9,U.trimStart=o9,U.truncate=i9,U.unescape=s9,U.uniqueId=M9,U.upperCase=l9,U.upperFirst=Y0,U.each=CI,U.eachRight=xI,U.first=vI,J0(U,function(){var l={};return Gi(U,function(f,b){rn.call(U.prototype,b)||(l[b]=f)}),l}(),{chain:!1}),U.VERSION=r,Go(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){U[l].placeholder=U}),Go(["drop","take"],function(l,f){zt.prototype[l]=function(b){b=b===n?1:nr(Mt(b),0);var $=this.__filtered__&&!f?new zt(this):this.clone();return $.__filtered__?$.__takeCount__=Pr(b,$.__takeCount__):$.__views__.push({size:Pr(b,K),type:l+($.__dir__<0?"Right":"")}),$},zt.prototype[l+"Right"]=function(b){return this.reverse()[l](b).reverse()}}),Go(["filter","map","takeWhile"],function(l,f){var b=f+1,$=b==M||b==z;zt.prototype[l]=function(j){var G=this.clone();return G.__iteratees__.push({iteratee:vt(j,3),type:b}),G.__filtered__=G.__filtered__||$,G}}),Go(["head","last"],function(l,f){var b="take"+(f?"Right":"");zt.prototype[l]=function(){return this[b](1).value()[0]}}),Go(["initial","tail"],function(l,f){var b="drop"+(f?"":"Right");zt.prototype[l]=function(){return this.__filtered__?new zt(this):this[b](1)}}),zt.prototype.compact=function(){return this.filter(Zr)},zt.prototype.find=function(l){return this.filter(l).head()},zt.prototype.findLast=function(l){return this.reverse().find(l)},zt.prototype.invokeMap=Ft(function(l,f){return typeof l=="function"?new zt(this):this.map(function(b){return Pd(b,l,f)})}),zt.prototype.reject=function(l){return this.filter(Rh(vt(l)))},zt.prototype.slice=function(l,f){l=Mt(l);var b=this;return b.__filtered__&&(l>0||f<0)?new zt(b):(l<0?b=b.takeRight(-l):l&&(b=b.drop(l)),f!==n&&(f=Mt(f),b=f<0?b.dropRight(-f):b.take(f-l)),b)},zt.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},zt.prototype.toArray=function(){return this.take(K)},Gi(zt.prototype,function(l,f){var b=/^(?:filter|find|map|reject)|While$/.test(f),$=/^(?:head|last)$/.test(f),j=U[$?"take"+(f=="last"?"Right":""):f],G=$||/^find/.test(f);j&&(U.prototype[f]=function(){var q=this.__wrapped__,Q=$?[1]:arguments,Z=q instanceof zt,xe=Q[0],Se=Z||_t(q),$e=function(At){var Ht=j.apply(U,rl([At],Q));return $&&je?Ht[0]:Ht};Se&&b&&typeof xe=="function"&&xe.length!=1&&(Z=Se=!1);var je=this.__chain__,st=!!this.__actions__.length,wt=G&&!je,Ot=Z&&!st;if(!G&&Se){q=Ot?q:new zt(this);var Ct=l.apply(q,Q);return Ct.__actions__.push({func:Ih,args:[$e],thisArg:n}),new qo(Ct,je)}return wt&&Ot?l.apply(this,Q):(Ct=this.thru($e),wt?$?Ct.value()[0]:Ct.value():Ct)})}),Go(["pop","push","shift","sort","splice","unshift"],function(l){var f=Jp[l],b=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",$=/^(?:pop|shift)$/.test(l);U.prototype[l]=function(){var j=arguments;if($&&!this.__chain__){var G=this.value();return f.apply(_t(G)?G:[],j)}return this[b](function(q){return f.apply(_t(q)?q:[],j)})}}),Gi(zt.prototype,function(l,f){var b=U[f];if(b){var $=b.name+"";rn.call(yc,$)||(yc[$]=[]),yc[$].push({name:f,func:b})}}),yc[bh(n,w).name]=[{name:"wrapper",func:n}],zt.prototype.clone=s3,zt.prototype.reverse=l3,zt.prototype.value=a3,U.prototype.at=Dz,U.prototype.chain=Nz,U.prototype.commit=Bz,U.prototype.next=zz,U.prototype.plant=Hz,U.prototype.reverse=Vz,U.prototype.toJSON=U.prototype.valueOf=U.prototype.value=Uz,U.prototype.first=U.prototype.head,yd&&(U.prototype[yd]=jz),U},mc=B5();la?((la.exports=mc)._=mc,Xy._=mc):vr._=mc}).call(Sn)})($g,$g.exports);var ru=$g.exports;const gt=yp(ru);var dS={},bie=rt;Object.defineProperty(dS,"__esModule",{value:!0});var uy=dS.default=void 0,wie=bie(ot()),Cie=tt(),xie=(0,wie.default)((0,Cie.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 11h7V4l-2.35 2.35z"}),"Refresh");uy=dS.default=xie;var fS={},Sie=rt;Object.defineProperty(fS,"__esModule",{value:!0});var pS=fS.default=void 0,Eie=Sie(ot()),Pie=tt(),Iie=(0,Eie.default)((0,Pie.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");pS=fS.default=Iie;var hS={},kie=rt;Object.defineProperty(hS,"__esModule",{value:!0});var Tp=hS.default=void 0,_ie=kie(ot()),$ie=tt(),Rie=(0,_ie.default)((0,$ie.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");Tp=hS.default=Rie;var mS={},Mie=rt;Object.defineProperty(mS,"__esModule",{value:!0});var dy=mS.default=void 0,Tie=Mie(ot()),Oie=tt(),Fie=(0,Tie.default)((0,Oie.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}),"Error");dy=mS.default=Fie;var gS={},Lie=rt;Object.defineProperty(gS,"__esModule",{value:!0});var iA=gS.default=void 0,Aie=Lie(ot()),Die=tt(),Nie=(0,Aie.default)((0,Die.jsx)("path",{d:"M12 8V4l8 8-8 8v-4H4V8z"}),"Forward");iA=gS.default=Nie;var vS={},Bie=rt;Object.defineProperty(vS,"__esModule",{value:!0});var rp=vS.default=void 0,zie=Bie(ot()),jie=tt(),Hie=(0,zie.default)((0,jie.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");rp=vS.default=Hie;var yS={},Vie=rt;Object.defineProperty(yS,"__esModule",{value:!0});var Op=yS.default=void 0,Uie=Vie(ot()),Wie=tt(),Gie=(0,Uie.default)((0,Wie.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");Op=yS.default=Gie;const Rg="/~/api/",Kie={loginSrp1:90,update:600,get_nat:20,get_status:20},sA={};function qie(e){Object.assign(sA,e)}function Et(e,t,n={}){var i,s,a;gt.defaults(n,sA);const r=(i=n.modal)==null?void 0:i.call(n,e,t),o=new AbortController;return n.timeout!==!1&&setTimeout(()=>o.abort("timeout"),1e3*((a=(s=Kie[e])!=null?s:n.timeout)!=null?a:10)),Object.assign(fetch(SA()+Rg+e,{method:"POST",headers:{"content-type":"application/json","x-hfs-anti-csrf":"1"},signal:o.signal,body:t&&JSON.stringify(t)}).then(c=>ct(this,null,function*(){var m;r==null||r();let d=yield c.text(),p;try{p=JSON.parse(d)}catch(g){}const h=p!=null?p:d;if(console.debug(c.ok?"API":"API FAILED",e,t,">>",h),yield(m=n.onResponse)==null?void 0:m.call(n,c,h),!c.ok)throw new lA(c.status,p===void 0?d:`Failed API ${e}: ${c.statusText}`,p);return h}),c=>{var d;throw r==null||r(),(d=c==null?void 0:c.message)!=null&&d.includes("fetch")?Error("Network error"):c}),{abort(){o.abort("cancel")}})}class lA extends Error{constructor(t,n,r){super(n,{cause:r}),this.code=t}get data(){return this.cause}}function bS(e,t){const[n,r]=ro(void 0),[o,i]=ro(void 0),[s,a]=ro(0),c=u.useRef(),d=u.useRef();u.useEffect(()=>{var y,v;if((y=c.current)==null||y.abort(),r(void 0),i(void 0),!e)return;let h=!1;const m=Et(e,t),g=m.then(E=>h||r(E),E=>h||i(E)).finally(()=>c.current=d.current=void 0);c.current=Object.assign(g,{abort(){h=!0,m.abort()}}),(v=d.current)==null||v.resolve(g)},[e,JSON.stringify(t),s]);const p=u.useCallback(()=>c.current||a(h=>h+1)||(d.current=kS()),[a]);return[n,o,p,n===void 0||!!(c.current||d.current)]}function aA(e,t,n){t=gt.omitBy(t,gt.isUndefined),console.debug("API EVENTS",e,t);const r=new EventSource(SA()+Rg+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(i){return n("string",o)}console.debug("SSE msg",o),n("msg",o)},r}function Yie(e,t={}){const[n,r]=ro(void 0),[o,i]=ro(void 0),[s,a]=ro(!1);return u.useEffect(()=>{const c=aA(e,t,(p,h)=>{switch(p){case"error":return i("Connection error"),d();case"closed":return d();case"msg":return(c==null?void 0:c.readyState)===(c==null?void 0:c.CLOSED)?d():r(h)}});return()=>{c.close(),d()};function d(){a(!1)}},[e,JSON.stringify(t)]),{data:n,loading:s,error:o}}globalThis&&globalThis.__awaiter;function wS(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 Qie(e,t,n,r){const o=u.useRef(t);cA(()=>{o.current=t},[t]),u.useEffect(()=>{var i;const s=(i=n==null?void 0:n.current)!==null&&i!==void 0?i:window;if(!(s&&s.addEventListener))return;const a=c=>o.current(c);return s.addEventListener(e,a,r),()=>{s.removeEventListener(e,a,r)}},[e,n,r])}globalThis&&globalThis.__awaiter;function Xie(){const e=u.useRef(!1);return u.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),u.useCallback(()=>e.current,[])}const cA=typeof window!="undefined"?u.useLayoutEffect:u.useEffect;function CS(){const[e,t]=u.useState({width:0,height:0}),n=()=>{t({width:window.innerWidth,height:window.innerHeight})};return Qie("resize",n),cA(()=>{n()},[]),e}function ro(e){const t=Xie(),[n,r]=u.useState(e),o=u.useCallback(i=>{t()&&r(i)},[t,r]);return[n,o,t]}function Jie(e){return e.filter(t=>t===0||t&&(!Array.isArray(t)||t.length))}function Zie(e,t){const n=[];for(const r of Jie(t))n.push(r,e);return n.splice(-1,1),op(n)}function op(e){return e.map((t,n)=>!t||typeof t=="string"?t:Array.isArray(t)?op(t):u.createElement(u.Fragment,{key:n,children:t}))}const ese=Symbol(),xS=Symbol(),Qd="a",Lm="w";let tse=(e,t)=>new Proxy(e,t);const Lw=Object.getPrototypeOf,Aw=new WeakMap,uA=e=>e&&(Aw.has(e)?Aw.get(e):Lw(e)===Object.prototype||Lw(e)===Array.prototype),cR=e=>typeof e=="object"&&e!==null,nse=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(Lw(e),t)},dA=e=>e[xS]||e,fA=(e,t,n,r)=>{if(!uA(e))return e;let o=r&&r.get(e);if(!o){const c=dA(e);o=(d=>Object.values(Object.getOwnPropertyDescriptors(d)).some(p=>!p.configurable&&!p.writable))(c)?[c,nse(c)]:[c],r==null||r.set(e,o)}const[i,s]=o;let a=n&&n.get(i);return a&&a[1].f===!!s||(a=((c,d)=>{const p={f:d};let h=!1;const m=(y,v)=>{if(!h){let E=p[Qd].get(c);if(E||(E={},p[Qd].set(c,E)),y===Lm)E[Lm]=!0;else{let w=E[y];w||(w=new Set,E[y]=w),w.add(v)}}},g={get:(y,v)=>v===xS?c:(m("k",v),fA(Reflect.get(y,v),p[Qd],p.c,p.t)),has:(y,v)=>v===ese?(h=!0,p[Qd].delete(c),!0):(m("h",v),Reflect.has(y,v)),getOwnPropertyDescriptor:(y,v)=>(m("o",v),Reflect.getOwnPropertyDescriptor(y,v)),ownKeys:y=>(m(Lm),Reflect.ownKeys(y))};return d&&(g.set=g.deleteProperty=()=>!1),[g,p]})(i,!!s),a[1].p=tse(s||i,a[0]),n&&n.set(i,a)),a[1][Qd]=t,a[1].c=n,a[1].t=r,a[1].p},pA=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!cR(e)||!cR(t))return!0;const o=n.get(dA(e));if(!o)return!0;if(r){const s=r.get(e);if(s&&s.n===t)return s.g;r.set(e,{n:t,g:!1})}let i=null;try{for(const s of o.h||[])if(i=Reflect.has(e,s)!==Reflect.has(t,s),i)return i;if(o[Lm]===!0){if(i=((s,a)=>{const c=Reflect.ownKeys(s),d=Reflect.ownKeys(a);return c.length!==d.length||c.some((p,h)=>p!==d[h])})(e,t),i)return i}else for(const s of o.o||[])if(i=!!Reflect.getOwnPropertyDescriptor(e,s)!=!!Reflect.getOwnPropertyDescriptor(t,s),i)return i;for(const s of o.k||[])if(i=pA(e[s],t[s],n,r),i)return i;return i===null&&(i=!0),i}finally{r&&r.set(e,{n:t,g:i})}},rse=e=>uA(e)&&e[xS]||null,uR=(e,t=!0)=>{Aw.set(e,t)};const K1=e=>typeof e=="object"&&e!==null,Cl=new WeakMap,am=new WeakSet,ose=(e=Object.is,t=(d,p)=>new Proxy(d,p),n=d=>K1(d)&&!am.has(d)&&(Array.isArray(d)||!(Symbol.iterator in d))&&!(d instanceof WeakMap)&&!(d instanceof WeakSet)&&!(d instanceof Error)&&!(d instanceof Number)&&!(d instanceof Date)&&!(d instanceof String)&&!(d instanceof RegExp)&&!(d instanceof ArrayBuffer),r=d=>{switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:throw d}},o=new WeakMap,i=(d,p,h=r)=>{const m=o.get(d);if((m==null?void 0:m[0])===p)return m[1];const g=Array.isArray(d)?[]:Object.create(Object.getPrototypeOf(d));return uR(g,!0),o.set(d,[p,g]),Reflect.ownKeys(d).forEach(y=>{if(Object.getOwnPropertyDescriptor(g,y))return;const v=Reflect.get(d,y),E={value:v,enumerable:!0,configurable:!0};if(am.has(v))uR(v,!1);else if(v instanceof Promise)delete E.value,E.get=()=>h(v);else if(Cl.has(v)){const[w,C]=Cl.get(v);E.value=i(w,C(),h)}Object.defineProperty(g,y,E)}),g},s=new WeakMap,a=[1,1],c=d=>{if(!K1(d))throw new Error("object required");const p=s.get(d);if(p)return p;let h=a[0];const m=new Set,g=(F,A=++a[0])=>{h!==A&&(h=A,m.forEach(O=>O(F,A)))};let y=a[1];const v=(F=++a[1])=>(y!==F&&!m.size&&(y=F,w.forEach(([A])=>{const O=A[1](F);O>h&&(h=O)})),h),E=F=>(A,O)=>{const N=[...A];N[1]=[F,...N[1]],g(N,O)},w=new Map,C=(F,A)=>{if(m.size){const O=A[3](E(F));w.set(F,[A,O])}else w.set(F,[A])},x=F=>{var A;const O=w.get(F);O&&(w.delete(F),(A=O[1])==null||A.call(O))},P=F=>(m.add(F),m.size===1&&w.forEach(([O,N],B)=>{const M=O[3](E(B));w.set(B,[O,M])}),()=>{m.delete(F),m.size===0&&w.forEach(([O,N],B)=>{N&&(N(),w.set(B,[O]))})}),_=Array.isArray(d)?[]:Object.create(Object.getPrototypeOf(d)),I=t(_,{deleteProperty(F,A){const O=Reflect.get(F,A);x(A);const N=Reflect.deleteProperty(F,A);return N&&g(["delete",[A],O]),N},set(F,A,O,N){const B=Reflect.has(F,A),M=Reflect.get(F,A,N);if(B&&(e(M,O)||s.has(O)&&e(M,s.get(O))))return!0;x(A),K1(O)&&(O=rse(O)||O);let L=O;if(O instanceof Promise)O.then(z=>{O.status="fulfilled",O.value=z,g(["resolve",[A],z])}).catch(z=>{O.status="rejected",O.reason=z,g(["reject",[A],z])});else{!Cl.has(O)&&n(O)&&(L=c(O));const z=!am.has(L)&&Cl.get(L);z&&C(A,z)}return Reflect.set(F,A,L,N),g(["set",[A],O,M]),!0}});s.set(d,I);const R=[_,v,i,P];return Cl.set(I,R),Reflect.ownKeys(d).forEach(F=>{const A=Object.getOwnPropertyDescriptor(d,F);"value"in A&&(I[F]=d[F],delete A.value,delete A.writable),Object.defineProperty(_,F,A)}),I})=>[c,Cl,am,e,t,n,r,o,i,s,a],[ise]=ose();function SS(e={}){return ise(e)}function ES(e,t,n){const r=Cl.get(e);let o;const i=[],s=r[3];let a=!1;const d=s(p=>{if(i.push(p),n){t(i.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,a&&t(i.splice(0))}))});return a=!0,()=>{a=!1,d()}}function dR(e,t){const n=Cl.get(e),[r,o,i]=n;return i(r,o(),t)}var hA={exports:{}},mA={};/**
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 Du=u;function sse(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var lse=typeof Object.is=="function"?Object.is:sse,ase=Du.useState,cse=Du.useEffect,use=Du.useLayoutEffect,dse=Du.useDebugValue;function fse(e,t){var n=t(),r=ase({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return use(function(){o.value=n,o.getSnapshot=t,q1(o)&&i({inst:o})},[e,n,t]),cse(function(){return q1(o)&&i({inst:o}),e(function(){q1(o)&&i({inst:o})})},[e]),dse(n),n}function q1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lse(e,n)}catch(r){return!0}}function pse(e,t){return t()}var hse=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?pse:fse;mA.useSyncExternalStore=Du.useSyncExternalStore!==void 0?Du.useSyncExternalStore:hse;hA.exports=mA;var mse=hA.exports;const gse=yp(mse),{use:fR}=$o,{useSyncExternalStore:vse}=gse;const yse=new WeakMap;function PS(e,t){const n=t==null?void 0:t.sync,r=u.useRef(),o=u.useRef();let i=!0;const s=vse(u.useCallback(d=>{const p=ES(e,d,n);return d(),p},[e,n]),()=>{const d=dR(e,fR);try{if(!i&&r.current&&o.current&&!pA(r.current,d,o.current,new WeakMap))return r.current}catch(p){}return d},()=>dR(e,fR));i=!1;const a=new WeakMap;u.useEffect(()=>{r.current=s,o.current=a});const c=u.useMemo(()=>new WeakMap,[]);return fA(s,a,c,yse)}const Nu=SS([]),Dw={closableContent:"x",padding:!0},gA=['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(gA),o=r.length;if(!o)return;const[i,s]=e.shiftKey?[o-1,0]:[0,o-1];e.target!==r[s]&&bse(document.activeElement,n)||(r[i].focus(),e.preventDefault())});function bse(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function wse(){const e=PS(Nu);return u.useEffect(()=>{document.body.style.overflow=e.length?"hidden":""},[e.length]),u.createElement(u.Fragment,{},e.length>0&&e.map(t=>u.createElement(Cse,Ce({key:t.$id},t))))}function Cse(e){var r;const t=u.useRef();if(u.useEffect(()=>{var o;(o=t.current)==null||o.focus()},[]),e=Ce(Ce({},Dw),e),e.Container)return u.createElement(e.Container,e);return u.createElement("div",{ref:t,className:"dialog-backdrop "+(e.className||""),tabIndex:0,onKeyDown:xse,onClick:o=>o.target===o.currentTarget&&bi()},e.noFrame?u.createElement(e.Content||"div"):u.createElement("div",Ce({role:"dialog","aria-modal":!0,className:"dialog",style:Ce(Ce({},n()),(r=e.dialogProps)==null?void 0:r.style),onClick(o){o.stopPropagation()}},e.dialogProps),e.closable||e.closable===void 0&&u.createElement("button",{className:"dialog-icon dialog-closer",onClick(){bi()}},e.closableContent),e.icon&&u.createElement("div",{className:"dialog-icon dialog-type"+(typeof e.icon=="string"?" dialog-icon-text":"")},Nw(e.icon)),u.createElement("div",{className:"dialog-title"},Nw(e.title)),u.createElement("div",{className:"dialog-content"},u.createElement(e.Content||"div"))));function n(){const{innerWidth:o,innerHeight:i}=window,s=e.position;return s&&Ce(Ce({margin:"1em",position:"absolute"},s[0]<o/2?{left:s[0]}:{right:o-s[0]}),s[1]<i/2?{top:s[1]}:{bottom:i-s[1]})}}function Nw(e){return typeof e=="function"?u.createElement(e):e}function xse(e){e.key==="Escape"&&bi()}function Vo(e){const t=Math.random();return e.$id=t,Nu.push(e),{close:n};function n(r){const o=Nu.findIndex(i=>i.$id===t);if(!(o<0))return vA(o,r)}}function bi(e){let t=Nu.length;for(;t--;){const n=Nu[t];if(!n.reserveClosing)return vA(t,e),n}}function vA(e,t){var r;const[n]=Nu.splice(e,1);return(r=n==null?void 0:n.onClose)==null?void 0:r.call(n,t)}var Oa={},fy={},Bu={};const Sse={},Ese=Object.freeze(Object.defineProperty({__proto__:null,default:Sse},Symbol.toStringTag,{value:"Module"})),pR=UM(Ese);Object.defineProperty(Bu,"__esModule",{value:!0});var hR=Bu.crossEnvCrypto=void 0;try{const e=typeof window!="undefined"&&window.crypto||pR.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);hR=Bu.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=pR,n=r=>o=>t.createHash(r).update(o).digest().buffer;hR=Bu.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(fy,"__esModule",{value:!0});fy.SRPParameters=void 0;const cm=Bu;class zu{constructor(t=zu.PrimeGroup[2048],n=zu.H.SHA512){if(this.primeGroup=t,this.H=n,this.NBits=this.primeGroup.N.toString(2).length,!n)throw new Error("Hash function required")}}fy.SRPParameters=zu;zu.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)}};zu.H={SHA1:cm.crossEnvCrypto.hashFunctions.SHA1,SHA256:cm.crossEnvCrypto.hashFunctions.SHA256,SHA384:cm.crossEnvCrypto.hashFunctions.SHA384,SHA512:cm.crossEnvCrypto.hashFunctions.SHA512};var py={},hy={};(function(e){var t=Sn&&Sn.__awaiter||function(x,P,_,k){function I(R){return R instanceof _?R:new _(function(F){F(R)})}return new(_||(_=Promise))(function(R,F){function A(B){try{N(k.next(B))}catch(M){F(M)}}function O(B){try{N(k.throw(B))}catch(M){F(M)}}function N(B){B.done?R(B.value):I(B.value).then(A,O)}N((k=k.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=Bu,r=BigInt(0),o=BigInt(1),i=BigInt(2),s=x=>{const P=x.toString(16),_=new ArrayBuffer(Math.ceil(P.length/2)),k=new Uint8Array(_);let I=0;P.length%2!==0&&(k[0]=parseInt(P[0],16),I=1);for(let R=0;R<_.byteLength;R++)k[R+I]=parseInt(P.slice(2*R+I,2*R+2+I),16);return _};e.bigIntToArrayBuffer=s;const a=x=>{const P=[];return new Uint8Array(x).forEach(_=>{P.push(("0"+_.toString(16)).slice(-2))}),BigInt(`0x${P.join("")}`)};e.arrayBufferToBigInt=a;function c(x){return new TextEncoder().encode(x).buffer}e.stringToArrayBuffer=c;const d=(x,P)=>{const _=new Uint8Array(x);if(_.length<P){const k=new Uint8Array(P);return k.fill(0,0,P-_.length),k.set(_,P-_.length),k}return _};e.padStartArrayBuffer=d;function p(x,...P){const _=P.reduce((I,R)=>I+R.byteLength,0),k=new Uint8Array(_);for(let I=0,R=0;R<P.length;R++)k.set(new Uint8Array(P[R]),I),I+=P[R].byteLength;return x.H(k)}e.hash=p;function h(x,P,..._){const k=_.map(I=>e.padStartArrayBuffer(I,P));return p(x,...k)}e.hashPadded=h;function m(x=10){const P=new Uint8Array(Math.ceil(Math.ceil(x/2)));return n.crossEnvCrypto.randomBytes(P),P.reduce((_,k)=>{const I=k.toString(16).toString();return I.length===1?_+"0"+I:_+I},"").slice(0,x)}e.generateRandomString=m;function g(x=16){return e.arrayBufferToBigInt(C(x))}e.generateRandomBigInt=g;function y(x,P,_,k){return t(this,void 0,void 0,function*(){if(!P||!P.trim())throw new Error("Identity (I) must not be null or empty.");if(!_)throw new Error("Salt (s) must not be null.");if(!k)throw new Error("Password (P) must not be null");const I=yield x.computeX(P,_,k);return x.computeVerifier(I)})}e.createVerifier=y;function v(x,P,_,k){return t(this,void 0,void 0,function*(){const I=yield x.generateRandomSalt(k);return{s:I,v:yield y(x,P,I,_)}})}e.createVerifierAndSalt=v;const E=x=>t(void 0,void 0,void 0,function*(){return(yield p(x,e.bigIntToArrayBuffer(BigInt(1)))).byteLength*8});e.hashBitCount=E;function w(x,P,_){let k=o;for(;P>r;)P%i==o?(k=x*k%_,P-=o):(x=x*x%_,P/=i);return k}e.modPow=w;const C=x=>{const P=new Uint8Array(x);return n.crossEnvCrypto.randomBytes(P),P.buffer}})(hy);var hl=Sn&&Sn.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(p){try{d(r.next(p))}catch(h){s(h)}}function c(p){try{d(r.throw(p))}catch(h){s(h)}}function d(p){p.done?i(p.value):o(p.value).then(a,c)}d((r=r.apply(e,t||[])).next())})};Object.defineProperty(py,"__esModule",{value:!0});py.SRPRoutines=void 0;const un=hy;class Pse{constructor(t){this.parameters=t}hash(...t){return un.hash(this.parameters,...t)}hashPadded(...t){const n=Math.trunc((this.parameters.NBits+7)/8);return un.hashPadded(this.parameters,n,...t)}computeK(){return hl(this,void 0,void 0,function*(){return un.arrayBufferToBigInt(yield this.hashPadded(un.bigIntToArrayBuffer(this.parameters.primeGroup.N),un.bigIntToArrayBuffer(this.parameters.primeGroup.g)))})}generateRandomSalt(t){return hl(this,void 0,void 0,function*(){const n=yield un.hashBitCount(this.parameters),r=t||2*n/8;return un.generateRandomBigInt(r)})}computeX(t,n,r){return hl(this,void 0,void 0,function*(){return un.arrayBufferToBigInt(yield this.hash(un.bigIntToArrayBuffer(n),yield this.computeIdentityHash(t,r)))})}computeXStep2(t,n){return hl(this,void 0,void 0,function*(){return un.arrayBufferToBigInt(yield this.hash(un.bigIntToArrayBuffer(t),n))})}computeIdentityHash(t,n){return hl(this,void 0,void 0,function*(){return yield this.hash(un.stringToArrayBuffer(n))})}computeVerifier(t){return un.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}generatePrivateValue(){const t=Math.max(256,this.parameters.NBits);let n;do n=un.generateRandomBigInt(t/8)%this.parameters.primeGroup.N;while(n===BigInt(0));return n}computeClientPublicValue(t){return un.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}isValidPublicValue(t){return t%this.parameters.primeGroup.N!==BigInt(0)}computeU(t,n){return hl(this,void 0,void 0,function*(){return un.arrayBufferToBigInt(yield this.hashPadded(un.bigIntToArrayBuffer(t),un.bigIntToArrayBuffer(n)))})}computeClientEvidence(t,n,r,o,i){return hl(this,void 0,void 0,function*(){return un.arrayBufferToBigInt(yield this.hash(un.bigIntToArrayBuffer(r),un.bigIntToArrayBuffer(o),un.bigIntToArrayBuffer(i)))})}computeServerEvidence(t,n,r){return hl(this,void 0,void 0,function*(){return un.arrayBufferToBigInt(yield this.hash(un.bigIntToArrayBuffer(t),un.bigIntToArrayBuffer(n),un.bigIntToArrayBuffer(r)))})}computeClientSessionKey(t,n,r,o,i){const s=this.parameters.primeGroup.N,a=r*n+o,c=un.modPow(this.parameters.primeGroup.g,n,s)*t%s;return un.modPow(i+s-c,a,s)}}py.SRPRoutines=Pse;var Hl={},IS=Sn&&Sn.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(p){try{d(r.next(p))}catch(h){s(h)}}function c(p){try{d(r.throw(p))}catch(h){s(h)}}function d(p){p.done?i(p.value):o(p.value).then(a,c)}d((r=r.apply(e,t||[])).next())})};Object.defineProperty(Hl,"__esModule",{value:!0});Hl.SRPClientSessionStep2=Hl.SRPClientSessionStep1=Hl.SRPClientSession=void 0;class Ise{constructor(t){this.routines=t}step1(t,n){return IS(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 my(this.routines,t,r)})}}Hl.SRPClientSession=Ise;class my{constructor(t,n,r){this.routines=t,this.I=n,this.IH=r}step2(t,n){return IS(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(),i=this.routines.computeClientPublicValue(o),s=yield this.routines.computeK(),a=yield this.routines.computeU(i,n),c=this.routines.computeClientSessionKey(s,r,a,o,n),d=yield this.routines.computeClientEvidence(this.I,t,i,n,c);return new gy(this.routines,i,d,c)})}toJSON(){return{I:this.I,IH:Array.from(new Uint8Array(this.IH))}}static fromState(t,n){return new my(t,n.I,new Uint8Array(n.IH).buffer)}}Hl.SRPClientSessionStep1=my;class gy{constructor(t,n,r,o){this.routines=t,this.A=n,this.M1=r,this.S=o}step3(t){return IS(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 gy(t,BigInt("0x"+n.A),BigInt("0x"+n.M1),BigInt("0x"+n.S))}}Hl.SRPClientSessionStep2=gy;var ju={},Bw=Sn&&Sn.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(p){try{d(r.next(p))}catch(h){s(h)}}function c(p){try{d(r.throw(p))}catch(h){s(h)}}function d(p){p.done?i(p.value):o(p.value).then(a,c)}d((r=r.apply(e,t||[])).next())})};Object.defineProperty(ju,"__esModule",{value:!0});ju.SRPServerSessionStep1=ju.SRPServerSession=void 0;const zw=hy;class kse{constructor(t){this.routines=t}step1(t,n,r){return Bw(this,void 0,void 0,function*(){const o=this.routines.generatePrivateValue(),i=yield this.routines.computeK(),s=_se(this.routines.parameters,i,r,o);return new vy(this.routines,t,n,r,o,s)})}}ju.SRPServerSession=kse;class vy{constructor(t,n,r,o,i,s){this.routines=t,this.identifier=n,this.salt=r,this.verifier=o,this.b=i,this.B=s}sessionKey(t){return Bw(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 $se(this.routines.parameters.primeGroup.N,this.verifier,n,t,this.b)})}step2(t,n){return Bw(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 vy(t,n.identifier,BigInt("0x"+n.salt),BigInt("0x"+n.verifier),BigInt("0x"+n.b),BigInt("0x"+n.B))}}ju.SRPServerSessionStep1=vy;const _se=(e,t,n,r)=>(zw.modPow(e.primeGroup.g,r,e.primeGroup.N)+n*t)%e.primeGroup.N,$se=(e,t,n,r,o)=>zw.modPow(zw.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=fy;Object.defineProperty(e,"SRPParameters",{enumerable:!0,get:function(){return t.SRPParameters}});var n=py;Object.defineProperty(e,"SRPRoutines",{enumerable:!0,get:function(){return n.SRPRoutines}});var r=Hl;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=ju;Object.defineProperty(e,"SRPServerSession",{enumerable:!0,get:function(){return o.SRPServerSession}}),Object.defineProperty(e,"SRPServerSessionStep1",{enumerable:!0,get:function(){return o.SRPServerSessionStep1}});var i=hy;Object.defineProperty(e,"createVerifierAndSalt",{enumerable:!0,get:function(){return i.createVerifierAndSalt}}),Object.defineProperty(e,"bigIntToArrayBuffer",{enumerable:!0,get:function(){return i.bigIntToArrayBuffer}}),Object.defineProperty(e,"arrayBufferToBigInt",{enumerable:!0,get:function(){return i.arrayBufferToBigInt}}),Object.defineProperty(e,"generateRandomBigInt",{enumerable:!0,get:function(){return i.generateRandomBigInt}})})(Oa);function Rse(e,t,n){return ct(this,null,function*(){const{pubKey:r,salt:o}=yield n("loginSrp1",{username:e});if(!o)throw Error("salt");const i=new Oa.SRPRoutines(new Oa.SRPParameters),c=yield(yield new Oa.SRPClientSession(i).step1(e,t)).step2(BigInt(o),BigInt(r)),d=yield n("loginSrp2",{pubKey:String(c.A),proof:String(c.M1)});return yield c.step3(BigInt(d.proof)).catch(()=>Promise.reject("trust")),d})}const yy="https://github.com/rejetto/hfs/",Mse=yy+"wiki/",Tse=["","K","M","G","T"];function Ql(e,{post:t="B",k:n=1024,digits:r=NaN}={}){if(isNaN(Number(e))||e<0)return"";const o=e&&Math.floor(Math.log2(e)/Math.log2(n));return e/=Yi(n,o),(o&&!isNaN(r)?e.toFixed(r):gt.round(e,isNaN(r)?e>=100?0:1:r))+" "+(Tse[o]||"")+t}function yu(e,t,n=""){return t?e+t+n:""}function Ose(e,t){return new Promise(n=>setTimeout(n,e,t))}function yA(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>[n,t(r,n)]))}function Fse(e,t){return!t||t.endsWith(e)?t:t+e}function Lse(e){return!!e}function sc(e){return e.filter(Lse)}function Ase(e,t){return Object.defineProperties(e,wA(t,n=>({enumerable:!1,writable:!0,value:n})))}function ip(e,t){return t(e)}function Dse(e){return(e*100).toFixed(1)+"%"}function Nse(e){return e==null?[]:Array.isArray(e)?e:[e]}function kS(){let e;const t=new Promise((n,r)=>e={resolve:n,reject:r});return Object.assign(t,e)}function Bse(e){return e.slice(e.lastIndexOf("/")+1||e.lastIndexOf("\\")+1)}function zse(e){try{return e&&JSON.parse(e)}catch(t){}}function mR(e,t,n){const r=e[t];return e[t]=e[n],e[n]=r,e}function bA(e,t){return gt.isEqualWith(e,t,(n,r)=>{if(!gt.isPlainObject(n)||!gt.isPlainObject(r))return;const o=Object.keys(n),i=Object.keys(r);return o.length===i.length&&o.every((s,a)=>{const c=i[a];return s===c&&bA(n[s],r[c])})})}function wA(e,t,n=!1){if(!e)return{};const r=Object.entries(e).map(([o,i])=>{if(typeof o=="symbol")return;let s=o;const a=typeof n=="number"?n:0;let c=t(i,o,d=>(s=d,!0),a);return(n!==!1||t.length===4)&&gt.isPlainObject(c)&&(c=wA(c,t,a+1)),s!==void 0&&[s,c]});return Object.fromEntries(sc(r))}window._=gt;const Y1=by();Object.assign(Y1,{getPluginKey:()=>gR("plugin"),getPluginPublic:()=>{var e,t;return(t=(e=gR("src"))==null?void 0:e.match(/^.*\//))==null?void 0:t[0]},getPluginConfig:()=>Y1.plugins[Y1.getPluginKey()]||{}});function gR(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 CA(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 xA(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:i}=o.target;t(i==null?void 0:i.toString())}),r.addEventListener("error",()=>{n(r.error)}),r.readAsText(e)})}function jse(){return window.innerWidth<800}function by(){return window.HFS}function SA(){return by().prefixUrl||""}function Hse(e){return function t(n){if(!n)return;const{exp:r,username:o,adminUrl:i}=n;if(e.username=o,e.adminUrl=i,!o||!r)return;const s=new Date(r).getTime()-Date.now(),a=gt.clamp(s-3e4,4e3,6e5);console.debug("session refresh in",Math.round(a/1e3)),setTimeout(()=>Et("refresh_session").then(t),a)}}var _S={},Q1={},vR;function Vse(){return vR||(vR=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=QL}(Q1)),Q1}var Use=rt;Object.defineProperty(_S,"__esModule",{value:!0});var EA=_S.default=void 0,Wse=Use(Vse()),Gse=tt(),Kse=(0,Wse.default)((0,Gse.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"}),"Save");EA=_S.default=Kse;function qse(e){return Je("MuiLoadingButton",e)}const Yse=Xe("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),Os=Yse,Qse=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],Xse=e=>{const{loading:t,loadingPosition:n,classes:r}=e,o={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${ue(n)}`],endIcon:[t&&`endIconLoading${ue(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${ue(n)}`]},i=Me(o,qse,r);return S({},r,i)},Jse=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",Zse=oe(Qn,{shouldForwardProp:e=>Jse(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${Os.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${Os.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>S({[`& .${Os.startIconLoadingStart}, & .${Os.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}),[`&.${Os.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${Os.startIconLoadingStart}, & .${Os.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${Os.startIconLoadingStart}, & .${Os.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),ele=oe("div",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${ue(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})),tle=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiLoadingButton"}),{children:o,disabled:i=!1,id:s,loading:a=!1,loadingIndicator:c,loadingPosition:d="center",variant:p="text"}=r,h=ne(r,Qse),m=sn(s),g=c!=null?c:T.jsx(Qs,{"aria-labelledby":m,color:"inherit",size:16}),y=S({},r,{disabled:i,loading:a,loadingIndicator:g,loadingPosition:d,variant:p}),v=Xse(y),E=a?T.jsx(ele,{className:v.loadingIndicator,ownerState:y,children:g}):null;return T.jsxs(Zse,S({disabled:i||a,id:m,ref:n},h,{variant:p,classes:v,ownerState:y,children:[y.loadingPosition==="end"?o:E,y.loadingPosition==="end"?E:o]}))}),PA=tle,nle=u.createContext({}),$S=nle,rle=["element"];function ole(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}function ile(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 IA=u.createContext({});function sle(e){const t=u.useRef(null);return u.useEffect(()=>{t.current=e},[e]),t.current}const yR=()=>{};function lle(e){const[,t]=u.useState(),{registerDescendant:n=yR,unregisterDescendant:r=yR,descendants:o=[],parentId:i=null}=u.useContext(IA),s=ole(o,d=>d.element===e.element),a=sle(o),c=o.some((d,p)=>a&&a[p]&&a[p].element!==d.element);return an(()=>{if(e.element)return n(S({},e,{index:s})),()=>{r(e.element)};t({})},[n,r,s,c,e]),{parentId:i,index:s}}function kA(e){const{children:t,id:n}=e,[r,o]=u.useState([]),i=u.useCallback(c=>{let{element:d}=c,p=ne(c,rle);o(h=>{let m;if(h.length===0)return[S({},p,{element:d,index:0})];const g=ile(h,d);if(h[g]&&h[g].element===d)m=h;else{const y=S({},p,{element:d,index:g});m=h.slice(),m.splice(g,0,y)}return m.forEach((y,v)=>{y.index=v}),m})},[]),s=u.useCallback(c=>{o(d=>d.filter(p=>c!==p.element))},[]),a=u.useMemo(()=>({descendants:r,registerDescendant:i,unregisterDescendant:s,parentId:n}),[r,i,s,n]);return T.jsx(IA.Provider,{value:a,children:t})}function ale(e){const{focus:t,isExpanded:n,isExpandable:r,isFocused:o,isDisabled:i,isSelected:s,multiSelect:a,selectNode:c,selectRange:d,toggleExpansion:p}=u.useContext($S),h=r?r(e):!1,m=n?n(e):!1,g=o?o(e):!1,y=i?i(e):!1,v=s?s(e):!1;return{disabled:y,expanded:m,selected:v,focused:g,handleExpansion:x=>{if(!y){g||t(x,e);const P=a&&(x.shiftKey||x.ctrlKey||x.metaKey);h&&!(P&&n(e))&&p(x,e)}},handleSelection:x=>{y||(g||t(x,e),a&&(x.shiftKey||x.ctrlKey||x.metaKey)?x.shiftKey?d(x,{end:e}):c(x,e,!0):c(x,e))},preventSelection:x=>{(x.shiftKey||x.ctrlKey||x.metaKey||y)&&x.preventDefault()}}}const cle=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],ule=u.forwardRef(function(t,n){const{classes:r,className:o,displayIcon:i,expansionIcon:s,icon:a,label:c,nodeId:d,onClick:p,onMouseDown:h}=t,m=ne(t,cle),{disabled:g,expanded:y,selected:v,focused:E,handleExpansion:w,handleSelection:C,preventSelection:x}=ale(d),P=a||s||i,_=I=>{x(I),h&&h(I)},k=I=>{w(I),C(I),p&&p(I)};return T.jsxs("div",S({className:he(o,r.root,y&&r.expanded,v&&r.selected,E&&r.focused,g&&r.disabled),onClick:k,onMouseDown:_,ref:n},m,{children:[T.jsx("div",{className:r.iconContainer,children:P}),T.jsx("div",{className:r.label,children:c})]}))}),_A=ule;function dle(e){return Je("MuiTreeItem",e)}const fle=Xe("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]),ml=fle,ple=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],hle=e=>{const{classes:t}=e;return Me({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],group:["group"]},dle,t)},mle=oe("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),gle=oe(_A,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${ml.iconContainer}`]:t.iconContainer},t.label&&{[`& .${ml.label}`]:t.label}]})(({theme:e})=>({padding:"0 8px",width:"100%",display:"flex",alignItems:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ml.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${ml.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ml.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:dt(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}))`:dt(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})`:dt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ml.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:dt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${ml.iconContainer}`]:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${ml.label}`]:S({width:"100%",minWidth:0,paddingLeft:4,position:"relative"},e.typography.body1)})),vle=oe(Eg,{name:"MuiTreeItem",slot:"Group",overridesResolver:(e,t)=>t.group})({margin:0,padding:0,marginLeft:17}),yle=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTreeItem"}),{children:o,className:i,collapseIcon:s,ContentComponent:a=_A,ContentProps:c,endIcon:d,expandIcon:p,disabled:h,icon:m,id:g,label:y,nodeId:v,onClick:E,onMouseDown:w,TransitionComponent:C=Eg,TransitionProps:x}=r,P=ne(r,ple),{icons:_={},focus:k,isExpanded:I,isFocused:R,isSelected:F,isDisabled:A,multiSelect:O,disabledItemsFocusable:N,mapFirstChar:B,unMapFirstChar:M,registerNode:L,unregisterNode:z,treeId:V}=u.useContext($S);let D=null;g!=null?D=g:V&&v&&(D=`${V}-${v}`);const[H,W]=u.useState(null),K=u.useRef(null),Y=Vt(W,n),ie=u.useMemo(()=>({element:H,id:v}),[v,H]),{index:re,parentId:de}=lle(ie),se=!!(Array.isArray(o)?o.length:o),le=I?I(v):!1,ke=R?R(v):!1,ve=F?F(v):!1,Pe=A?A(v):!1,ee=S({},r,{expanded:le,focused:ke,selected:ve,disabled:Pe}),_e=hle(ee);let Re,Ee;se&&(le?Ee=s||_.defaultCollapseIcon:Ee=p||_.defaultExpandIcon),se?Re=_.defaultParentIcon:Re=d||_.defaultEndIcon,u.useEffect(()=>{if(L&&z&&re!==-1)return L({id:v,idAttribute:D,index:re,parentId:de,expandable:se,disabled:h}),()=>{z(v)}},[L,z,de,re,v,se,h,D]),u.useEffect(()=>{if(B&&M&&y)return B(v,K.current.textContent.substring(0,1).toLowerCase()),()=>{M(v)}},[B,M,v,y]);let pe;O?pe=ve:ve&&(pe=!0);function be(te){if(te.target===te.currentTarget){let Ye;typeof te.target.getRootNode=="function"?Ye=te.target.getRootNode():Ye=vn(te.target),Ye.getElementById(V).focus({preventScroll:!0})}const Oe=!N&&Pe;!ke&&te.currentTarget===te.target&&!Oe&&k(te,v)}return T.jsxs(mle,S({className:he(_e.root,i),role:"treeitem","aria-expanded":se?le:null,"aria-selected":pe,"aria-disabled":Pe||null,ref:Y,id:D,tabIndex:-1},P,{ownerState:ee,onFocus:be,children:[T.jsx(gle,S({as:a,ref:K,classes:{root:_e.content,expanded:_e.expanded,selected:_e.selected,focused:_e.focused,disabled:_e.disabled,iconContainer:_e.iconContainer,label:_e.label},label:y,nodeId:v,onClick:E,onMouseDown:w,icon:m,expansionIcon:Ee,displayIcon:Re,ownerState:ee},c)),o&&T.jsx(kA,{id:v,children:T.jsx(vle,S({as:C,unmountOnExit:!0,className:_e.group,in:le,component:"ul",role:"group"},x,{children:o}))})]}))}),jw=yle;function ble(e){return Je("MuiTreeView",e)}Xe("MuiTreeView",["root"]);const wle=["children","className","defaultCollapseIcon","defaultEndIcon","defaultExpanded","defaultExpandIcon","defaultParentIcon","defaultSelected","disabledItemsFocusable","disableSelection","expanded","id","multiSelect","onBlur","onFocus","onKeyDown","onNodeFocus","onNodeSelect","onNodeToggle","selected"],Cle=e=>{const{classes:t}=e;return Me({root:["root"]},ble,t)},xle=oe("ul",{name:"MuiTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0});function Sle(e){return e&&e.length===1&&e.match(/\S/)}function bR(e,t,n){for(let r=t;r<e.length;r+=1)if(n===e[r])return r;return-1}function wR(){return!1}const Ele=[],Ple=[],Ile=u.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTreeView"}),{children:o,className:i,defaultCollapseIcon:s,defaultEndIcon:a,defaultExpanded:c=Ele,defaultExpandIcon:d,defaultParentIcon:p,defaultSelected:h=Ple,disabledItemsFocusable:m=!1,disableSelection:g=!1,expanded:y,id:v,multiSelect:E=!1,onBlur:w,onFocus:C,onKeyDown:x,onNodeFocus:P,onNodeSelect:_,onNodeToggle:k,selected:I}=r,R=ne(r,wle),A=lr().direction==="rtl",O=S({},r,{defaultExpanded:c,defaultSelected:h,disabledItemsFocusable:m,disableSelection:g,multiSelect:E}),N=Cle(O),B=sn(v),M=u.useRef(null),L=Vt(M,n),[z,V]=u.useState(null),D=u.useRef({}),H=u.useRef({}),[W,K]=ls({controlled:y,default:c,name:"TreeView",state:"expanded"}),[Y,ie]=ls({controlled:I,default:h,name:"TreeView",state:"selected"}),re=u.useCallback(ce=>Array.isArray(W)?W.indexOf(ce)!==-1:!1,[W]),de=u.useCallback(ce=>D.current[ce]&&D.current[ce].expandable,[]),se=u.useCallback(ce=>Array.isArray(Y)?Y.indexOf(ce)!==-1:Y===ce,[Y]),le=u.useCallback(ce=>{let ge=D.current[ce];if(!ge)return!1;if(ge.disabled)return!0;for(;ge.parentId!=null;)if(ge=D.current[ge.parentId],ge.disabled)return!0;return!1},[]),ke=ce=>z===ce,ve=ce=>Object.keys(D.current).map(ge=>D.current[ge]).filter(ge=>ge.parentId===ce).sort((ge,Ne)=>ge.index-Ne.index).map(ge=>ge.id),Pe=ce=>{let ge=ve(ce);return m||(ge=ge.filter(Ne=>!le(Ne))),ge},ee=ce=>{if(re(ce)&&Pe(ce).length>0)return Pe(ce)[0];let ge=D.current[ce];for(;ge!=null;){const Ne=Pe(ge.parentId),pt=Ne[Ne.indexOf(ge.id)+1];if(pt)return pt;ge=D.current[ge.parentId]}return null},_e=ce=>{const ge=D.current[ce],Ne=Pe(ge.parentId),pt=Ne.indexOf(ce);if(pt===0)return ge.parentId;let at=Ne[pt-1];for(;re(at)&&Pe(at).length>0;)at=Pe(at).pop();return at},Re=()=>{let ce=Pe(null).pop();for(;re(ce);)ce=Pe(ce).pop();return ce},Ee=()=>Pe(null)[0],pe=ce=>D.current[ce].parentId,be=(ce,ge)=>{if(ce===ge)return[ce,ge];const Ne=D.current[ce],pt=D.current[ge];if(Ne.parentId===pt.id||pt.parentId===Ne.id)return pt.parentId===Ne.id?[Ne.id,pt.id]:[pt.id,Ne.id];const at=[Ne.id],He=[pt.id];let xt=Ne.parentId,Ut=pt.parentId,_n=He.indexOf(xt)!==-1,mo=at.indexOf(Ut)!==-1,we=!0,me=!0;for(;!mo&&!_n;)we&&(at.push(xt),_n=He.indexOf(xt)!==-1,we=xt!==null,!_n&&we&&(xt=D.current[xt].parentId)),me&&!_n&&(He.push(Ut),mo=at.indexOf(Ut)!==-1,me=Ut!==null,!mo&&me&&(Ut=D.current[Ut].parentId));const We=_n?xt:Ut,ht=ve(We),Kt=at[at.indexOf(We)-1],Fn=He[He.indexOf(We)-1];return ht.indexOf(Kt)<ht.indexOf(Fn)?[ce,ge]:[ge,ce]},te=(ce,ge)=>{const[Ne,pt]=be(ce,ge),at=[Ne];let He=Ne;for(;He!==pt;)He=ee(He),at.push(He);return at},Oe=(ce,ge)=>{ge&&(V(ge),P&&P(ce,ge))},Ye=(ce,ge)=>Oe(ce,ee(ge)),Ke=(ce,ge)=>Oe(ce,_e(ge)),Ue=ce=>Oe(ce,Ee()),Be=ce=>Oe(ce,Re()),ft=(ce,ge,Ne)=>{let pt,at;const He=Ne.toLowerCase(),xt=[],Ut=[];Object.keys(H.current).forEach(_n=>{const mo=H.current[_n],we=D.current[_n],me=we.parentId?re(we.parentId):!0,We=m?!1:le(_n);me&&!We&&(xt.push(_n),Ut.push(mo))}),pt=xt.indexOf(ge)+1,pt>=xt.length&&(pt=0),at=bR(Ut,pt,He),at===-1&&(at=bR(Ut,0,He)),at>-1&&Oe(ce,xt[at])},yt=(ce,ge=z)=>{let Ne;W.indexOf(ge)!==-1?Ne=W.filter(pt=>pt!==ge):Ne=[ge].concat(W),k&&k(ce,Ne),K(Ne)},ut=(ce,ge)=>{const Ne=D.current[ge],at=ve(Ne.parentId).filter(xt=>de(xt)&&!re(xt)),He=W.concat(at);at.length>0&&(K(He),k&&k(ce,He))},It=u.useRef(null),bt=u.useRef(!1),De=u.useRef([]),Ae=(ce,ge)=>{let Ne=Y.slice();const{start:pt,next:at,current:He}=ge;!at||!He||(De.current.indexOf(He)===-1&&(De.current=[]),bt.current?De.current.indexOf(at)!==-1?(Ne=Ne.filter(xt=>xt===pt||xt!==He),De.current=De.current.filter(xt=>xt===pt||xt!==He)):(Ne.push(at),De.current.push(at)):(Ne.push(at),De.current.push(He,at)),_&&_(ce,Ne),ie(Ne))},ze=(ce,ge)=>{let Ne=Y.slice();const{start:pt,end:at}=ge;bt.current&&(Ne=Ne.filter(Ut=>De.current.indexOf(Ut)===-1));let He=te(pt,at);He=He.filter(Ut=>!le(Ut)),De.current=He;let xt=Ne.concat(He);xt=xt.filter((Ut,_n)=>xt.indexOf(Ut)===_n),_&&_(ce,xt),ie(xt)},Ze=(ce,ge)=>{let Ne;Y.indexOf(ge)!==-1?Ne=Y.filter(pt=>pt!==ge):Ne=[ge].concat(Y),_&&_(ce,Ne),ie(Ne)},Ie=(ce,ge)=>{const Ne=E?[ge]:ge;_&&_(ce,Ne),ie(Ne)},Fe=(ce,ge,Ne=!1)=>ge?(Ne?Ze(ce,ge):Ie(ce,ge),It.current=ge,bt.current=!1,De.current=[],!0):!1,Ve=(ce,ge,Ne=!1)=>{const{start:pt=It.current,end:at,current:He}=ge;Ne?Ae(ce,{start:pt,next:at,current:He}):pt!=null&&at!=null&&ze(ce,{start:pt,end:at}),bt.current=!0},it=(ce,ge)=>{It.current||(It.current=ge);const Ne=bt.current?It.current:ge;Ve(ce,{start:Ne,end:Ee()})},mt=(ce,ge)=>{It.current||(It.current=ge);const Ne=bt.current?It.current:ge;Ve(ce,{start:Ne,end:Re()})},tn=(ce,ge)=>{le(ee(ge))||Ve(ce,{end:ee(ge),current:ge},!0)},kn=(ce,ge)=>{le(_e(ge))||Ve(ce,{end:_e(ge),current:ge},!0)},On=ce=>{Ve(ce,{start:Ee(),end:Re()})},Jn=u.useCallback(ce=>{const{id:ge,index:Ne,parentId:pt,expandable:at,idAttribute:He,disabled:xt}=ce;D.current[ge]={id:ge,index:Ne,parentId:pt,expandable:at,idAttribute:He,disabled:xt}},[]),ar=u.useCallback(ce=>{const ge=S({},D.current);delete ge[ce],D.current=ge,V(Ne=>Ne===ce&&M.current===vn(M.current).activeElement?ve(null)[0]:Ne)},[]),cr=u.useCallback((ce,ge)=>{H.current[ce]=ge},[]),bn=u.useCallback(ce=>{const ge=S({},H.current);delete ge[ce],H.current=ge},[]),nn=ce=>(de(z)&&(re(z)?Ye(ce,z):le(z)||yt(ce)),!0),jn=ce=>{if(re(z)&&!le(z))return yt(ce,z),!0;const ge=pe(z);return ge?(Oe(ce,ge),!0):!1},Uo=ce=>{let ge=!1;const Ne=ce.key;if(ce.altKey||ce.currentTarget!==ce.target||!z)return;const pt=ce.ctrlKey||ce.metaKey;switch(Ne){case" ":!g&&!le(z)&&(E&&ce.shiftKey?(Ve(ce,{end:z}),ge=!0):E?ge=Fe(ce,z,!0):ge=Fe(ce,z)),ce.stopPropagation();break;case"Enter":le(z)||(de(z)?(yt(ce),ge=!0):E?ge=Fe(ce,z,!0):ge=Fe(ce,z)),ce.stopPropagation();break;case"ArrowDown":E&&ce.shiftKey&&!g&&tn(ce,z),Ye(ce,z),ge=!0;break;case"ArrowUp":E&&ce.shiftKey&&!g&&kn(ce,z),Ke(ce,z),ge=!0;break;case"ArrowRight":A?ge=jn(ce):ge=nn(ce);break;case"ArrowLeft":A?ge=nn(ce):ge=jn(ce);break;case"Home":E&&pt&&ce.shiftKey&&!g&&!le(z)&&it(ce,z),Ue(ce),ge=!0;break;case"End":E&&pt&&ce.shiftKey&&!g&&!le(z)&&mt(ce,z),Be(ce),ge=!0;break;default:Ne==="*"?(ut(ce,z),ge=!0):E&&pt&&Ne.toLowerCase()==="a"&&!g?(On(ce),ge=!0):!pt&&!ce.shiftKey&&Sle(Ne)&&(ft(ce,z,Ne),ge=!0)}ge&&(ce.preventDefault(),ce.stopPropagation()),x&&x(ce)},Wi=ce=>{if(ce.target===ce.currentTarget){const ge=Array.isArray(Y)?Y[0]:Y;Oe(ce,ge||Pe(null)[0])}C&&C(ce)},xs=ce=>{V(null),w&&w(ce)},Ss=D.current[z]?D.current[z].idAttribute:null;return T.jsx($S.Provider,{value:{icons:{defaultCollapseIcon:s,defaultExpandIcon:d,defaultParentIcon:p,defaultEndIcon:a},focus:Oe,toggleExpansion:yt,isExpanded:re,isExpandable:de,isFocused:ke,isSelected:se,isDisabled:le,selectNode:g?wR:Fe,selectRange:g?wR:Ve,multiSelect:E,disabledItemsFocusable:m,mapFirstChar:cr,unMapFirstChar:bn,registerNode:Jn,unregisterNode:ar,treeId:B},children:T.jsx(kA,{children:T.jsx(xle,S({role:"tree",id:B,"aria-activedescendant":Ss,"aria-multiselectable":E,className:he(N.root,i),ref:L,tabIndex:0,onKeyDown:Uo,onFocus:Wi,onBlur:xs,ownerState:O},R,{children:o}))})})}),$A=Ile;function ws(m){var g=m,{value:e,onChange:t,min:n,max:r,required:o,setApi:i,typing:s,start:a,end:c,onTyping:d,suggestions:p}=g,h=Wt(g,["value","onChange","min","max","required","setApi","typing","start","end","onTyping","suggestions"]);const y=e!=null?e:"";i==null||i({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[v,E]=u.useState(y),w=u.useRef(y);u.useEffect(()=>{E(y),w.current=y},[y]);const C=u.useRef(""),x=u.useRef(!1),P=k=>u.createElement(id,Ce(Pt(Ce({fullWidth:!0,InputLabelProps:v||h.placeholder?{shrink:!0}:void 0},h),{sx:h.label?h.sx:Object.assign({"& .MuiInputBase-input":{pt:1.5}},h.sx),value:v,onChange(I){const R=I.target.value;(d==null?void 0:d(R))!==!1&&(E(R),(s||x.current)&&_(I,R))},onKeyDown(I){var R;(R=h.onKeyDown)==null||R.call(h,I),x.current=I.code===void 0,I.key==="Enter"&&_(I)},onFocus(I){C.current=I.target.value},onBlur(I){var R;(R=h.onBlur)==null||R.call(h,I),C.current!==I.target.value&&_(I)},InputProps:Ce({startAdornment:a&&u.createElement(qa,{position:"start"},a),endAdornment:c&&u.createElement(qa,{position:"end"},c)},h.InputProps)}),k));return p?u.createElement(Gx,{freeSolo:!0,options:p,renderInput:P}):P(null);function _(k,I=v){const R=I.trim();R!==w.current&&(w.current=R,t(R,{was:e,event:k,cancel(){E(y)}}))}}function vs(e){const a=e,{value:t,onChange:n,setApi:r,options:o,sx:i}=a,s=Wt(a,["value","onChange","setApi","options","sx"]);return u.createElement(id,Pt(Ce(Ce({},RA(e)),s),{onChange(c){try{let d=c.target.value;d=JSON.parse(d),n(d,{was:t,event:c})}catch(d){}}}))}function RS(e){const a=e,{value:t,onChange:n,setApi:r,options:o,sx:i}=a,s=Wt(a,["value","onChange","setApi","options","sx"]);return u.createElement(id,Pt(Ce(Ce({},RA(Pt(Ce({},e),{value:void 0}))),s),{SelectProps:{multiple:!0},value:Array.isArray(t)?t.map(c=>JSON.stringify(c)):[],onChange(c){try{let d=c.target.value;d=Array.isArray(d)?d.map(p=>JSON.parse(p)):[],n(d,{was:t,event:c})}catch(d){}}}))}function RA(e){const{options:t,disabled:n,start:r,end:o}=e,i=Array.isArray(t)?t.map(c=>typeof c=="string"||typeof c=="number"?{value:c,label:String(c)}:c):Object.entries(t).map(([c,d])=>({value:d,label:c})),s=JSON.stringify(e.value),a=i.find(c=>JSON.stringify(c.value)===s);return{select:!0,fullWidth:!0,sx:e.label?e.sx:Object.assign({"& .MuiInputBase-input":{pt:1}},e.sx),value:a?s:"",disabled:!(i!=null&&i.length)||n,InputProps:Ce({startAdornment:r&&u.createElement(qa,{position:"start"},r),endAdornment:o&&u.createElement(qa,{position:"end"},o)},e.InputProps),children:i.map((c,d)=>u.createElement(Or,{key:d,value:JSON.stringify(c==null?void 0:c.value),children:c==null?void 0:c.label}))}}function Am(r){var o=r,{value:e,empty:t="-"}=o,n=Wt(o,["value","empty"]);return!n.toField&&t!==void 0&&e!==0&&!e&&(e=t),u.createElement(ws,Pt(Ce({},n),{value:e,disabled:!0}))}function Oi(d){var p=d,{value:e,onChange:t,setApi:n,required:r,min:o,max:i,step:s,unit:a}=p,c=Wt(p,["value","onChange","setApi","required","min","max","step","unit"]);return n==null||n({getError(){return e==null?r?"required":!1:e<o?"too low":e>i?"too high":!1}}),u.createElement(ws,Ce({type:"number",value:e==null?"":String(e),onChange(h,y){var v=y,{was:m}=v,g=Wt(v,["was"]);t(h?Number(h):null,Pt(Ce({},g),{was:m?Number(m):null}))},inputProps:{min:o,max:i,step:s},InputProps:gt.merge({sx:{"& input":{appearance:"textfield"}}},a&&{sx:{pr:"6px","& input":{pl:".2em",textAlign:"right"}},endAdornment:u.createElement(qa,{position:"end",sx:{mt:"1.2em",ml:"5px","& p":{fontSize:"80%"}}},a)})},c))}function Eo(c){var d=c,{label:e="",value:t,onChange:n,setApi:r,helperText:o,error:i,type:s}=d,a=Wt(d,["label","value","onChange","setApi","helperText","error","type"]);const p=()=>t!=null?t:!1,[h,m]=u.useState(p);u.useEffect(()=>m(p),[t]);const g=u.createElement(WL,Pt(Ce({checked:h},a),{onChange(y){n(y.target.checked,{event:y,was:t})}}));return u.createElement(Le,{ml:1,mt:1,sx:i?{color:"error.main",outlineOffset:6,outline:"1px solid"}:void 0},u.createElement(IL,Ce({label:e,control:g,labelPlacement:"end"},a.size==="small"&&{sx:{"& .MuiFormControlLabel-label":{fontSize:".9rem"}}})),o&&u.createElement(Mp,{error:i},o))}function Fp(y){var v=y,{fields:e,values:t,set:n,defaults:r,save:o,stickyBar:i,addToBar:s=[],barSx:a,formRef:c,onError:d,saveOnEnter:p,gridProps:h,formProps:m}=v,g=Wt(v,["fields","values","set","defaults","save","stickyBar","addToBar","barSx","formRef","onError","saveOnEnter","gridProps","formProps"]);const E=u.useRef(!1);u.useEffect(()=>(E.current=!0,()=>{E.current=!1}),[]);const[w,C]=u.useState({}),[x,P]=u.useState({}),_=typeof o=="function"?{onClick:o}:o,[k,I]=u.useState(0),R=u.useRef(!1),F=u.useRef("");u.useEffect(()=>void B(),[k]);const A={};return u.createElement("form",Pt(Ce({ref:c&&(M=>c.current=M||void 0)},m),{onSubmit(M){M.preventDefault()},onKeyDown(M){_&&!_.disabled&&(M.ctrlKey||M.metaKey)&&M.key==="Enter"&&O()}}),u.createElement(Le,Ce({display:"flex",flexDirection:"column",gap:3},g),u.createElement(Ai,Ce({container:!0,rowSpacing:3,columnSpacing:1},h),e.map((M,L)=>{if(!M)return null;if(u.isValidElement(M))return u.createElement(Ai,{key:L,item:!0,xs:12},M);const ie=M,{k:z,fromField:V=ru.identity,toField:D=ru.identity,getError:H,error:W}=ie,K=Wt(ie,["k","fromField","toField","getError","error"]);let Y=w[z]||W||x[z];if(Y===!0&&(Y="Not valid"),z){const de=M.hasOwnProperty("value")?M.value:t==null?void 0:t[z],se=Ce(Ce({},M),K);Object.assign(K,{value:D(de),error:!!(Y||W)||void 0,setApi(le){A[z]=le},onKeyDown(le){p&&le.key==="Enter"&&O()},onChange(le){var ke;try{if(le=V(le),P(ve=>Pt(Ce({},ve),{[z]:!1})),(((ke=A[z])==null?void 0:ke.isEqual)||ru.isEqual)(le,de))return;n(le,z),N(z)}catch(ve){P(Pe=>Pt(Ce({},Pe),{[z]:(ve==null?void 0:ve.message)||String(ve)||!0}))}}}),Array.isArray(K.helperText)&&(K.helperText=u.createElement(u.Fragment,{},...K.helperText)),Y&&(K.helperText=K.helperText?u.createElement(u.Fragment,{},u.createElement("span",{style:{borderBottom:"1px solid"}},Y),u.createElement(Le,{color:"text.primary",component:"span",display:"block"},K.helperText)):Y),K.label===void 0&&(K.label=MA(z)),ru.defaults(K,r==null?void 0:r(se))}{const re=K,{xs:de=12,sm:se,md:le,lg:ke,xl:ve,comp:Pe=ws,before:ee,after:_e,fromField:Re,toField:Ee}=re,pe=Wt(re,["xs","sm","md","lg","xl","comp","before","after","fromField","toField"]);return Object.assign(pe,{name:z}),u.createElement(Ai,{key:z||L,item:!0,xs:de,sm:se,md:le,lg:ke,xl:ve},ee,u.isValidElement(Pe)?Pe:u.createElement(Pe,pe),_e)}})),_&&u.createElement(Le,{display:"flex",alignItems:"center",sx:Object.assign({},i&&{width:"fit-content",zIndex:2,backgroundColor:"background.paper",borderRadius:1,position:"sticky",bottom:0,p:1,m:-1},a)},u.createElement(PA,Pt(Ce({variant:"contained",startIcon:u.createElement(EA),children:"Save",loading:wS(k!==0)},_),{onClick:O})),...s)));function O(){R.current=!0,N()}function N(M=""){k===0&&(F.current=M,setTimeout(()=>I(L=>L===0?1:L)))}function B(){return ct(this,null,function*(){var z,V,D;if(k===0)return;if(k===1)return I(2);const M="Please review errors",L={};for(const H of e){if(!H||u.isValidElement(H)||!H.k)continue;const{k:W}=H,K=t==null?void 0:t[W],Y=(yield(V=(z=A[W])==null?void 0:z.getError)==null?void 0:V.call(z,K,{values:t,fields:e}))||(yield(D=H.getError)==null?void 0:D.call(H,K,{values:t,fields:e}))||x[W];if(L[W]=Y||!1,!R.current&&W===F.current)break;if(!E.current)return}C(L);try{if(!R.current)return;if(Object.values(L).some(Boolean))return yield d==null?void 0:d(M);const H=_&&_.onClick;H&&(yield H())}catch(H){yield d==null?void 0:d(H)}finally{R.current=!1,E.current&&I(0)}})}}function MA(e){return ru.upperFirst(e.indexOf("_")>0?e.replace(/_/g," "):e.replace(/([a-z])([A-Z])/g,(t,n,r)=>n+" "+r.toLowerCase()))}function TA(){return ML("(prefers-color-scheme: dark)")}const kle={};function _le(){const e=TA()?null:kle;return u.useMemo(()=>Tx({palette:e||{mode:"dark",text:{primary:"#bbb"},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])}Dw.Container=function(t){const n=u.useRef(),{width:r,height:o}=CS(),i=r>0&&Math.min(r,o)<500;u.useEffect(()=>{const h=setTimeout(()=>{const m=n.current;if(!m||(m.focus(),i))return;const g=m.querySelector("[autofocus]")||m.querySelector("input,textarea");g&&g instanceof HTMLElement&&g.focus()});return()=>clearTimeout(h)},[n.current]);const s=MS();t=Ce(Ce({},Dw),t);const p=t.dialogProps||{},{sx:a,root:c}=p,d=Wt(p,["sx","root"]);return t.noFrame?u.createElement(ly,{open:!0,children:u.createElement(Lp,{},u.createElement(t.Content))}):u.createElement(DJ,Pt(Ce(Ce({open:!0,maxWidth:"lg",fullScreen:i},d),c),{className:t.className,onClose:()=>bi()}),t.title&&u.createElement(XJ,{sx:Ce({position:"sticky",top:0,py:1,pr:1,zIndex:2,boxShadow:"0 0 8px #0004",display:"flex",alignItems:"center"},s)},u.createElement(Le,{flex:1,minWidth:40},Nw(t.title)),u.createElement(Gn,{icon:Tp,title:"close",onClick:()=>bi()})),u.createElement(GJ,{ref:n,sx:Ce({p:t.padding?1:0,pt:"16px !important",overflow:"initial",display:"flex",flexDirection:"column",justifyContent:"center"},a)},u.createElement(t.Content)))};function MS(){return TA()?{bgcolor:"#2d2d2d"}:{bgcolor:"#ccc",color:"#444"}}const OA={error:dy,warning:Op,info:rp,success:pS};function Gt(e,t){const n=typeof t=="string"?{type:t}:t!=null?t:{};let a=n,{type:r="info"}=a,o=Wt(a,["type"]);e instanceof Error&&(e=e.message||String(e),r="error");const i=kS(),s=Vo(Pt(Ce({className:"dialog-alert dialog-alert-"+r,icon:"!",onClose:i.resolve},o),{Content(){var c;return u.createElement(Le,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},u.createElement(ai,{onClick(){s.close()},size:"small",sx:{position:"absolute",right:0,top:0,opacity:.5}},u.createElement(Tp)),(c=n.icon)!=null?c:u.createElement(OA[r],{color:r,fontSize:"large"}),u.isValidElement(e)?e:u.createElement(Le,{fontSize:"large",mb:1,lineHeight:"1.8em"},String(e)))}}));return Object.assign(i,s)}function fi(e,i={}){var s=i,{href:t,confirmText:n="Go",dontText:r="Don't"}=s,o=Wt(s,["href","confirmText","dontText"]);const a=kS(),c=Vo(Pt(Ce({className:"dialog-confirm",icon:"?",onClose:a.resolve},o),{Content:d}));return Object.assign(a,c);function d(){return u.createElement(u.Fragment,{},u.createElement(Le,{mb:2},e),u.createElement(ji,{},u.createElement("a",{href:t,onClick:()=>bi(!0)},u.createElement(Qn,{variant:"contained"},n)),u.createElement(Qn,{onClick:()=>bi(!1)},r)))}}function sp(r){return ct(this,null,function*(){var o=r,{form:e,values:t}=o,n=Wt(o,["form","values"]);return new Promise(s=>Vo(Pt(Ce({className:"dialog-confirm",icon:"?",onClose:s},n),{Content:i})));function i(){const[s,a]=u.useState(t||{}),h=typeof e=="function"?e(s):e,{onChange:c,before:d}=h,p=Wt(h,["onChange","before"]);return u.createElement(u.Fragment,{},d,u.createElement(Fp,Pt(Ce({},p),{values:s,set(m,g){a(y=>{const v=Pt(Ce({},y),{[g]:m});return c==null||c(v,{setValues:a}),v})},save:Pt(Ce({},p.save),{onClick(){bi(s)}})})))}})}function FA(c){return ct(this,arguments,function*(e,s={}){var a=s,{value:t,field:n,save:r,addToBar:o=[]}=a,i=Wt(a,["value","field","save","addToBar"]);return sp(Pt(Ce({},i),{values:{text:t},form:{fields:[Pt(Ce({k:"text",label:null,autoFocus:!0},n),{before:u.createElement(Le,{mb:2},e)})],save:Ce({children:"Continue",startIcon:u.createElement(iA)},r),saveOnEnter:!0,barSx:{gap:2},addToBar:[u.createElement(Qn,{onClick:bi},"Cancel"),...o]}})).then(d=>d==null?void 0:d.text)})}function Sr(e,t="info"){const r=Vo({Content:i,dialogProps:{fullScreen:!1,PaperProps:{sx:{transition:"opacity 3000ms ease-in"},ref(s){s&&(s.style.opacity="0")}}}}),{close:o}=r;return setTimeout(o,3e3),r;function i(){return u.createElement(Le,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},u.isValidElement(t)?t:u.createElement(OA[t],{color:t}),u.isValidElement(e)?e:u.createElement("div",{},String(e)))}}function LA(){return u.createElement(Qs)}function $le(e){return e&&/^[a-zA-Z]:$/.test(e)}function TS(e,t){return e==t||e&&t&&typeof e=="object"&&typeof t=="object"&&Object.entries(e).every(([n,r])=>TS(r,t[n]))}function wy(e){return e?{outline:"2px solid"}:void 0}const Gn=u.forwardRef((p,d)=>{var h=p,{title:e,icon:t,onClick:n,disabled:r,progress:o,link:i,tooltipProps:s,confirm:a}=h,c=Wt(h,["title","icon","onClick","disabled","progress","link","tooltipProps","confirm"]);const[m,g]=ro(!1);typeof r=="string"&&(e=r),i&&(n=()=>window.open(i));let y=u.createElement(ai,Pt(Ce({ref:d,disabled:!!(m||o||r)},c),{onClick(...E){return ct(this,null,function*(){if(a&&!(yield fi(a)))return;const w=n==null?void 0:n.apply(this,E);w&&w instanceof Promise&&(g(!0),w.catch(Gt).finally(()=>g(!1)))})}}),(o||m)&&o!==!1&&u.createElement(Qs,Pt(Ce({},typeof o=="number"?{value:o*100,variant:"determinate"}:null),{style:{position:"absolute",top:4,left:4,width:32,height:32}})),u.createElement(t));return e&&(y=u.createElement(od,Pt(Ce({title:e},s),{children:u.createElement("span",{},y)}))),y});function bu(d){var p=d,{icon:e,title:t,onClick:n,disabled:r,progress:o,link:i,tooltipProps:s,confirm:a}=p,c=Wt(p,["icon","title","onClick","disabled","progress","link","tooltipProps","confirm"]);const[h,m]=ro(!1);typeof r=="string"&&(t=r,r=!0),i&&(n=()=>window.open(i));let g=u.createElement(PA,Pt(Ce({variant:"contained",startIcon:u.createElement(e),loading:!!(h||o),loadingPosition:"start",loadingIndicator:typeof o!="number"?void 0:u.createElement(Qs,{size:"1rem",value:o*100,variant:"determinate"}),disabled:r},c),{onClick(...v){return ct(this,null,function*(){if(a&&!(yield fi(a)))return;const E=n==null?void 0:n.apply(this,v);E&&E instanceof Promise&&(m(!0),E.catch(Gt).finally(()=>m(!1)))})}}));return t&&(g=u.createElement(od,Pt(Ce({title:t},s),{children:u.createElement("span",{},g)}))),g}function to(e,t,n){return u.createElement(od,{title:t,children:u.createElement(e,{sx:Ce({verticalAlign:"bottom"},n)})})}function OS(e){return u.createElement(Ao,Ce({component:fF},e))}const Lp=u.forwardRef((e,t)=>u.createElement(Le,Ce({ref:t,display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center",flexDirection:"column"},e)));function wu(t){var e=Wt(t,[]);return u.createElement(Ao,Pt(Ce({},e),{sx:Ce({cursor:"pointer"},e.sx)}))}function Rle(e,t){return ct(this,null,function*(){const r=(yield Et("get_config",{only:[e]}))[e],o=yield t(r);JSON.stringify(r)!==JSON.stringify(o)&&(yield Et("set_config",{values:{[e]:o}}))})}function Mle(e){return Object.keys(e)}function Tle(e,t){var n;return(n=t[e])!=null?n:e}function Xl(e){return ML(t=>t.breakpoints.up(e),{noSsr:!0})}function AA(e){return{ENOENT:"Not found",ENOTDIR:"Not a folder"}[e]||e}function FS(e,t){return u.createElement(Gn,Ce({icon:uy,title:"Reload",onClick:e},t))}const Ole=navigator.platform.match("Mac");function Fle(e){return(e.ctrlKey||Ole&&e.metaKey)&&e.key}function DA({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(Qs,{value:t*100,variant:"determinate",size:32,sx:{position:"absolute"}}),u.createElement(od,{title:u.createElement(u.Fragment,{},Dse(t),r),children:u.createElement(Qs,{color:"success",value:(n||1e-7)*100,variant:"determinate",size:32,sx:Ce({display:"flex"},o)})}))}function ji(s){var a=s,{gap:e=".8em",vert:t=!1,center:n=!1,children:r=null,props:o={}}=a,i=Wt(a,["gap","vert","center","children","props"]);return u.createElement(Le,Ce({sx:Ce(Ce({display:"flex",gap:e,flexDirection:t?"column":void 0},n&&{alignItems:"center",justifyContent:"center"}),i)},o),r)}function Ya(e,t){return Array.isArray(t)&&(t=op(t)),u.createElement(Ao,{href:Mse+e,target:"help"},t)}function NA(e,t,n,r){let o=e[t];return ES(e,()=>{const i=e[t];Object.is(o,i)||n(o=i)},r)}const BA="admin_state",pn=SS(Object.assign({title:"",config:{},selectedFiles:[],vfs:void 0,loginRequired:!1,username:"",onlinePluginsColumns:{version:!1,pushed_at:!1,license:!1}},JSON.parse(localStorage[BA]||null))),zA=["onlinePluginsColumns"],Lle=gt.debounce(()=>localStorage[BA]=JSON.stringify(gt.pick(pn,zA)),500,{maxWait:1e3});for(const e of zA)NA(pn,e,Lle);function ia(){return PS(pn)}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 Hu(e){return!!e&&!!e[Do]}function Qa(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)===Vle}(e)||Array.isArray(e)||!!e[_R]||!!(!((t=e.constructor)===null||t===void 0)&&t[_R])||LS(e)||AS(e))}function lp(e,t,n){n===void 0&&(n=!1),sd(e)===0?(n?Object.keys:jS)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function sd(e){var t=e[Do];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:LS(e)?2:AS(e)?3:0}function Hw(e,t){return sd(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ale(e,t){return sd(e)===2?e.get(t):e[t]}function jA(e,t,n){var r=sd(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Dle(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function LS(e){return jle&&e instanceof Map}function AS(e){return Hle&&e instanceof Set}function Ca(e){return e.o||e.t}function DS(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Ule(e);delete t[Do];for(var n=jS(t),r=0;r<n.length;r++){var o=n[r],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function NS(e,t){return t===void 0&&(t=!1),BS(e)||Hu(e)||!Qa(e)||(sd(e)>1&&(e.set=e.add=e.clear=e.delete=Nle),Object.freeze(e),t&&lp(e,function(n,r){return NS(r,!0)},!0)),e}function Nle(){Li(2)}function BS(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ds(e){var t=Wle[e];return t||Li(18,e),t}function CR(){return ap}function X1(e,t){t&&(ds("Patches"),e.u=[],e.s=[],e.v=t)}function Mg(e){Vw(e),e.p.forEach(Ble),e.p=null}function Vw(e){e===ap&&(ap=e.l)}function xR(e){return ap={p:[],l:ap,h:e,m:!0,_:0}}function Ble(e){var t=e[Do];t.i===0||t.i===1?t.j():t.g=!0}function J1(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||ds("ES5").S(t,e,r),r?(n[Do].P&&(Mg(t),Li(4)),Qa(e)&&(e=Tg(t,e),t.l||Og(t,e)),t.u&&ds("Patches").M(n[Do].t,e,t.u,t.s)):e=Tg(t,n,[]),Mg(t),t.u&&t.v(t.u,t.s),e!==HA?e:void 0}function Tg(e,t,n){if(BS(t))return t;var r=t[Do];if(!r)return lp(t,function(a,c){return SR(e,r,t,a,c,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Og(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=DS(r.k):r.o,i=o,s=!1;r.i===3&&(i=new Set(o),o.clear(),s=!0),lp(i,function(a,c){return SR(e,r,o,a,c,n,s)}),Og(e,o,!1),n&&e.u&&ds("Patches").N(r,n,e.u,e.s)}return r.o}function SR(e,t,n,r,o,i,s){if(Hu(o)){var a=Tg(e,o,i&&t&&t.i!==3&&!Hw(t.R,r)?i.concat(r):void 0);if(jA(n,r,a),!Hu(a))return;e.m=!1}else s&&n.add(o);if(Qa(o)&&!BS(o)){if(!e.h.D&&e._<1)return;Tg(e,o),t&&t.A.l||Og(e,o)}}function Og(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&NS(t,n)}function Z1(e,t){var n=e[Do];return(n?Ca(n):e)[t]}function ER(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 Uw(e){e.P||(e.P=!0,e.l&&Uw(e.l))}function eb(e){e.o||(e.o=DS(e.t))}function Ww(e,t,n){var r=LS(t)?ds("MapSet").F(t,n):AS(t)?ds("MapSet").T(t,n):e.O?function(o,i){var s=Array.isArray(o),a={i:s?1:0,A:i?i.A:CR(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},c=a,d=Gw;s&&(c=[a],d=cf);var p=Proxy.revocable(c,d),h=p.revoke,m=p.proxy;return a.k=m,a.j=h,m}(t,n):ds("ES5").J(t,n);return(n?n.A:CR()).p.push(r),r}function zle(e){return Hu(e)||Li(22,e),function t(n){if(!Qa(n))return n;var r,o=n[Do],i=sd(n);if(o){if(!o.P&&(o.i<4||!ds("ES5").K(o)))return o.t;o.I=!0,r=PR(n,i),o.I=!1}else r=PR(n,i);return lp(r,function(s,a){o&&Ale(o.t,s)===a||jA(r,s,t(a))}),i===3?new Set(r):r}(e)}function PR(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return DS(e)}var IR,ap,zS=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",jle=typeof Map!="undefined",Hle=typeof Set!="undefined",kR=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",HA=zS?Symbol.for("immer-nothing"):((IR={})["immer-nothing"]=!0,IR),_R=zS?Symbol.for("immer-draftable"):"__$immer_draftable",Do=zS?Symbol.for("immer-state"):"__$immer_state",Vle=""+Object.prototype.constructor,jS=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Ule=Object.getOwnPropertyDescriptors||function(e){var t={};return jS(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Wle={},Gw={get:function(e,t){if(t===Do)return e;var n=Ca(e);if(!Hw(n,t))return function(o,i,s){var a,c=ER(i,s);return c?"value"in c?c.value:(a=c.get)===null||a===void 0?void 0:a.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!Qa(r)?r:r===Z1(e.t,t)?(eb(e),e.o[t]=Ww(e.A.h,r,e)):r},has:function(e,t){return t in Ca(e)},ownKeys:function(e){return Reflect.ownKeys(Ca(e))},set:function(e,t,n){var r=ER(Ca(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Z1(Ca(e),t),i=o==null?void 0:o[Do];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(Dle(n,o)&&(n!==void 0||Hw(e.t,t)))return!0;eb(e),Uw(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 Z1(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,eb(e),Uw(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Ca(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)}},cf={};lp(Gw,function(e,t){cf[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),cf.deleteProperty=function(e,t){return cf.set.call(this,e,t,void 0)},cf.set=function(e,t,n){return Gw.set.call(this,e[0],t,n,e[0])};var Gle=function(){function e(n){var r=this;this.O=kR,this.D=!0,this.produce=function(o,i,s){if(typeof o=="function"&&typeof i!="function"){var a=i;i=o;var c=r;return function(v){var E=this;v===void 0&&(v=a);for(var w=arguments.length,C=Array(w>1?w-1:0),x=1;x<w;x++)C[x-1]=arguments[x];return c.produce(v,function(P){var _;return(_=i).call.apply(_,[E,P].concat(C))})}}var d;if(typeof i!="function"&&Li(6),s!==void 0&&typeof s!="function"&&Li(7),Qa(o)){var p=xR(r),h=Ww(r,o,void 0),m=!0;try{d=i(h),m=!1}finally{m?Mg(p):Vw(p)}return typeof Promise!="undefined"&&d instanceof Promise?d.then(function(v){return X1(p,s),J1(v,p)},function(v){throw Mg(p),v}):(X1(p,s),J1(d,p))}if(!o||typeof o!="object"){if((d=i(o))===void 0&&(d=o),d===HA&&(d=void 0),r.D&&NS(d,!0),s){var g=[],y=[];ds("Patches").M(o,d,g,y),s(g,y)}return d}Li(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(d){for(var p=arguments.length,h=Array(p>1?p-1:0),m=1;m<p;m++)h[m-1]=arguments[m];return r.produceWithPatches(d,function(g){return o.apply(void 0,[g].concat(h))})};var s,a,c=r.produce(o,i,function(d,p){s=d,a=p});return typeof Promise!="undefined"&&c instanceof Promise?c.then(function(d){return[d,s,a]}):[c,s,a]},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){Qa(n)||Li(8),Hu(n)&&(n=zle(n));var r=xR(this),o=Ww(this,n,void 0);return o[Do].C=!0,Vw(r),o},t.finishDraft=function(n,r){var o=n&&n[Do],i=o.A;return X1(i,r),J1(void 0,i)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!kR&&Li(20),this.O=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var s=ds("Patches").$;return Hu(n)?s(n,r):this.produce(n,function(a){return s(a,r)})},e}(),No=new Gle,Kle=No.produce;No.produceWithPatches.bind(No);No.setAutoFreeze.bind(No);No.setUseProxies.bind(No);No.applyPatches.bind(No);No.createDraft.bind(No);No.finishDraft.bind(No);const qle=Kle;qie({onResponse(e,t){return ct(this,null,function*(){if(e.status===401)throw pn.loginRequired=(t==null?void 0:t.possible)!==!1||403,new lA(e.status,"Unauthorized")})}});function Gr(...e){const[t,n,r,o]=bS(...e),i=e[0],s=u.useMemo(()=>i?n?u.createElement(Kr,{severity:"error"},String(n),u.createElement(Gn,{icon:uy,onClick:r,sx:{m:"-8px 0 -8px 16px"}})):o?LA():null:null,[n,i,o,r]);return{data:t,error:n,reload:r,loading:o,element:s}}function lc(e,t={},{map:n=r=>r}={}){const[r,o]=ro([]),[i,s]=ro(void 0),[a,c]=ro(void 0),[d,p]=ro(!0),[h,m]=ro(!1),[g,y]=ro(!0),[v,E]=u.useState(0),w=u.useRef(0);return u.useEffect(()=>{if(!e)return;const _=[],k=gt.debounce(()=>{const F=_.splice(0,1/0);F.length&&o(A=>[...A,...F])},1e3,{maxWait:1e3});c(void 0),m(!0),p(!0),y(!0),o([]);const I=aA(e,t,(F,A)=>{switch(F){case"connected":return p(!1),setTimeout(()=>k.flush());case"error":return c("Connection error"),setTimeout(C,1e3),R();case"closed":return R();case"msg":const O=[],N=[];Nse(A).forEach(B=>{var z;if(!Array.isArray(B))return console.debug("illegal list packet",B);const[M,L]=B;if(M==="ready"){k.flush(),y(!1);return}if(M==="error"){L===401?pn.loginRequired=B[2].possible!==!1||403:c(AA(L));return}if(M==="props")return s(L);if(M==="add"){const V=n(L);(z=V.id)!=null||(V.id=w.current=Math.max(w.current,Date.now())+.001),_.push(V),k();return}if(M==="remove"){const V=gt.matches(L);gt.isEmpty(gt.remove(_,V))&&O.push(V);return}if(M==="update"){const V=B[2],D=gt.find(_,L);if(D)return Object.assign(D,V);N.push([L,V]);return}console.debug("unknown list api",M)}),o(B=>{let M=B,L;if(O.length&&(L=B.filter(z=>!O.some(V=>V(z))),L.length<B.length&&(M=L)),N.length)for(const[z,V]of N){const D=gt.findIndex(M,z);D<0||(M===B&&(M=L!=null?L:B.slice()),M[D]=Ce(Ce({},M[D]),V))}return M}),(I==null?void 0:I.readyState)===(I==null?void 0:I.CLOSED)&&R()}});return()=>I.close();function R(){y(!1),m(!1),k.flush()}},[v,e,JSON.stringify(t)]),{list:r,props:i,loading:h,error:a,initializing:g,connecting:d,setList:o,updateList:x,updateEntry:P,reload:C};function C(){E(_=>_+1)}function x(_){o(qle(r,k=>{_(k)}))}function P(_,k){x(I=>{const R=gt.find(I,_);R&&Object.assign(R,k)})}}var HS={},Yle=rt;Object.defineProperty(HS,"__esModule",{value:!0});var VA=HS.default=void 0,Qle=Yle(ot()),Xle=tt(),Jle=(0,Qle.default)((0,Xle.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-1 14H9V8h2v8zm4 0h-2V8h2v8z"}),"PauseCircle");VA=HS.default=Jle;var VS={},Zle=rt;Object.defineProperty(VS,"__esModule",{value:!0});var Cy=VS.default=void 0,eae=Zle(ot()),tae=tt(),nae=(0,eae.default)((0,tae.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM9.5 16.5v-9l7 4.5-7 4.5z"}),"PlayCircle");Cy=VS.default=nae;var US={},rae=rt;Object.defineProperty(US,"__esModule",{value:!0});var UA=US.default=void 0,oae=rae(ot()),iae=tt(),sae=(0,oae.default)((0,iae.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-5zm-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 3 2 4.27z"}),"LinkOff");UA=US.default=sae;var WS={},lae=rt;Object.defineProperty(WS,"__esModule",{value:!0});var GS=WS.default=void 0,aae=lae(ot()),cae=tt(),uae=(0,aae.default)((0,cae.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-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"}),"Lock");GS=WS.default=uae;var KS={},dae=rt;Object.defineProperty(KS,"__esModule",{value:!0});var WA=KS.default=void 0,fae=dae(ot()),pae=tt(),hae=(0,fae.default)((0,pae.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 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 12zm8 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 8z"}),"Block");WA=KS.default=hae;var qS={},mae=rt;Object.defineProperty(qS,"__esModule",{value:!0});var GA=qS.default=void 0,gae=mae(ot()),vae=tt(),yae=(0,gae.default)((0,vae.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-2zm-2 6h-2v2h2v2h-2v2h-2v-2h2v-2h-2v-2h2v-2h-2V8h2v2h2v2z"}),"FolderZip");GA=qS.default=yae;var YS={},bae=rt;Object.defineProperty(YS,"__esModule",{value:!0});var Ap=YS.default=void 0,wae=bae(ot()),Cae=tt(),xae=(0,wae.default)((0,Cae.jsx)("path",{d:"M5 20h14v-2H5v2zm0-10h4v6h6v-6h4l-7-7-7 7z"}),"Upload");Ap=YS.default=xae;var QS={},Sae=rt;Object.defineProperty(QS,"__esModule",{value:!0});var XS=QS.default=void 0,Eae=Sae(ot()),Pae=tt(),Iae=(0,Eae.default)((0,Pae.jsx)("path",{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"}),"Download");XS=QS.default=Iae;const KA=u.createContext(void 0);function Nt(){const e=u.useContext(KA);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(`
328
+ `));return e}const kae=()=>u.useRef({}),qA=u.createContext(void 0),et=()=>{const e=u.useContext(qA);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},YA=u.createContext(void 0);function ac(){const e=u.useContext(YA);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(`
329
+ `));return e}const $R={};function _ae(e,t){const n=u.useRef($R);return n.current===$R&&(n.current=e(t)),n}const $ae=[];function Rae(e){u.useEffect(e,$ae)}const Cs=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
330
+ `):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},Mae=Object.is;function QA(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,!Mae(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}Cs(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function Tae(e){return e.acceptsApiRef}function RR(e,t){return Tae(t)?t(e):t(e.current.state)}const Oae=Object.is,JS=QA,Fae=()=>({state:null,equals:null,selector:null}),Ge=(e,t,n=Oae)=>{const r=_ae(Fae),o=r.current.selector!==null,[i,s]=u.useState(o?null:RR(e,t));return r.current.state=i,r.current.equals=n,r.current.selector=t,Rae(()=>e.current.store.subscribe(()=>{const a=RR(e,r.current.selector);r.current.equals(r.current.state,a)||(r.current.state=a,s(a))})),i};function Bt(e){return Je("MuiDataGrid",e)}const X=Xe("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","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"]),Lae=e=>{const{classes:t}=e;return Me({root:["main"]},Bt,t)},Aae=gr("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})(()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"})),Dae=u.forwardRef((e,t)=>{const n=et(),r=Lae(n);return T.jsx(Aae,{ref:t,className:r.root,ownerState:n,children:e.children})});var Fg="NOT_FOUND";function Nae(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:Fg},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Bae(e,t){var n=[];function r(a){var c=n.findIndex(function(p){return t(a,p.key)});if(c>-1){var d=n[c];return c>0&&(n.splice(c,1),n.unshift(d)),d.value}return Fg}function o(a,c){r(a)===Fg&&(n.unshift({key:a,value:c}),n.length>e&&n.pop())}function i(){return n}function s(){n=[]}return{get:r,put:o,getEntries:i,clear:s}}var zae=function(t,n){return t===n};function jae(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function ZS(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?zae:r,i=n.maxSize,s=i===void 0?1:i,a=n.resultEqualityCheck,c=jae(o),d=s===1?Nae(c):Bae(s,c);function p(){var h=d.get(arguments);if(h===Fg){if(h=e.apply(null,arguments),a){var m=d.getEntries(),g=m.find(function(y){return a(y.value,h)});g&&(h=g.value)}d.put(arguments,h)}return h}return p.clearCache=function(){return d.clear()},p}function Hae(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 Vae(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 s=arguments.length,a=new Array(s),c=0;c<s;c++)a[c]=arguments[c];var d=0,p,h={memoizeOptions:void 0},m=a.pop();if(typeof m=="object"&&(h=m,m=a.pop()),typeof m!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof m+"]");var g=h,y=g.memoizeOptions,v=y===void 0?n:y,E=Array.isArray(v)?v:[v],w=Hae(a),C=e.apply(void 0,[function(){return d++,m.apply(null,arguments)}].concat(E)),x=e(function(){for(var _=[],k=w.length,I=0;I<k;I++)_.push(w[I].apply(null,arguments));return p=C.apply(null,_),p});return Object.assign(x,{resultFunc:m,memoizedResultFunc:C,dependencies:w,lastResult:function(){return p},recomputations:function(){return d},resetRecomputations:function(){return d=0}}),x};return o}var Uae=Vae(ZS);const Wae={cache:new WeakMap};Cs(["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 Hc(e){return"current"in e&&"instanceId"in e.current}const Vc={id:"default"},Tt=(e,t,n,r,o,i,...s)=>{if(s.length>0)throw new Error("Unsupported number of selectors");let a;if(e&&t&&n&&r&&o&&i)a=(c,d)=>{const p=Hc(c),h=d!=null?d:p?c.current.instanceId:Vc,m=p?c.current.state:c,g=e(m,h),y=t(m,h),v=n(m,h),E=r(m,h),w=o(m,h);return i(g,y,v,E,w)};else if(e&&t&&n&&r&&o)a=(c,d)=>{const p=Hc(c),h=d!=null?d:p?c.current.instanceId:Vc,m=p?c.current.state:c,g=e(m,h),y=t(m,h),v=n(m,h),E=r(m,h);return o(g,y,v,E)};else if(e&&t&&n&&r)a=(c,d)=>{const p=Hc(c),h=d!=null?d:p?c.current.instanceId:Vc,m=p?c.current.state:c,g=e(m,h),y=t(m,h),v=n(m,h);return r(g,y,v)};else if(e&&t&&n)a=(c,d)=>{const p=Hc(c),h=d!=null?d:p?c.current.instanceId:Vc,m=p?c.current.state:c,g=e(m,h),y=t(m,h);return n(g,y)};else if(e&&t)a=(c,d)=>{const p=Hc(c),h=d!=null?d:p?c.current.instanceId:Vc,m=p?c.current.state:c,g=e(m,h);return t(g)};else throw new Error("Missing arguments");return a.acceptsApiRef=!0,a},In=(...e)=>{const t=(...n)=>{var r,o;const[i,s]=n,a=Hc(i),c=a?i.current.instanceId:s!=null?s:Vc,d=a?i.current.state:i,{cache:p}=Wae;if(p.get(c)&&(r=p.get(c))!=null&&r.get(e)){var h;return(h=p.get(c))==null?void 0:h.get(e)(d,c)}const m=Uae(...e);return p.get(c)||p.set(c,new Map),(o=p.get(c))==null||o.set(e,m),m(d,c)};return t.acceptsApiRef=!0,t},Vu=e=>e.columns,Hs=Tt(Vu,e=>e.orderedFields),ld=Tt(Vu,e=>e.lookup),fs=In(Hs,ld,(e,t)=>e.map(n=>t[n])),Di=Tt(Vu,e=>e.columnVisibilityModel),Tr=In(fs,Di,(e,t)=>e.filter(n=>t[n.field]!==!1)),xy=In(Tr,e=>e.map(t=>t.field)),Uu=In(Tr,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),eE=Tt(Tr,Uu,(e,t)=>{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),XA=In(fs,e=>e.filter(t=>t.filterable)),Gae=In(fs,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),Vi=e=>e.rows,Sy=Tt(Vi,e=>e.totalRowCount),Kae=Tt(Vi,e=>e.loading),qae=Tt(Vi,e=>e.totalTopLevelRowCount),Ml=Tt(Vi,e=>e.dataRowIdToModelLookup),Lg=Tt(Vi,e=>e.dataRowIdToIdLookup),Fi=Tt(Vi,e=>e.tree),Yae=Tt(Vi,e=>e.groupingName),MR=Tt(Vi,e=>e.treeDepths),Ey=In(Vi,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}),um=Tt(Vi,e=>e.dataRowIds),Qae=Tt(Vi,e=>e==null?void 0:e.additionalRowGroups),ad=In(Qae,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 i;return{id:o.id,model:(i=o.model)!=null?i:{}}}),top:r==null||(n=r.top)==null?void 0:n.map(o=>{var i;return{id:o.id,model:(i=o.model)!=null?i:{}}})}}),Xae=Tt(ad,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)}),JA=e=>e.sorting,tE=Tt(JA,e=>e.sortedRows),nE=In(tE,Ml,(e,t)=>e.map(n=>{var r;return{id:n,model:(r=t[n])!=null?r:{}}})),ei=Tt(JA,e=>e.sortModel),Jae=In(ei,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),rE=e=>e.filter,wr=Tt(rE,e=>e.filterModel);Tt(wr,e=>e.quickFilterValues);const Zae=e=>e.visibleRowsLookup,ZA=Tt(rE,e=>e.filteredRowsLookup);Tt(rE,e=>e.filteredDescendantCountLookup);const sa=In(Zae,nE,(e,t)=>t.filter(n=>e[n.id]!==!1)),_f=In(sa,e=>e.map(t=>t.id)),ece=In(ZA,nE,(e,t)=>t.filter(n=>e[n.id]!==!1)),tce=In(ece,e=>e.map(t=>t.id)),e4=In(sa,Fi,Ey,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),t4=Tt(sa,e=>e.length),Py=Tt(e4,e=>e.length),nce=In(wr,ld,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var o,i;if(!r.field)return!1;const s=t[r.field];if(!(s!=null&&s.filterOperators)||(s==null||(o=s.filterOperators)==null?void 0:o.length)===0)return!1;const a=s.filterOperators.find(c=>c.value===r.operator);return a?!a.InputComponent||r.value!=null&&((i=r.value)==null?void 0:i.toString())!=="":!1})}),rce=In(nce,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),Iy=e=>e.focus,ri=Tt(Iy,e=>e.cell),oce=Tt(Iy,e=>e.columnHeader);Tt(Iy,e=>e.columnHeaderFilter);const Ag=Tt(Iy,e=>e.columnGroupHeader),ky=e=>e.tabIndex,Dg=Tt(ky,e=>e.cell),n4=Tt(ky,e=>e.columnHeader);Tt(ky,e=>e.columnHeaderFilter);const ice=Tt(ky,e=>e.columnGroupHeader),oE=e=>e.density,sce=Tt(oE,e=>e.value),cd=Tt(oE,e=>e.factor),_y=e=>e.columnGrouping,lce=In(_y,e=>{var t;return(t=e==null?void 0:e.unwrappedGroupingModel)!=null?t:{}}),r4=In(_y,e=>{var t;return(t=e==null?void 0:e.lookup)!=null?t:{}}),ace=In(_y,e=>{var t;return(t=e==null?void 0:e.headerStructure)!=null?t:[]}),Dp=Tt(_y,e=>{var t;return(t=e==null?void 0:e.maxDepth)!=null?t:0}),Kw=e=>e.columnMenu;function cce(e){const{VirtualScrollerComponent:t,ColumnHeadersProps:n,children:r}=e,o=ac(),i=et(),s=u.useRef(null),a=Ge(o,Tr),c=Ge(o,rce),d=Ge(o,Jae),p=Ge(o,Uu),h=Ge(o,n4),m=Ge(o,Dg),g=Ge(o,ice),y=Ge(o,oce),v=Ge(o,Ag),E=Ge(o,cd),w=Ge(o,Dp),C=Ge(o,Kw),x=Ge(o,Di),P=Ge(o,ace),_=!(g===null&&h===null&&m===null),[k,I]=u.useState(i.disableVirtualization);an(()=>{o.current.computeSizeAndPublishResizeEvent();const M=s.current;if(typeof ResizeObserver=="undefined")return()=>{};let L;const z=new ResizeObserver(()=>{L=window.requestAnimationFrame(()=>{o.current.computeSizeAndPublishResizeEvent()})});return M&&z.observe(M),()=>{L&&window.cancelAnimationFrame(L),M&&z.unobserve(M)}},[o]);const R=u.useCallback(()=>{I(!0)},[]),F=u.useCallback(()=>{I(!1)},[]);u.useEffect(()=>{I(i.disableVirtualization)},[i.disableVirtualization]),o.current.unstable_disableVirtualization=R,o.current.unstable_enableVirtualization=F;const A=u.useRef(null),O=u.useRef(null),N=u.useRef(null);o.current.register("private",{columnHeadersContainerElementRef:O,columnHeadersElementRef:A,virtualScrollerRef:N,mainElementRef:s});const B=!!o.current.getRootDimensions();return T.jsxs(Dae,{ref:s,children:[T.jsx(i.slots.columnHeaders,S({ref:O,innerRef:A,visibleColumns:a,filterColumnLookup:c,sortColumnLookup:d,columnPositions:p,columnHeaderTabIndexState:h,columnGroupHeaderTabIndexState:g,columnHeaderFocus:y,columnGroupHeaderFocus:v,densityFactor:E,headerGroupingMaxDepth:w,columnMenuState:C,columnVisibility:x,columnGroupsHeaderStructure:P,hasOtherElementInTabSequence:_},n)),B&&T.jsx(t,{ref:N,disableVirtualization:k}),r]})}function uce(){var e;const t=et();return t.hideFooter?null:T.jsx(t.slots.footer,S({},(e=t.slotProps)==null?void 0:e.footer))}const Vr="auto-generated-group-node-root",Dm=Symbol("mui.id_autogenerated"),dce=()=>({type:"group",id:Vr,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function fce(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(`
331
+ `))}const Ng=(e,t,n)=>{const r=t?t(e):e.id;return fce(r,e,n),r},Nm=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},i={},s={};for(let a=0;a<e.length;a+=1){const c=e[a],d=Ng(c,t);i[d]=c,s[d]=d,o.rows.push(d)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:o,dataRowIdToIdLookup:s,dataRowIdToModelLookup:i}},o4=({tree:e,rowCountProp:t=0})=>{const n=e[Vr];return Math.max(t,n.children.length+(n.footerId==null?0:1))},i4=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o})=>{const i=e.current.caches.rows,{tree:s,treeDepths:a,dataRowIds:c,groupingName:d}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:i.updates,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIdToModelLookup:i.dataRowIdToModelLookup}),p=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:s,treeDepths:a,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIds:c,dataRowIdToModelLookup:i.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},S({},p,{totalRowCount:Math.max(t,p.dataRowIds.length),totalTopLevelRowCount:o4({tree:p.tree,rowCountProp:t}),groupingName:d,loading:n})},cp=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,iE=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let i=0;i<r.children.length;i+=1){const s=r.children[i];(!n||!cp(e[s]))&&o.push(s),o.push(...iE(e,s,n))}return!n&&r.footerId!=null&&o.push(r.footerId),o},pce=({previousCache:e,getRowId:t,updates:n})=>{var r,o,i;if(e.updates.type==="full")throw new Error("MUI: Unable to prepare a partial update if a full update is not applied yet");const s=new Map;n.forEach(m=>{const g=Ng(m,t,"A row was provided without id when calling updateRows():");s.has(g)?s.set(g,S({},s.get(g),m)):s.set(g,m)});const a={type:"partial",actions:{insert:[...(r=e.updates.actions.insert)!=null?r:[]],modify:[...(o=e.updates.actions.modify)!=null?o:[]],remove:[...(i=e.updates.actions.remove)!=null?i:[]]},idToActionLookup:S({},e.updates.idToActionLookup)},c=S({},e.dataRowIdToModelLookup),d=S({},e.dataRowIdToIdLookup),p={insert:{},modify:{},remove:{}};s.forEach((m,g)=>{const y=a.idToActionLookup[g];if(m._action==="delete"){if(y==="remove"||!c[g])return;y!=null&&(p[y][g]=!0),a.actions.remove.push(g),delete c[g],delete d[g];return}const v=c[g];if(v){y==="remove"?(p.remove[g]=!0,a.actions.modify.push(g)):y==null&&a.actions.modify.push(g),c[g]=S({},v,m);return}y==="remove"?(p.remove[g]=!0,a.actions.insert.push(g)):y==null&&a.actions.insert.push(g),c[g]=m,d[g]=g});const h=Object.keys(p);for(let m=0;m<h.length;m+=1){const g=h[m],y=p[g];Object.keys(y).length>0&&(a.actions[g]=a.actions[g].filter(v=>!y[v]))}return{dataRowIdToModelLookup:c,dataRowIdToIdLookup:d,updates:a,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function s4(e){var t,n;const r=ad(e),o=(r==null||(t=r.top)==null?void 0:t.reduce((s,a)=>(s+=e.current.unstable_getRowHeight(a.id),s),0))||0,i=(r==null||(n=r.bottom)==null?void 0:n.reduce((s,a)=>(s+=e.current.unstable_getRowHeight(a.id),s),0))||0;return{top:o,bottom:i}}function l4(e,t){const n=cd(e);return 2*Math.floor(t*n)}const hce=gr("div",{name:"MuiDataGrid",slot:"OverlayWrapper",overridesResolver:(e,t)=>t.overlayWrapper})({position:"sticky",top:0,left:0,width:0,height:0,zIndex:4}),mce=gr("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),gce=e=>{const{classes:t}=e;return Me({root:["overlayWrapper"],inner:["overlayWrapperInner"]},Bt,t)};function vce(e){var t,n;const r=Nt(),o=et(),[i,s]=u.useState(()=>{var p,h;return(p=(h=r.current.getRootDimensions())==null?void 0:h.viewportInnerSize)!=null?p:null}),a=u.useCallback(()=>{var p,h;s((p=(h=r.current.getRootDimensions())==null?void 0:h.viewportInnerSize)!=null?p:null)},[r]);an(()=>r.current.subscribeEvent("viewportInnerSizeChange",a),[r,a]);let c=(t=i==null?void 0:i.height)!=null?t:0;o.autoHeight&&c===0&&(c=l4(r,o.rowHeight));const d=gce(S({},e,{classes:o.classes}));return i?T.jsx(hce,{className:he(d.root),children:T.jsx(mce,S({className:he(d.inner),style:{height:c,width:(n=i==null?void 0:i.width)!=null?n:0}},e))}):null}function yce(){const e=Nt(),t=et(),n=Ge(e,Sy),r=Ge(e,t4),o=Ge(e,Kae),i=!o&&n===0,s=!o&&n>0&&r===0;let a=null;if(i){var c;a=T.jsx(t.slots.noRowsOverlay,S({},(c=t.slotProps)==null?void 0:c.noRowsOverlay))}if(s){var d;a=T.jsx(t.slots.noResultsOverlay,S({},(d=t.slotProps)==null?void 0:d.noResultsOverlay))}if(o){var p;a=T.jsx(t.slots.loadingOverlay,S({},(p=t.slotProps)==null?void 0:p.loadingOverlay))}return a===null?null:T.jsx(vce,{children:a})}function $y(e){return u.memo(e,QA)}let tb;function bce(){return tb===void 0&&document.createElement("div").focus({get preventScroll(){return tb=!0,!1}}),tb}var ys=function(e){return e.Cell="cell",e.Row="row",e}(ys||{}),on=function(e){return e.Edit="edit",e.View="view",e}(on||{}),mn=function(e){return e.Edit="edit",e.View="view",e}(mn||{}),io=function(e){return e.And="and",e.Or="or",e}(io||{}),gl=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(gl||{}),Ri=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Ri||{}),vl=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(vl||{}),Fs=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Fs||{});function a4(e){return e.field!==void 0}function wce(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Cce(e,t){return e.closest(`.${t}`)}function sE(e){return e.replace(/["\\]/g,"\\$&")}function xce(e,t){return e.querySelector(`[role="columnheader"][data-field="${sE(t)}"]`)}function c4(e){return`.${X.row}[data-id="${sE(String(e))}"]`}function Sce(e,t){return e.querySelector(c4(t))}function Ece(e,{id:t,field:n}){const r=c4(t),o=`.${X.cell}[data-field="${sE(n)}"]`,i=`${r} ${o}`;return e.querySelector(i)}function Lt(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 ou extends Error{}function Pce(e,t){const{getRowId:n}=t,r=u.useCallback(y=>({field:y,colDef:e.current.getColumn(y)}),[e]),o=u.useCallback(y=>{const v=e.current.getRow(y);if(!v)throw new ou(`No row with id #${y} found`);return{id:y,columns:e.current.getAllColumns(),row:v}},[e]),i=u.useCallback((y,v)=>{const E=e.current.getRow(y),w=e.current.getRowNode(y);if(!E||!w)throw new ou(`No row with id #${y} found`);const C=ri(e),x=Dg(e);return{id:y,field:v,row:E,rowNode:w,value:E[v],colDef:e.current.getColumn(v),cellMode:e.current.getCellMode(y,v),api:e.current,hasFocus:C!==null&&C.field===v&&C.id===y,tabIndex:x&&x.field===v&&x.id===y?0:-1}},[e]),s=u.useCallback((y,v)=>{const E=e.current.getColumn(v),w=e.current.getCellValue(y,v),C=e.current.getRow(y),x=e.current.getRowNode(y);if(!C||!x)throw new ou(`No row with id #${y} found`);const P=ri(e),_=Dg(e),k={id:y,field:v,row:C,rowNode:x,colDef:E,cellMode:e.current.getCellMode(y,v),hasFocus:P!==null&&P.field===v&&P.id===y,tabIndex:_&&_.field===v&&_.id===y?0:-1,value:w,formattedValue:w,isEditable:!1};return E&&E.valueFormatter&&(k.formattedValue=E.valueFormatter({id:y,field:k.field,value:k.value,api:e.current})),k.isEditable=E&&e.current.isCellEditable(k),k},[e]),a=u.useCallback((y,v)=>{const E=e.current.getColumn(v);if(!E||!E.valueGetter){const w=e.current.getRow(y);if(!w)throw new ou(`No row with id #${y} found`);return w[v]}return E.valueGetter(i(y,v))},[e,i]),c=u.useCallback((y,v)=>{var E;const w=Dm in y?y[Dm]:(E=n==null?void 0:n(y))!=null?E:y.id,C=v.field;return!v||!v.valueGetter?y[C]:v.valueGetter(i(w,C))},[i,n]),d=u.useCallback((y,v)=>{var E;const w=c(y,v);if(!v||!v.valueFormatter)return w;const C=(E=n?n(y):y.id)!=null?E:y[Dm],x=v.field;return v.valueFormatter({id:C,field:x,value:w,api:e.current})},[e,n,c]),p=u.useCallback(y=>e.current.rootElementRef.current?xce(e.current.rootElementRef.current,y):null,[e]),h=u.useCallback(y=>e.current.rootElementRef.current?Sce(e.current.rootElementRef.current,y):null,[e]),m=u.useCallback((y,v)=>e.current.rootElementRef.current?Ece(e.current.rootElementRef.current,{id:y,field:v}):null,[e]);Lt(e,{getCellValue:a,getCellParams:s,getCellElement:m,getRowValue:c,getRowFormattedValue:d,getRowParams:o,getRowElement:h,getColumnHeaderParams:r,getColumnHeaderElement:p},"public")}const Ice=["changeReason","unstable_updateValueOnRender"],kce=["column","rowId","editCellState","align","children","colIndex","height","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],_ce=["changeReason","unstable_updateValueOnRender"],Bg={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:on.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},$ce=e=>{const{align:t,showRightBorder:n,isEditable:r,isSelected:o,classes:i}=e,s={root:["cell",`cell--text${ue(t)}`,r&&"cell--editable",o&&"selected",n&&"cell--withRightBorder","withBorderColor"],content:["cellContent"]};return Me(s,Bt,i)},Rce=u.forwardRef((e,t)=>{const{column:n,rowId:r,editCellState:o}=e,i=Nt(),s=et(),a=n.field,c=Ge(i,()=>{try{const F=i.current.getCellParams(r,a);return F.api=i.current,F}catch(R){if(R instanceof ou)return Bg;throw R}},JS),d=Ge(i,()=>i.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:r,field:a}));if(c===Bg)return null;const{cellMode:p,hasFocus:h,isEditable:m,value:g,formattedValue:y}=c,v=n.type==="actions",E=(p==="view"||!m)&&!v?c.tabIndex:-1,{classes:w,getCellClassName:C}=s,x=i.current.unstable_applyPipeProcessors("cellClassName",[],{id:r,field:a});n.cellClassName&&x.push(typeof n.cellClassName=="function"?n.cellClassName(c):n.cellClassName),C&&x.push(C(c));let P;if(o==null&&n.renderCell&&(P=n.renderCell(c),x.push(X["cell--withRenderer"]),x.push(w==null?void 0:w["cell--withRenderer"])),o!=null&&n.renderEditCell){const R=i.current.getRowWithUpdatedValues(r,n.field),F=ne(o,Ice),A=S({},c,{row:R},F);P=n.renderEditCell(A),x.push(X["cell--editing"]),x.push(w==null?void 0:w["cell--editing"])}const{slots:_}=s,k=_.cell,I=S({},e,{ref:t,field:a,formattedValue:y,hasFocus:h,isEditable:m,isSelected:d,value:g,cellMode:p,children:P,tabIndex:E,className:he(x)});return u.createElement(k,I)}),Mce=$y(Rce),Tce=u.forwardRef((e,t)=>{const{column:n,rowId:r,editCellState:o,align:i,colIndex:s,height:a,width:c,className:d,showRightBorder:p,colSpan:h,disableDragEvents:m,onClick:g,onDoubleClick:y,onMouseDown:v,onMouseUp:E,onMouseOver:w,onKeyDown:C,onKeyUp:x,onDragEnter:P,onDragOver:_}=e,k=ne(e,kce),I=Nt(),R=et(),F=n.field,A=Ge(I,()=>{try{const be=I.current.getCellParams(r,F);return be.api=I.current,be}catch(pe){if(pe instanceof ou)return Bg;throw pe}},JS),O=Ge(I,()=>I.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:r,field:F})),{cellMode:N,hasFocus:B,isEditable:M,value:L,formattedValue:z}=A,V=n.type==="actions",D=(N==="view"||!M)&&!V?A.tabIndex:-1,{classes:H,getCellClassName:W}=R,K=I.current.unstable_applyPipeProcessors("cellClassName",[],{id:r,field:F});n.cellClassName&&K.push(typeof n.cellClassName=="function"?n.cellClassName(A):n.cellClassName),W&&K.push(W(A));const Y=z==null?L:z,ie=u.useRef(null),re=Vt(t,ie),de=u.useRef(null),se={align:i,showRightBorder:p,isEditable:M,classes:R.classes,isSelected:O},le=$ce(se),ke=u.useCallback(pe=>be=>{const te=I.current.getCellParams(r,F||"");I.current.publishEvent(pe,te,be),E&&E(be)},[I,F,E,r]),ve=u.useCallback(pe=>be=>{const te=I.current.getCellParams(r,F||"");I.current.publishEvent(pe,te,be),v&&v(be)},[I,F,v,r]),Pe=u.useCallback((pe,be)=>te=>{if(!I.current.getRow(r))return;const Oe=I.current.getCellParams(r,F||"");I.current.publishEvent(pe,Oe,te),be&&be(te)},[I,F,r]),ee={minWidth:c,maxWidth:c,minHeight:a,maxHeight:a==="auto"?"none":a};if(u.useEffect(()=>{if(!B||N===on.Edit)return;const pe=vn(I.current.rootElementRef.current);if(ie.current&&!ie.current.contains(pe.activeElement)){const be=ie.current.querySelector('[tabindex="0"]'),te=de.current||be||ie.current;if(bce())te.focus({preventScroll:!0});else{const Oe=I.current.getScrollPosition();te.focus(),I.current.scroll(Oe)}}},[B,N,I]),A===Bg)return null;let _e=k.onFocus,Re;if(o==null&&n.renderCell&&(Re=n.renderCell(A),K.push(X["cell--withRenderer"]),K.push(H==null?void 0:H["cell--withRenderer"])),o!=null&&n.renderEditCell){const pe=I.current.getRowWithUpdatedValues(r,n.field),be=ne(o,_ce),te=S({},A,{row:pe},be);Re=n.renderEditCell(te),K.push(X["cell--editing"]),K.push(H==null?void 0:H["cell--editing"])}if(Re===void 0){const pe=Y==null?void 0:Y.toString();Re=T.jsx("div",{className:le.content,title:pe,children:pe})}u.isValidElement(Re)&&V&&(Re=u.cloneElement(Re,{focusElementRef:de}));const Ee=m?null:{onDragEnter:Pe("cellDragEnter",P),onDragOver:Pe("cellDragOver",_)};return T.jsx("div",S({ref:re,className:he(d,K,le.root),role:"cell","data-field":F,"data-colindex":s,"aria-colindex":s+1,"aria-colspan":h,style:ee,tabIndex:D,onClick:Pe("cellClick",g),onDoubleClick:Pe("cellDoubleClick",y),onMouseOver:Pe("cellMouseOver",w),onMouseDown:ve("cellMouseDown"),onMouseUp:ke("cellMouseUp"),onKeyDown:Pe("cellKeyDown",C),onKeyUp:Pe("cellKeyUp",x)},Ee,k,{onFocus:_e,children:Re}))}),qw=$y(Tce),Oce=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex"],Fce=e=>{const{classes:t}=e;return Me({root:["booleanCell"]},Bt,t)};function Lce(e){const{value:t}=e,n=ne(e,Oce),r=Nt(),o=et(),i={classes:o.classes},s=Fce(i),a=u.useMemo(()=>t?o.slots.booleanCellTrueIcon:o.slots.booleanCellFalseIcon,[o.slots.booleanCellFalseIcon,o.slots.booleanCellTrueIcon,t]);return T.jsx(a,S({fontSize:"small",className:s.root,titleAccess:r.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},n))}const Ace=u.memo(Lce),Dce=e=>cp(e.rowNode)?"":T.jsx(Ace,S({},e)),Nce=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],Bce=e=>{const{classes:t}=e;return Me({root:["editBooleanCell"]},Bt,t)};function zce(e){var t;const{id:n,value:r,field:o,className:i,hasFocus:s,onValueChange:a}=e,c=ne(e,Nce),d=Nt(),p=u.useRef(null),h=sn(),[m,g]=u.useState(r),y=et(),v={classes:y.classes},E=Bce(v),w=u.useCallback(C=>ct(this,null,function*(){const x=C.target.checked;a&&(yield a(C,x)),g(x),yield d.current.setEditCellValue({id:n,field:o,value:x},C)}),[d,o,n,a]);return u.useEffect(()=>{g(r)},[r]),an(()=>{s&&p.current.focus()},[s]),T.jsx("label",S({htmlFor:h,className:he(E.root,i)},c,{children:T.jsx(y.slots.baseCheckbox,S({id:h,inputRef:p,checked:!!m,onChange:w,size:"small"},(t=y.slotProps)==null?void 0:t.baseCheckbox))}))}const jce=e=>T.jsx(zce,S({},e)),Hce=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],Vce=oe(nd)({fontSize:"inherit"}),Uce=e=>{const{classes:t}=e;return Me({root:["editInputCell"]},Bt,t)};function Wce(e){const{id:t,value:n,field:r,colDef:o,hasFocus:i,inputProps:s,onValueChange:a}=e,c=ne(e,Hce),d=o.type==="dateTime",p=Nt(),h=u.useRef(),m=u.useMemo(()=>{let I;n==null?I=null:n instanceof Date?I=n:I=new Date((n!=null?n:"").toString());let R;return I==null||Number.isNaN(I.getTime())?R="":R=new Date(I.getTime()-I.getTimezoneOffset()*60*1e3).toISOString().substr(0,d?16:10),{parsed:I,formatted:R}},[n,d]),[g,y]=u.useState(m),E={classes:et().classes},w=Uce(E),C=u.useRef(!1),x=u.useCallback(I=>{if(I==="")return null;const[R,F]=I.split("T"),[A,O,N]=R.split("-"),B=new Date;if(B.setFullYear(Number(A),Number(O)-1,Number(N)),B.setHours(0,0,0,0),F){const[M,L]=F.split(":");B.setHours(Number(M),Number(L),0,0)}return B},[]),P=u.useCallback(I=>ct(this,null,function*(){const R=I.target.value,F=x(R);a&&(yield a(I,F)),y({parsed:F,formatted:R}),p.current.setEditCellValue({id:t,field:r,value:F},I)}),[p,r,t,a,x]);u.useEffect(()=>{y(I=>{var R,F;return m.parsed!==I.parsed&&((R=m.parsed)==null?void 0:R.getTime())!==((F=I.parsed)==null?void 0:F.getTime())?m:I})},[m]),an(()=>{i&&h.current.focus()},[i]);const _=p.current.unstable_getEditCellMeta(t,r),k=I=>{if(h.current=I,_!=null&&_.unstable_updateValueOnRender&&!C.current){const R=h.current.value,F=x(R);y({parsed:F,formatted:R}),p.current.setEditCellValue({id:t,field:r,value:F}),C.current=!0}};return T.jsx(Vce,S({inputRef:k,fullWidth:!0,className:w.root,type:d?"datetime-local":"date",inputProps:S({max:d?"9999-12-31T23:59":"9999-12-31"},s),value:g.formatted,onChange:P},c))}const u4=e=>T.jsx(Wce,S({},e)),Gce=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],Kce=e=>{const{classes:t}=e;return Me({root:["editInputCell"]},Bt,t)},qce=oe(nd,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>S({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),Yce=u.forwardRef((e,t)=>{const n=et(),{id:r,value:o,field:i,colDef:s,hasFocus:a,debounceMs:c=200,isProcessingProps:d,onValueChange:p}=e,h=ne(e,Gce),m=Nt(),g=u.useRef(),[y,v]=u.useState(o),E=Kce(n),w=u.useCallback(x=>ct(void 0,null,function*(){const P=x.target.value;p&&(yield p(x,P));const _=m.current.getColumn(i);let k=P;_.valueParser&&(k=_.valueParser(P,m.current.getCellParams(r,i))),v(k),m.current.setEditCellValue({id:r,field:i,value:k,debounceMs:c,unstable_skipValueParser:!0},x)}),[m,c,i,r,p]),C=m.current.unstable_getEditCellMeta(r,i);return u.useEffect(()=>{(C==null?void 0:C.changeReason)!=="debouncedSetEditCellValue"&&v(o)},[C,o]),an(()=>{a&&g.current.focus()},[a]),T.jsx(qce,S({ref:t,inputRef:g,className:E.root,ownerState:n,fullWidth:!0,type:s.type==="number"?s.type:"text",value:y!=null?y:"",onChange:w,endAdornment:d?T.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},h))}),Qce=e=>T.jsx(Yce,S({},e)),zg=e=>e==="Escape",Xce=e=>e==="Enter",d4=e=>e==="Tab",f4=e=>e===" ",Jce=e=>e.indexOf("Arrow")===0,Zce=e=>e==="Home"||e==="End",eue=e=>e.indexOf("Page")===0;function p4(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const jg=e=>Zce(e)||Jce(e)||eue(e)||f4(e),tue=e=>!!e.key,nue=e=>d4(e)||zg(e);function Fa(e){return(e==null?void 0:e.type)==="singleSelect"}function Yw(e,t,n){if(t===void 0)return;const r=t.find(o=>{const i=n(o);return String(i)===String(e)});return n(r)}const rue=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","getOptionLabel","getOptionValue"],oue=["MenuProps"];function iue(e){return!!e.key}function sue(e){var t,n,r;const o=et(),{id:i,value:s,field:a,row:c,colDef:d,hasFocus:p,error:h,onValueChange:m,initialOpen:g=o.editMode===ys.Cell,getOptionLabel:y,getOptionValue:v}=e,E=ne(e,rue),w=Nt(),C=u.useRef(),x=u.useRef(),[P,_]=u.useState(g),I=(n=(((t=o.slotProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!1,R=((r=o.slotProps)==null?void 0:r.baseSelect)||{},{MenuProps:F}=R,A=ne(R,oue);if(an(()=>{if(p){var V;(V=x.current)==null||V.focus()}},[p]),!Fa(d))return null;let O;if(typeof(d==null?void 0:d.valueOptions)=="function"?O=d==null?void 0:d.valueOptions({id:i,row:c,field:a}):O=d==null?void 0:d.valueOptions,!O)return null;const N=v||d.getOptionValue,B=y||d.getOptionLabel,M=V=>ct(this,null,function*(){if(!Fa(d)||!O)return;_(!1);const D=V.target,H=Yw(D.value,O,N);m&&(yield m(V,H)),yield w.current.setEditCellValue({id:i,field:a,value:H},V)}),L=(V,D)=>{if(o.editMode===ys.Row){_(!1);return}if(D==="backdropClick"||zg(V.key)){const H=w.current.getCellParams(i,a);w.current.publishEvent("cellEditStop",S({},H,{reason:zg(V.key)?Ri.escapeKeyDown:Ri.cellFocusOut}))}},z=V=>{iue(V)&&V.key==="Enter"||_(!0)};return!O||!d?null:T.jsx(o.slots.baseSelect,S({ref:C,inputRef:x,value:s,onChange:M,open:P,onOpen:z,MenuProps:S({onClose:L},F),error:h,native:I,fullWidth:!0},E,A,{children:O.map(V=>{var D;const H=N(V);return u.createElement(o.slots.baseSelectOption,S({},((D=o.slotProps)==null?void 0:D.baseSelectOption)||{},{native:I,key:H,value:H}),B(V))})}))}const lue=e=>T.jsx(sue,S({},e)),aue=["open","target","onClickAway","children","position","className","onExited"],cue=e=>{const{classes:t}=e;return Me({root:["menu"]},Bt,t)},uue=oe(oc,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${X.menuList}`]:{outline:0}})),due={"bottom-start":"top left","bottom-end":"top right"};function h4(e){var t;const{open:n,target:r,onClickAway:o,children:i,position:s,className:a,onExited:c}=e,d=ne(e,aue),p=Nt(),h=et(),m=cue(h);u.useEffect(()=>{const y=n?"menuOpen":"menuClose";p.current.publishEvent(y,{target:r})},[p,n,r]);const g=y=>v=>{y&&y(),c&&c(v)};return T.jsx(uue,S({as:h.slots.basePopper,className:he(a,m.root),ownerState:h,open:n,anchorEl:r,transition:!0,placement:s},d,(t=h.slotProps)==null?void 0:t.basePopper,{children:({TransitionProps:y,placement:v})=>T.jsx(QF,{onClickAway:o,mouseEvent:"onMouseDown",children:T.jsx(Pg,S({},y,{style:{transformOrigin:due[v]},onExited:g(y==null?void 0:y.onExited),children:T.jsx(xi,{children:i})}))})}))}const fue=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],pue=e=>typeof e.getActions=="function";function hue(e){var t;const{colDef:n,id:r,hasFocus:o,tabIndex:i,position:s="bottom-end",focusElementRef:a}=e,c=ne(e,fue),[d,p]=u.useState(-1),[h,m]=u.useState(!1),g=Nt(),y=u.useRef(null),v=u.useRef(null),E=u.useRef(!1),w=u.useRef({}),C=lr(),x=sn(),P=sn(),_=et();if(!pue(n))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const k=n.getActions(g.current.getRowParams(r)),I=k.filter(z=>!z.props.showInMenu),R=k.filter(z=>z.props.showInMenu),F=I.length+(R.length?1:0);u.useLayoutEffect(()=>{o||Object.entries(w.current).forEach(([z,V])=>{V==null||V.stop({},()=>{delete w.current[z]})})},[o]),u.useEffect(()=>{if(d<0||!y.current||d>=y.current.children.length)return;y.current.children[d].focus({preventScroll:!0})},[d]),u.useEffect(()=>{o||(p(-1),E.current=!1)},[o]),u.useImperativeHandle(a,()=>({focus(){E.current||p(0)}}),[]),u.useEffect(()=>{d>=F&&p(F-1)},[d,F]);const A=()=>{m(!0),p(F-1),E.current=!0},O=()=>{m(!1)},N=z=>V=>{w.current[z]=V},B=(z,V)=>D=>{p(z),E.current=!0,V&&V(D)},M=z=>{if(F<=1)return;let V=d;z.key==="ArrowRight"?C.direction==="rtl"?V-=1:V+=1:z.key==="ArrowLeft"&&(C.direction==="rtl"?V+=1:V-=1),!(V<0||V>=F)&&V!==d&&(z.preventDefault(),z.stopPropagation(),p(V))},L=z=>{z.key==="Tab"&&z.preventDefault(),["Tab","Enter","Escape"].includes(z.key)&&O()};return T.jsxs("div",S({role:"menu",ref:y,tabIndex:-1,className:X.actionsCell,onKeyDown:M},c,{children:[I.map((z,V)=>u.cloneElement(z,{key:V,touchRippleRef:N(V),onClick:B(V,z.props.onClick),tabIndex:d===V?i:-1})),R.length>0&&P&&T.jsx(_.slots.baseIconButton,S({ref:v,id:P,"aria-label":g.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":h,"aria-controls":h?x:void 0,role:"menuitem",size:"small",onClick:A,touchRippleRef:N(P),tabIndex:d===I.length?i:-1},(t=_.slotProps)==null?void 0:t.baseIconButton,{children:T.jsx(_.slots.moreActionsIcon,{fontSize:"small"})})),R.length>0&&T.jsx(h4,{onClickAway:O,onClick:O,open:h,target:v.current,position:s,children:T.jsx(cy,{id:x,className:X.menuList,onKeyDown:L,"aria-labelledby":P,variant:"menu",autoFocusItem:!0,children:R.map((z,V)=>u.cloneElement(z,{key:V}))})})]}))}const mue=e=>T.jsx(hue,S({},e)),gue=["label","icon","showInMenu","onClick"],dm=u.forwardRef((e,t)=>{const{label:n,icon:r,showInMenu:o,onClick:i}=e,s=ne(e,gue),a=et(),c=p=>{i&&i(p)};if(!o){var d;return T.jsx(a.slots.baseIconButton,S({ref:t,size:"small",role:"menuitem","aria-label":n},s,{onClick:c},(d=a.slotProps)==null?void 0:d.baseIconButton,{children:u.cloneElement(r,{fontSize:"small"})}))}return T.jsxs(Or,S({ref:t},s,{onClick:i,children:[r&&T.jsx(js,{children:r}),n]}))}),vue=["field","align","width","contentWidth"],yue=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${ue(t)}`,"withBorderColor"]};return Me(r,Bt,n)};function bue(e){const{align:t,width:n,contentWidth:r}=e,o=ne(e,vue),s={classes:et().classes,align:t},a=yue(s);return T.jsx("div",S({className:a.root,style:{width:n}},o,{children:T.jsx(Qne,{width:`${r}%`})}))}function wue(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?Wa(dt(e.palette.divider,1),.88):Ua(dt(e.palette.divider,1),.68)}const TR={[`.${X.columnSeparator}, .${X["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},OR={[`& .${X.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${X.menuIcon}`]:{width:"auto",visibility:"visible"}},Cue=oe("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${X.autoHeight}`]:t.autoHeight},{[`&.${X.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${X["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${X["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${X["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${X.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${X["root--disableUserSelection"]} .${X.cell}`]:t["root--disableUserSelection"]},{[`& .${X.editBooleanCell}`]:t.editBooleanCell},{[`& .${X["cell--editing"]}`]:t["cell--editing"]},{[`& .${X["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${X["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${X["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${X["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${X.cell}`]:t.cell},{[`& .${X["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${X["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${X["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${X["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${X["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${X.cellContent}`]:t.cellContent},{[`& .${X.cellCheckbox}`]:t.cellCheckbox},{[`& .${X.cellSkeleton}`]:t.cellSkeleton},{[`& .${X.checkboxInput}`]:t.checkboxInput},{[`& .${X["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${X["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${X["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${X["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${X["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${X["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${X["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${X["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${X["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${X.columnHeader}`]:t.columnHeader},{[`& .${X.headerFilterRow}`]:t.headerFilterRow},{[`& .${X.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${X.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${X.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${X["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${X["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${X.columnSeparator}`]:t.columnSeparator},{[`& .${X.filterIcon}`]:t.filterIcon},{[`& .${X.iconSeparator}`]:t.iconSeparator},{[`& .${X.menuIcon}`]:t.menuIcon},{[`& .${X.menuIconButton}`]:t.menuIconButton},{[`& .${X.menuOpen}`]:t.menuOpen},{[`& .${X.menuList}`]:t.menuList},{[`& .${X["row--editable"]}`]:t["row--editable"]},{[`& .${X["row--editing"]}`]:t["row--editing"]},{[`& .${X["row--dragging"]}`]:t["row--dragging"]},{[`& .${X.row}`]:t.row},{[`& .${X.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${X.rowReorderCell}`]:t.rowReorderCell},{[`& .${X["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${X.sortIcon}`]:t.sortIcon},{[`& .${X.withBorderColor}`]:t.withBorderColor},{[`& .${X.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${X.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${X.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${X["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=wue(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})`:dt(e.palette.background.default,e.palette.action.disabledOpacity),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",[`&.${X.autoHeight}`]:{height:"auto",[`& .${X["row--lastVisible"]} .${X.cell}`]:{borderBottomColor:"transparent"}},[`& .${X["virtualScrollerContent--overflowed"]} .${X["row--lastVisible"]} .${X.cell}`]:{borderBottomColor:"transparent"},[`& .${X.columnHeader}, & .${X.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${X.columnHeader}:focus-within, & .${X.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:dt(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${X.columnHeader}:focus, & .${X.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${X.columnHeaderCheckbox}, & .${X.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${X.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${X["columnHeader--sorted"]} .${X.iconButtonContainer}, & .${X["columnHeader--filtered"]} .${X.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${X.columnHeader}:not(.${X["columnHeader--sorted"]}) .${X.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${X.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",position:"relative"},[`& .${X.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${X["columnHeader--filledGroup"]} .${X.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${X["columnHeader--filledGroup"]}.${X["columnHeader--showColumnBorder"]} .${X.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${X["columnHeader--filledGroup"]}.${X["columnHeader--showColumnBorder"]}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${X.headerFilterRow}`]:{borderTop:`1px solid ${t}`},[`& .${X.sortIcon}, & .${X.filterIcon}`]:{fontSize:"inherit"},[`& .${X["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${X["columnHeader--alignCenter"]} .${X.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${X["columnHeader--alignRight"]} .${X.columnHeaderDraggableContainer}, & .${X["columnHeader--alignRight"]} .${X.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${X["columnHeader--alignCenter"]} .${X.menuIcon}, & .${X["columnHeader--alignRight"]} .${X.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${X["columnHeader--alignRight"]} .${X.menuIcon}, & .${X["columnHeader--alignRight"]} .${X.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${X["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${X.columnSeparator}`]:{visibility:"hidden",position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},"@media (hover: hover)":{[`& .${X.columnHeaders}:hover`]:TR,[`& .${X.columnHeader}:hover`]:OR,[`& .${X.columnHeader}:not(.${X["columnHeader--sorted"]}):hover .${X.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${X.columnHeaders}`]:TR,[`& .${X.columnHeader}`]:OR},[`& .${X["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${X["columnSeparator--sideRight"]}`]:{right:-12},[`& .${X["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:(e.vars||e).palette.text.primary,"@media (hover: none)":{color:t}},[`&.${X["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${X.iconSeparator}`]:{color:"inherit"},[`& .${X.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`.${X.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${X.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})`:dt(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})`:dt(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})`:dt(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${X.cell}`]:{display:"flex",alignItems:"center",borderBottom:"1px solid","&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:dt(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})`:dt(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})`:dt(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`&.${X["root--disableUserSelection"]} .${X.cell}`]:{userSelect:"none"},[`& .${X.row}:not(.${X["row--dynamicHeight"]}) > .${X.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${X.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${X.cell}.${X["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"}},[`& .${X["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${X["row--editing"]} .${X.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${X.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${X.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${X.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${X.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${X.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${X["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${X.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`.${X.withBorderColor}`]:{borderColor:t},[`& .${X["cell--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${X["columnHeader--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${X["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${X["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${X["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${X.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${X.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${X["columnHeader--dragging"]}, & .${X["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${X["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${X.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${X.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${X.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${X.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${X.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),xue=["children","className"],Sue=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${ue(n)}`,"withBorderColor"]};return Me(o,Bt,r)},Eue=u.forwardRef(function(t,n){const r=et(),{children:o,className:i}=t,s=ne(t,xue),a=ac(),c=Ge(a,Tr),d=Ge(a,Sy),p=Ge(a,sce),h=Ge(a,Dp),m=u.useRef(null),g=Vt(m,n),y=Ge(a,Xae),v=S({},r,{density:p}),E=Sue(v);a.current.register("public",{rootElementRef:m});const[w,C]=u.useState(!1);return an(()=>{C(!0)},[]),w?T.jsx(Cue,S({ref:g,className:he(i,E.root),ownerState:v,role:"grid","aria-colcount":c.length,"aria-rowcount":h+1+y+d,"aria-multiselectable":!r.disableMultipleRowSelection},s,{children:o})):null}),Pue=["className"],Iue=e=>{const{classes:t}=e;return Me({root:["footerContainer","withBorderColor"]},Bt,t)},kue=gr("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),_ue=u.forwardRef(function(t,n){const{className:r}=t,o=ne(t,Pue),i=et(),s=Iue(i);return T.jsx(kue,S({ref:n,className:he(s.root,r),ownerState:i},o))}),$ue=["className"],Rue=e=>{const{classes:t}=e;return Me({root:["overlay"]},Bt,t)},Mue=gr("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)"}),lE=u.forwardRef(function(t,n){const{className:r}=t,o=ne(t,$ue),i=et(),s=Rue(i);return T.jsx(Mue,S({ref:n,className:he(s.root,r),ownerState:i},o))}),Tue=["className"],Oue=e=>{const{classes:t}=e;return Me({root:["iconButtonContainer"]},Bt,t)},Fue=gr("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),m4=u.forwardRef(function(t,n){const{className:r}=t,o=ne(t,Tue),i=et(),s=Oue(i);return T.jsx(Fue,S({ref:n,className:he(s.root,r),ownerState:i},o))}),Lue=e=>{const{classes:t}=e;return Me({icon:["sortIcon"]},Bt,t)};function Aue(e,t,n,r){let o;const i={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,i.sortingOrder=r),o?T.jsx(o,S({fontSize:"small",className:n},i)):null}function Due(e){var t;const{direction:n,index:r,sortingOrder:o}=e,i=Nt(),s=et(),a=S({},e,{classes:s.classes}),c=Lue(a),d=Aue(s.slots,n,c.icon,o);if(!d)return null;const p=T.jsx(s.slots.baseIconButton,S({tabIndex:-1,"aria-label":i.current.getLocaleText("columnHeaderSortIconLabel"),title:i.current.getLocaleText("columnHeaderSortIconLabel"),size:"small"},(t=s.slotProps)==null?void 0:t.baseIconButton,{children:d}));return T.jsxs(m4,{children:[r!=null&&T.jsx(gL,{badgeContent:r,color:"default",children:p}),r==null&&p]})}const Nue=u.memo(Due),Bue=e=>{const{classes:t,open:n}=e;return Me({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},Bt,t)},zue=u.memo(e=>{var t,n;const{colDef:r,open:o,columnMenuId:i,columnMenuButtonId:s,iconButtonRef:a}=e,c=Nt(),d=et(),p=S({},e,{classes:d.classes}),h=Bue(p),m=u.useCallback(g=>{g.preventDefault(),g.stopPropagation(),c.current.toggleColumnMenu(r.field)},[c,r.field]);return T.jsx("div",{className:h.root,children:T.jsx(d.slots.baseTooltip,S({title:c.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(t=d.slotProps)==null?void 0:t.baseTooltip,{children:T.jsx(d.slots.baseIconButton,S({ref:a,tabIndex:-1,className:h.button,"aria-label":c.current.getLocaleText("columnMenuLabel"),size:"small",onClick:m,"aria-haspopup":"menu","aria-expanded":o,"aria-controls":o?i:void 0,id:s},(n=d.slotProps)==null?void 0:n.baseIconButton,{children:T.jsx(d.slots.columnMenuIcon,{fontSize:"small"})}))}))})});function jue({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:s,onExited:a}){const c=Nt(),d=c.current.getColumn(o),p=u.useCallback(h=>{h.stopPropagation(),s!=null&&s.contains(h.target)||c.current.hideColumnMenu()},[c,s]);return!s||!d?null:T.jsx(h4,{placement:`bottom-${d.align==="right"?"start":"end"}`,open:i,target:s,onClickAway:p,onExited:a,children:T.jsx(n,S({colDef:d,hideMenu:p,open:i,id:e,labelledby:t},r))})}const Hue=["className"],Vue=e=>{const{classes:t}=e;return Me({root:["columnHeaderTitle"]},Bt,t)},Uue=gr("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),Wue=u.forwardRef(function(t,n){const{className:r}=t,o=ne(t,Hue),i=et(),s=Vue(i);return T.jsx(Uue,S({ref:n,className:he(s.root,r),ownerState:i},o))});function Gue(e){var t;const{label:n,description:r}=e,o=et(),i=u.useRef(null),[s,a]=u.useState(""),c=u.useCallback(()=>{if(!r&&i!=null&&i.current){const d=wce(i.current);a(d?n:"")}},[r,n]);return T.jsx(o.slots.baseTooltip,S({title:r||s},(t=o.slotProps)==null?void 0:t.baseTooltip,{children:T.jsx(Wue,{onMouseOver:c,ref:i,children:n})}))}const Kue=["resizable","resizing","height","side"];var g4=function(e){return e.Left="left",e.Right="right",e}(g4||{});const que=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${ue(o)}`],icon:["iconSeparator"]};return Me(i,Bt,r)};function Yue(e){const{height:t,side:n=g4.Right}=e,r=ne(e,Kue),o=et(),i=S({},e,{side:n,classes:o.classes}),s=que(i),a=u.useCallback(c=>{c.preventDefault(),c.stopPropagation()},[]);return T.jsx("div",S({className:s.root,style:{minHeight:t,opacity:o.showColumnVerticalBorder?0:1}},r,{onClick:a,children:T.jsx(o.slots.columnResizeIcon,{className:s.icon})}))}const Que=u.memo(Yue),Xue=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps"],v4=u.forwardRef(function(t,n){const{classes:r,columnMenuOpen:o,colIndex:i,height:s,isResizing:a,sortDirection:c,hasFocus:d,tabIndex:p,separatorSide:h,isDraggable:m,headerComponent:g,description:y,width:v,columnMenuIconButton:E=null,columnMenu:w=null,columnTitleIconButtons:C=null,headerClassName:x,label:P,resizable:_,draggableContainerProps:k,columnHeaderSeparatorProps:I}=t,R=ne(t,Xue),F=ac(),A=et(),O=u.useRef(null),[N,B]=u.useState(o),M=Vt(O,n);let L="none";return c!=null&&(L=c==="asc"?"ascending":"descending"),u.useEffect(()=>{N||B(o)},[N,o]),u.useLayoutEffect(()=>{const z=F.current.state.columnMenu;if(d&&!z.open){const D=O.current.querySelector('[tabindex="0"]')||O.current;D==null||D.focus(),F.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[F,d]),T.jsxs("div",S({ref:M,className:he(r.root,x),style:{height:s,width:v,minWidth:v,maxWidth:v},role:"columnheader",tabIndex:p,"aria-colindex":i+1,"aria-sort":L,"aria-label":g==null?P:void 0},R,{children:[T.jsxs("div",S({className:r.draggableContainer,draggable:m},k,{children:[T.jsxs("div",{className:r.titleContainer,children:[T.jsx("div",{className:r.titleContainerContent,children:g!==void 0?g:T.jsx(Gue,{label:P,description:y,columnWidth:v})}),C]}),E]})),T.jsx(Que,S({resizable:!A.disableColumnResize&&!!_,resizing:a,height:s,side:h},I)),w]}))}),Jue=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:i,filterItemsCounter:s}=e,a=o!=null,c=s!=null&&s>0,d=t.type==="number",p={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",a&&"columnHeader--sorted",c&&"columnHeader--filtered",d&&"columnHeader--numeric","withBorderColor",i&&"columnHeader--withRightBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return Me(p,Bt,n)};function Zue(e){var t,n,r,o;const{colDef:i,columnMenuOpen:s,colIndex:a,headerHeight:c,isResizing:d,sortDirection:p,sortIndex:h,filterItemsCounter:m,hasFocus:g,tabIndex:y,disableReorder:v,separatorSide:E}=e,w=ac(),C=et(),x=u.useRef(null),P=sn(),_=sn(),k=u.useRef(null),[I,R]=u.useState(s),F=u.useMemo(()=>!C.disableColumnReorder&&!v&&!i.disableReorder,[C.disableColumnReorder,v,i.disableReorder]);let A;i.renderHeader&&(A=i.renderHeader(w.current.getColumnHeaderParams(i.field)));const O=S({},e,{classes:C.classes,showRightBorder:C.showColumnVerticalBorder}),N=Jue(O),B=u.useCallback(re=>de=>{de.currentTarget.contains(de.target)&&w.current.publishEvent(re,w.current.getColumnHeaderParams(i.field),de)},[w,i.field]),M=u.useMemo(()=>({onClick:B("columnHeaderClick"),onDoubleClick:B("columnHeaderDoubleClick"),onMouseOver:B("columnHeaderOver"),onMouseOut:B("columnHeaderOut"),onMouseEnter:B("columnHeaderEnter"),onMouseLeave:B("columnHeaderLeave"),onKeyDown:B("columnHeaderKeyDown"),onFocus:B("columnHeaderFocus"),onBlur:B("columnHeaderBlur")}),[B]),L=u.useMemo(()=>F?{onDragStart:B("columnHeaderDragStart"),onDragEnter:B("columnHeaderDragEnter"),onDragOver:B("columnHeaderDragOver"),onDragEnd:B("columnHeaderDragEnd")}:{},[F,B]),z=u.useMemo(()=>({onMouseDown:B("columnSeparatorMouseDown")}),[B]);u.useEffect(()=>{I||R(s)},[I,s]);const V=u.useCallback(()=>{R(!1)},[]),D=!C.disableColumnMenu&&!i.disableColumnMenu&&T.jsx(zue,{colDef:i,columnMenuId:P,columnMenuButtonId:_,open:I,iconButtonRef:k}),H=T.jsx(jue,{columnMenuId:P,columnMenuButtonId:_,field:i.field,open:s,target:k.current,ContentComponent:C.slots.columnMenu,contentComponentProps:(t=C.slotProps)==null?void 0:t.columnMenu,onExited:V}),W=(n=i.sortingOrder)!=null?n:C.sortingOrder,K=T.jsxs(u.Fragment,{children:[!C.disableColumnFilter&&T.jsx(C.slots.columnHeaderFilterIconButton,S({field:i.field,counter:m},(r=C.slotProps)==null?void 0:r.columnHeaderFilterIconButton)),i.sortable&&!i.hideSortIcons&&T.jsx(Nue,{direction:p,index:h,sortingOrder:W})]});u.useLayoutEffect(()=>{const re=w.current.state.columnMenu;if(g&&!re.open){const se=x.current.querySelector('[tabindex="0"]')||x.current;se==null||se.focus(),w.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[w,g]);const Y=typeof i.headerClassName=="function"?i.headerClassName({field:i.field,colDef:i}):i.headerClassName,ie=(o=i.headerName)!=null?o:i.field;return T.jsx(v4,S({ref:x,classes:N,columnMenuOpen:s,colIndex:a,height:c,isResizing:d,sortDirection:p,hasFocus:g,tabIndex:y,separatorSide:E,isDraggable:F,headerComponent:A,description:i.description,elementId:i.field,width:i.computedWidth,columnMenuIconButton:D,columnTitleIconButtons:K,headerClassName:Y,label:ie,resizable:!C.disableColumnResize&&!!i.resizable,"data-field":i.field,columnMenu:H,draggableContainerProps:L,columnHeaderSeparatorProps:z},M))}const up=()=>({items:[],logicOperator:io.And,quickFilterValues:[],quickFilterLogicOperator:io.And}),FR=1e3;class ede{constructor(t=FR){this.timeouts=new Map,this.cleanupTimeout=FR,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 tde{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 ps=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e}(ps||{});class nde{}function rde(e){let t=0;return function(r,o,i,s){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new tde:new ede);const[a]=u.useState(new nde),c=u.useRef(null),d=u.useRef();d.current=i;const p=u.useRef(null);if(!c.current&&d.current){const h=(m,g,y)=>{if(!g.defaultMuiPrevented){var v;(v=d.current)==null||v.call(d,m,g,y)}};c.current=r.current.subscribeEvent(o,h,s),t+=1,p.current={cleanupToken:t},e.registry.register(a,()=>{var m;(m=c.current)==null||m.call(c),c.current=null,p.current=null},p.current)}else!d.current&&c.current&&(c.current(),c.current=null,p.current&&(e.registry.unregister(p.current),p.current=null));u.useEffect(()=>{if(!c.current&&d.current){const h=(m,g,y)=>{if(!g.defaultMuiPrevented){var v;(v=d.current)==null||v.call(d,m,g,y)}};c.current=r.current.subscribeEvent(o,h,s)}return p.current&&e.registry&&(e.registry.unregister(p.current),p.current=null),()=>{var h;(h=c.current)==null||h.call(c),c.current=null}},[r,o,s])}}const ode={registry:null},lt=rde(ode),ide={isFirst:!0};function xn(e,t,n){lt(e,t,n,ide)}function Ar(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 sde(e){return typeof e=="number"}function y4(e){return typeof e=="function"}function aE(e){return typeof e=="object"&&e!==null}function lde(){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 Bm(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Wu=(e,t,n)=>Math.max(t,Math.min(n,e));function La(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 i=0;i<o;i+=1)if(!La(e[i],t[i]))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 i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;for(let i=0;i<o.length;i+=1){const s=o[i];if(!La(s[1],t.get(s[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 i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(e[i]!==t[i])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 i=n[o];if(!La(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ade(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 cde(e,t,n){const r=ade(e);return()=>t+(n-t)*r()}function b4(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const ude=(e,t,n,r,o)=>{const i=Ar(e,"useNativeEventListener"),[s,a]=u.useState(!1),c=u.useRef(r),d=u.useCallback(p=>c.current&&c.current(p),[]);u.useEffect(()=>{c.current=r},[r]),u.useEffect(()=>{let p;if(y4(t)?p=t():p=t&&t.current?t.current:null,p&&n&&!s){i.debug(`Binding native ${n} event`),p.addEventListener(n,d,o);const h=p;a(!0);const m=()=>{i.debug(`Clearing native ${n} event`),h.removeEventListener(n,d,o)};e.current.subscribeEvent("unmount",m)}},[t,d,n,s,i,o,e])},Np=e=>{const t=u.useRef(!0);t.current&&(t.current=!1,e())},dde=100,fde=e=>e?0:100,w4=(e,t)=>t>0&&e>0?Math.ceil(e/t):0;Cs(["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 C4=e=>({page:0,pageSize:e?0:100}),pde=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),x4=(e,t)=>{if(t===ps.DataGrid&&e>dde)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(`
332
+ `))},S4=e=>e.pagination,oi=Tt(S4,e=>e.paginationModel),hde=Tt(oi,e=>e.page),mde=Tt(oi,e=>e.pageSize);Tt(oi,Py,(e,t)=>w4(t,e.pageSize));const cE=In(oi,Fi,Ey,sa,e4,(e,t,n,r,o)=>{const i=o.length,s=Math.min(e.pageSize*e.page,i-1),a=Math.min(s+e.pageSize-1,i-1);if(s===-1||a===-1)return null;if(n<2)return{firstRowIndex:s,lastRowIndex:a};const c=o[s],d=a-s+1,p=r.findIndex(y=>y.id===c.id);let h=p,m=0;for(;h<r.length&&m<=d;){var g;const y=r[h],v=(g=t[y.id])==null?void 0:g.depth;v===void 0?h+=1:((m<d||v>0)&&(h+=1),v===0&&(m+=1))}return{firstRowIndex:p,lastRowIndex:h-1}}),gde=In(sa,cE,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),E4=In(_f,cE,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),dp=e=>e.preferencePanel;var Xa=function(e){return e.filters="filters",e.columns="columns",e}(Xa||{});const fp=e=>e.rowsMeta,ti=e=>e.rowSelection,vde=Tt(ti,e=>e.length),yde=In(ti,Ml,(e,t)=>new Map(e.map(n=>[n,t[n]]))),Hg=In(ti,e=>e.reduce((t,n)=>(t[n]=n,t),{})),bde=Cs(["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"),P4=(e,t)=>t&&e.length>1?(bde(),[e[0]]):e,LR=(e,t)=>n=>S({},n,{sorting:S({},n.sorting,{sortModel:P4(e,t)})}),wde=e=>e==="desc",Cde=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=wde(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator;return{getSortCellParams:i=>({id:i,field:n.field,rowNode:t.current.getRowNode(i),value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}},xde=(e,t,n)=>e.reduce((r,o,i)=>{if(r!==0)return r;const s=t.params[i],a=n.params[i];return r=o.comparator(s.value,a.value,s,a),r},0),Sde=(e,t)=>{const n=e.map(r=>Cde(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(i=>i.getSortCellParams(o.id))})).sort((o,i)=>xde(n,o,i)).map(o=>o.node.id)},AR=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},uE=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,Ede=new Intl.Collator,Pde=(e,t)=>{const n=uE(e,t);return n!==null?n:typeof e=="string"?Ede.compare(e.toString(),t.toString()):e-t},I4=(e,t)=>{const n=uE(e,t);return n!==null?n:Number(e)-Number(t)},k4=(e,t)=>{const n=uE(e,t);return n!==null?n:e>t?1:e<t?-1:0},_4=e=>e.headerFiltering,Ide=Tt(_4,e=>e.editing),kde=Tt(_4,e=>e.menuOpen),_de=e=>{const{classes:t}=e;return Me({icon:["filterIcon"]},Bt,t)};function $de(e){var t,n;const{counter:r,field:o,onClick:i}=e,s=Nt(),a=et(),c=S({},e,{classes:a.classes}),d=_de(c),p=Ge(s,dp),h=sn(),m=sn(),g=u.useCallback(E=>{E.preventDefault(),E.stopPropagation();const{open:w,openedPanelValue:C}=dp(s.current.state);w&&C===Xa.filters?s.current.hideFilterPanel():s.current.showFilterPanel(void 0,m,h),i&&i(s.current.getColumnHeaderParams(o),E)},[s,o,i,m,h]);if(!r)return null;const y=p.open&&p.labelId===h,v=T.jsx(a.slots.baseIconButton,S({id:h,onClick:g,color:"default","aria-label":s.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":y,"aria-controls":y?m:void 0},(t=a.slotProps)==null?void 0:t.baseIconButton,{children:T.jsx(a.slots.columnFilteredIcon,{className:d.icon,fontSize:"small"})}));return T.jsx(a.slots.baseTooltip,S({title:s.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},(n=a.slotProps)==null?void 0:n.baseTooltip,{children:T.jsxs(m4,{children:[r>1&&T.jsx(gL,{badgeContent:r,color:"default",children:v}),r===1&&v]})}))}const Rde=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],Mde=e=>{const{classes:t}=e;return Me({root:["checkboxInput"]},Bt,t)},Tde=u.forwardRef(function(t,n){var r;const{field:o,id:i,value:s,rowNode:a,hasFocus:c,tabIndex:d}=t,p=ne(t,Rde),h=Nt(),m=et(),g={classes:m.classes},y=Mde(g),v=u.useRef(null),E=u.useRef(null),w=Vt(v,n),C=h.current.getCellElement(i,o),x=I=>{const R={value:I.target.checked,id:i};h.current.publishEvent("rowSelectionCheckboxChange",R,I)};u.useLayoutEffect(()=>{d===0&&C&&(C.tabIndex=-1)},[C,d]),u.useEffect(()=>{if(c){var I;const R=(I=v.current)==null?void 0:I.querySelector("input");R==null||R.focus({preventScroll:!0})}else E.current&&E.current.stop({})},[c]);const P=u.useCallback(I=>{f4(I.key)&&I.stopPropagation()},[]);if(a.type==="footer"||a.type==="pinnedRow")return null;const _=h.current.isRowSelectable(i),k=h.current.getLocaleText(s?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return T.jsx(m.slots.baseCheckbox,S({ref:w,tabIndex:d,checked:s,onChange:x,className:y.root,inputProps:{"aria-label":k},onKeyDown:P,disabled:!_,touchRippleRef:E},(r=m.slotProps)==null?void 0:r.baseCheckbox,p))}),Ode=Tde,Fde=["field","colDef"],Lde=e=>{const{classes:t}=e;return Me({root:["checkboxInput"]},Bt,t)},Ade=u.forwardRef(function(t,n){var r;const o=ne(t,Fde),[,i]=u.useState(!1),s=Nt(),a=et(),c={classes:a.classes},d=Lde(c),p=Ge(s,n4),h=Ge(s,ti),m=Ge(s,_f),g=Ge(s,E4),y=u.useMemo(()=>typeof a.isRowSelectable!="function"?h:h.filter(R=>s.current.getRow(R)?a.isRowSelectable(s.current.getRowParams(R)):!1),[s,a.isRowSelectable,h]),v=u.useMemo(()=>(!a.pagination||!a.checkboxSelectionVisibleOnly?m:g).reduce((F,A)=>(F[A]=!0,F),{}),[a.pagination,a.checkboxSelectionVisibleOnly,g,m]),E=u.useMemo(()=>y.filter(R=>v[R]).length,[y,v]),w=E>0&&E<Object.keys(v).length,C=E>0,x=R=>{const F={value:R.target.checked};s.current.publishEvent("headerSelectionCheckboxChange",F)},P=p!==null&&p.field===t.field?0:-1;u.useLayoutEffect(()=>{const R=s.current.getColumnHeaderElement(t.field);P===0&&R&&(R.tabIndex=-1)},[P,s,t.field]);const _=u.useCallback(R=>{R.key===" "&&s.current.publishEvent("headerSelectionCheckboxChange",{value:!C})},[s,C]),k=u.useCallback(()=>{i(R=>!R)},[]);u.useEffect(()=>s.current.subscribeEvent("rowSelectionChange",k),[s,k]);const I=s.current.getLocaleText(C?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return T.jsx(a.slots.baseCheckbox,S({ref:n,indeterminate:w,checked:C,onChange:x,className:d.root,inputProps:{"aria-label":I},tabIndex:P,onKeyDown:_},(r=a.slotProps)==null?void 0:r.baseCheckbox,o))}),DR=$t(T.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),NR=$t(T.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),BR=$t(T.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),zR=$t(T.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Dde=$t(T.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),jR=$t(T.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"),Nde=$t(T.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");$t(T.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");$t(T.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 Bde=$t(T.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"),zde=$t(T.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),jde=$t(T.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),Hde=$t(T.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),Vde=$t(T.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),Ude=$t(T.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"),nb=$t(T.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"),HR=$t(T.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),Wde=$t(T.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),Gde=$t(T.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"),VR=$t(T.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"),Kde=$t(T.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"),qde=$t(T.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Yde=$t(T.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"),Qde=$t(T.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"),Xde=$t(T.jsx("g",{children:T.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),Jde=$t(T.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");$t(T.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 Zde=$t(T.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"),efe=["hideMenu","colDef","id","labelledby","className","children","open"],tfe=oe(cy)(()=>({minWidth:248})),nfe=u.forwardRef(function(t,n){const{hideMenu:r,id:o,labelledby:i,className:s,children:a,open:c}=t,d=ne(t,efe),p=u.useCallback(h=>{d4(h.key)&&h.preventDefault(),nue(h.key)&&r(h)},[r]);return T.jsx(tfe,S({id:o,ref:n,className:he(X.menuList,s),"aria-labelledby":i,onKeyDown:p,autoFocus:c},d,{children:a}))}),rfe=["displayOrder"],ofe=e=>{const t=ac(),{defaultSlots:n,defaultSlotProps:r,slots:o={},slotProps:i={},hideMenu:s,colDef:a,addDividers:c=!0}=e,d=u.useMemo(()=>S({},n,o),[n,o]),p=u.useMemo(()=>{if(!i||Object.keys(i).length===0)return r;const g=S({},i);return Object.entries(r).forEach(([y,v])=>{g[y]=S({},v,i[y]||{})}),g},[r,i]),h=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),m=u.useMemo(()=>{const g=Object.keys(n);return Object.keys(o).filter(y=>!g.includes(y))},[o,n]);return u.useMemo(()=>{const v=Array.from(new Set([...h,...m])).filter(E=>d[E]!=null).sort((E,w)=>{const C=p[E],x=p[w],P=Number.isFinite(C==null?void 0:C.displayOrder)?C.displayOrder:100,_=Number.isFinite(x==null?void 0:x.displayOrder)?x.displayOrder:100;return P-_});return v.reduce((E,w,C)=>{let x={colDef:a,onClick:s};const P=p[w];if(P){const _=ne(P,rfe);x=S({},x,_)}return c&&C!==v.length-1?[...E,[d[w],x],[iZ,{}]]:[...E,[d[w],x]]},[])},[c,a,h,s,d,p,m])};function ife(e){const{colDef:t,onClick:n}=e,r=Nt(),o=et(),a=Tr(r).filter(d=>d.disableColumnMenu!==!0).length===1,c=u.useCallback(d=>{a||(r.current.setColumnVisibility(t.field,!1),n(d))},[r,t.field,n,a]);return o.disableColumnSelector||t.hideable===!1?null:T.jsxs(Or,{onClick:c,disabled:a,children:[T.jsx(js,{children:T.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),T.jsx(us,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function sfe(e){const{onClick:t}=e,n=Nt(),r=et(),o=u.useCallback(i=>{t(i),n.current.showPreferences(Xa.columns)},[n,t]);return r.disableColumnSelector?null:T.jsxs(Or,{onClick:o,children:[T.jsx(js,{children:T.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),T.jsx(us,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function lfe(e){return T.jsxs(u.Fragment,{children:[T.jsx(ife,S({},e)),T.jsx(sfe,S({},e))]})}function afe(e){const{colDef:t,onClick:n}=e,r=Nt(),o=et(),i=u.useCallback(s=>{n(s),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:T.jsxs(Or,{onClick:i,children:[T.jsx(js,{children:T.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),T.jsx(us,{children:r.current.getLocaleText("columnMenuFilter")})]})}function cfe(e){var t;const{colDef:n,onClick:r}=e,o=Nt(),i=Ge(o,ei),s=et(),a=u.useMemo(()=>{if(!n)return null;const p=i.find(h=>h.field===n.field);return p==null?void 0:p.sort},[n,i]),c=(t=n.sortingOrder)!=null?t:s.sortingOrder,d=u.useCallback(p=>{r(p);const h=p.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n,h===a?null:h)},[o,n,r,a]);return!n||!n.sortable||!c.some(p=>!!p)?null:T.jsxs(u.Fragment,{children:[c.includes("asc")&&a!=="asc"?T.jsxs(Or,{onClick:d,"data-value":"asc",children:[T.jsx(js,{children:T.jsx(s.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),T.jsx(us,{children:o.current.getLocaleText("columnMenuSortAsc")})]}):null,c.includes("desc")&&a!=="desc"?T.jsxs(Or,{onClick:d,"data-value":"desc",children:[T.jsx(js,{children:T.jsx(s.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),T.jsx(us,{children:o.current.getLocaleText("columnMenuSortDesc")})]}):null,c.includes(null)&&a!=null?T.jsxs(Or,{onClick:d,children:[T.jsx(js,{}),T.jsx(us,{children:o.current.getLocaleText("columnMenuUnsort")})]}):null]})}const ufe=["defaultSlots","defaultSlotProps","slots","slotProps"],dfe={columnMenuSortItem:cfe,columnMenuFilterItem:afe,columnMenuColumnsItem:lfe},ffe={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},pfe=u.forwardRef(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:s}=t,a=ne(t,ufe),c=ofe(S({},a,{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:s}));return T.jsx(nfe,S({ref:n},a,{children:c.map(([d,p],h)=>T.jsx(d,S({},p),h))}))}),hfe=u.forwardRef(function(t,n){return T.jsx(pfe,S({},t,{ref:n,defaultSlots:dfe,defaultSlotProps:ffe}))}),mfe=["className"],gfe=e=>{const{classes:t}=e;return Me({root:["panelContent"]},Bt,t)},vfe=gr("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function $4(e){const{className:t}=e,n=ne(e,mfe),r=et(),o=gfe(r);return T.jsx(vfe,S({className:he(t,o.root),ownerState:r},n))}const yfe=["className"],bfe=e=>{const{classes:t}=e;return Me({root:["panelFooter"]},Bt,t)},wfe=gr("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function R4(e){const{className:t}=e,n=ne(e,yfe),r=et(),o=bfe(r);return T.jsx(wfe,S({className:he(t,o.root),ownerState:r},n))}const Cfe=["className"],xfe=e=>{const{classes:t}=e;return Me({root:["panelHeader"]},Bt,t)},Sfe=gr("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})(({theme:e})=>({padding:e.spacing(1)}));function Efe(e){const{className:t}=e,n=ne(e,Cfe),r=et(),o=xfe(r);return T.jsx(Sfe,S({className:he(t,o.root),ownerState:r},n))}const Pfe=["className","slotProps"],Ife=e=>{const{classes:t}=e;return Me({root:["panelWrapper"]},Bt,t)},kfe=oe("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),_fe=()=>!0,M4=u.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,i=ne(t,Pfe),s=et(),a=Ife(s);return T.jsx(XF,S({open:!0,disableEnforceFocus:!0,isEnabled:_fe},o.TrapFocus,{children:T.jsx(kfe,S({ref:n,tabIndex:-1,className:he(r,a.root),ownerState:s},i))}))}),$fe=!1,Rfe=["sort","searchPredicate","autoFocusSearchField","disableHideAllButton","disableShowAllButton","getTogglableColumns"],Mfe=e=>{const{classes:t}=e;return Me({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},Bt,t)},Tfe=oe("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),Ofe=oe("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${Rr.root}`]:{marginRight:e.spacing(.5)}})),Ffe=oe(ai)({justifyContent:"flex-end"}),UR=new Intl.Collator,Lfe=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;function Afe(e){var t,n,r;const o=Nt(),i=u.useRef(null),s=Ge(o,fs),a=Ge(o,Di),c=et(),[d,p]=u.useState(""),h=Mfe(c),{sort:m,searchPredicate:g=Lfe,autoFocusSearchField:y=!0,disableHideAllButton:v=!1,disableShowAllButton:E=!1,getTogglableColumns:w}=e,C=ne(e,Rfe),x=u.useMemo(()=>{switch(m){case"asc":return[...s].sort((O,N)=>UR.compare(O.headerName||O.field,N.headerName||N.field));case"desc":return[...s].sort((O,N)=>-UR.compare(O.headerName||O.field,N.headerName||N.field));default:return s}},[s,m]),P=O=>{const{name:N}=O.target;o.current.setColumnVisibility(N,a[N]===!1)},_=u.useCallback(O=>{const N=Di(o),B=S({},N),M=w?w(s):null;return s.forEach(L=>{L.hideable&&(M==null||M.includes(L.field))&&(O?delete B[L.field]:B[L.field]=!1)}),o.current.setColumnVisibilityModel(B)},[o,s,w]),k=u.useCallback(O=>{p(O.target.value)},[]),I=u.useMemo(()=>{const O=w?w(x):null,N=O?x.filter(({field:B})=>O.includes(B)):x;return d?N.filter(B=>g(B,d.toLowerCase())):N},[x,d,g,w]),R=u.useRef(null);u.useEffect(()=>{y?i.current.focus():R.current&&typeof R.current.focus=="function"&&R.current.focus()},[y]);let F=!1;const A=O=>F===!1&&O.hideable!==!1?(F=!0,!0):!1;return T.jsxs(M4,S({},C,{children:[T.jsx(Efe,{children:T.jsx(c.slots.baseTextField,S({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:i,value:d,onChange:k,variant:"standard",fullWidth:!0},(t=c.slotProps)==null?void 0:t.baseTextField))}),T.jsx($4,{children:T.jsx(Tfe,{className:h.root,ownerState:c,children:I.map(O=>{var N;return T.jsxs(Ofe,{className:h.columnsPanelRow,ownerState:c,children:[T.jsx(IL,{control:T.jsx(c.slots.baseSwitch,S({disabled:O.hideable===!1,checked:a[O.field]!==!1,onClick:P,name:O.field,size:"small",inputRef:A(O)?R:void 0},(N=c.slotProps)==null?void 0:N.baseSwitch)),label:O.headerName||O.field}),!c.disableColumnReorder&&$fe&&T.jsx(Ffe,{draggable:!0,"aria-label":o.current.getLocaleText("columnsPanelDragIconLabel"),title:o.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0,children:T.jsx(c.slots.columnReorderIcon,{})})]},O.field)})})}),E&&v?null:T.jsxs(R4,{children:[v?T.jsx("span",{}):T.jsx(c.slots.baseButton,S({onClick:()=>_(!1)},(n=c.slotProps)==null?void 0:n.baseButton,{disabled:v,children:o.current.getLocaleText("columnsPanelHideAllButton")})),E?null:T.jsx(c.slots.baseButton,S({onClick:()=>_(!0)},(r=c.slotProps)==null?void 0:r.baseButton,{disabled:E,children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const Dfe=["children","className","classes"],Nfe=Xe("MuiDataGrid",["panel","paper"]),Bfe=oe(oc,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),zfe=oe(xi,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex"})),jfe=u.forwardRef((e,t)=>{const{children:n,className:r}=e,o=ne(e,Dfe),i=Nt(),s=et(),a=Nfe,[c,d]=u.useState(!1),p=u.useCallback(()=>{i.current.hidePreferences()},[i]),h=u.useCallback(v=>{zg(v.key)&&i.current.hidePreferences()},[i]),m=u.useMemo(()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{d(!0)},effect:()=>()=>{d(!1)}}],[]),[g,y]=u.useState(null);return u.useEffect(()=>{var v,E;const w=(v=i.current.rootElementRef)==null||(E=v.current)==null?void 0:E.querySelector(`.${X.columnHeaders}`);w&&y(w)},[i]),g?T.jsx(Bfe,S({ref:t,placement:"bottom-start",className:he(r,a.panel),ownerState:s,anchorEl:g,modifiers:m},o,{children:T.jsx(QF,{mouseEvent:"onMouseUp",onClickAway:p,children:T.jsx(zfe,{className:a.paper,ownerState:s,elevation:8,onKeyDown:h,children:c&&n})})})):null}),Hfe=u.forwardRef(function(t,n){var r,o,i;const s=Nt(),a=Ge(s,fs),c=et(),d=Ge(s,dp),p=s.current.unstable_applyPipeProcessors("preferencePanel",null,(r=d.openedPanelValue)!=null?r:Xa.filters);return T.jsx(c.slots.panel,S({ref:n,as:c.slots.basePopper,open:a.length>0&&d.open,id:d.panelId,"aria-labelledby":d.labelId},(o=c.slotProps)==null?void 0:o.panel,t,(i=c.slotProps)==null?void 0:i.basePopper,{children:p}))}),Vfe=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],Ufe=["InputComponentProps"],Wfe=e=>{const{classes:t}=e;return Me({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Bt,t)},Gfe=oe("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),Kfe=oe("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)})),qfe=oe("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),Yfe=oe("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),Qfe=oe("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),Xfe=oe("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),Jfe=e=>{switch(e){case io.And:return"filterPanelOperatorAnd";case io.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `logicOperator` property in the `GridFilterPanel`.")}},Xd=e=>e.headerName||e.field,WR=new Intl.Collator,Zfe=u.forwardRef(function(t,n){var r,o,i,s,a,c,d,p,h,m;const{item:g,hasMultipleFilters:y,deleteFilter:v,applyFilterChanges:E,multiFilterOperator:w,showMultiFilterOperators:C,disableMultiFilterOperator:x,applyMultiFilterOperatorChanges:P,focusElementRef:_,logicOperators:k=[io.And,io.Or],columnsSort:I,filterColumns:R,deleteIconProps:F={},logicOperatorInputProps:A={},operatorInputProps:O={},columnInputProps:N={},valueInputProps:B={}}=t,M=ne(t,Vfe),L=Nt(),z=Ge(L,XA),V=Ge(L,wr),D=sn(),H=sn(),W=sn(),K=sn(),Y=et(),ie=Wfe(Y),re=u.useRef(null),de=u.useRef(null),se=y&&k.length>0,le=((r=Y.slotProps)==null?void 0:r.baseFormControl)||{},ve=(i=(((o=Y.slotProps)==null?void 0:o.baseSelect)||{}).native)!=null?i:!0,Pe=((s=Y.slotProps)==null?void 0:s.baseInputLabel)||{},ee=((a=Y.slotProps)==null?void 0:a.baseSelectOption)||{},{InputComponentProps:_e}=B,Re=ne(B,Ufe),Ee=u.useMemo(()=>{if(R===void 0||typeof R!="function")return z;const Be=R({field:g.field,columns:z,currentFilters:(V==null?void 0:V.items)||[]});return z.filter(ft=>Be.includes(ft.field))},[R,V==null?void 0:V.items,z,g.field]),pe=u.useMemo(()=>{switch(I){case"asc":return Ee.sort((Be,ft)=>WR.compare(Xd(Be),Xd(ft)));case"desc":return Ee.sort((Be,ft)=>-WR.compare(Xd(Be),Xd(ft)));default:return Ee}},[Ee,I]),be=g.field?L.current.getColumn(g.field):null,te=u.useMemo(()=>{var Be;return!g.operator||!be?null:(Be=be.filterOperators)==null?void 0:Be.find(ft=>ft.value===g.operator)},[g,be]),Oe=u.useCallback(Be=>{const ft=Be.target.value,yt=L.current.getColumn(ft);if(yt.field===be.field)return;const ut=yt.filterOperators.find(bt=>bt.value===g.operator)||yt.filterOperators[0],It=!ut.InputComponent||ut.InputComponent!==(te==null?void 0:te.InputComponent);E(S({},g,{field:ft,operator:ut.value,value:It?void 0:g.value}))},[L,E,g,be,te]),Ye=u.useCallback(Be=>{const ft=Be.target.value,yt=be==null?void 0:be.filterOperators.find(It=>It.value===ft),ut=!(yt!=null&&yt.InputComponent)||(yt==null?void 0:yt.InputComponent)!==(te==null?void 0:te.InputComponent);E(S({},g,{operator:ft,value:ut?void 0:g.value}))},[E,g,be,te]),Ke=u.useCallback(Be=>{const ft=Be.target.value===io.And.toString()?io.And:io.Or;P(ft)},[P]),Ue=()=>{Y.disableMultipleColumnsFiltering?g.value===void 0?v(g):E(S({},g,{value:void 0})):v(g)};return u.useImperativeHandle(_,()=>({focus:()=>{if(te!=null&&te.InputComponent){var Be;re==null||(Be=re.current)==null||Be.focus()}else de.current.focus()}}),[te]),T.jsxs(Gfe,S({ref:n,className:ie.root,"data-id":g.id,ownerState:Y},M,{children:[T.jsx(Kfe,S({variant:"standard",as:Y.slots.baseFormControl},le,F,{className:he(ie.deleteIcon,le.className,F.className),ownerState:Y,children:T.jsx(Y.slots.baseIconButton,S({"aria-label":L.current.getLocaleText("filterPanelDeleteIconLabel"),title:L.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:Ue,size:"small"},(c=Y.slotProps)==null?void 0:c.baseIconButton,{children:T.jsx(Y.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),T.jsx(qfe,S({variant:"standard",as:Y.slots.baseFormControl},le,A,{sx:S({display:se?"flex":"none",visibility:C?"visible":"hidden"},le.sx||{},A.sx||{}),className:he(ie.logicOperatorInput,le.className,A.className),ownerState:Y,children:T.jsx(Y.slots.baseSelect,S({inputProps:{"aria-label":L.current.getLocaleText("filterPanelLogicOperator")},value:w,onChange:Ke,disabled:!!x||k.length===1,native:ve},(d=Y.slotProps)==null?void 0:d.baseSelect,{children:k.map(Be=>u.createElement(Y.slots.baseSelectOption,S({},ee,{native:ve,key:Be.toString(),value:Be.toString()}),L.current.getLocaleText(Jfe(Be))))}))})),T.jsxs(Yfe,S({variant:"standard",as:Y.slots.baseFormControl},le,N,{className:he(ie.columnInput,le.className,N.className),ownerState:Y,children:[T.jsx(Y.slots.baseInputLabel,S({},Pe,{htmlFor:D,id:H,children:L.current.getLocaleText("filterPanelColumns")})),T.jsx(Y.slots.baseSelect,S({labelId:H,id:D,label:L.current.getLocaleText("filterPanelColumns"),value:g.field||"",onChange:Oe,native:ve},(p=Y.slotProps)==null?void 0:p.baseSelect,{children:pe.map(Be=>u.createElement(Y.slots.baseSelectOption,S({},ee,{native:ve,key:Be.field,value:Be.field}),Xd(Be)))}))]})),T.jsxs(Qfe,S({variant:"standard",as:Y.slots.baseFormControl},le,O,{className:he(ie.operatorInput,le.className,O.className),ownerState:Y,children:[T.jsx(Y.slots.baseInputLabel,S({},Pe,{htmlFor:W,id:K,children:L.current.getLocaleText("filterPanelOperator")})),T.jsx(Y.slots.baseSelect,S({labelId:K,label:L.current.getLocaleText("filterPanelOperator"),id:W,value:g.operator,onChange:Ye,native:ve,inputRef:de},(h=Y.slotProps)==null?void 0:h.baseSelect,{children:be==null||(m=be.filterOperators)==null?void 0:m.map(Be=>u.createElement(Y.slots.baseSelectOption,S({},ee,{native:ve,key:Be.value,value:Be.value}),Be.label||L.current.getLocaleText(`filterOperator${ue(Be.value)}`)))}))]})),T.jsx(Xfe,S({variant:"standard",as:Y.slots.baseFormControl},le,Re,{className:he(ie.valueInput,le.className,Re.className),ownerState:Y,children:te!=null&&te.InputComponent?T.jsx(te.InputComponent,S({apiRef:L,item:g,applyValue:E,focusElementRef:re},te.InputComponentProps,_e)):null}))]}))}),epe=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps"],tpe=500;function ns(e){var t,n;const{item:r,applyValue:o,type:i,apiRef:s,focusElementRef:a,tabIndex:c,disabled:d,clearButton:p,InputProps:h}=e,m=ne(e,epe),g=u.useRef(),[y,v]=u.useState((t=r.value)!=null?t:""),[E,w]=u.useState(!1),C=sn(),x=et(),P=u.useCallback(_=>{const{value:k}=_.target;clearTimeout(g.current),v(String(k)),w(!0),g.current=setTimeout(()=>{o(S({},r,{value:k})),w(!1)},tpe)},[o,r]);return u.useEffect(()=>()=>{clearTimeout(g.current)},[]),u.useEffect(()=>{var _;const k=(_=r.value)!=null?_:"";v(String(k))},[r.value]),T.jsx(x.slots.baseTextField,S({id:C,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:y,onChange:P,variant:"standard",type:i||"text",InputProps:S({},E||p?{endAdornment:E?T.jsx(x.slots.loadIcon,{fontSize:"small",color:"action"}):p}:{},{disabled:d},h,{inputProps:S({tabIndex:c},h==null?void 0:h.inputProps)}),InputLabelProps:{shrink:!0},inputRef:a},m,(n=x.slotProps)==null?void 0:n.baseTextField))}const npe=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"],rpe=500;function Oc(e){var t,n;const{item:r,applyValue:o,type:i,apiRef:s,focusElementRef:a,InputProps:c,clearButton:d,tabIndex:p,disabled:h}=e,m=ne(e,npe),g=u.useRef(),[y,v]=u.useState((t=r.value)!=null?t:""),[E,w]=u.useState(!1),C=sn(),x=et(),P=u.useCallback(_=>{const k=_.target.value;clearTimeout(g.current),v(String(k)),w(!0),g.current=setTimeout(()=>{o(S({},r,{value:k})),w(!1)},rpe)},[o,r]);return u.useEffect(()=>()=>{clearTimeout(g.current)},[]),u.useEffect(()=>{var _;const k=(_=r.value)!=null?_:"";v(String(k))},[r.value]),T.jsx(x.slots.baseTextField,S({fullWidth:!0,id:C,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:y,onChange:P,variant:"standard",type:i||"text",InputLabelProps:{shrink:!0},inputRef:a,InputProps:S({},E||d?{endAdornment:E?T.jsx(x.slots.loadIcon,{fontSize:"small",color:"action"}):d}:{},{disabled:h},c,{inputProps:S({max:i==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:p},c==null?void 0:c.inputProps)})},m,(n=x.slotProps)==null?void 0:n.baseTextField))}const ope=["item","applyValue","type","apiRef","focusElementRef","getOptionLabel","getOptionValue","placeholder","tabIndex","label","isFilterActive","clearButton"],ipe=({column:{valueOptions:e,field:t},OptionComponent:n,getOptionLabel:r,getOptionValue:o,isSelectNative:i,baseSelectOptionProps:s})=>(typeof e=="function"?["",...e({field:t})]:["",...e||[]]).map(c=>{const d=o(c),p=r(c);return u.createElement(n,S({},s,{native:i,key:d,value:d}),p)}),spe=oe("div")({display:"flex",alignItems:"flex-end",width:"100%",["& button"]:{margin:"auto 0px 5px 5px"}});function GR(e){var t,n,r,o,i,s,a,c,d;const{item:p,applyValue:h,type:m,apiRef:g,focusElementRef:y,getOptionLabel:v,getOptionValue:E,placeholder:w,tabIndex:C,label:x,clearButton:P}=e,_=ne(e,ope),[k,I]=u.useState((t=p.value)!=null?t:""),R=sn(),F=sn(),A=et(),O=(n=(r=A.slotProps)==null||(o=r.baseSelect)==null?void 0:o.native)!=null?n:!0;let N=null;if(p.field){const D=g.current.getColumn(p.field);Fa(D)&&(N=D)}const B=E||((i=N)==null?void 0:i.getOptionValue),M=v||((s=N)==null?void 0:s.getOptionLabel),L=u.useMemo(()=>{if(N)return typeof N.valueOptions=="function"?N.valueOptions({field:N.field}):N.valueOptions},[N]),z=u.useCallback(D=>{let H=D.target.value;H=Yw(H,L,B),I(String(H)),h(S({},p,{value:H}))},[L,B,h,p]);if(u.useEffect(()=>{var D;let H;if(L!==void 0){if(H=Yw(p.value,L,B),H!==p.value){h(S({},p,{value:H}));return}}else H=p.value;H=(D=H)!=null?D:"",I(String(H))},[p,L,h,B]),!Fa(N)||!Fa(N))return null;const V=x!=null?x:g.current.getLocaleText("filterPanelInputLabel");return T.jsxs(spe,{children:[T.jsxs(A.slots.baseFormControl,{children:[T.jsx(A.slots.baseInputLabel,S({},(a=A.slotProps)==null?void 0:a.baseInputLabel,{id:F,htmlFor:R,shrink:!0,variant:"standard",children:V})),T.jsx(A.slots.baseSelect,S({id:R,label:V,labelId:F,value:k,onChange:z,variant:"standard",type:m||"text",inputProps:{tabIndex:C,ref:y,placeholder:w!=null?w:g.current.getLocaleText("filterPanelInputPlaceholder")},native:O},_,(c=A.slotProps)==null?void 0:c.baseSelect,{children:ipe({column:N,OptionComponent:A.slots.baseSelectOption,getOptionLabel:M,getOptionValue:B,isSelectNative:O,baseSelectOptionProps:(d=A.slotProps)==null?void 0:d.baseSelectOption})}))]}),P]})}const lpe=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label"],ape=oe("div")({display:"flex",alignItems:"center",width:"100%",["& button"]:{margin:"auto 0px 5px 5px"}});function cpe(e){var t,n,r,o;const{item:i,applyValue:s,apiRef:a,focusElementRef:c,clearButton:d,tabIndex:p,label:h}=e,m=ne(e,lpe),[g,y]=u.useState(i.value||""),v=et(),E=sn(),w=sn(),C=((t=v.slotProps)==null?void 0:t.baseSelect)||{},x=(n=C.native)!=null?n:!0,P=((r=v.slotProps)==null?void 0:r.baseSelectOption)||{},_=u.useCallback(I=>{const R=I.target.value;y(R),s(S({},i,{value:R}))},[s,i]);u.useEffect(()=>{y(i.value||"")},[i.value]);const k=h!=null?h:a.current.getLocaleText("filterPanelInputLabel");return T.jsxs(ape,{children:[T.jsxs(v.slots.baseFormControl,{fullWidth:!0,children:[T.jsx(v.slots.baseInputLabel,S({},(o=v.slotProps)==null?void 0:o.baseInputLabel,{id:E,shrink:!0,variant:"standard",children:k})),T.jsxs(v.slots.baseSelect,S({labelId:E,id:w,label:k,value:g,onChange:_,variant:"standard",native:x,displayEmpty:!0,inputProps:{ref:c,tabIndex:p}},m,C,{children:[T.jsx(v.slots.baseSelectOption,S({},P,{native:x,value:"",children:a.current.getLocaleText("filterValueAny")})),T.jsx(v.slots.baseSelectOption,S({},P,{native:x,value:"true",children:a.current.getLocaleText("filterValueTrue")})),T.jsx(v.slots.baseSelectOption,S({},P,{native:x,value:"false",children:a.current.getLocaleText("filterValueFalse")}))]}))]}),d]})}const upe=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],KR=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),dpe=u.forwardRef(function(t,n){var r,o;const i=Nt(),s=et(),a=Ge(i,wr),c=Ge(i,XA),d=u.useRef(null),p=u.useRef(null),{logicOperators:h=[io.And,io.Or],columnsSort:m,filterFormProps:g,getColumnForNewFilter:y,disableAddFilterButton:v=!1,disableRemoveAllButton:E=!1}=t,w=ne(t,upe),C=u.useCallback(O=>{i.current.upsertFilterItem(O)},[i]),x=u.useCallback(O=>{i.current.setFilterLogicOperator(O)},[i]),P=u.useCallback(()=>{let O;if(y&&typeof y=="function"){const N=y({currentFilters:(a==null?void 0:a.items)||[],columns:c});if(N===null)return null;O=c.find(({field:B})=>B===N)}else O=c.find(N=>{var B;return(B=N.filterOperators)==null?void 0:B.length});return O?KR(O):null},[a==null?void 0:a.items,c,y]),_=u.useCallback(()=>{if(y===void 0||typeof y!="function")return P();const O=a.items.length?a.items:[P()].filter(Boolean),N=y({currentFilters:O,columns:c});if(N===null)return null;const B=c.find(({field:M})=>M===N);return B?KR(B):null},[a.items,c,y,P]),k=u.useMemo(()=>a.items.length?a.items:(p.current||(p.current=P()),p.current?[p.current]:[]),[a.items,P]),I=k.length>1,R=()=>{const O=_();O&&i.current.upsertFilterItems([...k,O])},F=u.useCallback(O=>{const N=k.length===1;i.current.deleteFilterItem(O),N&&i.current.hideFilterPanel()},[i,k.length]),A=()=>{k.length===1&&k[0].value===void 0&&(i.current.deleteFilterItem(k[0]),i.current.hideFilterPanel()),i.current.setFilterModel(S({},a,{items:[]}))};return u.useEffect(()=>{h.length>0&&a.logicOperator&&!h.includes(a.logicOperator)&&x(h[0])},[h,x,a.logicOperator]),u.useEffect(()=>{k.length>0&&d.current.focus()},[k.length]),T.jsxs(M4,S({ref:n},w,{children:[T.jsx($4,{children:k.map((O,N)=>T.jsx(Zfe,S({item:O,applyFilterChanges:C,deleteFilter:F,hasMultipleFilters:I,showMultiFilterOperators:N>0,multiFilterOperator:a.logicOperator,disableMultiFilterOperator:N!==1,applyMultiFilterOperatorChanges:x,focusElementRef:N===k.length-1?d:null,logicOperators:h,columnsSort:m},g),O.id==null?N:O.id))}),!s.disableMultipleColumnsFiltering&&!(v&&E)?T.jsxs(R4,{children:[v?T.jsx("span",{}):T.jsx(s.slots.baseButton,S({onClick:R,startIcon:T.jsx(s.slots.filterPanelAddIcon,{})},(r=s.slotProps)==null?void 0:r.baseButton,{children:i.current.getLocaleText("filterPanelAddFilter")})),E?null:T.jsx(s.slots.baseButton,S({onClick:A,startIcon:T.jsx(s.slots.filterPanelRemoveAllIcon,{})},(o=s.slotProps)==null?void 0:o.baseButton,{children:i.current.getLocaleText("filterPanelRemoveAll")}))]}):null]}))}),fpe=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function T4(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,color:s,error:a,helperText:c,size:d,variant:p}=e,h=ne(e,fpe),m={color:s,error:a,helperText:c,size:d,variant:p},[g,y]=u.useState(t.value||[]),v=sn(),E=et();u.useEffect(()=>{var C;const x=(C=t.value)!=null?C:[];y(x.map(String))},[t.value]);const w=u.useCallback((C,x)=>{y(x.map(String)),n(S({},t,{value:[...x]}))},[n,t]);return T.jsx(Gx,S({multiple:!0,freeSolo:!0,options:[],filterOptions:(C,x)=>{const{inputValue:P}=x;return P==null||P===""?[]:[P]},id:v,value:g,onChange:w,renderTags:(C,x)=>C.map((P,_)=>T.jsx(E.slots.baseChip,S({variant:"outlined",size:"small",label:P},x({index:_})))),renderInput:C=>{var x;return T.jsx(E.slots.baseTextField,S({},C,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:S({},C.InputLabelProps,{shrink:!0}),inputRef:i,type:r||"text"},m,(x=E.slotProps)==null?void 0:x.baseTextField))}},h))}const ppe=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant","getOptionLabel","getOptionValue"],hpe=aL();function mpe(e){var t,n;const{item:r,applyValue:o,apiRef:i,focusElementRef:s,color:a,error:c,helperText:d,size:p,variant:h="standard",getOptionLabel:m,getOptionValue:g}=e,y=ne(e,ppe),v={color:a,error:c,helperText:d,size:p,variant:h},E=sn(),w=et();let C=null;if(r.field){const A=i.current.getColumn(r.field);Fa(A)&&(C=A)}const x=g||((t=C)==null?void 0:t.getOptionValue),P=m||((n=C)==null?void 0:n.getOptionLabel),_=u.useCallback((A,O)=>x(A)===x(O),[x]),k=u.useMemo(()=>{var A;return(A=C)!=null&&A.valueOptions?typeof C.valueOptions=="function"?C.valueOptions({field:C.field}):C.valueOptions:[]},[C]),I=u.useMemo(()=>k==null?void 0:k.map(x),[k,x]),R=u.useMemo(()=>Array.isArray(r.value)?k!==void 0?r.value.map(O=>I==null?void 0:I.findIndex(N=>N===O)).filter(O=>O>=0).map(O=>k[O]):r.value:[],[r.value,k,I]);u.useEffect(()=>{(!Array.isArray(r.value)||R.length!==r.value.length)&&o(S({},r,{value:R.map(x)}))},[r,R,o,x]);const F=u.useCallback((A,O)=>{o(S({},r,{value:O.map(x)}))},[o,r,x]);return T.jsx(Gx,S({multiple:!0,options:k,isOptionEqualToValue:_,filterOptions:hpe,id:E,value:R,onChange:F,getOptionLabel:P,renderTags:(A,O)=>A.map((N,B)=>T.jsx(w.slots.baseChip,S({variant:"outlined",size:"small",label:P(N)},O({index:B})))),renderInput:A=>{var O;return T.jsx(w.slots.baseTextField,S({},A,{label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:S({},A.InputLabelProps,{shrink:!0}),inputRef:s,type:"singleSelect"},v,(O=w.slotProps)==null?void 0:O.baseTextField))}},y))}const gpe=["hideMenu","options"],vpe=["hideMenu","options"];function ype(e){const t=Nt(),{hideMenu:n,options:r}=e,o=ne(e,gpe);return T.jsx(Or,S({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function bpe(e){const t=Nt(),{hideMenu:n,options:r}=e,o=ne(e,vpe);return T.jsx(Or,S({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const wpe=["className","rowCount","visibleRowCount"],Cpe=e=>{const{classes:t}=e;return Me({root:["rowCount"]},Bt,t)},xpe=gr("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),Spe=u.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:i}=t,s=ne(t,wpe),a=Nt(),c=et(),d=Cpe(c);if(o===0)return null;const p=i<o?a.current.getLocaleText("footerTotalVisibleRows")(i,o):o.toLocaleString();return T.jsxs(xpe,S({ref:n,className:he(d.root,r),ownerState:c},s,{children:[a.current.getLocaleText("footerTotalRows")," ",p]}))}),Epe=["className","selectedRowCount"],Ppe=e=>{const{classes:t}=e;return Me({root:["selectedRowCount"]},Bt,t)},Ipe=gr("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"}})),kpe=u.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,i=ne(t,Epe),s=Nt(),a=et(),c=Ppe(a),d=s.current.getLocaleText("footerRowSelected")(o);return T.jsx(Ipe,S({ref:n,className:he(c.root,r),ownerState:a},i,{children:d}))}),_pe=u.forwardRef(function(t,n){var r;const o=Nt(),i=et(),s=Ge(o,qae),a=Ge(o,vde),c=Ge(o,Py),d=!i.hideFooterSelectedRowCount&&a>0?T.jsx(kpe,{selectedRowCount:a}):T.jsx("div",{}),p=!i.hideFooterRowCount&&!i.pagination?T.jsx(Spe,{rowCount:s,visibleRowCount:c}):null,h=i.pagination&&!i.hideFooterPagination&&i.slots.pagination&&T.jsx(i.slots.pagination,S({},(r=i.slotProps)==null?void 0:r.pagination));return T.jsxs(_ue,S({ref:n},t,{children:[d,p,h]}))});function $pe(){var e,t;const n=et();return T.jsxs(u.Fragment,{children:[T.jsx(n.slots.preferencesPanel,S({},(e=n.slotProps)==null?void 0:e.preferencesPanel)),n.slots.toolbar&&T.jsx(n.slots.toolbar,S({},(t=n.slotProps)==null?void 0:t.toolbar))]})}const Rpe=u.forwardRef(function(t,n){return T.jsx(lE,S({ref:n},t,{children:T.jsx(Qs,{})}))}),Mpe=u.forwardRef(function(t,n){const o=Nt().current.getLocaleText("noRowsLabel");return T.jsx(lE,S({ref:n},t,{children:o}))}),Tpe=oe(eoe)(({theme:e})=>({[`& .${Ta.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${Ta.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),Ope=u.forwardRef(function(t,n){const r=Nt(),o=et(),i=Ge(r,oi),s=Ge(r,Py),a=u.useMemo(()=>{var g,y;return(g=(y=o.rowCount)!=null?y:s)!=null?g:0},[o.rowCount,s]),c=u.useMemo(()=>Math.floor(a/(i.pageSize||1)),[a,i.pageSize]),d=u.useCallback(g=>{const y=Number(g.target.value);r.current.setPageSize(y)},[r]),p=u.useCallback((g,y)=>{r.current.setPage(y)},[r]),m=(g=>{for(let y=0;y<o.pageSizeOptions.length;y+=1){const v=o.pageSizeOptions[y];if(typeof v=="number"){if(v===g)return!0}else if(v.value===g)return!0}return!1})(i.pageSize)?o.pageSizeOptions:[];return T.jsx(Tpe,S({ref:n,component:"div",count:a,page:i.page<=c?i.page:c,rowsPerPageOptions:m,rowsPerPage:i.pageSize,onPageChange:p,onRowsPerPageChange:d},r.current.getLocaleText("MuiTablePagination"),t))}),dE=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=cE(e),n=gde(e)):(n=sa(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},cc=(e,t)=>{const n=dE(e,t);return u.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},Qw={current:null};function Bp(e){return e.isInternal=!0,e}function Vg(e){return e!==void 0&&e.isInternal===!0}function Fpe(e){return Bp((t,n)=>{const r=e(t,n);return r&&(o=>r(o.value,o.row,n,Qw.current))})}function zp(e){return e.map(t=>S({},t,{getApplyFilterFn:Fpe(t.getApplyFilterFnV7),getApplyFilterFnV7:Bp(t.getApplyFilterFnV7)}))}function O4(e){return Bp((t,n,r)=>{const o=e(t,n,r);return o&&(i=>o(i.value,i.row,n,r))})}const qR=Bp(e=>{if(!e)return null;const t=new RegExp(Bm(e),"i");return(n,r,o,i)=>{const s=i.current.getRowFormattedValue(r,o);return s!=null?t.test(s.toString()):!1}}),Lpe=(e=!1)=>zp([{value:"contains",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(Bm(n),"i");return o=>o!=null?r.test(String(o)):!1},InputComponent:ns},{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:ns},{value:"startsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${Bm(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:ns},{value:"endsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${Bm(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:ns},{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(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:T4}]),Jl={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:Pde,type:"string",align:"left",filterOperators:Lpe(),renderEditCell:Qce,getApplyQuickFilterFn:O4(qR),getApplyQuickFilterFnV7:qR},Ape=()=>zp([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t=e.value==="true";return n=>!!n===t},InputComponent:cpe}]);function Dpe({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const Npe=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}},F4=S({},Jl,{type:"boolean",align:"center",headerAlign:"center",renderCell:Dce,renderEditCell:jce,sortComparator:I4,valueFormatter:Dpe,filterOperators:Ape(),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>Npe(e)}),yl="__check__",jp=S({},F4,{field:yl,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=>Hg(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>T.jsx(Ade,S({},e)),renderCell:e=>T.jsx(Ode,S({},e))}),Ry="actions",Bpe=S({},Jl,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:mue,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0}),fE="__detail_panel_toggle__",Hr=e=>e.editRows,zpe=["selected","rowId","row","index","style","position","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","isLastVisible","focusedCell","tabbableCell","onClick","onDoubleClick","onMouseEnter","onMouseLeave"],jpe=e=>{const{editable:t,editing:n,selected:r,isLastVisible:o,rowHeight:i,classes:s}=e;return Me({root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--lastVisible",i==="auto"&&"row--dynamicHeight"]},Bt,s)};function Hpe({width:e}){if(!e)return null;const t={width:e};return T.jsx("div",{className:`${X.cell} ${X.withBorderColor}`,style:t})}const Vpe=u.forwardRef(function(t,n){const{selected:r,rowId:o,row:i,index:s,style:a,position:c,rowHeight:d,className:p,renderedColumns:h,containerWidth:m,firstColumnToRender:g,isLastVisible:y=!1,onClick:v,onDoubleClick:E,onMouseEnter:w,onMouseLeave:C}=t,x=ne(t,zpe),P=Nt(),_=u.useRef(null),k=et(),I=cc(P,k),R=Ge(P,eE),F=Ge(P,ei),A=Ge(P,Ey),O=Ge(P,Dp),N=Ge(P,Hr),B=Vt(_,n),M=s+O+2,L={selected:r,isLastVisible:y,classes:k.classes,editing:P.current.getRowMode(o)===mn.Edit,editable:k.editMode===ys.Row,rowHeight:d},z=jpe(L);u.useLayoutEffect(()=>{d==="auto"&&_.current&&typeof ResizeObserver=="undefined"&&P.current.unstable_storeRowHeightMeasurement(o,_.current.clientHeight,c)},[P,d,o,c]),u.useLayoutEffect(()=>{if(I.range){const Ye=P.current.getRowIndexRelativeToVisibleRows(o);Ye!=null&&P.current.unstable_setLastMeasuredRowIndex(Ye)}const be=_.current;if(!be||d!=="auto"||typeof ResizeObserver=="undefined")return;const Oe=new ResizeObserver(Ye=>{const[Ke]=Ye,Ue=Ke.borderBoxSize&&Ke.borderBoxSize.length>0?Ke.borderBoxSize[0].blockSize:Ke.contentRect.height;P.current.unstable_storeRowHeightMeasurement(o,Ue,c)});return Oe.observe(be),()=>Oe.disconnect()},[P,I.range,s,d,o,c]);const V=u.useCallback((be,te)=>Oe=>{Oe.target.nodeType===1&&!Oe.currentTarget.contains(Oe.target)||P.current.getRow(o)&&(P.current.publishEvent(be,P.current.getRowParams(o),Oe),te&&te(Oe))},[P,o]),D=u.useCallback(be=>{const te=Cce(be.target,X.cell),Oe=te==null?void 0:te.getAttribute("data-field");Oe&&(Oe===jp.field||Oe===fE||Oe==="__reorder__"||P.current.getCellMode(o,Oe)===on.Edit||P.current.getColumn(Oe).type===Ry)||V("rowClick",v)(be)},[P,v,V,o]),{slots:H,slotProps:W,disableColumnReorder:K}=k,Y=H.cell===qw?qw:Mce,ie=k.rowReordering,re=(be,te)=>{var Oe,Ye;const Ke=K&&be.disableReorder||!ie&&!!F.length&&A>1&&Object.keys(N).length>0,Ue=(Oe=(Ye=N[o])==null?void 0:Ye[be.field])!=null?Oe:null;return T.jsx(Y,S({column:be,width:te.width,rowId:o,height:d,showRightBorder:te.showRightBorder,align:be.align||"left",colIndex:te.indexRelativeToAllColumns,colSpan:te.colSpan,disableDragEvents:Ke,editCellState:Ue},W==null?void 0:W.cell),be.field)},de=Ge(P,()=>S({},P.current.unstable_getRowInternalSizes(o)),JS);let se=d;if(se==="auto"&&de){let be=0;const te=Object.entries(de).reduce((Oe,[Ye,Ke])=>/^base[A-Z]/.test(Ye)?(be+=1,Ke>Oe?Ke:Oe):Oe,0);te>0&&be>1&&(se=te)}const le=S({},a,{maxHeight:d==="auto"?"none":d,minHeight:se});if(de!=null&&de.spacingTop){const be=k.rowSpacingType==="border"?"borderTopWidth":"marginTop";le[be]=de.spacingTop}if(de!=null&&de.spacingBottom){const be=k.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let te=le[be];typeof te!="number"&&(te=parseInt(te||"0",10)),te+=de.spacingBottom,le[be]=te}const ke=P.current.unstable_applyPipeProcessors("rowClassName",[],o);if(typeof k.getRowClassName=="function"){var ve;const be=s-(((ve=I.range)==null?void 0:ve.firstRowIndex)||0),te=S({},P.current.getRowParams(o),{isFirstVisible:be===0,isLastVisible:be===I.rows.length-1,indexRelativeToCurrentPage:be});ke.push(k.getRowClassName(te))}const Pe=cde(1e4,20,80),ee=P.current.getRowNode(o);if(!ee)return null;const _e=ee.type,Re=[];for(let be=0;be<h.length;be+=1){const te=h[be],Oe=g+be,Ye=P.current.unstable_getCellColSpanInfo(o,Oe);if(Ye&&!Ye.spannedByColSpan)if(_e!=="skeletonRow"){const{colSpan:Ke,width:Ue}=Ye.cellProps,Be={width:Ue,colSpan:Ke,showRightBorder:k.showCellVerticalBorder,indexRelativeToAllColumns:Oe};Re.push(re(te,Be))}else{const{width:Ke}=Ye.cellProps,Ue=Math.round(Pe());Re.push(T.jsx(H.skeletonCell,{width:Ke,contentWidth:Ue,field:te.field,align:te.align},te.field))}}const Ee=m-R,pe=i?{onClick:D,onDoubleClick:V("rowDoubleClick",E),onMouseEnter:V("rowMouseEnter",w),onMouseLeave:V("rowMouseLeave",C)}:null;return T.jsxs("div",S({ref:B,"data-id":o,"data-rowindex":s,role:"row",className:he(...ke,z.root,p),"aria-rowindex":M,"aria-selected":r,style:le},pe,x,{children:[Re,Ee>0&&T.jsx(Hpe,{width:Ee})]}))}),Upe=$y(Vpe);function Wpe({privateApiRef:e,props:t,children:n}){const r=u.useRef(e.current.getPublicApi());return T.jsx(qA.Provider,{value:t,children:T.jsx(YA.Provider,{value:e,children:T.jsx(KA.Provider,{value:r,children:n})})})}const Gpe=lde()&&window.localStorage.getItem("DEBUG")!=null,uf=()=>{},Kpe={debug:uf,info:uf,warn:uf,error:uf},YR=["debug","info","warn","error"];function QR(e,t,n=console){const r=YR.indexOf(t);if(r===-1)throw new Error(`MUI: Log level ${t} not recognized.`);return YR.reduce((i,s,a)=>(a>=r?i[s]=(...c)=>{const[d,...p]=c;n[s](`MUI: ${e} - ${d}`,...p)}:i[s]=uf,i),{})}const qpe=(e,t)=>{const n=u.useCallback(r=>Gpe?QR(r,"debug",t.logger):t.logLevel?QR(r,t.logLevel.toString(),t.logger):Kpe,[t.logLevel,t.logger]);Lt(e,{getLogger:n},"private")};class pE{static create(t){return new pE(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}}class Ype{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()),i=Array.from(r.regular.keys());for(let s=o.length-1;s>=0;s-=1){const a=o[s];r.highPriority.has(a)&&a.apply(this,n)}for(let s=0;s<i.length;s+=1){const a=i[s];r.regular.has(a)&&a.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...i){r.removeListener(t,o),n.apply(r,i)})}}const L4=Symbol("mui.api_private"),Qpe=e=>e.isPropagationStopped!==void 0;let XR=0;function Xpe(e){var t;const n=(t=e.current)==null?void 0:t[L4];if(n)return n;const r={},o={state:r,store:pE.create(r),instanceId:{id:XR}};return XR+=1,o.getPublicApi=()=>e.current,o.register=(i,s)=>{Object.keys(s).forEach(a=>{const c=s[a],d=o[a];if((d==null?void 0:d.spying)===!0?d.target=c:o[a]=c,i==="public"){const p=e.current,h=p[a];(h==null?void 0:h.spying)===!0?h.target=c:p[a]=c}})},o.register("private",{caches:{},eventManager:new Ype}),o}function Jpe(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[L4]:e.current}}function Zpe(e,t){const n=u.useRef(),r=u.useRef();r.current||(r.current=Xpe(n)),n.current||(n.current=Jpe(r));const o=u.useCallback((...s)=>{const[a,c,d={}]=s;if(d.defaultMuiPrevented=!1,Qpe(d)&&d.isPropagationStopped())return;const p=t.signature===ps.DataGridPro?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(a,c,d,p)},[r,t.signature]),i=u.useCallback((s,a,c)=>{r.current.eventManager.on(s,a,c);const d=r.current;return()=>{d.eventManager.removeListener(s,a)}},[r]);return Lt(r,{subscribeEvent:i,publishEvent:o},"public"),u.useImperativeHandle(e,()=>n.current,[n]),u.useEffect(()=>{const s=r.current;return()=>{s.publishEvent("unmount")}},[r]),r}const ehe=(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})};function pp(e){return pp=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},pp(e)}function the(e,t){if(pp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(pp(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hp(e){var t=the(e,"string");return pp(t)==="symbol"?t:String(t)}const nhe=e=>{const t=u.useRef({}),n=u.useRef(!1),r=u.useCallback(p=>{n.current||!p||(n.current=!0,Object.values(p.appliers).forEach(h=>{h()}),n.current=!1)},[]),o=u.useCallback((p,h,m)=>{t.current[p]||(t.current[p]={processors:new Map,appliers:{}});const g=t.current[p];return g.processors.get(h)!==m&&(g.processors.set(h,m),r(g)),()=>{t.current[p].processors.set(h,null)}},[r]),i=u.useCallback((p,h,m)=>(t.current[p]||(t.current[p]={processors:new Map,appliers:{}}),t.current[p].appliers[h]=m,()=>{const g=t.current[p].appliers,y=ne(g,[h].map(hp));t.current[p].appliers=y}),[]),s=u.useCallback(p=>{const h=t.current[p];r(h)},[r]),a=u.useCallback((...p)=>{const[h,m,g]=p;return t.current[h]?Array.from(t.current[h].processors.values()).reduce((v,E)=>E?E(v,g):v,m):m},[]),c={registerPipeProcessor:o,registerPipeApplier:i,requestPipeProcessorsApplication:s},d={unstable_applyPipeProcessors:a};Lt(e,c,"private"),Lt(e,d,"public")},ir=(e,t,n)=>{const r=u.useRef(),o=u.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=u.useCallback(()=>{r.current=e.current.registerPipeProcessor(t,o.current,n)},[e,n,t]);Np(()=>{i()});const s=u.useRef(!0);u.useEffect(()=>(s.current?s.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},hE=(e,t,n)=>{const r=u.useRef(),o=u.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=u.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);Np(()=>{i()});const s=u.useRef(!0);u.useEffect(()=>(s.current?s.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},Ug=(e,t,n,r)=>{const o=u.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);Np(()=>{o()});const i=u.useRef(!0);u.useEffect(()=>{i.current?i.current=!1:o()},[o])},Ja="none",JR={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},rhe=e=>{const t=u.useRef(new Map),n=u.useRef({}),r=u.useCallback((c,d,p)=>{const h=()=>{const y=n.current[d],v=ne(y,[c].map(hp));n.current[d]=v};n.current[d]||(n.current[d]={});const m=n.current[d],g=m[c];return m[c]=p,!g||g===p||c===e.current.getActiveStrategy(JR[d])&&e.current.publishEvent("activeStrategyProcessorChange",d),h},[e]),o=u.useCallback((c,d)=>{const p=e.current.getActiveStrategy(JR[c]);if(p==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const h=n.current[c];if(!h||!h[p])throw new Error(`No processor found for processor "${c}" on strategy "${p}"`);const m=h[p];return m(d)},[e]),i=u.useCallback(c=>{var d;const h=Array.from(t.current.entries()).find(([,m])=>m.group!==c?!1:m.isAvailable());return(d=h==null?void 0:h[0])!=null?d:Ja},[]),s=u.useCallback((c,d,p)=>{t.current.set(d,{group:c,isAvailable:p}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Lt(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:i,setStrategyAvailability:s},"private")},ohe=(e,t)=>{const n=u.useRef({}),[,r]=u.useState(),o=u.useCallback(p=>{n.current[p.stateId]=p},[]),i=u.useCallback((p,h)=>{let m;if(y4(p)?m=p(e.current.state):m=p,e.current.state===m)return!1;let g=!1;const y=[];if(Object.keys(n.current).forEach(v=>{const E=n.current[v],w=E.stateSelector(e.current.state,e.current.instanceId),C=E.stateSelector(m,e.current.instanceId);C!==w&&(y.push({stateId:E.stateId,hasPropChanged:C!==E.propModel}),E.propModel!==void 0&&C!==E.propModel&&(g=!0))}),y.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${y[0].stateId}, therefore, you're not allowed to update ${y.map(v=>v.stateId).join(", ")} in the same transaction.`);if(g||(e.current.state=m,e.current.publishEvent&&e.current.publishEvent("stateChange",m),e.current.store.update(m)),y.length===1){const{stateId:v,hasPropChanged:E}=y[0],w=n.current[v],C=w.stateSelector(m,e.current.instanceId);if(w.propOnChange&&E){const x=t.signature===ps.DataGridPro?{api:e.current,reason:h}:{reason:h};w.propOnChange(C,x)}g||e.current.publishEvent(w.changeEvent,C,{reason:h})}return!g},[e,t.signature]),s=u.useCallback((p,h,m)=>e.current.setState(g=>S({},g,{[p]:h(g[p])}),m),[e]),a=u.useCallback(()=>r(()=>e.current.state),[e]),c={setState:i,forceUpdate:a},d={updateControlState:s,registerControlState:o};Lt(e,c,"public"),Lt(e,d,"private")},ihe=(e,t)=>{const n=Zpe(e,t);return qpe(n,t),ohe(n,t),nhe(n),rhe(n),ehe(n,t),n},xo=(e,t,n)=>{const r=u.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)},she=/(\d+)-(\d+)-(\d+)/,lhe=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function Fc(e,t,n,r){if(!e.value)return null;const[o,i,s,a,c]=e.value.match(n?lhe:she).slice(1).map(Number),d=new Date(o,i-1,s,a||0,c||0).getTime();return p=>{if(!p)return!1;if(r)return t(p.getTime(),d);const m=new Date(p).setHours(n?p.getHours():0,n?p.getMinutes():0,0,0);return t(m,d)}}const A4=e=>zp([{value:"is",getApplyFilterFnV7:t=>Fc(t,(n,r)=>n===r,e),InputComponent:Oc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFnV7:t=>Fc(t,(n,r)=>n!==r,e),InputComponent:Oc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFnV7:t=>Fc(t,(n,r)=>n>r,e),InputComponent:Oc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFnV7:t=>Fc(t,(n,r)=>n>=r,e),InputComponent:Oc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFnV7:t=>Fc(t,(n,r)=>n<r,e,!e),InputComponent:Oc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFnV7:t=>Fc(t,(n,r)=>n<=r,e),InputComponent:Oc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!=null,requiresFilterValue:!1}]);function D4({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(`
333
+ `))}function ahe({value:e,field:t,id:n}){return e?(D4({value:e,columnType:"date",rowId:n,field:t}),e.toLocaleDateString()):""}function che({value:e,field:t,id:n}){return e?(D4({value:e,columnType:"dateTime",rowId:n,field:t}),e.toLocaleString()):""}const uhe=S({},Jl,{type:"date",sortComparator:k4,valueFormatter:ahe,filterOperators:A4(),renderEditCell:u4,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,pastedValueParser:e=>new Date(e)}),dhe=S({},Jl,{type:"dateTime",sortComparator:k4,valueFormatter:che,filterOperators:A4(!0),renderEditCell:u4,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,pastedValueParser:e=>new Date(e)}),xl=e=>e==null?null:Number(e),ZR=Bp(e=>e==null||Number.isNaN(e)||e===""?null:t=>xl(t)===xl(e)),fhe=()=>zp([{value:"=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>xl(t)===e.value,InputComponent:ns,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>xl(t)!==e.value,InputComponent:ns,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:xl(t)>e.value,InputComponent:ns,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:xl(t)>=e.value,InputComponent:ns,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:xl(t)<e.value,InputComponent:ns,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:xl(t)<=e.value,InputComponent:ns,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:T4,InputComponentProps:{type:"number"}}]),phe=S({},Jl,{type:"number",align:"right",headerAlign:"right",sortComparator:I4,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>sde(e)?e.toLocaleString():e||"",filterOperators:fhe(),getApplyQuickFilterFn:O4(ZR),getApplyQuickFilterFnV7:ZR}),Lc=e=>e==null||!aE(e)?e:e.value,hhe=()=>zp([{value:"is",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>Lc(t)===Lc(e.value),InputComponent:GR},{value:"not",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>Lc(t)!==Lc(e.value),InputComponent:GR},{value:"isAnyOf",getApplyFilterFnV7:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(Lc);return n=>t.includes(Lc(n))},InputComponent:mpe}]),mhe=e=>typeof e[0]=="object",ghe=e=>aE(e)?e.value:e,vhe=e=>aE(e)?e.label:String(e),yhe=S({},Jl,{type:"singleSelect",getOptionLabel:vhe,getOptionValue:ghe,valueFormatter(e){const{id:t,field:n,value:r,api:o}=e,i=e.api.getColumn(n);if(!Fa(i))return"";let s;if(typeof i.valueOptions=="function"?s=i.valueOptions({id:t,row:t?o.getRow(t):null,field:n}):s=i.valueOptions,r==null)return"";if(!s)return r;if(!mhe(s))return i.getOptionLabel(r);const a=s.find(c=>i.getOptionValue(c)===r);return a?i.getOptionLabel(a):""},renderEditCell:lue,filterOperators:hhe(),pastedValueParser:(e,t)=>{const n=t.colDef,r=n.valueOptions,o=typeof r=="function"?r({field:n.field}):r||[],i=n.getOptionValue;if(o.find(a=>i(a)===e))return e}}),N4="__default__",bhe=()=>({string:Jl,number:phe,date:uhe,dateTime:dhe,boolean:F4,singleSelect:yhe,[Ry]:Bpe,[N4]:Jl});function Xw(e,t){if(typeof e=="string"){const n=e.replace(/"/g,'""');return[t,`
334
+ `,"\r"].some(r=>n.includes(r))?`"${n}"`:n}return e}const B4=(e,t)=>{const{delimiterCharacter:n,ignoreValueFormatter:r}=t;let o;if(r){var i;const a=e.colDef.type;if(a==="number")o=String(e.value);else if(a==="date"||a==="dateTime"){var s;o=(s=e.value)==null?void 0:s.toISOString()}else typeof((i=e.value)==null?void 0:i.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return Xw(o,n)};Cs(["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 Jw{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.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const whe=({id:e,columns:t,getCellParams:n,delimiterCharacter:r,ignoreValueFormatter:o})=>{const i=new Jw({delimiterCharacter:r});return t.forEach(s=>{const a=n(e,s.field);i.addValue(B4(a,{delimiterCharacter:r,ignoreValueFormatter:o}))}),i.getRowString()};function Che(e){const{columns:t,rowIds:n,delimiterCharacter:r,includeHeaders:o,includeColumnGroupsHeaders:i,ignoreValueFormatter:s,apiRef:a}=e,c=n.reduce((g,y)=>`${g}${whe({id:y,columns:t,getCellParams:a.current.getCellParams,delimiterCharacter:r,ignoreValueFormatter:s})}\r
335
+ `,"").trim();if(!o)return c;const d=t.filter(g=>g.field!==jp.field),p=[];if(i){const g=a.current.unstable_getAllGroupDetails();let y=0;const v=d.reduce((E,w)=>{const C=a.current.unstable_getColumnGroupPath(w.field);return E[w.field]=C,y=Math.max(y,C.length),E},{});for(let E=0;E<y;E+=1){const w=new Jw({delimiterCharacter:r,sanitizeCellValue:Xw});p.push(w),d.forEach(C=>{const x=(v[C.field]||[])[E],P=g[x];w.addValue(P?P.headerName||P.groupId:"")})}}const h=new Jw({delimiterCharacter:r,sanitizeCellValue:Xw});return d.forEach(g=>{h.addValue(g.headerName||g.field)}),p.push(h),`${`${p.map(g=>g.getRowString()).join(`\r
336
+ `)}\r
337
+ `}${c}`.trim()}function eM(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 xhe(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{eM(e)}):eM(e)}function She(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const Ehe=(e,t)=>{const n=t.unstable_ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,i=u.useCallback(s=>{if(!((s.ctrlKey||s.metaKey)&&s.key==="c")||She(s.target))return;let a="";if(e.current.getSelectedRows().size>0)a=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o});else{const d=ri(e);if(d){const p=e.current.getCellParams(d.id,d.field);a=B4(p,{delimiterCharacter:o,ignoreValueFormatter:r})}}a=e.current.unstable_applyPipeProcessors("clipboardCopy",a),a&&(xhe(a),e.current.publishEvent("clipboardCopy",a))},[e,r,o]);ude(e,e.current.rootElementRef,"keydown",i),xn(e,"clipboardCopy",t.onClipboardCopy)},Phe=e=>S({},e,{columnMenu:{open:!1}}),Ihe=e=>{const t=Ar(e,"useGridColumnMenu"),n=u.useCallback(s=>{e.current.setState(c=>c.columnMenu.open&&c.columnMenu.field===s?c:(t.debug("Opening Column Menu"),S({},c,{columnMenu:{open:!0,field:s}})))&&(e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=u.useCallback(()=>{const s=Kw(e.current.state);if(s.field){const c=ld(e),d=Di(e),p=Hs(e);let h=s.field;if(c[h]||(h=p[0]),d[h]===!1){const m=p.filter(y=>y===h?!0:d[y]!==!1),g=m.indexOf(h);h=m[g+1]||m[g-1]}e.current.setColumnHeaderFocus(h)}e.current.setState(c=>!c.columnMenu.open&&c.columnMenu.field===void 0?c:(t.debug("Hiding Column Menu"),S({},c,{columnMenu:S({},c.columnMenu,{open:!1,field:void 0})})))&&e.current.forceUpdate()},[e,t]),o=u.useCallback(s=>{t.debug("Toggle Column Menu");const a=Kw(e.current.state);!a.open||a.field!==s?n(s):r()},[e,t,n,r]);Lt(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),lt(e,"columnResizeStart",r),lt(e,"virtualScrollerWheel",e.current.hideColumnMenu),lt(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},z4=["maxWidth","minWidth","width","flex"];function khe({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(s=>s.field)),o={all:{},frozenFields:[],freeze:s=>{const a=o.all[s];a&&a.frozen!==!0&&(o.all[s].frozen=!0,o.frozenFields.push(s))}};function i(){if(o.frozenFields.length===r.size)return;const s={min:{},max:{}};let a=e,c=t,d=0;o.frozenFields.forEach(p=>{a-=o.all[p].computedWidth,c-=o.all[p].flex});for(let p=0;p<n.length;p+=1){const h=n[p];if(o.all[h.field]&&o.all[h.field].frozen===!0)continue;let g=a/c*h.flex;g<h.minWidth?(d+=h.minWidth-g,g=h.minWidth,s.min[h.field]=!0):g>h.maxWidth&&(d+=h.maxWidth-g,g=h.maxWidth,s.max[h.field]=!0),o.all[h.field]={frozen:!1,computedWidth:g,flex:h.flex}}d<0?Object.keys(s.max).forEach(p=>{o.freeze(p)}):d>0?Object.keys(s.min).forEach(p=>{o.freeze(p)}):n.forEach(({field:p})=>{o.freeze(p)}),i()}return i(),o.all}const j4=(e,t)=>{const n={};let r=0,o=0;const i=[];e.orderedFields.forEach(a=>{const c=S({},e.lookup[a]);if(e.columnVisibilityModel[a]===!1)c.computedWidth=0;else{let d;c.flex&&c.flex>0?(r+=c.flex,d=0,i.push(c)):d=Wu(c.width,c.minWidth,c.maxWidth),o+=d,c.computedWidth=d}n[a]=c});const s=Math.max(t-o,0);if(r>0&&t>0){const a=khe({initialFreeSpace:s,totalFlexUnits:r,flexColumns:i});Object.keys(a).forEach(c=>{n[c].computedWidth=a[c].computedWidth})}return S({},e,{lookup:n})},_he=(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 i={},s=[];for(let p=0;p<n.length;p+=1){const h=n[p];e.lookup[h]&&(i[h]=!0,s.push(h))}const a=s.length===0?e.orderedFields:[...s,...e.orderedFields.filter(p=>!i[p])],c=S({},e.lookup);for(let p=0;p<o.length;p+=1){const h=o[p],m=S({},c[h],{hasBeenResized:!0});Object.entries(r[h]).forEach(([g,y])=>{m[g]=y===-1?1/0:y}),c[h]=m}return S({},e,{orderedFields:a,lookup:c})},Uc=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,columnVisibilityModel:o=Di(e),keepOnlyColumnsToUpsert:i=!1})=>{var s,a,c,d;const p=!e.current.state.columns;let h;if(p)h={orderedFields:[],lookup:{},columnVisibilityModel:o};else{const v=Vu(e.current.state);h={orderedFields:i?[]:[...v.orderedFields],lookup:S({},v.lookup),columnVisibilityModel:o}}let m={};i&&!p&&(m=Object.keys(h.lookup).reduce((v,E)=>S({},v,{[E]:!1}),{})),t.forEach(v=>{const{field:E}=v;m[E]=!0;let w=h.lookup[E];if(w==null){let x=r[N4];v.type&&r[v.type]&&(x=r[v.type]),w=S({},x,{field:E,hasBeenResized:!1}),h.orderedFields.push(E)}else i&&h.orderedFields.push(E);let C=w.hasBeenResized;z4.forEach(x=>{v[x]!==void 0&&(C=!0,v[x]===-1&&(v[x]=1/0))}),h.lookup[E]=S({},w,v,{hasBeenResized:C})}),i&&!p&&Object.keys(h.lookup).forEach(v=>{m[v]||delete h.lookup[v]});const g=e.current.unstable_applyPipeProcessors("hydrateColumns",h),y=_he(g,n);return j4(y,(s=(a=(c=e.current).getRootDimensions)==null||(d=a.call(c))==null?void 0:d.viewportInnerSize.width)!=null?s:0)},tM=e=>t=>S({},t,{columns:e});function Zw({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let i=e;for(let s=n;s<r;s+=1)if(o[s]){const c=o[s].id,d=t.current.unstable_getCellColSpanInfo(c,e);d&&d.spannedByColSpan&&(i=d.leftVisibleCellIndex)}return i}function $he({firstColumnIndex:e,minColumnIndex:t,columnBuffer:n,firstRowToRender:r,lastRowToRender:o,apiRef:i,visibleRows:s}){const a=Math.max(e-n,t);return Zw({firstColumnToRender:a,apiRef:i,firstRowToRender:r,lastRowToRender:o,visibleRows:s})}function mE(e,t){const n=cd(e),r=Dp(e);return Math.floor(t*n)*((r!=null?r:0)+1)}const H4=bhe(),Rhe=(e,t,n)=>{var r,o,i,s,a;const c=Uc({apiRef:n,columnTypes:H4,columnsToUpsert:t.columns,initialState:(r=t.initialState)==null?void 0:r.columns,columnVisibilityModel:(o=(i=t.columnVisibilityModel)!=null?i:(s=t.initialState)==null||(a=s.columns)==null?void 0:a.columnVisibilityModel)!=null?o:{},keepOnlyColumnsToUpsert:!0});return S({},e,{columns:c})};function Mhe(e,t){var n,r;const o=Ar(e,"useGridColumns"),i=H4,s=u.useRef(t.columns),a=u.useRef(i);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:Di,changeEvent:"columnVisibilityModelChange"});const c=u.useCallback(M=>{o.debug("Updating columns state."),e.current.setState(tM(M)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",M.orderedFields)},[o,e]),d=u.useCallback(M=>ld(e)[M],[e]),p=u.useCallback(()=>fs(e),[e]),h=u.useCallback(()=>Tr(e),[e]),m=u.useCallback((M,L=!0)=>(L?Tr(e):fs(e)).findIndex(V=>V.field===M),[e]),g=u.useCallback(M=>{const L=m(M);return Uu(e)[L]},[e,m]),y=u.useCallback(M=>{Di(e)!==M&&(e.current.setState(z=>S({},z,{columns:Uc({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:M,keepOnlyColumnsToUpsert:!1})})),e.current.forceUpdate())},[e,i]),v=u.useCallback(M=>{const L=Uc({apiRef:e,columnTypes:i,columnsToUpsert:M,initialState:void 0,keepOnlyColumnsToUpsert:!1});c(L)},[e,c,i]),E=u.useCallback((M,L)=>{var z;const V=Di(e),D=(z=V[M])!=null?z:!0;if(L!==D){const H=S({},V,{[M]:L});e.current.setColumnVisibilityModel(H)}},[e]),w=u.useCallback(M=>Hs(e).findIndex(z=>z===M),[e]),C=u.useCallback((M,L)=>{const z=Hs(e),V=w(M);if(V===L)return;o.debug(`Moving column ${M} to index ${L}`);const D=[...z],H=D.splice(V,1)[0];D.splice(L,0,H),c(S({},Vu(e.current.state),{orderedFields:D}));const W={column:e.current.getColumn(M),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(M),oldIndex:V};e.current.publishEvent("columnIndexChange",W)},[e,o,c,w]),x=u.useCallback((M,L)=>{o.debug(`Updating column ${M} width to ${L}`);const z=e.current.getColumn(M),V=S({},z,{width:L});e.current.updateColumns([V]),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(M),colDef:V,width:L})},[e,o]),P={getColumn:d,getAllColumns:p,getColumnIndex:m,getColumnPosition:g,getVisibleColumns:h,getColumnIndexRelativeToVisibleColumns:w,updateColumns:v,setColumnVisibilityModel:y,setColumnVisibility:E,setColumnWidth:x},_={setColumnIndex:C};Lt(e,P,"public"),Lt(e,_,t.signature===ps.DataGrid?"private":"public");const k=u.useCallback((M,L)=>{var z,V,D;const H={},W=Di(e);(!L.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((z=(V=t.initialState)==null||(D=V.columns)==null?void 0:D.columnVisibilityModel)!=null?z:{}).length>0||Object.keys(W).length>0)&&(H.columnVisibilityModel=W),H.orderedFields=Hs(e);const Y=fs(e),ie={};return Y.forEach(re=>{if(re.hasBeenResized){const de={};z4.forEach(se=>{let le=re[se];le===1/0&&(le=-1),de[se]=le}),ie[re.field]=de}}),Object.keys(ie).length>0&&(H.dimensions=ie),S({},M,{columns:H})},[e,t.columnVisibilityModel,(n=t.initialState)==null?void 0:n.columns]),I=u.useCallback((M,L)=>{var z;const V=(z=L.stateToRestore.columns)==null?void 0:z.columnVisibilityModel,D=L.stateToRestore.columns;if(V==null&&D==null)return M;const H=Uc({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:D,columnVisibilityModel:V,keepOnlyColumnsToUpsert:!1});return e.current.setState(tM(H)),D!=null&&e.current.publishEvent("columnsChange",H.orderedFields),M},[e,i]),R=u.useCallback((M,L)=>{if(L===Xa.columns){var z;const V=t.slots.columnsPanel;return T.jsx(V,S({},(z=t.slotProps)==null?void 0:z.columnsPanel))}return M},[t.slots.columnsPanel,(r=t.slotProps)==null?void 0:r.columnsPanel]),F=u.useCallback(M=>t.disableColumnSelector?M:[...M,"columnMenuColumnsItem"],[t.disableColumnSelector]);ir(e,"columnMenu",F),ir(e,"exportState",k),ir(e,"restoreState",I),ir(e,"preferencePanel",R);const A=u.useRef(null);lt(e,"viewportInnerSizeChange",M=>{A.current!==M.width&&(A.current=M.width,c(j4(Vu(e.current.state),M.width)))});const N=u.useCallback(()=>{o.info("Columns pipe processing have changed, regenerating the columns");const M=Uc({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});c(M)},[e,o,c,i]);hE(e,"hydrateColumns",N);const B=u.useRef(!0);u.useEffect(()=>{if(B.current){B.current=!1;return}if(o.info(`GridColumns have changed, new length ${t.columns.length}`),s.current===t.columns&&a.current===i)return;const M=Uc({apiRef:e,columnTypes:i,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});s.current=t.columns,a.current=i,c(M)},[o,e,c,t.columns,i]),u.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,o,t.columnVisibilityModel])}const The=.7,Ohe=1.3,V4={compact:The,comfortable:Ohe,standard:1},Fhe=(e,t)=>S({},e,{density:{value:t.density,factor:V4[t.density]}}),Lhe=(e,t)=>{const n=Ar(e,"useDensity"),r=u.useCallback(i=>{n.debug(`Set grid density to ${i}`),e.current.setState(s=>{const a=oE(s),c={value:i,factor:V4[i]};return La(a,c)?s:S({},s,{density:c})}),e.current.forceUpdate()},[n,e]);u.useEffect(()=>{e.current.setDensity(t.density)},[e,t.density]),Lt(e,{setDensity:r},"public")};function Ahe(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),i=document.createElement("a");i.href=o,i.download=r,i.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI: exportAs not supported")}const U4=({apiRef:e,options:t})=>{const n=fs(e);return t.fields?t.fields.map(o=>n.find(i=>i.field===o)).filter(o=>!!o):(t.allColumns?n:Tr(e)).filter(o=>!o.disableExport)},Dhe=({apiRef:e})=>{var t,n;const r=tce(e),o=Fi(e),i=e.current.getSelectedRows(),s=r.filter(p=>o[p].type!=="footer"),a=ad(e),c=(a==null||(t=a.top)==null?void 0:t.map(p=>p.id))||[],d=(a==null||(n=a.bottom)==null?void 0:n.map(p=>p.id))||[];return s.unshift(...c),s.push(...d),i.size>0?s.filter(p=>i.has(p)):s},Nhe=(e,t)=>{const n=Ar(e,"useGridCsvExport"),r=t.unstable_ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,i=u.useCallback((d={})=>{var p,h,m;n.debug("Get data as CSV");const g=U4({apiRef:e,options:d}),v=((p=d.getRowsToExport)!=null?p:Dhe)({apiRef:e});return Che({columns:g,rowIds:v,delimiterCharacter:d.delimiter||",",includeHeaders:(h=d.includeHeaders)!=null?h:!0,includeColumnGroupsHeaders:(m=d.includeColumnGroupsHeaders)!=null?m:!0,ignoreValueFormatter:o,apiRef:e})},[n,e,o]),s=u.useCallback(d=>{n.debug("Export data as CSV");const p=i(d),h=new Blob([d!=null&&d.utf8WithBom?new Uint8Array([239,187,191]):"",p],{type:"text/csv"});Ahe(h,"csv",d==null?void 0:d.fileName)},[n,i]);Lt(e,{getDataAsCsv:i,exportDataAsCsv:s},"public");const c=u.useCallback((d,p)=>{var h;return(h=p.csvOptions)!=null&&h.disableToolbarButton?d:[...d,{component:T.jsx(ype,{options:p.csvOptions}),componentName:"csvExport"}]},[]);ir(e,"exportMenu",c)};function Bhe(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function zhe(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 jhe=(e,t)=>{const n=Ar(e,"useGridPrintExport"),r=u.useRef(null),o=u.useRef(null),i=u.useRef({});u.useEffect(()=>{r.current=vn(e.current.rootElementRef.current)},[e]);const s=u.useCallback((m,g)=>new Promise(y=>{if(!m&&!g){y();return}const v=U4({apiRef:e,options:{fields:m,allColumns:g}}).map(C=>C.field),E=fs(e),w={};E.forEach(C=>{w[C.field]=v.includes(C.field)}),e.current.setColumnVisibilityModel(w),y()}),[e]),a=u.useCallback((m,g)=>{var y,v;const E=S({copyStyles:!0,hideToolbar:!1,hideFooter:!1},g),w=m.contentDocument;if(!w)return;const C=fp(e.current.state),x=e.current.rootElementRef.current,P=x.cloneNode(!0),_=P.querySelector(`.${X.main}`);_.style.overflow="visible",P.style.contain="size";const I=P.querySelector(`.${X.columnHeaders}`).querySelector(`.${X.columnHeadersInner}`);I.style.width="100%";let R=((y=x.querySelector(`.${X.toolbarContainer}`))==null?void 0:y.offsetHeight)||0,F=((v=x.querySelector(`.${X.footerContainer}`))==null?void 0:v.offsetHeight)||0;if(E.hideToolbar){var A;(A=P.querySelector(`.${X.toolbarContainer}`))==null||A.remove(),R=0}if(E.hideFooter){var O;(O=P.querySelector(`.${X.footerContainer}`))==null||O.remove(),F=0}P.style.height=`${C.currentPageTotalHeight+mE(e,t.columnHeaderHeight)+R+F}px`,P.style.boxSizing="content-box";const N=document.createElement("div");N.appendChild(P),w.body.innerHTML=N.innerHTML;const B=typeof E.pageStyle=="function"?E.pageStyle():E.pageStyle;if(typeof B=="string"){const M=w.createElement("style");M.appendChild(w.createTextNode(B)),w.head.appendChild(M)}if(E.bodyClassName&&w.body.classList.add(...E.bodyClassName.split(" ")),E.copyStyles){const M=x.getRootNode(),z=(M.constructor.name==="ShadowRoot"?M:r.current).querySelectorAll("style, link[rel='stylesheet']");for(let V=0;V<z.length;V+=1){const D=z[V];if(D.tagName==="STYLE"){const H=w.createElement(D.tagName),W=D.sheet;if(W){let K="";for(let Y=0;Y<W.cssRules.length;Y+=1)typeof W.cssRules[Y].cssText=="string"&&(K+=`${W.cssRules[Y].cssText}\r
338
+ `);H.appendChild(w.createTextNode(K)),w.head.appendChild(H)}}else if(D.getAttribute("href")){const H=w.createElement(D.tagName);for(let W=0;W<D.attributes.length;W+=1){const K=D.attributes[W];K&&H.setAttribute(K.nodeName,K.nodeValue||"")}w.head.appendChild(H)}}}m.contentWindow.print()},[e,r,t.columnHeaderHeight]),c=u.useCallback(m=>{var g,y;r.current.body.removeChild(m),e.current.restoreState(o.current||{}),(g=o.current)!=null&&(y=g.columns)!=null&&y.columnVisibilityModel||e.current.setColumnVisibilityModel(i.current),e.current.unstable_enableVirtualization(),o.current=null,i.current={}},[e]),p={exportDataAsPrint:u.useCallback(m=>ct(void 0,null,function*(){if(n.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");if(o.current=e.current.exportState(),i.current=Di(e),t.pagination){const y=t4(e);e.current.setPageSize(y)}yield s(m==null?void 0:m.fields,m==null?void 0:m.allColumns),e.current.unstable_disableVirtualization(),yield Bhe();const g=zhe(m==null?void 0:m.fileName);g.onload=()=>{a(g,m),g.contentWindow.matchMedia("print").addEventListener("change",v=>{v.matches===!1&&c(g)})},r.current.body.appendChild(g)}),[t,n,e,a,c,s])};Lt(e,p,"public");const h=u.useCallback((m,g)=>{var y;return(y=g.printOptions)!=null&&y.disableToolbarButton?m:[...m,{component:T.jsx(bpe,{options:g.printOptions}),componentName:"printExport"}]},[]);ir(e,"exportMenu",h)},eC=(e,t)=>{const n=S({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=ld(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},Hhe=Cs(["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"),Vhe=Cs("MUI: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),Uhe=Cs("MUI: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),W4=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(Hhe(),o=[e.items[0]]):o=e.items;const i=r&&o.some(a=>a.id==null),s=o.some(a=>a.operator==null);return i&&Vhe(),s&&Uhe(),s||i?S({},e,{items:o.map(a=>eC(a,n))}):e.items!==o?S({},e,{items:o}):e},nM=(e,t,n)=>r=>S({},r,{filterModel:W4(e,t,n)}),G4=(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 h=n.valueParser;r=Array.isArray(e.value)?(o=e.value)==null?void 0:o.map(m=>h(m)):h(e.value)}else r=e.value;const i=S({},e,{value:r}),s=n.filterOperators;if(!(s!=null&&s.length))throw new Error(`MUI: No filter operators found for column '${n.field}'.`);const a=s.find(h=>h.value===i.operator);if(!a)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${i.operator}'.`);const c=!Vg(a.getApplyFilterFn),d=!Vg(a.getApplyFilterFnV7);if(a.getApplyFilterFnV7&&!(c&&!d)){const h=a.getApplyFilterFnV7(i,n);return typeof h!="function"?null:{v7:!0,item:i,fn:m=>{const g=t.current.getRowValue(m,n);return h(g,m,n,t)}}}const p=a.getApplyFilterFn(i,n);return typeof p!="function"?null:{v7:!1,item:i,fn:h=>{const m=t.current.getCellParams(h,i.field);Qw.current=t;const g=p(m);return Qw.current=null,g}}},Whe=(e,t,n)=>{const{items:r}=t,o=r.map(i=>G4(i,n)).filter(i=>!!i);return o.length===0?null:(i,s)=>{const a={};for(let c=0;c<o.length;c+=1){const d=o[c];(!s||s(d.item.field))&&(a[d.item.id]=d.v7?d.fn(i):d.fn(e?e(i):i.id))}return a}},Ghe=(e,t,n)=>{var r,o,i;const s=(r=(o=t.quickFilterValues)==null?void 0:o.filter(Boolean))!=null?r:[];if(s.length===0)return null;const c=((i=t.quickFilterExcludeHiddenColumns)!=null?i:!1)?xy(n):Hs(n),d=[];return c.forEach(p=>{const h=n.current.getColumn(p),m=h==null?void 0:h.getApplyQuickFilterFn,g=h==null?void 0:h.getApplyQuickFilterFnV7,y=!Vg(m),v=!Vg(g);g&&!(y&&!v)?d.push({column:h,appliers:s.map(E=>({v7:!0,fn:g(E,h,n)}))}):m&&d.push({column:h,appliers:s.map(E=>({v7:!1,fn:m(E,h,n)}))})}),function(h,m){const g={},y={};e:for(let E=0;E<s.length;E+=1){const w=s[E];for(let C=0;C<d.length;C+=1){const{column:x,appliers:P}=d[C],{field:_}=x;if(m&&!m(_))continue;const k=P[E],I=n.current.getRowValue(h,x);if(k.fn!==null)if(k.v7){if(k.fn(I,h,x,n)){g[w]=!0;continue e}}else{var v;const R=(v=y[_])!=null?v:n.current.getCellParams(e?e(h):h.id,_);if(y[_]=R,k.fn(R)){g[w]=!0;continue e}}}g[w]=!1}return g}},Khe=(e,t,n)=>{const r=Whe(e,t,n),o=Ghe(e,t,n);return function(s,a,c){var d,p;c.passingFilterItems=(d=r==null?void 0:r(s,a))!=null?d:null,c.passingQuickFilterValues=(p=o==null?void 0:o(s,a))!=null?p:null}},rM=e=>e!=null,qhe=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>G4(r,t)!==null)),e.cleanedFilterItems),Yhe=(e,t,n,r,o)=>{const i=qhe(o,r,n.items),s=e.filter(rM),a=t.filter(rM);if(s.length>0){var c;const p=m=>s.some(g=>g[m.id]);if(((c=n.logicOperator)!=null?c:up().logicOperator)===io.And){if(!i.every(p))return!1}else if(!i.some(p))return!1}if(a.length>0&&n.quickFilterValues!=null){var d;const p=m=>a.some(g=>g[m]);if(((d=n.quickFilterLogicOperator)!=null?d:up().quickFilterLogicOperator)===io.And){if(!n.quickFilterValues.every(p))return!1}else if(!n.quickFilterValues.some(p))return!1}return!0},Qhe=(e,t,n)=>{var r,o,i,s;const a=(r=(o=t.filterModel)!=null?o:(i=t.initialState)==null||(s=i.filter)==null?void 0:s.filterModel)!=null?r:up();return S({},e,{filter:{filterModel:W4(a,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},Xhe=e=>e.filteredRowsLookup;function oM(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}const Jhe=(e,t)=>{var n,r,o;const i=Ar(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:wr,changeEvent:"filterModelChange"});const s=u.useCallback(()=>{e.current.setState(N=>{const B=wr(N,e.current.instanceId),M=t.filterMode==="client"?Khe(t.getRowId,B,e):null,L=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:M,filterModel:B!=null?B:up()}),z=S({},N,{filter:S({},N.filter,L)}),V=oM(e,z);return S({},z,{visibleRowsLookup:V})}),e.current.publishEvent("filteredRowsSet")},[e,t.filterMode,t.getRowId]),a=u.useCallback((N,B)=>B==null||B.filterable===!1||t.disableColumnFilter?N:[...N,"columnMenuFilterItem"],[t.disableColumnFilter]),c=u.useCallback(()=>{s(),e.current.forceUpdate()},[e,s]),d=u.useCallback(N=>{const B=wr(e),M=[...B.items],L=M.findIndex(z=>z.id===N.id);L===-1?M.push(N):M[L]=N,e.current.setFilterModel(S({},B,{items:M}),"upsertFilterItem")},[e]),p=u.useCallback(N=>{const B=wr(e),M=[...B.items];N.forEach(L=>{const z=N.findIndex(V=>V.id===L.id);z===-1?M.push(L):M[z]=L}),e.current.setFilterModel(S({},B,{items:N}),"upsertFilterItems")},[e]),h=u.useCallback(N=>{const B=wr(e),M=B.items.filter(L=>L.id!==N.id);M.length!==B.items.length&&e.current.setFilterModel(S({},B,{items:M}),"deleteFilterItem")},[e]),m=u.useCallback((N,B,M)=>{if(i.debug("Displaying filter panel"),N){const L=wr(e),z=L.items.filter(W=>{var K;if(W.value!==void 0)return!(Array.isArray(W.value)&&W.value.length===0);const ie=(K=e.current.getColumn(W.field).filterOperators)==null?void 0:K.find(de=>de.value===W.operator);return!(typeof(ie==null?void 0:ie.requiresFilterValue)=="undefined"?!0:ie==null?void 0:ie.requiresFilterValue)});let V;const D=z.find(W=>W.field===N),H=e.current.getColumn(N);D?V=z:t.disableMultipleColumnsFiltering?V=[eC({field:N,operator:H.filterOperators[0].value},e)]:V=[...z,eC({field:N,operator:H.filterOperators[0].value},e)],e.current.setFilterModel(S({},L,{items:V}))}e.current.showPreferences(Xa.filters,B,M)},[e,i,t.disableMultipleColumnsFiltering]),g=u.useCallback(()=>{i.debug("Hiding filter panel"),e.current.hidePreferences()},[e,i]),y=u.useCallback(N=>{const B=wr(e);B.logicOperator!==N&&e.current.setFilterModel(S({},B,{logicOperator:N}),"changeLogicOperator")},[e]),v=u.useCallback(N=>{const B=wr(e);La(B.quickFilterValues,N)||e.current.setFilterModel(S({},B,{quickFilterValues:[...N]}))},[e]),E=u.useCallback((N,B)=>{wr(e)!==N&&(i.debug("Setting filter model"),e.current.updateControlState("filter",nM(N,t.disableMultipleColumnsFiltering,e),B),e.current.unstable_applyFilters())},[e,i,t.disableMultipleColumnsFiltering]);Lt(e,{setFilterLogicOperator:y,unstable_applyFilters:c,deleteFilterItem:h,upsertFilterItem:d,upsertFilterItems:p,setFilterModel:E,showFilterPanel:m,hideFilterPanel:g,setQuickFilterValues:v},"public");const C=u.useCallback((N,B)=>{var M,L;const z=wr(e);return!B.exportOnlyDirtyModels||t.filterModel!=null||((M=t.initialState)==null||(L=M.filter)==null?void 0:L.filterModel)!=null||!La(z,up())?S({},N,{filter:{filterModel:z}}):N},[e,t.filterModel,(n=t.initialState)==null||(r=n.filter)==null?void 0:r.filterModel]),x=u.useCallback((N,B)=>{var M;const L=(M=B.stateToRestore.filter)==null?void 0:M.filterModel;return L==null?N:(e.current.updateControlState("filter",nM(L,t.disableMultipleColumnsFiltering,e),"restoreState"),S({},N,{callbacks:[...N.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),P=u.useCallback((N,B)=>{if(B===Xa.filters){var M;const L=t.slots.filterPanel;return T.jsx(L,S({},(M=t.slotProps)==null?void 0:M.filterPanel))}return N},[t.slots.filterPanel,(o=t.slotProps)==null?void 0:o.filterPanel]),_=e.current.state.rows.dataRowIdToModelLookup,k=u.useMemo(()=>Object.values(_),[_]),{getRowId:I}=t,R=u.useCallback(N=>{if(t.filterMode!=="client"||!N.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const B=Ml(e),M={},{isRowMatchingFilters:L}=N,z={},V={passingFilterItems:null,passingQuickFilterValues:null};for(let W=0;W<k.length;W+=1){const K=k[W],Y=I?I(K):K.id;L(K,void 0,V);const ie=Yhe([V.passingFilterItems],[V.passingQuickFilterValues],N.filterModel,e,z);M[Y]=ie}const D="auto-generated-group-footer-root";return B[D]&&(M[D]=!0),{filteredRowsLookup:M,filteredDescendantCountLookup:{}}},[e,k,t.filterMode,I]);ir(e,"columnMenu",a),ir(e,"exportState",C),ir(e,"restoreState",x),ir(e,"preferencePanel",P),Ug(e,Ja,"filtering",R),Ug(e,Ja,"visibleRowsLookupCreation",Xhe);const F=u.useCallback(()=>{i.debug("onColUpdated - GridColumns changed, applying filters");const N=wr(e),B=Gae(e),M=N.items.filter(L=>L.field&&B[L.field]);M.length<N.items.length&&e.current.setFilterModel(S({},N,{items:M}))},[e,i]),A=u.useCallback(N=>{N==="filtering"&&e.current.unstable_applyFilters()},[e]),O=u.useCallback(()=>{e.current.setState(N=>S({},N,{visibleRowsLookup:oM(e,N)})),e.current.forceUpdate()},[e]);lt(e,"rowsSet",s),lt(e,"columnsChange",F),lt(e,"activeStrategyProcessorChange",A),lt(e,"rowExpansionChange",O),lt(e,"columnVisibilityModelChange",()=>{const N=wr(e);N.quickFilterValues&&N.quickFilterExcludeHiddenColumns&&e.current.unstable_applyFilters()}),Np(()=>{e.current.unstable_applyFilters()}),an(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,i,t.filterModel])},Zhe=e=>S({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),eme=(e,t)=>{const n=Ar(e,"useGridFocus"),r=u.useRef(null),o=u.useCallback((k,I)=>{k&&e.current.getRow(k.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(k.id,k.field),I)},[e]),i=u.useCallback((k,I)=>{const R=ri(e);(R==null?void 0:R.id)===k&&(R==null?void 0:R.field)===I||(e.current.setState(F=>(n.debug(`Focusing on cell with id=${k} and field=${I}`),S({},F,{tabIndex:{cell:{id:k,field:I},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:k,field:I},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(k)&&(R&&o(R,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(k,I))))},[e,n,o]),s=u.useCallback((k,I={})=>{const R=ri(e);o(R,I),e.current.setState(F=>(n.debug(`Focusing on column header with colIndex=${k}`),S({},F,{tabIndex:{columnHeader:{field:k},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:k},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),a=u.useCallback((k,I={})=>{const R=ri(e);o(R,I),e.current.setState(F=>(n.debug(`Focusing on column header filter with colIndex=${k}`),S({},F,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:k},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:k},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),c=u.useCallback((k,I,R={})=>{const F=ri(e);F&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(F.id,F.field),R),e.current.setState(A=>S({},A,{tabIndex:{columnGroupHeader:{field:k,depth:I},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:k,depth:I},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),d=u.useCallback(()=>Ag(e),[e]),p=u.useCallback((k,I,R)=>{let F=e.current.getColumnIndex(I);const A=Tr(e),O=dE(e,{pagination:t.pagination,paginationMode:t.paginationMode}),N=ad(e),B=[].concat(N.top||[],O.rows,N.bottom||[]);let M=B.findIndex(D=>D.id===k);R==="right"?F+=1:R==="left"?F-=1:M+=1,F>=A.length?(M+=1,M<B.length&&(F=0)):F<0&&(M-=1,M>=0&&(F=A.length-1)),M=Wu(M,0,B.length-1);const L=B[M];if(!L)return;const z=e.current.unstable_getCellColSpanInfo(L.id,F);z&&z.spannedByColSpan&&(R==="left"||R==="below"?F=z.leftVisibleCellIndex:R==="right"&&(F=z.rightVisibleCellIndex)),F=Wu(F,0,A.length-1);const V=A[F];e.current.setCellFocus(L.id,V.field)},[e,t.pagination,t.paginationMode]),h=u.useCallback(({id:k,field:I})=>{e.current.setCellFocus(k,I)},[e]),m=u.useCallback((k,I)=>{I.key==="Enter"||I.key==="Tab"||I.key==="Shift"||jg(I.key)||e.current.setCellFocus(k.id,k.field)},[e]),g=u.useCallback(({field:k},I)=>{I.target===I.currentTarget&&e.current.setColumnHeaderFocus(k,I)},[e]),y=u.useCallback(({fields:k,depth:I},R)=>{if(R.target!==R.currentTarget)return;const F=Ag(e);F!==null&&F.depth===I&&k.includes(F.field)||e.current.setColumnGroupHeaderFocus(k[0],I,R)},[e]),v=u.useCallback((k,I)=>{var R;(R=I.relatedTarget)!=null&&R.className.includes(X.columnHeader)||(n.debug("Clearing focus"),e.current.setState(F=>S({},F,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),E=u.useCallback(k=>{r.current=k},[]),w=u.useCallback(k=>{const I=r.current;r.current=null;const R=ri(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:k,cell:I}))return;if(!R){I&&e.current.setCellFocus(I.id,I.field);return}if((I==null?void 0:I.id)===R.id&&(I==null?void 0:I.field)===R.field)return;const A=e.current.getCellElement(R.id,R.field);A!=null&&A.contains(k.target)||(I?e.current.setCellFocus(I.id,I.field):(e.current.setState(O=>S({},O,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),o(R,k)))},[e,o]),C=u.useCallback(k=>{if(k.cellMode==="view")return;const I=ri(e);((I==null?void 0:I.id)!==k.id||(I==null?void 0:I.field)!==k.field)&&e.current.setCellFocus(k.id,k.field)},[e]),x=u.useCallback(()=>{const k=ri(e);k&&!e.current.getRow(k.id)&&e.current.setState(I=>S({},I,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},[e]),P={setCellFocus:i,setColumnHeaderFocus:s,setColumnHeaderFilterFocus:a},_={moveFocusToRelativeCell:p,setColumnGroupHeaderFocus:c,getColumnGroupHeaderFocus:d};Lt(e,P,"public"),Lt(e,_,"private"),u.useEffect(()=>{const k=vn(e.current.rootElementRef.current);return k.addEventListener("mouseup",w),()=>{k.removeEventListener("mouseup",w)}},[e,w]),lt(e,"columnHeaderBlur",v),lt(e,"headerFilterBlur",v),lt(e,"cellDoubleClick",h),lt(e,"cellMouseDown",E),lt(e,"cellKeyDown",m),lt(e,"cellModeChange",C),lt(e,"columnHeaderFocus",g),lt(e,"columnGroupHeaderFocus",y),lt(e,"rowsSet",x)};function tme(e,t){const n=ad(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const rb=({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},ob=({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},nme=(e,t)=>{const n=Ar(e,"useGridKeyboardNavigation"),r=cc(e,t).rows,o=lr(),i=u.useMemo(()=>tme(e,r),[e,r]),s=t.signature!=="DataGrid"&&t.unstable_headerFilters,a=u.useCallback((w,C,x="left")=>{const P=sa(e),_=e.current.unstable_getCellColSpanInfo(C,w);_&&_.spannedByColSpan&&(x==="left"?w=_.leftVisibleCellIndex:x==="right"&&(w=_.rightVisibleCellIndex));const k=P.findIndex(R=>R.id===C);n.debug(`Navigating to cell row ${k}, col ${w}`),e.current.scrollToIndexes({colIndex:w,rowIndex:k});const I=e.current.getVisibleColumns()[w].field;e.current.setCellFocus(C,I)},[e,n]),c=u.useCallback((w,C)=>{n.debug(`Navigating to header col ${w}`),e.current.scrollToIndexes({colIndex:w});const x=e.current.getVisibleColumns()[w].field;e.current.setColumnHeaderFocus(x,C)},[e,n]),d=u.useCallback((w,C)=>{n.debug(`Navigating to header filter col ${w}`),e.current.scrollToIndexes({colIndex:w});const x=e.current.getVisibleColumns()[w].field;e.current.setColumnHeaderFilterFocus(x,C)},[e,n]),p=u.useCallback((w,C,x)=>{n.debug(`Navigating to header col ${w}`),e.current.scrollToIndexes({colIndex:w});const{field:P}=e.current.getVisibleColumns()[w];e.current.setColumnGroupHeaderFocus(P,C,x)},[e,n]),h=u.useCallback(w=>i==null?void 0:i[w].id,[i]),m=u.useCallback((w,C)=>{const x=C.currentTarget.querySelector(`.${X.columnHeaderTitleContainerContent}`);if(!!x&&x.contains(C.target)&&w.field!==jp.field||!e.current.getRootDimensions())return;const k=e.current.getViewportPageSize(),I=w.field?e.current.getColumnIndex(w.field):0,R=0,F=i.length-1,A=0,O=Tr(e).length-1,N=Dp(e);let B=!0;switch(C.key){case"ArrowDown":{s?d(I,C):a(I,h(R));break}case"ArrowRight":{const M=ob({currentColIndex:I,firstColIndex:A,lastColIndex:O,direction:o.direction});M!==null&&c(M,C);break}case"ArrowLeft":{const M=rb({currentColIndex:I,firstColIndex:A,lastColIndex:O,direction:o.direction});M!==null&&c(M,C);break}case"ArrowUp":{N>0&&p(I,N-1,C);break}case"PageDown":{F!==null&&a(I,h(Math.min(R+k,F)));break}case"Home":{c(A,C);break}case"End":{c(O,C);break}case"Enter":{(C.ctrlKey||C.metaKey)&&e.current.toggleColumnMenu(w.field);break}case" ":break;default:B=!1}B&&C.preventDefault()},[e,i.length,s,d,a,h,o.direction,c,p]),g=u.useCallback((w,C)=>{if(!e.current.getRootDimensions())return;const P=Ide(e)===w.field,_=kde(e)===w.field;if(P||_||!jg(C.key))return;const k=e.current.getViewportPageSize(),I=w.field?e.current.getColumnIndex(w.field):0,R=0,F=i.length-1,A=0,O=Tr(e).length-1;let N=!0;switch(C.key){case"ArrowDown":{const B=h(R);B!=null&&a(I,B);break}case"ArrowRight":{const B=ob({currentColIndex:I,firstColIndex:A,lastColIndex:O,direction:o.direction});B!==null&&d(B,C);break}case"ArrowLeft":{const B=rb({currentColIndex:I,firstColIndex:A,lastColIndex:O,direction:o.direction});B!==null?d(B,C):e.current.setColumnHeaderFilterFocus(w.field,C);break}case"ArrowUp":{c(I,C);break}case"PageDown":{F!==null&&a(I,h(Math.min(R+k,F)));break}case"Home":{d(A,C);break}case"End":{d(O,C);break}case" ":break;default:N=!1}N&&C.preventDefault()},[e,i.length,d,o.direction,c,a,h]),y=u.useCallback((w,C)=>{if(!e.current.getRootDimensions())return;const P=Ag(e);if(P===null)return;const{field:_,depth:k}=P,{fields:I,depth:R,maxDepth:F}=w,A=e.current.getViewportPageSize(),O=e.current.getColumnIndex(_),N=_?e.current.getColumnIndex(_):0,B=0,M=i.length-1,L=0,z=Tr(e).length-1;let V=!0;switch(C.key){case"ArrowDown":{R===F-1?c(O,C):p(O,k+1,C);break}case"ArrowUp":{R>0&&p(O,k-1,C);break}case"ArrowRight":{const D=I.length-I.indexOf(_)-1;O+D+1<=z&&p(O+D+1,k,C);break}case"ArrowLeft":{const D=I.indexOf(_);O-D-1>=L&&p(O-D-1,k,C);break}case"PageDown":{M!==null&&a(N,h(Math.min(B+A,M)));break}case"Home":{p(L,k,C);break}case"End":{p(z,k,C);break}case" ":break;default:V=!1}V&&C.preventDefault()},[e,i.length,c,p,a,h]),v=u.useCallback((w,C)=>{if(!C.currentTarget.contains(C.target))return;const x=e.current.getCellParams(w.id,w.field);if(x.cellMode===on.Edit||!jg(C.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:C,cell:x}))return;const _=e.current.getRootDimensions();if(i.length===0||!_)return;const k=o.direction,I=e.current.getViewportPageSize(),R=w.field?e.current.getColumnIndex(w.field):0,F=i.findIndex(L=>L.id===w.id),A=0,O=i.length-1,N=0,B=Tr(e).length-1;let M=!0;switch(C.key){case"ArrowDown":{F<O&&a(R,h(F+1));break}case"ArrowUp":{F>A?a(R,h(F-1)):s?d(R,C):c(R,C);break}case"ArrowRight":{const L=ob({currentColIndex:R,firstColIndex:N,lastColIndex:B,direction:k});L!==null&&a(L,h(F),k==="rtl"?"left":"right");break}case"ArrowLeft":{const L=rb({currentColIndex:R,firstColIndex:N,lastColIndex:B,direction:k});L!==null&&a(L,h(F),k==="rtl"?"right":"left");break}case"Tab":{C.shiftKey&&R>N?a(R-1,h(F),"left"):!C.shiftKey&&R<B&&a(R+1,h(F),"right");break}case" ":{if(w.field===fE)break;const z=w.colDef;if(z&&z.type==="treeDataGroup")break;!C.shiftKey&&F<O&&a(R,h(Math.min(F+I,O)));break}case"PageDown":{F<O&&a(R,h(Math.min(F+I,O)));break}case"PageUp":{const L=Math.max(F-I,A);L!==F&&L>=A?a(R,h(L)):c(R,C);break}case"Home":{C.ctrlKey||C.metaKey||C.shiftKey?a(N,h(A)):a(N,h(F));break}case"End":{C.ctrlKey||C.metaKey||C.shiftKey?a(B,h(O)):a(B,h(F));break}default:M=!1}M&&C.preventDefault()},[e,i,o.direction,a,h,s,d,c]),E=u.useCallback((w,{event:C})=>C.key===" "?!1:w,[]);ir(e,"canStartEditing",E),lt(e,"columnHeaderKeyDown",m),lt(e,"headerFilterKeyDown",g),lt(e,"columnGroupHeaderKeyDown",y),lt(e,"cellKeyDown",v)},rme=(e,t)=>{var n,r,o;const i=S({},C4(t.autoPageSize),(n=t.paginationModel)!=null?n:(r=t.initialState)==null||(o=r.pagination)==null?void 0:o.paginationModel);return x4(i.pageSize,t.signature),S({},e,{pagination:{paginationModel:i}})},ib=(e,t,n)=>r=>{var o;let i=r.paginationModel;const s=(o=n==null?void 0:n.pageSize)!=null?o:i.pageSize,a=w4(e,s);n&&((n==null?void 0:n.page)!==i.page||(n==null?void 0:n.pageSize)!==i.pageSize)&&(i=n);const c=pde(i.page,a);return c!==i.page&&(i=S({},i,{page:c})),x4(i.pageSize,t),{paginationModel:i}},ome=(e,t)=>{var n,r;const o=Ar(e,"useGridPagination"),i=Ge(e,Py),s=Ge(e,cd),a=Math.floor(t.rowHeight*s);e.current.registerControlState({stateId:"pagination",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:oi,changeEvent:"paginationModelChange"});const c=u.useCallback(E=>{const w=oi(e);E!==w.page&&(o.debug(`Setting page to ${E}`),e.current.setPaginationModel({page:E,pageSize:w.pageSize}))},[e,o]),d=u.useCallback(E=>{const w=oi(e);E!==w.pageSize&&(o.debug(`Setting page size to ${E}`),e.current.setPaginationModel({pageSize:E,page:w.page}))},[e,o]),p=u.useCallback(E=>{var w;const C=oi(e);E!==C&&(o.debug("Setting 'paginationModel' to",E),e.current.updateControlState("pagination",ib((w=t.rowCount)!=null?w:i,t.signature,E),"setPaginationModel"),e.current.forceUpdate())},[e,o,t.rowCount,t.signature,i]);Lt(e,{setPage:c,setPageSize:d,setPaginationModel:p},"public");const m=u.useCallback((E,w)=>{var C,x;const P=oi(e);return!w.exportOnlyDirtyModels||t.paginationModel!=null||((C=t.initialState)==null||(x=C.pagination)==null?void 0:x.paginationModel)!=null||P.page!==0&&P.pageSize!==fde(t.autoPageSize)?S({},E,{pagination:S({},E.pagination,{paginationModel:P})}):E},[e,t.paginationModel,(n=t.initialState)==null||(r=n.pagination)==null?void 0:r.paginationModel,t.autoPageSize]),g=u.useCallback((E,w)=>{var C,x,P;const _=(C=w.stateToRestore.pagination)!=null&&C.paginationModel?S({},C4(t.autoPageSize),(x=w.stateToRestore.pagination)==null?void 0:x.paginationModel):oi(e);return e.current.updateControlState("pagination",ib((P=t.rowCount)!=null?P:i,t.signature,_),"stateRestorePreProcessing"),E},[e,t.autoPageSize,t.rowCount,t.signature,i]);ir(e,"exportState",m),ir(e,"restoreState",g);const y=()=>{var E;const w=oi(e);(E=e.current.virtualScrollerRef)!=null&&E.current&&e.current.scrollToIndexes({rowIndex:w.page*w.pageSize}),e.current.forceUpdate()},v=u.useCallback(()=>{const E=e.current.getRootDimensions();if(!t.autoPageSize||!E)return;const w=s4(e),C=Math.floor((E.viewportInnerSize.height-w.top-w.bottom)/a);e.current.setPageSize(C)},[e,t.autoPageSize,a]);lt(e,"viewportInnerSizeChange",v),lt(e,"paginationModelChange",y),u.useEffect(()=>{},[t.rowCount,t.paginationMode]),u.useEffect(()=>{var E;e.current.updateControlState("pagination",ib((E=t.rowCount)!=null?E:i,t.signature,t.paginationModel))},[e,t.paginationModel,t.rowCount,t.paginationMode,i,t.signature]),u.useEffect(()=>{v()},[v])},ime=(e,t)=>{var n,r;return S({},e,{preferencePanel:(n=(r=t.initialState)==null?void 0:r.preferencePanel)!=null?n:{open:!1}})},sme=(e,t)=>{var n;const r=Ar(e,"useGridPreferencesPanel"),o=u.useRef(),i=u.useRef(),s=u.useCallback(()=>{r.debug("Hiding Preferences Panel");const m=dp(e.current.state);m.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:m.openedPanelValue}),e.current.setState(g=>S({},g,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,r]),a=u.useCallback(()=>{i.current=setTimeout(()=>clearTimeout(o.current),0)},[]),c=u.useCallback(()=>{o.current=setTimeout(s,100)},[s]),d=u.useCallback((m,g,y)=>{r.debug("Opening Preferences Panel"),a(),e.current.setState(v=>S({},v,{preferencePanel:S({},v.preferencePanel,{open:!0,openedPanelValue:m,panelId:g,labelId:y})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:m}),e.current.forceUpdate()},[r,a,e]);Lt(e,{showPreferences:d,hidePreferences:c},"public");const p=u.useCallback((m,g)=>{var y;const v=dp(e.current.state);return!g.exportOnlyDirtyModels||((y=t.initialState)==null?void 0:y.preferencePanel)!=null||v.open?S({},m,{preferencePanel:v}):m},[e,(n=t.initialState)==null?void 0:n.preferencePanel]),h=u.useCallback((m,g)=>{const y=g.stateToRestore.preferencePanel;return y!=null&&e.current.setState(v=>S({},v,{preferencePanel:y})),m},[e]);ir(e,"exportState",p),ir(e,"restoreState",h),u.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(i.current)},[])},lme=["id","field"],ame=["id","field"],cme=Cs(["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"),ume=(e,t)=>{const[n,r]=u.useState({}),o=u.useRef(n),i=u.useRef({}),{processRowUpdate:s,onProcessRowUpdateError:a,cellModesModel:c,onCellModesModelChange:d}=t,p=M=>(...L)=>{t.editMode===ys.Cell&&M(...L)},h=u.useCallback((M,L)=>{const z=e.current.getCellParams(M,L);if(!e.current.isCellEditable(z))throw new Error(`MUI: The cell with id=${M} and field=${L} is not editable.`)},[e]),m=u.useCallback((M,L,z)=>{if(e.current.getCellMode(M,L)!==z)throw new Error(`MUI: The cell with id=${M} and field=${L} is not in ${z} mode.`)},[e]),g=u.useCallback((M,L)=>{if(!M.isEditable||M.cellMode===on.Edit)return;const z=S({},M,{reason:gl.cellDoubleClick});e.current.publishEvent("cellEditStart",z,L)},[e]),y=u.useCallback((M,L)=>{if(M.cellMode===on.View||e.current.getCellMode(M.id,M.field)===on.View)return;const z=S({},M,{reason:Ri.cellFocusOut});e.current.publishEvent("cellEditStop",z,L)},[e]),v=u.useCallback((M,L)=>{if(M.cellMode===on.Edit){if(L.which===229)return;let z;if(L.key==="Escape"?z=Ri.escapeKeyDown:L.key==="Enter"?z=Ri.enterKeyDown:L.key==="Tab"&&(z=L.shiftKey?Ri.shiftTabKeyDown:Ri.tabKeyDown,L.preventDefault()),z){const V=S({},M,{reason:z});e.current.publishEvent("cellEditStop",V,L)}}else if(M.isEditable){let z;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:L,cellParams:M,editMode:"cell"}))return;if(p4(L)||(L.ctrlKey||L.metaKey)&&L.key==="v"?z=gl.printableKeyDown:L.key==="Enter"?z=gl.enterKeyDown:(L.key==="Delete"||L.key==="Backspace")&&(z=gl.deleteKeyDown),z){const D=S({},M,{reason:z,key:L.key});e.current.publishEvent("cellEditStart",D,L)}}},[e]),E=u.useCallback(M=>{const{id:L,field:z,reason:V,key:D,colDef:H}=M,W={id:L,field:z};if(V===gl.printableKeyDown)if(u.version.startsWith("17"))W.deleteValue=!0;else{const K=H.valueParser?H.valueParser(D):D;W.initialValue=K}else V===gl.deleteKeyDown&&(W.deleteValue=!0);e.current.startCellEditMode(W)},[e]),w=u.useCallback(M=>{const{id:L,field:z,reason:V}=M;e.current.runPendingEditCellValueMutation(L,z);let D;V===Ri.enterKeyDown?D="below":V===Ri.tabKeyDown?D="right":V===Ri.shiftTabKeyDown&&(D="left");const H=V==="escapeKeyDown";e.current.stopCellEditMode({id:L,field:z,ignoreModifications:H,cellToFocusAfter:D})},[e]);lt(e,"cellDoubleClick",p(g)),lt(e,"cellFocusOut",p(y)),lt(e,"cellKeyDown",p(v)),lt(e,"cellEditStart",p(E)),lt(e,"cellEditStop",p(w)),xn(e,"cellEditStart",t.onCellEditStart),xn(e,"cellEditStop",t.onCellEditStop);const C=u.useCallback((M,L)=>{const z=Hr(e.current.state);return z[M]&&z[M][L]?on.Edit:on.View},[e]),x=Pn(M=>{const L=M!==t.cellModesModel;d&&L&&d(M,{}),!(t.cellModesModel&&L)&&(r(M),o.current=M,e.current.publishEvent("cellModesModelChange",M))}),P=u.useCallback((M,L,z)=>{const V=S({},o.current);if(z!==null)V[M]=S({},V[M],{[L]:S({},z)});else{const D=V[M],H=ne(D,[L].map(hp));V[M]=H,Object.keys(V[M]).length===0&&delete V[M]}x(V)},[x]),_=u.useCallback((M,L,z)=>{e.current.setState(V=>{const D=S({},V.editRows);return z!==null?D[M]=S({},D[M],{[L]:S({},z)}):(delete D[M][L],Object.keys(D[M]).length===0&&delete D[M]),S({},V,{editRows:D})}),e.current.forceUpdate()},[e]),k=u.useCallback(M=>{const{id:L,field:z}=M,V=ne(M,lme);h(L,z),m(L,z,on.View),P(L,z,S({mode:on.Edit},V))},[h,m,P]),I=Pn(M=>{const{id:L,field:z,deleteValue:V,initialValue:D}=M;let H=e.current.getCellValue(L,z),W=!1;(V||D)&&(H=V?"":D,W=!0),_(L,z,{value:H,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:W}),e.current.setCellFocus(L,z)}),R=u.useCallback(M=>{const{id:L,field:z}=M,V=ne(M,ame);m(L,z,on.Edit),P(L,z,S({mode:on.View},V))},[m,P]),F=Pn(M=>ct(void 0,null,function*(){const{id:L,field:z,ignoreModifications:V,cellToFocusAfter:D="none"}=M;m(L,z,on.Edit),e.current.runPendingEditCellValueMutation(L,z);const H=()=>{_(L,z,null),P(L,z,null),D!=="none"&&e.current.moveFocusToRelativeCell(L,z,D)};if(V){H();return}const W=Hr(e.current.state),{error:K,isProcessingProps:Y}=W[L][z];if(K||Y){i.current[L][z].mode=on.Edit,P(L,z,{mode:on.Edit});return}const ie=e.current.getRowWithUpdatedValuesFromCellEditing(L,z);if(s){const re=de=>{i.current[L][z].mode=on.Edit,P(L,z,{mode:on.Edit}),a?a(de):cme()};try{const de=e.current.getRow(L);Promise.resolve(s(ie,de)).then(se=>{e.current.updateRows([se]),H()}).catch(re)}catch(de){re(de)}}else e.current.updateRows([ie]),H()})),A=u.useCallback(M=>ct(void 0,null,function*(){var L,z;const{id:V,field:D,value:H,debounceMs:W,unstable_skipValueParser:K}=M;h(V,D),m(V,D,on.Edit);const Y=e.current.getColumn(D),ie=e.current.getRow(V);let re=H;Y.valueParser&&!K&&(re=Y.valueParser(H,e.current.getCellParams(V,D)));let de=Hr(e.current.state),se=S({},de[V][D],{value:re,changeReason:W?"debouncedSetEditCellValue":"setEditCellValue"});if(Y.preProcessEditCellProps){const le=H!==de[V][D].value;se=S({},se,{isProcessingProps:!0}),_(V,D,se),se=yield Promise.resolve(Y.preProcessEditCellProps({id:V,row:ie,props:se,hasChanged:le}))}return e.current.getCellMode(V,D)===on.View?!1:(de=Hr(e.current.state),se=S({},se,{isProcessingProps:!1}),se.value=Y.preProcessEditCellProps?de[V][D].value:re,_(V,D,se),de=Hr(e.current.state),!((L=de[V])!=null&&(z=L[D])!=null&&z.error))}),[e,h,m,_]),O=u.useCallback((M,L)=>{const z=e.current.getColumn(L),V=Hr(e.current.state),D=e.current.getRow(M);if(!V[M]||!V[M][L])return e.current.getRow(M);const{value:H}=V[M][L];return z.valueSetter?z.valueSetter({value:H,row:D}):S({},D,{[L]:H})},[e]),N={getCellMode:C,startCellEditMode:k,stopCellEditMode:R},B={setCellEditingEditCellValue:A,getRowWithUpdatedValuesFromCellEditing:O};Lt(e,N,"public"),Lt(e,B,"private"),u.useEffect(()=>{c&&x(c)},[c,x]),u.useEffect(()=>{const M=Lg(e),L=i.current;i.current=b4(n),Object.entries(n).forEach(([z,V])=>{Object.entries(V).forEach(([D,H])=>{var W,K,Y;const ie=((W=L[z])==null||(K=W[D])==null?void 0:K.mode)||on.View,re=(Y=M[z])!=null?Y:z;H.mode===on.Edit&&ie===on.View?I(S({id:re,field:D},H)):H.mode===on.View&&ie===on.Edit&&F(S({id:re,field:D},H))})})},[e,n,I,F])},dme=["id"],fme=["id"],pme=Cs(["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"),hme=(e,t)=>{const[n,r]=u.useState({}),o=u.useRef(n),i=u.useRef({}),s=u.useRef(null),a=u.useRef(null),{processRowUpdate:c,onProcessRowUpdateError:d,rowModesModel:p,onRowModesModelChange:h}=t,m=D=>(...H)=>{t.editMode===ys.Row&&D(...H)},g=u.useCallback((D,H)=>{const W=e.current.getCellParams(D,H);if(!e.current.isCellEditable(W))throw new Error(`MUI: The cell with id=${D} and field=${H} is not editable.`)},[e]),y=u.useCallback((D,H)=>{if(e.current.getRowMode(D)!==H)throw new Error(`MUI: The row with id=${D} is not in ${H} mode.`)},[e]),v=u.useCallback((D,H)=>{if(!D.isEditable||e.current.getRowMode(D.id)===mn.Edit)return;const W=e.current.getRowParams(D.id),K=S({},W,{field:D.field,reason:vl.cellDoubleClick});e.current.publishEvent("rowEditStart",K,H)},[e]),E=u.useCallback(D=>{a.current=D},[]),w=u.useCallback((D,H)=>{D.isEditable&&e.current.getRowMode(D.id)!==mn.View&&(a.current=null,s.current=setTimeout(()=>{var W;if(s.current=null,((W=a.current)==null?void 0:W.id)!==D.id){if(!e.current.getRow(D.id)||e.current.getRowMode(D.id)===mn.View)return;const K=e.current.getRowParams(D.id),Y=S({},K,{field:D.field,reason:Fs.rowFocusOut});e.current.publishEvent("rowEditStop",Y,H)}}))},[e]);u.useEffect(()=>()=>{clearTimeout(s.current)},[]);const C=u.useCallback((D,H)=>{if(D.cellMode===mn.Edit){if(H.which===229)return;let W;if(H.key==="Escape")W=Fs.escapeKeyDown;else if(H.key==="Enter")W=Fs.enterKeyDown;else if(H.key==="Tab"){const K=xy(e).filter(Y=>e.current.getColumn(Y).type===Ry?!0:e.current.isCellEditable(e.current.getCellParams(D.id,Y)));if(H.shiftKey?D.field===K[0]&&(W=Fs.shiftTabKeyDown):D.field===K[K.length-1]&&(W=Fs.tabKeyDown),H.preventDefault(),!W){const Y=K.findIndex(re=>re===D.field),ie=K[H.shiftKey?Y-1:Y+1];e.current.setCellFocus(D.id,ie)}}if(W){const K=S({},e.current.getRowParams(D.id),{reason:W,field:D.field});e.current.publishEvent("rowEditStop",K,H)}}else if(D.isEditable){let W;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:H,cellParams:D,editMode:"row"}))return;if(p4(H)||(H.ctrlKey||H.metaKey)&&H.key==="v"?W=vl.printableKeyDown:H.key==="Enter"?W=vl.enterKeyDown:(H.key==="Delete"||H.key==="Backspace")&&(W=vl.deleteKeyDown),W){const Y=e.current.getRowParams(D.id),ie=S({},Y,{field:D.field,key:H.key,reason:W});e.current.publishEvent("rowEditStart",ie,H)}}},[e]),x=u.useCallback(D=>{const{id:H,field:W,reason:K,key:Y,columns:ie}=D,re={id:H,fieldToFocus:W};if(K===vl.printableKeyDown)if(u.version.startsWith("17"))re.deleteValue=!!W;else{const de=ie.find(se=>se.field===W);re.initialValue=de.valueParser?de.valueParser(Y):Y}else K===vl.deleteKeyDown&&(re.deleteValue=!!W);e.current.startRowEditMode(re)},[e]),P=u.useCallback(D=>{const{id:H,reason:W,field:K}=D;e.current.runPendingEditCellValueMutation(H);let Y;W===Fs.enterKeyDown?Y="below":W===Fs.tabKeyDown?Y="right":W===Fs.shiftTabKeyDown&&(Y="left");const ie=W==="escapeKeyDown";e.current.stopRowEditMode({id:H,ignoreModifications:ie,field:K,cellToFocusAfter:Y})},[e]);lt(e,"cellDoubleClick",m(v)),lt(e,"cellFocusIn",m(E)),lt(e,"cellFocusOut",m(w)),lt(e,"cellKeyDown",m(C)),lt(e,"rowEditStart",m(x)),lt(e,"rowEditStop",m(P)),xn(e,"rowEditStart",t.onRowEditStart),xn(e,"rowEditStop",t.onRowEditStop);const _=u.useCallback(D=>{if(t.editMode===ys.Cell)return mn.View;const H=Hr(e.current.state);return H[D]&&Object.keys(H[D]).length>0?mn.Edit:mn.View},[e,t.editMode]),k=Pn(D=>{const H=D!==t.rowModesModel;h&&H&&h(D,{}),!(t.rowModesModel&&H)&&(r(D),o.current=D,e.current.publishEvent("rowModesModelChange",D))}),I=u.useCallback((D,H)=>{const W=S({},o.current);H!==null?W[D]=S({},H):delete W[D],k(W)},[k]),R=u.useCallback((D,H)=>{e.current.setState(W=>{const K=S({},W.editRows);return H!==null?K[D]=H:delete K[D],S({},W,{editRows:K})}),e.current.forceUpdate()},[e]),F=u.useCallback((D,H,W)=>{e.current.setState(K=>{const Y=S({},K.editRows);return W!==null?Y[D]=S({},Y[D],{[H]:S({},W)}):(delete Y[D][H],Object.keys(Y[D]).length===0&&delete Y[D]),S({},K,{editRows:Y})}),e.current.forceUpdate()},[e]),A=u.useCallback(D=>{const{id:H}=D,W=ne(D,dme);y(H,mn.View),I(H,S({mode:mn.Edit},W))},[y,I]),O=Pn(D=>{const{id:H,fieldToFocus:W,deleteValue:K,initialValue:Y}=D,re=Hs(e).reduce((de,se)=>{if(!e.current.getCellParams(H,se).isEditable)return de;let ke=e.current.getCellValue(H,se),ve=!1;return W===se&&(K||Y)&&(ke=K?"":Y,ve=!0),de[se]={value:ke,error:!1,isProcessingProps:!1,unstable_updateValueOnRender:ve},de},{});R(H,re),W&&e.current.setCellFocus(H,W)}),N=u.useCallback(D=>{const{id:H}=D,W=ne(D,fme);y(H,mn.Edit),I(H,S({mode:mn.View},W))},[y,I]),B=Pn(D=>{const{id:H,ignoreModifications:W,field:K,cellToFocusAfter:Y="none"}=D;e.current.runPendingEditCellValueMutation(H);const ie=()=>{Y!=="none"&&K&&e.current.moveFocusToRelativeCell(H,K,Y),R(H,null),I(H,null)};if(W){ie();return}const re=Hr(e.current.state),de=e.current.getRow(H);if(Object.values(re[H]).some(ve=>ve.isProcessingProps)){i.current[H].mode=mn.Edit;return}if(Object.values(re[H]).some(ve=>ve.error)){i.current[H].mode=mn.Edit,I(H,{mode:mn.Edit});return}const ke=e.current.getRowWithUpdatedValuesFromRowEditing(H);if(c){const ve=Pe=>{i.current[H].mode=mn.Edit,I(H,{mode:mn.Edit}),d?d(Pe):pme()};try{Promise.resolve(c(ke,de)).then(Pe=>{e.current.updateRows([Pe]),ie()}).catch(ve)}catch(Pe){ve(Pe)}}else e.current.updateRows([ke]),ie()}),M=u.useCallback(D=>{const{id:H,field:W,value:K,debounceMs:Y,unstable_skipValueParser:ie}=D;g(H,W);const re=e.current.getColumn(W),de=e.current.getRow(H);let se=K;re.valueParser&&!ie&&(se=re.valueParser(K,e.current.getCellParams(H,W)));let le=Hr(e.current.state),ke=S({},le[H][W],{value:se,changeReason:Y?"debouncedSetEditCellValue":"setEditCellValue"});return re.preProcessEditCellProps||F(H,W,ke),new Promise(ve=>{const Pe=[];if(re.preProcessEditCellProps){const ee=ke.value!==le[H][W].value;ke=S({},ke,{isProcessingProps:!0}),F(H,W,ke);const _e=le[H],Re=ne(_e,[W].map(hp)),Ee=Promise.resolve(re.preProcessEditCellProps({id:H,row:de,props:ke,hasChanged:ee,otherFieldsProps:Re})).then(pe=>{if(e.current.getRowMode(H)===mn.View){ve(!1);return}le=Hr(e.current.state),pe=S({},pe,{isProcessingProps:!1}),pe.value=re.preProcessEditCellProps?le[H][W].value:se,F(H,W,pe)});Pe.push(Ee)}Object.entries(le[H]).forEach(([ee,_e])=>{if(ee===W)return;const Re=e.current.getColumn(ee);if(!Re.preProcessEditCellProps)return;_e=S({},_e,{isProcessingProps:!0}),F(H,ee,_e),le=Hr(e.current.state);const Ee=le[H],pe=ne(Ee,[ee].map(hp)),be=Promise.resolve(Re.preProcessEditCellProps({id:H,row:de,props:_e,hasChanged:!1,otherFieldsProps:pe})).then(te=>{if(e.current.getRowMode(H)===mn.View){ve(!1);return}te=S({},te,{isProcessingProps:!1}),F(H,ee,te)});Pe.push(be)}),Promise.all(Pe).then(()=>{e.current.getRowMode(H)===mn.Edit?(le=Hr(e.current.state),ve(!le[H][W].error)):ve(!1)})})},[e,g,F]),L=u.useCallback(D=>{const H=Hr(e.current.state),W=e.current.getRow(D);if(!H[D])return e.current.getRow(D);let K=S({},W);return Object.entries(H[D]).forEach(([Y,ie])=>{const re=e.current.getColumn(Y);re.valueSetter?K=re.valueSetter({value:ie.value,row:K}):K[Y]=ie.value}),K},[e]),z={getRowMode:_,startRowEditMode:A,stopRowEditMode:N},V={setRowEditingEditCellValue:M,getRowWithUpdatedValuesFromRowEditing:L};Lt(e,z,"public"),Lt(e,V,"private"),u.useEffect(()=>{p&&k(p)},[p,k]),u.useEffect(()=>{const D=Lg(e),H=i.current;i.current=b4(n),Object.entries(n).forEach(([W,K])=>{var Y,ie;const re=((Y=H[W])==null?void 0:Y.mode)||mn.View,de=(ie=D[W])!=null?ie:W;K.mode===mn.Edit&&re===mn.View?O(S({id:de},K)):K.mode===mn.View&&re===mn.Edit&&B(S({id:de},K))})},[e,n,O,B])},mme=e=>S({},e,{editRows:{}}),gme=(e,t)=>{ume(e,t),hme(e,t);const n=u.useRef({}),{isCellEditable:r}=t,o=u.useCallback(m=>cp(m.rowNode)||!m.colDef.editable||!m.colDef.renderEditCell?!1:r?r(m):!0,[r]),i=(m,g,y,v)=>{if(!y){v();return}if(n.current[m]||(n.current[m]={}),n.current[m][g]){const[C]=n.current[m][g];clearTimeout(C)}const E=()=>{const[C]=n.current[m][g];clearTimeout(C),v(),delete n.current[m][g]},w=setTimeout(()=>{v(),delete n.current[m][g]},y);n.current[m][g]=[w,E]};u.useEffect(()=>{const m=n.current;return()=>{Object.entries(m).forEach(([g,y])=>{Object.keys(y).forEach(v=>{const[E]=m[g][v];clearTimeout(E),delete m[g][v]})})}},[]);const s=u.useCallback((m,g)=>{if(n.current[m]){if(!g)Object.keys(n.current[m]).forEach(y=>{const[,v]=n.current[m][y];v()});else if(n.current[m][g]){const[,y]=n.current[m][g];y()}}},[]),a=u.useCallback(m=>{const{id:g,field:y,debounceMs:v}=m;return new Promise(E=>{i(g,y,v,()=>ct(void 0,null,function*(){const w=t.editMode===ys.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(g,y)===on.Edit){const C=yield w(m);E(C)}}))})},[e,t.editMode]),c=u.useCallback((m,g)=>t.editMode===ys.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(m,g):e.current.getRowWithUpdatedValuesFromRowEditing(m),[e,t.editMode]),d=u.useCallback((m,g)=>{var y,v;return(y=(v=Hr(e.current.state)[m])==null?void 0:v[g])!=null?y:null},[e]),p={isCellEditable:o,setEditCellValue:a,getRowWithUpdatedValues:c,unstable_getEditCellMeta:d},h={runPendingEditCellValueMutation:s};Lt(e,p,"public"),Lt(e,h,"private")},vme=(e,t,n)=>(n.current.caches.rows=Nm({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),S({},e,{rows:i4({apiRef:n,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:null,previousTreeDepths:null})})),yme=(e,t)=>{const n=Ar(e,"useGridRows"),r=cc(e,t),o=u.useRef(Date.now()),i=u.useRef(null),s=u.useCallback(O=>{const N=Ml(e)[O];if(N)return N;const B=e.current.getRowNode(O);return B&&cp(B)?{[Dm]:O}:null},[e]),a=u.useMemo(()=>r.rows.reduce((O,{id:N},B)=>(O[N]=B,O),{}),[r.rows]),c=u.useCallback(({cache:O,throttle:N})=>{const B=()=>{i.current=null,o.current=Date.now(),e.current.setState(L=>S({},L,{rows:i4({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:Fi(e),previousTreeDepths:MR(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(i.current&&(clearTimeout(i.current),i.current=null),e.current.caches.rows=O,!N){B();return}const M=t.throttleRowsMs-(Date.now()-o.current);if(M>0){i.current=setTimeout(B,M);return}B()},[t.throttleRowsMs,t.rowCount,t.loading,e]),d=u.useCallback(O=>{n.debug(`Updating all rows, new length ${O.length}`);const N=Nm({rows:O,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),B=e.current.caches.rows;N.rowsBeforePartialUpdates=B.rowsBeforePartialUpdates,c({cache:N,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,c,e]),p=u.useCallback(O=>{if(t.signature===ps.DataGrid&&O.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(`
339
+ `));const N=[];O.forEach(M=>{const L=Ng(M,t.getRowId,"A row was provided without id when calling updateRows():"),z=e.current.getRowNode(L);if((z==null?void 0:z.type)==="pinnedRow"){const V=e.current.caches.pinnedRows,D=V.idLookup[L];D&&(V.idLookup[L]=S({},D,M))}else N.push(M)});const B=pce({updates:N,getRowId:t.getRowId,previousCache:e.current.caches.rows});c({cache:B,throttle:!0})},[t.signature,t.getRowId,c,e]),h=u.useCallback(()=>{const O=um(e),N=Ml(e);return new Map(O.map(B=>{var M;return[B,(M=N[B])!=null?M:{}]}))},[e]),m=u.useCallback(()=>Sy(e),[e]),g=u.useCallback(()=>um(e),[e]),y=u.useCallback(O=>a[O],[a]),v=u.useCallback((O,N)=>{const B=e.current.getRowNode(O);if(!B)throw new Error(`MUI: No row with id #${O} found`);if(B.type!=="group")throw new Error("MUI: Only group nodes can be expanded or collapsed");const M=S({},B,{childrenExpanded:N});e.current.setState(L=>S({},L,{rows:S({},L.rows,{tree:S({},L.rows.tree,{[O]:M})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",M)},[e]),E=u.useCallback(O=>{var N;return(N=Fi(e)[O])!=null?N:null},[e]),w=u.useCallback(({skipAutoGeneratedRows:O=!0,groupId:N,applySorting:B,applyFiltering:M})=>{const L=Fi(e);let z;if(B){const V=L[N];if(!V)return[];const D=tE(e);z=[];const H=D.findIndex(W=>W===N)+1;for(let W=H;W<D.length&&L[D[W]].depth>V.depth;W+=1){const K=D[W];(!O||!cp(L[K]))&&z.push(K)}}else z=iE(L,N,O);if(M){const V=ZA(e);z=z.filter(D=>V[D]!==!1)}return z},[e]),C=u.useCallback((O,N)=>{const B=e.current.getRowNode(O);if(!B)throw new Error(`MUI: No row with id #${O} found`);if(B.parent!==Vr)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if(B.type!=="leaf")throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");e.current.setState(M=>{const L=Fi(M,e.current.instanceId)[Vr],z=L.children,V=z.findIndex(H=>H===O);if(V===-1||V===N)return M;n.debug(`Moving row ${O} to index ${N}`);const D=[...z];return D.splice(N,0,D.splice(V,1)[0]),S({},M,{rows:S({},M.rows,{tree:S({},M.rows.tree,{[Vr]:S({},L,{children:D})})})})}),e.current.publishEvent("rowsSet")},[e,n]),x=u.useCallback((O,N)=>{if(t.signature===ps.DataGrid&&N.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(`
340
+ `));if(N.length===0)return;if(Ey(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const M=S({},Fi(e)),L=S({},Ml(e)),z=S({},Lg(e)),V=M[Vr],D=[...V.children];for(let W=0;W<N.length;W+=1){const K=N[W],Y=Ng(K,t.getRowId,"A row was provided without id when calling replaceRows()."),[ie]=D.splice(O+W,1,Y);delete L[ie],delete z[ie],delete M[ie];const re={id:Y,depth:0,parent:Vr,type:"leaf",groupingKey:null};L[Y]=K,z[Y]=Y,M[Y]=re}M[Vr]=S({},V,{children:D});const H=D.filter(W=>M[W].type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=L,e.current.caches.rows.dataRowIdToIdLookup=z,e.current.setState(W=>S({},W,{rows:S({},W.rows,{dataRowIdToModelLookup:L,dataRowIdToIdLookup:z,dataRowIds:H,tree:M})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),P={getRow:s,getRowModels:h,getRowsCount:m,getAllRowIds:g,setRows:d,updateRows:p,getRowNode:E,getRowIndexRelativeToVisibleRows:y,unstable_replaceRows:x},_={setRowIndex:C,setRowChildrenExpansion:v,getRowGroupChildren:w},k=u.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let O;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?O=S({},e.current.caches.rows,{updates:{type:"full",rows:um(e)}}):O=Nm({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),c({cache:O,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,c]),I=u.useCallback(O=>{O==="rowTreeCreation"&&k()},[k]),R=u.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==Yae(e)&&k()},[e,k]);lt(e,"activeStrategyProcessorChange",I),lt(e,"strategyAvailabilityChange",R);const F=u.useCallback(()=>{e.current.setState(O=>{const N=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:Fi(O,e.current.instanceId),treeDepths:MR(O,e.current.instanceId),dataRowIds:um(O,e.current.instanceId),dataRowIdToModelLookup:Ml(O,e.current.instanceId),dataRowIdToIdLookup:Lg(O,e.current.instanceId)});return S({},O,{rows:S({},O.rows,N,{totalTopLevelRowCount:o4({tree:N.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);hE(e,"hydrateRows",F),Lt(e,P,"public"),Lt(e,_,t.signature===ps.DataGrid?"private":"public"),u.useEffect(()=>()=>{i.current!==null&&clearTimeout(i.current)},[]);const A=u.useRef(!0);u.useEffect(()=>{if(A.current){A.current=!1;return}const O=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,N=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,B=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(O){N||(e.current.setState(M=>S({},M,{rows:S({},M.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),B||(e.current.setState(M=>S({},M,{rows:S({},M.rows,{totalRowCount:Math.max(t.rowCount||0,M.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,M.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate());return}n.debug(`Updating all rows, new length ${t.rows.length}`),c({cache:Nm({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1})},[t.rows,t.rowCount,t.getRowId,t.loading,n,c,e])},bme=e=>{const t={[Vr]:S({},dce(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:Vr,type:"leaf",groupingKey:null}}return{groupingName:Ja,tree:t,treeDepths:{0:e.length},dataRowIds:e}},wme=({previousTree:e,actions:t})=>{const n=S({},e),r={};for(let s=0;s<t.remove.length;s+=1){const a=t.remove[s];r[a]=!0,delete n[a]}for(let s=0;s<t.insert.length;s+=1){const a=t.insert[s];n[a]={id:a,depth:0,parent:Vr,type:"leaf",groupingKey:null}}const o=n[Vr];let i=[...o.children,...t.insert];return Object.values(r).length&&(i=i.filter(s=>!r[s])),n[Vr]=S({},o,{children:i}),{groupingName:Ja,tree:n,treeDepths:{0:i.length},dataRowIds:i}},Cme=e=>e.updates.type==="full"?bme(e.updates.rows):wme({previousTree:e.previousTree,actions:e.updates.actions}),xme=e=>{Ug(e,Ja,"rowTreeCreation",Cme)},K4=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],Sme=(e,t)=>{var n;return S({},e,{rowSelection:t.rowSelection?(n=K4(t.rowSelectionModel))!=null?n:[]:[]})},Eme=(e,t)=>{const n=Ar(e,"useGridSelection"),r=M=>(...L)=>{t.rowSelection&&M(...L)},o=u.useMemo(()=>K4(t.rowSelectionModel,ti(e.current.state)),[e,t.rowSelectionModel]),i=u.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:ti,changeEvent:"rowSelectionChange"});const{checkboxSelection:s,disableMultipleRowSelection:a,disableRowSelectionOnClick:c,isRowSelectable:d}=t,p=!a||s,h=cc(e,t),m=u.useCallback(M=>{var L;let z=M;const V=(L=i.current)!=null?L:M,D=e.current.isRowSelected(M);if(D){const H=_f(e),W=H.findIndex(Y=>Y===V),K=H.findIndex(Y=>Y===z);if(W===K)return;W>K?z=H[K+1]:z=H[K-1]}i.current=M,e.current.selectRowRange({startId:V,endId:z},!D)},[e]),g=u.useCallback(M=>{if(t.signature===ps.DataGrid&&!t.checkboxSelection&&Array.isArray(M)&&M.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(`
341
+ `));ti(e.current.state)!==M&&(n.debug("Setting selection model"),e.current.setState(z=>S({},z,{rowSelection:t.rowSelection?M:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,t.checkboxSelection]),y=u.useCallback(M=>ti(e.current.state).includes(M),[e]),v=u.useCallback(M=>{if(d&&!d(e.current.getRowParams(M)))return!1;const L=e.current.getRowNode(M);return!((L==null?void 0:L.type)==="footer"||(L==null?void 0:L.type)==="pinnedRow")},[e,d]),E=u.useCallback(()=>yde(e),[e]),w=u.useCallback((M,L=!0,z=!1)=>{if(e.current.isRowSelectable(M))if(i.current=M,z)n.debug(`Setting selection for row ${M}`),e.current.setRowSelectionModel(L?[M]:[]);else{n.debug(`Toggling selection for row ${M}`);const D=ti(e.current.state).filter(W=>W!==M);L&&D.push(M),(D.length<2||p)&&e.current.setRowSelectionModel(D)}},[e,n,p]),C=u.useCallback((M,L=!0,z=!1)=>{n.debug("Setting selection for several rows");const V=M.filter(W=>e.current.isRowSelectable(W));let D;if(z)D=L?V:[];else{const W=S({},Hg(e));V.forEach(K=>{L?W[K]=K:delete W[K]}),D=Object.values(W)}(D.length<2||p)&&e.current.setRowSelectionModel(D)},[e,n,p]),x=u.useCallback(({startId:M,endId:L},z=!0,V=!1)=>{if(!e.current.getRow(M)||!e.current.getRow(L))return;n.debug(`Expanding selection from row ${M} to row ${L}`);const D=_f(e),H=D.indexOf(M),W=D.indexOf(L),[K,Y]=H>W?[W,H]:[H,W],ie=D.slice(K,Y+1);e.current.selectRows(ie,z,V)},[e,n]),P={selectRow:w,setRowSelectionModel:g,getSelectedRows:E,isRowSelected:y,isRowSelectable:v},_={selectRows:C,selectRowRange:x};Lt(e,P,"public"),Lt(e,_,t.signature===ps.DataGrid?"private":"public");const k=u.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const M=ti(e.current.state),L=Ml(e),z=S({},Hg(e));let V=!1;M.forEach(D=>{L[D]||(delete z[D],V=!0)}),V&&e.current.setRowSelectionModel(Object.values(z))},[e,t.keepNonExistentRowsSelected]),I=u.useCallback((M,L)=>{const z=L.metaKey||L.ctrlKey,V=!s&&!z&&!tue(L),D=!p||V,H=e.current.isRowSelected(M);D?e.current.selectRow(M,V?!0:!H,!0):e.current.selectRow(M,!H,!1)},[e,p,s]),R=u.useCallback((M,L)=>{var z;if(c)return;const V=(z=L.target.closest(`.${X.cell}`))==null?void 0:z.getAttribute("data-field");V===jp.field||V===fE||V&&e.current.getColumn(V).type===Ry||e.current.getRowNode(M.id).type==="pinnedRow"||(L.shiftKey&&(p||s)?m(M.id):I(M.id,L))},[c,p,s,e,m,I]),F=u.useCallback((M,L)=>{if(p&&L.shiftKey){var z;(z=window.getSelection())==null||z.removeAllRanges()}},[p]),A=u.useCallback((M,L)=>{L.nativeEvent.shiftKey?m(M.id):e.current.selectRow(M.id,M.value)},[e,m]),O=u.useCallback(M=>{const z=t.checkboxSelectionVisibleOnly&&t.pagination?E4(e):_f(e);e.current.selectRows(z,M.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),N=u.useCallback((M,L)=>{if(e.current.getCellMode(M.id,M.field)!==on.Edit&&L.currentTarget.contains(L.target)){if(jg(L.key)&&L.shiftKey){const z=ri(e);if(z&&z.id!==M.id){L.preventDefault();const V=e.current.isRowSelected(z.id);if(!p){e.current.selectRow(z.id,!V,!0);return}const D=e.current.getRowIndexRelativeToVisibleRows(z.id),H=e.current.getRowIndexRelativeToVisibleRows(M.id);let W,K;D>H?V?(W=H,K=D-1):(W=H,K=D):V?(W=D+1,K=H):(W=D,K=H);const Y=h.rows.slice(W,K+1).map(ie=>ie.id);e.current.selectRows(Y,!V);return}}if(L.key===" "&&L.shiftKey){L.preventDefault(),I(M.id,L);return}L.key==="a"&&(L.ctrlKey||L.metaKey)&&(L.preventDefault(),C(e.current.getAllRowIds(),!0))}},[e,I,C,h.rows,p]);lt(e,"sortedRowsSet",r(k)),lt(e,"rowClick",r(R)),lt(e,"rowSelectionCheckboxChange",r(A)),lt(e,"headerSelectionCheckboxChange",O),lt(e,"cellMouseDown",r(F)),lt(e,"cellKeyDown",r(N)),u.useEffect(()=>{o!==void 0&&e.current.setRowSelectionModel(o)},[e,o,t.rowSelection]),u.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const B=o!=null;u.useEffect(()=>{if(B||!t.rowSelection)return;const M=ti(e.current.state);if(v){const L=M.filter(z=>v(z));L.length<M.length&&e.current.setRowSelectionModel(L)}},[e,v,B,t.rowSelection]),u.useEffect(()=>{if(!t.rowSelection||B)return;const M=ti(e.current.state);!p&&M.length>1&&e.current.setRowSelectionModel([])},[e,p,s,B,t.rowSelection])},Pme={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"},Ime=e=>{const{classes:t}=e;return u.useMemo(()=>Me({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Bt,t),[t])},kme=(e,t)=>{const n={classes:t.classes},r=Ime(n),o=u.useCallback(i=>{const s=S({},jp,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),a=t.checkboxSelection,c=i.lookup[yl]!=null;return a&&!c?(i.lookup[yl]=s,i.orderedFields=[yl,...i.orderedFields]):!a&&c?(delete i.lookup[yl],i.orderedFields=i.orderedFields.filter(d=>d!==yl)):a&&c&&(i.lookup[yl]=S({},s,i.lookup[yl])),i},[e,r,t.checkboxSelection]);ir(e,"hydrateColumns",o)},_me=(e,t)=>{var n,r,o,i;const s=(n=(r=t.sortModel)!=null?r:(o=t.initialState)==null||(i=o.sorting)==null?void 0:i.sortModel)!=null?n:[];return S({},e,{sorting:{sortModel:P4(s,t.disableMultipleColumnsSorting),sortedRows:[]}})},$me=(e,t)=>{var n,r;const o=Ar(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:ei,changeEvent:"sortModelChange"});const i=u.useCallback((I,R)=>{const F=ei(e),A=F.findIndex(N=>N.field===I);let O=[...F];return A>-1?R?O.splice(A,1,R):O.splice(A,1):O=[...F,R],O},[e]),s=u.useCallback((I,R)=>{var F;const O=ei(e).find(B=>B.field===I.field);if(O){var N;const B=R===void 0?AR((N=I.sortingOrder)!=null?N:t.sortingOrder,O.sort):R;return B==null?void 0:S({},O,{sort:B})}return{field:I.field,sort:R===void 0?AR((F=I.sortingOrder)!=null?F:t.sortingOrder):R}},[e,t.sortingOrder]),a=u.useCallback((I,R)=>R==null||R.sortable===!1?I:(R.sortingOrder||t.sortingOrder).some(A=>!!A)?[...I,"columnMenuSortItem"]:I,[t.sortingOrder]),c=u.useCallback(()=>{e.current.setState(I=>{if(t.sortingMode==="server")return o.debug("Skipping sorting rows as sortingMode = server"),S({},I,{sorting:S({},I.sorting,{sortedRows:iE(Fi(e),Vr,!1)})});const R=ei(I,e.current.instanceId),F=Sde(R,e),A=e.current.applyStrategyProcessor("sorting",{sortRowList:F});return S({},I,{sorting:S({},I.sorting,{sortedRows:A})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,o,t.sortingMode]),d=u.useCallback(I=>{ei(e)!==I&&(o.debug("Setting sort model"),e.current.setState(LR(I,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,o,t.disableMultipleColumnsSorting]),p=u.useCallback((I,R,F)=>{if(!I.sortable)return;const A=s(I,R);let O;!F||t.disableMultipleColumnsSorting?O=A?[A]:[]:O=i(I.field,A),e.current.setSortModel(O)},[e,i,s,t.disableMultipleColumnsSorting]),h=u.useCallback(()=>ei(e),[e]),m=u.useCallback(()=>nE(e).map(R=>R.model),[e]),g=u.useCallback(()=>tE(e),[e]),y=u.useCallback(I=>e.current.getSortedRowIds()[I],[e]);Lt(e,{getSortModel:h,getSortedRows:m,getSortedRowIds:g,getRowIdFromRowIndex:y,setSortModel:d,sortColumn:p,applySorting:c},"public");const E=u.useCallback((I,R)=>{var F,A;const O=ei(e);return!R.exportOnlyDirtyModels||t.sortModel!=null||((F=t.initialState)==null||(A=F.sorting)==null?void 0:A.sortModel)!=null||O.length>0?S({},I,{sorting:{sortModel:O}}):I},[e,t.sortModel,(n=t.initialState)==null||(r=n.sorting)==null?void 0:r.sortModel]),w=u.useCallback((I,R)=>{var F;const A=(F=R.stateToRestore.sorting)==null?void 0:F.sortModel;return A==null?I:(e.current.setState(LR(A,t.disableMultipleColumnsSorting)),S({},I,{callbacks:[...I.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),C=u.useCallback(I=>{const R=Fi(e),F=R[Vr],A=I.sortRowList?I.sortRowList(F.children.map(O=>R[O])):[...F.children];return F.footerId!=null&&A.push(F.footerId),A},[e]);ir(e,"exportState",E),ir(e,"restoreState",w),Ug(e,Ja,"sorting",C);const x=u.useCallback(({colDef:I},R)=>{const F=R.shiftKey||R.metaKey||R.ctrlKey;p(I,void 0,F)},[p]),P=u.useCallback(({colDef:I},R)=>{Xce(R.key)&&!R.ctrlKey&&!R.metaKey&&p(I,void 0,R.shiftKey)},[p]),_=u.useCallback(()=>{const I=ei(e),R=ld(e);if(I.length>0){const F=I.filter(A=>R[A.field]);F.length<I.length&&e.current.setSortModel(F)}},[e]),k=u.useCallback(I=>{I==="sorting"&&e.current.applySorting()},[e]);ir(e,"columnMenu",a),lt(e,"columnHeaderClick",x),lt(e,"columnHeaderKeyDown",P),lt(e,"rowsSet",e.current.applySorting),lt(e,"columnsChange",_),lt(e,"activeStrategyProcessorChange",k),Np(()=>{e.current.applySorting()}),an(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function iM(e){const{clientHeight:t,scrollTop:n,offsetHeight:r,offsetTop:o}=e,i=o+r;if(r>t)return o;if(i-t>n)return i-t;if(o<n)return o}const Rme=(e,t)=>{const n=lr(),r=Ar(e,"useGridScroll"),o=e.current.columnHeadersElementRef,i=e.current.virtualScrollerRef,s=Ge(e,sa),a=u.useCallback(h=>{const m=Sy(e),g=Tr(e);if(!(h.rowIndex==null)&&m===0||g.length===0)return!1;r.debug(`Scrolling to cell at row ${h.rowIndex}, col: ${h.colIndex} `);let v={};if(h.colIndex!=null){const x=Uu(e);let P;if(typeof h.rowIndex!="undefined"){var E;const _=(E=s[h.rowIndex])==null?void 0:E.id,k=e.current.unstable_getCellColSpanInfo(_,h.colIndex);k&&!k.spannedByColSpan&&(P=k.cellProps.width)}typeof P=="undefined"&&(P=g[h.colIndex].computedWidth),v.left=iM({clientHeight:i.current.clientWidth,scrollTop:Math.abs(i.current.scrollLeft),offsetHeight:P,offsetTop:x[h.colIndex]})}if(h.rowIndex!=null){var w,C;const x=fp(e.current.state),P=hde(e),_=mde(e),k=t.pagination?h.rowIndex-P*_:h.rowIndex,I=x.positions[k+1]?x.positions[k+1]-x.positions[k]:x.currentPageTotalHeight-x.positions[k],R=((w=i.current.querySelector(`.${X["pinnedRows--top"]}`))==null?void 0:w.clientHeight)||0,F=((C=i.current.querySelector(`.${X["pinnedRows--bottom"]}`))==null?void 0:C.clientHeight)||0;v.top=iM({clientHeight:i.current.clientHeight-R-F,scrollTop:i.current.scrollTop,offsetHeight:I,offsetTop:x.positions[k]})}return v=e.current.unstable_applyPipeProcessors("scrollToIndexes",v,h),typeof v.left!==void 0||typeof v.top!==void 0?(e.current.scroll(v),!0):!1},[r,e,i,t.pagination,s]),c=u.useCallback(h=>{if(i.current&&h.left!=null&&o.current){const m=n.direction==="rtl"?-1:1;o.current.scrollLeft=h.left,i.current.scrollLeft=m*h.left,r.debug(`Scrolling left: ${h.left}`)}i.current&&h.top!=null&&(i.current.scrollTop=h.top,r.debug(`Scrolling top: ${h.top}`)),r.debug("Scrolling, updating container, and viewport")},[i,n.direction,o,r]),d=u.useCallback(()=>i!=null&&i.current?{top:i.current.scrollTop,left:i.current.scrollLeft}:{top:0,left:0},[i]);Lt(e,{scroll:c,scrollToIndexes:a,getScrollPosition:d},"public")};function Mme(e,t){xn(e,"columnHeaderClick",t.onColumnHeaderClick),xn(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),xn(e,"columnHeaderOver",t.onColumnHeaderOver),xn(e,"columnHeaderOut",t.onColumnHeaderOut),xn(e,"columnHeaderEnter",t.onColumnHeaderEnter),xn(e,"columnHeaderLeave",t.onColumnHeaderLeave),xn(e,"cellClick",t.onCellClick),xn(e,"cellDoubleClick",t.onCellDoubleClick),xn(e,"cellKeyDown",t.onCellKeyDown),xn(e,"preferencePanelClose",t.onPreferencePanelClose),xn(e,"preferencePanelOpen",t.onPreferencePanelOpen),xn(e,"menuOpen",t.onMenuOpen),xn(e,"menuClose",t.onMenuClose),xn(e,"rowDoubleClick",t.onRowDoubleClick),xn(e,"rowClick",t.onRowClick),xn(e,"stateChange",t.onStateChange)}const Tme=({content:e,container:t,scrollBarSize:n})=>{const r=e.width>t.width,o=e.height>t.height;let i=!1,s=!1;return(r||o)&&(i=r,s=e.height+(i?n:0)>t.height,s&&(i=e.width+n>t.width)),{hasScrollX:i,hasScrollY:s}};function Ome(e,t){const n=Ar(e,"useResizeContainer"),r=u.useRef(!1),o=u.useRef(null),i=u.useRef(null),s=Ge(e,fp),a=Ge(e,cd),c=Math.floor(t.rowHeight*a),d=mE(e,t.columnHeaderHeight),p=u.useCallback(()=>{var I;const R=(I=e.current.rootElementRef)==null?void 0:I.current,F=eE(e),A=s4(e);if(!o.current)return;let O;if(t.scrollbarSize!=null)O=t.scrollbarSize;else if(!F||!R)O=0;else{const H=vn(R).createElement("div");H.style.width="99px",H.style.height="99px",H.style.position="absolute",H.style.overflow="scroll",H.className="scrollDiv",R.appendChild(H),O=H.offsetWidth-H.clientWidth,R.removeChild(H)}let N,B,M;if(t.autoHeight)M=!1,B=Math.round(F)>Math.round(o.current.width),N={width:o.current.width,height:s.currentPageTotalHeight+(B?O:0)};else{N={width:o.current.width,height:o.current.height-d};const D=Tme({content:{width:Math.round(F),height:s.currentPageTotalHeight},container:{width:Math.round(N.width),height:N.height-A.top-A.bottom},scrollBarSize:O});M=D.hasScrollY,B=D.hasScrollX}const L={width:N.width-(M?O:0),height:N.height-(B?O:0)},z={viewportOuterSize:N,viewportInnerSize:L,hasScrollX:B,hasScrollY:M,scrollBarSize:O},V=i.current;i.current=z,(z.viewportInnerSize.width!==(V==null?void 0:V.viewportInnerSize.width)||z.viewportInnerSize.height!==(V==null?void 0:V.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",z.viewportInnerSize)},[e,t.scrollbarSize,t.autoHeight,s.currentPageTotalHeight,d]),[h,m]=u.useState(),g=u.useMemo(()=>Ks(m,60),[]),y=u.useRef();an(()=>{h&&(p(),e.current.publishEvent("debouncedResize",o.current))},[e,h,p]);const v=u.useCallback(()=>{e.current.computeSizeAndPublishResizeEvent()},[e]),E=u.useCallback(()=>i.current,[]),w=u.useCallback(()=>{const I=e.current.getRootDimensions();if(!I)return 0;const R=dE(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const A=e.current.getRenderContext(),O=A.lastRowIndex-A.firstRowIndex;return Math.min(O-1,R.rows.length)}const F=Math.floor(I.viewportInnerSize.height/c);return Math.min(F,R.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,c]),C=u.useCallback(()=>{var I,R,F;const A=(I=e.current.mainElementRef)==null?void 0:I.current;if(!A)return;const N=Fo(A).getComputedStyle(A),B=parseFloat(N.height)||0,M=parseFloat(N.width)||0,L=B!==((R=y.current)==null?void 0:R.height),z=M!==((F=y.current)==null?void 0:F.width);if(!y.current||L||z){const V={width:M,height:B};e.current.publishEvent("resize",V),y.current=V}},[e]),x={resize:v,getRootDimensions:E},P={getViewportPageSize:w,updateGridDimensionsRef:p,computeSizeAndPublishResizeEvent:C};Lt(e,x,"public"),Lt(e,P,"private");const _=u.useRef(!0),k=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(`
342
+ `)),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(`
343
+ `)),r.current=!0),_.current){m(I),_.current=!1;return}g(I)},[t.autoHeight,g,n]);an(()=>p(),[p]),xn(e,"sortedRowsSet",p),xn(e,"paginationModelChange",p),xn(e,"columnsChange",p),lt(e,"resize",k),xn(e,"debouncedResize",t.onResize)}const Fme=["style"],Lme=["style"];function Cu(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),i=t[o];return e<=i?Cu(e,t,n,o):Cu(e,t,o+1,r)}function Ame(e,t,n){let r=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=r,r*=2;return Cu(e,t,Math.floor(n/2),Math.min(n,t.length))}const Sl=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[Wu(e-n,r,o),Wu(t+n,r,o)],q4=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,Dme={maxSize:3},Nme=e=>{var t,n;const r=ac(),o=et(),i=Ge(r,Tr),{ref:s,disableVirtualization:a,onRenderZonePositioning:c,renderZoneMinColumnIndex:d=0,renderZoneMaxColumnIndex:p=i.length,getRowProps:h}=e,m=lr(),g=Ge(r,Uu),y=Ge(r,eE),v=Ge(r,ri),E=Ge(r,Dg),w=Ge(r,fp),C=Ge(r,Hg),x=cc(r,o),P=u.useRef(null),_=u.useRef(null),k=Vt(s,_),[I,R]=u.useState(null),F=u.useRef(I),A=u.useRef({top:0,left:0}),[O,N]=u.useState({width:null,height:null}),B=u.useRef(y),M=u.useRef(Object.create(null)),L=u.useRef(),z=u.useRef(),V=u.useRef(ZS((ee,_e,Re)=>ee.slice(_e,Re),Dme)),D=u.useCallback(ee=>{var _e,Re;const Ee=r.current.getLastMeasuredRowIndex();let pe=Ee===1/0;(_e=x.range)!=null&&_e.lastRowIndex&&!pe&&(pe=Ee>=x.range.lastRowIndex);const be=Wu(Ee-(((Re=x.range)==null?void 0:Re.firstRowIndex)||0),0,w.positions.length);return pe||w.positions[be]>=ee?Cu(ee,w.positions):Ame(ee,w.positions,be)},[r,(t=x.range)==null?void 0:t.firstRowIndex,(n=x.range)==null?void 0:n.lastRowIndex,w.positions]),H=u.useCallback(()=>{if(a)return{firstRowIndex:0,lastRowIndex:x.rows.length,firstColumnIndex:0,lastColumnIndex:i.length};const{top:ee,left:_e}=A.current,Re=Math.min(D(ee),w.positions.length-1),Ee=o.autoHeight?Re+x.rows.length:D(ee+O.height);let pe=!1,be=0,te=g.length;const[Oe,Ye]=Sl({firstIndex:Re,lastIndex:Ee,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:o.rowBuffer});for(let Ke=Oe;Ke<Ye&&!pe;Ke+=1){const Ue=x.rows[Ke];pe=r.current.rowHasAutoHeight(Ue.id)}return pe||(be=Cu(Math.abs(_e),g),te=Cu(Math.abs(_e)+O.width,g)),{firstRowIndex:Re,lastRowIndex:Ee,firstColumnIndex:be,lastColumnIndex:te}},[a,D,w.positions.length,o.autoHeight,o.rowBuffer,x.rows,g,i.length,r,O]);an(()=>{a?P.current.style.transform="translate3d(0px, 0px, 0px)":(_.current.scrollLeft=0,_.current.scrollTop=0)},[a]),an(()=>{N({width:_.current.clientWidth,height:_.current.clientHeight})},[w.currentPageTotalHeight]);const W=u.useCallback(()=>{_.current&&N({width:_.current.clientWidth,height:_.current.clientHeight})},[]);lt(r,"debouncedResize",W);const K=u.useCallback(ee=>{const[_e,Re]=Sl({firstIndex:ee.firstRowIndex,lastIndex:ee.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:o.rowBuffer}),[Ee]=Sl({firstIndex:ee.firstColumnIndex,lastIndex:ee.lastColumnIndex,minFirstIndex:d,maxLastIndex:p,buffer:o.columnBuffer}),pe=Zw({firstColumnToRender:Ee,apiRef:r,firstRowToRender:_e,lastRowToRender:Re,visibleRows:x.rows}),be=m.direction==="ltr"?1:-1,te=fp(r.current.state).positions[_e],Oe=be*Uu(r)[pe];P.current.style.transform=`translate3d(${Oe}px, ${te}px, 0px)`,typeof c=="function"&&c({top:te,left:Oe})},[r,x.rows,c,d,p,o.columnBuffer,o.rowBuffer,m.direction]),Y=u.useCallback(ee=>{if(F.current&&q4(ee,F.current)){K(ee);return}R(ee),K(ee);const[_e,Re]=Sl({firstIndex:ee.firstRowIndex,lastIndex:ee.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:o.rowBuffer});r.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:_e,lastRowToRender:Re}),F.current=ee},[r,R,F,x.rows.length,o.rowBuffer,K]);an(()=>{if(O.width==null)return;const ee=H();Y(ee);const{top:_e,left:Re}=A.current,Ee={top:_e,left:Re,renderContext:ee};r.current.publishEvent("scrollPositionChange",Ee)},[r,H,O.width,Y]);const ie=Pn(ee=>{const{scrollTop:_e,scrollLeft:Re}=ee.currentTarget;if(A.current.top=_e,A.current.left=Re,!F.current||_e<0||m.direction==="ltr"&&Re<0||m.direction==="rtl"&&Re>0)return;const Ee=a?F.current:H(),pe=Math.abs(Ee.firstRowIndex-F.current.firstRowIndex),be=Math.abs(Ee.lastRowIndex-F.current.lastRowIndex),te=Math.abs(Ee.firstColumnIndex-F.current.firstColumnIndex),Oe=Math.abs(Ee.lastColumnIndex-F.current.lastColumnIndex),Ye=pe>=o.rowThreshold||be>=o.rowThreshold||te>=o.columnThreshold||Oe>=o.columnThreshold||B.current!==y;r.current.publishEvent("scrollPositionChange",{top:_e,left:Re,renderContext:Ye?Ee:F.current},ee),Ye&&(Xu.flushSync(()=>{Y(Ee)}),B.current=y)}),re=Pn(ee=>{r.current.publishEvent("virtualScrollerWheel",{},ee)}),de=Pn(ee=>{r.current.publishEvent("virtualScrollerTouchMove",{},ee)}),se=(ee={renderContext:I})=>{var _e;const{onRowRender:Re,renderContext:Ee,minFirstColumn:pe=d,maxLastColumn:be=p,availableSpace:te=O.width,rowIndexOffset:Oe=0,position:Ye="center"}=ee;if(!Ee||te==null)return null;const Ke=a?0:o.rowBuffer,Ue=a?0:o.columnBuffer,[Be,ft]=Sl({firstIndex:Ee.firstRowIndex,lastIndex:Ee.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:Ke}),yt=[];if(ee.rows)ee.rows.forEach(it=>{yt.push(it),r.current.calculateColSpan({rowId:it.id,minFirstColumn:pe,maxLastColumn:be,columns:i})});else{if(!x.range)return null;for(let it=Be;it<ft;it+=1){const mt=x.rows[it];yt.push(mt),r.current.calculateColSpan({rowId:mt.id,minFirstColumn:pe,maxLastColumn:be,columns:i})}}const[ut,It]=Sl({firstIndex:Ee.firstColumnIndex,lastIndex:Ee.lastColumnIndex,minFirstIndex:pe,maxLastIndex:be,buffer:Ue}),bt=Zw({firstColumnToRender:ut,apiRef:r,firstRowToRender:Be,lastRowToRender:ft,visibleRows:x.rows}),De=V.current(i,bt,It),Ae=((_e=o.slotProps)==null?void 0:_e.row)||{},{style:ze}=Ae,Ze=ne(Ae,Fme);(L.current!==h||z.current!==ze)&&(M.current=Object.create(null));const Fe=[];for(let it=0;it<yt.length;it+=1){var Ve;const{id:mt,model:tn}=yt[it],kn=Be+it===x.rows.length-1,On=r.current.rowHasAutoHeight(mt)?"auto":r.current.unstable_getRowHeight(mt);let Jn;C[mt]==null?Jn=!1:Jn=r.current.isRowSelectable(mt),Re&&Re(mt);const ar=v!==null&&v.id===mt?v.field:null;let cr=null;E!==null&&E.id===mt&&(cr=r.current.getCellParams(mt,E.field).cellMode==="view"?E.field:null);const bn=typeof h=="function"&&h(mt,tn)||{},{style:nn}=bn,jn=ne(bn,Lme);if(!M.current[mt]){const Uo=S({},nn,ze);M.current[mt]=Uo}Fe.push(T.jsx(o.slots.row,S({row:tn,rowId:mt,rowHeight:On,focusedCell:ar,tabbableCell:cr,renderedColumns:De,visibleColumns:i,firstColumnToRender:bt,lastColumnToRender:It,selected:Jn,index:Oe+((x==null||(Ve=x.range)==null?void 0:Ve.firstRowIndex)||0)+Be+it,containerWidth:te,isLastVisible:kn,position:Ye},jn,Ze,{style:M.current[mt]}),mt))}return L.current=h,z.current=ze,Fe},le=O.width&&y>=O.width,ke=u.useMemo(()=>{const ee=Math.max(w.currentPageTotalHeight,1);let _e=!1;_!=null&&_.current&&ee<=(_==null?void 0:_.current.clientHeight)&&(_e=!0);const Re={width:le?y:"auto",height:ee,minHeight:_e?"100%":"auto"};return o.autoHeight&&x.rows.length===0&&(Re.height=l4(r,o.rowHeight)),Re},[r,_,y,w.currentPageTotalHeight,le,o.autoHeight,o.rowHeight,x.rows.length]);u.useEffect(()=>{r.current.publishEvent("virtualScrollerContentSizeChange")},[r,ke]);const ve=u.useMemo(()=>{const ee={};return le||(ee.overflowX="hidden"),o.autoHeight&&(ee.overflowY="hidden"),ee},[le,o.autoHeight]),Pe=u.useCallback(()=>F.current,[]);return r.current.register("private",{getRenderContext:Pe}),{renderContext:I,updateRenderZonePosition:K,getRows:se,getRootProps:(ee={})=>S({ref:k,onScroll:ie,onWheel:re,onTouchMove:de},ee,{style:ee.style?S({},ee.style,ve):ve}),getContentProps:({style:ee}={})=>({style:ee?S({},ee,ke):ke}),getRenderZoneProps:()=>({ref:P})}},Bme=e=>{const{classes:t,headerAlign:n,isDragging:r,showColumnBorder:o,groupId:i}=e;return Me({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",o&&"columnHeader--showColumnBorder",o&&"columnHeader--withRightBorder","withBorderColor",i===null?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},Bt,t)};function zme(e){var t;const{groupId:n,width:r,depth:o,maxDepth:i,fields:s,height:a,colIndex:c,hasFocus:d,tabIndex:p,isLastColumn:h}=e,m=et(),g=u.useRef(null),y=Nt(),v=Ge(y,r4),E=n?v[n]:{},{headerName:w=n!=null?n:"",description:C="",headerAlign:x=void 0}=E;let P;const _=n&&((t=v[n])==null?void 0:t.renderHeaderGroup),k=u.useMemo(()=>({groupId:n,headerName:w,description:C,depth:o,maxDepth:i,fields:s,colIndex:c,isLastColumn:h}),[n,w,C,o,i,s,c,h]);n&&_&&(P=_(k));const I=m.showColumnVerticalBorder,R=S({},e,{classes:m.classes,showColumnBorder:I,headerAlign:x,depth:o,isDragging:!1}),F=w!=null?w:n,A=sn(),O=n===null?`empty-group-cell-${A}`:n,N=Bme(R);u.useLayoutEffect(()=>{if(d){const V=g.current.querySelector('[tabindex="0"]')||g.current;V==null||V.focus()}},[y,d]);const B=u.useCallback(z=>V=>{V.currentTarget.contains(V.target)&&y.current.publishEvent(z,k,V)},[y,k]),M=u.useMemo(()=>({onKeyDown:B("columnGroupHeaderKeyDown"),onFocus:B("columnGroupHeaderFocus"),onBlur:B("columnGroupHeaderBlur")}),[B]),L=typeof E.headerClassName=="function"?E.headerClassName(k):E.headerClassName;return T.jsx(v4,S({ref:g,classes:N,columnMenuOpen:!1,colIndex:c,height:a,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:p,isDraggable:!1,headerComponent:P,headerClassName:L,description:C,elementId:O,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:F,"aria-colspan":s.length,"data-fields":`|-${s.join("-|-")}-|`},M))}const sM=gr("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function jme(e){return!!e.target}const Hme=e=>{const{innerRef:t,minColumnIndex:n=0,visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnPositions:s,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:c,columnHeaderFocus:d,columnGroupHeaderFocus:p,densityFactor:h,headerGroupingMaxDepth:m,columnMenuState:g,columnVisibility:y,columnGroupsHeaderStructure:v,hasOtherElementInTabSequence:E}=e,w=_p(),[C,x]=u.useState(""),[P,_]=u.useState(""),k=ac(),I=et(),R=u.useRef(null),F=Vt(t,R),[A,O]=u.useState(null),N=u.useRef(A),B=u.useRef(0),M=cc(k,I),L=mE(k,I.columnHeaderHeight),z=Math.floor(I.columnHeaderHeight*h),V=u.useCallback(ve=>{A&&ve&&q4(A,ve)||O(ve)},[A]);u.useEffect(()=>{k.current.columnHeadersContainerElementRef.current.scrollLeft=0},[k]);const D=u.useRef(ZS($he,{equalityCheck:(ve,Pe)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every(ee=>ve[ee]===Pe[ee])})),H=u.useCallback(ve=>{const[Pe,ee]=Sl({firstIndex:ve.firstRowIndex,lastIndex:ve.lastRowIndex,minFirstIndex:0,maxLastIndex:M.rows.length,buffer:I.rowBuffer}),_e=D.current({firstColumnIndex:ve.firstColumnIndex,minColumnIndex:n,columnBuffer:I.columnBuffer,firstRowToRender:Pe,lastRowToRender:ee,apiRef:k,visibleRows:M.rows}),Re=w.direction==="ltr"?1:-1,Ee=_e>0?B.current-Re*s[_e]:B.current;R.current.style.transform=`translate3d(${-Ee}px, 0px, 0px)`},[s,n,I.columnBuffer,k,M.rows,I.rowBuffer,w.direction]);u.useLayoutEffect(()=>{A&&H(A)},[A,H]);const W=u.useCallback(({left:ve,renderContext:Pe=null},ee)=>{var _e,Re;if(!R.current||B.current===ve&&((_e=N.current)==null?void 0:_e.firstColumnIndex)===(Pe==null?void 0:Pe.firstColumnIndex)&&((Re=N.current)==null?void 0:Re.lastColumnIndex)===(Pe==null?void 0:Pe.lastColumnIndex))return;B.current=ve;let Ee=!1;Pe!==N.current||!N.current?(jme(ee)?(Xu.flushSync(()=>{V(Pe)}),Ee=!0):V(Pe),N.current=Pe):Ee=!0,Pe&&Ee&&H(Pe)},[H,V]),K=u.useCallback(ve=>_(ve.field),[]),Y=u.useCallback(()=>_(""),[]),ie=u.useCallback(ve=>x(ve.field),[]),re=u.useCallback(()=>x(""),[]);lt(k,"columnResizeStart",K),lt(k,"columnResizeStop",Y),lt(k,"columnHeaderDragStart",ie),lt(k,"columnHeaderDragEnd",re),lt(k,"scrollPositionChange",W);const de=ve=>{const{renderContext:Pe=A,minFirstColumn:ee=n,maxLastColumn:_e=r.length}=ve||{};if(!Pe)return null;const[Re,Ee]=Sl({firstIndex:Pe.firstRowIndex,lastIndex:Pe.lastRowIndex,minFirstIndex:0,maxLastIndex:M.rows.length,buffer:I.rowBuffer}),pe=D.current({firstColumnIndex:Pe.firstColumnIndex,minColumnIndex:ee,columnBuffer:I.columnBuffer,apiRef:k,firstRowToRender:Re,lastRowToRender:Ee,visibleRows:M.rows}),be=Math.min(Pe.lastColumnIndex+I.columnBuffer,_e);return{renderedColumns:r.slice(pe,be),firstColumnToRender:pe,lastColumnToRender:be,minFirstColumn:ee,maxLastColumn:_e}},se=(ve,Pe={})=>{const ee=de(ve);if(ee==null)return null;const{renderedColumns:_e,firstColumnToRender:Re}=ee,Ee=[];for(let pe=0;pe<_e.length;pe+=1){const be=_e[pe],te=Re+pe,Oe=te===0,Ye=a!==null&&a.field===be.field||Oe&&!E?0:-1,Ke=d!==null&&d.field===be.field,Ue=g.open&&g.field===be.field;Ee.push(T.jsx(Zue,S({},o[be.field],{columnMenuOpen:Ue,filterItemsCounter:i[be.field]&&i[be.field].length,headerHeight:z,isDragging:be.field===C,colDef:be,colIndex:te,isResizing:P===be.field,hasFocus:Ke,tabIndex:Ye},Pe),be.field))}return T.jsx(sM,{role:"row","aria-rowindex":m+1,ownerState:I,children:Ee})},le=ve=>{if(m===0)return null;const Pe=de(ve);if(Pe==null||Pe.renderedColumns.length===0)return null;const{firstColumnToRender:ee,lastColumnToRender:_e}=Pe,Re=[],Ee=[];for(let te=0;te<m;te+=1){var pe,be;const Oe=v[te],Ye=r[ee].field,Ke=(pe=k.current.unstable_getColumnGroupPath(Ye)[te])!=null?pe:null,Ue=Oe.findIndex(({groupId:Ze,columnFields:Ie})=>Ze===Ke&&Ie.includes(Ye)),Be=r[_e-1].field,ft=(be=k.current.unstable_getColumnGroupPath(Be)[te])!=null?be:null,yt=Oe.findIndex(({groupId:Ze,columnFields:Ie})=>Ze===ft&&Ie.includes(Be)),ut=Oe.slice(Ue,yt+1).map(Ze=>S({},Ze,{columnFields:Ze.columnFields.filter(Ie=>y[Ie]!==!1)})).filter(Ze=>Ze.columnFields.length>0),It=ut[0].columnFields.indexOf(Ye),De=ut[0].columnFields.slice(0,It).reduce((Ze,Ie)=>{var Fe;const Ve=k.current.getColumn(Ie);return Ze+((Fe=Ve.computedWidth)!=null?Fe:0)},0);let Ae=ee;const ze=ut.map(({groupId:Ze,columnFields:Ie})=>{const Fe=p!==null&&p.depth===te&&Ie.includes(p.field),Ve=c!==null&&c.depth===te&&Ie.includes(c.field)?0:-1,it={groupId:Ze,width:Ie.reduce((mt,tn)=>mt+k.current.getColumn(tn).computedWidth,0),fields:Ie,colIndex:Ae,hasFocus:Fe,tabIndex:Ve};return Ae+=Ie.length,it});Ee.push({leftOverflow:De,elements:ze})}return Ee.forEach((te,Oe)=>{Re.push(T.jsx(sM,{style:{height:`${z}px`,transform:`translateX(-${te.leftOverflow}px)`},role:"row","aria-rowindex":Oe+1,ownerState:I,children:te.elements.map(({groupId:Ye,width:Ke,fields:Ue,colIndex:Be,hasFocus:ft,tabIndex:yt},ut)=>T.jsx(zme,{groupId:Ye,width:Ke,fields:Ue,colIndex:Be,depth:Oe,isLastColumn:Be===r.length-Ue.length,maxDepth:Ee.length,height:z,hasFocus:ft,tabIndex:yt},ut))},Oe))}),Re},ke={minHeight:L,maxHeight:L,lineHeight:`${z}px`};return{renderContext:A,getColumnHeaders:se,getColumnsToRender:de,getColumnGroupHeaders:le,isDragging:!!C,getRootProps:(ve={})=>S({style:ke},ve),getInnerProps:()=>({ref:F,role:"rowgroup"}),headerHeight:z}},Vme=["className"],Ume=e=>{const{classes:t}=e;return Me({root:["columnHeaders","withBorderColor"]},Bt,t)},Wme=gr("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)"}),Gme=u.forwardRef(function(t,n){const{className:r}=t,o=ne(t,Vme),i=et(),s=Ume(i);return T.jsx(Wme,S({ref:n,className:he(r,s.root),ownerState:i},o))}),Kme=["isDragging","className"],qme=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return Me({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},Bt,r)},Yme=gr("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${X.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})(()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${X.columnHeaderDropZone} .${X.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${X["columnHeadersInner--scrollable"]} .${X.columnHeader}:last-child`]:{borderRight:"none"}})),Qme=u.forwardRef(function(t,n){var r,o;const{isDragging:i,className:s}=t,a=ne(t,Kme),c=Nt(),d=et(),p=S({},d,{isDragging:i,hasScrollX:(r=(o=c.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1}),h=qme(p);return T.jsx(Yme,S({ref:n,className:he(s,h.root),ownerState:p},a))}),Xme=["innerRef","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnPositions","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","densityFactor","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],Jme=u.forwardRef(function(t,n){const{innerRef:r,visibleColumns:o,sortColumnLookup:i,filterColumnLookup:s,columnPositions:a,columnHeaderTabIndexState:c,columnGroupHeaderTabIndexState:d,columnHeaderFocus:p,columnGroupHeaderFocus:h,densityFactor:m,headerGroupingMaxDepth:g,columnMenuState:y,columnVisibility:v,columnGroupsHeaderStructure:E,hasOtherElementInTabSequence:w}=t,C=ne(t,Xme),{isDragging:x,getRootProps:P,getInnerProps:_,getColumnHeaders:k,getColumnGroupHeaders:I}=Hme({innerRef:r,visibleColumns:o,sortColumnLookup:i,filterColumnLookup:s,columnPositions:a,columnHeaderTabIndexState:c,columnGroupHeaderTabIndexState:d,columnHeaderFocus:p,columnGroupHeaderFocus:h,densityFactor:m,headerGroupingMaxDepth:g,columnMenuState:y,columnVisibility:v,columnGroupsHeaderStructure:E,hasOtherElementInTabSequence:w});return T.jsx(Gme,S({ref:n},P(C),{children:T.jsxs(Qme,S({isDragging:x},_(),{children:[I(),k()]}))}))}),Zme=$y(Jme),ege=u.forwardRef(function(t,n){const o=Nt().current.getLocaleText("noResultsOverlayLabel");return T.jsx(lE,S({ref:n},t,{children:o}))}),tge=["sortingOrder"],nge=u.memo(function(t){const{sortingOrder:n}=t,r=ne(t,tge),o=et(),[i]=n,s=i==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return s?T.jsx(s,S({},r)):null}),rge=["native"];function oge(e){let{native:t}=e,n=ne(e,rge);return t?T.jsx("option",S({},n)):T.jsx(Or,S({},n))}const ige={BooleanCellTrueIcon:qde,BooleanCellFalseIcon:nb,ColumnMenuIcon:Ude,OpenFilterButtonIcon:Dde,FilterPanelDeleteIcon:nb,ColumnFilteredIcon:jR,ColumnSelectorIcon:Bde,ColumnUnsortedIcon:nge,ColumnSortedAscendingIcon:DR,ColumnSortedDescendingIcon:NR,ColumnResizeIcon:zde,DensityCompactIcon:jde,DensityStandardIcon:Hde,DensityComfortableIcon:Vde,ExportIcon:Kde,MoreActionsIcon:Yde,TreeDataCollapseIcon:zR,TreeDataExpandIcon:BR,GroupingCriteriaCollapseIcon:zR,GroupingCriteriaExpandIcon:BR,DetailPanelExpandIcon:HR,DetailPanelCollapseIcon:Wde,RowReorderIcon:VR,QuickFilterIcon:Nde,QuickFilterClearIcon:nb,ColumnMenuHideIcon:Qde,ColumnMenuSortAscendingIcon:DR,ColumnMenuSortDescendingIcon:NR,ColumnMenuFilterIcon:jR,ColumnMenuManageColumnsIcon:Xde,ColumnMenuClearIcon:Jde,LoadIcon:Gde,FilterPanelAddIcon:HR,FilterPanelRemoveAllIcon:Zde,ColumnReorderIcon:VR},sge=S({},ige,{BaseCheckbox:bL,BaseTextField:id,BaseFormControl:PL,BaseSelect:Qx,BaseSwitch:WL,BaseButton:Qn,BaseIconButton:ai,BaseInputAdornment:qa,BaseTooltip:od,BasePopper:oc,BaseInputLabel:FL,BaseSelectOption:oge,BaseChip:Ux}),lge=sge,age=S({},lge,{Cell:qw,SkeletonCell:bue,ColumnHeaderFilterIconButton:$de,ColumnMenu:hfe,ColumnHeaders:Zme,Footer:_pe,Toolbar:null,PreferencesPanel:Hfe,LoadingOverlay:Rpe,NoResultsOverlay:ege,NoRowsOverlay:Mpe,Pagination:Ope,FilterPanel:dpe,ColumnsPanel:Afe,Panel:jfe,Row:Upe}),Y4=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>S({},t,{[`${n.charAt(0).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function cge({defaultSlots:e,slots:t,components:n}){const r=t!=null?t:n?Y4(n):null;return!r||Object.keys(r).length===0?e:S({},e,r)}const uge=["components","componentsProps"];function dge(e){var t;const n=Object.keys(e);if(!n.some(i=>i.startsWith("aria-")||i.startsWith("data-")))return e;const r={},o=(t=e.forwardedProps)!=null?t:{};for(let i=0;i<n.length;i+=1){const s=n[i];s.startsWith("aria-")||s.startsWith("data-")?o[s]=e[s]:r[s]=e[s]}return r.forwardedProps=o,r}function fge(e){return u.useMemo(()=>{const{components:t,componentsProps:n}=e,r=ne(e,uge);return[t,n,dge(r)]},[e])}const pge={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleRowSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},Q4={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,disableMultipleColumnsFiltering:!1,disableMultipleRowSelection:!1,disableMultipleColumnsSorting:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:ys.Cell,filterMode:"client",columnHeaderHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!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:" "},hge=Y4(age),mge=e=>{const[t,n,r]=fge(nt({props:e,name:"MuiDataGrid"})),o=u.useMemo(()=>S({},Pme,r.localeText),[r.localeText]),i=u.useMemo(()=>cge({defaultSlots:hge,slots:r.slots,components:t}),[t,r.slots]);return u.useMemo(()=>{var s;return S({},Q4,r,{localeText:o,slots:i,slotProps:(s=r.slotProps)!=null?s:n},pge)},[r,o,i,n])},gge=e=>S({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),lM=(e,t,n)=>typeof e=="number"&&e>0?e:t,vge=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,i=u.useRef(Object.create(null)),s=u.useRef(-1),a=u.useRef(!1),c=Ge(e,cd),d=Ge(e,wr),p=Ge(e,S4),h=Ge(e,ei),m=cc(e,t),g=Ge(e,ad),y=lM(t.rowHeight,Q4.rowHeight),v=Math.floor(y*c),E=u.useCallback(()=>{var N,B;a.current=!1;const M=V=>{i.current[V.id]||(i.current[V.id]={sizes:{baseCenter:v},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:D,needsFirstMeasurement:H,sizes:W}=i.current[V.id];let K=typeof v=="number"&&v>0?v:52;const Y=W.baseCenter;if(D)K=Y;else if(n){const le=n(S({},V,{densityFactor:c}));if(le==="auto"){if(H){const ke=o?o(S({},V,{densityFactor:c})):v;K=ke!=null?ke:v}else K=Y;a.current=!0,i.current[V.id].autoHeight=!0}else K=lM(le,v),i.current[V.id].needsFirstMeasurement=!1,i.current[V.id].autoHeight=!1}else i.current[V.id].needsFirstMeasurement=!1;const ie={};for(const le in W)/^base[A-Z]/.test(le)&&(ie[le]=W[le]);if(ie.baseCenter=K,r){var re,de;const le=e.current.getRowIndexRelativeToVisibleRows(V.id),ke=r(S({},V,{isFirstVisible:le===0,isLastVisible:le===m.rows.length-1,indexRelativeToCurrentPage:le}));ie.spacingTop=(re=ke.top)!=null?re:0,ie.spacingBottom=(de=ke.bottom)!=null?de:0}const se=e.current.unstable_applyPipeProcessors("rowHeight",ie,V);return i.current[V.id].sizes=se,se},L=[],z=m.rows.reduce((V,D)=>{L.push(V);let H=0,W=0;const K=M(D);for(const Y in K){const ie=K[Y];/^base[A-Z]/.test(Y)?H=ie>H?ie:H:W+=ie}return V+H+W},0);g==null||(N=g.top)==null||N.forEach(V=>{M(V)}),g==null||(B=g.bottom)==null||B.forEach(V=>{M(V)}),e.current.setState(V=>S({},V,{rowsMeta:{currentPageTotalHeight:z,positions:L}})),a.current||(s.current=1/0),e.current.forceUpdate()},[e,m.rows,v,n,r,o,g,c]),w=u.useCallback(N=>{const B=i.current[N];return B?B.sizes.baseCenter:v},[v]),C=N=>{var B;return(B=i.current[N])==null?void 0:B.sizes},x=u.useCallback((N,B)=>{i.current[N].sizes.baseCenter=B,i.current[N].isResized=!0,i.current[N].needsFirstMeasurement=!1,E()},[E]),P=u.useMemo(()=>Ks(E),[E]),_=u.useCallback((N,B,M)=>{if(!i.current[N]||!i.current[N].autoHeight)return;const L=i.current[N].sizes[`base${ue(M)}`]!==B;i.current[N].needsFirstMeasurement=!1,i.current[N].sizes[`base${ue(M)}`]=B,L&&P()},[P]),k=u.useCallback(N=>{var B;return((B=i.current[N])==null?void 0:B.autoHeight)||!1},[]),I=u.useCallback(()=>s.current,[]),R=u.useCallback(N=>{a.current&&N>s.current&&(s.current=N)},[]),F=u.useCallback(()=>{i.current={},E()},[E]);u.useEffect(()=>{E()},[v,d,p,h,E]),hE(e,"rowHeight",E);const A={unstable_setLastMeasuredRowIndex:R,unstable_getRowHeight:w,unstable_getRowInternalSizes:C,unstable_setRowHeight:x,unstable_storeRowHeightMeasurement:_,resetRowHeights:F},O={getLastMeasuredRowIndex:I,rowHasAutoHeight:k};Lt(e,A,"public"),Lt(e,O,"private")},yge=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(s=>{s()}),e.current.forceUpdate()},[e]);Lt(e,{exportState:t,restoreState:n},"public")},bge=e=>{const t=u.useRef({}),n=u.useCallback((d,p,h)=>{const m=t.current;m[d]||(m[d]={}),m[d][p]=h},[]),r=u.useCallback((d,p)=>{var h;return(h=t.current[d])==null?void 0:h[p]},[]),o=u.useCallback(d=>{const{columnIndex:p,rowId:h,minFirstColumnIndex:m,maxLastColumnIndex:g,columns:y}=d,v=y.length,E=y[p],w=typeof E.colSpan=="function"?E.colSpan(e.current.getCellParams(h,E.field)):E.colSpan;if(!w||w===1)return n(h,p,{spannedByColSpan:!1,cellProps:{colSpan:1,width:E.computedWidth}}),{colSpan:1};let C=E.computedWidth;for(let x=1;x<w;x+=1){const P=p+x;if(P>=m&&P<g){const _=y[P];C+=_.computedWidth,n(h,p+x,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(p+w,v-1),leftVisibleCellIndex:p})}n(h,p,{spannedByColSpan:!1,cellProps:{colSpan:w,width:C}})}return{colSpan:w}},[e,n]),i=u.useCallback(({rowId:d,minFirstColumn:p,maxLastColumn:h,columns:m})=>{for(let g=p;g<h;g+=1){const y=o({columnIndex:g,rowId:d,minFirstColumnIndex:p,maxLastColumnIndex:h,columns:m});y.colSpan>1&&(g+=y.colSpan-1)}},[o]),s={unstable_getCellColSpanInfo:r},a={calculateColSpan:i};Lt(e,s,"public"),Lt(e,a,"private");const c=u.useCallback(()=>{t.current={}},[]);lt(e,"columnOrderChange",c)},X4=(e,t,n)=>{if(a4(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(`
344
+ `));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{X4(i,[...t,r],n)})},tC=e=>{if(!e)return{};const t={};return e.forEach(n=>{X4(n,[],t)}),t},nC=(e,t)=>{const n=s=>{var a;return(a=t[s])!=null?a:[]},r=[],o=Math.max(...e.map(s=>n(s).length)),i=(s,a,c)=>La(n(s).slice(0,c+1),n(a).slice(0,c+1));for(let s=0;s<o;s+=1){const a=e.reduce((c,d)=>{var p;const h=(p=n(d)[s])!=null?p:null;if(c.length===0)return[{columnFields:[d],groupId:h}];const m=c[c.length-1],g=m.columnFields[m.columnFields.length-1];return m.groupId!==h||!i(g,d,s)?[...c,{columnFields:[d],groupId:h}]:[...c.slice(0,c.length-1),{columnFields:[...m.columnFields,d],groupId:h}]},[]);r.push(a)}return r},wge=["groupId","children"],gE=e=>{let t={};return e.forEach(n=>{if(a4(n))return;const{groupId:r,children:o}=n,i=ne(n,wge);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 s=S({},i,{groupId:r}),a=gE(o);if(a[r]!==void 0||t[r]!==void 0)throw new Error(`MUI: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=S({},t,a,{[r]:s})}),S({},t)},Cge=(e,t,n)=>{var r,o,i;if(!((r=t.experimentalFeatures)!=null&&r.columnGrouping))return e;const s=Hs(n),a=xy(n),c=gE((o=t.columnGroupingModel)!=null?o:[]),d=tC((i=t.columnGroupingModel)!=null?i:[]),p=nC(s,d),h=a.length===0?0:Math.max(...a.map(m=>{var g,y;return(g=(y=d[m])==null?void 0:y.length)!=null?g:0}));return S({},e,{columnGrouping:{lookup:c,unwrappedGroupingModel:d,headerStructure:p,maxDepth:h}})},xge=(e,t)=>{var n;const r=u.useCallback(c=>{var d;return(d=lce(e)[c])!=null?d:[]},[e]),o=u.useCallback(()=>r4(e),[e]);Lt(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o},"public");const s=u.useCallback(()=>{var c;const d=tC((c=t.columnGroupingModel)!=null?c:[]);e.current.setState(p=>{var h,m;const g=(h=(m=p.columns)==null?void 0:m.orderedFields)!=null?h:[],y=nC(g,d);return S({},p,{columnGrouping:S({},p.columnGrouping,{headerStructure:y})})})},[e,t.columnGroupingModel]),a=u.useCallback(c=>{var d;if(!((d=t.experimentalFeatures)!=null&&d.columnGrouping))return;const p=Hs(e),h=xy(e),m=gE(c!=null?c:[]),g=tC(c!=null?c:[]),y=nC(p,g),v=h.length===0?0:Math.max(...h.map(E=>{var w,C;return(w=(C=g[E])==null?void 0:C.length)!=null?w:0}));e.current.setState(E=>S({},E,{columnGrouping:{lookup:m,unwrappedGroupingModel:g,headerStructure:y,maxDepth:v}}))},[e,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);lt(e,"columnIndexChange",s),lt(e,"columnsChange",()=>{a(t.columnGroupingModel)}),lt(e,"columnVisibilityModelChange",()=>{a(t.columnGroupingModel)}),u.useEffect(()=>{a(t.columnGroupingModel)},[a,t.columnGroupingModel])},Sge=(e,t)=>{const n=ihe(e,t);return kme(n,t),xme(n),xo(Sme,n,t),xo(Rhe,n,t),xo(vme,n,t),xo(mme,n,t),xo(Zhe,n,t),xo(_me,n,t),xo(ime,n,t),xo(Qhe,n,t),xo(Fhe,n,t),xo(rme,n,t),xo(gge,n,t),xo(Phe,n,t),xo(Cge,n,t),nme(n,t),Eme(n,t),Mhe(n,t),yme(n,t),Pce(n,t),bge(n),xge(n,t),gme(n,t),eme(n,t),sme(n,t),Jhe(n,t),$me(n,t),Lhe(n,t),ome(n,t),vge(n,t),Rme(n,t),Ihe(n),Nhe(n,t),jhe(n,t),Ehe(n,t),Ome(n,t),Mme(n,t),yge(n),n},Ege=e=>{const{classes:t}=e;return Me({root:["virtualScroller"]},Bt,t)},Pge=gr("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"}}),Ige=u.forwardRef(function(t,n){const r=et(),o=Ege(r);return T.jsx(Pge,S({ref:n},t,{className:he(o.root,t.className),ownerState:r}))}),kge=(e,t)=>{const{classes:n}=e;return Me({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},Bt,n)},_ge=gr("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),$ge=u.forwardRef(function(t,n){var r;const o=et(),i=!o.autoHeight&&((r=t.style)==null?void 0:r.minHeight)==="auto",s=kge(o,i);return T.jsx(_ge,S({ref:n},t,{ownerState:o,className:he(s.root,t.className)}))}),Rge=["className"],Mge=e=>{const{classes:t}=e;return Me({root:["virtualScrollerRenderZone"]},Bt,t)},Tge=gr("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),Oge=u.forwardRef(function(t,n){const{className:r}=t,o=ne(t,Rge),i=et(),s=Mge(i);return T.jsx(Tge,S({ref:n,className:he(s.root,r),ownerState:i},o))}),Fge=["className","disableVirtualization"],Lge=u.forwardRef(function(t,n){const{className:r,disableVirtualization:o}=t,i=ne(t,Fge),{getRootProps:s,getContentProps:a,getRenderZoneProps:c,getRows:d}=Nme({ref:n,disableVirtualization:o});return T.jsxs(Ige,S({className:r},s(i),{children:[T.jsx(yce,{}),T.jsx($ge,S({},a(),{children:T.jsx(Oge,S({},c(),{children:d()}))}))]}))}),J4=u.forwardRef(function(t,n){const r=mge(t),o=Sge(r.apiRef,r);return T.jsx(Wpe,{privateApiRef:o,props:r,children:T.jsxs(Eue,S({className:r.className,style:r.style,sx:r.sx,ref:n},r.forwardedProps,{children:[T.jsx($pe,{}),T.jsx(cce,{VirtualScrollerComponent:Lge}),T.jsx(uce,{})]}))})}),Z4=u.memo(J4);J4.propTypes={apiRef:ae.shape({current:ae.object.isRequired}),"aria-label":ae.string,"aria-labelledby":ae.string,autoHeight:ae.bool,autoPageSize:ae.bool,cellModesModel:ae.object,checkboxSelection:ae.bool,classes:ae.object,clipboardCopyCellDelimiter:ae.string,columnBuffer:ae.number,columnGroupingModel:ae.arrayOf(ae.object),columnHeaderHeight:ae.number,columns:MV(ae.array.isRequired),columnThreshold:ae.number,columnVisibilityModel:ae.object,components:ae.object,componentsProps:ae.object,density:ae.oneOf(["comfortable","compact","standard"]),disableColumnFilter:ae.bool,disableColumnMenu:ae.bool,disableColumnSelector:ae.bool,disableDensitySelector:ae.bool,disableRowSelectionOnClick:ae.bool,disableVirtualization:ae.bool,editMode:ae.oneOf(["cell","row"]),experimentalFeatures:ae.shape({columnGrouping:ae.bool,warnIfFocusStateIsNotSynced:ae.bool}),filterMode:ae.oneOf(["client","server"]),filterModel:ae.shape({items:ae.arrayOf(ae.shape({field:ae.string.isRequired,id:ae.oneOfType([ae.number,ae.string]),operator:ae.string.isRequired,value:ae.any})).isRequired,logicOperator:ae.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:ae.bool,quickFilterLogicOperator:ae.oneOf(["and","or"]),quickFilterValues:ae.array}),forwardedProps:ae.object,getCellClassName:ae.func,getDetailPanelContent:ae.func,getEstimatedRowHeight:ae.func,getRowClassName:ae.func,getRowHeight:ae.func,getRowId:ae.func,getRowSpacing:ae.func,hideFooter:ae.bool,hideFooterPagination:ae.bool,hideFooterSelectedRowCount:ae.bool,initialState:ae.object,isCellEditable:ae.func,isRowSelectable:ae.func,keepNonExistentRowsSelected:ae.bool,loading:ae.bool,localeText:ae.object,logger:ae.shape({debug:ae.func.isRequired,error:ae.func.isRequired,info:ae.func.isRequired,warn:ae.func.isRequired}),logLevel:ae.oneOf(["debug","error","info","warn",!1]),nonce:ae.string,onCellClick:ae.func,onCellDoubleClick:ae.func,onCellEditStart:ae.func,onCellEditStop:ae.func,onCellKeyDown:ae.func,onCellModesModelChange:ae.func,onClipboardCopy:ae.func,onColumnHeaderClick:ae.func,onColumnHeaderDoubleClick:ae.func,onColumnHeaderEnter:ae.func,onColumnHeaderLeave:ae.func,onColumnHeaderOut:ae.func,onColumnHeaderOver:ae.func,onColumnOrderChange:ae.func,onColumnVisibilityModelChange:ae.func,onFilterModelChange:ae.func,onMenuClose:ae.func,onMenuOpen:ae.func,onPaginationModelChange:ae.func,onPreferencePanelClose:ae.func,onPreferencePanelOpen:ae.func,onProcessRowUpdateError:ae.func,onResize:ae.func,onRowClick:ae.func,onRowDoubleClick:ae.func,onRowEditCommit:ae.func,onRowEditStart:ae.func,onRowEditStop:ae.func,onRowModesModelChange:ae.func,onRowSelectionModelChange:ae.func,onSortModelChange:ae.func,onStateChange:ae.func,pageSizeOptions:ae.arrayOf(ae.oneOfType([ae.number,ae.shape({label:ae.string.isRequired,value:ae.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(`
345
+ `)):null,paginationMode:ae.oneOf(["client","server"]),paginationModel:ae.shape({page:ae.number.isRequired,pageSize:ae.number.isRequired}),processRowUpdate:ae.func,rowBuffer:ae.number,rowCount:ae.number,rowHeight:ae.number,rowModesModel:ae.object,rows:ae.arrayOf(ae.object).isRequired,rowSelection:ae.bool,rowSelectionModel:ae.oneOfType([ae.arrayOf(ae.oneOfType([ae.number,ae.string]).isRequired),ae.number,ae.string]),rowSpacingType:ae.oneOf(["border","margin"]),rowThreshold:ae.number,scrollbarSize:ae.number,showCellVerticalBorder:ae.bool,showColumnVerticalBorder:ae.bool,slotProps:ae.object,slots:ae.object,sortingMode:ae.oneOf(["client","server"]),sortingOrder:ae.arrayOf(ae.oneOf(["asc","desc"])),sortModel:ae.arrayOf(ae.shape({field:ae.string.isRequired,sort:ae.oneOf(["asc","desc"])})),sx:ae.oneOfType([ae.arrayOf(ae.oneOfType([ae.func,ae.object,ae.bool])),ae.func,ae.object]),unstable_ignoreValueFormatterDuringExport:ae.oneOfType([ae.shape({clipboardExport:ae.bool,csvExport:ae.bool}),ae.bool])};const sb="Actions";function Hp(a){var c=a,{columns:e,initialState:t={},actions:n,actionsProps:r,initializing:o,noRows:i}=c,s=Wt(c,["columns","initialState","actions","actionsProps","initializing","noRows"]);const{width:d}=CS(),p=lr(),h=kae(),[m,g]=u.useState(0),y=u.useMemo(()=>{const P=e.map(_=>{const{mergeRender:k}=_;if(!k)return _;const A=k,{other:I,override:R}=A,F=Wt(A,["other","override"]);return Pt(Ce({},_),{originalRenderCell:_.renderCell||!0,renderCell(O){const{columns:N}=O.api.store.getSnapshot(),B=N.columnVisibilityModel[I]===!1;return u.createElement(Le,{},_.renderCell?_.renderCell(O):O.formattedValue,B&&u.createElement(Le,F,x(Ce(Ce({},N.lookup[I]),R),O.row)))}})});return n&&P.push(Ce({field:sb,width:40*m,headerName:"",align:"center",headerAlign:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell(_){const k=n(Ce(Ce({},_.row),_));return setTimeout(()=>g(k.length)),u.createElement(Le,{whiteSpace:"nowrap"},...k)}},r)),P},[e,n,m]),v=u.useMemo(()=>{if(!d)return;const P=sc(y.map(({field:k,hideUnder:I})=>I&&d<(typeof I=="number"?I:p.breakpoints.values[I])&&k)),_=Object.fromEntries(P.map(k=>[k,!1]));return gt.merge(t,{columns:{columnVisibilityModel:_}}),P},[y]),[E,w]=u.useState({}),C=u.useRef({});if(u.useEffect(()=>{const{current:{id:P,setCurRow:_}}=C;_==null||_(gt.find(s.rows,{id:P}))}),!v)return null;return u.createElement(u.Fragment,{},o&&u.createElement(Le,{position:"relative"},u.createElement(Ig,{sx:{position:"absolute",width:"calc(100% - 2px)",borderRadius:1,m:"1px 1px"}})),u.createElement(Z4,Pt(Ce({initialState:t,columns:y,apiRef:h,slots:Ce({},(i||o)&&{noRowsOverlay:()=>o?null:u.createElement(Lp,{},i)}),onCellClick({field:P,row:_}){if(P===sb)return;const k=h.current.getVisibleColumns().length,I=y.filter(R=>R.renderCell||R.field===sb||_[R.field]!==void 0);I.length<=k||Vo({title:"Details",onClose(){C.current={}},Content(){const[R,F]=u.useState(_),A=u.useRef(_);R&&(A.current=R);const O=A.current;return C.current={id:O.id,setCurRow:F},u.createElement(Le,{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(8em,1fr))",gap:"1em",gridAutoFlow:"dense",minWidth:"max(16em, 40vw)",sx:{opacity:R?void 0:.5}},I.map(N=>u.createElement(Le,{key:N.field,gridColumn:N.flex&&"1/-1"},u.createElement(Le,{bgcolor:"#0003",p:1},N.headerName||N.field),u.createElement(ji,{minHeight:"2.5em",px:1,alignItems:"center",wordBreak:"break-word"},x(N,O)))))}})}},s),{onColumnVisibilityModelChange:P=>w(P),columnVisibilityModel:Ce(Ce(Ce({},Object.fromEntries(v.map(P=>[P,!1]))),s.columnVisibilityModel),E)})));function x(P,_){const k=h.current;let I=_[P.field];P.valueGetter&&(I=P.valueGetter({value:I,api:k,row:_,field:P.field,id:_.id}));const R=P.originalRenderCell||P.renderCell;return R&&R!==!0?R(Ce({value:I,row:_,api:k},_)):P.valueFormatter?P.valueFormatter(Ce({value:I},_)):I}}function Age(){return u.createElement(u.Fragment,{},u.createElement(Nge),u.createElement(Bge))}const Dge=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function Nge(){const{data:e,element:t}=Gr("get_status"),{data:n}=Yie("get_connection_stats");e&&n&&Object.assign(e,n);const r=Xl("md"),o=Xl("sm");return t||u.createElement(Le,{display:"flex",flexWrap:"wrap",gap:"1em",mb:2},r&&i("started"),r&&i("http",{label:"HTTP",render:s}),r&&i("https",{label:"HTTPS",render:s}),o&&i("connections"),i("sent",{render:Ql,minWidth:"4em"}),o&&i("got",{render:Ql,minWidth:"4em"}),i("outSpeed",{label:"Output speed",render:eD}));function i(a,{label:c,minWidth:d,render:p}={}){let h=gt.get(e,a);if(h===void 0)return null;typeof h=="string"&&Dge.test(h)&&(h=new Date(h).toLocaleString());let m;return p&&(h=p(h),Array.isArray(h)&&([h,m]=h)),c||(c=gt.capitalize(a.replaceAll("_"," "))),u.createElement(Ux,{variant:"filled",color:m,label:u.createElement(u.Fragment,{},u.createElement("b",{},c),": ",u.createElement("span",{style:{display:"inline-block",minWidth:d}},h))})}function s(a){return a.listening?["port "+a.port,"success"]:a.error?[a.error,"error"]:"off"}}function Bge(){const{list:e,error:t,props:n}=lc("get_connections"),[r,o]=u.useState(!0),[i,s]=u.useState(!1),a=u.useMemo(()=>e==null?void 0:e.filter(c=>!r||c.path).map((c,d)=>Ce({id:d},c)),[!i&&e,r]);return u.createElement(u.Fragment,{},u.createElement(Le,{display:"flex",alignItems:"center"},u.createElement(vs,{fullWidth:!1,value:r,onChange:o,options:{"Show only files":!0,"Show all connections":!1}}),u.createElement(Le,{flex:1}),u.createElement(Gn,{title:i?"Resume":"Pause",icon:i?Cy:VA,sx:{mr:1},onClick(){s(!i)}})),t?u.createElement(Kr,{severity:"error"},t):u.createElement(Hp,{rows:a,noRows:r&&"No downloads at the moment",columns:[{field:"ip",headerName:"Address",flex:1,maxWidth:400,renderCell:({row:c,value:d})=>(d.includes(":")?`[${d}]`:d)+" :"+c.port,mergeRender:{other:"user",fontSize:"small"}},{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:d}){var h;if(!c)return;if(d.archive)return u.createElement(u.Fragment,{},u.createElement(GA,{sx:{mr:1}}),d.archive,u.createElement(Le,{ml:2,color:"text.secondary"},c));const p=c==null?void 0:c.lastIndexOf("/");return u.createElement(u.Fragment,{},d.op&&u.createElement(DA,{icon:d.op==="upload"?Ap:XS,progress:(h=d.opProgress)!=null?h:d.opOffset,offset:d.opOffset,addTitle:d.opTotal&&u.createElement("div",{},"Total: "+Ql(d.opTotal)),sx:{mr:1}}),u.createElement(Le,{},c.slice(p+1),p>0&&u.createElement(Le,{ml:2,fontSize:"x-small",color:"text.secondary"},c.slice(0,p))))}},{field:"outSpeed",headerName:"Speed",width:110,hideUnder:"sm",type:"number",renderCell:({value:c,row:d})=>eD(Math.max(c||0,d.inSpeed||0)),mergeRender:{other:"sent",fontSize:"small",textAlign:"right"}},{field:"sent",headerName:"Sent",type:"number",hideUnder:"md",renderCell:({value:c,row:d})=>Ql(Math.max(c||0,d.got||0))},{field:"v",headerName:"Protocol",align:"center",hideUnder:1/0,renderCell:({value:c,row:d})=>u.createElement(u.Fragment,{},"IPv"+c,to(GS,"HTTPS",{opacity:.5}))},{field:"agent",headerName:"Agent",hideUnder:"lg"}],actionsProps:{hideUnder:"sm"},actions:({row:c})=>[u.createElement(Gn,{icon:UA,title:"Disconnect",onClick:()=>Et("disconnect",gt.pick(c,["ip","port"])).then(()=>Sr("Disconnection requested"))}),u.createElement(Gn,{icon:WA,title:"Block IP",disabled:c.ip===(n==null?void 0:n.you),onClick:()=>zge(c.ip)})]}))}function zge(e){return Rle("block",t=>[...t,{ip:e}])}function eD(e){return e?Ql(e*1e3,{post:"B/s",k:1e3,digits:1}):""}var vE={},jge=rt;Object.defineProperty(vE,"__esModule",{value:!0});var yE=vE.default=void 0,Hge=jge(ot()),Vge=tt(),Uge=(0,Hge.default)((0,Vge.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");yE=vE.default=Uge;var bE={},Wge=rt;Object.defineProperty(bE,"__esModule",{value:!0});var wE=bE.default=void 0,Gge=Wge(ot()),Kge=tt(),qge=(0,Gge.default)((0,Kge.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.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.75 1.83-1.83z"}),"Edit");wE=bE.default=qge;var CE={},Yge=rt;Object.defineProperty(CE,"__esModule",{value:!0});var tl=CE.default=void 0,Qge=Yge(ot()),Xge=tt(),Jge=(0,Qge.default)((0,Xge.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");tl=CE.default=Jge;var xE={},Zge=rt;Object.defineProperty(xE,"__esModule",{value:!0});var SE=xE.default=void 0,eve=Zge(ot()),tve=tt(),nve=(0,eve.default)((0,tve.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward");SE=xE.default=nve;var EE={},rve=rt;Object.defineProperty(EE,"__esModule",{value:!0});var tD=EE.default=void 0,ove=rve(ot()),ive=tt(),sve=(0,ove.default)((0,ive.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");tD=EE.default=sve;var PE={},lve=rt;Object.defineProperty(PE,"__esModule",{value:!0});var nD=PE.default=void 0,ave=lve(ot()),cve=tt(),uve=(0,ave.default)((0,cve.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 8z"}),"Undo");nD=PE.default=uve;function IE(p){var h=p,{label:e,helperText:t,fields:n,value:r,onChange:o,onError:i,setApi:s,reorder:a,prepend:c}=h,d=Wt(h,["label","helperText","fields","value","onChange","onError","setApi","reorder","prepend"]);const m=u.useMemo(()=>(r||[]).map((w,C)=>Ase(Ce({},w),w.hasOwnProperty("id")?{$idx:C}:{id:C})),[JSON.stringify(r)]),g={fields:n.map(P=>{var _=P,{$width:w,$column:C}=_,x=Wt(_,["$width","$column"]);return x})};s==null||s({isEqual:bA});const[y,v]=u.useState();return u.createElement(u.Fragment,{},e&&u.createElement(kL,{sx:{ml:1}},e),t&&u.createElement(Mp,{},t),u.createElement(Le,Ce({},d),u.createElement(Z4,{rows:m,sx:{".MuiDataGrid-virtualScroller":{minHeight:"3em"}},hideFooterSelectedRowCount:!0,hideFooter:!0,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}},columns:[...n.map(w=>{var C;return Ce(Ce({field:w.k,headerName:(C=w.headerName)!=null?C:typeof w.label=="string"?w.label:MA(w.k),disableColumnMenu:!0},w.$width>=8?{width:w.$width}:{flex:w.$width||1}),w.$column)}),{field:"",type:"actions",width:90,headerAlign:"center",renderHeader(){const w="Add";return u.createElement(u.Fragment,{},u.createElement(Gn,{icon:yE,title:w,size:"small",onClick:C=>sp({form:g,title:w}).then(x=>{if(!x)return;const P=(r==null?void 0:r.slice())||[];c?P.unshift(x):P.push(x),E(P,C)})}),y!==void 0&&u.createElement(Gn,{icon:nD,title:"Undo",size:"small",onClick:C=>E(y,C)}))},getActions({row:w}){const{$idx:C=w.id}=w,x="Modify";return[u.createElement(dm,{icon:u.createElement(wE),label:x,title:x,onClick(P){sp({values:w,form:g,title:x}).then(_=>{_&&E(r.map((k,I)=>I===C?_:k),P)})}}),u.createElement(dm,{icon:u.createElement(tl),label:"Delete",showInMenu:a,onClick:P=>E(r.filter((_,k)=>k!==C),P)}),a&&C&&u.createElement(dm,{icon:u.createElement(SE),label:"Move up",showInMenu:!0,onClick:P=>E(mR(r.slice(),C,C-1),P)}),a&&C<m.length-1&&u.createElement(dm,{icon:u.createElement(tD),label:"Move down",showInMenu:!0,onClick:P=>E(mR(r.slice(),C,C+1),P)})].filter(Boolean)}}]})));function E(w,C){o(w,{was:r,event:C}),v(r)}}var kE={},dve=rt;Object.defineProperty(kE,"__esModule",{value:!0});var rD=kE.default=void 0,fve=dve(ot()),pve=tt(),hve=(0,fve.default)((0,pve.jsx)("path",{d:"M5 17h14v2H5zm7-12L5.33 15h13.34z"}),"Eject");rD=kE.default=hve;var _E={},mve=rt;Object.defineProperty(_E,"__esModule",{value:!0});var oD=_E.default=void 0,gve=mve(ot()),vve=tt(),yve=(0,gve.default)((0,vve.jsx)("path",{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"}),"VerticalAlignTop");oD=_E.default=yve;var $E={},bve=rt;Object.defineProperty($E,"__esModule",{value:!0});var iD=$E.default=void 0,wve=bve(ot()),Cve=tt(),xve=(0,wve.default)((0,Cve.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");iD=$E.default=xve;var RE={},Sve=rt;Object.defineProperty(RE,"__esModule",{value:!0});var sD=RE.default=void 0,Eve=Sve(ot()),Pve=tt(),Ive=(0,Eve.default)((0,Pve.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");sD=RE.default=Ive;var ME={},kve=rt;Object.defineProperty(ME,"__esModule",{value:!0});var lD=ME.default=void 0,_ve=kve(ot()),aM=tt(),$ve=(0,_ve.default)([(0,aM.jsx)("path",{d:"M2 16.5C2 19.54 4.46 22 7.5 22s5.5-2.46 5.5-5.5V10H2v6.5zm5.5 2C6.12 18.5 5 17.83 5 17h5c0 .83-1.12 1.5-2.5 1.5zM10 13c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-5 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z"},"0"),(0,aM.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.5V3H11zm3 5.08c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1c0 .56-.45 1-1 1zm5 0c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1c0 .56-.45 1-1 1z"},"1")],"TheaterComedy");lD=ME.default=$ve;var TE={},Rve=rt;Object.defineProperty(TE,"__esModule",{value:!0});var aD=TE.default=void 0,Mve=Rve(ot()),Tve=tt(),Ove=(0,Mve.default)((0,Tve.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-8l-2-2z"}),"Folder");aD=TE.default=Ove;var OE={},Fve=rt;Object.defineProperty(OE,"__esModule",{value:!0});var cD=OE.default=void 0,Lve=Fve(ot()),Ave=tt(),Dve=(0,Lve.default)((0,Ave.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-2V8l-6-6zM6 20V4h7v5h5v11H6z"}),"InsertDriveFileOutlined");cD=OE.default=Dve;var FE={},Nve=rt;Object.defineProperty(FE,"__esModule",{value:!0});var uD=FE.default=void 0,Bve=Nve(ot()),zve=tt(),jve=(0,Bve.default)((0,zve.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.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"RemoveRedEye");uD=FE.default=jve;var LE={},Hve=rt;Object.defineProperty(LE,"__esModule",{value:!0});var dD=LE.default=void 0,Vve=Hve(ot()),Uve=tt(),Wve=(0,Vve.default)((0,Uve.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-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z"}),"Web");dD=LE.default=Wve;var AE={},Gve=rt;Object.defineProperty(AE,"__esModule",{value:!0});var fD=AE.default=void 0,Kve=Gve(ot()),qve=tt(),Yve=(0,Kve.default)((0,qve.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.96z"}),"Cloud");fD=AE.default=Yve;var DE={},Qve=rt;Object.defineProperty(DE,"__esModule",{value:!0});var pD=DE.default=void 0,Xve=Qve(ot()),Jve=tt(),Zve=(0,Xve.default)((0,Jve.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.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"HighlightOff");pD=DE.default=Zve;function eye(){const{close:e}=Vo({title:"Add files or folders",dialogProps:{sx:{minWidth:"min(90vw, 40em)",minHeight:"calc(100vh - 9em)"}},Content(){const t=hD();return u.createElement(u.Fragment,{},u.createElement(Le,{sx:{typography:"body1",px:1,py:2}},"Selected elements will be added under ",t.isRoot?u.createElement("i",{},"Home"):t.id),u.createElement(fN,{from:t.source,onSelect(r){return ct(this,null,function*(){const o=sc(yield Promise.all(r.map(i=>Et("add_vfs",{parent:t.id,source:i}).then(()=>null,s=>[i,s.message]))));o.length&&(yield Gt(u.createElement(Le,{},"Some elements have been rejected",u.createElement("ul",{},o.map(([i,s])=>u.createElement("li",{key:i},i,": ",s)))),"error")),ec(),e()})}}))}})}function tye(){return ct(this,null,function*(){try{const e=yield FA("Enter folder name");if(!e)return;const{id:t}=hD();yield Et("add_vfs",{parent:t,name:e}),ec([t+e]),yield Gt(`Folder "${e}" created`,"success")}catch(e){yield Gt(e)}})}function hD(){const e=pn.selectedFiles[0]||pn.vfs;return e.type==="folder"?e:e.parent}function mD(n){var r=n,{items:e}=r,t=Wt(r,["items"]);const[o,i]=$o.useState(),s=!!o,a=u.useCallback(()=>i(void 0),[]);return u.createElement($o.Fragment,{},u.createElement(Qn,Ce({"aria-controls":s?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":s?"true":void 0,onClick:c=>{i(c.currentTarget)}},t)),u.createElement(BL,{anchorEl:o,open:s,onClose:a,MenuListProps:{"aria-labelledby":"basic-button"},children:e.map((c,d)=>u.createElement(Or,Pt(Ce({key:d},c),{onClick(){var p;a(),(p=c.onClick)==null||p.apply(this,arguments)}})))}))}function nye(){return u.createElement(Le,{display:"flex",gap:2,mb:2,sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"}},u.createElement(mD,{variant:"contained",startIcon:u.createElement(yE),items:[{children:"from disk",onClick:eye},{children:"virtual folder",onClick:tye}]},"Add"),FS(()=>ec()))}const rye={"`":"code","*":"i","**":"b"};function so(e,{linkTarget:t="_blank",onText:n=r=>r}={}){return typeof e!="string"&&(e=e[0]),NE(e,/(`|_|\*\*?)(.+?)\1|(\n)|\[(.+?)\]\((.+?)\)|<([^ >/]+)>(.*?)<\/\6>|<([^ >/]+) *\/>/g,r=>r[4]?u.createElement(Ao,{href:r[5],target:t},n(r[4])):r[3]?u.createElement("br"):r[1]?u.createElement(rye[r[1]]||u.Fragment,{},n(r[2])):u.createElement(r[6]||r[8],{},r[7]),n)}function NE(e,t,n,r=o=>o){const o=[];let i=0,s;for(;(s=t.exec(e))&&(o.push(r(e.slice(i,s.index))),o.push(n(s)),i=s.index+s[0].length,!!t.global););return u.createElement(u.Fragment,{},...o,r(e.slice(i,1/0)))}const BE=Symbol.for("yaml.alias"),rC=Symbol.for("yaml.document"),Vl=Symbol.for("yaml.map"),gD=Symbol.for("yaml.pair"),Xs=Symbol.for("yaml.scalar"),ud=Symbol.for("yaml.seq"),wi=Symbol.for("yaml.node.type"),uc=e=>!!e&&typeof e=="object"&&e[wi]===BE,dd=e=>!!e&&typeof e=="object"&&e[wi]===rC,fd=e=>!!e&&typeof e=="object"&&e[wi]===Vl,Tn=e=>!!e&&typeof e=="object"&&e[wi]===gD,yn=e=>!!e&&typeof e=="object"&&e[wi]===Xs,pd=e=>!!e&&typeof e=="object"&&e[wi]===ud;function Nn(e){if(e&&typeof e=="object")switch(e[wi]){case Vl:case ud:return!0}return!1}function Xn(e){if(e&&typeof e=="object")switch(e[wi]){case BE:case Vl:case Xs:case ud:return!0}return!1}const oye=e=>(yn(e)||Nn(e))&&!!e.anchor,oo=Symbol("break visit"),vD=Symbol("skip children"),hs=Symbol("remove node");function Zl(e,t){const n=yD(t);dd(e)?iu(null,e.contents,n,Object.freeze([e]))===hs&&(e.contents=null):iu(null,e,n,Object.freeze([]))}Zl.BREAK=oo;Zl.SKIP=vD;Zl.REMOVE=hs;function iu(e,t,n,r){const o=bD(e,t,n,r);if(Xn(o)||Tn(o))return wD(e,r,o),iu(e,o,n,r);if(typeof o!="symbol"){if(Nn(t)){r=Object.freeze(r.concat(t));for(let i=0;i<t.items.length;++i){const s=iu(i,t.items[i],n,r);if(typeof s=="number")i=s-1;else{if(s===oo)return oo;s===hs&&(t.items.splice(i,1),i-=1)}}}else if(Tn(t)){r=Object.freeze(r.concat(t));const i=iu("key",t.key,n,r);if(i===oo)return oo;i===hs&&(t.key=null);const s=iu("value",t.value,n,r);if(s===oo)return oo;s===hs&&(t.value=null)}}return o}function My(e,t){return ct(this,null,function*(){const n=yD(t);dd(e)?(yield su(null,e.contents,n,Object.freeze([e])))===hs&&(e.contents=null):yield su(null,e,n,Object.freeze([]))})}My.BREAK=oo;My.SKIP=vD;My.REMOVE=hs;function su(e,t,n,r){return ct(this,null,function*(){const o=yield bD(e,t,n,r);if(Xn(o)||Tn(o))return wD(e,r,o),su(e,o,n,r);if(typeof o!="symbol"){if(Nn(t)){r=Object.freeze(r.concat(t));for(let i=0;i<t.items.length;++i){const s=yield su(i,t.items[i],n,r);if(typeof s=="number")i=s-1;else{if(s===oo)return oo;s===hs&&(t.items.splice(i,1),i-=1)}}}else if(Tn(t)){r=Object.freeze(r.concat(t));const i=yield su("key",t.key,n,r);if(i===oo)return oo;i===hs&&(t.key=null);const s=yield su("value",t.value,n,r);if(s===oo)return oo;s===hs&&(t.value=null)}}return o})}function yD(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 bD(e,t,n,r){var o,i,s,a,c;if(typeof n=="function")return n(e,t,r);if(fd(t))return(o=n.Map)==null?void 0:o.call(n,e,t,r);if(pd(t))return(i=n.Seq)==null?void 0:i.call(n,e,t,r);if(Tn(t))return(s=n.Pair)==null?void 0:s.call(n,e,t,r);if(yn(t))return(a=n.Scalar)==null?void 0:a.call(n,e,t,r);if(uc(t))return(c=n.Alias)==null?void 0:c.call(n,e,t,r)}function wD(e,t,n){const r=t[t.length-1];if(Nn(r))r.items[e]=n;else if(Tn(r))e==="key"?r.key=n:r.value=n;else if(dd(r))r.contents=n;else{const o=uc(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const iye={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},sye=e=>e.replace(/[!,[\]{}]/g,t=>iye[t]);class jr{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},jr.defaultYaml,t),this.tags=Object.assign({},jr.defaultTags,n)}clone(){const t=new jr(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new jr(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:jr.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},jr.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:jr.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},jr.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[i,s]=r;return this.tags[i]=s,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[i]=r;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{const s=/^\d+\.\d+$/.test(i);return n(6,`Unsupported YAML version ${i}`,s),!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 s=t.slice(2,-1);return s==="!"||s==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),s)}const[,r,o]=t.match(/^(.*!)([^!]*)$/);o||n(`The ${t} tag has no suffix`);const i=this.tags[r];return i?i+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+sye(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&&Xn(t.contents)){const i={};Zl(t.contents,(s,a)=>{Xn(a)&&a.tag&&(i[a.tag]=!0)}),o=Object.keys(i)}else o=[];for(const[i,s]of r)i==="!!"&&s==="tag:yaml.org,2002:"||(!t||o.some(a=>a.startsWith(s)))&&n.push(`%TAG ${i} ${s}`);return n.join(`
346
+ `)}}jr.defaultYaml={explicit:!1,version:"1.2"};jr.defaultTags={"!!":"tag:yaml.org,2002:"};function CD(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 xD(e){const t=new Set;return Zl(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function SD(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function lye(e,t){const n=[],r=new Map;let o=null;return{onAnchor:i=>{n.push(i),o||(o=xD(e));const s=SD(t,o);return o.add(s),s},setAnchors:()=>{for(const i of n){const s=r.get(i);if(typeof s=="object"&&s.anchor&&(yn(s.node)||Nn(s.node)))s.node.anchor=s.anchor;else{const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=i,a}}},sourceObjects:r}}function lu(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let o=0,i=r.length;o<i;++o){const s=r[o],a=lu(e,r,String(o),s);a===void 0?delete r[o]:a!==s&&(r[o]=a)}else if(r instanceof Map)for(const o of Array.from(r.keys())){const i=r.get(o),s=lu(e,r,o,i);s===void 0?r.delete(o):s!==i&&r.set(o,s)}else if(r instanceof Set)for(const o of Array.from(r)){const i=lu(e,r,o,o);i===void 0?r.delete(o):i!==o&&(r.delete(o),r.add(i))}else for(const[o,i]of Object.entries(r)){const s=lu(e,r,o,i);s===void 0?delete r[o]:s!==i&&(r[o]=s)}return e.call(t,n,r)}function pi(e,t,n){if(Array.isArray(e))return e.map((r,o)=>pi(r,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!oye(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=i=>{r.res=i,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 zE{constructor(t){Object.defineProperty(this,wi,{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:i}={}){if(!dd(t))throw new TypeError("A document argument is required");const s={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},a=pi(this,"",s);if(typeof o=="function")for(const{count:c,res:d}of s.anchors.values())o(d,c);return typeof i=="function"?lu(i,{"":a},"",a):a}}class Ty extends zE{constructor(t){super(BE),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return Zl(t,{Node:(r,o)=>{if(o===this)return Zl.BREAK;o.anchor===this.source&&(n=o)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:o,maxAliasCount:i}=n,s=this.resolve(o);if(!s){const c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let a=r.get(s);if(a||(pi(s,null,n),a=r.get(s)),!a||a.res===void 0){const c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=zm(o,s,r)),a.count*a.aliasCount>i)){const c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return a.res}toString(t,n,r){const o=`*${this.source}`;if(t){if(CD(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(t.implicitKey)return`${o} `}return o}}function zm(e,t,n){if(uc(t)){const r=t.resolve(e),o=n&&r&&n.get(r);return o?o.count*o.aliasCount:0}else if(Nn(t)){let r=0;for(const o of t.items){const i=zm(e,o,n);i>r&&(r=i)}return r}else if(Tn(t)){const r=zm(e,t.key,n),o=zm(e,t.value,n);return Math.max(r,o)}return 1}const ED=e=>!e||typeof e!="function"&&typeof e!="object";class Rt extends zE{constructor(t){super(Xs),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:pi(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 aye="tag:yaml.org,2002:";function cye(e,t,n){var r;if(t){const o=n.filter(s=>s.tag===t),i=(r=o.find(s=>!s.format))!=null?r:o[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return n.find(o=>{var i;return((i=o.identify)==null?void 0:i.call(o,e))&&!o.format})}function mp(e,t,n){var h,m,g;if(dd(e)&&(e=e.contents),Xn(e))return e;if(Tn(e)){const y=(m=(h=n.schema[Vl]).createNode)==null?void 0:m.call(h,n.schema,null,n);return y.items.push(e),y}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!="undefined"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:o,onTagObj:i,schema:s,sourceObjects:a}=n;let c;if(r&&e&&typeof e=="object"){if(c=a.get(e),c)return c.anchor||(c.anchor=o(e)),new Ty(c.anchor);c={anchor:null,node:null},a.set(e,c)}t!=null&&t.startsWith("!!")&&(t=aye+t.slice(2));let d=cye(e,t,s.tags);if(!d){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const y=new Rt(e);return c&&(c.node=y),y}d=e instanceof Map?s[Vl]:Symbol.iterator in Object(e)?s[ud]:s[Vl]}i&&(i(d),delete n.onTagObj);const p=d!=null&&d.createNode?d.createNode(n.schema,e,n):typeof((g=d==null?void 0:d.nodeClass)==null?void 0:g.from)=="function"?d.nodeClass.from(n.schema,e,n):new Rt(e);return t?p.tag=t:d.default||(p.tag=d.tag),c&&(c.node=p),p}function Wg(e,t,n){let r=n;for(let o=t.length-1;o>=0;--o){const i=t[o];if(typeof i=="number"&&Number.isInteger(i)&&i>=0){const s=[];s[i]=r,r=s}else r=new Map([[i,r]])}return mp(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 df=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class Oy extends zE{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=>Xn(r)||Tn(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(df(t))this.add(n);else{const[r,...o]=t,i=this.get(r,!0);if(Nn(i))i.addIn(o,n);else if(i===void 0&&this.schema)this.set(r,Wg(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(Nn(o))return o.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...o]=t,i=this.get(r,!0);return o.length===0?!n&&yn(i)?i.value:i:Nn(i)?i.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!Tn(n))return!1;const r=n.value;return r==null||t&&yn(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 Nn(o)?o.hasIn(r):!1}setIn(t,n){const[r,...o]=t;if(o.length===0)this.set(r,n);else{const i=this.get(r,!0);if(Nn(i))i.setIn(o,n);else if(i===void 0&&this.schema)this.set(r,Wg(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}}Oy.maxFlowStringSingleLineLength=60;const uye=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Bs(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const Tl=(e,t,n)=>e.endsWith(`
347
+ `)?Bs(n,t):n.includes(`
348
+ `)?`
349
+ `+Bs(n,t):(e.endsWith(" ")?"":" ")+n,PD="flow",oC="block",jm="quoted";function Fy(e,t,n="flow",{indentAtStart:r,lineWidth:o=80,minContentWidth:i=20,onFold:s,onOverflow:a}={}){if(!o||o<0)return e;const c=Math.max(1+i,1+o-t.length);if(e.length<=c)return e;const d=[],p={};let h=o-t.length;typeof r=="number"&&(r>o-Math.max(2,i)?d.push(0):h=o-r);let m,g,y=!1,v=-1,E=-1,w=-1;n===oC&&(v=cM(e,v),v!==-1&&(h=v+c));for(let x;x=e[v+=1];){if(n===jm&&x==="\\"){switch(E=v,e[v+1]){case"x":v+=3;break;case"u":v+=5;break;case"U":v+=9;break;default:v+=1}w=v}if(x===`
350
+ `)n===oC&&(v=cM(e,v)),h=v+c,m=void 0;else{if(x===" "&&g&&g!==" "&&g!==`
351
+ `&&g!==" "){const P=e[v+1];P&&P!==" "&&P!==`
352
+ `&&P!==" "&&(m=v)}if(v>=h)if(m)d.push(m),h=m+c,m=void 0;else if(n===jm){for(;g===" "||g===" ";)g=x,x=e[v+=1],y=!0;const P=v>w+1?v-2:E-1;if(p[P])return e;d.push(P),p[P]=!0,h=P+c,m=void 0}else y=!0}g=x}if(y&&a&&a(),d.length===0)return e;s&&s();let C=e.slice(0,d[0]);for(let x=0;x<d.length;++x){const P=d[x],_=d[x+1]||e.length;P===0?C=`
353
+ ${t}${e.slice(0,_)}`:(n===jm&&p[P]&&(C+=`${e[P]}\\`),C+=`
354
+ ${t}${e.slice(P+1,_)}`)}return C}function cM(e,t){let n=e[t+1];for(;n===" "||n===" ";){do n=e[t+=1];while(n&&n!==`
355
+ `);n=e[t+1]}return t}const Ly=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Ay=e=>/^(%|---|\.\.\.)/m.test(e);function dye(e,t,n){if(!t||t<0)return!1;const r=t-n,o=e.length;if(o<=r)return!1;for(let i=0,s=0;i<o;++i)if(e[i]===`
356
+ `){if(i-s>r)return!0;if(s=i+1,o-s<=r)return!1}return!0}function $f(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(Ay(e)?" ":"");let s="",a=0;for(let c=0,d=n[c];d;d=n[++c])if(d===" "&&n[c+1]==="\\"&&n[c+2]==="n"&&(s+=n.slice(a,c)+"\\ ",c+=1,a=c,d="\\"),d==="\\")switch(n[c+1]){case"u":{s+=n.slice(a,c);const p=n.substr(c+2,4);switch(p){case"0000":s+="\\0";break;case"0007":s+="\\a";break;case"000b":s+="\\v";break;case"001b":s+="\\e";break;case"0085":s+="\\N";break;case"00a0":s+="\\_";break;case"2028":s+="\\L";break;case"2029":s+="\\P";break;default:p.substr(0,2)==="00"?s+="\\x"+p.substr(2):s+=n.substr(c,6)}c+=5,a=c+1}break;case"n":if(r||n[c+2]==='"'||n.length<o)c+=1;else{for(s+=n.slice(a,c)+`
357
+
358
+ `;n[c+2]==="\\"&&n[c+3]==="n"&&n[c+4]!=='"';)s+=`
359
+ `,c+=2;s+=i,n[c+2]===" "&&(s+="\\"),c+=1,a=c+1}break;default:c+=1}return s=a?s+n.slice(a):n,r?s:Fy(s,i,jm,Ly(t,!1))}function iC(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
360
+ `)||/[ \t]\n|\n[ \t]/.test(e))return $f(e,t);const n=t.indent||(Ay(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
361
+ ${n}`)+"'";return t.implicitKey?r:Fy(r,n,PD,Ly(t,!1))}function au(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=$f;else{const o=e.includes('"'),i=e.includes("'");o&&!i?r=iC:i&&!o?r=$f:r=n?iC:$f}return r(e,t)}let sC;try{sC=new RegExp(`(^|(?<!
362
+ ))
363
+ +(?!
364
+ |$)`,"g")}catch(e){sC=/\n+(?!\n|$)/g}function Hm({comment:e,type:t,value:n},r,o,i){const{blockQuote:s,commentString:a,lineWidth:c}=r.options;if(!s||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return au(n,r);const d=r.indent||(r.forceBlockIndent||Ay(n)?" ":""),p=s==="literal"?!0:s==="folded"||t===Rt.BLOCK_FOLDED?!1:t===Rt.BLOCK_LITERAL?!0:!dye(n,c,d.length);if(!n)return p?`|
365
+ `:`>
366
+ `;let h,m;for(m=n.length;m>0;--m){const k=n[m-1];if(k!==`
367
+ `&&k!==" "&&k!==" ")break}let g=n.substring(m);const y=g.indexOf(`
368
+ `);y===-1?h="-":n===g||y!==g.length-1?(h="+",i&&i()):h="",g&&(n=n.slice(0,-g.length),g[g.length-1]===`
369
+ `&&(g=g.slice(0,-1)),g=g.replace(sC,`$&${d}`));let v=!1,E,w=-1;for(E=0;E<n.length;++E){const k=n[E];if(k===" ")v=!0;else if(k===`
370
+ `)w=E;else break}let C=n.substring(0,w<E?w+1:E);C&&(n=n.substring(C.length),C=C.replace(/\n+/g,`$&${d}`));let P=(p?"|":">")+(v?d?"2":"1":"")+h;if(e&&(P+=" "+a(e.replace(/ ?[\r\n]+/g," ")),o&&o()),p)return n=n.replace(/\n+/g,`$&${d}`),`${P}
371
+ ${d}${C}${n}${g}`;n=n.replace(/\n+/g,`
372
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const _=Fy(`${C}${n}${g}`,d,oC,Ly(r,!0));return`${P}
373
+ ${d}${_}`}function fye(e,t,n,r){const{type:o,value:i}=e,{actualString:s,implicitKey:a,indent:c,indentStep:d,inFlow:p}=t;if(a&&/[\n[\]{},]/.test(i)||p&&/[[\]{},]/.test(i))return au(i,t);if(!i||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return a||p||!i.includes(`
374
+ `)?au(i,t):Hm(e,t,n,r);if(!a&&!p&&o!==Rt.PLAIN&&i.includes(`
375
+ `))return Hm(e,t,n,r);if(Ay(i)){if(c==="")return t.forceBlockIndent=!0,Hm(e,t,n,r);if(a&&c===d)return au(i,t)}const h=i.replace(/\n+/g,`$&
376
+ ${c}`);if(s){const m=v=>{var E;return v.default&&v.tag!=="tag:yaml.org,2002:str"&&((E=v.test)==null?void 0:E.test(h))},{compat:g,tags:y}=t.doc.schema;if(y.some(m)||g!=null&&g.some(m))return au(i,t)}return a?h:Fy(h,c,PD,Ly(t,!1))}function Vp(e,t,n,r){const{implicitKey:o,inFlow:i}=t,s=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;a!==Rt.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value)&&(a=Rt.QUOTE_DOUBLE);const c=p=>{switch(p){case Rt.BLOCK_FOLDED:case Rt.BLOCK_LITERAL:return o||i?au(s.value,t):Hm(s,t,n,r);case Rt.QUOTE_DOUBLE:return $f(s.value,t);case Rt.QUOTE_SINGLE:return iC(s.value,t);case Rt.PLAIN:return fye(s,t,n,r);default:return null}};let d=c(a);if(d===null){const{defaultKeyType:p,defaultStringType:h}=t.options,m=o&&p||h;if(d=c(m),d===null)throw new Error(`Unsupported default string type ${m}`)}return d}function ID(e,t){const n=Object.assign({blockQuote:!0,commentString:uye,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 pye(e,t){var o,i,s,a;if(t.tag){const c=e.filter(d=>d.tag===t.tag);if(c.length>0)return(o=c.find(d=>d.format===t.format))!=null?o:c[0]}let n,r;if(yn(t)){r=t.value;const c=e.filter(d=>{var p;return(p=d.identify)==null?void 0:p.call(d,r)});n=(i=c.find(d=>d.format===t.format))!=null?i:c.find(d=>!d.format)}else r=t,n=e.find(c=>c.nodeClass&&r instanceof c.nodeClass);if(!n){const c=(a=(s=r==null?void 0:r.constructor)==null?void 0:s.name)!=null?a:typeof r;throw new Error(`Tag not resolved for ${c} value`)}return n}function hye(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const o=[],i=(yn(e)||Nn(e))&&e.anchor;i&&CD(i)&&(n.add(i),o.push(`&${i}`));const s=e.tag?e.tag:t.default?null:t.tag;return s&&o.push(r.directives.tagString(s)),o.join(" ")}function Gu(e,t,n,r){var c,d;if(Tn(e))return e.toString(t,n,r);if(uc(e)){if(t.doc.directives)return e.toString(t);if((c=t.resolvedAliases)!=null&&c.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 i=Xn(e)?e:t.doc.createNode(e,{onTagObj:p=>o=p});o||(o=pye(t.doc.schema.tags,i));const s=hye(i,o,t);s.length>0&&(t.indentAtStart=((d=t.indentAtStart)!=null?d:0)+s.length+1);const a=typeof o.stringify=="function"?o.stringify(i,t,n,r):yn(i)?Vp(i,t,n,r):i.toString(t,n,r);return s?yn(i)||a[0]==="{"||a[0]==="["?`${s} ${a}`:`${s}
377
+ ${t.indent}${a}`:a}function mye({key:e,value:t},n,r,o){var I,R;const{allNullValues:i,doc:s,indent:a,indentStep:c,options:{commentString:d,indentSeq:p,simpleKeys:h}}=n;let m=Xn(e)&&e.comment||null;if(h){if(m)throw new Error("With simple keys, key nodes cannot have comments");if(Nn(e)){const F="With simple keys, collection cannot be used as a key value";throw new Error(F)}}let g=!h&&(!e||m&&t==null&&!n.inFlow||Nn(e)||(yn(e)?e.type===Rt.BLOCK_FOLDED||e.type===Rt.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!g&&(h||!i),indent:a+c});let y=!1,v=!1,E=Gu(e,n,()=>y=!0,()=>v=!0);if(!g&&!n.inFlow&&E.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");g=!0}if(n.inFlow){if(i||t==null)return y&&r&&r(),E===""?"?":g?`? ${E}`:E}else if(i&&!h||t==null&&g)return E=`? ${E}`,m&&!y?E+=Tl(E,n.indent,d(m)):v&&o&&o(),E;y&&(m=null),g?(m&&(E+=Tl(E,n.indent,d(m))),E=`? ${E}
378
+ ${a}:`):(E=`${E}:`,m&&(E+=Tl(E,n.indent,d(m))));let w,C,x;Xn(t)?(w=!!t.spaceBefore,C=t.commentBefore,x=t.comment):(w=!1,C=null,x=null,t&&typeof t=="object"&&(t=s.createNode(t))),n.implicitKey=!1,!g&&!m&&yn(t)&&(n.indentAtStart=E.length+1),v=!1,!p&&c.length>=2&&!n.inFlow&&!g&&pd(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let P=!1;const _=Gu(t,n,()=>P=!0,()=>v=!0);let k=" ";if(m||w||C){if(k=w?`
379
+ `:"",C){const F=d(C);k+=`
380
+ ${Bs(F,n.indent)}`}_===""&&!n.inFlow?k===`
381
+ `&&(k=`
382
+
383
+ `):k+=`
384
+ ${n.indent}`}else if(!g&&Nn(t)){const F=_[0],A=_.indexOf(`
385
+ `),O=A!==-1,N=(R=(I=n.inFlow)!=null?I:t.flow)!=null?R:t.items.length===0;if(O||!N){let B=!1;if(O&&(F==="&"||F==="!")){let M=_.indexOf(" ");F==="&"&&M!==-1&&M<A&&_[M+1]==="!"&&(M=_.indexOf(" ",M+1)),(M===-1||A<M)&&(B=!0)}B||(k=`
386
+ ${n.indent}`)}}else(_===""||_[0]===`
387
+ `)&&(k="");return E+=k+_,n.inFlow?P&&r&&r():x&&!P?E+=Tl(E,n.indent,d(x)):v&&o&&o(),E}function kD(e,t){(e==="debug"||e==="warn")&&(typeof process!="undefined"&&process.emitWarning?process.emitWarning(t):console.warn(t))}const uM="<<";function _D(e,t,{key:n,value:r}){if(e!=null&&e.doc.schema.merge&&gye(n))if(r=uc(r)?r.resolve(e.doc):r,pd(r))for(const o of r.items)lb(e,t,o);else if(Array.isArray(r))for(const o of r)lb(e,t,o);else lb(e,t,r);else{const o=pi(n,"",e);if(t instanceof Map)t.set(o,pi(r,o,e));else if(t instanceof Set)t.add(o);else{const i=vye(n,o,e),s=pi(r,i,e);i in t?Object.defineProperty(t,i,{value:s,writable:!0,enumerable:!0,configurable:!0}):t[i]=s}}return t}const gye=e=>e===uM||yn(e)&&e.value===uM&&(!e.type||e.type===Rt.PLAIN);function lb(e,t,n){const r=e&&uc(n)?n.resolve(e.doc):n;if(!fd(r))throw new Error("Merge sources must be maps or map aliases");const o=r.toJSON(null,e,Map);for(const[i,s]of o)t instanceof Map?t.has(i)||t.set(i,s):t instanceof Set?t.add(i):Object.prototype.hasOwnProperty.call(t,i)||Object.defineProperty(t,i,{value:s,writable:!0,enumerable:!0,configurable:!0});return t}function vye(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(Xn(e)&&n&&n.doc){const r=ID(n.doc,{});r.anchors=new Set;for(const i of n.anchors.keys())r.anchors.add(i.anchor);r.inFlow=!0,r.inStringifyKey=!0;const o=e.toString(r);if(!n.mapKeyWarned){let i=JSON.stringify(o);i.length>40&&(i=i.substring(0,36)+'..."'),kD(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return o}return JSON.stringify(t)}function jE(e,t,n){const r=mp(e,void 0,n),o=mp(t,void 0,n);return new Fr(r,o)}class Fr{constructor(t,n=null){Object.defineProperty(this,wi,{value:gD}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return Xn(n)&&(n=n.clone(t)),Xn(r)&&(r=r.clone(t)),new Fr(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return _D(n,r,this)}toString(t,n,r){return t!=null&&t.doc?mye(this,t,n,r):JSON.stringify(this)}}function $D(e,t,n){var i;return(((i=t.inFlow)!=null?i:e.flow)?bye:yye)(e,t,n)}function yye({comment:e,items:t},n,{blockItemPrefix:r,flowChars:o,itemIndent:i,onChompKeep:s,onComment:a}){const{indent:c,options:{commentString:d}}=n,p=Object.assign({},n,{indent:i,type:null});let h=!1;const m=[];for(let y=0;y<t.length;++y){const v=t[y];let E=null;if(Xn(v))!h&&v.spaceBefore&&m.push(""),Gg(n,m,v.commentBefore,h),v.comment&&(E=v.comment);else if(Tn(v)){const C=Xn(v.key)?v.key:null;C&&(!h&&C.spaceBefore&&m.push(""),Gg(n,m,C.commentBefore,h))}h=!1;let w=Gu(v,p,()=>E=null,()=>h=!0);E&&(w+=Tl(w,i,d(E))),h&&E&&(h=!1),m.push(r+w)}let g;if(m.length===0)g=o.start+o.end;else{g=m[0];for(let y=1;y<m.length;++y){const v=m[y];g+=v?`
388
+ ${c}${v}`:`
389
+ `}}return e?(g+=`
390
+ `+Bs(d(e),c),a&&a()):h&&s&&s(),g}function bye({comment:e,items:t},n,{flowChars:r,itemIndent:o,onComment:i}){const{indent:s,indentStep:a,flowCollectionPadding:c,options:{commentString:d}}=n;o+=a;const p=Object.assign({},n,{indent:o,inFlow:!0,type:null});let h=!1,m=0;const g=[];for(let w=0;w<t.length;++w){const C=t[w];let x=null;if(Xn(C))C.spaceBefore&&g.push(""),Gg(n,g,C.commentBefore,!1),C.comment&&(x=C.comment);else if(Tn(C)){const _=Xn(C.key)?C.key:null;_&&(_.spaceBefore&&g.push(""),Gg(n,g,_.commentBefore,!1),_.comment&&(h=!0));const k=Xn(C.value)?C.value:null;k?(k.comment&&(x=k.comment),k.commentBefore&&(h=!0)):C.value==null&&_&&_.comment&&(x=_.comment)}x&&(h=!0);let P=Gu(C,p,()=>x=null);w<t.length-1&&(P+=","),x&&(P+=Tl(P,o,d(x))),!h&&(g.length>m||P.includes(`
391
+ `))&&(h=!0),g.push(P),m=g.length}let y;const{start:v,end:E}=r;if(g.length===0)y=v+E;else if(h||(h=g.reduce((C,x)=>C+x.length+2,2)>Oy.maxFlowStringSingleLineLength),h){y=v;for(const w of g)y+=w?`
392
+ ${a}${s}${w}`:`
393
+ `;y+=`
394
+ ${s}${E}`}else y=`${v}${c}${g.join(" ")}${c}${E}`;return e&&(y+=Tl(y,s,d(e)),i&&i()),y}function Gg({indent:e,options:{commentString:t}},n,r,o){if(r&&o&&(r=r.replace(/^\n+/,"")),r){const i=Bs(t(r),e);n.push(i.trimStart())}}function ka(e,t){const n=yn(t)?t.value:t;for(const r of e)if(Tn(r)&&(r.key===t||r.key===n||yn(r.key)&&r.key.value===n))return r}class _o extends Oy{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Vl,t),this.items=[]}static from(t,n,r){const{keepUndefined:o,replacer:i}=r,s=new this(t),a=(c,d)=>{if(typeof i=="function")d=i.call(n,c,d);else if(Array.isArray(i)&&!i.includes(c))return;(d!==void 0||o)&&s.items.push(jE(c,d,r))};if(n instanceof Map)for(const[c,d]of n)a(c,d);else if(n&&typeof n=="object")for(const c of Object.keys(n))a(c,n[c]);return typeof t.sortMapEntries=="function"&&s.items.sort(t.sortMapEntries),s}add(t,n){var s;let r;Tn(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new Fr(t,t==null?void 0:t.value):r=new Fr(t.key,t.value);const o=ka(this.items,r.key),i=(s=this.schema)==null?void 0:s.sortMapEntries;if(o){if(!n)throw new Error(`Key ${r.key} already set`);yn(o.value)&&ED(r.value)?o.value.value=r.value:o.value=r.value}else if(i){const a=this.items.findIndex(c=>i(r,c)<0);a===-1?this.items.push(r):this.items.splice(a,0,r)}else this.items.push(r)}delete(t){const n=ka(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){var i;const r=ka(this.items,t),o=r==null?void 0:r.value;return(i=!n&&yn(o)?o.value:o)!=null?i:void 0}has(t){return!!ka(this.items,t)}set(t,n){this.add(new Fr(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 i of this.items)_D(n,o,i);return o}toString(t,n,r){if(!t)return JSON.stringify(this);for(const o of this.items)if(!Tn(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})),$D(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const hd={collection:"map",default:!0,nodeClass:_o,tag:"tag:yaml.org,2002:map",resolve(e,t){return fd(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>_o.from(e,t,n)};class ea extends Oy{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(ud,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=fm(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=fm(t);if(typeof r!="number")return;const o=this.items[r];return!n&&yn(o)?o.value:o}has(t){const n=fm(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=fm(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[r];yn(o)&&ED(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 i of this.items)r.push(pi(i,String(o++),n));return r}toString(t,n,r){return t?$D(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,i=new this(t);if(n&&Symbol.iterator in Object(n)){let s=0;for(let a of n){if(typeof o=="function"){const c=n instanceof Set?a:String(s++);a=o.call(n,c,a)}i.items.push(mp(a,void 0,r))}}return i}}function fm(e){let t=yn(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const md={collection:"seq",default:!0,nodeClass:ea,tag:"tag:yaml.org,2002:seq",resolve(e,t){return pd(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>ea.from(e,t,n)},Dy={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),Vp(e,t,n,r)}},Ny={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"&&Ny.test.test(e)?e:t.options.nullStr},HE={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&&HE.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 Ui({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 i=JSON.stringify(r);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(i)){let s=i.indexOf(".");s<0&&(s=i.length,i+=".");let a=t-(i.length-s-1);for(;a-- >0;)i+="0"}return i}const RD={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:Ui},MD={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():Ui(e)}},TD={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:Ui},By=e=>typeof e=="bigint"||Number.isInteger(e),VE=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function OD(e,t,n){const{value:r}=e;return By(r)&&r>=0?n+r.toString(t):Ui(e)}const FD={identify:e=>By(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>VE(e,2,8,n),stringify:e=>OD(e,8,"0o")},LD={identify:By,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>VE(e,0,10,n),stringify:Ui},AD={identify:e=>By(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>VE(e,2,16,n),stringify:e=>OD(e,16,"0x")},wye=[hd,md,Dy,Ny,HE,FD,LD,AD,RD,MD,TD];function dM(e){return typeof e=="bigint"||Number.isInteger(e)}const pm=({value:e})=>JSON.stringify(e),Cye=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:pm},{identify:e=>e==null,createNode:()=>new Rt(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:pm},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:pm},{identify:dM,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})=>dM(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:pm}],xye={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},Sye=[hd,md].concat(Cye,xye),UE={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,i){const s=n;let a;if(typeof Buffer=="function")a=s instanceof Buffer?s.toString("base64"):Buffer.from(s.buffer).toString("base64");else if(typeof btoa=="function"){let c="";for(let d=0;d<s.length;++d)c+=String.fromCharCode(s[d]);a=btoa(c)}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 c=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),d=Math.ceil(a.length/c),p=new Array(d);for(let h=0,m=0;h<d;++h,m+=c)p[h]=a.substr(m,c);a=p.join(t===Rt.BLOCK_LITERAL?`
395
+ `:" ")}return Vp({comment:e,type:t,value:a},r,o,i)}};function DD(e,t){var n;if(pd(e))for(let r=0;r<e.items.length;++r){let o=e.items[r];if(!Tn(o)){if(fd(o)){o.items.length>1&&t("Each pair must have its own sequence indicator");const i=o.items[0]||new Fr(new Rt(null));if(o.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${o.commentBefore}
396
+ ${i.key.commentBefore}`:o.commentBefore),o.comment){const s=(n=i.value)!=null?n:i.key;s.comment=s.comment?`${o.comment}
397
+ ${s.comment}`:o.comment}o=i}e.items[r]=Tn(o)?o:new Fr(o)}}else t("Expected a sequence for this tag");return e}function ND(e,t,n){const{replacer:r}=n,o=new ea(e);o.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let s of t){typeof r=="function"&&(s=r.call(t,String(i++),s));let a,c;if(Array.isArray(s))if(s.length===2)a=s[0],c=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){const d=Object.keys(s);if(d.length===1)a=d[0],c=s[a];else throw new TypeError(`Expected { key: value } tuple: ${s}`)}else a=s;o.items.push(jE(a,c,n))}return o}const WE={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:DD,createNode:ND};class xu extends ea{constructor(){super(),this.add=_o.prototype.add.bind(this),this.delete=_o.prototype.delete.bind(this),this.get=_o.prototype.get.bind(this),this.has=_o.prototype.has.bind(this),this.set=_o.prototype.set.bind(this),this.tag=xu.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 i,s;if(Tn(o)?(i=pi(o.key,"",n),s=pi(o.value,i,n)):i=pi(o,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,s)}return r}static from(t,n,r){const o=ND(t,n,r),i=new this;return i.items=o.items,i}}xu.tag="tag:yaml.org,2002:omap";const GE={collection:"seq",identify:e=>e instanceof Map,nodeClass:xu,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=DD(e,t),r=[];for(const{key:o}of n.items)yn(o)&&(r.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):r.push(o.value));return Object.assign(new xu,n)},createNode:(e,t,n)=>xu.from(e,t,n)};function BD({value:e,source:t},n){return t&&(e?zD:jD).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const zD={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:BD},jD={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:BD},Eye={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:Ui},Pye={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():Ui(e)}},Iye={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:Ui},Up=e=>typeof e=="bigint"||Number.isInteger(e);function zy(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 s=BigInt(e);return o==="-"?BigInt(-1)*s:s}const i=parseInt(e,n);return o==="-"?-1*i:i}function KE(e,t,n){const{value:r}=e;if(Up(r)){const o=r.toString(t);return r<0?"-"+n+o.substr(1):n+o}return Ui(e)}const kye={identify:Up,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>zy(e,2,2,n),stringify:e=>KE(e,2,"0b")},_ye={identify:Up,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>zy(e,1,8,n),stringify:e=>KE(e,8,"0")},$ye={identify:Up,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>zy(e,0,10,n),stringify:Ui},Rye={identify:Up,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>zy(e,2,16,n),stringify:e=>KE(e,16,"0x")};class Su extends _o{constructor(t){super(t),this.tag=Su.tag}add(t){let n;Tn(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new Fr(t.key,null):n=new Fr(t,null),ka(this.items,n.key)||this.items.push(n)}get(t,n){const r=ka(this.items,t);return!n&&Tn(r)?yn(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=ka(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new Fr(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,i=new this(t);if(n&&Symbol.iterator in Object(n))for(let s of n)typeof o=="function"&&(s=o.call(n,s,s)),i.items.push(jE(s,null,r));return i}}Su.tag="tag:yaml.org,2002:set";const qE={collection:"map",identify:e=>e instanceof Set,nodeClass:Su,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>Su.from(e,t,n),resolve(e,t){if(fd(e)){if(e.hasAllNullValues(!0))return Object.assign(new Su,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function YE(e,t){const n=e[0],r=n==="-"||n==="+"?e.substring(1):e,o=s=>t?BigInt(s):Number(s),i=r.replace(/_/g,"").split(":").reduce((s,a)=>s*o(60)+o(a),o(0));return n==="-"?o(-1)*i:i}function HD(e){let{value:t}=e,n=s=>s;if(typeof t=="bigint")n=s=>BigInt(s);else if(isNaN(t)||!isFinite(t))return Ui(e);let r="";t<0&&(r="-",t*=n(-1));const o=n(60),i=[t%o];return t<60?i.unshift(0):(t=(t-i[0])/o,i.unshift(t%o),t>=60&&(t=(t-i[0])/o,i.unshift(t))),r+i.map(s=>String(s).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const VD={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})=>YE(e,n),stringify:HD},UD={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=>YE(e,!1),stringify:HD},jy={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(jy.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,o,i,s,a]=t.map(Number),c=t[7]?Number((t[7]+"00").substr(1,3)):0;let d=Date.UTC(n,r-1,o,i||0,s||0,a||0,c);const p=t[8];if(p&&p!=="Z"){let h=YE(p,!1);Math.abs(h)<30&&(h*=60),d-=6e4*h}return new Date(d)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},fM=[hd,md,Dy,Ny,zD,jD,kye,_ye,$ye,Rye,Eye,Pye,Iye,UE,GE,WE,qE,VD,UD,jy],pM=new Map([["core",wye],["failsafe",[hd,md,Dy]],["json",Sye],["yaml11",fM],["yaml-1.1",fM]]),hM={binary:UE,bool:HE,float:TD,floatExp:MD,floatNaN:RD,floatTime:UD,int:LD,intHex:AD,intOct:FD,intTime:VD,map:hd,null:Ny,omap:GE,pairs:WE,seq:md,set:qE,timestamp:jy},Mye={"tag:yaml.org,2002:binary":UE,"tag:yaml.org,2002:omap":GE,"tag:yaml.org,2002:pairs":WE,"tag:yaml.org,2002:set":qE,"tag:yaml.org,2002:timestamp":jy};function ab(e,t){let n=pM.get(t);if(!n)if(Array.isArray(e))n=[];else{const r=Array.from(pM.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=hM[r];if(o)return o;const i=Object.keys(hM).map(s=>JSON.stringify(s)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${i}`)})}const Tye=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Hy{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:o,schema:i,sortMapEntries:s,toStringDefaults:a}){this.compat=Array.isArray(t)?ab(t,"compat"):t?ab(null,t):null,this.merge=!!r,this.name=typeof i=="string"&&i||"core",this.knownTags=o?Mye:{},this.tags=ab(n,this.name),this.toStringOptions=a!=null?a:null,Object.defineProperty(this,Vl,{value:hd}),Object.defineProperty(this,Xs,{value:Dy}),Object.defineProperty(this,ud,{value:md}),this.sortMapEntries=typeof s=="function"?s:s===!0?Tye:null}clone(){const t=Object.create(Hy.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function Oye(e,t){var c;const n=[];let r=t.directives===!0;if(t.directives!==!1&&e.directives){const d=e.directives.toString(e);d?(n.push(d),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const o=ID(e,t),{commentString:i}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const d=i(e.commentBefore);n.unshift(Bs(d,""))}let s=!1,a=null;if(e.contents){if(Xn(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const h=i(e.contents.commentBefore);n.push(Bs(h,""))}o.forceBlockIndent=!!e.comment,a=e.contents.comment}const d=a?void 0:()=>s=!0;let p=Gu(e.contents,o,()=>a=null,d);a&&(p+=Tl(p,"",i(a))),(p[0]==="|"||p[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${p}`:n.push(p)}else n.push(Gu(e.contents,o));if((c=e.directives)!=null&&c.docEnd)if(e.comment){const d=i(e.comment);d.includes(`
398
+ `)?(n.push("..."),n.push(Bs(d,""))):n.push(`... ${d}`)}else n.push("...");else{let d=e.comment;d&&s&&(d=d.replace(/^\n+/,"")),d&&((!s||a)&&n[n.length-1]!==""&&n.push(""),n.push(Bs(i(d),"")))}return n.join(`
399
+ `)+`
400
+ `}class gd{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,wi,{value:rC});let o=null;typeof n=="function"||Array.isArray(n)?o=n:r===void 0&&n&&(r=n,n=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},r);this.options=i;let{version:s}=i;r!=null&&r._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(s=this.directives.yaml.version)):this.directives=new jr({version:s}),this.setSchema(s,r),this.contents=t===void 0?null:this.createNode(t,o,r)}clone(){const t=Object.create(gd.prototype,{[wi]:{value:rC}});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=Xn(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){Ac(this.contents)&&this.contents.add(t)}addIn(t,n){Ac(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=xD(this);t.anchor=!n||r.has(n)?SD(n||"a",r):n}return new Ty(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 E=C=>typeof C=="number"||C instanceof String||C instanceof Number,w=n.filter(E).map(String);w.length>0&&(n=n.concat(w)),o=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:i,anchorPrefix:s,flow:a,keepUndefined:c,onTagObj:d,tag:p}=r!=null?r:{},{onAnchor:h,setAnchors:m,sourceObjects:g}=lye(this,s||"a"),y={aliasDuplicateObjects:i!=null?i:!0,keepUndefined:c!=null?c:!1,onAnchor:h,onTagObj:d,replacer:o,schema:this.schema,sourceObjects:g},v=mp(t,p,y);return a&&Nn(v)&&(v.flow=!0),m(),v}createPair(t,n,r={}){const o=this.createNode(t,null,r),i=this.createNode(n,null,r);return new Fr(o,i)}delete(t){return Ac(this.contents)?this.contents.delete(t):!1}deleteIn(t){return df(t)?this.contents==null?!1:(this.contents=null,!0):Ac(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Nn(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return df(t)?!n&&yn(this.contents)?this.contents.value:this.contents:Nn(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Nn(this.contents)?this.contents.has(t):!1}hasIn(t){return df(t)?this.contents!==void 0:Nn(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=Wg(this.schema,[t],n):Ac(this.contents)&&this.contents.set(t,n)}setIn(t,n){df(t)?this.contents=n:this.contents==null?this.contents=Wg(this.schema,Array.from(t),n):Ac(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 jr({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 jr({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 Hy(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:i,reviver:s}={}){const a={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},c=pi(this.contents,n!=null?n:"",a);if(typeof i=="function")for(const{count:d,res:p}of a.anchors.values())i(p,d);return typeof s=="function"?lu(s,{"":c},"",c):c}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 Oye(this,t)}}function Ac(e){if(Nn(e))return!0;throw new Error("Expected a YAML collection as document contents")}class QE extends Error{constructor(t,n,r,o){super(),this.name=t,this.code=r,this.message=o,this.pos=n}}class _a extends QE{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class WD extends QE{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const Kg=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(a=>t.linePos(a));const{line:r,col:o}=n.linePos[0];n.message+=` at line ${r}, column ${o}`;let i=o-1,s=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(i>=60&&s.length>80){const a=Math.min(i-39,s.length-79);s="…"+s.substring(a),i-=a-1}if(s.length>80&&(s=s.substring(0,79)+"…"),r>1&&/^ *$/.test(s.substring(0,i))){let a=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);a.length>80&&(a=a.substring(0,79)+`…
401
+ `),s=a+s}if(/[^ ]/.test(s)){let a=1;const c=n.linePos[1];c&&c.line===r&&c.col>o&&(a=Math.max(1,Math.min(c.col-o,80-i)));const d=" ".repeat(i)+"^".repeat(a);n.message+=`:
402
+
403
+ ${s}
404
+ ${d}
405
+ `}};function Ku(e,{flow:t,indicator:n,next:r,offset:o,onError:i,startOnNewline:s}){let a=!1,c=s,d=s,p="",h="",m=!1,g=!1,y=!1,v=null,E=null,w=null,C=null,x=null;for(const k of e)switch(y&&(k.type!=="space"&&k.type!=="newline"&&k.type!=="comma"&&i(k.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),y=!1),k.type){case"space":!t&&c&&n!=="doc-start"&&k.source[0]===" "&&i(k,"TAB_AS_INDENT","Tabs are not allowed as indentation"),d=!0;break;case"comment":{d||i(k,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const I=k.source.substring(1)||" ";p?p+=h+I:p=I,h="",c=!1;break}case"newline":c?p?p+=k.source:a=!0:h+=k.source,c=!0,m=!0,(v||E)&&(g=!0),d=!0;break;case"anchor":v&&i(k,"MULTIPLE_ANCHORS","A node can have at most one anchor"),k.source.endsWith(":")&&i(k.offset+k.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),v=k,x===null&&(x=k.offset),c=!1,d=!1,y=!0;break;case"tag":{E&&i(k,"MULTIPLE_TAGS","A node can have at most one tag"),E=k,x===null&&(x=k.offset),c=!1,d=!1,y=!0;break}case n:(v||E)&&i(k,"BAD_PROP_ORDER",`Anchors and tags must be after the ${k.source} indicator`),C&&i(k,"UNEXPECTED_TOKEN",`Unexpected ${k.source} in ${t!=null?t:"collection"}`),C=k,c=!1,d=!1;break;case"comma":if(t){w&&i(k,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),w=k,c=!1,d=!1;break}default:i(k,"UNEXPECTED_TOKEN",`Unexpected ${k.type} token`),c=!1,d=!1}const P=e[e.length-1],_=P?P.offset+P.source.length:o;return y&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:w,found:C,spaceBefore:a,comment:p,hasNewline:m,hasNewlineAfterProp:g,anchor:v,tag:E,end:_,start:x!=null?x:_}}function gp(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
406
+ `))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(gp(t.key)||gp(t.value))return!0}return!1;default:return!0}}function lC(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&gp(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function GD(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const o=typeof r=="function"?r:(i,s)=>i===s||yn(i)&&yn(s)&&i.value===s.value&&!(i.value==="<<"&&e.schema.merge);return t.some(i=>o(i.key,n))}const mM="All mapping items must start at the same column";function Fye({composeNode:e,composeEmptyNode:t},n,r,o,i){var p,h;const s=(p=i==null?void 0:i.nodeClass)!=null?p:_o,a=new s(n.schema);n.atRoot&&(n.atRoot=!1);let c=r.offset,d=null;for(const m of r.items){const{start:g,key:y,sep:v,value:E}=m,w=Ku(g,{indicator:"explicit-key-ind",next:y!=null?y:v==null?void 0:v[0],offset:c,onError:o,startOnNewline:!0}),C=!w.found;if(C){if(y&&(y.type==="block-seq"?o(c,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in y&&y.indent!==r.indent&&o(c,"BAD_INDENT",mM)),!w.anchor&&!w.tag&&!v){d=w.end,w.comment&&(a.comment?a.comment+=`
407
+ `+w.comment:a.comment=w.comment);continue}(w.hasNewlineAfterProp||gp(y))&&o(y!=null?y:g[g.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((h=w.found)==null?void 0:h.indent)!==r.indent&&o(c,"BAD_INDENT",mM);const x=w.end,P=y?e(n,y,w,o):t(n,x,g,null,w,o);n.schema.compat&&lC(r.indent,y,o),GD(n,a.items,P)&&o(x,"DUPLICATE_KEY","Map keys must be unique");const _=Ku(v!=null?v:[],{indicator:"map-value-ind",next:E,offset:P.range[2],onError:o,startOnNewline:!y||y.type==="block-scalar"});if(c=_.end,_.found){C&&((E==null?void 0:E.type)==="block-map"&&!_.hasNewline&&o(c,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&w.start<_.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 k=E?e(n,E,_,o):t(n,c,v,null,_,o);n.schema.compat&&lC(r.indent,E,o),c=k.range[2];const I=new Fr(P,k);n.options.keepSourceTokens&&(I.srcToken=m),a.items.push(I)}else{C&&o(P.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),_.comment&&(P.comment?P.comment+=`
408
+ `+_.comment:P.comment=_.comment);const k=new Fr(P);n.options.keepSourceTokens&&(k.srcToken=m),a.items.push(k)}}return d&&d<c&&o(d,"IMPOSSIBLE","Map comment with trailing content"),a.range=[r.offset,c,d!=null?d:c],a}function Lye({composeNode:e,composeEmptyNode:t},n,r,o,i){var p;const s=(p=i==null?void 0:i.nodeClass)!=null?p:ea,a=new s(n.schema);n.atRoot&&(n.atRoot=!1);let c=r.offset,d=null;for(const{start:h,value:m}of r.items){const g=Ku(h,{indicator:"seq-item-ind",next:m,offset:c,onError:o,startOnNewline:!0});if(!g.found)if(g.anchor||g.tag||m)m&&m.type==="block-seq"?o(g.end,"BAD_INDENT","All sequence items must start at the same column"):o(c,"MISSING_CHAR","Sequence item without - indicator");else{d=g.end,g.comment&&(a.comment=g.comment);continue}const y=m?e(n,m,g,o):t(n,g.end,h,null,g,o);n.schema.compat&&lC(r.indent,m,o),c=y.range[2],a.items.push(y)}return a.range=[r.offset,c,d!=null?d:c],a}function Wp(e,t,n,r){let o="";if(e){let i=!1,s="";for(const a of e){const{source:c,type:d}=a;switch(d){case"space":i=!0;break;case"comment":{n&&!i&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const p=c.substring(1)||" ";o?o+=s+p:o=p,s="";break}case"newline":o&&(s+=c),i=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${d} at node end`)}t+=c.length}}return{comment:o,offset:t}}const cb="Block collections are not allowed within flow collections",ub=e=>e&&(e.type==="block-map"||e.type==="block-seq");function Aye({composeNode:e,composeEmptyNode:t},n,r,o,i){var E,w;const s=r.start.source==="{",a=s?"flow map":"flow sequence",c=(E=i==null?void 0:i.nodeClass)!=null?E:s?_o:ea,d=new c(n.schema);d.flow=!0;const p=n.atRoot;p&&(n.atRoot=!1);let h=r.offset+r.start.source.length;for(let C=0;C<r.items.length;++C){const x=r.items[C],{start:P,key:_,sep:k,value:I}=x,R=Ku(P,{flow:a,indicator:"explicit-key-ind",next:_!=null?_:k==null?void 0:k[0],offset:h,onError:o,startOnNewline:!1});if(!R.found){if(!R.anchor&&!R.tag&&!k&&!I){C===0&&R.comma?o(R.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):C<r.items.length-1&&o(R.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),R.comment&&(d.comment?d.comment+=`
409
+ `+R.comment:d.comment=R.comment),h=R.end;continue}!s&&n.options.strict&&gp(_)&&o(_,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(C===0)R.comma&&o(R.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(R.comma||o(R.start,"MISSING_CHAR",`Missing , between ${a} items`),R.comment){let F="";e:for(const A of P)switch(A.type){case"comma":case"space":break;case"comment":F=A.source.substring(1);break e;default:break e}if(F){let A=d.items[d.items.length-1];Tn(A)&&(A=(w=A.value)!=null?w:A.key),A.comment?A.comment+=`
410
+ `+F:A.comment=F,R.comment=R.comment.substring(F.length+1)}}if(!s&&!k&&!R.found){const F=I?e(n,I,R,o):t(n,R.end,k,null,R,o);d.items.push(F),h=F.range[2],ub(I)&&o(F.range,"BLOCK_IN_FLOW",cb)}else{const F=R.end,A=_?e(n,_,R,o):t(n,F,P,null,R,o);ub(_)&&o(A.range,"BLOCK_IN_FLOW",cb);const O=Ku(k!=null?k:[],{flow:a,indicator:"map-value-ind",next:I,offset:A.range[2],onError:o,startOnNewline:!1});if(O.found){if(!s&&!R.found&&n.options.strict){if(k)for(const M of k){if(M===O.found)break;if(M.type==="newline"){o(M,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}R.start<O.found.offset-1024&&o(O.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 ${a}`):o(O.start,"MISSING_CHAR",`Missing , or : between ${a} items`));const N=I?e(n,I,O,o):O.found?t(n,O.end,k,null,O,o):null;N?ub(I)&&o(N.range,"BLOCK_IN_FLOW",cb):O.comment&&(A.comment?A.comment+=`
411
+ `+O.comment:A.comment=O.comment);const B=new Fr(A,N);if(n.options.keepSourceTokens&&(B.srcToken=x),s){const M=d;GD(n,M.items,A)&&o(F,"DUPLICATE_KEY","Map keys must be unique"),M.items.push(B)}else{const M=new _o(n.schema);M.flow=!0,M.items.push(B),d.items.push(M)}h=N?N.range[2]:O.end}}const m=s?"}":"]",[g,...y]=r.end;let v=h;if(g&&g.source===m)v=g.offset+g.source.length;else{const C=a[0].toUpperCase()+a.substring(1),x=p?`${C} must end with a ${m}`:`${C} in block collection must be sufficiently indented and end with a ${m}`;o(h,p?"MISSING_CHAR":"BAD_INDENT",x),g&&g.source.length!==1&&y.unshift(g)}if(y.length>0){const C=Wp(y,v,n.options.strict,o);C.comment&&(d.comment?d.comment+=`
412
+ `+C.comment:d.comment=C.comment),d.range=[r.offset,v,C.offset]}else d.range=[r.offset,v,v];return d}function db(e,t,n,r,o,i){const s=n.type==="block-map"?Fye(e,t,n,r,i):n.type==="block-seq"?Lye(e,t,n,r,i):Aye(e,t,n,r,i),a=s.constructor;return o==="!"||o===a.tagName?(s.tag=a.tagName,s):(o&&(s.tag=o),s)}function Dye(e,t,n,r,o){var h,m;const i=r?t.directives.tagName(r.source,g=>o(r,"TAG_RESOLVE_FAILED",g)):null,s=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!r||!i||i==="!"||i===_o.tagName&&s==="map"||i===ea.tagName&&s==="seq"||!s)return db(e,t,n,o,i);let a=t.schema.tags.find(g=>g.tag===i&&g.collection===s);if(!a){const g=t.schema.knownTags[i];if(g&&g.collection===s)t.schema.tags.push(Object.assign({},g,{default:!1})),a=g;else return g!=null&&g.collection?o(r,"BAD_COLLECTION_TYPE",`${g.tag} used for ${s} collection, but expects ${g.collection}`,!0):o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${i}`,!0),db(e,t,n,o,i)}const c=db(e,t,n,o,i,a),d=(m=(h=a.resolve)==null?void 0:h.call(a,c,g=>o(r,"TAG_RESOLVE_FAILED",g),t.options))!=null?m:c,p=Xn(d)?d:new Rt(d);return p.range=c.range,p.tag=i,a!=null&&a.format&&(p.format=a.format),p}function KD(e,t,n){const r=e.offset,o=Nye(e,t,n);if(!o)return{value:"",type:null,comment:"",range:[r,r,r]};const i=o.mode===">"?Rt.BLOCK_FOLDED:Rt.BLOCK_LITERAL,s=e.source?Bye(e.source):[];let a=s.length;for(let v=s.length-1;v>=0;--v){const E=s[v][1];if(E===""||E==="\r")a=v;else break}if(a===0){const v=o.chomp==="+"&&s.length>0?`
413
+ `.repeat(Math.max(1,s.length-1)):"";let E=r+o.length;return e.source&&(E+=e.source.length),{value:v,type:i,comment:o.comment,range:[r,E,E]}}let c=e.indent+o.indent,d=e.offset+o.length,p=0;for(let v=0;v<a;++v){const[E,w]=s[v];if(w===""||w==="\r")o.indent===0&&E.length>c&&(c=E.length);else{if(E.length<c){const C="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(d+E.length,"MISSING_CHAR",C)}o.indent===0&&(c=E.length),p=v;break}d+=E.length+w.length+1}for(let v=s.length-1;v>=a;--v)s[v][0].length>c&&(a=v+1);let h="",m="",g=!1;for(let v=0;v<p;++v)h+=s[v][0].slice(c)+`
414
+ `;for(let v=p;v<a;++v){let[E,w]=s[v];d+=E.length+w.length+1;const C=w[w.length-1]==="\r";if(C&&(w=w.slice(0,-1)),w&&E.length<c){const P=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(d-w.length-(C?2:1),"BAD_INDENT",P),E=""}i===Rt.BLOCK_LITERAL?(h+=m+E.slice(c)+w,m=`
415
+ `):E.length>c||w[0]===" "?(m===" "?m=`
416
+ `:!g&&m===`
417
+ `&&(m=`
418
+
419
+ `),h+=m+E.slice(c)+w,m=`
420
+ `,g=!0):w===""?m===`
421
+ `?h+=`
422
+ `:m=`
423
+ `:(h+=m+w,m=" ",g=!1)}switch(o.chomp){case"-":break;case"+":for(let v=a;v<s.length;++v)h+=`
424
+ `+s[v][0].slice(c);h[h.length-1]!==`
425
+ `&&(h+=`
426
+ `);break;default:h+=`
427
+ `}const y=r+o.length+e.source.length;return{value:h,type:i,comment:o.comment,range:[r,y,y]}}function Nye({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],i=o[0];let s=0,a="",c=-1;for(let m=1;m<o.length;++m){const g=o[m];if(!a&&(g==="-"||g==="+"))a=g;else{const y=Number(g);!s&&y?s=y:c===-1&&(c=e+m)}}c!==-1&&r(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let d=!1,p="",h=o.length;for(let m=1;m<t.length;++m){const g=t[m];switch(g.type){case"space":d=!0;case"newline":h+=g.source.length;break;case"comment":n&&!d&&r(g,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),h+=g.source.length,p=g.source.substring(1);break;case"error":r(g,"UNEXPECTED_TOKEN",g.message),h+=g.source.length;break;default:{const y=`Unexpected token in block scalar header: ${g.type}`;r(g,"UNEXPECTED_TOKEN",y);const v=g.source;v&&typeof v=="string"&&(h+=v.length)}}}return{mode:i,indent:s,chomp:a,comment:p,length:h}}function Bye(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r!=null&&r[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let s=1;s<t.length;s+=2)i.push([t[s],t[s+1]]);return i}function qD(e,t,n){const{offset:r,type:o,source:i,end:s}=e;let a,c;const d=(m,g,y)=>n(r+m,g,y);switch(o){case"scalar":a=Rt.PLAIN,c=zye(i,d);break;case"single-quoted-scalar":a=Rt.QUOTE_SINGLE,c=jye(i,d);break;case"double-quoted-scalar":a=Rt.QUOTE_DOUBLE,c=Hye(i,d);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[r,r+i.length,r+i.length]}}const p=r+i.length,h=Wp(s,p,t,n);return{value:c,type:a,comment:h.comment,range:[r,p,h.offset]}}function zye(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}`),YD(e)}function jye(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),YD(e.slice(1,-1)).replace(/''/g,"'")}function YD(e){var c;let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
428
+ `,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
429
+ `,"sy")}catch(d){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],i=" ",s=t.lastIndex;for(n.lastIndex=s;r=n.exec(e);)r[1]===""?i===`
430
+ `?o+=i:i=`
431
+ `:(o+=i+r[1],i=" "),s=n.lastIndex;const a=new RegExp("[ \\t]*(.*)","sy");return a.lastIndex=s,r=a.exec(e),o+i+((c=r==null?void 0:r[1])!=null?c:"")}function Hye(e,t){let n="";for(let r=1;r<e.length-1;++r){const o=e[r];if(!(o==="\r"&&e[r+1]===`
432
+ `))if(o===`
433
+ `){const{fold:i,offset:s}=Vye(e,r);n+=i,r=s}else if(o==="\\"){let i=e[++r];const s=Uye[i];if(s)n+=s;else if(i===`
434
+ `)for(i=e[r+1];i===" "||i===" ";)i=e[++r+1];else if(i==="\r"&&e[r+1]===`
435
+ `)for(i=e[++r+1];i===" "||i===" ";)i=e[++r+1];else if(i==="x"||i==="u"||i==="U"){const a={x:2,u:4,U:8}[i];n+=Wye(e,r+1,a,t),r+=a}else{const a=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),n+=a}}else if(o===" "||o===" "){const i=r;let s=e[r+1];for(;s===" "||s===" ";)s=e[++r+1];s!==`
436
+ `&&!(s==="\r"&&e[r+2]===`
437
+ `)&&(n+=r>i?e.slice(i,r+1):o)}else n+=o}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function Vye(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
438
+ `||r==="\r")&&!(r==="\r"&&e[t+2]!==`
439
+ `);)r===`
440
+ `&&(n+=`
441
+ `),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const Uye={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
442
+ `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Wye(e,t,n,r){const o=e.substr(t,n),s=o.length===n&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(s)){const a=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(s)}function QD(e,t,n,r){const{value:o,type:i,comment:s,range:a}=t.type==="block-scalar"?KD(t,e.options.strict,r):qD(t,e.options.strict,r),c=n?e.directives.tagName(n.source,h=>r(n,"TAG_RESOLVE_FAILED",h)):null,d=n&&c?Gye(e.schema,o,c,n,r):t.type==="scalar"?Kye(e,o,t,r):e.schema[Xs];let p;try{const h=d.resolve(o,m=>r(n!=null?n:t,"TAG_RESOLVE_FAILED",m),e.options);p=yn(h)?h:new Rt(h)}catch(h){const m=h instanceof Error?h.message:String(h);r(n!=null?n:t,"TAG_RESOLVE_FAILED",m),p=new Rt(o)}return p.range=a,p.source=o,i&&(p.type=i),c&&(p.tag=c),d.format&&(p.format=d.format),s&&(p.comment=s),p}function Gye(e,t,n,r,o){var a;if(n==="!")return e[Xs];const i=[];for(const c of e.tags)if(!c.collection&&c.tag===n)if(c.default&&c.test)i.push(c);else return c;for(const c of i)if((a=c.test)!=null&&a.test(t))return c;const s=e.knownTags[n];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[Xs])}function Kye({directives:e,schema:t},n,r,o){var s;const i=t.tags.find(a=>{var c;return a.default&&((c=a.test)==null?void 0:c.test(n))})||t[Xs];if(t.compat){const a=(s=t.compat.find(c=>{var d;return c.default&&((d=c.test)==null?void 0:d.test(n))}))!=null?s:t[Xs];if(i.tag!==a.tag){const c=e.tagString(i.tag),d=e.tagString(a.tag),p=`Value may be parsed as either ${c} or ${d}`;o(r,"TAG_RESOLVE_FAILED",p,!0)}}return i}function qye(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 Yye={composeNode:XD,composeEmptyNode:XE};function XD(e,t,n,r){const{spaceBefore:o,comment:i,anchor:s,tag:a}=n;let c,d=!0;switch(t.type){case"alias":c=Qye(e,t,r),(s||a)&&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":c=QD(e,t,a,r),s&&(c.anchor=s.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=Dye(Yye,e,t,a,r),s&&(c.anchor=s.source.substring(1));break;default:{const p=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",p),c=XE(e,t.offset,void 0,null,n,r),d=!1}}return s&&c.anchor===""&&r(s,"BAD_ALIAS","Anchor cannot be an empty string"),o&&(c.spaceBefore=!0),i&&(t.type==="scalar"&&t.source===""?c.comment=i:c.commentBefore=i),e.options.keepSourceTokens&&d&&(c.srcToken=t),c}function XE(e,t,n,r,{spaceBefore:o,comment:i,anchor:s,tag:a,end:c},d){const p={type:"scalar",offset:qye(t,n,r),indent:-1,source:""},h=QD(e,p,a,d);return s&&(h.anchor=s.source.substring(1),h.anchor===""&&d(s,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(h.spaceBefore=!0),i&&(h.comment=i,h.range[2]=c),h}function Qye({options:e},{offset:t,source:n,end:r},o){const i=new Ty(n.substring(1));i.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&o(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const s=t+n.length,a=Wp(r,s,e.strict,o);return i.range=[t,s,a.offset],a.comment&&(i.comment=a.comment),i}function Xye(e,t,{offset:n,start:r,value:o,end:i},s){const a=Object.assign({_directives:t},e),c=new gd(void 0,a),d={atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},p=Ku(r,{indicator:"doc-start",next:o!=null?o:i==null?void 0:i[0],offset:n,onError:s,startOnNewline:!0});p.found&&(c.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!p.hasNewline&&s(p.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=o?XD(d,o,p,s):XE(d,p.end,r,null,p,s);const h=c.contents.range[2],m=Wp(i,h,!1,s);return m.comment&&(c.comment=m.comment),c.range=[n,h,m.offset],c}function Jd(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 gM(e){var o;let t="",n=!1,r=!1;for(let i=0;i<e.length;++i){const s=e[i];switch(s[0]){case"#":t+=(t===""?"":r?`
443
+
444
+ `:`
445
+ `)+(s.substring(1)||" "),n=!0,r=!1;break;case"%":((o=e[i+1])==null?void 0:o[0])!=="#"&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}class JE{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,o,i)=>{const s=Jd(n);i?this.warnings.push(new WD(s,r,o)):this.errors.push(new _a(s,r,o))},this.directives=new jr({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:o}=gM(this.prelude);if(r){const i=t.contents;if(n)t.comment=t.comment?`${t.comment}
446
+ ${r}`:r;else if(o||t.directives.docStart||!i)t.commentBefore=r;else if(Nn(i)&&!i.flow&&i.items.length>0){let s=i.items[0];Tn(s)&&(s=s.key);const a=s.commentBefore;s.commentBefore=a?`${r}
447
+ ${a}`:r}else{const s=i.commentBefore;i.commentBefore=s?`${r}
448
+ ${s}`: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:gM(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,r=-1){for(const o of t)yield*this.next(o);yield*this.end(n,r)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,r,o)=>{const i=Jd(t);i[0]+=n,this.onError(i,"BAD_DIRECTIVE",r,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=Xye(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 _a(Jd(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 _a(Jd(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=Wp(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}
449
+ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new _a(Jd(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 gd(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 Jye(e,t=!0,n){if(e){const r=(o,i,s)=>{const a=typeof o=="number"?o:Array.isArray(o)?o[0]:o.offset;if(n)n(a,i,s);else throw new _a([a,a+1],i,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return qD(e,t,r);case"block-scalar":return KD(e,t,r)}}return null}function Zye(e,t){var d;const{implicitKey:n=!1,indent:r,inFlow:o=!1,offset:i=-1,type:s="PLAIN"}=t,a=Vp({type:s,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),c=(d=t.end)!=null?d:[{type:"newline",offset:-1,indent:r,source:`
450
+ `}];switch(a[0]){case"|":case">":{const p=a.indexOf(`
451
+ `),h=a.substring(0,p),m=a.substring(p+1)+`
452
+ `,g=[{type:"block-scalar-header",offset:i,indent:r,source:h}];return JD(g,c)||g.push({type:"newline",offset:-1,indent:r,source:`
453
+ `}),{type:"block-scalar",offset:i,indent:r,props:g,source:m}}case'"':return{type:"double-quoted-scalar",offset:i,indent:r,source:a,end:c};case"'":return{type:"single-quoted-scalar",offset:i,indent:r,source:a,end:c};default:return{type:"scalar",offset:i,indent:r,source:a,end:c}}}function e0e(e,t,n={}){let{afterKey:r=!1,implicitKey:o=!1,inFlow:i=!1,type:s}=n,a="indent"in e?e.indent:null;if(r&&typeof a=="number"&&(a+=2),!s)switch(e.type){case"single-quoted-scalar":s="QUOTE_SINGLE";break;case"double-quoted-scalar":s="QUOTE_DOUBLE";break;case"block-scalar":{const d=e.props[0];if(d.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s=d.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:s="PLAIN"}const c=Vp({type:s,value:t},{implicitKey:o||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}});switch(c[0]){case"|":case">":t0e(e,c);break;case'"':fb(e,c,"double-quoted-scalar");break;case"'":fb(e,c,"single-quoted-scalar");break;default:fb(e,c,"scalar")}}function t0e(e,t){const n=t.indexOf(`
454
+ `),r=t.substring(0,n),o=t.substring(n+1)+`
455
+ `;if(e.type==="block-scalar"){const i=e.props[0];if(i.type!=="block-scalar-header")throw new Error("Invalid block scalar header");i.source=r,e.source=o}else{const{offset:i}=e,s="indent"in e?e.indent:-1,a=[{type:"block-scalar-header",offset:i,indent:s,source:r}];JD(a,"end"in e?e.end:void 0)||a.push({type:"newline",offset:-1,indent:s,source:`
456
+ `});for(const c of Object.keys(e))c!=="type"&&c!=="offset"&&delete e[c];Object.assign(e,{type:"block-scalar",indent:s,props:a,source:o})}}function JD(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 fb(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 i of r)i.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:`
457
+ `};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(i=>i.type==="space"||i.type==="comment"||i.type==="newline"):[];for(const i of Object.keys(e))i!=="type"&&i!=="offset"&&delete e[i];Object.assign(e,{type:n,indent:r,source:t,end:o})}}}const n0e=e=>"type"in e?qg(e):Vm(e);function qg(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=qg(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=Vm(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=Vm(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=Vm(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 Vm({start:e,key:t,sep:n,value:r}){let o="";for(const i of e)o+=i.source;if(t&&(o+=qg(t)),n)for(const i of n)o+=i.source;return r&&(o+=qg(r)),o}const aC=Symbol("break visit"),r0e=Symbol("skip children"),ZD=Symbol("remove item");function Za(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),eN(Object.freeze([]),e,t)}Za.BREAK=aC;Za.SKIP=r0e;Za.REMOVE=ZD;Za.itemAtPath=(e,t)=>{let n=e;for(const[r,o]of t){const i=n==null?void 0:n[r];if(i&&"items"in i)n=i.items[o];else return}return n};Za.parentCollection=(e,t)=>{const n=Za.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 eN(e,t,n){let r=n(t,e);if(typeof r=="symbol")return r;for(const o of["key","value"]){const i=t[o];if(i&&"items"in i){for(let s=0;s<i.items.length;++s){const a=eN(Object.freeze(e.concat([[o,s]])),i.items[s],n);if(typeof a=="number")s=a-1;else{if(a===aC)return aC;a===ZD&&(i.items.splice(s,1),s-=1)}}typeof r=="function"&&o==="key"&&(r=r(t,e))}}return typeof r=="function"?r(t,e):r}const Vy="\uFEFF",Uy="",Wy="",vp="",o0e=e=>!!e&&"items"in e,i0e=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function s0e(e){switch(e){case Vy:return"<BOM>";case Uy:return"<DOC>";case Wy:return"<FLOW_END>";case vp:return"<SCALAR>";default:return JSON.stringify(e)}}function tN(e){switch(e){case Vy:return"byte-order-mark";case Uy:return"doc-mode";case Wy:return"flow-error-end";case vp:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
458
+ `:case`\r
459
+ `: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 l0e=Object.freeze(Object.defineProperty({__proto__:null,BOM:Vy,DOCUMENT:Uy,FLOW_END:Wy,SCALAR:vp,createScalarToken:Zye,isCollection:o0e,isScalar:i0e,prettyToken:s0e,resolveAsScalar:Jye,setScalarValue:e0e,stringify:n0e,tokenType:tN,visit:Za},Symbol.toStringTag,{value:"Module"}));function Zo(e){switch(e){case void 0:case" ":case`
460
+ `:case"\r":case" ":return!0;default:return!1}}const vM="0123456789ABCDEFabcdef".split(""),a0e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),pb=",[]{}".split(""),c0e=` ,[]{}
461
+ \r `.split(""),hb=e=>!e||c0e.includes(e);class nN{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*this.parseNext(r)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
462
+ `?!0:n==="\r"?this.buffer[t+1]===`
463
+ `:!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===`
464
+ `||!o&&!this.atEnd)return t+r+1}return n===`
465
+ `||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&Zo(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(`
466
+ `,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*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===Vy&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length;const r=t.indexOf("#");if(r!==-1){const i=t[r-1];(i===" "||i===" ")&&(n=r-1)}for(;;){const i=t[n-1];if(i===" "||i===" ")n-=1;else break}const o=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-o),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield Uy,yield*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==="---"&&Zo(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if(n==="..."&&Zo(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Zo(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&Zo(n)){const r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(hb),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,r=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=r=n):n=0,n+=yield*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("..."))&&Zo(o[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield Wy,yield*this.parseLineStart();let i=0;for(;o[i]===",";)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),o[i]){case void 0:return"flow";case"#":return yield*this.pushCount(o.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(hb),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const s=this.charAt(1);if(this.flowKey||Zo(s)||s===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*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 i=0;for(;this.buffer[n-1-i]==="\\";)i+=1;if(i%2===0)break;n=this.buffer.indexOf('"',n+1)}const r=this.buffer.substring(0,n);let o=r.indexOf(`
467
+ `,this.pos);if(o!==-1){for(;o!==-1;){const i=this.continueScalar(o+1);if(i===-1)break;o=r.indexOf(`
468
+ `,i)}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*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*this.pushUntil(n=>Zo(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`
469
+ `:t=o,n=0;break;case"\r":{const i=this.buffer[o+1];if(!i&&!this.atEnd)return this.setNext("block-scalar");if(i===`
470
+ `)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(`
471
+ `,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,i=this.buffer[o];i==="\r"&&(i=this.buffer[--o]);const s=o;for(;i===" "||i===" ";)i=this.buffer[--o];if(i===`
472
+ `&&o>=this.pos&&o+1+n>s)t=o;else break}while(!0);return yield vp,yield*this.pushToIndex(t+1,!0),yield*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 i=this.buffer[r+1];if(Zo(i)||t&&i===",")break;n=r}else if(Zo(o)){let i=this.buffer[r+1];if(o==="\r"&&(i===`
473
+ `?(r+=1,o=`
474
+ `,i=this.buffer[r+1]):n=r),i==="#"||t&&pb.includes(i))break;if(o===`
475
+ `){const s=this.continueScalar(r+1);if(s===-1)break;r=Math.max(r,s-2)}}else{if(t&&pb.includes(o))break;n=r}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield vp,yield*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*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(hb))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(Zo(n)||t&&pb.includes(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!Zo(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(a0e.includes(n))n=this.buffer[++t];else if(n==="%"&&vM.includes(this.buffer[t+1])&&vM.includes(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
476
+ `?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
477
+ `?yield*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*this.pushToIndex(n,!1)}}class rN{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,r=this.lineStarts.length;for(;n<r;){const i=n+r>>1;this.lineStarts[i]<t?n=i+1:r=i}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 _i(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function yM(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 oN(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 hm(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 Dc(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 bM(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!_i(t.start,"explicit-key-ind")&&!_i(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,oN(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 ZE=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 nN,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*this.next(r);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=tN(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*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*this.pop({type:"error",offset:this.offset,message:r,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*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*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*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"&&bM(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=!_i(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*this.pop(),yield*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&&yM(o.start)===-1&&(n.indent===0||o.start.every(i=>i.type!=="comment"||i.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*this.lineEnd(t);switch(this.type){case"doc-start":{yM(t.start)!==-1?(yield*this.pop(),yield*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=hm(this.peek(2)),r=Dc(n);let o;t.end?(o=t.end,o.push(this.sourceToken),delete t.end):o=[this.sourceToken];const i={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]=i}else yield*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(`
478
+ `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
479
+ `,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*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,i=Array.isArray(o)?o[o.length-1]:void 0;(i==null?void 0:i.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],i=(r=o==null?void 0:o.value)==null?void 0:r.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.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 i=[];if(o&&n.sep&&!n.value){const s=[];for(let a=0;a<n.sep.length;++a){const c=n.sep[a];switch(c.type){case"newline":s.push(a);break;case"space":break;case"comment":c.indent>t.indent&&(s.length=0);break;default:s.length=0}}s.length>=2&&(i=n.sep.splice(s[1]))}switch(this.type){case"anchor":case"tag":o||n.value?(i.push(this.sourceToken),t.items.push({start:i}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!_i(n.start,"explicit-key-ind")?n.start.push(this.sourceToken):o||n.value?(i.push(this.sourceToken),t.items.push({start:i})):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(_i(n.start,"explicit-key-ind"))if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(_i(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(oN(n.key)&&!_i(n.sep,"newline")){const s=Dc(n.start),a=n.key,c=n.sep;c.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:a,sep:c}]})}else i.length>0?n.sep=n.sep.concat(i,this.sourceToken):n.sep.push(this.sourceToken);else if(_i(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const s=Dc(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||o?t.items.push({start:i,key:null,sep:[this.sourceToken]}):_i(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 s=this.flowScalar(this.type);o||n.value?(t.items.push({start:i,key:s,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(s):(Object.assign(n,{key:s,sep:[]}),this.onKeyLine=!0);return}default:{const s=this.startBlockValue(t);if(s){o&&s.type!=="block-seq"&&_i(n.start,"explicit-key-ind")&&t.items.push({start:i}),this.stack.push(s);return}}}}yield*this.pop(),yield*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,i=Array.isArray(o)?o[o.length-1]:void 0;(i==null?void 0:i.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],i=(r=o==null?void 0:o.value)==null?void 0:r.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.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||_i(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*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let r;do yield*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*this.pop(),yield*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*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const o=hm(r),i=Dc(o);bM(t);const s=t.end.splice(1,t.end.length);s.push(this.sourceToken);const a={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
480
+ `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
481
+ `,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=hm(t),r=Dc(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=hm(t),r=Dc(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*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*this.pop(),yield*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*this.pop())}}};function iN(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new rN||null,prettyErrors:t}}function u0e(e,t={}){const{lineCounter:n,prettyErrors:r}=iN(t),o=new ZE(n==null?void 0:n.addNewLine),i=new JE(t),s=Array.from(i.compose(o.parse(e)));if(r&&n)for(const a of s)a.errors.forEach(Kg(e,n)),a.warnings.forEach(Kg(e,n));return s.length>0?s:Object.assign([],{empty:!0},i.streamInfo())}function sN(e,t={}){const{lineCounter:n,prettyErrors:r}=iN(t),o=new ZE(n==null?void 0:n.addNewLine),i=new JE(t);let s=null;for(const a of i.compose(o.parse(e),!0,e.length))if(!s)s=a;else if(s.options.logLevel!=="silent"){s.errors.push(new _a(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(s.errors.forEach(Kg(e,n)),s.warnings.forEach(Kg(e,n))),s}function d0e(e,t,n){let r;typeof t=="function"?r=t:n===void 0&&t&&typeof t=="object"&&(n=t);const o=sN(e,n);if(!o)return null;if(o.warnings.forEach(i=>kD(o.options.logLevel,i)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:r},n))}function f0e(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 i=Math.round(n);n=i<1?void 0:i>8?{indent:8}:{indent:i}}if(e===void 0){const{keepUndefined:i}=(o=n!=null?n:t)!=null?o:{};if(!i)return}return new gd(e,r,n).toString(n)}const wM=Object.freeze(Object.defineProperty({__proto__:null,Alias:Ty,CST:l0e,Composer:JE,Document:gd,Lexer:nN,LineCounter:rN,Pair:Fr,Parser:ZE,Scalar:Rt,Schema:Hy,YAMLError:QE,YAMLMap:_o,YAMLParseError:_a,YAMLSeq:ea,YAMLWarning:WD,isAlias:uc,isCollection:Nn,isDocument:dd,isMap:fd,isNode:Xn,isPair:Tn,isScalar:yn,isSeq:pd,parse:d0e,parseAllDocuments:u0e,parseDocument:sN,stringify:f0e,visit:Zl,visitAsync:My},Symbol.toStringTag,{value:"Module"}));var eP={},p0e=rt;Object.defineProperty(eP,"__esModule",{value:!0});var lN=eP.default=void 0,h0e=p0e(ot()),m0e=tt(),g0e=(0,h0e.default)((0,m0e.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 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-2zm0 16H8V7h11v14z"}),"ContentCopy");lN=eP.default=g0e;var tP={},v0e=rt;Object.defineProperty(tP,"__esModule",{value:!0});var nP=tP.default=void 0,y0e=v0e(ot()),b0e=tt(),w0e=(0,y0e.default)((0,b0e.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"}),"Save");nP=tP.default=w0e;const C0e="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept";function x0e({file:e,anyMask:t,defaultPerms:n,addToBar:r,statusApi:o}){var O;const A=e,{parent:i,children:s,isRoot:a,byMasks:c}=A,d=Wt(A,["parent","children","isRoot","byMasks"]),[p,h]=u.useState(d);u.useEffect(()=>{h(Object.assign(yA(n,()=>null),d))},[e]);const{source:m}=e,g=e.type==="folder",y=m!==void 0,v=y&&g,E=u.useMemo(()=>{const B={};let M=i;for(;M;)gt.defaults(B,M,M.byMasks),M=M.parent;return gt.defaults(B,n)},[i]),w=y&&!!p.ctime,C=y&&!v,x=e.accept>""||g&&((O=e.can_upload)!=null?O:E.can_upload),P=MS(),{data:_,element:k}=Gr("get_accounts");if(k||!_)return k;const I=_.list,R=!y&&"Works only on folders with source! ";return u.createElement(Fp,{values:p,set(B,M){M!=="link"&&h(L=>{var D;const V=M==="source"&&((D=L.source)==null?void 0:D.endsWith(L.name))?Bse(B):L.name;return Pt(Ce({},L),{name:V,[M]:B})})},barSx:Ce({gap:2,width:"100%"},P),stickyBar:!0,addToBar:[!a&&u.createElement(Gn,{icon:tl,title:"Delete",confirm:"Delete?",onClick:()=>Et("del_vfs",{uris:[e.id]}).then(()=>ec())}),r],onError:Gt,save:{sx:wy(!TS(p,d)),onClick(){return ct(this,null,function*(){const B=gt.omit(p,["ctime","mtime","size","id"]);B.masks||(B.masks=null),yield Et("set_vfs",{uri:p.id,props:B}),B.name!==e.name&&(pn.selectedFiles[0].id=e.parent.id+B.name+(g?"/":"")),ec()})}},fields:[a?u.createElement(Kr,{severity:"info"},"This is Home, the root of your shared files. Options set here will be applied to all files."):{k:"name",required:!0,helperText:y&&"You can decide a name that's different from the one on your disk"},{k:"id",comp:S0e,statusApi:o},{k:"source",label:"Source on disk",comp:Rf,files:!g,folders:g,multiline:!0,placeholder:"Not on disk, this is a virtual folder"},F("can_read","Who can see but not download will be asked to login"),F("can_see","If you can't see, you may still download with a direct link"),g&&F("can_list","Permission to see content of folders",{contentText:"subfolders"}),g&&F("can_delete",[R,"Those who can delete can also rename"]),g&&F("can_upload",R,{lg:x?6:12,contentText:"subfolders"}),x&&{k:"accept",label:"Accept on upload",placeholder:"anything",lg:6,helperText:u.createElement(Ao,{href:C0e,target:"_blank"},"Example: .zip")},C&&{k:"size",comp:Am,lg:4,toField:Ql},w&&{k:"ctime",comp:Am,md:6,lg:C&&4,label:"Created",toField:CM},w&&{k:"mtime",comp:Am,md:6,lg:C&&4,label:"Modified",toField:CM},e.website&&{k:"default",comp:Eo,label:"Serve index.html",toField:Boolean,fromField:B=>B?"index.html":null,helperText:so("This folder may be a website because contains `index.html`. Enabling this will show the website instead of the list of files.")},g&&{k:"masks",multiline:!0,lg:!0,toField:wM.stringify,fromField:B=>B?wM.parse(B):void 0,sx:{"& textarea":{fontFamily:"monospace"}},helperText:["Special field, leave empty unless you know what you are doing. YAML syntax. ",Ya("Permissions","(examples)")]}]});function F(B,M,L={}){return Ce({showInherited:t,otherPerms:gt.without(Object.keys(n),B).map(z=>({value:z,label:"As "+cC(z)})),k:B,lg:6,comp:aN,parent:i,accounts:I,helperText:M,label:"Who can "+cC(B),inherit:E[B],byMasks:c==null?void 0:c[B],isDir:g},L)}}function cC(e){const t=e.split("_")[1];return t==="read"?"download":t}function CM(e){return e?new Date(e).toLocaleString():"-"}function aN(y){var v=y,{value:e,onChange:t,parent:n,inherit:r,accounts:o,helperText:i,showInherited:s,otherPerms:a,byMasks:c,isChildren:d,isDir:p,contentText:h="folder content",setApi:m}=v,g=Wt(v,["value","onChange","parent","inherit","accounts","helperText","showInherited","otherPerms","byMasks","isChildren","isDir","contentText","setApi"]);const E=(c!==void 0?"As per mask: ":n!==void 0?"As parent: ":"Default: ")+xM(c!=null?c:r),w=e!=null&&typeof e=="object"&&!Array.isArray(e),C=w&&e.children,x=w?e.this:e,P=u.useMemo(()=>sc([{value:null,label:E},{value:!0},{value:!1},{value:"*"},...a,{value:[],label:"Select accounts"}].map(I=>(I.value===x||s||I.value!==r)&&Ce({label:gt.capitalize(xM(I.value))},I))),[r,n,x]),_=500,k=Array.isArray(x);return u.createElement(Le,{sx:{borderRight:w?"8px solid #8884":void 0,transition:`all ${_}ms`}},u.createElement(vs,Pt(Ce({},g),{value:k?[]:x,onChange(I,{event:R}){t(w?{this:I,children:C}:I,{was:e,event:R})},options:P})),u.createElement(Eg,{in:k,timeout:_},k&&u.createElement(RS,{label:o!=null&&o.length?"Choose accounts for "+g.label:"You didn't create any account yet",value:x,onChange:t,options:(o==null?void 0:o.map(I=>({value:I.username,label:I.username})))||[]})),u.createElement(Mp,{},i,!d&&p&&u.createElement(wu,{sx:{display:"block",mt:-.5},onClick(I){x!==void 0&&t(w?x:{this:e},{was:e,event:I})}},w?"Different permission for ":"Same permission for ",h)),!d&&u.createElement(Eg,{in:w,timeout:_},u.createElement(aN,{label:"Permission for "+h,parent:n,inherit:r,accounts:o,showInherited:s,otherPerms:a,isDir:p,isChildren:!0,value:C!=null?C:null,onChange(I,{event:R}){t({this:x,children:I},{was:e,event:R})}})))}function xM(e){return e===!1?"no one":e===!0?"anyone":e==="*"?"any account (login required)":Array.isArray(e)?e.join(", "):typeof e=="string"?"as "+cC(e):"*UNKNOWN*"+JSON.stringify(e)}function S0e({value:e,statusApi:t}){const{data:n,reload:r,error:o}=t,i=(n==null?void 0:n.urls.https)||(n==null?void 0:n.urls.http),s=((n==null?void 0:n.baseUrl)||(i==null?void 0:i[0])||"")+e;return u.createElement(Le,{display:"flex"},i?u.createElement(Am,{label:"Link",value:s,error:o,end:u.createElement(Le,{},u.createElement(Gn,{icon:lN,title:"Copy",onClick:()=>navigator.clipboard.writeText(s)}),u.createElement(Gn,{icon:wE,title:"Change",onClick(){cN().then(r)}}))}):"error")}function cN(){return ct(this,null,function*(){return new Promise(e=>ct(this,null,function*(){const t=yield Et("get_status"),n=t.urls.https||t.urls.http,{close:r}=Vo({title:"Base address",Content(){const[o,i]=u.useState(t.baseUrl||""),s=new URL(o||n[0]).protocol+"//",a=n.includes(o)?"":o.slice(s.length),c=u.createElement(pS,{sx:{ml:2}});return u.createElement(Le,{display:"flex",flexDirection:"column"},u.createElement(Le,{mb:2},"Choose a base address for your links"),u.createElement(cy,{},u.createElement(Or,{selected:!o,onClick:()=>d("")},"Automatic",!o&&c),n.map(h=>u.createElement(Or,{key:h,selected:h===o,onClick:()=>d(h)},h,h===o&&c))),u.createElement(ws,{label:"Custom IP or domain",helperText:so(`You can type any address but *you* are responsible to make the address work.
482
+ 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=>d(yu(s,h)),start:u.createElement(vs,{value:s,onChange:h=>a?d(h+a):Sr("Enter domain first"),options:["http://","https://"],size:"small",variant:"standard",sx:{"& .MuiSelect-select":{pt:"1px",pb:0}}}),sx:{mt:2}}),u.createElement(Le,{mt:2,textAlign:"right"},u.createElement(bu,{icon:nP,children:"Save",onClick(){return ct(this,null,function*(){o!==t.baseUrl&&(yield Et("set_config",{values:{base_url:o}})),e(o),r()})}})));function d(h){h.endsWith("/")&&(h=h.slice(0,-1)),i(h)}}})}))})}let uC;function E0e(){var E,w,C;const[e]=u.useState(()=>new Map),{vfs:t,selectedFiles:n}=ia(),{data:r,reload:o,element:i}=Gr("get_vfs");u.useMemo(()=>t||o(),[t,o]);const s=u.useMemo(()=>function x(P){var _;return!gt.isEmpty(P==null?void 0:P.masks)||((_=P==null?void 0:P.children)==null?void 0:_.some(x))}(t),[t]),a="md",c=Xl(a),d=Gr("get_status"),{data:p}=d,h=u.useMemo(()=>{const x=p==null?void 0:p.baseUrl,P=(p==null?void 0:p.urls.https)||(p==null?void 0:p.urls.http);return x&&!P.includes(x)?[x,...P]:P},[p]);function m(){pn.selectedFiles=[]}const g=n.length?n.length===1?u.createElement(x0e,{addToBar:c&&u.createElement(Gn,{icon:Tp,title:"Close",onClick:m}),defaultPerms:r==null?void 0:r.defaultPerms,anyMask:s,statusApi:d,file:n[0]}):u.createElement(u.Fragment,{},u.createElement(ji,{alignItems:"center"},u.createElement(Ur,{variant:"h6"},n.length+" selected"),u.createElement(Qn,{onClick:P0e,startIcon:u.createElement(tl)},"Remove")),u.createElement(ay,{dense:!0,disablePadding:!0},n.map(x=>u.createElement(DL,{key:x.id},u.createElement(us,{primary:x.name,secondary:x.source}))))):null;if(u.useEffect(()=>{if(c||!g)return;const{close:x}=Vo({title:n.length>1?"Multiple selection":n[0].name,Content:()=>g,onClose:m});return x},[c,n]),u.useEffect(()=>{if(pn.vfs=void 0,!r)return;e.clear();const{root:x}=r;if(!x)return;x.isRoot=!0,_(x),pn.vfs=x;const P=uC||pn.selectedFiles.map(k=>k.id);uC=void 0,pn.selectedFiles=sc(P.map(k=>e.get(k)));function _(k,I="/",R=void 0){if(k.parent=R,k.id=k.isRoot?"/":yu(I,encodeURIComponent(k.name),k.type==="folder"?"/":""),e.set(k.id,k),!!k.children)for(const F of k.children)_(F,k.id,k)}},[r,e]),i)return e.clear(),i;const v=!((w=(E=r==null?void 0:r.root)==null?void 0:E.children)!=null&&w.length)&&!((C=r==null?void 0:r.root)!=null&&C.source)?{severity:"warning",children:"Add something to your shared files — click Add"}:h&&{severity:"info",children:["Your shared files can be browsed from ",Zie(" or ",h.slice(0,3).map(x=>u.createElement(Ao,{href:x},x)))]};return u.createElement(Ai,{container:!0,rowSpacing:1,maxWidth:"80em",columnSpacing:2},v&&u.createElement(Ai,{item:!0,mb:2,xs:12},u.createElement(Kr,v)),u.createElement(Ai,{item:!0,[a]:6,lg:5},u.createElement(Ur,{variant:"h6",mb:1},"Virtual File System"),u.createElement(Kr,{severity:"info"},"If you rename or delete here, it's virtual, and only affects what is presented to the users"),u.createElement(nye),t&&u.createElement(I0e,{id2node:e})),c&&g&&u.createElement(Ai,{item:!0,[a]:6,lg:7,maxWidth:"100%"},u.createElement(oy,{},u.createElement(iy,{},g))))}function ec(e){uC=e,pn.vfs=void 0}function P0e(){return ct(this,null,function*(){const e=pn.selectedFiles;if(e.length&&(yield fi(`Delete ${e.length} item(s)?`)))try{const t=e.map(o=>o.id);gt.pull(t,"/");const{errors:n}=yield Et("del_vfs",{uris:t}),r=t.filter((o,i)=>n[i]);if(r.length)return Gt("Following elements couldn't be deleted: "+r.join(", "),"error");ec()}catch(t){yield Gt(t)}})}const uN=aD,dN=cD;function I0e({id2node:e}){const{vfs:t,selectedFiles:n}=ia(),[r,o]=u.useState(n.map(m=>m.id)),[i,s]=u.useState(Array.from(e.keys())),a=u.useRef(),c=u.useRef();if(!t)return null;const d="vfs";return u.createElement($A,{ref:c,expanded:i,selected:r,multiSelect:!0,id:d,sx:{overflowX:"auto",maxWidth:c.current&&`calc(100vw - ${16+c.current.offsetLeft}px)`,"& ul":{borderLeft:"1px dashed #444",marginLeft:"15px"}},onNodeSelect(m,g){o(g),pn.selectedFiles=sc(g.map(y=>e.get(y)))}},h(t));function p(m){return m!==void 0&&m!==!0}function h(m){var C,x;let{id:g,name:y,isRoot:v}=m;if(!g)debugger;const E=m.type==="folder";return u.createElement(jw,{ref(P){P==null||P.addEventListener("focusin",_=>_.stopImmediatePropagation())},label:u.createElement(Le,{draggable:!v,onDragStart(){a.current=g},onDragOver(P){if(!E)return;const _=a.current;_!=null&&_.startsWith(g)&&!_.slice(g.length+1).includes("/")||P.preventDefault()},onDrop(){return ct(this,null,function*(){const P=a.current;P&&(yield fi(`Moving ${P} under ${g}`))&&Et("move_vfs",{from:P,parent:g}).then(()=>{ec([g+P.slice(1+P.lastIndexOf("/",P.length-2))])},Gt)})},sx:{display:"flex",gap:".5em",lineHeight:"2em",alignItems:"center"}},u.createElement(Le,{display:"flex",flex:0},v?to(tS,"home, or root if you like"):E?to(uN,"Folder"):to(dN,"File"),u.createElement(Le,{sx:{flex:0,ml:"2px",my:"2px","&>*":{fontSize:"87%",opacity:.6,mt:"-2px"},display:"grid",gridAutoFlow:"column",gridTemplateRows:"auto auto"}},m.can_delete!==void 0&&to(tl,"Delete permission"),m.can_upload!==void 0&&to(Ap,"Upload permission"),!v&&!m.source&&to(fD,"Virtual (no source)"),p(m.can_see)&&to(uD,"Restrictions on who can see"),p(m.can_read)&&to(GS,"Restrictions on who can download"),m.default&&to(dD,"Act as website"),m.masks&&to(lD,"Masks"),m.size===-1&&to(pD,"Source not found"))),v?"Home":(()=>{var I;const P=(I=m.parent)==null?void 0:I.source,{source:_}=m,k=P&&(_!=null&&_.startsWith(P))?"."+_.slice(P.length):_;return!k||!(_!=null&&_.endsWith(y))||k.length>45?u.createElement(Le,{lineHeight:"1.2em"},y):u.createElement("span",{},u.createElement("span",{style:{opacity:.4}},k.slice(0,-y.length)),k.slice(-y.length))})()),key:y,collapseIcon:u.createElement(sD,{onClick(P){s(i.filter(_=>_!==g)),P.preventDefault(),P.stopPropagation()}}),expandIcon:u.createElement(iD,{onClick(P){s([...i,g]),P.preventDefault(),P.stopPropagation()}}),nodeId:g},v&&!((C=m.children)!=null&&C.length)?u.createElement(jw,{nodeId:"?",label:u.createElement("i",{},"nothing here")}):(x=m.children)==null?void 0:x.map(h))}}var SM=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function k0e(e,t){return!!(e===t||SM(e)&&SM(t))}function _0e(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!k0e(e[n],t[n]))return!1;return!0}function mb(e,t){t===void 0&&(t=_0e);var n,r=[],o,i=!1;function s(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];return i&&n===this&&t(a,r)||(o=e.apply(this,a),i=!0,n=this,r=a),o}return s}var $0e=typeof performance=="object"&&typeof performance.now=="function",EM=$0e?function(){return performance.now()}:function(){return Date.now()};function PM(e){cancelAnimationFrame(e.id)}function R0e(e,t){var n=EM();function r(){EM()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var gb=-1;function IM(e){if(e===void 0&&(e=!1),gb===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),gb=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return gb}var Nc=null;function kM(e){if(e===void 0&&(e=!1),Nc===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?Nc="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Nc="negative":Nc="positive-ascending"),document.body.removeChild(t),Nc}return Nc}var M0e=150,T0e=function(t,n){return t};function O0e(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,a=e.getStopIndexForStartIndex,c=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,p=e.validateProps;return t=function(h){zx(m,h);function m(y){var v;return v=h.call(this,y)||this,v._instanceProps=c(v.props,_w(v)),v._outerRef=void 0,v._resetIsScrollingTimeoutId=null,v.state={instance:_w(v),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof v.props.initialScrollOffset=="number"?v.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},v._callOnItemsRendered=void 0,v._callOnItemsRendered=mb(function(E,w,C,x){return v.props.onItemsRendered({overscanStartIndex:E,overscanStopIndex:w,visibleStartIndex:C,visibleStopIndex:x})}),v._callOnScroll=void 0,v._callOnScroll=mb(function(E,w,C){return v.props.onScroll({scrollDirection:E,scrollOffset:w,scrollUpdateWasRequested:C})}),v._getItemStyle=void 0,v._getItemStyle=function(E){var w=v.props,C=w.direction,x=w.itemSize,P=w.layout,_=v._getItemStyleCache(d&&x,d&&P,d&&C),k;if(_.hasOwnProperty(E))k=_[E];else{var I=n(v.props,E,v._instanceProps),R=o(v.props,E,v._instanceProps),F=C==="horizontal"||P==="horizontal",A=C==="rtl",O=F?I:0;_[E]=k={position:"absolute",left:A?void 0:O,right:A?O:void 0,top:F?0:I,height:F?"100%":R,width:F?R:"100%"}}return k},v._getItemStyleCache=void 0,v._getItemStyleCache=mb(function(E,w,C){return{}}),v._onScrollHorizontal=function(E){var w=E.currentTarget,C=w.clientWidth,x=w.scrollLeft,P=w.scrollWidth;v.setState(function(_){if(_.scrollOffset===x)return null;var k=v.props.direction,I=x;if(k==="rtl")switch(kM()){case"negative":I=-x;break;case"positive-descending":I=P-C-x;break}return I=Math.max(0,Math.min(I,P-C)),{isScrolling:!0,scrollDirection:_.scrollOffset<x?"forward":"backward",scrollOffset:I,scrollUpdateWasRequested:!1}},v._resetIsScrollingDebounced)},v._onScrollVertical=function(E){var w=E.currentTarget,C=w.clientHeight,x=w.scrollHeight,P=w.scrollTop;v.setState(function(_){if(_.scrollOffset===P)return null;var k=Math.max(0,Math.min(P,x-C));return{isScrolling:!0,scrollDirection:_.scrollOffset<k?"forward":"backward",scrollOffset:k,scrollUpdateWasRequested:!1}},v._resetIsScrollingDebounced)},v._outerRefSetter=function(E){var w=v.props.outerRef;v._outerRef=E,typeof w=="function"?w(E):w!=null&&typeof w=="object"&&w.hasOwnProperty("current")&&(w.current=E)},v._resetIsScrollingDebounced=function(){v._resetIsScrollingTimeoutId!==null&&PM(v._resetIsScrollingTimeoutId),v._resetIsScrollingTimeoutId=R0e(v._resetIsScrolling,M0e)},v._resetIsScrolling=function(){v._resetIsScrollingTimeoutId=null,v.setState({isScrolling:!1},function(){v._getItemStyleCache(-1,null)})},v}m.getDerivedStateFromProps=function(v,E){return F0e(v,E),p(v),null};var g=m.prototype;return g.scrollTo=function(v){v=Math.max(0,v),this.setState(function(E){return E.scrollOffset===v?null:{scrollDirection:E.scrollOffset<v?"forward":"backward",scrollOffset:v,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},g.scrollToItem=function(v,E){E===void 0&&(E="auto");var w=this.props,C=w.itemCount,x=w.layout,P=this.state.scrollOffset;v=Math.max(0,Math.min(v,C-1));var _=0;if(this._outerRef){var k=this._outerRef;x==="vertical"?_=k.scrollWidth>k.clientWidth?IM():0:_=k.scrollHeight>k.clientHeight?IM():0}this.scrollTo(i(this.props,v,E,P,this._instanceProps,_))},g.componentDidMount=function(){var v=this.props,E=v.direction,w=v.initialScrollOffset,C=v.layout;if(typeof w=="number"&&this._outerRef!=null){var x=this._outerRef;E==="horizontal"||C==="horizontal"?x.scrollLeft=w:x.scrollTop=w}this._callPropsCallbacks()},g.componentDidUpdate=function(){var v=this.props,E=v.direction,w=v.layout,C=this.state,x=C.scrollOffset,P=C.scrollUpdateWasRequested;if(P&&this._outerRef!=null){var _=this._outerRef;if(E==="horizontal"||w==="horizontal")if(E==="rtl")switch(kM()){case"negative":_.scrollLeft=-x;break;case"positive-ascending":_.scrollLeft=x;break;default:var k=_.clientWidth,I=_.scrollWidth;_.scrollLeft=I-k-x;break}else _.scrollLeft=x;else _.scrollTop=x}this._callPropsCallbacks()},g.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&PM(this._resetIsScrollingTimeoutId)},g.render=function(){var v=this.props,E=v.children,w=v.className,C=v.direction,x=v.height,P=v.innerRef,_=v.innerElementType,k=v.innerTagName,I=v.itemCount,R=v.itemData,F=v.itemKey,A=F===void 0?T0e:F,O=v.layout,N=v.outerElementType,B=v.outerTagName,M=v.style,L=v.useIsScrolling,z=v.width,V=this.state.isScrolling,D=C==="horizontal"||O==="horizontal",H=D?this._onScrollHorizontal:this._onScrollVertical,W=this._getRangeToRender(),K=W[0],Y=W[1],ie=[];if(I>0)for(var re=K;re<=Y;re++)ie.push(u.createElement(E,{data:R,key:A(re,R),index:re,isScrolling:L?V:void 0,style:this._getItemStyle(re)}));var de=r(this.props,this._instanceProps);return u.createElement(N||B||"div",{className:w,onScroll:H,ref:this._outerRefSetter,style:S({position:"relative",height:x,width:z,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:C},M)},u.createElement(_||k||"div",{children:ie,ref:P,style:{height:D?"100%":de,pointerEvents:V?"none":void 0,width:D?de:"100%"}}))},g._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var v=this.props.itemCount;if(v>0){var E=this._getRangeToRender(),w=E[0],C=E[1],x=E[2],P=E[3];this._callOnItemsRendered(w,C,x,P)}}if(typeof this.props.onScroll=="function"){var _=this.state,k=_.scrollDirection,I=_.scrollOffset,R=_.scrollUpdateWasRequested;this._callOnScroll(k,I,R)}},g._getRangeToRender=function(){var v=this.props,E=v.itemCount,w=v.overscanCount,C=this.state,x=C.isScrolling,P=C.scrollDirection,_=C.scrollOffset;if(E===0)return[0,0,0,0];var k=s(this.props,_,this._instanceProps),I=a(this.props,k,_,this._instanceProps),R=!x||P==="backward"?Math.max(1,w):1,F=!x||P==="forward"?Math.max(1,w):1;return[Math.max(0,k-R),Math.max(0,Math.min(E-1,I+F)),k,I]},m}(u.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var F0e=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},L0e=O0e({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,i,s){var a=t.direction,c=t.height,d=t.itemCount,p=t.itemSize,h=t.layout,m=t.width,g=a==="horizontal"||h==="horizontal",y=g?m:c,v=Math.max(0,d*p-y),E=Math.min(v,n*p),w=Math.max(0,n*p-y+p+s);switch(r==="smart"&&(o>=w-y&&o<=E+y?r="auto":r="center"),r){case"start":return E;case"end":return w;case"center":{var C=Math.round(w+(E-w)/2);return C<Math.ceil(y/2)?0:C>v+Math.floor(y/2)?v:C}case"auto":default:return o>=w&&o<=E?o:o<w?w:E}},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,i=t.height,s=t.itemCount,a=t.itemSize,c=t.layout,d=t.width,p=o==="horizontal"||c==="horizontal",h=n*a,m=p?d:i,g=Math.ceil((m+r-h)/a);return Math.max(0,Math.min(s-1,n+g-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}});function fN({onSelect:e,multiple:t=!0,files:n=!0,folders:r=!0,fileMask:o,from:i=""}){const[s,a]=u.useState(i),[c,d]=u.useState(!1),p=u.useRef(!1);u.useEffect(()=>{Et("resolve_path",{path:i,closestFolder:!0}).then(N=>{typeof N.path=="string"&&(a(N.path),p.current=N.path[1]===":")}).finally(()=>d(!0))},[i]);const{list:h,error:m,connecting:g}=lc(c&&"get_ls",{path:s,files:n,fileMask:o});u.useEffect(()=>{v([]),w("")},[s]);const[y,v]=u.useState([]),[E,w]=u.useState(""),C=u.useMemo(()=>gt.debounce(N=>w(N)),[]),x=u.useMemo(()=>{const N=new RegExp(gt.escapeRegExp(E),"i");return B=>N.test(B)},[E]),[P,_]=u.useState(0),k=u.useMemo(()=>h.filter(N=>x(N.n)),[h,x]),I=p.current?"":"/",R=p.current?"\\":"/",F=Fse(R,s),A=s.length<2;return u.createElement(u.Fragment,{},u.createElement(Le,{display:"flex",gap:1},u.createElement(Qn,{title:"root",disabled:A,onClick(){a(I)}},u.createElement(oD)),u.createElement(Qn,{disabled:A,title:"parent folder",onClick(){const N=/[\\/]$/.test(s)?s.slice(0,-1):s,B=$le(N)?I:N.slice(0,N.lastIndexOf(R)||1);a(B)}},u.createElement(SE)),u.createElement(ws,{label:"Current path",value:s,InputLabelProps:{shrink:!0},onChange(N){return ct(this,null,function*(){if(!N)return a(I);const B=yield Et("resolve_path",{path:N});a(B.path)})}})),m?u.createElement(Kr,{severity:"error"},AA(m)):u.createElement(u.Fragment,{},u.createElement(Le,{ref(N){if(!N)return;const B=(N==null?void 0:N.clientHeight)-1;B-P>1&&_(B)},sx:{flex:1,display:"flex",flexDirection:"column"}},h.length?u.createElement(L0e,{width:"100%",height:P,itemSize:46,itemCount:k.length,overscanCount:5,children({index:N,style:B}){const M=k[N],L=M.k==="d";return u.createElement(Or,{style:Pt(Ce({},B),{padding:0}),key:M.n,onClick(){L?a(F+M.n):e([F+M.n])}},t&&u.createElement(bL,{checked:y.includes(M.n),disabled:!r&&L,onClick(z){const V=M.n,D=y.filter(H=>H!==V);v(D.length<y.length?D:[...y,V]),z.stopPropagation()}}),u.createElement(js,{},u.createElement(M.k?uN:dN)),u.createElement(us,{sx:{whiteSpace:"pre-wrap",wordBreak:"break-all"}},M.n),!L&&M.s!==void 0&&u.createElement(Ur,{variant:"body2",color:"text.secondary",ml:4,mr:1},Ql(M.s)))}}):u.createElement(Lp,{flex:1,mt:"4em"},g?LA():"No elements in this folder")),u.createElement(Le,{display:"flex",gap:1},(t||r||!n)&&u.createElement(Qn,{variant:"contained",disabled:!s||!r&&!y.length&&n,sx:{minWidth:"max-content"},onClick(){e(y.length?y.map(N=>F+N):[s])}},n&&(y.length||!r)?`Select (${y.length})`:"Select this folder"),u.createElement(id,{value:E,label:`Filter results (${k.length}${k.length<h.length?"/"+h.length:""})`,onChange(N){C(N.target.value)},sx:{flex:1}}))))}function Rf(c){var d=c,{value:e,onChange:t,files:n=!0,folders:r=!1,fileMask:o,defaultPath:i,title:s}=d,a=Wt(d,["value","onChange","files","folders","fileMask","defaultPath","title"]);const p=Xl("md");return u.createElement(ws,Pt(Ce({},a),{value:e,onChange:t,InputProps:{endAdornment:u.createElement(qa,{position:"end"},u.createElement(Gn,{icon:rD,title:"Browse files...",edge:"end",onClick(){const{close:h}=Vo({title:s!=null?s:n?"Pick a file":"Pick a folder",dialogProps:{fullScreen:!p,sx:{minWidth:"min(90vw, 40em)",minHeight:"calc(100vh - 9em)"}},Content(){return u.createElement(fN,{multiple:!1,folders:r,files:n,fileMask:o,from:e||i,onSelect(g){return ct(this,null,function*(){var E;let y=g==null?void 0:g[0];if(!y)return;const v=(E=yield Et("get_cwd"))==null?void 0:E.path;y.startsWith(v)&&(y=y.slice(v.length+1)||"."),t(y,{was:e,event:"picker"}),h()})}})}})}}))}}))}var rP={},A0e=rt;Object.defineProperty(rP,"__esModule",{value:!0});var Um=rP.default=void 0,D0e=A0e(ot()),N0e=tt(),B0e=(0,D0e.default)((0,N0e.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-3h2zm-7 2-5-5h4V3h2v7h4l-5 5z"}),"BrowserUpdated");Um=rP.default=B0e;var oP={},z0e=rt;Object.defineProperty(oP,"__esModule",{value:!0});var pN=oP.default=void 0,j0e=z0e(ot()),H0e=tt(),V0e=(0,j0e.default)((0,H0e.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 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");pN=oP.default=V0e;var iP={},U0e=rt;Object.defineProperty(iP,"__esModule",{value:!0});var hN=iP.default=void 0,W0e=U0e(ot()),G0e=tt(),K0e=(0,W0e.default)((0,G0e.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-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"Launch");hN=iP.default=K0e;var sP={},q0e=rt;Object.defineProperty(sP,"__esModule",{value:!0});var mN=sP.default=void 0,Y0e=q0e(ot()),Q0e=tt(),X0e=(0,Y0e.default)((0,Q0e.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-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"OpenInNew");mN=sP.default=X0e;function J0e(){var P,_,k;const e=" — ",{username:t}=ia(),{data:n,reload:r,element:o}=Gr("get_status"),{data:i}=Gr("get_vfs"),[s]=bS(t&&"get_account"),{data:a,reload:c}=Gr("get_config",{only:["https_port","cert","private_key","proxies","update_to_beta"]}),{list:d}=lc("get_plugins"),[p,h]=u.useState();if(o||!n)return o;const{http:m,https:g}=n,y=!(m!=null&&m.listening)&&(g!=null&&g.listening)?"s":"",v=y?g:(m==null?void 0:m.listening)&&m,E=v&&`http${y}://`+window.location.hostname+(v.port===(y?443:80)?"":":"+v.port),w=gt.pick(n,["http","https"]),C=yA(w,R=>R.busy?[`port ${R.port} already used by ${R.busy}${e}choose a `,mm("different port"),` or stop ${R.busy}`]:R.error),x=C&&sc(Object.entries(C).map(([R,F])=>F&&[so(`Protocol <u>${R}</u> cannot work: `),F,(lP(F)||aP(F))&&[e,u.createElement(wu,{onClick(){cP().then(c).then(r)}},"make one")," or ",e,mm("provide adequate files")]]));return u.createElement(Le,{display:"flex",gap:2,flexDirection:"column",alignItems:"flex-start",height:"100%"},t&&eo("","Welcome "+t),x.length?op(x.map(R=>eo("error",op(R)))):eo("success","Server is working"),i?!((_=(P=i.root)==null?void 0:P.children)!=null&&_.length)&&!((k=i.root)!=null&&k.source)?eo("warning","You have no files shared",e,e1e("add some")):eo("",so("This is Admin-panel, where you manage your server. Access your files on "),u.createElement(Ao,{target:"frontend",href:"../.."},"Front-end",u.createElement(hN,{sx:{verticalAlign:"sub",ml:".2em"}}))):u.createElement(Ig),!E&&eo("warning","Frontend unreachable: ",gt.map(C,(R,F)=>F+" "+(R?"is in error":"is off")).join(", "),!x.length&&[e,mm("switch http or https on")]),d.find(R=>R.badApi)&&eo("warning","Some plugins may be incompatible"),!(s!=null&&s.adminActualAccess)&&eo("",so("On <u>localhost</u> you don't need to login"),e,"to access from another computer ",u.createElement(OS,{to:"accounts"},so("create an account with *admin* permission"))),dC(a,n)&&eo("warning",dC(a,n),e,mm("set the number of proxies"),e,"unless you are sure and you can ",u.createElement(Qn,{size:"small",onClick(){return ct(this,null,function*(){(yield fi("Go on only if you know what you are doing"))&&(yield Et("set_config",{values:{ignore_proxies:!0}}))&&c()})}},"ignore this warning"),e,Ya("Proxy-warning","Explanation")),((a==null?void 0:a.proxies)>0||(n==null?void 0:n.proxyDetected))&&eo("",Ya("Reverse-proxy","Read our guide on proxies")),n.frpDetected&&eo("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",{},so("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)`))),eo("",u.createElement(Ao,{target:"support",href:yy+"discussions"},"Get support")),n.updatePossible==="local"?u.createElement(bu,{icon:Um,onClick:()=>_M()},"Update from local file"):p?ip(gt.find(p,"isNewer"),R=>!p.length||!n.updatePossible&&!R?eo("","No update available"):R&&!n.updatePossible?eo("",`Version ${R.name} available`):u.createElement(ji,{vert:!0},p.map(F=>u.createElement(ji,{key:F.name,alignItems:"flex-start",flexWrap:"wrap"},u.createElement(oy,{},u.createElement(iy,{},u.createElement(bu,Pt(Ce({icon:Um},!F.isNewer&&{color:"warning",variant:"outlined"}),{onClick:()=>_M(F.tag_name)}),yu("Install ",F.name,F.isNewer?"":" (older)")),u.createElement(Le,{mt:1},Z0e(F.body)))))))):u.createElement(bu,{variant:"outlined",icon:Um,onClick:()=>Et("check_update").then(R=>h(R.options),Gt)},"Check for updates"))}function Z0e(e){return so(e,{onText:t});function t(n){return NE(n,new RegExp("(?<=^|\\W)#(\\d+)\\b","g"),r=>u.createElement(Ao,{href:yy+"issues/"+r[1],target:"_blank"},u.createElement(mN,{sx:{verticalAlign:"bottom"}})))}}function _M(e){return ct(this,null,function*(){if(!(yield fi("Update may take less than a minute, depending on the speed of your server")))return;Sr("Downloading"),yield Et("update",{tag:e}),Sr("Restarting");const t=Date.now();let n;for(;yield Et("NONE").then(()=>0,r=>!r.code);)!n&&Date.now()-t>1e4&&(n=Gt("This is taking too long, please check your server","warning")),yield Ose(500);n==null||n.close(),NA(pn,"loginRequired",()=>pn.loginRequired=!1),yield Gt("Procedure complete","success"),window.location.reload()})}function eo(e,...t){return u.createElement(Le,{fontSize:"x-large",color:n=>{var r;return e&&((r=n.palette[e])==null?void 0:r.main)}},u.createElement({success:pN,info:rp,"":rp,warning:Op,error:dy}[e],{sx:{mb:"-3px",mr:1,color:e?void 0:"primary.main"}}),...t)}function e1e(e="File System page"){return u.createElement(OS,{to:"fs"},e)}function mm(e="Options page"){return u.createElement(OS,{to:"options"},e)}function dC(e,t){return e&&!e.proxies&&(t==null?void 0:t.proxyDetected)&&"A proxy was detected but none is configured"}var gN={},t1e=Sn&&Sn.__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 i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},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)}}(),fr=Sn&&Sn.__assign||function(){return fr=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},fr.apply(this,arguments)},n1e=Sn&&Sn.__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]}),r1e=Sn&&Sn.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o1e=Sn&&Sn.__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)&&n1e(t,e,n);return r1e(t,e),t},i1e=Sn&&Sn.__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(gN,"__esModule",{value:!0});var Zd=o1e(u),s1e=13,l1e=9,a1e=8,c1e=89,gm=90,u1e=77,$M=57,RM=219,MM=222,TM=192,d1e=27,OM=100,f1e=3e3,p1e=typeof window!="undefined"&&"navigator"in window&&/Win/i.test(navigator.platform),vb=typeof window!="undefined"&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),Wm="npm__react-simple-code-editor__textarea",h1e=`
483
+ /**
484
+ * Reset the text fill color so that placeholder is visible
485
+ */
486
+ .`.concat(Wm,`:empty {
487
+ -webkit-text-fill-color: inherit !important;
488
+ }
489
+
490
+ /**
491
+ * Hack to apply on some CSS on IE10 and IE11
492
+ */
493
+ @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
494
+ /**
495
+ * IE doesn't support '-webkit-text-fill-color'
496
+ * So we use 'color: transparent' to make the text transparent on IE
497
+ * Unlike other browsers, it doesn't affect caret color in IE
498
+ */
499
+ .`).concat(Wm,` {
500
+ color: transparent !important;
501
+ }
502
+
503
+ .`).concat(Wm,`::selection {
504
+ background-color: #accef7 !important;
505
+ color: transparent !important;
506
+ }
507
+ }
508
+ `),m1e=function(e){t1e(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,i=r.selectionStart,s=r.selectionEnd;n._recordChange({value:o,selectionStart:i,selectionEnd:s})}},n._getLines=function(r,o){return r.substring(0,o).split(`
509
+ `)},n._recordChange=function(r,o){var i,s,a;o===void 0&&(o=!1);var c=n._history,d=c.stack,p=c.offset;if(d.length&&p>-1){n._history.stack=d.slice(0,p+1);var h=n._history.stack.length;if(h>OM){var m=h-OM;n._history.stack=d.slice(m,h),n._history.offset=Math.max(n._history.offset-m,0)}}var g=Date.now();if(o){var y=n._history.stack[n._history.offset];if(y&&g-y.timestamp<f1e){var v=/[^a-z0-9]([a-z0-9]+)$/i,E=(i=n._getLines(y.value,y.selectionStart).pop())===null||i===void 0?void 0:i.match(v),w=(s=n._getLines(r.value,r.selectionStart).pop())===null||s===void 0?void 0:s.match(v);if(E!=null&&E[1]&&(!((a=w==null?void 0:w[1])===null||a===void 0)&&a.startsWith(E[1]))){n._history.stack[n._history.offset]=fr(fr({},r),{timestamp:g});return}}}n._history.stack.push(fr(fr({},r),{timestamp:g})),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,i=n._history.stack[n._history.offset];i&&o&&(n._history.stack[n._history.offset]=fr(fr({},i),{selectionStart:o.selectionStart,selectionEnd:o.selectionEnd})),n._recordChange(r),n._updateInput(r)},n._undoEdit=function(){var r=n._history,o=r.stack,i=r.offset,s=o[i-1];s&&(n._updateInput(s),n._history.offset=Math.max(i-1,0))},n._redoEdit=function(){var r=n._history,o=r.stack,i=r.offset,s=o[i+1];s&&(n._updateInput(s),n._history.offset=Math.min(i+1,o.length-1))},n._handleKeyDown=function(r){var o=n.props,i=o.tabSize,s=o.insertSpaces,a=o.ignoreTabKey,c=o.onKeyDown;if(!(c&&(c(r),r.defaultPrevented))){r.keyCode===d1e&&r.currentTarget.blur();var d=r.currentTarget,p=d.value,h=d.selectionStart,m=d.selectionEnd,g=(s?" ":" ").repeat(i);if(r.keyCode===l1e&&!a&&n.state.capture)if(r.preventDefault(),r.shiftKey){var y=n._getLines(p,h),v=y.length-1,E=n._getLines(p,m).length-1,w=p.split(`
510
+ `).map(function(N,B){return B>=v&&B<=E&&N.startsWith(g)?N.substring(g.length):N}).join(`
511
+ `);if(p!==w){var C=y[v];n._applyEdits({value:w,selectionStart:C!=null&&C.startsWith(g)?h-g.length:h,selectionEnd:m-(p.length-w.length)})}}else if(h!==m){var y=n._getLines(p,h),x=y.length-1,P=n._getLines(p,m).length-1,C=y[x];n._applyEdits({value:p.split(`
512
+ `).map(function(M,L){return L>=x&&L<=P?g+M:M}).join(`
513
+ `),selectionStart:C&&/\S/.test(C)?h+g.length:h,selectionEnd:m+g.length*(P-x+1)})}else{var _=h+g.length;n._applyEdits({value:p.substring(0,h)+g+p.substring(m),selectionStart:_,selectionEnd:_})}else if(r.keyCode===a1e){var k=h!==m,I=p.substring(0,h);if(I.endsWith(g)&&!k){r.preventDefault();var _=h-g.length;n._applyEdits({value:p.substring(0,h-g.length)+p.substring(m),selectionStart:_,selectionEnd:_})}}else if(r.keyCode===s1e){if(h===m){var R=n._getLines(p,h).pop(),F=R==null?void 0:R.match(/^\s+/);if(F!=null&&F[0]){r.preventDefault();var A=`
514
+ `+F[0],_=h+A.length;n._applyEdits({value:p.substring(0,h)+A+p.substring(m),selectionStart:_,selectionEnd:_})}}}else if(r.keyCode===$M||r.keyCode===RM||r.keyCode===MM||r.keyCode===TM){var O=void 0;r.keyCode===$M&&r.shiftKey?O=["(",")"]:r.keyCode===RM?r.shiftKey?O=["{","}"]:O=["[","]"]:r.keyCode===MM?r.shiftKey?O=['"','"']:O=["'","'"]:r.keyCode===TM&&!r.shiftKey&&(O=["`","`"]),h!==m&&O&&(r.preventDefault(),n._applyEdits({value:p.substring(0,h)+O[0]+p.substring(h,m)+O[1]+p.substring(m),selectionStart:h,selectionEnd:m+2}))}else(vb?r.metaKey&&r.keyCode===gm:r.ctrlKey&&r.keyCode===gm)&&!r.shiftKey&&!r.altKey?(r.preventDefault(),n._undoEdit()):(vb?r.metaKey&&r.keyCode===gm&&r.shiftKey:p1e?r.ctrlKey&&r.keyCode===c1e:r.ctrlKey&&r.keyCode===gm&&r.shiftKey)&&!r.altKey?(r.preventDefault(),n._redoEdit()):r.keyCode===u1e&&r.ctrlKey&&(!vb||r.shiftKey)&&(r.preventDefault(),n.setState(function(N){return{capture:!N.capture}}))}},n._handleChange=function(r){var o=r.currentTarget,i=o.value,s=o.selectionStart,a=o.selectionEnd;n._recordChange({value:i,selectionStart:s,selectionEnd:a},!0),n.props.onValueChange(i)},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,i=r.style,s=r.padding,a=r.highlight,c=r.textareaId,d=r.textareaClassName,p=r.autoFocus,h=r.disabled,m=r.form,g=r.maxLength,y=r.minLength,v=r.name,E=r.placeholder,w=r.readOnly,C=r.required,x=r.onClick,P=r.onFocus,_=r.onBlur,k=r.onKeyUp;r.onKeyDown,r.onValueChange,r.tabSize,r.insertSpaces,r.ignoreTabKey;var I=r.preClassName,R=i1e(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"]),F={paddingTop:typeof s=="object"?s.top:s,paddingRight:typeof s=="object"?s.right:s,paddingBottom:typeof s=="object"?s.bottom:s,paddingLeft:typeof s=="object"?s.left:s},A=a(o);return Zd.createElement("div",fr({},R,{style:fr(fr({},ef.container),i)}),Zd.createElement("pre",fr({className:I,"aria-hidden":"true",style:fr(fr(fr({},ef.editor),ef.highlight),F)},typeof A=="string"?{dangerouslySetInnerHTML:{__html:A+"<br />"}}:{children:A})),Zd.createElement("textarea",{ref:function(O){return n._input=O},style:fr(fr(fr({},ef.editor),ef.textarea),F),className:Wm+(d?" ".concat(d):""),id:c,value:o,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:x,onKeyUp:k,onFocus:P,onBlur:_,disabled:h,form:m,maxLength:g,minLength:y,name:v,placeholder:E,readOnly:w,required:C,autoFocus:p,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),Zd.createElement("style",{dangerouslySetInnerHTML:{__html:h1e}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(Zd.Component),g1e=gN.default=m1e,ef={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"}};function v1e(){const{data:e,reload:t}=Gr("get_custom_html"),[n,r]=u.useState(""),[o,i]=u.useState({}),[s,a]=u.useState({});u.useEffect(()=>e&&a(e==null?void 0:e.sections),[e]),u.useEffect(()=>i(s),[s]);const c=u.useMemo(()=>{const h=Object.keys(o);return h.includes(n)||r((h==null?void 0:h[0])||""),h.map(m=>{var g;return{value:m,label:gt.startCase(m)+((g=o[m])!=null&&g.trim()?" *":"")}})},[wS(o,500)]),d=u.useMemo(()=>!gt.isEqualWith(s,o,(h,m)=>!h&&!m||void 0),[s,o]);return u.createElement(u.Fragment,{},u.createElement(Kr,{severity:"info"},so("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. "),Ya("customization","More help")),u.createElement(Le,{display:"flex",alignItems:"center",gap:1,mb:1},u.createElement(vs,{label:"Section",value:n,options:c,onChange:r}),FS(t),u.createElement(Gn,{icon:nP,title:`Save
515
+ (ctrl+enter)`,sx:wy(d),onClick:p})),u.createElement(vN,{value:(o==null?void 0:o[n])||"",style:{background:"#8881"},onValueChange(h){i(m=>Pt(Ce({},m),{[n]:h}))},onKeyDown(h){["s","Enter"].includes(Fle(h))&&(p().then(),h.preventDefault())}}));function p(){return Et("set_custom_html",{sections:o}).then(()=>a(o))}}function y1e(e){return e.replace(/[\u0000-\u002F\u003A-\u0040\u005B-\u0060\u007B-\u00FF]/g,t=>"&#"+("000"+t.charCodeAt(0)).slice(-4)+";")}const vN=u.forwardRef((r,n)=>{var o=r,{style:e}=o,t=Wt(o,["style"]);return u.createElement(g1e,Ce({highlight:y1e,padding:10,tabSize:4,insertSpaces:!0,ignoreTabKey:!1,style:Ce({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 b1e(i){var s=i,{onChange:e,value:t,onBlur:n,setApi:r}=s,o=Wt(s,["onChange","value","onBlur","setApi"]);const[a,c]=u.useState(t||"");return u.createElement(id,Pt(Ce({multiline:!0,fullWidth:!0,value:a,InputProps:{inputComponent:w1e},onChange(d){c(d.target.value)},onBlur(d){n==null||n(d),e(d.target.value,{was:t,event:d})}},o),{onKeyDown(d){if(!d.altKey||d.key!=="Tab")return;d.preventDefault();const p=document.querySelectorAll(gA),h=gt.indexOf(p,d.target),m=p.length,g=(h+(d.shiftKey?-1:1)+m)%m;p[g].focus(),console.debug(p[g])}}))}const w1e=u.forwardRef((r,n)=>{var o=r,{onChange:e}=o,t=Wt(o,["onChange"]);return u.createElement(Le,{sx:{width:"100%",textarea:{outline:0}}},u.createElement(vN,Ce({ref:n,onValueChange:i=>e({target:{value:i}}),padding:2,style:{background:"initial",borderBottom:"initial"}},t)))});let Ul,fC;const yN=SS({changes:{}});ES(pn,e=>{e.some(t=>t[1][0]==="config")&&bN()});const Yg={log:"Access",error_log:"Access error",console:"Console"},FM=ws;function C1e(){var g;const{data:e,reload:t,element:n}=Gr("get_config",{omit:["vfs"]}),r=ia(),{changes:o}=PS(yN),i=Gr(e&&"get_status"),s=i.data,a=fC=i.reload;u.useEffect(()=>void a(),[e]),u.useEffect(()=>()=>fC=void 0,[]);const c=(g=bS("get_admins")[0])==null?void 0:g.list;if(n)return n;if(i.error)return i.element;const d=Ul!==e?pn.config=Ul=e:r.config,p={comp:Oi,min:1,unit:"KB/s",placeholder:"no limit",md:3},h=d.https_port>=0;return u.createElement(Fp,{sx:{maxWidth:"60em"},values:d,set(y,v){pn.config[v]=y},stickyBar:!0,onError:Gt,save:{onClick:m,sx:wy(Object.keys(o).length>0)},barSx:{gap:2},addToBar:[u.createElement(Qn,{onClick(){t(),a()},startIcon:u.createElement(uy)},"Reload")],defaults(){return{sm:6}},fields:[{k:"port",comp:LM,md:3,label:"HTTP port",status:(s==null?void 0:s.http)||!0,suggestedPort:80},{k:"https_port",comp:LM,md:3,label:"HTTPS port",status:(s==null?void 0:s.https)||!0,suggestedPort:443,onChange(y){return y>=0&&!h&&!d.cert&&S1e(),y}},Pt(Ce({k:"max_kbps"},p),{label:"Limit output",helperText:"Doesn't apply to localhost"}),Pt(Ce({k:"max_kbps_per_ip"},p),{label:"Limit output per-ip"}),h&&d.port>=0&&{k:"force_https",comp:Eo,sm:12,md:4,label:"Force HTTPS",helperText:"Not applied to localhost"},h&&{k:"cert",comp:Rf,md:4,label:"HTTPS certificate file",helperText:Ya("HTTPS#certificate","What is this?"),error:ip(s==null?void 0:s.https.error,y=>lP(y)&&(s.https.listening?y:[y," - ",u.createElement(wu,{key:"fix",onClick:cP},"make one")]))},h&&Ce({k:"private_key",comp:Rf,md:4,label:"HTTPS private key file"},ip(s==null?void 0:s.https.error,y=>aP(y)?{error:!0,helperText:y}:null)),{k:"open_browser_at_start",comp:Eo,label:"Open Admin-panel at start",md:4,helperText:"Browser is automatically launched with HFS"},{k:"localhost_admin",comp:Eo,label:"Unprotected admin on localhost",md:4,getError:y=>!y&&(c==null?void 0:c.length)===0&&"First create at least one admin account",helperText:"Access Admin-panel without entering credentials"},{k:"file_menu_on_link",comp:vs,label:"Access file menu",sm:12,md:4,options:{"by clicking on file name":!0,"by dedicated button":!1}},{k:"title",helperText:"You can see this in the tab of your browser"},{k:"favicon",comp:Rf,placeholder:"None",fileMask:"*.png|*.ico|*.jpg|*.jpeg|*.gif|*.svg",helperText:"The icon associated to your website"},{k:"log",label:Yg.log,md:3,helperText:"Requests are logged here"},{k:"error_log",label:Yg.error_log,md:3,placeholder:"errors go to main log",helperText:"If you want errors in a different log"},{k:"log_rotation",comp:vs,md:3,options:[{value:"",label:"disabled"},"daily","weekly","monthly"],helperText:"To keep log-files smaller"},{k:"dont_log_net",comp:FM,label:"Don't log address",md:3,placeholder:"no exception",helperText:u.createElement(Gm)},{k:"log_gui",comp:Eo,label:"Log interface loading"},{k:"log_api",comp:Eo,label:"Log API requests"},{k:"proxies",comp:Oi,min:0,max:9,sm:6,label:"How many HTTP proxies between this server and users?",error:dC(d,s),helperText:"Wrong number will prevent detection of users' IP address"},{k:"allowed_referer",placeholder:"any",label:"Links from other websites",comp:x1e},{k:"dont_overwrite_uploading",comp:Eo,label:"Don't overwrite uploading",helperText:"Files will be numbered to avoid overwriting"},{k:"delete_unfinished_uploads_after",comp:Oi,md:3,min:0,unit:"seconds",placeholder:"Never",helperText:"Leave empty to never delete"},{k:"min_available_mb",comp:Oi,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:Eo,helperText:"Keeps you logged in while the page is left open and the computer is on"},{k:"session_duration",comp:Oi,sm:3,min:5,unit:"seconds",required:!0},{k:"zip_calculate_size_for_seconds",comp:Oi,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:Eo,helperText:"Include betas in automatic updates"},{k:"admin_net",comp:FM,label:"Admin-panel accessible from",placeholder:"any address",helperText:u.createElement(u.Fragment,{},"IP address of browser machine. ",u.createElement(Gm))},{k:"mime",comp:IE,label:!1,reorder:!0,prepend:!0,fields:[{k:"k",label:"File mask",$width:1,$column:{renderCell:({value:y,id:v})=>u.createElement("code",{},y,y==="*"&&v<Object.keys(d.mime).length-1&&to(Op,so("Mime with `*` should be the last, because first matching row applies"),{color:"warning.main",ml:1}))}},{k:"v",label:"Mime type",$width:2}],toField:y=>Object.entries(y||{}).map(([v,E])=>({k:v,v:E})),fromField:y=>Object.fromEntries(y.map(v=>[v.k,v.v]))},{k:"block",label:"Blocked IPs",multiline:!0,minRows:3,helperText:u.createElement(u.Fragment,{},"Enter an IP address for each line. ",u.createElement(Gm)),fromField:y=>y.split(`
516
+ `).map(v=>v.trim()).filter(Boolean).map(v=>({ip:v})),toField:y=>Array.isArray(y)?y.map(v=>v==null?void 0:v.ip).filter(Boolean).join(`
517
+ `):""},{k:"server_code",comp:b1e,sm:12,helperText:so(`This code works similarly to [a plugin](${yy}blob/main/dev-plugins.md) (with some limitations)`)}]});function m(){return ct(this,null,function*(){var R,F;if(gt.isEmpty(o))return Sr("Nothing to save");const y=window.location,v=["port","https_port"];if(v.every(A=>o[A]!==void 0))return Gt("You cannot change both http and https port at once. Please, do one, save, and then do the other.","warning");const E=[(R=s==null?void 0:s.http)==null?void 0:R.listening,(F=s==null?void 0:s.https)==null?void 0:F.listening],w=location.protocol==="https:";w&&(v.reverse(),E.reverse());const C=o[v[0]],x=d[v[1]],P=x>0&&E[1],_=w?"http":"https";if(C<0&&!P)return Gt("You cannot switch off this port unless you have a working fixed port for "+_,"warning");if(C===0&&!P)return Gt("You cannot randomize this port unless you have a working fixed port for "+_,"warning");if(C>0&&!(yield fi("You are changing the port and you may be disconnected")))return;const k="cert"in o||"private_key"in o;if(w&&k&&!(yield fi("You may disrupt https service, kicking you out")))return;if(yield Et("set_config",{values:o}),C!==void 0)return yield Gt("You are being redirected but in some cases this may fail. Hold on tight!","warning"),window.location.href=C<=0?(w?"http:":"https:")+"//"+y.hostname+":"+x+y.pathname:y.protocol+"//"+y.hostname+":"+C+y.pathname;const I="port"in o||"https_port"in o;setTimeout(a,I||k?1e3:0),Object.assign(Ul,o),bN(),Sr("Changes applied","success")})}}function bN(){const e={};if(pn.config)for(const[t,n]of Object.entries(pn.config))JSON.stringify(n)!==JSON.stringify(Ul==null?void 0:Ul[t])&&(e[t]=n);yN.changes=e}function lP(e){return/certificate/.test(e)}function aP(e){return/private key/.test(e)}function LM({label:e,value:t,onChange:n,setApi:r,status:o,suggestedPort:i=1,error:s,helperText:a}){const c=u.useRef(i);t>0&&(c.current=t);const d=Number(t>0?c.current:t)||0;let p=o==null?void 0:o.error;return p&&(lP(p)||aP(p)?p=void 0:s=!0),u.createElement(Le,{},u.createElement(Le,{display:"flex"},u.createElement(vs,{sx:{flexGrow:1},label:e,error:s,value:d,options:[{label:"off",value:-1},{label:"random",value:0},{label:"choose",value:c.current}],onChange:n}),t>0&&u.createElement(Oi,{label:"Number",fullWidth:!1,value:t,onChange:n,setApi:r,error:s,min:1,max:65535,helperText:a,sx:{minWidth:"5.5em"}})),o&&u.createElement(Mp,{error:s},o===!0?"...":p!=null?p:(o==null?void 0:o.listening)&&"Correctly working on port "+o.port))}function x1e({label:e,value:t,onChange:n,error:r}){const o=!t||t==="-",i="example.com";return u.createElement(Le,{display:"flex"},u.createElement(vs,{label:e,value:o?t:i,options:{"allow all":"","forbid all":"-","allow some":i},onChange:n,error:r,sx:o?void 0:{maxWidth:"11em"}}),!o&&u.createElement(ws,{label:"Domain to allow",value:t,placeholder:"example.com",onChange:n,error:r,helperText:u.createElement(Gm)}))}function Gm(){return Ya("Wildcards","Wildcards supported")}function S1e(){Vo({Content:()=>u.createElement(Le,{},u.createElement(Le,{display:"flex",gap:1},u.createElement(rp),"You are enabling HTTPs. It needs a valid certificate + private key to work."),u.createElement(Le,{mt:4,display:"flex",gap:1,justifyContent:"space-around"},u.createElement(Qn,{variant:"contained",onClick(){bi(),cP().then()}},"Help me!"),u.createElement(Qn,{onClick:bi},"I will handle the matter myself")))})}function cP(){return ct(this,null,function*(){if(!window.crypto.subtle)return Gt("Retry this procedure on localhost","warning");const{close:e}=Vo({title:"Get a certificate",Content:()=>u.createElement(ji,{flexDirection:"column"},u.createElement("p",{},"HTTPS needs a certificate to work."),"We suggest you to ",u.createElement(Ao,{target:"cert",href:"https://letsencrypt.org/",onClick:e},u.createElement(Qn,{size:"small",color:"success"},"get a free but proper certificate")),"or, if you are in a hurry",u.createElement(Qn,{size:"small",color:"warning",onClick(){return ct(this,null,function*(){try{const n=yield Et("save_pem",yield E1e({}));yield Et("set_config",{values:n}),Ul&&Object.assign(Ul,n),setTimeout(fC,1e3),Object.assign(pn.config,n),yield Gt("Certificate saved","success")}finally{e()}})}},"make a basic certificate"),Ya("HTTPS#certificate",u.createElement(ji,{},u.createElement(Op,{color:"warning"}),"but BEWARE it won't be perfect")))})})}function E1e(e){return ct(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(i=>({name:i[0],value:i[1]}));return r.setSubject(o),r.setIssuer(o),r.sign(n.privateKey),{cert:t.certificateToPem(r),private_key:t.privateKeyToPem(n.privateKey)}})}var uP={},P1e=rt;Object.defineProperty(uP,"__esModule",{value:!0});var dP=uP.default=void 0,I1e=P1e(ot()),k1e=tt(),_1e=(0,I1e.default)((0,k1e.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 3zm-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 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 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.5z"}),"Group");dP=uP.default=_1e;var fP={},$1e=rt;Object.defineProperty(fP,"__esModule",{value:!0});var wN=fP.default=void 0,R1e=$1e(ot()),M1e=tt(),T1e=(0,R1e.default)((0,M1e.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-.86zm-4 1.8-1 .6-1-.6V3h2v9.23z"}),"MilitaryTech");wN=fP.default=T1e;var pP={},O1e=rt;Object.defineProperty(pP,"__esModule",{value:!0});var CN=pP.default=void 0,F1e=O1e(ot()),L1e=tt(),A1e=(0,F1e.default)((0,L1e.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");CN=pP.default=A1e;var hP={},D1e=rt;Object.defineProperty(hP,"__esModule",{value:!0});var xN=hP.default=void 0,N1e=D1e(ot()),B1e=tt(),z1e=(0,N1e.default)((0,B1e.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 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"PersonAdd");xN=hP.default=z1e;function j1e({account:e,done:t,groups:n,addToBar:r,reload:o}){const[i,s]=u.useState(e),[a,c]=u.useState([]);u.useEffect(()=>{var g,y;s(e),c(n.filter(v=>v!==e.username)),jse()||(y=(g=h.current)==null?void 0:g.querySelector("input"))==null||y.focus()},[JSON.stringify(e)]);const d=!e.username,p=!i.hasPassword,h=u.useRef();return u.createElement(Fp,{formRef:h,values:i,set(g,y){s(v=>Pt(Ce({},v),{[y]:g}))},barSx:Ce({gap:2,width:"100%"},MS()),stickyBar:!0,addToBar:[!d&&u.createElement(Gn,{icon:tl,title:"Delete",confirm:"Delete?",onClick:()=>Et("del_account",{username:e.username}).then(()=>o())}),r,u.createElement(Le,{flex:1}),SN(i,{fontSize:"large",sx:{p:1}})],fields:[{k:"username",label:p?"Group name":void 0,autoComplete:"off",required:!0,xl:p?12:4,getError:g=>g!==e.username&&Et("get_account",{username:g}).then(y=>(y==null?void 0:y.username)===e.username?"usernames are case-insensitive":"already used",()=>!1)},!p&&{k:"password",md:6,xl:4,type:"password",autoComplete:"new-password",required:d,label:d?"Password":"Change password"},!p&&{k:"password2",md:6,xl:4,type:"password",autoComplete:"new-password",label:"Repeat password",getError:(g,{values:y})=>(g||"")!==(y.password||"")&&"Enter same password"},{k:"ignore_limits",comp:Eo,xl:6,helperText:i.ignore_limits?"Speed limits don't apply to this account":"Speed limits apply to this account"},Ce({k:"admin",comp:Eo,xl:6,fromField:g=>g||null,label:"Permission to access Admin-panel",helperText:"To access THIS interface you are using right now"},!e.admin&&e.adminActualAccess&&{value:!0,helperText:"This permission is inherited"}),p&&u.createElement(Kr,{severity:"info"},'To add users to this group, select the user and then click "Inherit"'),{k:"belongs",comp:RS,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",helperText:"If you want this account to be redirected to a specific folder/address at login time"}],onError:Gt,save:{sx:wy(!TS(i,e)),onClick(){return ct(this,null,function*(){const P=i,{password:g="",password2:y,adminActualAccess:v,hasPassword:E}=P,w=Wt(P,["password","password2","adminActualAccess","hasPassword"]),{username:C}=i;if(d){const _=yield Et("add_account",w);if(g)try{yield pC(C,g)}catch(k){throw Et("del_account",{username:C}).then(),k}t(_==null?void 0:_.username),Sr("Account created","success");return}const x=yield Et("set_account",{username:e.username,changes:w});g&&(yield pC(C,g)),setTimeout(()=>Sr("Account modified","success"),1),t(x==null?void 0:x.username)})}}})}function pC(e,t){return ct(this,null,function*(){const n=new Oa.SRPRoutines(new Oa.SRPParameters),r=yield Oa.createVerifierAndSalt(n,e,t);return Et("change_srp_others",{username:e,salt:String(r.s),verifier:String(r.v)}).catch(o=>{if(o.code!==406)throw o;return Et("change_password_others",{username:e,newPassword:t})})})}const yb={fieldSeparator:",",lineSeparator:`
518
+ `,quote:'"'},vm={field:0,fieldOffset:0,line:0,lineOffset:0,quoted:!1,appendCell:!1,appendField:!1,appendRow:!1};class AM extends Error{constructor(t,n){super(`Invalid CSV at ${t}:${n}`)}}class H1e{constructor(t=yb){Qi(this,"_rows",[]);Qi(this,"_row",[]);Qi(this,"_cell","");Qi(this,"_options",yb);Qi(this,"_state",Ce({},vm));Qi(this,"_index",0);Qi(this,"_current","");Qi(this,"_previous","");Qi(this,"_quoteState",Ce({},vm));this._options=Object.assign({},yb,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 AM(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,i)=>{r[o]=n[i]}),Object.freeze(r)}))}return Object.freeze([])}handleNext(){this.handleQuote()||this.handleFieldSeparator()||this.handleLineSeparator(),this.processState()}handleQuote(){return this._current===this._options.quote?(this._quoteState=Ce({},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 AM(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=Ce({},vm),this._index=0,this._current="",this._previous="",this._quoteState=Ce({},vm)}}function V1e(e){return ct(this,null,function*(){CA(t=>ct(this,null,function*(){const n=t==null?void 0:t[0];if(!n)return;const r=yield xA(n);if(!r)return;const i=new H1e().parse(r.trim()),s={comp:Oi,min:1,max:9,xs:6,typing:!0},a={skipFirstLines:0,usernameColumn:1,passwordColumn:2,groupColumn:3,redirectColumn:4,overwriteExistingAccounts:!1},c=yield sp({title:"Import accounts from CSV",dialogProps:{maxWidth:"sm"},values:a,form:h=>{const m=i[h.skipFirstLines||0],g=p(m,Ce(Ce({},a),h));return{save:{startIcon:u.createElement(Ap),children:"Go"},fields:[u.createElement(Le,{p:1},"Total lines:",i.length),{k:"skipFirstLines",comp:Oi,min:0,max:i.length-1,typing:!0,md:6,helperText:u.createElement(u.Fragment,{},"First line: ",u.createElement("code",{},m.join(", ")))},{k:"overwriteExistingAccounts",comp:Eo,md:6},Pt(Ce({k:"usernameColumn"},s),{helperText:u.createElement(u.Fragment,{},"First username: ",g.u)}),Pt(Ce({k:"passwordColumn"},s),{helperText:u.createElement(u.Fragment,{},"First password: ",g.p)}),Pt(Ce({k:"groupColumn"},s),{helperText:u.createElement(u.Fragment,{},"First group: ",g.g)}),Pt(Ce({k:"redirectColumn"},s),{helperText:u.createElement(u.Fragment,{},"First redirect: ",g.r)})]}}});if(!c)return;const{close:d}=Vo({title:"Importing...",Content(){const[h,m]=u.useState(0),[g,y]=u.useState();return u.useEffect(()=>{let v=!1;return setTimeout(()=>ct(this,null,function*(){var P;if(v)return;let E=0,w=0,C=c.skipFirstLines;const x=i.length-C;try{let _=0;for(const k of i){if(v)return;if(C){C--;continue}const I=p(k,c);y(I),m(_++/x),yield Et("add_account",{username:I.u,belongs:(P=I.g)==null?void 0:P.split(","),redirect:I.r,overwrite:c.overwriteExistingAccounts}).then(()=>{if(I.p)return pC(I.u,I.p)},R=>{if(R.code===409)return w++;E++})}}finally{d();const _=x-E-w,k="Results: "+[yu("",E," failed"),yu("",_," succeeded"),yu("",w," skipped because already present")].filter(Boolean).join(", ");Gt(k,!_&&E?"error":E||w?"warning":"success"),e==null||e()}})),()=>{v=!0}},[]),u.createElement(Le,{display:"flex",gap:2,alignItems:"center"},u.createElement(DA,{icon:dP,progress:h}),g==null?void 0:g.u)}});function p(h,m){return{u:h[m.usernameColumn-1],p:h[m.passwordColumn-1],g:h[m.groupColumn-1],r:h[m.redirectColumn-1]}}}),{multiple:!1,accept:".csv"})})}function U1e(){const{username:e}=ia(),{data:t,reload:n,element:r}=Gr("get_accounts"),[o,i]=u.useState([]),s=Array.isArray(o);u.useEffect(()=>{Array.isArray(t==null?void 0:t.list)&&s&&i(o.filter(y=>t.list.find(v=>(v==null?void 0:v.username)===y)))},[t]);const a=t==null?void 0:t.list,c=s&&gt.find(a,{username:o[0]}),p=Xl("md"),h=!(o.length>0)||!a?null:s&&o.length>1?u.createElement(u.Fragment,{},u.createElement(ji,{alignItems:"center"},u.createElement(Ur,{variant:"h6"},o.length+" selected"),u.createElement(Qn,{onClick:g,startIcon:u.createElement(tl)},"Remove")),u.createElement(ay,{},o.map(y=>u.createElement(DL,{key:y},u.createElement(us,{},y))))):u.createElement(j1e,{account:c||{username:"",hasPassword:o==="new-user"},groups:a.filter(y=>!y.hasPassword).map(y=>y.username),addToBar:p&&u.createElement(Gn,{icon:Tp,title:"Close",onClick:m}),reload:n,done(y){i([y]),n()}});return u.useEffect(()=>{if(p||!h||!o.length)return;const{close:y}=Vo({title:gt.isString(o)?gt.startCase(o):o.length>1?"Multiple selection":c?(c.hasPassword?"User: ":"Group: ")+c.username:"?",Content:()=>h,onClose:m});return y},[p,o,c]),r||u.createElement(Ai,{container:!0,maxWidth:"80em"},u.createElement(Ai,{item:!0,xs:12},u.createElement(Le,{display:"flex",flexWrap:"wrap",gap:2,mb:2,sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"}},u.createElement(mD,{variant:"contained",startIcon:u.createElement(xN),items:[{children:"user",onClick:()=>i("new-user")},{children:"group",onClick:()=>i("new-group")},{children:"from CSV",onClick:()=>V1e(n)}]},"Add"),FS(n),(a==null?void 0:a.length)>0&&u.createElement(Ur,{p:1},`${a.length} account(s)`))),u.createElement(Ai,{item:!0,md:5},!(a!=null&&a.length)&&u.createElement(Kr,{severity:"info"},so`To access administration <u>remotely</u> you will need to create a user account with admin permission`),u.createElement($A,{multiSelect:!0,sx:{pr:4,pb:2,minWidth:"15em"},selected:s?o:[],onNodeSelect(y,v){i(v)}},a==null?void 0:a.map(y=>{var v,E;return u.createElement(jw,{key:y.username,nodeId:y.username,label:u.createElement(Le,{sx:{display:"flex",flexWrap:"wrap",padding:".2em 0",gap:".5em",alignItems:"center"}},SN(y),y.adminActualAccess&&to(wN,"Can login into Admin"),y.username,!!((v=y.belongs)!=null&&v.length)&&u.createElement(Le,{sx:{color:"text.secondary",fontSize:"small"}},"(",(E=y.belongs)==null?void 0:E.join(", "),")"))})}))),p&&h&&u.createElement(Ai,{item:!0,md:7},u.createElement(oy,{},u.createElement(iy,{},h))));function m(){i([])}function g(){return ct(this,null,function*(){if(o.length>gt.pull(o,e).length&&(yield Gt("Won't delete current account","warning")),!!o.length&&(yield fi(`Delete ${o.length} item(s)?`)))try{const y=[];for(const v of o)(yield Et("del_account",{username:v}).then(()=>1,()=>0))||y.push(v);if(n(),y.length)return Gt("Following elements couldn't be deleted: "+y.join(", "),"error")}catch(y){yield Gt(y)}})}}function SN(e,t={}){return u.createElement(e.hasPassword?CN:dP,t)}var mP={},W1e=rt;Object.defineProperty(mP,"__esModule",{value:!0});var EN=mP.default=void 0,G1e=W1e(ot()),K1e=tt(),q1e=(0,G1e.default)((0,K1e.jsx)("path",{d:"M13 3h-2v10h2V3zm4.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.83z"}),"PowerSettingsNew");EN=mP.default=q1e;function Y1e(){const{element:e}=Gr("get_config",{only:[]}),{username:t}=ia();return e||u.createElement(Le,{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:2},t?u.createElement(u.Fragment,{},"You are logged in as: "+t,u.createElement(bu,{icon:rS,size:"large",variant:"contained",onClick:()=>Et("logout").catch(r=>r.code!==401&&Gt(r))},"I want to logout")):u.createElement(Kr,{severity:"info"},"You are not logged in, because authentication is not required on localhost"),u.createElement(bu,{icon:EN,size:"large",variant:"contained",color:"warning",confirm:"Stopping the server, this interface won't respond anymore",onClick(){return ct(this,null,function*(){yield Et("quit"),yield Gt("Good-bye","success"),location.reload()})}},"Quit HFS"))}function Q1e(){const{list:e,error:t,connecting:n,reload:r}=lc("get_langs"),o=u.useMemo(()=>["en",...gt.uniq(e.map(a=>a.code))],[e]),i=Xl("md");return t||u.createElement(u.Fragment,{},i&&u.createElement(Kr,{severity:"info"},"Translation is limited to Front-end, it doesn't apply to Admin-panel"),u.createElement(Le,{mt:1,maxWidth:"40em",flex:1,display:"flex",flexDirection:"column"},u.createElement(Le,{mb:1,display:"flex"},u.createElement(Qn,{variant:"contained",startIcon:u.createElement(Ap),onClick:s},"Add"),u.createElement(Le,{flex:1}),u.createElement(X1e,{langs:o})),u.createElement(Hp,{loading:n,rows:e,hideFooter:!0,sx:{flex:1},columns:[{field:"code",width:110,valueFormatter:({value:a})=>a==null?void 0:a.toUpperCase()},{field:"version",width:120,hideUnder:"sm"},{field:"hfs_version",headerName:"HFS version",width:110},{field:"author",flex:1,hideUnder:"sm"}],actions:({row:a})=>[u.createElement(Gn,{icon:tl,title:a.embedded?"Cannot delete (embedded)":"Delete",confirm:"Delete?",disabled:a.embedded,onClick(){return ct(this,null,function*(){yield Et("del_lang",gt.pick(a,"code")),r(),Sr("Deleted")})}})]})));function s(){CA(a=>ct(this,null,function*(){if(!a)return;const c={};for(const d of a)c[d.name]=yield xA(d);try{yield Et("add_langs",{langs:c}),r(),Sr("Loaded")}catch(d){yield Gt(d)}}),{accept:".json"})}}function X1e({langs:e}){const t="force_lang",{data:n,reload:r,loading:o}=Gr("get_config",{only:[t]}),[i,s]=u.useState();u.useEffect(()=>s(o?i:n[t]),[o]);const[a,c]=u.useState();return u.createElement(vs,{fullWidth:!1,disabled:o||typeof a=="string",value:a!=null?a:i,onChange(p){return ct(this,null,function*(){c(p);try{yield Et("set_config",{values:{[t]:p}}),yield r()}finally{c(void 0)}})},options:[{label:"Respect browser language",value:""},...e.map(p=>({value:p,label:"Force language: "+p}))]})}function J1e(){const[e,t]=u.useState(0),n=Mle(Yg);return u.createElement(u.Fragment,{},u.createElement(qL,{value:e,onChange(r,o){t(o)}},n.map(r=>u.createElement(GL,{label:Yg[r],key:r}))),u.createElement(Z1e,{key:e,file:n[e]}))}function Z1e({file:e}){const{list:t,error:n,connecting:r}=lc("get_log",{file:e});return n||u.createElement(Hp,{loading:r,rows:t,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}},columns:e==="console"?[{field:"ts",headerName:"Timestamp",type:"dateTime",width:90,valueGetter:({value:o})=>new Date(o),renderCell:({value:o})=>u.createElement(Le,{},o.toLocaleDateString(),u.createElement("br"),o.toLocaleTimeString())},{field:"k",headerName:"Level",hideUnder:"sm"},{field:"msg",headerName:"Message",flex:1,mergeRender:{other:"k",override:{valueFormatter:({value:o})=>o!=="log"&&o}}}]:[{field:"ip",headerName:"Address",flex:.6,minWidth:100,maxWidth:230,mergeRender:{other:"user"}},{field:"user",headerName:"Username",flex:.4,maxWidth:200,hideUnder:"lg"},{field:"ts",headerName:"Timestamp",type:"dateTime",width:90,valueGetter:({value:o})=>new Date(o),renderCell:({value:o})=>u.createElement(Le,{},o.toLocaleDateString(),u.createElement("br"),o.toLocaleTimeString())},{field:"method",headerName:"Method",width:80,hideUnder:"lg"},{field:"status",headerName:"Code",type:"number",width:70,hideUnder:"lg"},{field:"length",headerName:"Size",type:"number",hideUnder:"md",valueFormatter:({value:o})=>Ql(o)},{field:"uri",headerName:"URI",flex:2,minWidth:100,mergeRender:{other:"method",fontSize:"small"},valueFormatter:({value:o})=>{if(o=decodeURIComponent(o),!o.startsWith(Rg))return o;const i=Rg.length,s=o.indexOf("?",i),a=o.slice(i,s>0?s:1/0),c=s<0?"":Array.from(new URLSearchParams(o.slice(s))).map(d=>{var p;return`${d[0]}=${(p=zse(d[1]))!=null?p:d[1]}`}).join(" ; ");return`API ${a} ${c}`}}]})}var gP={},ebe=rt;Object.defineProperty(gP,"__esModule",{value:!0});var hC=gP.default=void 0,tbe=ebe(ot()),nbe=tt(),rbe=(0,tbe.default)((0,nbe.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4 14H8V8h8v8z"}),"StopCircle");hC=gP.default=rbe;var vP={},obe=rt;Object.defineProperty(vP,"__esModule",{value:!0});var PN=vP.default=void 0,ibe=obe(ot()),sbe=tt(),lbe=(0,ibe.default)((0,sbe.jsx)("path",{d:"M16 18v2H8v-2h8zM11 7.99V16h2V7.99h3L12 4 8 7.99h3z"}),"Upgrade");PN=vP.default=lbe;function DM({updates:e}){const{list:t,updateEntry:n,error:r,initializing:o}=lc(e?"get_plugin_updates":"get_plugins");return r?_N(r):u.createElement(Hp,{rows:t.length?t:[],initializing:o,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:IN,mergeRender:{other:"description",fontSize:"x-small"}},{field:"version",width:70,hideUnder:"sm"},{field:"description",flex:1,hideUnder:"sm"}],actions:({row:i,id:s})=>e?[u.createElement($N,{id:s,updated:i.updated,then:()=>n({id:s},{updated:!0})})]:[u.createElement(Gn,i.started?{icon:hC,title:u.createElement(Le,{},`Stop ${s}`,u.createElement("br"),"Started "+new Date(i.started).toLocaleString()),size:"small",color:"success",onClick(){return ct(this,null,function*(){yield Et("stop_plugin",{id:s}),Sr("Plugin stopped",u.createElement(hC,{color:"warning"}))})}}:{icon:Cy,title:`Start ${s}`,size:"small",onClick:()=>RN(s)}),u.createElement(Gn,{icon:aS,title:"Options",size:"small",disabled:!i.started&&"Start plugin to access options"||!i.config&&"No options available for this plugin",progress:!1,onClick(){return ct(this,null,function*(){const p=yield Et("get_plugin",{id:s}),h=yield sp({title:`${s} options`,form:{before:u.createElement(Le,{mx:2,mb:3},i.description),fields:kN(i.config)},values:p.config,dialogProps:gt.merge({sx:{m:"auto"}},i.configDialog)});!h||gt.isEqual(p.config,h)||(yield Et("set_plugin",{id:s,config:h}),Sr("Configuration saved"))})}}),u.createElement(Gn,{icon:tl,title:"Uninstall",size:"small",confirm:"Remove?",onClick(){return ct(this,null,function*(){yield Et("uninstall_plugin",{id:s}),Sr("Plugin uninstalled")})}})]})}function IN({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(Ao,{href:n,target:"plugin"},t):n?ip(n==null?void 0:n.split("/"),o=>u.createElement(u.Fragment,{},u.createElement(Ao,{href:"https://github.com/"+n,target:"plugin"},o[1])," by ",o[0])):t);function r(o,i=!1){return o&&u.createElement(od,{title:o,children:u.createElement(dy,{fontSize:"small",color:i?"warning":"error",sx:{ml:-.5,mr:.5}})})}}function kN(e){return Object.entries(e).map(([t,n])=>{if(!gt.isPlainObject(n))return n;let d=n,{type:r,defaultValue:o,fields:i,frontend:s}=d,a=Wt(d,["type","defaultValue","fields","frontend"]);const c=abe[r];return c===IE&&(i=kN(i)),o!==void 0&&r==="boolean"&&(a.placeholder=`Default value is ${JSON.stringify(o)}`),Ce({k:t,comp:c,fields:i},a)})}const abe={string:ws,number:Oi,boolean:Eo,select:vs,multiselect:RS,array:IE,real_path:Rf};function _N(e){return u.createElement(Kr,{severity:"error"},Tle(e,{github_quota:"Request denied. You may have reached the limit, retry later.",ENOTFOUND:"Couldn't reach github.com"}))}function $N({id:e,updated:t,then:n}){return u.createElement(Gn,{icon:PN,title:t?"Already updated":"Update",disabled:t,onClick(){return ct(this,null,function*(){yield Et("update_plugin",{id:e},{timeout:!1}),n==null||n(e),Sr("Plugin updated")})}})}function RN(e){return ct(this,null,function*(){yield Et("start_plugin",{id:e}),Sr("Plugin started",u.createElement(Cy,{color:"success"}))})}var yP={},cbe=rt;Object.defineProperty(yP,"__esModule",{value:!0});var MN=yP.default=void 0,ube=cbe(ot()),dbe=tt(),fbe=(0,ube.default)((0,dbe.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");MN=yP.default=fbe;function pbe(){const[e,t]=u.useState(""),n=wS(e,1e3),{list:r,error:o,initializing:i,updateList:s}=lc("get_online_plugins",{text:n}),a=ia();return o?_N(o):u.createElement(u.Fragment,{},u.createElement(ws,{value:e,onChange:t,start:u.createElement(MN),typing:!0,label:"Search text"}),u.createElement(Hp,{rows:r.length?r:[],noRows:"No compatible plugins have been found",initializing:i,columnVisibilityModel:a.onlinePluginsColumns,onColumnVisibilityModelChange:c=>Object.assign(pn.onlinePluginsColumns,c),columns:[{field:"id",headerName:"name",flex:1,renderCell:IN,mergeRender:{other:"description",fontSize:"x-small"}},{field:"version",width:70},{field:"pushed_at",headerName:"last update",valueGetter:({value:c})=>new Date(c).toLocaleDateString()},{field:"license",width:80},{field:"description",flex:3,hideUnder:"sm"},{field:"stargazers_count",width:50,headerName:"stars",align:"center",hideUnder:"sm"}],actions:({row:c,id:d})=>[c.update?u.createElement($N,{id:d,then(){s(h=>gt.find(h,{id:d}).update=!1)}}):u.createElement(Gn,{icon:XS,title:"Install",progress:c.downloading,disabled:c.installed&&"Already installed",tooltipProps:{placement:"bottom-end"},confirm:"WARNING - Proceed only if you trust this author and this plugin",onClick(){return ct(this,null,function*(){const h=c.branch||c.default_branch;try{const m=yield Et("download_plugin",{id:d,branch:h},{timeout:!1});yield RN(m.id)}catch(m){if(m.code!==424)throw m;const g=u.createElement(u.Fragment,{},"This plugin has some dependencies unmet:",m.data.map(y=>u.createElement("li",{},y.repo+": "+y.error)));return Gt(g,"error")}})}})]}))}const TN={Installed:DM,"Search online|Search":pbe,"Check updates|Updates":()=>u.createElement(DM,{updates:!0})},hbe=Object.keys(TN),mbe=Object.values(TN);function gbe(){const[e,t]=u.useState(0),n=!Xl("sm");return u.createElement(u.Fragment,{},u.createElement(qL,{value:e,onChange(r,o){t(o)}},hbe.map(r=>u.createElement(GL,{key:r,label:r.split("|").slice(n?-1:0)[0]}))),u.createElement(mbe[e]))}var bP={},vbe=rt;Object.defineProperty(bP,"__esModule",{value:!0});var ON=bP.default=void 0,ybe=vbe(ot()),ym=tt(),bbe=(0,ybe.default)([(0,ym.jsx)("path",{d:"M17 15h2v2h-2zm0-4h2v2h-2zm0-4h2v2h-2zm-3.26 0 1.26.84V7z"},"0"),(0,ym.jsx)("path",{d:"M10 3v1.51l2 1.33V5h9v14h-4v2h6V3z"},"1"),(0,ym.jsx)("path",{d:"M8.17 5.7 15 10.25V21H1V10.48L8.17 5.7zM10 19h3v-7.84L8.17 8.09 3 11.38V19h3v-6h4v6z"},"2"),(0,ym.jsx)("path",{d:"M10 19h3v-7.84L8.17 8.09 3 11.38V19h3v-6h4z",opacity:".3"},"3")],"HomeWorkTwoTone");ON=bP.default=bbe;var wP={},wbe=rt;Object.defineProperty(wP,"__esModule",{value:!0});var FN=wP.default=void 0,Cbe=wbe(ot()),NM=tt(),xbe=(0,Cbe.default)([(0,NM.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.41zM8.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-2z",opacity:".3"},"0"),(0,NM.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-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 2v1.93zm6.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.4z"},"1")],"PublicTwoTone");FN=wP.default=xbe;var CP={},Sbe=rt;Object.defineProperty(CP,"__esModule",{value:!0});var LN=CP.default=void 0,Ebe=Sbe(ot()),BM=tt(),Pbe=(0,Ebe.default)([(0,BM.jsx)("path",{d:"M15 15H5v4h14v-4h-4zm-7 3H6v-2h2v2zm3.5 0h-2v-2h2v2zm3.5 0h-2v-2h2v2z",opacity:".3"},"0"),(0,BM.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.2zm-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.4zM19 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-2zm0 6H5v-4h14v4zM6 16h2v2H6zm3.5 0h2v2h-2zm3.5 0h2v2h-2z"},"1")],"RouterTwoTone");LN=CP.default=Pbe;const zM="https://portforward.com/",bb=1080,wb=`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 Ibe(){var R,F;const[e,t]=u.useState(),[n,r]=u.useState(!1),[o,i]=u.useState(!1),[s,a]=u.useState(!1),{data:c,reload:d}=Gr("get_status"),p=ip([(R=c==null?void 0:c.http)==null?void 0:R.error,(F=c==null?void 0:c.https)==null?void 0:F.error],([A,O])=>A&&O?"error":A||O?"warning":"success"),{data:h,reload:m,error:g,loading:y}=Gr("get_nat"),v=h==null?void 0:h.internalPort,E=(h==null?void 0:h.mapped)&&h.mapped.private.port!==v,w=(h==null?void 0:h.externalIp)&&h.externalIp!==h.publicIp;return u.useEffect(()=>{!s||!h||y||(a(!1),P().then())},[s,h,y]),u.createElement(ji,{vert:!0},u.createElement(Kr,{severity:"info"},"This page helps you making your server work on the Internet"),C(),x());function C(){return c?u.createElement(oy,{},u.createElement(iy,{},u.createElement(Le,{fontSize:"x-large",mb:2},"Address / Domain"),u.createElement(ji,{flexWrap:"wrap",alignItems:"center"},(c==null?void 0:c.baseUrl)||"Automatic, not configured",u.createElement(Qn,{size:"small",onClick(){cN().then(d)}},"Change")))):u.createElement(Qs)}function x(){return g?"Error":h?u.createElement(ji,{justifyContent:"space-around",alignItems:"center",maxWidth:"40em"},u.createElement(Cb,{name:"Local network",icon:ON,color:p,ip:h==null?void 0:h.localIp,below:v&&u.createElement(Le,{fontSize:"smaller"},"port ",v)}),u.createElement(jM),u.createElement(Cb,{name:"Router",icon:LN,ip:h==null?void 0:h.gatewayIp,color:(h==null?void 0:h.mapped)&&(E?"warning":"success"),below:o?u.createElement(Ig,{sx:{height:"1em"}}):u.createElement(wu,{fontSize:"smaller",display:"block",onClick:_},"port ",E?"is wrong":h!=null&&h.mapped?h.mapped.public.port:"unknown")}),u.createElement(jM),u.createElement(Cb,{name:"Internet",icon:FN,ip:h==null?void 0:h.publicIp,color:e?"success":e===!1?"error":w?"warning":void 0,below:n?u.createElement(Ig,{sx:{height:"1em"}}):u.createElement(Le,{fontSize:"smaller"},w&&u.createElement(wu,{display:"block",onClick:()=>Gt(wb,"warning")},"Double NAT"),e?"Working!":e===!1?"Failed!":""," ",(h==null?void 0:h.publicIp)&&u.createElement(wu,{onClick:P},"Verify"))})):u.createElement(Qs)}function P(){return ct(this,null,function*(){var O;if(t(void 0),!(yield fi("This test will check if your server is working properly on the Internet")))return;r(!0);try{const{success:N}=yield Et("check_server",{});if(t(N),N)return Sr("Your server is responding correctly over the Internet","success");if(E)return k().then(A);if(w)return Gt(wb,"warning");const B="We couldn't reach your server from the Internet. ";if(h.upnp&&!h.mapped)return fi(B+"Try port-forwarding on your router",{confirmText:"Fix it"}).then(L=>{L&&I(Math.max(h.internalPort,bb),"Port forwarded").then(A)});const{close:M}=Gt(u.createElement(Le,{},B+"Possible causes:",u.createElement("ul",{},!h.upnp&&u.createElement("li",{},"Your router may need to be configured. ",u.createElement(Ao,{href:zM,target:"help"},"How?")),u.createElement("li",{},"There could be a firewall, try configuring or disabling it."),((O=h.mapped)==null?void 0:O.public.port)<=1024&&u.createElement("li",{},"Your Internet Provider may be blocking ports under 1024. ",u.createElement(Qn,{size:"small",onClick(){M(),I(bb).then(A)}},"Try "+bb)),h.mapped&&u.createElement("li",{},"A bug in your modem/router, try rebooting it."),u.createElement("li",{},wb))),"warning")}catch(N){Gt(N)}finally{r(!1)}function A(){a(!0)}})}function _(){return ct(this,null,function*(){var N;if(E)return(yield fi(`There is a port-forwarding but it is pointing to the wrong port (${h.mapped.private.port})`,{confirmText:"Fix it"}))&&k();if(!(h!=null&&h.upnp))return Gt(u.createElement(Le,{lineHeight:1.5},so(`We cannot help you configuring your router because UPnP is not available.
519
+ Find more help [on this website](${zM}).`)),"info");const A=yield FA(so(`This will ask the router to map your port, so that it can be reached from the Internet.
520
+ You can set the same number of the local network (${v}), or a different one.`),{value:((N=h==null?void 0:h.mapped)==null?void 0:N.public.port)||v,field:{label:"Port seen from the Internet",comp:Oi},addToBar:(h==null?void 0:h.mapped)&&[u.createElement(Qn,{color:"warning",onClick:O},"Remove")],dialogProps:{sx:{maxWidth:"20em"}}});A&&(yield I(Number(A),"Port forwarded"));function O(){bi(),I(0,"Port removed")}})}function k(){return I(h.mapped.public.port,"Forwarding corrected")}function I(A,O=""){return ct(this,null,function*(){i(!0);try{yield Et("map_port",{external:A}),m(),O&&Sr(O,"success")}catch(N){return Gt("Operation failed","error")}finally{i(!1)}})}}function jM(){return u.createElement(Le,{flex:1,className:"animated-dashed-line"})}function Cb({name:e,icon:t,color:n,ip:r,below:o}){const i="min(20vw, 10vh)";return u.createElement(Le,{display:"inline-block",textAlign:"center"},u.createElement(t,{color:n,sx:{fontSize:i,mb:"-0.1em"}}),u.createElement(Le,{fontSize:"larger"},e),u.createElement(Le,{fontSize:"smaller"},r||"unknown"),o)}const mC=[{path:"",icon:tS,label:"Home",title:"Admin panel",comp:J0e},{path:"fs",icon:XL,label:"Shared files",comp:E0e},{path:"accounts",icon:eA,comp:U1e},{path:"options",icon:aS,comp:C1e},{path:"internet",icon:nA,comp:Ibe},{path:"monitoring",icon:tA,comp:Age},{path:"logs",icon:ZL,comp:J1e},{path:"language",icon:rA,comp:Q1e},{path:"plugins",icon:JL,comp:gbe},{path:"html",icon:oA,label:"Custom HTML",comp:v1e},{path:"logout",icon:rS,comp:Y1e}];function HM({onSelect:e}){const{VERSION:t}=by(),n="hfs-logo.svg",r=CS().height<700;return u.createElement(Le,{display:"flex",flexDirection:"column",bgcolor:"primary.main",minHeight:"100%"},u.createElement(ay,{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(Le,{display:"flex",px:2,py:1,gap:2,alignItems:"center"},u.createElement(Le,{fontSize:"min(3rem, max(5vw, 4vh))"},"HFS"),u.createElement(Le,{fontSize:"small"},NE(t||"",/-/,()=>u.createElement("br"))),r&&u.createElement("img",{src:n,style:{height:"2.5em"}})),mC.map(o=>u.createElement(pte,{key:o.path,to:o.path,component:wV,onClick:e,style:({isActive:i})=>i?{textDecoration:"underline"}:{},children:void 0},o.icon&&u.createElement(js,{sx:{color:"primary.contrastText",minWidth:48}},u.createElement(o.icon)),u.createElement(us,{sx:{whiteSpace:"nowrap"},primary:AN(o)}))),!r&&u.createElement(Le,{sx:{flex:1,opacity:.7,background:`url(${n}) no-repeat bottom`,backgroundSize:"contain",margin:2}})))}function AN(e){var t;return e&&((t=e.label)!=null?t:gt.capitalize(e.path))}function kbe({children:e}){const{loginRequired:t}=ia();return t===403?u.createElement(Lp,{},u.createElement(Kr,{severity:"error"},"Admin-panel only for localhost"),u.createElement(Le,{mt:2,fontSize:"small"},"because no admin account was configured")):t?u.createElement(_be):u.createElement(u.Fragment,{},e)}function _be(){var s;const[e,t]=u.useState({username:"",password:""}),[n,r]=u.useState(""),o=u.useRef(),i=(s=o.current)==null?void 0:s.querySelector('input[value=""]');return u.useEffect(()=>{var c;return(c=i==null?void 0:i.focus)==null?void 0:c.call(i)},[i]),u.createElement(Lp,{},u.createElement(Fp,{formRef:o,values:e,set(c,d){t(p=>Pt(Ce({},p),{[d]:c}))},fields:[{k:"username",autoComplete:"username",autoFocus:!0,required:!0},{k:"password",type:"password",autoComplete:"current-password",required:!0}],addToBar:[n&&u.createElement(Kr,{severity:"error",sx:{flex:1}},n)],saveOnEnter:!0,save:{children:"Enter",startIcon:null,onClick(){return ct(this,null,function*(){try{r(""),yield $be(e.username,e.password)}catch(c){r(String(c))}})}}}))}function $be(e,t){return ct(this,null,function*(){const n=yield Rse(e,t,Et).catch(r=>{throw(r==null?void 0:r.code)===401?"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";pn.loginRequired=!1,DN(n)})}const DN=Hse(pn);DN(by().session);var xP={},Rbe=rt;Object.defineProperty(xP,"__esModule",{value:!0});var NN=xP.default=void 0,Mbe=Rbe(ot()),Tbe=tt(),Obe=(0,Mbe.default)((0,Tbe.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");NN=xP.default=Obe;function Fbe(){return u.createElement(tK,{theme:_le()},u.createElement(Lbe,{},u.createElement(kbe,{},u.createElement(vV,{},u.createElement(Abe)))))}function Lbe(e){return u.createElement(Le,Ce({sx:{bgcolor:"background.default",color:"text.primary",display:"flex",flexDirection:"column",minHeight:"100%",flex:1}},e))}function Abe(){const e=ed().pathname.slice(1),t=mC.find(s=>s.path===e),n=t&&(t.title||AN(t)),[r,o]=u.useState(!1),i=Xl("lg");return u.createElement(u.Fragment,{},!i&&u.createElement(Dbe,{title:n,openMenu:()=>o(!0)}),!i&&u.createElement(wZ,{anchor:"left",open:r,onClose(){o(!1)}},u.createElement(HM,{onSelect:()=>o(!1)})),u.createElement(Le,{display:"flex",flex:1},i&&u.createElement(HM),u.createElement(Le,{component:"main",sx:{background:"url(cup.svg) no-repeat right fixed",backgroundSize:"contain",px:{xs:1,sm:2,md:3},pb:"1em",position:"relative",display:"flex",flexDirection:"column",width:"100%"}},n&&i&&u.createElement(Ur,{variant:"h2",mb:2},n),u.createElement(fV,{},mC.map((s,a)=>u.createElement(uF,{key:a,path:s.path,element:u.createElement(s.comp)})))),u.createElement(wse)))}function Dbe({title:e,openMenu:t}){return u.createElement(bQ,{position:"sticky",sx:{mb:2}},u.createElement(KL,{},u.createElement(ai,{size:"large",edge:"start",color:"inherit",sx:{mr:2},"aria-label":"menu",onClick:t},u.createElement(NN)),e))}nF(document.getElementById("root")).render(u.createElement(u.StrictMode,{},u.createElement(Fbe)));export{Sn as c,yp as g};