hfs 0.42.3 → 0.44.0

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 (56) hide show
  1. package/README.md +56 -17
  2. package/admin/assets/index-35f6e3dc.css +1 -0
  3. package/admin/assets/index-ef68a7ab.js +510 -0
  4. package/{frontend/assets/sha512-f6798733.js → admin/assets/sha512-d091720e.js} +1 -1
  5. package/admin/index.html +2 -2
  6. package/frontend/assets/index-a3b0d6ac.js +94 -0
  7. package/frontend/assets/index-fe0f3d77.css +1 -0
  8. package/{admin/assets/sha512-69b26793.js → frontend/assets/sha512-96fd938f.js} +1 -1
  9. package/frontend/fontello.css +9 -3
  10. package/frontend/fontello.woff2 +0 -0
  11. package/frontend/index.html +3 -2
  12. package/package.json +2 -2
  13. package/plugins/antibrute/plugin.js +1 -1
  14. package/plugins/download-counter/plugin.js +14 -5
  15. package/plugins/download-counter/public/main.js +12 -2
  16. package/plugins/vhosting/plugin.js +17 -11
  17. package/src/adminApis.js +4 -4
  18. package/src/api.auth.js +4 -1
  19. package/src/api.file_list.js +22 -10
  20. package/src/api.lang.js +9 -11
  21. package/src/api.vfs.js +43 -29
  22. package/src/apiMiddleware.js +3 -2
  23. package/src/block.js +6 -20
  24. package/src/config.js +6 -2
  25. package/src/const.js +5 -4
  26. package/src/customHtml.js +2 -2
  27. package/src/debounceAsync.js +3 -3
  28. package/src/frontEndApis.js +7 -32
  29. package/src/github.js +26 -8
  30. package/src/index.js +2 -1
  31. package/src/lang.js +67 -0
  32. package/src/langs/embedded.js +13 -0
  33. package/src/langs/hfs-lang-it.json +100 -0
  34. package/src/langs/hfs-lang-ko.json +103 -0
  35. package/src/langs/hfs-lang-ms.json +70 -0
  36. package/src/langs/hfs-lang-ru.json +106 -0
  37. package/src/langs/hfs-lang-sr.json +108 -0
  38. package/src/langs/hfs-lang-zh-tw.json +106 -0
  39. package/src/langs/hfs-lang-zh.json +98 -0
  40. package/src/listen.js +8 -3
  41. package/src/log.js +6 -2
  42. package/src/middlewares.js +24 -18
  43. package/src/misc.js +17 -9
  44. package/src/perm.js +1 -1
  45. package/src/plugins.js +6 -6
  46. package/src/serveFile.js +2 -2
  47. package/src/serveGuiFiles.js +23 -10
  48. package/src/update.js +1 -2
  49. package/src/upload.js +6 -6
  50. package/src/util-http.js +5 -3
  51. package/src/vfs.js +114 -74
  52. package/src/zip.js +4 -4
  53. package/admin/assets/index-08017e15.js +0 -511
  54. package/admin/assets/index-94bbe0be.css +0 -1
  55. package/frontend/assets/index-5f125477.js +0 -94
  56. package/frontend/assets/index-a09cacfd.css +0 -1
@@ -0,0 +1,510 @@
1
+ var aj=Object.defineProperty,cj=Object.defineProperties;var uj=Object.getOwnPropertyDescriptors;var Ch=Object.getOwnPropertySymbols;var Zk=Object.prototype.hasOwnProperty,e_=Object.prototype.propertyIsEnumerable;var xs=Math.pow,M0=(e,t,n)=>t in e?aj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ie=(e,t)=>{for(var n in t||(t={}))Zk.call(t,n)&&M0(e,n,t[n]);if(Ch)for(var n of Ch(t))e_.call(t,n)&&M0(e,n,t[n]);return e},Ot=(e,t)=>cj(e,uj(t));var hn=(e,t)=>{var n={};for(var r in e)Zk.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ch)for(var r of Ch(e))t.indexOf(r)<0&&e_.call(e,r)&&(n[r]=e[r]);return n};var Bi=(e,t,n)=>(M0(e,typeof t!="symbol"?t+"":t,n),n);var lt=(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 dj(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 Cn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Nw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function LM(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 u={},fj={get exports(){return u},set exports(e){u=e}},Ht={};/**
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 rp=Symbol.for("react.element"),pj=Symbol.for("react.portal"),hj=Symbol.for("react.fragment"),mj=Symbol.for("react.strict_mode"),gj=Symbol.for("react.profiler"),vj=Symbol.for("react.provider"),yj=Symbol.for("react.context"),bj=Symbol.for("react.forward_ref"),wj=Symbol.for("react.suspense"),Cj=Symbol.for("react.memo"),xj=Symbol.for("react.lazy"),t_=Symbol.iterator;function Sj(e){return e===null||typeof e!="object"?null:(e=t_&&e[t_]||e["@@iterator"],typeof e=="function"?e:null)}var AM={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},FM=Object.assign,NM={};function Fu(e,t,n){this.props=e,this.context=t,this.refs=NM,this.updater=n||AM}Fu.prototype.isReactComponent={};Fu.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")};Fu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function DM(){}DM.prototype=Fu.prototype;function Dw(e,t,n){this.props=e,this.context=t,this.refs=NM,this.updater=n||AM}var Bw=Dw.prototype=new DM;Bw.constructor=Dw;FM(Bw,Fu.prototype);Bw.isPureReactComponent=!0;var n_=Array.isArray,BM=Object.prototype.hasOwnProperty,zw={current:null},zM={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)BM.call(t,r)&&!zM.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:rp,type:e,key:i,ref:s,props:o,_owner:zw.current}}function Ej(e,t){return{$$typeof:rp,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function jw(e){return typeof e=="object"&&e!==null&&e.$$typeof===rp}function Pj(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var r_=/\/+/g;function R0(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Pj(""+e.key):t.toString(36)}function rm(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 rp:case pj:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+R0(s,0):r,n_(o)?(n="",e!=null&&(n=e.replace(r_,"$&/")+"/"),rm(o,t,n,"",function(d){return d})):o!=null&&(jw(o)&&(o=Ej(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(r_,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",n_(e))for(var a=0;a<e.length;a++){i=e[a];var c=r+R0(i,a);s+=rm(i,t,n,c,o)}else if(c=Sj(e),typeof c=="function")for(e=c.call(e),a=0;!(i=e.next()).done;)i=i.value,c=r+R0(i,a++),s+=rm(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 xh(e,t,n){if(e==null)return e;var r=[],o=0;return rm(e,r,"","",function(i){return t.call(n,i,o++)}),r}function kj(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 Ur={current:null},om={transition:null},_j={ReactCurrentDispatcher:Ur,ReactCurrentBatchConfig:om,ReactCurrentOwner:zw};Ht.Children={map:xh,forEach:function(e,t,n){xh(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return xh(e,function(){t++}),t},toArray:function(e){return xh(e,function(t){return t})||[]},only:function(e){if(!jw(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ht.Component=Fu;Ht.Fragment=hj;Ht.Profiler=gj;Ht.PureComponent=Dw;Ht.StrictMode=mj;Ht.Suspense=wj;Ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_j;Ht.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=FM({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=zw.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(c in t)BM.call(t,c)&&!zM.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:rp,type:e.type,key:o,ref:i,props:r,_owner:s}};Ht.createContext=function(e){return e={$$typeof:yj,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:vj,_context:e},e.Consumer=e};Ht.createElement=jM;Ht.createFactory=function(e){var t=jM.bind(null,e);return t.type=e,t};Ht.createRef=function(){return{current:null}};Ht.forwardRef=function(e){return{$$typeof:bj,render:e}};Ht.isValidElement=jw;Ht.lazy=function(e){return{$$typeof:xj,_payload:{_status:-1,_result:e},_init:kj}};Ht.memo=function(e,t){return{$$typeof:Cj,type:e,compare:t===void 0?null:t}};Ht.startTransition=function(e){var t=om.transition;om.transition={};try{e()}finally{om.transition=t}};Ht.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Ht.useCallback=function(e,t){return Ur.current.useCallback(e,t)};Ht.useContext=function(e){return Ur.current.useContext(e)};Ht.useDebugValue=function(){};Ht.useDeferredValue=function(e){return Ur.current.useDeferredValue(e)};Ht.useEffect=function(e,t){return Ur.current.useEffect(e,t)};Ht.useId=function(){return Ur.current.useId()};Ht.useImperativeHandle=function(e,t,n){return Ur.current.useImperativeHandle(e,t,n)};Ht.useInsertionEffect=function(e,t){return Ur.current.useInsertionEffect(e,t)};Ht.useLayoutEffect=function(e,t){return Ur.current.useLayoutEffect(e,t)};Ht.useMemo=function(e,t){return Ur.current.useMemo(e,t)};Ht.useReducer=function(e,t,n){return Ur.current.useReducer(e,t,n)};Ht.useRef=function(e){return Ur.current.useRef(e)};Ht.useState=function(e){return Ur.current.useState(e)};Ht.useSyncExternalStore=function(e,t,n){return Ur.current.useSyncExternalStore(e,t,n)};Ht.useTransition=function(){return Ur.current.useTransition()};Ht.version="18.2.0";(function(e){e.exports=Ht})(fj);const Eo=Nw(u),Ra=dj({__proto__:null,default:Eo},[u]);var jl={},Ij={get exports(){return jl},set exports(e){jl=e}},Oo={},Vb={},$j={get exports(){return Vb},set exports(e){Vb=e}},HM={};/**
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(N,B){var W=N.length;N.push(B);e:for(;0<W;){var q=W-1>>>1,X=N[q];if(0<o(X,B))N[q]=B,N[W]=X,W=q;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var B=N[0],W=N.pop();if(W!==B){N[0]=W;e:for(var q=0,X=N.length,ie=X>>>1;q<ie;){var J=2*(q+1)-1,fe=N[J],Q=J+1,le=N[Q];if(0>o(fe,W))Q<X&&0>o(le,fe)?(N[q]=le,N[Q]=W,q=Q):(N[q]=fe,N[J]=W,q=J);else if(Q<X&&0>o(le,W))N[q]=le,N[Q]=W,q=Q;else break e}}return B}function o(N,B){var W=N.sortIndex-B.sortIndex;return W!==0?W:N.id-B.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,v=!1,b=!1,g=!1,S=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(N){for(var B=n(d);B!==null;){if(B.callback===null)r(d);else if(B.startTime<=N)r(d),B.sortIndex=B.expirationTime,t(c,B);else break;B=n(d)}}function x(N){if(g=!1,w(N),!b)if(n(c)!==null)b=!0,z(k);else{var B=n(d);B!==null&&G(x,B.startTime-N)}}function k(N,B){b=!1,g&&(g=!1,C(M),M=-1),v=!0;var W=m;try{for(w(B),h=n(c);h!==null&&(!(h.expirationTime>B)||N&&!L());){var q=h.callback;if(typeof q=="function"){h.callback=null,m=h.priorityLevel;var X=q(h.expirationTime<=B);B=e.unstable_now(),typeof X=="function"?h.callback=X:h===n(c)&&r(c),w(B)}else r(c);h=n(c)}if(h!==null)var ie=!0;else{var J=n(d);J!==null&&G(x,J.startTime-B),ie=!1}return ie}finally{h=null,m=W,v=!1}}var I=!1,_=null,M=-1,O=5,R=-1;function L(){return!(e.unstable_now()-R<O)}function H(){if(_!==null){var N=e.unstable_now();R=N;var B=!0;try{B=_(!0,N)}finally{B?j():(I=!1,_=null)}}else I=!1}var j;if(typeof E=="function")j=function(){E(H)};else if(typeof MessageChannel!="undefined"){var A=new MessageChannel,F=A.port2;A.port1.onmessage=H,j=function(){F.postMessage(null)}}else j=function(){S(H,0)};function z(N){_=N,I||(I=!0,j())}function G(N,B){M=S(function(){N(e.unstable_now())},B)}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(N){N.callback=null},e.unstable_continueExecution=function(){b||v||(b=!0,z(k))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(N){switch(m){case 1:case 2:case 3:var B=3;break;default:B=m}var W=m;m=B;try{return N()}finally{m=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,B){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var W=m;m=N;try{return B()}finally{m=W}},e.unstable_scheduleCallback=function(N,B,W){var q=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?q+W:q):W=q,N){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=W+X,N={id:p++,callback:B,priorityLevel:N,startTime:W,expirationTime:X,sortIndex:-1},W>q?(N.sortIndex=W,t(d,N),n(c)===null&&N===n(d)&&(g?(C(M),M=-1):g=!0,G(x,W-q))):(N.sortIndex=X,t(c,N),b||v||(b=!0,z(k))),N},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(N){var B=m;return function(){var W=m;m=B;try{return N.apply(this,arguments)}finally{m=W}}}})(HM);(function(e){e.exports=HM})($j);/**
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 VM=u,$o=Vb;function Re(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 UM=new Set,wf={};function Xa(e,t){hu(e,t),hu(e+"Capture",t)}function hu(e,t){for(wf[e]=t,e=0;e<t.length;e++)UM.add(t[e])}var Ds=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),Ub=Object.prototype.hasOwnProperty,Mj=/^[: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]*$/,o_={},i_={};function Rj(e){return Ub.call(i_,e)?!0:Ub.call(o_,e)?!1:Mj.test(e)?i_[e]=!0:(o_[e]=!0,!1)}function Tj(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 Oj(e,t,n,r){if(t===null||typeof t=="undefined"||Tj(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 Wr(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 Cr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Cr[e]=new Wr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Cr[t]=new Wr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Cr[e]=new Wr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Cr[e]=new Wr(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){Cr[e]=new Wr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Cr[e]=new Wr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Cr[e]=new Wr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Cr[e]=new Wr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Cr[e]=new Wr(e,5,!1,e.toLowerCase(),null,!1,!1)});var Hw=/[\-:]([a-z])/g;function Vw(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(Hw,Vw);Cr[t]=new Wr(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(Hw,Vw);Cr[t]=new Wr(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(Hw,Vw);Cr[t]=new Wr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Cr[e]=new Wr(e,1,!1,e.toLowerCase(),null,!1,!1)});Cr.xlinkHref=new Wr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Cr[e]=new Wr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Uw(e,t,n,r){var o=Cr.hasOwnProperty(t)?Cr[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Oj(t,n,o,r)&&(n=null),r||o===null?Rj(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 qs=VM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Sh=Symbol.for("react.element"),Bc=Symbol.for("react.portal"),zc=Symbol.for("react.fragment"),Ww=Symbol.for("react.strict_mode"),Wb=Symbol.for("react.profiler"),WM=Symbol.for("react.provider"),GM=Symbol.for("react.context"),Gw=Symbol.for("react.forward_ref"),Gb=Symbol.for("react.suspense"),Kb=Symbol.for("react.suspense_list"),Kw=Symbol.for("react.memo"),pl=Symbol.for("react.lazy"),KM=Symbol.for("react.offscreen"),s_=Symbol.iterator;function gd(e){return e===null||typeof e!="object"?null:(e=s_&&e[s_]||e["@@iterator"],typeof e=="function"?e:null)}var Dn=Object.assign,T0;function Bd(e){if(T0===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);T0=t&&t[1]||""}return`
26
+ `+T0+e}var O0=!1;function L0(e,t){if(!e||O0)return"";O0=!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{O0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Bd(e):""}function Lj(e){switch(e.tag){case 5:return Bd(e.type);case 16:return Bd("Lazy");case 13:return Bd("Suspense");case 19:return Bd("SuspenseList");case 0:case 2:case 15:return e=L0(e.type,!1),e;case 11:return e=L0(e.type.render,!1),e;case 1:return e=L0(e.type,!0),e;default:return""}}function qb(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 zc:return"Fragment";case Bc:return"Portal";case Wb:return"Profiler";case Ww:return"StrictMode";case Gb:return"Suspense";case Kb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case GM:return(e.displayName||"Context")+".Consumer";case WM:return(e._context.displayName||"Context")+".Provider";case Gw:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Kw:return t=e.displayName||null,t!==null?t:qb(e.type)||"Memo";case pl:t=e._payload,e=e._init;try{return qb(e(t))}catch(n){}}return null}function Aj(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 qb(t);case 8:return t===Ww?"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 Hl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qM(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Fj(e){var t=qM(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 Eh(e){e._valueTracker||(e._valueTracker=Fj(e))}function YM(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=qM(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Im(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 Yb(e,t){var n=t.checked;return Dn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function l_(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Hl(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 XM(e,t){t=t.checked,t!=null&&Uw(e,"checked",t,!1)}function Xb(e,t){XM(e,t);var n=Hl(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")?Qb(e,t.type,n):t.hasOwnProperty("defaultValue")&&Qb(e,t.type,Hl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function a_(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 Qb(e,t,n){(t!=="number"||Im(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zd=Array.isArray;function eu(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=""+Hl(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 Jb(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Re(91));return Dn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function c_(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Re(92));if(zd(n)){if(1<n.length)throw Error(Re(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Hl(n)}}function QM(e,t){var n=Hl(t.value),r=Hl(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 u_(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function JM(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 Zb(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?JM(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ph,ZM=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(Ph=Ph||document.createElement("div"),Ph.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ph.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Cf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qd={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},Nj=["Webkit","ms","Moz","O"];Object.keys(Qd).forEach(function(e){Nj.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qd[t]=Qd[e]})});function eR(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qd.hasOwnProperty(e)&&Qd[e]?(""+t).trim():t+"px"}function tR(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=eR(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Dj=Dn({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 e1(e,t){if(t){if(Dj[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Re(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Re(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Re(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Re(62))}}function t1(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 n1=null;function qw(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var r1=null,tu=null,nu=null;function d_(e){if(e=sp(e)){if(typeof r1!="function")throw Error(Re(280));var t=e.stateNode;t&&(t=Rg(t),r1(e.stateNode,e.type,t))}}function nR(e){tu?nu?nu.push(e):nu=[e]:tu=e}function rR(){if(tu){var e=tu,t=nu;if(nu=tu=null,d_(e),t)for(e=0;e<t.length;e++)d_(t[e])}}function oR(e,t){return e(t)}function iR(){}var A0=!1;function sR(e,t,n){if(A0)return e(t,n);A0=!0;try{return oR(e,t,n)}finally{A0=!1,(tu!==null||nu!==null)&&(iR(),rR())}}function xf(e,t){var n=e.stateNode;if(n===null)return null;var r=Rg(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(Re(231,t,typeof n));return n}var o1=!1;if(Ds)try{var vd={};Object.defineProperty(vd,"passive",{get:function(){o1=!0}}),window.addEventListener("test",vd,vd),window.removeEventListener("test",vd,vd)}catch(e){o1=!1}function Bj(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 Jd=!1,$m=null,Mm=!1,i1=null,zj={onError:function(e){Jd=!0,$m=e}};function jj(e,t,n,r,o,i,s,a,c){Jd=!1,$m=null,Bj.apply(zj,arguments)}function Hj(e,t,n,r,o,i,s,a,c){if(jj.apply(this,arguments),Jd){if(Jd){var d=$m;Jd=!1,$m=null}else throw Error(Re(198));Mm||(Mm=!0,i1=d)}}function Qa(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 lR(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 f_(e){if(Qa(e)!==e)throw Error(Re(188))}function Vj(e){var t=e.alternate;if(!t){if(t=Qa(e),t===null)throw Error(Re(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 f_(o),e;if(i===r)return f_(o),t;i=i.sibling}throw Error(Re(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(Re(189))}}if(n.alternate!==r)throw Error(Re(190))}if(n.tag!==3)throw Error(Re(188));return n.stateNode.current===n?e:t}function aR(e){return e=Vj(e),e!==null?cR(e):null}function cR(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=cR(e);if(t!==null)return t;e=e.sibling}return null}var uR=$o.unstable_scheduleCallback,p_=$o.unstable_cancelCallback,Uj=$o.unstable_shouldYield,Wj=$o.unstable_requestPaint,qn=$o.unstable_now,Gj=$o.unstable_getCurrentPriorityLevel,Yw=$o.unstable_ImmediatePriority,dR=$o.unstable_UserBlockingPriority,Rm=$o.unstable_NormalPriority,Kj=$o.unstable_LowPriority,fR=$o.unstable_IdlePriority,_g=null,Qi=null;function qj(e){if(Qi&&typeof Qi.onCommitFiberRoot=="function")try{Qi.onCommitFiberRoot(_g,e,void 0,(e.current.flags&128)===128)}catch(t){}}var Pi=Math.clz32?Math.clz32:Qj,Yj=Math.log,Xj=Math.LN2;function Qj(e){return e>>>=0,e===0?32:31-(Yj(e)/Xj|0)|0}var kh=64,_h=4194304;function jd(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 Tm(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=jd(a):(i&=s,i!==0&&(r=jd(i)))}else s=n&~o,s!==0?r=jd(s):i!==0&&(r=jd(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-Pi(t),o=1<<n,r|=e[n],t&=~o;return r}function Jj(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 Zj(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-Pi(i),a=1<<s,c=o[s];c===-1?(!(a&n)||a&r)&&(o[s]=Jj(a,t)):c<=t&&(e.expiredLanes|=a),i&=~a}}function s1(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function pR(){var e=kh;return kh<<=1,!(kh&4194240)&&(kh=64),e}function F0(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function op(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Pi(t),e[t]=n}function e9(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-Pi(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Xw(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Pi(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var rn=0;function hR(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var mR,Qw,gR,vR,yR,l1=!1,Ih=[],$l=null,Ml=null,Rl=null,Sf=new Map,Ef=new Map,bl=[],t9="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 h_(e,t){switch(e){case"focusin":case"focusout":$l=null;break;case"dragenter":case"dragleave":Ml=null;break;case"mouseover":case"mouseout":Rl=null;break;case"pointerover":case"pointerout":Sf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ef.delete(t.pointerId)}}function yd(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=sp(t),t!==null&&Qw(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function n9(e,t,n,r,o){switch(t){case"focusin":return $l=yd($l,e,t,n,r,o),!0;case"dragenter":return Ml=yd(Ml,e,t,n,r,o),!0;case"mouseover":return Rl=yd(Rl,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Sf.set(i,yd(Sf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Ef.set(i,yd(Ef.get(i)||null,e,t,n,r,o)),!0}return!1}function bR(e){var t=ya(e.target);if(t!==null){var n=Qa(t);if(n!==null){if(t=n.tag,t===13){if(t=lR(n),t!==null){e.blockedOn=t,yR(e.priority,function(){gR(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 im(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=a1(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);n1=r,n.target.dispatchEvent(r),n1=null}else return t=sp(n),t!==null&&Qw(t),e.blockedOn=n,!1;t.shift()}return!0}function m_(e,t,n){im(e)&&n.delete(t)}function r9(){l1=!1,$l!==null&&im($l)&&($l=null),Ml!==null&&im(Ml)&&(Ml=null),Rl!==null&&im(Rl)&&(Rl=null),Sf.forEach(m_),Ef.forEach(m_)}function bd(e,t){e.blockedOn===t&&(e.blockedOn=null,l1||(l1=!0,$o.unstable_scheduleCallback($o.unstable_NormalPriority,r9)))}function Pf(e){function t(o){return bd(o,e)}if(0<Ih.length){bd(Ih[0],e);for(var n=1;n<Ih.length;n++){var r=Ih[n];r.blockedOn===e&&(r.blockedOn=null)}}for($l!==null&&bd($l,e),Ml!==null&&bd(Ml,e),Rl!==null&&bd(Rl,e),Sf.forEach(t),Ef.forEach(t),n=0;n<bl.length;n++)r=bl[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<bl.length&&(n=bl[0],n.blockedOn===null);)bR(n),n.blockedOn===null&&bl.shift()}var ru=qs.ReactCurrentBatchConfig,Om=!0;function o9(e,t,n,r){var o=rn,i=ru.transition;ru.transition=null;try{rn=1,Jw(e,t,n,r)}finally{rn=o,ru.transition=i}}function i9(e,t,n,r){var o=rn,i=ru.transition;ru.transition=null;try{rn=4,Jw(e,t,n,r)}finally{rn=o,ru.transition=i}}function Jw(e,t,n,r){if(Om){var o=a1(e,t,n,r);if(o===null)G0(e,t,r,Lm,n),h_(e,r);else if(n9(o,e,t,n,r))r.stopPropagation();else if(h_(e,r),t&4&&-1<t9.indexOf(e)){for(;o!==null;){var i=sp(o);if(i!==null&&mR(i),i=a1(e,t,n,r),i===null&&G0(e,t,r,Lm,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else G0(e,t,r,null,n)}}var Lm=null;function a1(e,t,n,r){if(Lm=null,e=qw(r),e=ya(e),e!==null)if(t=Qa(e),t===null)e=null;else if(n=t.tag,n===13){if(e=lR(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 Lm=e,null}function wR(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(Gj()){case Yw:return 1;case dR:return 4;case Rm:case Kj:return 16;case fR:return 536870912;default:return 16}default:return 16}}var xl=null,Zw=null,sm=null;function CR(){if(sm)return sm;var e,t=Zw,n=t.length,r,o="value"in xl?xl.value:xl.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 sm=o.slice(e,1<r?1-r:void 0)}function lm(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 $h(){return!0}function g_(){return!1}function Lo(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)?$h:g_,this.isPropagationStopped=g_,this}return Dn(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=$h)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=$h)},persist:function(){},isPersistent:$h}),t}var Nu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},eC=Lo(Nu),ip=Dn({},Nu,{view:0,detail:0}),s9=Lo(ip),N0,D0,wd,Ig=Dn({},ip,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tC,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!==wd&&(wd&&e.type==="mousemove"?(N0=e.screenX-wd.screenX,D0=e.screenY-wd.screenY):D0=N0=0,wd=e),N0)},movementY:function(e){return"movementY"in e?e.movementY:D0}}),v_=Lo(Ig),l9=Dn({},Ig,{dataTransfer:0}),a9=Lo(l9),c9=Dn({},ip,{relatedTarget:0}),B0=Lo(c9),u9=Dn({},Nu,{animationName:0,elapsedTime:0,pseudoElement:0}),d9=Lo(u9),f9=Dn({},Nu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),p9=Lo(f9),h9=Dn({},Nu,{data:0}),y_=Lo(h9),m9={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},g9={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"},v9={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function y9(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=v9[e])?!!t[e]:!1}function tC(){return y9}var b9=Dn({},ip,{key:function(e){if(e.key){var t=m9[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=lm(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?g9[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tC,charCode:function(e){return e.type==="keypress"?lm(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?lm(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),w9=Lo(b9),C9=Dn({},Ig,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),b_=Lo(C9),x9=Dn({},ip,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tC}),S9=Lo(x9),E9=Dn({},Nu,{propertyName:0,elapsedTime:0,pseudoElement:0}),P9=Lo(E9),k9=Dn({},Ig,{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}),_9=Lo(k9),I9=[9,13,27,32],nC=Ds&&"CompositionEvent"in window,Zd=null;Ds&&"documentMode"in document&&(Zd=document.documentMode);var $9=Ds&&"TextEvent"in window&&!Zd,xR=Ds&&(!nC||Zd&&8<Zd&&11>=Zd),w_=String.fromCharCode(32),C_=!1;function SR(e,t){switch(e){case"keyup":return I9.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ER(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jc=!1;function M9(e,t){switch(e){case"compositionend":return ER(t);case"keypress":return t.which!==32?null:(C_=!0,w_);case"textInput":return e=t.data,e===w_&&C_?null:e;default:return null}}function R9(e,t){if(jc)return e==="compositionend"||!nC&&SR(e,t)?(e=CR(),sm=Zw=xl=null,jc=!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 xR&&t.locale!=="ko"?null:t.data;default:return null}}var T9={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 x_(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!T9[e.type]:t==="textarea"}function PR(e,t,n,r){nR(r),t=Am(t,"onChange"),0<t.length&&(n=new eC("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ef=null,kf=null;function O9(e){FR(e,0)}function $g(e){var t=Uc(e);if(YM(t))return e}function L9(e,t){if(e==="change")return t}var kR=!1;if(Ds){var z0;if(Ds){var j0="oninput"in document;if(!j0){var S_=document.createElement("div");S_.setAttribute("oninput","return;"),j0=typeof S_.oninput=="function"}z0=j0}else z0=!1;kR=z0&&(!document.documentMode||9<document.documentMode)}function E_(){ef&&(ef.detachEvent("onpropertychange",_R),kf=ef=null)}function _R(e){if(e.propertyName==="value"&&$g(kf)){var t=[];PR(t,kf,e,qw(e)),sR(O9,t)}}function A9(e,t,n){e==="focusin"?(E_(),ef=t,kf=n,ef.attachEvent("onpropertychange",_R)):e==="focusout"&&E_()}function F9(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $g(kf)}function N9(e,t){if(e==="click")return $g(t)}function D9(e,t){if(e==="input"||e==="change")return $g(t)}function B9(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mi=typeof Object.is=="function"?Object.is:B9;function _f(e,t){if(Mi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Ub.call(t,o)||!Mi(e[o],t[o]))return!1}return!0}function P_(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function k_(e,t){var n=P_(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=P_(n)}}function IR(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?IR(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $R(){for(var e=window,t=Im();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=Im(e.document)}return t}function rC(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 z9(e){var t=$R(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&IR(n.ownerDocument.documentElement,n)){if(r!==null&&rC(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=k_(n,i);var s=k_(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 j9=Ds&&"documentMode"in document&&11>=document.documentMode,Hc=null,c1=null,tf=null,u1=!1;function __(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;u1||Hc==null||Hc!==Im(r)||(r=Hc,"selectionStart"in r&&rC(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}),tf&&_f(tf,r)||(tf=r,r=Am(c1,"onSelect"),0<r.length&&(t=new eC("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Hc)))}function Mh(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Vc={animationend:Mh("Animation","AnimationEnd"),animationiteration:Mh("Animation","AnimationIteration"),animationstart:Mh("Animation","AnimationStart"),transitionend:Mh("Transition","TransitionEnd")},H0={},MR={};Ds&&(MR=document.createElement("div").style,"AnimationEvent"in window||(delete Vc.animationend.animation,delete Vc.animationiteration.animation,delete Vc.animationstart.animation),"TransitionEvent"in window||delete Vc.transitionend.transition);function Mg(e){if(H0[e])return H0[e];if(!Vc[e])return e;var t=Vc[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in MR)return H0[e]=t[n];return e}var RR=Mg("animationend"),TR=Mg("animationiteration"),OR=Mg("animationstart"),LR=Mg("transitionend"),AR=new Map,I_="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 Ql(e,t){AR.set(e,t),Xa(t,[e])}for(var V0=0;V0<I_.length;V0++){var U0=I_[V0],H9=U0.toLowerCase(),V9=U0[0].toUpperCase()+U0.slice(1);Ql(H9,"on"+V9)}Ql(RR,"onAnimationEnd");Ql(TR,"onAnimationIteration");Ql(OR,"onAnimationStart");Ql("dblclick","onDoubleClick");Ql("focusin","onFocus");Ql("focusout","onBlur");Ql(LR,"onTransitionEnd");hu("onMouseEnter",["mouseout","mouseover"]);hu("onMouseLeave",["mouseout","mouseover"]);hu("onPointerEnter",["pointerout","pointerover"]);hu("onPointerLeave",["pointerout","pointerover"]);Xa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Xa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Xa("onBeforeInput",["compositionend","keypress","textInput","paste"]);Xa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Xa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Xa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hd="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(" "),U9=new Set("cancel close invalid load scroll toggle".split(" ").concat(Hd));function $_(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Hj(r,t,void 0,e),e.currentTarget=null}function FR(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;$_(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;$_(o,a,d),i=c}}}if(Mm)throw e=i1,Mm=!1,i1=null,e}function wn(e,t){var n=t[m1];n===void 0&&(n=t[m1]=new Set);var r=e+"__bubble";n.has(r)||(NR(t,e,2,!1),n.add(r))}function W0(e,t,n){var r=0;t&&(r|=4),NR(n,e,r,t)}var Rh="_reactListening"+Math.random().toString(36).slice(2);function If(e){if(!e[Rh]){e[Rh]=!0,UM.forEach(function(n){n!=="selectionchange"&&(U9.has(n)||W0(n,!1,e),W0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Rh]||(t[Rh]=!0,W0("selectionchange",!1,t))}}function NR(e,t,n,r){switch(wR(t)){case 1:var o=o9;break;case 4:o=i9;break;default:o=Jw}n=o.bind(null,t,n,e),o=void 0,!o1||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 G0(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=ya(a),s===null)return;if(c=s.tag,c===5||c===6){r=i=s;continue e}a=a.parentNode}}r=r.return}sR(function(){var d=i,p=qw(n),h=[];e:{var m=AR.get(e);if(m!==void 0){var v=eC,b=e;switch(e){case"keypress":if(lm(n)===0)break e;case"keydown":case"keyup":v=w9;break;case"focusin":b="focus",v=B0;break;case"focusout":b="blur",v=B0;break;case"beforeblur":case"afterblur":v=B0;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":v=v_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=a9;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=S9;break;case RR:case TR:case OR:v=d9;break;case LR:v=P9;break;case"scroll":v=s9;break;case"wheel":v=_9;break;case"copy":case"cut":case"paste":v=p9;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=b_}var g=(t&4)!==0,S=!g&&e==="scroll",C=g?m!==null?m+"Capture":null:m;g=[];for(var E=d,w;E!==null;){w=E;var x=w.stateNode;if(w.tag===5&&x!==null&&(w=x,C!==null&&(x=xf(E,C),x!=null&&g.push($f(E,x,w)))),S)break;E=E.return}0<g.length&&(m=new v(m,b,null,n,p),h.push({event:m,listeners:g}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",m&&n!==n1&&(b=n.relatedTarget||n.fromElement)&&(ya(b)||b[Bs]))break e;if((v||m)&&(m=p.window===p?p:(m=p.ownerDocument)?m.defaultView||m.parentWindow:window,v?(b=n.relatedTarget||n.toElement,v=d,b=b?ya(b):null,b!==null&&(S=Qa(b),b!==S||b.tag!==5&&b.tag!==6)&&(b=null)):(v=null,b=d),v!==b)){if(g=v_,x="onMouseLeave",C="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(g=b_,x="onPointerLeave",C="onPointerEnter",E="pointer"),S=v==null?m:Uc(v),w=b==null?m:Uc(b),m=new g(x,E+"leave",v,n,p),m.target=S,m.relatedTarget=w,x=null,ya(p)===d&&(g=new g(C,E+"enter",b,n,p),g.target=w,g.relatedTarget=S,x=g),S=x,v&&b)t:{for(g=v,C=b,E=0,w=g;w;w=xc(w))E++;for(w=0,x=C;x;x=xc(x))w++;for(;0<E-w;)g=xc(g),E--;for(;0<w-E;)C=xc(C),w--;for(;E--;){if(g===C||C!==null&&g===C.alternate)break t;g=xc(g),C=xc(C)}g=null}else g=null;v!==null&&M_(h,m,v,g,!1),b!==null&&S!==null&&M_(h,S,b,g,!0)}}e:{if(m=d?Uc(d):window,v=m.nodeName&&m.nodeName.toLowerCase(),v==="select"||v==="input"&&m.type==="file")var k=L9;else if(x_(m))if(kR)k=D9;else{k=F9;var I=A9}else(v=m.nodeName)&&v.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(k=N9);if(k&&(k=k(e,d))){PR(h,k,n,p);break e}I&&I(e,m,d),e==="focusout"&&(I=m._wrapperState)&&I.controlled&&m.type==="number"&&Qb(m,"number",m.value)}switch(I=d?Uc(d):window,e){case"focusin":(x_(I)||I.contentEditable==="true")&&(Hc=I,c1=d,tf=null);break;case"focusout":tf=c1=Hc=null;break;case"mousedown":u1=!0;break;case"contextmenu":case"mouseup":case"dragend":u1=!1,__(h,n,p);break;case"selectionchange":if(j9)break;case"keydown":case"keyup":__(h,n,p)}var _;if(nC)e:{switch(e){case"compositionstart":var M="onCompositionStart";break e;case"compositionend":M="onCompositionEnd";break e;case"compositionupdate":M="onCompositionUpdate";break e}M=void 0}else jc?SR(e,n)&&(M="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(M="onCompositionStart");M&&(xR&&n.locale!=="ko"&&(jc||M!=="onCompositionStart"?M==="onCompositionEnd"&&jc&&(_=CR()):(xl=p,Zw="value"in xl?xl.value:xl.textContent,jc=!0)),I=Am(d,M),0<I.length&&(M=new y_(M,e,null,n,p),h.push({event:M,listeners:I}),_?M.data=_:(_=ER(n),_!==null&&(M.data=_)))),(_=$9?M9(e,n):R9(e,n))&&(d=Am(d,"onBeforeInput"),0<d.length&&(p=new y_("onBeforeInput","beforeinput",null,n,p),h.push({event:p,listeners:d}),p.data=_))}FR(h,t)})}function $f(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Am(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=xf(e,n),i!=null&&r.unshift($f(e,i,o)),i=xf(e,t),i!=null&&r.push($f(e,i,o))),e=e.return}return r}function xc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function M_(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=xf(n,i),c!=null&&s.unshift($f(n,c,a))):o||(c=xf(n,i),c!=null&&s.push($f(n,c,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var W9=/\r\n?/g,G9=/\u0000|\uFFFD/g;function R_(e){return(typeof e=="string"?e:""+e).replace(W9,`
30
+ `).replace(G9,"")}function Th(e,t,n){if(t=R_(t),R_(e)!==t&&n)throw Error(Re(425))}function Fm(){}var d1=null,f1=null;function p1(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 h1=typeof setTimeout=="function"?setTimeout:void 0,K9=typeof clearTimeout=="function"?clearTimeout:void 0,T_=typeof Promise=="function"?Promise:void 0,q9=typeof queueMicrotask=="function"?queueMicrotask:typeof T_!="undefined"?function(e){return T_.resolve(null).then(e).catch(Y9)}:h1;function Y9(e){setTimeout(function(){throw e})}function K0(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),Pf(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Pf(t)}function Tl(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 O_(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 Du=Math.random().toString(36).slice(2),qi="__reactFiber$"+Du,Mf="__reactProps$"+Du,Bs="__reactContainer$"+Du,m1="__reactEvents$"+Du,X9="__reactListeners$"+Du,Q9="__reactHandles$"+Du;function ya(e){var t=e[qi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Bs]||n[qi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=O_(e);e!==null;){if(n=e[qi])return n;e=O_(e)}return t}e=n,n=e.parentNode}return null}function sp(e){return e=e[qi]||e[Bs],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Uc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Re(33))}function Rg(e){return e[Mf]||null}var g1=[],Wc=-1;function Jl(e){return{current:e}}function Sn(e){0>Wc||(e.current=g1[Wc],g1[Wc]=null,Wc--)}function mn(e,t){Wc++,g1[Wc]=e.current,e.current=t}var Vl={},Lr=Jl(Vl),to=Jl(!1),Ta=Vl;function mu(e,t){var n=e.type.contextTypes;if(!n)return Vl;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 no(e){return e=e.childContextTypes,e!=null}function Nm(){Sn(to),Sn(Lr)}function L_(e,t,n){if(Lr.current!==Vl)throw Error(Re(168));mn(Lr,t),mn(to,n)}function DR(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(Re(108,Aj(e)||"Unknown",o));return Dn({},n,r)}function Dm(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vl,Ta=Lr.current,mn(Lr,e),mn(to,to.current),!0}function A_(e,t,n){var r=e.stateNode;if(!r)throw Error(Re(169));n?(e=DR(e,t,Ta),r.__reactInternalMemoizedMergedChildContext=e,Sn(to),Sn(Lr),mn(Lr,e)):Sn(to),mn(to,n)}var _s=null,Tg=!1,q0=!1;function BR(e){_s===null?_s=[e]:_s.push(e)}function J9(e){Tg=!0,BR(e)}function Zl(){if(!q0&&_s!==null){q0=!0;var e=0,t=rn;try{var n=_s;for(rn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}_s=null,Tg=!1}catch(o){throw _s!==null&&(_s=_s.slice(e+1)),uR(Yw,Zl),o}finally{rn=t,q0=!1}}return null}var Gc=[],Kc=0,Bm=null,zm=0,Yo=[],Xo=0,Oa=null,Rs=1,Ts="";function fa(e,t){Gc[Kc++]=zm,Gc[Kc++]=Bm,Bm=e,zm=t}function zR(e,t,n){Yo[Xo++]=Rs,Yo[Xo++]=Ts,Yo[Xo++]=Oa,Oa=e;var r=Rs;e=Ts;var o=32-Pi(r)-1;r&=~(1<<o),n+=1;var i=32-Pi(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Rs=1<<32-Pi(t)+o|n<<o|r,Ts=i+e}else Rs=1<<i|n<<o|r,Ts=e}function oC(e){e.return!==null&&(fa(e,1),zR(e,1,0))}function iC(e){for(;e===Bm;)Bm=Gc[--Kc],Gc[Kc]=null,zm=Gc[--Kc],Gc[Kc]=null;for(;e===Oa;)Oa=Yo[--Xo],Yo[Xo]=null,Ts=Yo[--Xo],Yo[Xo]=null,Rs=Yo[--Xo],Yo[Xo]=null}var ko=null,Po=null,_n=!1,xi=null;function jR(e,t){var n=Jo(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 F_(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,ko=e,Po=Tl(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ko=e,Po=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Oa!==null?{id:Rs,overflow:Ts}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Jo(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ko=e,Po=null,!0):!1;default:return!1}}function v1(e){return(e.mode&1)!==0&&(e.flags&128)===0}function y1(e){if(_n){var t=Po;if(t){var n=t;if(!F_(e,t)){if(v1(e))throw Error(Re(418));t=Tl(n.nextSibling);var r=ko;t&&F_(e,t)?jR(r,n):(e.flags=e.flags&-4097|2,_n=!1,ko=e)}}else{if(v1(e))throw Error(Re(418));e.flags=e.flags&-4097|2,_n=!1,ko=e}}}function N_(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ko=e}function Oh(e){if(e!==ko)return!1;if(!_n)return N_(e),_n=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!p1(e.type,e.memoizedProps)),t&&(t=Po)){if(v1(e))throw HR(),Error(Re(418));for(;t;)jR(e,t),t=Tl(t.nextSibling)}if(N_(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Re(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Po=Tl(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Po=null}}else Po=ko?Tl(e.stateNode.nextSibling):null;return!0}function HR(){for(var e=Po;e;)e=Tl(e.nextSibling)}function gu(){Po=ko=null,_n=!1}function sC(e){xi===null?xi=[e]:xi.push(e)}var Z9=qs.ReactCurrentBatchConfig;function bi(e,t){if(e&&e.defaultProps){t=Dn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var jm=Jl(null),Hm=null,qc=null,lC=null;function aC(){lC=qc=Hm=null}function cC(e){var t=jm.current;Sn(jm),e._currentValue=t}function b1(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 ou(e,t){Hm=e,lC=qc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Zr=!0),e.firstContext=null)}function ri(e){var t=e._currentValue;if(lC!==e)if(e={context:e,memoizedValue:t,next:null},qc===null){if(Hm===null)throw Error(Re(308));qc=e,Hm.dependencies={lanes:0,firstContext:e}}else qc=qc.next=e;return t}var ba=null;function uC(e){ba===null?ba=[e]:ba.push(e)}function VR(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,uC(t)):(n.next=o.next,o.next=n),t.interleaved=n,zs(e,r)}function zs(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 hl=!1;function dC(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function UR(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 Fs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ol(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,zs(e,n)}return o=r.interleaved,o===null?(t.next=t,uC(r)):(t.next=o.next,o.next=t),r.interleaved=t,zs(e,n)}function am(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,Xw(e,n)}}function D_(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 Vm(e,t,n,r){var o=e.updateQueue;hl=!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,v=a.eventTime;if((r&m)===m){p!==null&&(p=p.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=e,g=a;switch(m=t,v=n,g.tag){case 1:if(b=g.payload,typeof b=="function"){h=b.call(v,h,m);break e}h=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=g.payload,m=typeof b=="function"?b.call(v,h,m):b,m==null)break e;h=Dn({},h,m);break e;case 2:hl=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[a]:m.push(a))}else v={eventTime:v,lane:m,tag:a.tag,payload:a.payload,callback:a.callback,next:null},p===null?(d=p=v,c=h):p=p.next=v,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);Aa|=s,e.lanes=s,e.memoizedState=h}}function B_(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(Re(191,o));o.call(r)}}}var WR=new VM.Component().refs;function w1(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Dn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Og={isMounted:function(e){return(e=e._reactInternals)?Qa(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Vr(),o=Al(e),i=Fs(r,o);i.payload=t,n!=null&&(i.callback=n),t=Ol(e,i,o),t!==null&&(ki(t,e,o,r),am(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Vr(),o=Al(e),i=Fs(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ol(e,i,o),t!==null&&(ki(t,e,o,r),am(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Vr(),r=Al(e),o=Fs(n,r);o.tag=2,t!=null&&(o.callback=t),t=Ol(e,o,r),t!==null&&(ki(t,e,r,n),am(t,e,r))}};function z_(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?!_f(n,r)||!_f(o,i):!0}function GR(e,t,n){var r=!1,o=Vl,i=t.contextType;return typeof i=="object"&&i!==null?i=ri(i):(o=no(t)?Ta:Lr.current,r=t.contextTypes,i=(r=r!=null)?mu(e,o):Vl),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Og,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function j_(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&&Og.enqueueReplaceState(t,t.state,null)}function C1(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=WR,dC(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=ri(i):(i=no(t)?Ta:Lr.current,o.context=mu(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(w1(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&&Og.enqueueReplaceState(o,o.state,null),Vm(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Cd(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(Re(309));var r=n.stateNode}if(!r)throw Error(Re(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===WR&&(a=o.refs={}),s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(Re(284));if(!n._owner)throw Error(Re(290,e))}return e}function Lh(e,t){throw e=Object.prototype.toString.call(t),Error(Re(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function H_(e){var t=e._init;return t(e._payload)}function KR(e){function t(C,E){if(e){var w=C.deletions;w===null?(C.deletions=[E],C.flags|=16):w.push(E)}}function n(C,E){if(!e)return null;for(;E!==null;)t(C,E),E=E.sibling;return null}function r(C,E){for(C=new Map;E!==null;)E.key!==null?C.set(E.key,E):C.set(E.index,E),E=E.sibling;return C}function o(C,E){return C=Fl(C,E),C.index=0,C.sibling=null,C}function i(C,E,w){return C.index=w,e?(w=C.alternate,w!==null?(w=w.index,w<E?(C.flags|=2,E):w):(C.flags|=2,E)):(C.flags|=1048576,E)}function s(C){return e&&C.alternate===null&&(C.flags|=2),C}function a(C,E,w,x){return E===null||E.tag!==6?(E=tb(w,C.mode,x),E.return=C,E):(E=o(E,w),E.return=C,E)}function c(C,E,w,x){var k=w.type;return k===zc?p(C,E,w.props.children,x,w.key):E!==null&&(E.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===pl&&H_(k)===E.type)?(x=o(E,w.props),x.ref=Cd(C,E,w),x.return=C,x):(x=hm(w.type,w.key,w.props,null,C.mode,x),x.ref=Cd(C,E,w),x.return=C,x)}function d(C,E,w,x){return E===null||E.tag!==4||E.stateNode.containerInfo!==w.containerInfo||E.stateNode.implementation!==w.implementation?(E=nb(w,C.mode,x),E.return=C,E):(E=o(E,w.children||[]),E.return=C,E)}function p(C,E,w,x,k){return E===null||E.tag!==7?(E=ka(w,C.mode,x,k),E.return=C,E):(E=o(E,w),E.return=C,E)}function h(C,E,w){if(typeof E=="string"&&E!==""||typeof E=="number")return E=tb(""+E,C.mode,w),E.return=C,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Sh:return w=hm(E.type,E.key,E.props,null,C.mode,w),w.ref=Cd(C,null,E),w.return=C,w;case Bc:return E=nb(E,C.mode,w),E.return=C,E;case pl:var x=E._init;return h(C,x(E._payload),w)}if(zd(E)||gd(E))return E=ka(E,C.mode,w,null),E.return=C,E;Lh(C,E)}return null}function m(C,E,w,x){var k=E!==null?E.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return k!==null?null:a(C,E,""+w,x);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Sh:return w.key===k?c(C,E,w,x):null;case Bc:return w.key===k?d(C,E,w,x):null;case pl:return k=w._init,m(C,E,k(w._payload),x)}if(zd(w)||gd(w))return k!==null?null:p(C,E,w,x,null);Lh(C,w)}return null}function v(C,E,w,x,k){if(typeof x=="string"&&x!==""||typeof x=="number")return C=C.get(w)||null,a(E,C,""+x,k);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Sh:return C=C.get(x.key===null?w:x.key)||null,c(E,C,x,k);case Bc:return C=C.get(x.key===null?w:x.key)||null,d(E,C,x,k);case pl:var I=x._init;return v(C,E,w,I(x._payload),k)}if(zd(x)||gd(x))return C=C.get(w)||null,p(E,C,x,k,null);Lh(E,x)}return null}function b(C,E,w,x){for(var k=null,I=null,_=E,M=E=0,O=null;_!==null&&M<w.length;M++){_.index>M?(O=_,_=null):O=_.sibling;var R=m(C,_,w[M],x);if(R===null){_===null&&(_=O);break}e&&_&&R.alternate===null&&t(C,_),E=i(R,E,M),I===null?k=R:I.sibling=R,I=R,_=O}if(M===w.length)return n(C,_),_n&&fa(C,M),k;if(_===null){for(;M<w.length;M++)_=h(C,w[M],x),_!==null&&(E=i(_,E,M),I===null?k=_:I.sibling=_,I=_);return _n&&fa(C,M),k}for(_=r(C,_);M<w.length;M++)O=v(_,C,M,w[M],x),O!==null&&(e&&O.alternate!==null&&_.delete(O.key===null?M:O.key),E=i(O,E,M),I===null?k=O:I.sibling=O,I=O);return e&&_.forEach(function(L){return t(C,L)}),_n&&fa(C,M),k}function g(C,E,w,x){var k=gd(w);if(typeof k!="function")throw Error(Re(150));if(w=k.call(w),w==null)throw Error(Re(151));for(var I=k=null,_=E,M=E=0,O=null,R=w.next();_!==null&&!R.done;M++,R=w.next()){_.index>M?(O=_,_=null):O=_.sibling;var L=m(C,_,R.value,x);if(L===null){_===null&&(_=O);break}e&&_&&L.alternate===null&&t(C,_),E=i(L,E,M),I===null?k=L:I.sibling=L,I=L,_=O}if(R.done)return n(C,_),_n&&fa(C,M),k;if(_===null){for(;!R.done;M++,R=w.next())R=h(C,R.value,x),R!==null&&(E=i(R,E,M),I===null?k=R:I.sibling=R,I=R);return _n&&fa(C,M),k}for(_=r(C,_);!R.done;M++,R=w.next())R=v(_,C,M,R.value,x),R!==null&&(e&&R.alternate!==null&&_.delete(R.key===null?M:R.key),E=i(R,E,M),I===null?k=R:I.sibling=R,I=R);return e&&_.forEach(function(H){return t(C,H)}),_n&&fa(C,M),k}function S(C,E,w,x){if(typeof w=="object"&&w!==null&&w.type===zc&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Sh:e:{for(var k=w.key,I=E;I!==null;){if(I.key===k){if(k=w.type,k===zc){if(I.tag===7){n(C,I.sibling),E=o(I,w.props.children),E.return=C,C=E;break e}}else if(I.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===pl&&H_(k)===I.type){n(C,I.sibling),E=o(I,w.props),E.ref=Cd(C,I,w),E.return=C,C=E;break e}n(C,I);break}else t(C,I);I=I.sibling}w.type===zc?(E=ka(w.props.children,C.mode,x,w.key),E.return=C,C=E):(x=hm(w.type,w.key,w.props,null,C.mode,x),x.ref=Cd(C,E,w),x.return=C,C=x)}return s(C);case Bc:e:{for(I=w.key;E!==null;){if(E.key===I)if(E.tag===4&&E.stateNode.containerInfo===w.containerInfo&&E.stateNode.implementation===w.implementation){n(C,E.sibling),E=o(E,w.children||[]),E.return=C,C=E;break e}else{n(C,E);break}else t(C,E);E=E.sibling}E=nb(w,C.mode,x),E.return=C,C=E}return s(C);case pl:return I=w._init,S(C,E,I(w._payload),x)}if(zd(w))return b(C,E,w,x);if(gd(w))return g(C,E,w,x);Lh(C,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,E!==null&&E.tag===6?(n(C,E.sibling),E=o(E,w),E.return=C,C=E):(n(C,E),E=tb(w,C.mode,x),E.return=C,C=E),s(C)):n(C,E)}return S}var vu=KR(!0),qR=KR(!1),lp={},Ji=Jl(lp),Rf=Jl(lp),Tf=Jl(lp);function wa(e){if(e===lp)throw Error(Re(174));return e}function fC(e,t){switch(mn(Tf,t),mn(Rf,e),mn(Ji,lp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Zb(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Zb(t,e)}Sn(Ji),mn(Ji,t)}function yu(){Sn(Ji),Sn(Rf),Sn(Tf)}function YR(e){wa(Tf.current);var t=wa(Ji.current),n=Zb(t,e.type);t!==n&&(mn(Rf,e),mn(Ji,n))}function pC(e){Rf.current===e&&(Sn(Ji),Sn(Rf))}var On=Jl(0);function Um(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 Y0=[];function hC(){for(var e=0;e<Y0.length;e++)Y0[e]._workInProgressVersionPrimary=null;Y0.length=0}var cm=qs.ReactCurrentDispatcher,X0=qs.ReactCurrentBatchConfig,La=0,Fn=null,rr=null,cr=null,Wm=!1,nf=!1,Of=0,eH=0;function kr(){throw Error(Re(321))}function mC(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Mi(e[n],t[n]))return!1;return!0}function gC(e,t,n,r,o,i){if(La=i,Fn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,cm.current=e===null||e.memoizedState===null?oH:iH,e=n(r,o),nf){i=0;do{if(nf=!1,Of=0,25<=i)throw Error(Re(301));i+=1,cr=rr=null,t.updateQueue=null,cm.current=sH,e=n(r,o)}while(nf)}if(cm.current=Gm,t=rr!==null&&rr.next!==null,La=0,cr=rr=Fn=null,Wm=!1,t)throw Error(Re(300));return e}function vC(){var e=Of!==0;return Of=0,e}function ji(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return cr===null?Fn.memoizedState=cr=e:cr=cr.next=e,cr}function oi(){if(rr===null){var e=Fn.alternate;e=e!==null?e.memoizedState:null}else e=rr.next;var t=cr===null?Fn.memoizedState:cr.next;if(t!==null)cr=t,rr=e;else{if(e===null)throw Error(Re(310));rr=e,e={memoizedState:rr.memoizedState,baseState:rr.baseState,baseQueue:rr.baseQueue,queue:rr.queue,next:null},cr===null?Fn.memoizedState=cr=e:cr=cr.next=e}return cr}function Lf(e,t){return typeof t=="function"?t(e):t}function Q0(e){var t=oi(),n=t.queue;if(n===null)throw Error(Re(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((La&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,Fn.lanes|=p,Aa|=p}d=d.next}while(d!==null&&d!==i);c===null?s=r:c.next=a,Mi(r,t.memoizedState)||(Zr=!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,Fn.lanes|=i,Aa|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function J0(e){var t=oi(),n=t.queue;if(n===null)throw Error(Re(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);Mi(i,t.memoizedState)||(Zr=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function XR(){}function QR(e,t){var n=Fn,r=oi(),o=t(),i=!Mi(r.memoizedState,o);if(i&&(r.memoizedState=o,Zr=!0),r=r.queue,yC(eT.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||cr!==null&&cr.memoizedState.tag&1){if(n.flags|=2048,Af(9,ZR.bind(null,n,r,o,t),void 0,null),dr===null)throw Error(Re(349));La&30||JR(n,t,o)}return o}function JR(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Fn.updateQueue,t===null?(t={lastEffect:null,stores:null},Fn.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ZR(e,t,n,r){t.value=n,t.getSnapshot=r,tT(t)&&nT(e)}function eT(e,t,n){return n(function(){tT(t)&&nT(e)})}function tT(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Mi(e,n)}catch(r){return!0}}function nT(e){var t=zs(e,1);t!==null&&ki(t,e,1,-1)}function V_(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:Lf,lastRenderedState:e},t.queue=e,e=e.dispatch=rH.bind(null,Fn,e),[t.memoizedState,e]}function Af(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Fn.updateQueue,t===null?(t={lastEffect:null,stores:null},Fn.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 rT(){return oi().memoizedState}function um(e,t,n,r){var o=ji();Fn.flags|=e,o.memoizedState=Af(1|t,n,void 0,r===void 0?null:r)}function Lg(e,t,n,r){var o=oi();r=r===void 0?null:r;var i=void 0;if(rr!==null){var s=rr.memoizedState;if(i=s.destroy,r!==null&&mC(r,s.deps)){o.memoizedState=Af(t,n,i,r);return}}Fn.flags|=e,o.memoizedState=Af(1|t,n,i,r)}function U_(e,t){return um(8390656,8,e,t)}function yC(e,t){return Lg(2048,8,e,t)}function oT(e,t){return Lg(4,2,e,t)}function iT(e,t){return Lg(4,4,e,t)}function sT(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 lT(e,t,n){return n=n!=null?n.concat([e]):null,Lg(4,4,sT.bind(null,t,e),n)}function bC(){}function aT(e,t){var n=oi();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&mC(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function cT(e,t){var n=oi();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&mC(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function uT(e,t,n){return La&21?(Mi(n,t)||(n=pR(),Fn.lanes|=n,Aa|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Zr=!0),e.memoizedState=n)}function tH(e,t){var n=rn;rn=n!==0&&4>n?n:4,e(!0);var r=X0.transition;X0.transition={};try{e(!1),t()}finally{rn=n,X0.transition=r}}function dT(){return oi().memoizedState}function nH(e,t,n){var r=Al(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},fT(e))pT(t,n);else if(n=VR(e,t,n,r),n!==null){var o=Vr();ki(n,e,r,o),hT(n,t,r)}}function rH(e,t,n){var r=Al(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(fT(e))pT(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,Mi(a,s)){var c=t.interleaved;c===null?(o.next=o,uC(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch(d){}finally{}n=VR(e,t,o,r),n!==null&&(o=Vr(),ki(n,e,r,o),hT(n,t,r))}}function fT(e){var t=e.alternate;return e===Fn||t!==null&&t===Fn}function pT(e,t){nf=Wm=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hT(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xw(e,n)}}var Gm={readContext:ri,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},oH={readContext:ri,useCallback:function(e,t){return ji().memoizedState=[e,t===void 0?null:t],e},useContext:ri,useEffect:U_,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,um(4194308,4,sT.bind(null,t,e),n)},useLayoutEffect:function(e,t){return um(4194308,4,e,t)},useInsertionEffect:function(e,t){return um(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=nH.bind(null,Fn,e),[r.memoizedState,e]},useRef:function(e){var t=ji();return e={current:e},t.memoizedState=e},useState:V_,useDebugValue:bC,useDeferredValue:function(e){return ji().memoizedState=e},useTransition:function(){var e=V_(!1),t=e[0];return e=tH.bind(null,e[1]),ji().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Fn,o=ji();if(_n){if(n===void 0)throw Error(Re(407));n=n()}else{if(n=t(),dr===null)throw Error(Re(349));La&30||JR(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,U_(eT.bind(null,r,i,e),[e]),r.flags|=2048,Af(9,ZR.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ji(),t=dr.identifierPrefix;if(_n){var n=Ts,r=Rs;n=(r&~(1<<32-Pi(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Of++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=eH++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},iH={readContext:ri,useCallback:aT,useContext:ri,useEffect:yC,useImperativeHandle:lT,useInsertionEffect:oT,useLayoutEffect:iT,useMemo:cT,useReducer:Q0,useRef:rT,useState:function(){return Q0(Lf)},useDebugValue:bC,useDeferredValue:function(e){var t=oi();return uT(t,rr.memoizedState,e)},useTransition:function(){var e=Q0(Lf)[0],t=oi().memoizedState;return[e,t]},useMutableSource:XR,useSyncExternalStore:QR,useId:dT,unstable_isNewReconciler:!1},sH={readContext:ri,useCallback:aT,useContext:ri,useEffect:yC,useImperativeHandle:lT,useInsertionEffect:oT,useLayoutEffect:iT,useMemo:cT,useReducer:J0,useRef:rT,useState:function(){return J0(Lf)},useDebugValue:bC,useDeferredValue:function(e){var t=oi();return rr===null?t.memoizedState=e:uT(t,rr.memoizedState,e)},useTransition:function(){var e=J0(Lf)[0],t=oi().memoizedState;return[e,t]},useMutableSource:XR,useSyncExternalStore:QR,useId:dT,unstable_isNewReconciler:!1};function bu(e,t){try{var n="",r=t;do n+=Lj(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 Z0(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function x1(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var lH=typeof WeakMap=="function"?WeakMap:Map;function mT(e,t,n){n=Fs(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qm||(qm=!0,T1=r),x1(e,t)},n}function gT(e,t,n){n=Fs(-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(){x1(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){x1(e,t),typeof r!="function"&&(Ll===null?Ll=new Set([this]):Ll.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function W_(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new lH;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=CH.bind(null,e,t,n),t.then(e,e))}function G_(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 K_(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=Fs(-1,1),t.tag=2,Ol(n,t,1))),n.lanes|=1),e)}var aH=qs.ReactCurrentOwner,Zr=!1;function zr(e,t,n,r){t.child=e===null?qR(t,null,n,r):vu(t,e.child,n,r)}function q_(e,t,n,r,o){n=n.render;var i=t.ref;return ou(t,o),r=gC(e,t,n,r,i,o),n=vC(),e!==null&&!Zr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,js(e,t,o)):(_n&&n&&oC(t),t.flags|=1,zr(e,t,r,o),t.child)}function Y_(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!_C(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,vT(e,t,i,r,o)):(e=hm(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:_f,n(s,r)&&e.ref===t.ref)return js(e,t,o)}return t.flags|=1,e=Fl(i,r),e.ref=t.ref,e.return=t,t.child=e}function vT(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(_f(i,r)&&e.ref===t.ref)if(Zr=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Zr=!0);else return t.lanes=e.lanes,js(e,t,o)}return S1(e,t,n,r,o)}function yT(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},mn(Xc,bo),bo|=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,mn(Xc,bo),bo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,mn(Xc,bo),bo|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,mn(Xc,bo),bo|=r;return zr(e,t,o,n),t.child}function bT(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function S1(e,t,n,r,o){var i=no(n)?Ta:Lr.current;return i=mu(t,i),ou(t,o),n=gC(e,t,n,r,i,o),r=vC(),e!==null&&!Zr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,js(e,t,o)):(_n&&r&&oC(t),t.flags|=1,zr(e,t,n,o),t.child)}function X_(e,t,n,r,o){if(no(n)){var i=!0;Dm(t)}else i=!1;if(ou(t,o),t.stateNode===null)dm(e,t),GR(t,n,r),C1(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=ri(d):(d=no(n)?Ta:Lr.current,d=mu(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)&&j_(t,s,r,d),hl=!1;var m=t.memoizedState;s.state=m,Vm(t,r,s,o),c=t.memoizedState,a!==r||m!==c||to.current||hl?(typeof p=="function"&&(w1(t,n,p,r),c=t.memoizedState),(a=hl||z_(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,UR(e,t),a=t.memoizedProps,d=t.type===t.elementType?a:bi(t.type,a),s.props=d,h=t.pendingProps,m=s.context,c=n.contextType,typeof c=="object"&&c!==null?c=ri(c):(c=no(n)?Ta:Lr.current,c=mu(t,c));var v=n.getDerivedStateFromProps;(p=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||m!==c)&&j_(t,s,r,c),hl=!1,m=t.memoizedState,s.state=m,Vm(t,r,s,o);var b=t.memoizedState;a!==h||m!==b||to.current||hl?(typeof v=="function"&&(w1(t,n,v,r),b=t.memoizedState),(d=hl||z_(t,n,d,r,m,b,c)||!1)?(p||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,b,c),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,b,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=b),s.props=r,s.state=b,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 E1(e,t,n,r,i,o)}function E1(e,t,n,r,o,i){bT(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&A_(t,n,!1),js(e,t,i);r=t.stateNode,aH.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=vu(t,e.child,null,i),t.child=vu(t,null,a,i)):zr(e,t,a,i),t.memoizedState=r.state,o&&A_(t,n,!0),t.child}function wT(e){var t=e.stateNode;t.pendingContext?L_(e,t.pendingContext,t.pendingContext!==t.context):t.context&&L_(e,t.context,!1),fC(e,t.containerInfo)}function Q_(e,t,n,r,o){return gu(),sC(o),t.flags|=256,zr(e,t,n,r),t.child}var P1={dehydrated:null,treeContext:null,retryLane:0};function k1(e){return{baseLanes:e,cachePool:null,transitions:null}}function CT(e,t,n){var r=t.pendingProps,o=On.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),mn(On,o&1),e===null)return y1(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=Ng(s,r,0,null),e=ka(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=k1(n),t.memoizedState=P1,e):wC(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return cH(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=Fl(o,c),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=Fl(a,i):(i=ka(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?k1(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=P1,r}return i=e.child,e=i.sibling,r=Fl(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 wC(e,t){return t=Ng({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ah(e,t,n,r){return r!==null&&sC(r),vu(t,e.child,null,n),e=wC(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function cH(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=Z0(Error(Re(422))),Ah(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Ng({mode:"visible",children:r.children},o,0,null),i=ka(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&vu(t,e.child,null,s),t.child.memoizedState=k1(s),t.memoizedState=P1,i);if(!(t.mode&1))return Ah(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(Re(419)),r=Z0(i,r,void 0),Ah(e,t,s,r)}if(a=(s&e.childLanes)!==0,Zr||a){if(r=dr,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,zs(e,o),ki(r,e,o,-1))}return kC(),r=Z0(Error(Re(421))),Ah(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=xH.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Po=Tl(o.nextSibling),ko=t,_n=!0,xi=null,e!==null&&(Yo[Xo++]=Rs,Yo[Xo++]=Ts,Yo[Xo++]=Oa,Rs=e.id,Ts=e.overflow,Oa=t),t=wC(t,r.children),t.flags|=4096,t)}function J_(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),b1(e.return,t,n)}function eb(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 xT(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(zr(e,t,r.children,n),r=On.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&&J_(e,n,t);else if(e.tag===19)J_(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(mn(On,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&&Um(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),eb(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&&Um(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}eb(t,!0,n,null,i);break;case"together":eb(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function dm(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function js(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Aa|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Re(153));if(t.child!==null){for(e=t.child,n=Fl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Fl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function uH(e,t,n){switch(t.tag){case 3:wT(t),gu();break;case 5:YR(t);break;case 1:no(t.type)&&Dm(t);break;case 4:fC(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;mn(jm,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(mn(On,On.current&1),t.flags|=128,null):n&t.child.childLanes?CT(e,t,n):(mn(On,On.current&1),e=js(e,t,n),e!==null?e.sibling:null);mn(On,On.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return xT(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),mn(On,On.current),r)break;return null;case 22:case 23:return t.lanes=0,yT(e,t,n)}return js(e,t,n)}var ST,_1,ET,PT;ST=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}};_1=function(){};ET=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,wa(Ji.current);var i=null;switch(n){case"input":o=Yb(e,o),r=Yb(e,r),i=[];break;case"select":o=Dn({},o,{value:void 0}),r=Dn({},r,{value:void 0}),i=[];break;case"textarea":o=Jb(e,o),r=Jb(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Fm)}e1(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"&&(wf.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"&&(wf.hasOwnProperty(d)?(c!=null&&d==="onScroll"&&wn("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)}};PT=function(e,t,n,r){n!==r&&(t.flags|=4)};function xd(e,t){if(!_n)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 dH(e,t,n){var r=t.pendingProps;switch(iC(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 no(t.type)&&Nm(),_r(t),null;case 3:return r=t.stateNode,yu(),Sn(to),Sn(Lr),hC(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Oh(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,xi!==null&&(A1(xi),xi=null))),_1(e,t),_r(t),null;case 5:pC(t);var o=wa(Tf.current);if(n=t.type,e!==null&&t.stateNode!=null)ET(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Re(166));return _r(t),null}if(e=wa(Ji.current),Oh(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[qi]=t,r[Mf]=i,e=(t.mode&1)!==0,n){case"dialog":wn("cancel",r),wn("close",r);break;case"iframe":case"object":case"embed":wn("load",r);break;case"video":case"audio":for(o=0;o<Hd.length;o++)wn(Hd[o],r);break;case"source":wn("error",r);break;case"img":case"image":case"link":wn("error",r),wn("load",r);break;case"details":wn("toggle",r);break;case"input":l_(r,i),wn("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},wn("invalid",r);break;case"textarea":c_(r,i),wn("invalid",r)}e1(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&&Th(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Th(r.textContent,a,e),o=["children",""+a]):wf.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&wn("scroll",r)}switch(n){case"input":Eh(r),a_(r,i,!0);break;case"textarea":Eh(r),u_(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Fm)}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=JM(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[qi]=t,e[Mf]=r,ST(e,t,!1,!1),t.stateNode=e;e:{switch(s=t1(n,r),n){case"dialog":wn("cancel",e),wn("close",e),o=r;break;case"iframe":case"object":case"embed":wn("load",e),o=r;break;case"video":case"audio":for(o=0;o<Hd.length;o++)wn(Hd[o],e);o=r;break;case"source":wn("error",e),o=r;break;case"img":case"image":case"link":wn("error",e),wn("load",e),o=r;break;case"details":wn("toggle",e),o=r;break;case"input":l_(e,r),o=Yb(e,r),wn("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Dn({},r,{value:void 0}),wn("invalid",e);break;case"textarea":c_(e,r),o=Jb(e,r),wn("invalid",e);break;default:o=r}e1(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var c=a[i];i==="style"?tR(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&ZM(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Cf(e,c):typeof c=="number"&&Cf(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(wf.hasOwnProperty(i)?c!=null&&i==="onScroll"&&wn("scroll",e):c!=null&&Uw(e,i,c,s))}switch(n){case"input":Eh(e),a_(e,r,!1);break;case"textarea":Eh(e),u_(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Hl(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?eu(e,!!r.multiple,i,!1):r.defaultValue!=null&&eu(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Fm)}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)PT(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Re(166));if(n=wa(Tf.current),wa(Ji.current),Oh(t)){if(r=t.stateNode,n=t.memoizedProps,r[qi]=t,(i=r.nodeValue!==n)&&(e=ko,e!==null))switch(e.tag){case 3:Th(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Th(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[qi]=t,t.stateNode=r}return _r(t),null;case 13:if(Sn(On),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(_n&&Po!==null&&t.mode&1&&!(t.flags&128))HR(),gu(),t.flags|=98560,i=!1;else if(i=Oh(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(Re(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(Re(317));i[qi]=t}else gu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_r(t),i=!1}else xi!==null&&(A1(xi),xi=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||On.current&1?or===0&&(or=3):kC())),t.updateQueue!==null&&(t.flags|=4),_r(t),null);case 4:return yu(),_1(e,t),e===null&&If(t.stateNode.containerInfo),_r(t),null;case 10:return cC(t.type._context),_r(t),null;case 17:return no(t.type)&&Nm(),_r(t),null;case 19:if(Sn(On),i=t.memoizedState,i===null)return _r(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)xd(i,!1);else{if(or!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Um(e),s!==null){for(t.flags|=128,xd(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 mn(On,On.current&1|2),t.child}e=e.sibling}i.tail!==null&&qn()>wu&&(t.flags|=128,r=!0,xd(i,!1),t.lanes=4194304)}else{if(!r)if(e=Um(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),xd(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!_n)return _r(t),null}else 2*qn()-i.renderingStartTime>wu&&n!==1073741824&&(t.flags|=128,r=!0,xd(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=qn(),t.sibling=null,n=On.current,mn(On,r?n&1|2:n&1),t):(_r(t),null);case 22:case 23:return PC(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?bo&1073741824&&(_r(t),t.subtreeFlags&6&&(t.flags|=8192)):_r(t),null;case 24:return null;case 25:return null}throw Error(Re(156,t.tag))}function fH(e,t){switch(iC(t),t.tag){case 1:return no(t.type)&&Nm(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yu(),Sn(to),Sn(Lr),hC(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return pC(t),null;case 13:if(Sn(On),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Re(340));gu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Sn(On),null;case 4:return yu(),null;case 10:return cC(t.type._context),null;case 22:case 23:return PC(),null;case 24:return null;default:return null}}var Fh=!1,Mr=!1,pH=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function Yc(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Vn(e,t,r)}else n.current=null}function I1(e,t,n){try{n()}catch(r){Vn(e,t,r)}}var Z_=!1;function hH(e,t){if(d1=Om,e=$R(),rC(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(x){n=null;break e}var s=0,a=-1,c=-1,d=0,p=0,h=e,m=null;t:for(;;){for(var v;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),(v=h.firstChild)!==null;)m=h,h=v;for(;;){if(h===e)break t;if(m===n&&++d===o&&(a=s),m===i&&++p===r&&(c=s),(v=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=v}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(f1={focusedElem:e,selectionRange:n},Om=!1,Ke=t;Ke!==null;)if(t=Ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ke=e;else for(;Ke!==null;){t=Ke;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var g=b.memoizedProps,S=b.memoizedState,C=t.stateNode,E=C.getSnapshotBeforeUpdate(t.elementType===t.type?g:bi(t.type,g),S);C.__reactInternalSnapshotBeforeUpdate=E}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Re(163))}}catch(x){Vn(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,Ke=e;break}Ke=t.return}return b=Z_,Z_=!1,b}function rf(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&&I1(t,n,i)}o=o.next}while(o!==r)}}function Ag(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 $1(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 kT(e){var t=e.alternate;t!==null&&(e.alternate=null,kT(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[qi],delete t[Mf],delete t[m1],delete t[X9],delete t[Q9])),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 _T(e){return e.tag===5||e.tag===3||e.tag===4}function eI(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_T(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 M1(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=Fm));else if(r!==4&&(e=e.child,e!==null))for(M1(e,t,n),e=e.sibling;e!==null;)M1(e,t,n),e=e.sibling}function R1(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(R1(e,t,n),e=e.sibling;e!==null;)R1(e,t,n),e=e.sibling}var yr=null,Ci=!1;function ll(e,t,n){for(n=n.child;n!==null;)IT(e,t,n),n=n.sibling}function IT(e,t,n){if(Qi&&typeof Qi.onCommitFiberUnmount=="function")try{Qi.onCommitFiberUnmount(_g,n)}catch(a){}switch(n.tag){case 5:Mr||Yc(n,t);case 6:var r=yr,o=Ci;yr=null,ll(e,t,n),yr=r,Ci=o,yr!==null&&(Ci?(e=yr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):yr.removeChild(n.stateNode));break;case 18:yr!==null&&(Ci?(e=yr,n=n.stateNode,e.nodeType===8?K0(e.parentNode,n):e.nodeType===1&&K0(e,n),Pf(e)):K0(yr,n.stateNode));break;case 4:r=yr,o=Ci,yr=n.stateNode.containerInfo,Ci=!0,ll(e,t,n),yr=r,Ci=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)&&I1(n,t,s),o=o.next}while(o!==r)}ll(e,t,n);break;case 1:if(!Mr&&(Yc(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Vn(n,t,a)}ll(e,t,n);break;case 21:ll(e,t,n);break;case 22:n.mode&1?(Mr=(r=Mr)||n.memoizedState!==null,ll(e,t,n),Mr=r):ll(e,t,n);break;default:ll(e,t,n)}}function tI(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new pH),t.forEach(function(r){var o=SH.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function gi(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:yr=a.stateNode,Ci=!1;break e;case 3:yr=a.stateNode.containerInfo,Ci=!0;break e;case 4:yr=a.stateNode.containerInfo,Ci=!0;break e}a=a.return}if(yr===null)throw Error(Re(160));IT(i,s,o),yr=null,Ci=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(d){Vn(o,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)$T(t,e),t=t.sibling}function $T(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gi(t,e),zi(e),r&4){try{rf(3,e,e.return),Ag(3,e)}catch(g){Vn(e,e.return,g)}try{rf(5,e,e.return)}catch(g){Vn(e,e.return,g)}}break;case 1:gi(t,e),zi(e),r&512&&n!==null&&Yc(n,n.return);break;case 5:if(gi(t,e),zi(e),r&512&&n!==null&&Yc(n,n.return),e.flags&32){var o=e.stateNode;try{Cf(o,"")}catch(g){Vn(e,e.return,g)}}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&&XM(o,i),t1(a,s);var d=t1(a,i);for(s=0;s<c.length;s+=2){var p=c[s],h=c[s+1];p==="style"?tR(o,h):p==="dangerouslySetInnerHTML"?ZM(o,h):p==="children"?Cf(o,h):Uw(o,p,h,d)}switch(a){case"input":Xb(o,i);break;case"textarea":QM(o,i);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var v=i.value;v!=null?eu(o,!!i.multiple,v,!1):m!==!!i.multiple&&(i.defaultValue!=null?eu(o,!!i.multiple,i.defaultValue,!0):eu(o,!!i.multiple,i.multiple?[]:"",!1))}o[Mf]=i}catch(g){Vn(e,e.return,g)}}break;case 6:if(gi(t,e),zi(e),r&4){if(e.stateNode===null)throw Error(Re(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(g){Vn(e,e.return,g)}}break;case 3:if(gi(t,e),zi(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Pf(t.containerInfo)}catch(g){Vn(e,e.return,g)}break;case 4:gi(t,e),zi(e);break;case 13:gi(t,e),zi(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(SC=qn())),r&4&&tI(e);break;case 22:if(p=n!==null&&n.memoizedState!==null,e.mode&1?(Mr=(d=Mr)||p,gi(t,e),Mr=d):gi(t,e),zi(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!p&&e.mode&1)for(Ke=e,p=e.child;p!==null;){for(h=Ke=p;Ke!==null;){switch(m=Ke,v=m.child,m.tag){case 0:case 11:case 14:case 15:rf(4,m,m.return);break;case 1:Yc(m,m.return);var b=m.stateNode;if(typeof b.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(g){Vn(r,n,g)}}break;case 5:Yc(m,m.return);break;case 22:if(m.memoizedState!==null){rI(h);continue}}v!==null?(v.return=m,Ke=v):rI(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=eR("display",s))}catch(g){Vn(e,e.return,g)}}}else if(h.tag===6){if(p===null)try{h.stateNode.nodeValue=d?"":h.memoizedProps}catch(g){Vn(e,e.return,g)}}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:gi(t,e),zi(e),r&4&&tI(e);break;case 21:break;default:gi(t,e),zi(e)}}function zi(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(_T(n)){var r=n;break e}n=n.return}throw Error(Re(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Cf(o,""),r.flags&=-33);var i=eI(e);R1(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=eI(e);M1(e,a,s);break;default:throw Error(Re(161))}}catch(c){Vn(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function mH(e,t,n){Ke=e,MT(e)}function MT(e,t,n){for(var r=(e.mode&1)!==0;Ke!==null;){var o=Ke,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Fh;if(!s){var a=o.alternate,c=a!==null&&a.memoizedState!==null||Mr;a=Fh;var d=Mr;if(Fh=s,(Mr=c)&&!d)for(Ke=o;Ke!==null;)s=Ke,c=s.child,s.tag===22&&s.memoizedState!==null?oI(o):c!==null?(c.return=s,Ke=c):oI(o);for(;i!==null;)Ke=i,MT(i),i=i.sibling;Ke=o,Fh=a,Mr=d}nI(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,Ke=i):nI(e)}}function nI(e){for(;Ke!==null;){var t=Ke;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Mr||Ag(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:bi(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&B_(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}B_(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&&Pf(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Re(163))}Mr||t.flags&512&&$1(t)}catch(m){Vn(t,t.return,m)}}if(t===e){Ke=null;break}if(n=t.sibling,n!==null){n.return=t.return,Ke=n;break}Ke=t.return}}function rI(e){for(;Ke!==null;){var t=Ke;if(t===e){Ke=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Ke=n;break}Ke=t.return}}function oI(e){for(;Ke!==null;){var t=Ke;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ag(4,t)}catch(c){Vn(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){Vn(t,o,c)}}var i=t.return;try{$1(t)}catch(c){Vn(t,i,c)}break;case 5:var s=t.return;try{$1(t)}catch(c){Vn(t,s,c)}}}catch(c){Vn(t,t.return,c)}if(t===e){Ke=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Ke=a;break}Ke=t.return}}var gH=Math.ceil,Km=qs.ReactCurrentDispatcher,CC=qs.ReactCurrentOwner,ei=qs.ReactCurrentBatchConfig,qt=0,dr=null,Zn=null,wr=0,bo=0,Xc=Jl(0),or=0,Ff=null,Aa=0,Fg=0,xC=0,of=null,Qr=null,SC=0,wu=1/0,Es=null,qm=!1,T1=null,Ll=null,Nh=!1,Sl=null,Ym=0,sf=0,O1=null,fm=-1,pm=0;function Vr(){return qt&6?qn():fm!==-1?fm:fm=qn()}function Al(e){return e.mode&1?qt&2&&wr!==0?wr&-wr:Z9.transition!==null?(pm===0&&(pm=pR()),pm):(e=rn,e!==0||(e=window.event,e=e===void 0?16:wR(e.type)),e):1}function ki(e,t,n,r){if(50<sf)throw sf=0,O1=null,Error(Re(185));op(e,n,r),(!(qt&2)||e!==dr)&&(e===dr&&(!(qt&2)&&(Fg|=n),or===4&&wl(e,wr)),ro(e,r),n===1&&qt===0&&!(t.mode&1)&&(wu=qn()+500,Tg&&Zl()))}function ro(e,t){var n=e.callbackNode;Zj(e,t);var r=Tm(e,e===dr?wr:0);if(r===0)n!==null&&p_(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&p_(n),t===1)e.tag===0?J9(iI.bind(null,e)):BR(iI.bind(null,e)),q9(function(){!(qt&6)&&Zl()}),n=null;else{switch(hR(r)){case 1:n=Yw;break;case 4:n=dR;break;case 16:n=Rm;break;case 536870912:n=fR;break;default:n=Rm}n=DT(n,RT.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function RT(e,t){if(fm=-1,pm=0,qt&6)throw Error(Re(327));var n=e.callbackNode;if(iu()&&e.callbackNode!==n)return null;var r=Tm(e,e===dr?wr:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Xm(e,r);else{t=r;var o=qt;qt|=2;var i=OT();(dr!==e||wr!==t)&&(Es=null,wu=qn()+500,Pa(e,t));do try{bH();break}catch(a){TT(e,a)}while(1);aC(),Km.current=i,qt=o,Zn!==null?t=0:(dr=null,wr=0,t=or)}if(t!==0){if(t===2&&(o=s1(e),o!==0&&(r=o,t=L1(e,o))),t===1)throw n=Ff,Pa(e,0),wl(e,r),ro(e,qn()),n;if(t===6)wl(e,r);else{if(o=e.current.alternate,!(r&30)&&!vH(o)&&(t=Xm(e,r),t===2&&(i=s1(e),i!==0&&(r=i,t=L1(e,i))),t===1))throw n=Ff,Pa(e,0),wl(e,r),ro(e,qn()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(Re(345));case 2:pa(e,Qr,Es);break;case 3:if(wl(e,r),(r&130023424)===r&&(t=SC+500-qn(),10<t)){if(Tm(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Vr(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=h1(pa.bind(null,e,Qr,Es),t);break}pa(e,Qr,Es);break;case 4:if(wl(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-Pi(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=qn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*gH(r/1960))-r,10<r){e.timeoutHandle=h1(pa.bind(null,e,Qr,Es),r);break}pa(e,Qr,Es);break;case 5:pa(e,Qr,Es);break;default:throw Error(Re(329))}}}return ro(e,qn()),e.callbackNode===n?RT.bind(null,e):null}function L1(e,t){var n=of;return e.current.memoizedState.isDehydrated&&(Pa(e,t).flags|=256),e=Xm(e,t),e!==2&&(t=Qr,Qr=n,t!==null&&A1(t)),e}function A1(e){Qr===null?Qr=e:Qr.push.apply(Qr,e)}function vH(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(!Mi(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 wl(e,t){for(t&=~xC,t&=~Fg,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Pi(t),r=1<<n;e[n]=-1,t&=~r}}function iI(e){if(qt&6)throw Error(Re(327));iu();var t=Tm(e,0);if(!(t&1))return ro(e,qn()),null;var n=Xm(e,t);if(e.tag!==0&&n===2){var r=s1(e);r!==0&&(t=r,n=L1(e,r))}if(n===1)throw n=Ff,Pa(e,0),wl(e,t),ro(e,qn()),n;if(n===6)throw Error(Re(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,pa(e,Qr,Es),ro(e,qn()),null}function EC(e,t){var n=qt;qt|=1;try{return e(t)}finally{qt=n,qt===0&&(wu=qn()+500,Tg&&Zl())}}function Fa(e){Sl!==null&&Sl.tag===0&&!(qt&6)&&iu();var t=qt;qt|=1;var n=ei.transition,r=rn;try{if(ei.transition=null,rn=1,e)return e()}finally{rn=r,ei.transition=n,qt=t,!(qt&6)&&Zl()}}function PC(){bo=Xc.current,Sn(Xc)}function Pa(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,K9(n)),Zn!==null)for(n=Zn.return;n!==null;){var r=n;switch(iC(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Nm();break;case 3:yu(),Sn(to),Sn(Lr),hC();break;case 5:pC(r);break;case 4:yu();break;case 13:Sn(On);break;case 19:Sn(On);break;case 10:cC(r.type._context);break;case 22:case 23:PC()}n=n.return}if(dr=e,Zn=e=Fl(e.current,null),wr=bo=t,or=0,Ff=null,xC=Fg=Aa=0,Qr=of=null,ba!==null){for(t=0;t<ba.length;t++)if(n=ba[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}ba=null}return e}function TT(e,t){do{var n=Zn;try{if(aC(),cm.current=Gm,Wm){for(var r=Fn.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Wm=!1}if(La=0,cr=rr=Fn=null,nf=!1,Of=0,CC.current=null,n===null||n.return===null){or=1,Ff=t,Zn=null;break}e:{var i=e,s=n.return,a=n,c=t;if(t=wr,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 v=G_(s);if(v!==null){v.flags&=-257,K_(v,s,a,i,t),v.mode&1&&W_(i,d,t),t=v,c=d;var b=t.updateQueue;if(b===null){var g=new Set;g.add(c),t.updateQueue=g}else b.add(c);break e}else{if(!(t&1)){W_(i,d,t),kC();break e}c=Error(Re(426))}}else if(_n&&a.mode&1){var S=G_(s);if(S!==null){!(S.flags&65536)&&(S.flags|=256),K_(S,s,a,i,t),sC(bu(c,a));break e}}i=c=bu(c,a),or!==4&&(or=2),of===null?of=[i]:of.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var C=mT(i,c,t);D_(i,C);break e;case 1:a=c;var E=i.type,w=i.stateNode;if(!(i.flags&128)&&(typeof E.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Ll===null||!Ll.has(w)))){i.flags|=65536,t&=-t,i.lanes|=t;var x=gT(i,a,t);D_(i,x);break e}}i=i.return}while(i!==null)}AT(n)}catch(k){t=k,Zn===n&&n!==null&&(Zn=n=n.return);continue}break}while(1)}function OT(){var e=Km.current;return Km.current=Gm,e===null?Gm:e}function kC(){(or===0||or===3||or===2)&&(or=4),dr===null||!(Aa&268435455)&&!(Fg&268435455)||wl(dr,wr)}function Xm(e,t){var n=qt;qt|=2;var r=OT();(dr!==e||wr!==t)&&(Es=null,Pa(e,t));do try{yH();break}catch(o){TT(e,o)}while(1);if(aC(),qt=n,Km.current=r,Zn!==null)throw Error(Re(261));return dr=null,wr=0,or}function yH(){for(;Zn!==null;)LT(Zn)}function bH(){for(;Zn!==null&&!Uj();)LT(Zn)}function LT(e){var t=NT(e.alternate,e,bo);e.memoizedProps=e.pendingProps,t===null?AT(e):Zn=t,CC.current=null}function AT(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=fH(n,t),n!==null){n.flags&=32767,Zn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{or=6,Zn=null;return}}else if(n=dH(n,t,bo),n!==null){Zn=n;return}if(t=t.sibling,t!==null){Zn=t;return}Zn=t=e}while(t!==null);or===0&&(or=5)}function pa(e,t,n){var r=rn,o=ei.transition;try{ei.transition=null,rn=1,wH(e,t,n,r)}finally{ei.transition=o,rn=r}return null}function wH(e,t,n,r){do iu();while(Sl!==null);if(qt&6)throw Error(Re(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(Re(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(e9(e,i),e===dr&&(Zn=dr=null,wr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Nh||(Nh=!0,DT(Rm,function(){return iu(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=ei.transition,ei.transition=null;var s=rn;rn=1;var a=qt;qt|=4,CC.current=null,hH(e,n),$T(n,e),z9(f1),Om=!!d1,f1=d1=null,e.current=n,mH(n),Wj(),qt=a,rn=s,ei.transition=i}else e.current=n;if(Nh&&(Nh=!1,Sl=e,Ym=o),i=e.pendingLanes,i===0&&(Ll=null),qj(n.stateNode),ro(e,qn()),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(qm)throw qm=!1,e=T1,T1=null,e;return Ym&1&&e.tag!==0&&iu(),i=e.pendingLanes,i&1?e===O1?sf++:(sf=0,O1=e):sf=0,Zl(),null}function iu(){if(Sl!==null){var e=hR(Ym),t=ei.transition,n=rn;try{if(ei.transition=null,rn=16>e?16:e,Sl===null)var r=!1;else{if(e=Sl,Sl=null,Ym=0,qt&6)throw Error(Re(331));var o=qt;for(qt|=4,Ke=e.current;Ke!==null;){var i=Ke,s=i.child;if(Ke.flags&16){var a=i.deletions;if(a!==null){for(var c=0;c<a.length;c++){var d=a[c];for(Ke=d;Ke!==null;){var p=Ke;switch(p.tag){case 0:case 11:case 15:rf(8,p,i)}var h=p.child;if(h!==null)h.return=p,Ke=h;else for(;Ke!==null;){p=Ke;var m=p.sibling,v=p.return;if(kT(p),p===d){Ke=null;break}if(m!==null){m.return=v,Ke=m;break}Ke=v}}}var b=i.alternate;if(b!==null){var g=b.child;if(g!==null){b.child=null;do{var S=g.sibling;g.sibling=null,g=S}while(g!==null)}}Ke=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,Ke=s;else e:for(;Ke!==null;){if(i=Ke,i.flags&2048)switch(i.tag){case 0:case 11:case 15:rf(9,i,i.return)}var C=i.sibling;if(C!==null){C.return=i.return,Ke=C;break e}Ke=i.return}}var E=e.current;for(Ke=E;Ke!==null;){s=Ke;var w=s.child;if(s.subtreeFlags&2064&&w!==null)w.return=s,Ke=w;else e:for(s=E;Ke!==null;){if(a=Ke,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Ag(9,a)}}catch(k){Vn(a,a.return,k)}if(a===s){Ke=null;break e}var x=a.sibling;if(x!==null){x.return=a.return,Ke=x;break e}Ke=a.return}}if(qt=o,Zl(),Qi&&typeof Qi.onPostCommitFiberRoot=="function")try{Qi.onPostCommitFiberRoot(_g,e)}catch(k){}r=!0}return r}finally{rn=n,ei.transition=t}}return!1}function sI(e,t,n){t=bu(n,t),t=mT(e,t,1),e=Ol(e,t,1),t=Vr(),e!==null&&(op(e,1,t),ro(e,t))}function Vn(e,t,n){if(e.tag===3)sI(e,e,n);else for(;t!==null;){if(t.tag===3){sI(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ll===null||!Ll.has(r))){e=bu(n,e),e=gT(t,e,1),t=Ol(t,e,1),e=Vr(),t!==null&&(op(t,1,e),ro(t,e));break}}t=t.return}}function CH(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Vr(),e.pingedLanes|=e.suspendedLanes&n,dr===e&&(wr&n)===n&&(or===4||or===3&&(wr&130023424)===wr&&500>qn()-SC?Pa(e,0):xC|=n),ro(e,t)}function FT(e,t){t===0&&(e.mode&1?(t=_h,_h<<=1,!(_h&130023424)&&(_h=4194304)):t=1);var n=Vr();e=zs(e,t),e!==null&&(op(e,t,n),ro(e,n))}function xH(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),FT(e,n)}function SH(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(Re(314))}r!==null&&r.delete(t),FT(e,n)}var NT;NT=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||to.current)Zr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Zr=!1,uH(e,t,n);Zr=!!(e.flags&131072)}else Zr=!1,_n&&t.flags&1048576&&zR(t,zm,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;dm(e,t),e=t.pendingProps;var o=mu(t,Lr.current);ou(t,n),o=gC(null,t,r,e,o,n);var i=vC();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,no(r)?(i=!0,Dm(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,dC(t),o.updater=Og,t.stateNode=o,o._reactInternals=t,C1(t,r,e,n),t=E1(null,t,r,!0,i,n)):(t.tag=0,_n&&i&&oC(t),zr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(dm(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=PH(r),e=bi(r,e),o){case 0:t=S1(null,t,r,e,n);break e;case 1:t=X_(null,t,r,e,n);break e;case 11:t=q_(null,t,r,e,n);break e;case 14:t=Y_(null,t,r,bi(r.type,e),n);break e}throw Error(Re(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:bi(r,o),S1(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:bi(r,o),X_(e,t,r,o,n);case 3:e:{if(wT(t),e===null)throw Error(Re(387));r=t.pendingProps,i=t.memoizedState,o=i.element,UR(e,t),Vm(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=bu(Error(Re(423)),t),t=Q_(e,t,r,n,o);break e}else if(r!==o){o=bu(Error(Re(424)),t),t=Q_(e,t,r,n,o);break e}else for(Po=Tl(t.stateNode.containerInfo.firstChild),ko=t,_n=!0,xi=null,n=qR(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(gu(),r===o){t=js(e,t,n);break e}zr(e,t,r,n)}t=t.child}return t;case 5:return YR(t),e===null&&y1(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,p1(r,o)?s=null:i!==null&&p1(r,i)&&(t.flags|=32),bT(e,t),zr(e,t,s,n),t.child;case 6:return e===null&&y1(t),null;case 13:return CT(e,t,n);case 4:return fC(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vu(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:bi(r,o),q_(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,mn(jm,r._currentValue),r._currentValue=s,i!==null)if(Mi(i.value,s)){if(i.children===o.children&&!to.current){t=js(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=Fs(-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),b1(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(Re(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),b1(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,ou(t,n),o=ri(o),r=r(o),t.flags|=1,zr(e,t,r,n),t.child;case 14:return r=t.type,o=bi(r,t.pendingProps),o=bi(r.type,o),Y_(e,t,r,o,n);case 15:return vT(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:bi(r,o),dm(e,t),t.tag=1,no(r)?(e=!0,Dm(t)):e=!1,ou(t,n),GR(t,r,o),C1(t,r,o,n),E1(null,t,r,!0,e,n);case 19:return xT(e,t,n);case 22:return yT(e,t,n)}throw Error(Re(156,t.tag))};function DT(e,t){return uR(e,t)}function EH(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 Jo(e,t,n,r){return new EH(e,t,n,r)}function _C(e){return e=e.prototype,!(!e||!e.isReactComponent)}function PH(e){if(typeof e=="function")return _C(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Gw)return 11;if(e===Kw)return 14}return 2}function Fl(e,t){var n=e.alternate;return n===null?(n=Jo(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 hm(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")_C(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case zc:return ka(n.children,o,i,t);case Ww:s=8,o|=8;break;case Wb:return e=Jo(12,n,t,o|2),e.elementType=Wb,e.lanes=i,e;case Gb:return e=Jo(13,n,t,o),e.elementType=Gb,e.lanes=i,e;case Kb:return e=Jo(19,n,t,o),e.elementType=Kb,e.lanes=i,e;case KM:return Ng(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case WM:s=10;break e;case GM:s=9;break e;case Gw:s=11;break e;case Kw:s=14;break e;case pl:s=16,r=null;break e}throw Error(Re(130,e==null?e:typeof e,""))}return t=Jo(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ka(e,t,n,r){return e=Jo(7,e,r,t),e.lanes=n,e}function Ng(e,t,n,r){return e=Jo(22,e,r,t),e.elementType=KM,e.lanes=n,e.stateNode={isHidden:!1},e}function tb(e,t,n){return e=Jo(6,e,null,t),e.lanes=n,e}function nb(e,t,n){return t=Jo(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function kH(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=F0(0),this.expirationTimes=F0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=F0(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function IC(e,t,n,r,o,i,s,a,c){return e=new kH(e,t,n,a,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Jo(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},dC(i),e}function _H(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Bc,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function BT(e){if(!e)return Vl;e=e._reactInternals;e:{if(Qa(e)!==e||e.tag!==1)throw Error(Re(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(no(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Re(171))}if(e.tag===1){var n=e.type;if(no(n))return DR(e,n,t)}return t}function zT(e,t,n,r,o,i,s,a,c){return e=IC(n,r,!0,e,o,i,s,a,c),e.context=BT(null),n=e.current,r=Vr(),o=Al(n),i=Fs(r,o),i.callback=t!=null?t:null,Ol(n,i,o),e.current.lanes=o,op(e,o,r),ro(e,r),e}function Dg(e,t,n,r){var o=t.current,i=Vr(),s=Al(o);return n=BT(n),t.context===null?t.context=n:t.pendingContext=n,t=Fs(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ol(o,t,s),e!==null&&(ki(e,o,s,i),am(e,o,s)),s}function Qm(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 lI(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function $C(e,t){lI(e,t),(e=e.alternate)&&lI(e,t)}function IH(){return null}var jT=typeof reportError=="function"?reportError:function(e){console.error(e)};function MC(e){this._internalRoot=e}Bg.prototype.render=MC.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Re(409));Dg(e,t,null,null)};Bg.prototype.unmount=MC.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Fa(function(){Dg(null,e,null,null)}),t[Bs]=null}};function Bg(e){this._internalRoot=e}Bg.prototype.unstable_scheduleHydration=function(e){if(e){var t=vR();e={blockedOn:null,target:e,priority:t};for(var n=0;n<bl.length&&t!==0&&t<bl[n].priority;n++);bl.splice(n,0,e),n===0&&bR(e)}};function RC(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function zg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function aI(){}function $H(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var d=Qm(s);i.call(d)}}var s=zT(t,r,e,0,null,!1,!1,"",aI);return e._reactRootContainer=s,e[Bs]=s.current,If(e.nodeType===8?e.parentNode:e),Fa(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var d=Qm(c);a.call(d)}}var c=IC(e,0,!1,null,null,!1,!1,"",aI);return e._reactRootContainer=c,e[Bs]=c.current,If(e.nodeType===8?e.parentNode:e),Fa(function(){Dg(t,c,n,r)}),c}function jg(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=Qm(s);a.call(c)}}Dg(t,s,e,o)}else s=$H(n,t,e,o,r);return Qm(s)}mR=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=jd(t.pendingLanes);n!==0&&(Xw(t,n|1),ro(t,qn()),!(qt&6)&&(wu=qn()+500,Zl()))}break;case 13:Fa(function(){var r=zs(e,1);if(r!==null){var o=Vr();ki(r,e,1,o)}}),$C(e,1)}};Qw=function(e){if(e.tag===13){var t=zs(e,134217728);if(t!==null){var n=Vr();ki(t,e,134217728,n)}$C(e,134217728)}};gR=function(e){if(e.tag===13){var t=Al(e),n=zs(e,t);if(n!==null){var r=Vr();ki(n,e,t,r)}$C(e,t)}};vR=function(){return rn};yR=function(e,t){var n=rn;try{return rn=e,t()}finally{rn=n}};r1=function(e,t,n){switch(t){case"input":if(Xb(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=Rg(r);if(!o)throw Error(Re(90));YM(r),Xb(r,o)}}}break;case"textarea":QM(e,n);break;case"select":t=n.value,t!=null&&eu(e,!!n.multiple,t,!1)}};oR=EC;iR=Fa;var MH={usingClientEntryPoint:!1,Events:[sp,Uc,Rg,nR,rR,EC]},Sd={findFiberByHostInstance:ya,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},RH={bundleType:Sd.bundleType,version:Sd.version,rendererPackageName:Sd.rendererPackageName,rendererConfig:Sd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:qs.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=aR(e),e===null?null:e.stateNode},findFiberByHostInstance:Sd.findFiberByHostInstance||IH,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 Dh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dh.isDisabled&&Dh.supportsFiber)try{_g=Dh.inject(RH),Qi=Dh}catch(e){}}Oo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=MH;Oo.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!RC(t))throw Error(Re(200));return _H(e,t,null,n)};Oo.createRoot=function(e,t){if(!RC(e))throw Error(Re(299));var n=!1,r="",o=jT;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=IC(e,1,!1,null,null,n,!1,r,o),e[Bs]=t.current,If(e.nodeType===8?e.parentNode:e),new MC(t)};Oo.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(Re(188)):(e=Object.keys(e).join(","),Error(Re(268,e)));return e=aR(t),e=e===null?null:e.stateNode,e};Oo.flushSync=function(e){return Fa(e)};Oo.hydrate=function(e,t,n){if(!zg(t))throw Error(Re(200));return jg(null,e,t,!0,n)};Oo.hydrateRoot=function(e,t,n){if(!RC(e))throw Error(Re(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=jT;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=zT(t,null,e,1,n!=null?n:null,o,!1,i,s),e[Bs]=t.current,If(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 Bg(t)};Oo.render=function(e,t,n){if(!zg(t))throw Error(Re(200));return jg(null,e,t,!1,n)};Oo.unmountComponentAtNode=function(e){if(!zg(e))throw Error(Re(40));return e._reactRootContainer?(Fa(function(){jg(null,null,e,!1,function(){e._reactRootContainer=null,e[Bs]=null})}),!0):!1};Oo.unstable_batchedUpdates=EC;Oo.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!zg(n))throw Error(Re(200));if(e==null||e._reactInternals===void 0)throw Error(Re(38));return jg(e,t,n,!1,r)};Oo.version="18.2.0-next-9e3b772b8-20220608";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=Oo})(Ij);const Bh=Nw(jl);var HT,cI=jl;HT=cI.createRoot,cI.hydrateRoot;const TH="modulepreload",OH=function(e){return"/"+e},uI={},LH=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=OH(i),i in uI)return;uI[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":TH,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 OM;if(!((OM=window.crypto)!=null&&OM.subtle)){let t;console.debug("poly subtle");const e={digest(n,r){return lt(this,null,function*(){if(n!=="SHA-512")return alert(n+" required but not supported");const i=(yield LH(()=>import("./sha512-d091720e.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 Nf(){return Nf=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},Nf.apply(this,arguments)}var El;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(El||(El={}));const dI="popstate";function AH(e){e===void 0&&(e={});function t(o,i){let{pathname:s="/",search:a="",hash:c=""}=Ja(o.location.hash.substr(1));return F1("",{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:Jm(i))}function r(o,i){Hg(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return NH(t,n,r,e)}function ir(e,t){if(e===!1||e===null||typeof e=="undefined")throw new Error(t)}function Hg(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function FH(){return Math.random().toString(36).substr(2,8)}function fI(e,t){return{usr:e.state,key:e.key,idx:t}}function F1(e,t,n,r){return n===void 0&&(n=null),Nf({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ja(t):t,{state:n,key:t&&t.key||r||FH()})}function Jm(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 Ja(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 NH(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=El.Pop,c=null,d=p();d==null&&(d=0,s.replaceState(Nf({},s.state,{idx:d}),""));function p(){return(s.state||{idx:null}).idx}function h(){a=El.Pop;let S=p(),C=S==null?null:S-d;d=S,c&&c({action:a,location:g.location,delta:C})}function m(S,C){a=El.Push;let E=F1(g.location,S,C);n&&n(E,S),d=p()+1;let w=fI(E,d),x=g.createHref(E);try{s.pushState(w,"",x)}catch(k){o.location.assign(x)}i&&c&&c({action:a,location:g.location,delta:1})}function v(S,C){a=El.Replace;let E=F1(g.location,S,C);n&&n(E,S),d=p();let w=fI(E,d),x=g.createHref(E);s.replaceState(w,"",x),i&&c&&c({action:a,location:g.location,delta:0})}function b(S){let C=o.location.origin!=="null"?o.location.origin:o.location.href,E=typeof S=="string"?S:Jm(S);return ir(C,"No window.location.(origin|href) available to create URL for href: "+E),new URL(E,C)}let g={get action(){return a},get location(){return e(o,s)},listen(S){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(dI,h),c=S,()=>{o.removeEventListener(dI,h),c=null}},createHref(S){return t(o,S)},createURL:b,encodeLocation(S){let C=b(S);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:m,replace:v,go(S){return s.go(S)}};return g}var pI;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(pI||(pI={}));function DH(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ja(t):t,o=TC(r.pathname||"/",n);if(o==null)return null;let i=VT(e);BH(i);let s=null;for(let a=0;s==null&&a<i.length;++a)s=qH(i[a],QH(o));return s}function VT(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("/")&&(ir(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=Nl([r,c.relativePath]),p=n.concat(c);i.children&&i.children.length>0&&(ir(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),VT(i.children,t,p,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:GH(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 UT(i.path))o(i,s,c)}),t}function UT(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=UT(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 BH(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:KH(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const zH=/^:\w+$/,jH=3,HH=2,VH=1,UH=10,WH=-2,hI=e=>e==="*";function GH(e,t){let n=e.split("/"),r=n.length;return n.some(hI)&&(r+=WH),t&&(r+=HH),n.filter(o=>!hI(o)).reduce((o,i)=>o+(zH.test(i)?jH:i===""?VH:UH),r)}function KH(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 qH(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=YH({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:Nl([o,p.pathname]),pathnameBase:t8(Nl([o,p.pathnameBase])),route:h}),p.pathnameBase!=="/"&&(o=Nl([o,p.pathnameBase]))}return i}function YH(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=XH(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]=JH(a[h]||"",p),d},{}),pathname:i,pathnameBase:s,pattern:e}}function XH(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Hg(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 QH(e){try{return decodeURI(e)}catch(t){return Hg(!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 JH(e,t){try{return decodeURIComponent(e)}catch(n){return Hg(!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 TC(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 ZH(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ja(e):e;return{pathname:n?n.startsWith("/")?n:e8(n,t):t,search:n8(r),hash:r8(o)}}function e8(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 rb(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 WT(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function GT(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ja(e):(o=Nf({},e),ir(!o.pathname||!o.pathname.includes("?"),rb("?","pathname","search",o)),ir(!o.pathname||!o.pathname.includes("#"),rb("#","pathname","hash",o)),ir(!o.search||!o.search.includes("#"),rb("#","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=ZH(o,a),d=s&&s!=="/"&&s.endsWith("/"),p=(i||s===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||p)&&(c.pathname+="/"),c}const Nl=e=>e.join("/").replace(/\/\/+/g,"/"),t8=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),n8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,r8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function o8(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}/**
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 i8(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const s8=typeof Object.is=="function"?Object.is:i8,{useState:l8,useEffect:a8,useLayoutEffect:c8,useDebugValue:u8}=Ra;function d8(e,t,n){const r=t(),[{inst:o},i]=l8({inst:{value:r,getSnapshot:t}});return c8(()=>{o.value=r,o.getSnapshot=t,ob(o)&&i({inst:o})},[e,r,t]),a8(()=>(ob(o)&&i({inst:o}),e(()=>{ob(o)&&i({inst:o})})),[e]),u8(r),r}function ob(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!s8(n,r)}catch(r){return!0}}function f8(e,t,n){return t()}const p8=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",h8=!p8,m8=h8?f8:d8;"useSyncExternalStore"in Ra&&(e=>e.useSyncExternalStore)(Ra);const KT=u.createContext(null),OC=u.createContext(null),Bu=u.createContext(null),Vg=u.createContext(null),zu=u.createContext({outlet:null,matches:[]}),qT=u.createContext(null);function N1(){return N1=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},N1.apply(this,arguments)}function g8(e,t){let{relative:n}=t===void 0?{}:t;ap()||ir(!1);let{basename:r,navigator:o}=u.useContext(Bu),{hash:i,pathname:s,search:a}=LC(e,{relative:n}),c=s;return r!=="/"&&(c=s==="/"?r:Nl([r,s])),o.createHref({pathname:c,search:a,hash:i})}function ap(){return u.useContext(Vg)!=null}function ju(){return ap()||ir(!1),u.useContext(Vg).location}function v8(){ap()||ir(!1);let{basename:e,navigator:t}=u.useContext(Bu),{matches:n}=u.useContext(zu),{pathname:r}=ju(),o=JSON.stringify(WT(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=GT(a,JSON.parse(o),r,c.relative==="path");e!=="/"&&(d.pathname=d.pathname==="/"?e:Nl([e,d.pathname])),(c.replace?t.replace:t.push)(d,c.state,c)},[e,t,o,r])}function LC(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=u.useContext(zu),{pathname:o}=ju(),i=JSON.stringify(WT(r).map(s=>s.pathnameBase));return u.useMemo(()=>GT(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function y8(e,t){ap()||ir(!1);let{navigator:n}=u.useContext(Bu),r=u.useContext(OC),{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=ju(),d;if(t){var p;let g=typeof t=="string"?Ja(t):t;a==="/"||(p=g.pathname)!=null&&p.startsWith(a)||ir(!1),d=g}else d=c;let h=d.pathname||"/",m=a==="/"?h:h.slice(a.length)||"/",v=DH(e,{pathname:m}),b=x8(v&&v.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:Nl([a,n.encodeLocation?n.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?a:Nl([a,n.encodeLocation?n.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,r||void 0);return t&&b?u.createElement(Vg.Provider,{value:{location:N1({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:El.Pop}},b):b}function b8(){let e=k8(),t=o8(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 w8 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(qT.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function C8(e){let{routeContext:t,match:n,children:r}=e,o=u.useContext(KT);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 x8(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||ir(!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(b8,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(C8,{match:s,routeContext:{outlet:i,matches:p},children:m})};return n&&(s.route.ErrorBoundary||s.route.errorElement||a===0)?u.createElement(w8,{location:n.location,component:d,error:c,children:h(),routeContext:{outlet:null,matches:p}}):h()},null)}var mI;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(mI||(mI={}));var Zm;(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"})(Zm||(Zm={}));function S8(e){let t=u.useContext(OC);return t||ir(!1),t}function E8(e){let t=u.useContext(zu);return t||ir(!1),t}function P8(e){let t=E8(),n=t.matches[t.matches.length-1];return n.route.id||ir(!1),n.route.id}function k8(){var e;let t=u.useContext(qT),n=S8(Zm.UseRouteError),r=P8(Zm.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function YT(e){ir(!1)}function _8(e){let{basename:t="/",children:n=null,location:r,navigationType:o=El.Pop,navigator:i,static:s=!1}=e;ap()&&ir(!1);let a=t.replace(/^\/*/,"/"),c=u.useMemo(()=>({basename:a,navigator:i,static:s}),[a,i,s]);typeof r=="string"&&(r=Ja(r));let{pathname:d="/",search:p="",hash:h="",state:m=null,key:v="default"}=r,b=u.useMemo(()=>{let g=TC(d,a);return g==null?null:{location:{pathname:g,search:p,hash:h,state:m,key:v},navigationType:o}},[a,d,p,h,m,v,o]);return b==null?null:u.createElement(Bu.Provider,{value:c},u.createElement(Vg.Provider,{children:n,value:b}))}function I8(e){let{children:t,location:n}=e,r=u.useContext(KT),o=r&&!t?r.router.routes:D1(t);return y8(o,n)}var gI;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(gI||(gI={}));new Promise(()=>{});function D1(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,D1(r.props.children,i));return}r.type!==YT&&ir(!1),!r.props.index||!r.props.children||ir(!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=D1(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 eg(){return eg=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},eg.apply(this,arguments)}function XT(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 $8(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function M8(e,t){return e.button===0&&(!t||t==="_self")&&!$8(e)}const R8=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],T8=["aria-current","caseSensitive","className","end","style","to","children"];function O8(e){let{basename:t,children:n,window:r}=e,o=u.useRef();o.current==null&&(o.current=AH({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(_8,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i})}const L8=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",A8=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,QT=u.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:c,to:d,preventScrollReset:p}=t,h=XT(t,R8),{basename:m}=u.useContext(Bu),v,b=!1;if(typeof d=="string"&&A8.test(d)&&(v=d,L8)){let E=new URL(window.location.href),w=d.startsWith("//")?new URL(E.protocol+d):new URL(d),x=TC(w.pathname,m);w.origin===E.origin&&x!=null?d=x+w.search+w.hash:b=!0}let g=g8(d,{relative:o}),S=N8(d,{replace:s,state:a,target:c,preventScrollReset:p,relative:o});function C(E){r&&r(E),E.defaultPrevented||S(E)}return u.createElement("a",eg({},h,{href:v||g,onClick:b||i?r:C,ref:n,target:c}))}),F8=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=XT(t,T8),h=LC(c,{relative:p.relative}),m=ju(),v=u.useContext(OC),{navigator:b}=u.useContext(Bu),g=b.encodeLocation?b.encodeLocation(h).pathname:h.pathname,S=m.pathname,C=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;o||(S=S.toLowerCase(),C=C?C.toLowerCase():null,g=g.toLowerCase());let E=S===g||!s&&S.startsWith(g)&&S.charAt(g.length)==="/",w=C!=null&&(C===g||!s&&C.startsWith(g)&&C.charAt(g.length)==="/"),x=E?r:void 0,k;typeof i=="function"?k=i({isActive:E,isPending:w}):k=[i,E?"active":null,w?"pending":null].filter(Boolean).join(" ");let I=typeof a=="function"?a({isActive:E,isPending:w}):a;return u.createElement(QT,eg({},p,{"aria-current":x,className:k,ref:n,style:I,to:c}),typeof d=="function"?d({isActive:E,isPending:w}):d)});var vI;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(vI||(vI={}));var yI;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(yI||(yI={}));function N8(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s}=t===void 0?{}:t,a=v8(),c=ju(),d=LC(e,{relative:s});return u.useCallback(p=>{if(M8(p,n)){p.preventDefault();let h=r!==void 0?r:Jm(c)===Jm(d);a(e,{replace:h,state:o,preventScrollReset:i,relative:s})}},[c,a,d,r,o,n,e,i,s])}const D8={black:"#000",white:"#fff"},Df=D8,B8={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"},Sc=B8,z8={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"},Ec=z8,j8={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"},Pc=j8,H8={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"},kc=H8,V8={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"},_c=V8,U8={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"},Ed=U8,W8={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"},G8=W8;function ib(e,t){return()=>null}function P(){return P=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},P.apply(this,arguments)}function va(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function JT(e){if(!va(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=JT(e[n])}),t}function ti(e,t,n={clone:!0}){const r=n.clone?P({},e):e;return va(e)&&va(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(va(t[o])&&o in e&&va(e[o])?r[o]=ti(e[o],t[o],n):n.clone?r[o]=va(t[o])?JT(t[o]):t[o]:r[o]=t[o])}),r}var ue={},K8={get exports(){return ue},set exports(e){ue=e}},q8="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Y8=q8,X8=Y8;function ZT(){}function eO(){}eO.resetWarningCache=ZT;var Q8=function(){function e(r,o,i,s,a,c){if(c!==X8){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:eO,resetWarningCache:ZT};return n.PropTypes=n,n};K8.exports=Q8();function Ul(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 bI={},J8={get exports(){return bI},set exports(e){bI=e}},on={};/**
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 AC=Symbol.for("react.element"),FC=Symbol.for("react.portal"),Ug=Symbol.for("react.fragment"),Wg=Symbol.for("react.strict_mode"),Gg=Symbol.for("react.profiler"),Kg=Symbol.for("react.provider"),qg=Symbol.for("react.context"),Z8=Symbol.for("react.server_context"),Yg=Symbol.for("react.forward_ref"),Xg=Symbol.for("react.suspense"),Qg=Symbol.for("react.suspense_list"),Jg=Symbol.for("react.memo"),Zg=Symbol.for("react.lazy"),eV=Symbol.for("react.offscreen"),tO;tO=Symbol.for("react.module.reference");function ci(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case AC:switch(e=e.type,e){case Ug:case Gg:case Wg:case Xg:case Qg:return e;default:switch(e=e&&e.$$typeof,e){case Z8:case qg:case Yg:case Zg:case Jg:case Kg:return e;default:return t}}case FC:return t}}}on.ContextConsumer=qg;on.ContextProvider=Kg;on.Element=AC;on.ForwardRef=Yg;on.Fragment=Ug;on.Lazy=Zg;on.Memo=Jg;on.Portal=FC;on.Profiler=Gg;on.StrictMode=Wg;on.Suspense=Xg;on.SuspenseList=Qg;on.isAsyncMode=function(){return!1};on.isConcurrentMode=function(){return!1};on.isContextConsumer=function(e){return ci(e)===qg};on.isContextProvider=function(e){return ci(e)===Kg};on.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===AC};on.isForwardRef=function(e){return ci(e)===Yg};on.isFragment=function(e){return ci(e)===Ug};on.isLazy=function(e){return ci(e)===Zg};on.isMemo=function(e){return ci(e)===Jg};on.isPortal=function(e){return ci(e)===FC};on.isProfiler=function(e){return ci(e)===Gg};on.isStrictMode=function(e){return ci(e)===Wg};on.isSuspense=function(e){return ci(e)===Xg};on.isSuspenseList=function(e){return ci(e)===Qg};on.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ug||e===Gg||e===Wg||e===Xg||e===Qg||e===eV||typeof e=="object"&&e!==null&&(e.$$typeof===Zg||e.$$typeof===Jg||e.$$typeof===Kg||e.$$typeof===qg||e.$$typeof===Yg||e.$$typeof===tO||e.getModuleId!==void 0)};on.typeOf=ci;(function(e){e.exports=on})(J8);function ce(e){if(typeof e!="string")throw new Error(Ul(7));return e.charAt(0).toUpperCase()+e.slice(1)}function B1(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Hs(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 tV(e,t){return()=>null}function lf(e,t){return u.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function gn(e){return e&&e.ownerDocument||document}function so(e){return gn(e).defaultView||window}function nV(e,t){return()=>null}function Bf(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const rV=typeof window!="undefined"?u.useLayoutEffect:u.useEffect,fn=rV;let wI=0;function oV(e){const[t,n]=u.useState(e),r=e||t;return u.useEffect(()=>{t==null&&(wI+=1,n(`mui-${wI}`))},[t]),r}const CI=Ra["useId"];function In(e){if(CI!==void 0){const t=CI();return e!=null?e:t}return oV(e)}function iV(e,t,n,r,o){return null}function Zi({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 dn(e){const t=u.useRef(e);return fn(()=>{t.current=e}),u.useCallback((...n)=>(0,t.current)(...n),[])}function Ut(...e){return u.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Bf(n,t)})},e)}let ev=!0,z1=!1,xI;const sV={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 lV(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&sV[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function aV(e){e.metaKey||e.altKey||e.ctrlKey||(ev=!0)}function sb(){ev=!1}function cV(){this.visibilityState==="hidden"&&z1&&(ev=!0)}function uV(e){e.addEventListener("keydown",aV,!0),e.addEventListener("mousedown",sb,!0),e.addEventListener("pointerdown",sb,!0),e.addEventListener("touchstart",sb,!0),e.addEventListener("visibilitychange",cV,!0)}function dV(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return ev||lV(t)}function tv(){const e=u.useCallback(o=>{o!=null&&uV(o.ownerDocument)},[]),t=u.useRef(!1);function n(){return t.current?(z1=!0,window.clearTimeout(xI),xI=window.setTimeout(()=>{z1=!1},100),t.current=!1,!0):!1}function r(o){return dV(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function nO(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Ic;function rO(){if(Ic)return Ic;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),Ic="reverse",e.scrollLeft>0?Ic="default":(e.scrollLeft=1,e.scrollLeft===0&&(Ic="negative")),document.body.removeChild(e),Ic}function SI(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(rO()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const fV=e=>{const t=u.useRef({});return u.useEffect(()=>{t.current=e}),t.current},NC=fV;function DC(e,t){const n=P({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=P({},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]=P({},i),Object.keys(o).forEach(s=>{n[r][s]=DC(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function ke(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 EI=e=>e,pV=()=>{let e=EI;return{configure(t){e=t},generate(t){return e(t)},reset(){e=EI}}},hV=pV(),BC=hV,mV={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Ze(e,t,n="Mui"){const r=mV[t];return r?`${n}-${r}`:`${BC.generate(e)}-${t}`}function qe(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ze(e,o,n)}),r}const Na="$$material";function se(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 oO(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var gV=/^((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)-.*))$/,vV=oO(function(e){return gV.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function yV(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 bV(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 wV=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(bV(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=yV(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}(),Ir="-ms-",tg="-moz-",Qt="-webkit-",iO="comm",zC="rule",jC="decl",CV="@import",sO="@keyframes",xV=Math.abs,nv=String.fromCharCode,SV=Object.assign;function EV(e,t){return br(e,0)^45?(((t<<2^br(e,0))<<2^br(e,1))<<2^br(e,2))<<2^br(e,3):0}function lO(e){return e.trim()}function PV(e,t){return(e=t.exec(e))?e[0]:e}function en(e,t,n){return e.replace(t,n)}function j1(e,t){return e.indexOf(t)}function br(e,t){return e.charCodeAt(t)|0}function zf(e,t,n){return e.slice(t,n)}function Wi(e){return e.length}function HC(e){return e.length}function zh(e,t){return t.push(e),e}function kV(e,t){return e.map(t).join("")}var rv=1,Cu=1,aO=0,lo=0,Jn=0,Hu="";function ov(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:rv,column:Cu,length:s,return:""}}function Pd(e,t){return SV(ov("",null,null,"",null,null,0),e,{length:-e.length},t)}function _V(){return Jn}function IV(){return Jn=lo>0?br(Hu,--lo):0,Cu--,Jn===10&&(Cu=1,rv--),Jn}function _o(){return Jn=lo<aO?br(Hu,lo++):0,Cu++,Jn===10&&(Cu=1,rv++),Jn}function es(){return br(Hu,lo)}function mm(){return lo}function cp(e,t){return zf(Hu,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 cO(e){return rv=Cu=1,aO=Wi(Hu=e),lo=0,[]}function uO(e){return Hu="",e}function gm(e){return lO(cp(lo-1,H1(e===91?e+2:e===40?e+1:e)))}function $V(e){for(;(Jn=es())&&Jn<33;)_o();return jf(e)>2||jf(Jn)>3?"":" "}function MV(e,t){for(;--t&&_o()&&!(Jn<48||Jn>102||Jn>57&&Jn<65||Jn>70&&Jn<97););return cp(e,mm()+(t<6&&es()==32&&_o()==32))}function H1(e){for(;_o();)switch(Jn){case e:return lo;case 34:case 39:e!==34&&e!==39&&H1(Jn);break;case 40:e===41&&H1(e);break;case 92:_o();break}return lo}function RV(e,t){for(;_o()&&e+Jn!==47+10;)if(e+Jn===42+42&&es()===47)break;return"/*"+cp(t,lo-1)+"*"+nv(e===47?e:_o())}function TV(e){for(;!jf(es());)_o();return cp(e,lo)}function OV(e){return uO(vm("",null,null,null,[""],e=cO(e),0,[0],e))}function vm(e,t,n,r,o,i,s,a,c){for(var d=0,p=0,h=s,m=0,v=0,b=0,g=1,S=1,C=1,E=0,w="",x=o,k=i,I=r,_=w;S;)switch(b=E,E=_o()){case 40:if(b!=108&&br(_,h-1)==58){j1(_+=en(gm(E),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:_+=gm(E);break;case 9:case 10:case 13:case 32:_+=$V(b);break;case 92:_+=MV(mm()-1,7);continue;case 47:switch(es()){case 42:case 47:zh(LV(RV(_o(),mm()),t,n),c);break;default:_+="/"}break;case 123*g:a[d++]=Wi(_)*C;case 125*g:case 59:case 0:switch(E){case 0:case 125:S=0;case 59+p:v>0&&Wi(_)-h&&zh(v>32?kI(_+";",r,n,h-1):kI(en(_," ","")+";",r,n,h-2),c);break;case 59:_+=";";default:if(zh(I=PI(_,t,n,d,p,o,a,w,x=[],k=[],h),i),E===123)if(p===0)vm(_,t,I,I,x,i,h,a,k);else switch(m===99&&br(_,3)===110?100:m){case 100:case 109:case 115:vm(e,I,I,r&&zh(PI(e,I,I,0,0,o,a,w,o,x=[],h),k),o,k,h,a,r?x:k);break;default:vm(_,I,I,I,[""],k,0,a,k)}}d=p=v=0,g=C=1,w=_="",h=s;break;case 58:h=1+Wi(_),v=b;default:if(g<1){if(E==123)--g;else if(E==125&&g++==0&&IV()==125)continue}switch(_+=nv(E),E*g){case 38:C=p>0?1:(_+="\f",-1);break;case 44:a[d++]=(Wi(_)-1)*C,C=1;break;case 64:es()===45&&(_+=gm(_o())),m=es(),p=h=Wi(w=_+=TV(mm())),E++;break;case 45:b===45&&Wi(_)==2&&(g=0)}}return i}function PI(e,t,n,r,o,i,s,a,c,d,p){for(var h=o-1,m=o===0?i:[""],v=HC(m),b=0,g=0,S=0;b<r;++b)for(var C=0,E=zf(e,h+1,h=xV(g=s[b])),w=e;C<v;++C)(w=lO(g>0?m[C]+" "+E:en(E,/&\f/g,m[C])))&&(c[S++]=w);return ov(e,t,n,o===0?zC:a,c,d,p)}function LV(e,t,n){return ov(e,t,n,iO,nv(_V()),zf(e,2,-2),0)}function kI(e,t,n,r){return ov(e,t,n,jC,zf(e,0,r),zf(e,r+1,-1),r)}function su(e,t){for(var n="",r=HC(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function AV(e,t,n,r){switch(e.type){case CV:case jC:return e.return=e.return||e.value;case iO:return"";case sO:return e.return=e.value+"{"+su(e.children,r)+"}";case zC:e.value=e.props.join(",")}return Wi(n=su(e.children,r))?e.return=e.value+"{"+n+"}":""}function FV(e){var t=HC(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 NV(e){return function(t){t.root||(t=t.return)&&e(t)}}var DV=function(t,n,r){for(var o=0,i=0;o=i,i=es(),o===38&&i===12&&(n[r]=1),!jf(i);)_o();return cp(t,lo)},BV=function(t,n){var r=-1,o=44;do switch(jf(o)){case 0:o===38&&es()===12&&(n[r]=1),t[r]+=DV(lo-1,n,r);break;case 2:t[r]+=gm(o);break;case 4:if(o===44){t[++r]=es()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=nv(o)}while(o=_o());return t},zV=function(t,n){return uO(BV(cO(t),n))},_I=new WeakMap,jV=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&&!_I.get(r))&&!o){_I.set(t,!0);for(var i=[],s=zV(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]}}},HV=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function dO(e,t){switch(EV(e,t)){case 5103:return Qt+"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 Qt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Qt+e+tg+e+Ir+e+e;case 6828:case 4268:return Qt+e+Ir+e+e;case 6165:return Qt+e+Ir+"flex-"+e+e;case 5187:return Qt+e+en(e,/(\w+).+(:[^]+)/,Qt+"box-$1$2"+Ir+"flex-$1$2")+e;case 5443:return Qt+e+Ir+"flex-item-"+en(e,/flex-|-self/,"")+e;case 4675:return Qt+e+Ir+"flex-line-pack"+en(e,/align-content|flex-|-self/,"")+e;case 5548:return Qt+e+Ir+en(e,"shrink","negative")+e;case 5292:return Qt+e+Ir+en(e,"basis","preferred-size")+e;case 6060:return Qt+"box-"+en(e,"-grow","")+Qt+e+Ir+en(e,"grow","positive")+e;case 4554:return Qt+en(e,/([^-])(transform)/g,"$1"+Qt+"$2")+e;case 6187:return en(en(en(e,/(zoom-|grab)/,Qt+"$1"),/(image-set)/,Qt+"$1"),e,"")+e;case 5495:case 3959:return en(e,/(image-set\([^]*)/,Qt+"$1$`$1");case 4968:return en(en(e,/(.+:)(flex-)?(.*)/,Qt+"box-pack:$3"+Ir+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Qt+e+e;case 4095:case 3583:case 4068:case 2532:return en(e,/(.+)-inline(.+)/,Qt+"$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(Wi(e)-1-t>6)switch(br(e,t+1)){case 109:if(br(e,t+4)!==45)break;case 102:return en(e,/(.+:)(.+)-([^]+)/,"$1"+Qt+"$2-$3$1"+tg+(br(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~j1(e,"stretch")?dO(en(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(br(e,t+1)!==115)break;case 6444:switch(br(e,Wi(e)-3-(~j1(e,"!important")&&10))){case 107:return en(e,":",":"+Qt)+e;case 101:return en(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Qt+(br(e,14)===45?"inline-":"")+"box$3$1"+Qt+"$2$3$1"+Ir+"$2box$3")+e}break;case 5936:switch(br(e,t+11)){case 114:return Qt+e+Ir+en(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Qt+e+Ir+en(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Qt+e+Ir+en(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Qt+e+Ir+e+e}return e}var VV=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case jC:t.return=dO(t.value,t.length);break;case sO:return su([Pd(t,{value:en(t.value,"@","@"+Qt)})],o);case zC:if(t.length)return kV(t.props,function(i){switch(PV(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return su([Pd(t,{props:[en(i,/:(read-\w+)/,":"+tg+"$1")]})],o);case"::placeholder":return su([Pd(t,{props:[en(i,/:(plac\w+)/,":"+Qt+"input-$1")]}),Pd(t,{props:[en(i,/:(plac\w+)/,":"+tg+"$1")]}),Pd(t,{props:[en(i,/:(plac\w+)/,Ir+"input-$1")]})],o)}return""})}},UV=[VV],WV=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var S=g.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||UV,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var S=g.getAttribute("data-emotion").split(" "),C=1;C<S.length;C++)i[S[C]]=!0;a.push(g)});var c,d=[jV,HV];{var p,h=[AV,NV(function(g){p.insert(g)})],m=FV(d.concat(o,h)),v=function(S){return su(OV(S),m)};c=function(S,C,E,w){p=E,v(S?S+"{"+C.styles+"}":C.styles),w&&(b.inserted[C.name]=!0)}}var b={key:n,sheet:new wV({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 b.sheet.hydrate(a),b},V1={},GV={get exports(){return V1},set exports(e){V1=e}},sn={};/** @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,VC=mr?Symbol.for("react.element"):60103,UC=mr?Symbol.for("react.portal"):60106,iv=mr?Symbol.for("react.fragment"):60107,sv=mr?Symbol.for("react.strict_mode"):60108,lv=mr?Symbol.for("react.profiler"):60114,av=mr?Symbol.for("react.provider"):60109,cv=mr?Symbol.for("react.context"):60110,WC=mr?Symbol.for("react.async_mode"):60111,uv=mr?Symbol.for("react.concurrent_mode"):60111,dv=mr?Symbol.for("react.forward_ref"):60112,fv=mr?Symbol.for("react.suspense"):60113,KV=mr?Symbol.for("react.suspense_list"):60120,pv=mr?Symbol.for("react.memo"):60115,hv=mr?Symbol.for("react.lazy"):60116,qV=mr?Symbol.for("react.block"):60121,YV=mr?Symbol.for("react.fundamental"):60117,XV=mr?Symbol.for("react.responder"):60118,QV=mr?Symbol.for("react.scope"):60119;function Ao(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case VC:switch(e=e.type,e){case WC:case uv:case iv:case lv:case sv:case fv:return e;default:switch(e=e&&e.$$typeof,e){case cv:case dv:case hv:case pv:case av:return e;default:return t}}case UC:return t}}}function fO(e){return Ao(e)===uv}sn.AsyncMode=WC;sn.ConcurrentMode=uv;sn.ContextConsumer=cv;sn.ContextProvider=av;sn.Element=VC;sn.ForwardRef=dv;sn.Fragment=iv;sn.Lazy=hv;sn.Memo=pv;sn.Portal=UC;sn.Profiler=lv;sn.StrictMode=sv;sn.Suspense=fv;sn.isAsyncMode=function(e){return fO(e)||Ao(e)===WC};sn.isConcurrentMode=fO;sn.isContextConsumer=function(e){return Ao(e)===cv};sn.isContextProvider=function(e){return Ao(e)===av};sn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===VC};sn.isForwardRef=function(e){return Ao(e)===dv};sn.isFragment=function(e){return Ao(e)===iv};sn.isLazy=function(e){return Ao(e)===hv};sn.isMemo=function(e){return Ao(e)===pv};sn.isPortal=function(e){return Ao(e)===UC};sn.isProfiler=function(e){return Ao(e)===lv};sn.isStrictMode=function(e){return Ao(e)===sv};sn.isSuspense=function(e){return Ao(e)===fv};sn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===iv||e===uv||e===lv||e===sv||e===fv||e===KV||typeof e=="object"&&e!==null&&(e.$$typeof===hv||e.$$typeof===pv||e.$$typeof===av||e.$$typeof===cv||e.$$typeof===dv||e.$$typeof===YV||e.$$typeof===XV||e.$$typeof===QV||e.$$typeof===qV)};sn.typeOf=Ao;(function(e){e.exports=sn})(GV);var pO=V1,JV={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ZV={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},hO={};hO[pO.ForwardRef]=JV;hO[pO.Memo]=ZV;var e7=!0;function t7(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var mO=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||e7===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},gO=function(t,n,r){mO(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 n7(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 r7={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},o7=/[A-Z]|^ms/g,i7=/_EMO_([^_]+?)_([^]*?)_EMO_/g,vO=function(t){return t.charCodeAt(1)===45},II=function(t){return t!=null&&typeof t!="boolean"},lb=oO(function(e){return vO(e)?e:e.replace(o7,"-$&").toLowerCase()}),$I=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(i7,function(r,o,i){return Gi={name:o,styles:i,next:Gi},o})}return r7[t]!==1&&!vO(t)&&typeof n=="number"&&n!==0?n+"px":n};function Hf(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 Gi={name:n.name,styles:n.styles,next:Gi},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Gi={name:r.name,styles:r.styles,next:Gi},r=r.next;var o=n.styles+";";return o}return s7(e,t,n)}case"function":{if(e!==void 0){var i=Gi,s=n(e);return Gi=i,Hf(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function s7(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Hf(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]+"}":II(s)&&(r+=lb(i)+":"+$I(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++)II(s[a])&&(r+=lb(i)+":"+$I(i,s[a])+";");else{var c=Hf(e,t,s);switch(i){case"animation":case"animationName":{r+=lb(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var MI=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Gi,GC=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="";Gi=void 0;var s=t[0];s==null||s.raw===void 0?(o=!1,i+=Hf(r,n,s)):i+=s[0];for(var a=1;a<t.length;a++)i+=Hf(r,n,t[a]),o&&(i+=s[a]);MI.lastIndex=0;for(var c="",d;(d=MI.exec(i))!==null;)c+="-"+d[1];var p=n7(i)+c;return{name:p,styles:i,next:Gi}},l7=function(t){return t()},yO=Ra["useInsertionEffect"]?Ra["useInsertionEffect"]:!1,a7=yO||l7,RI=yO||u.useLayoutEffect,bO=u.createContext(typeof HTMLElement!="undefined"?WV({key:"css"}):null);bO.Provider;var wO=function(t){return u.forwardRef(function(n,r){var o=u.useContext(bO);return t(n,o,r)})},mv=u.createContext({}),c7=wO(function(e,t){var n=e.styles,r=GC([n],void 0,u.useContext(mv)),o=u.useRef();return RI(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]),RI(function(){var i=o.current,s=i[0],a=i[1];if(a){i[1]=!1;return}if(r.next!==void 0&&gO(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 Wl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return GC(t)}var as=function(){var t=Wl.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_"}}},u7=vV,d7=function(t){return t!=="theme"},TI=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?u7:d7},OI=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},f7=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return mO(n,r,o),a7(function(){return gO(n,r,o)}),null},p7=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=OI(t,n,r),c=a||TI(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,v=1;v<m;v++)h.push(p[v],p[0][v])}var b=wO(function(g,S,C){var E=d&&g.as||o,w="",x=[],k=g;if(g.theme==null){k={};for(var I in g)k[I]=g[I];k.theme=u.useContext(mv)}typeof g.className=="string"?w=t7(S.registered,x,g.className):g.className!=null&&(w=g.className+" ");var _=GC(h.concat(x),S.registered,k);w+=S.key+"-"+_.name,s!==void 0&&(w+=" "+s);var M=d&&a===void 0?TI(E):c,O={};for(var R in g)d&&R==="as"||M(R)&&(O[R]=g[R]);return O.className=w,O.ref=C,u.createElement(u.Fragment,null,u.createElement(f7,{cache:S,serialized:_,isStringTag:typeof E=="string"}),u.createElement(E,O))});return b.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",b.defaultProps=t.defaultProps,b.__emotion_real=b,b.__emotion_base=o,b.__emotion_styles=h,b.__emotion_forwardProp=a,Object.defineProperty(b,"toString",{value:function(){return"."+s}}),b.withComponent=function(g,S){return e(g,P({},n,S,{shouldForwardProp:OI(b,S,!0)})).apply(void 0,h)},b}};const h7=p7;var m7=["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"],U1=h7.bind();m7.forEach(function(e){U1[e]=U1(e)});const g7=U1;var ng={},v7={get exports(){return ng},set exports(e){ng=e}},kd={};/**
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 LI;function y7(){if(LI)return kd;LI=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,v=null;d!==void 0&&(m=""+d),c.key!==void 0&&(m=""+c.key),c.ref!==void 0&&(v=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:v,props:h,_owner:o.current}}return kd.Fragment=n,kd.jsx=s,kd.jsxs=s,kd}var AI;function mt(){return AI||(AI=1,function(e){e.exports=y7()}(v7)),ng}var T=mt();function b7(e){return e==null||Object.keys(e).length===0}function w7(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(b7(o)?n:o):t;return T.jsx(c7,{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 CO(e,t){return g7(e,t)}const C7=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},x7=["values","unit","step"],S7=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)=>P({},n,{[r.key]:r.val}),{})};function E7(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=se(e,x7),i=S7(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,v){const b=s.indexOf(v);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(b!==-1&&typeof t[s[b]]=="number"?t[s[b]]:v)-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 v=s.indexOf(m);return v===0?a(s[1]):v===s.length-1?c(s[v]):d(m,s[s.indexOf(m)+1]).replace("@media","@media not all and")}return P({keys:s,values:i,up:a,down:c,between:d,only:p,not:h,unit:n},o)}const P7={borderRadius:4},k7=P7;function af(e,t){return t?ti(e,t,{clone:!1}):e}const KC={xs:0,sm:600,md:900,lg:1200,xl:1536},FI={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${KC[e]}px)`};function ii(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||FI;return t.reduce((s,a,c)=>(s[i.up(i.keys[c])]=n(t[c]),s),{})}if(typeof t=="object"){const i=r.breakpoints||FI;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||KC).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 _7(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function I7(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function $7(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 gv({values:e,breakpoints:t,base:n}){const r=n||$7(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 xu(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 rg(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=xu(e,n)||r,t&&(o=t(o,r,e)),o}function tn(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=xu(c,r)||{};return ii(s,a,h=>{let m=rg(d,o,h);return h===m&&typeof h=="string"&&(m=rg(d,o,`${t}${h==="default"?"":ce(h)}`,h)),n===!1?m:{[n]:m}})};return i.propTypes={},i.filterProps=[t],i}function M7(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const R7={m:"margin",p:"padding"},T7={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},NI={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},O7=M7(e=>{if(e.length>2)if(NI[e])e=NI[e];else return[e];const[t,n]=e.split(""),r=R7[t],o=T7[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),qC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],YC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...qC,...YC];function up(e,t,n,r){var o;const i=(o=xu(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 xO(e){return up(e,"spacing",8)}function dp(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 L7(e,t){return n=>e.reduce((r,o)=>(r[o]=dp(t,n),r),{})}function A7(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=O7(n),i=L7(o,r),s=e[n];return ii(e,s,i)}function SO(e,t){const n=xO(e.theme);return Object.keys(e).map(r=>A7(e,t,r,n)).reduce(af,{})}function jn(e){return SO(e,qC)}jn.propTypes={};jn.filterProps=qC;function Hn(e){return SO(e,YC)}Hn.propTypes={};Hn.filterProps=YC;function F7(e=8){if(e.mui)return e;const t=xO({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 vv(...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]?af(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Yi(e){return typeof e!="number"?e:`${e}px solid`}const N7=tn({prop:"border",themeKey:"borders",transform:Yi}),D7=tn({prop:"borderTop",themeKey:"borders",transform:Yi}),B7=tn({prop:"borderRight",themeKey:"borders",transform:Yi}),z7=tn({prop:"borderBottom",themeKey:"borders",transform:Yi}),j7=tn({prop:"borderLeft",themeKey:"borders",transform:Yi}),H7=tn({prop:"borderColor",themeKey:"palette"}),V7=tn({prop:"borderTopColor",themeKey:"palette"}),U7=tn({prop:"borderRightColor",themeKey:"palette"}),W7=tn({prop:"borderBottomColor",themeKey:"palette"}),G7=tn({prop:"borderLeftColor",themeKey:"palette"}),yv=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=up(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:dp(t,r)});return ii(e,e.borderRadius,n)}return null};yv.propTypes={};yv.filterProps=["borderRadius"];vv(N7,D7,B7,z7,j7,H7,V7,U7,W7,G7,yv);const bv=e=>{if(e.gap!==void 0&&e.gap!==null){const t=up(e.theme,"spacing",8),n=r=>({gap:dp(t,r)});return ii(e,e.gap,n)}return null};bv.propTypes={};bv.filterProps=["gap"];const wv=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=up(e.theme,"spacing",8),n=r=>({columnGap:dp(t,r)});return ii(e,e.columnGap,n)}return null};wv.propTypes={};wv.filterProps=["columnGap"];const Cv=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=up(e.theme,"spacing",8),n=r=>({rowGap:dp(t,r)});return ii(e,e.rowGap,n)}return null};Cv.propTypes={};Cv.filterProps=["rowGap"];const K7=tn({prop:"gridColumn"}),q7=tn({prop:"gridRow"}),Y7=tn({prop:"gridAutoFlow"}),X7=tn({prop:"gridAutoColumns"}),Q7=tn({prop:"gridAutoRows"}),J7=tn({prop:"gridTemplateColumns"}),Z7=tn({prop:"gridTemplateRows"}),eU=tn({prop:"gridTemplateAreas"}),tU=tn({prop:"gridArea"});vv(bv,wv,Cv,K7,q7,Y7,X7,Q7,J7,Z7,eU,tU);function lu(e,t){return t==="grey"?t:e}const nU=tn({prop:"color",themeKey:"palette",transform:lu}),rU=tn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:lu}),oU=tn({prop:"backgroundColor",themeKey:"palette",transform:lu});vv(nU,rU,oU);function So(e){return e<=1&&e!==0?`${e*100}%`:e}const iU=tn({prop:"width",transform:So}),XC=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])||KC[n]||So(n)}};return ii(e,e.maxWidth,t)}return null};XC.filterProps=["maxWidth"];const sU=tn({prop:"minWidth",transform:So}),lU=tn({prop:"height",transform:So}),aU=tn({prop:"maxHeight",transform:So}),cU=tn({prop:"minHeight",transform:So});tn({prop:"size",cssProperty:"width",transform:So});tn({prop:"size",cssProperty:"height",transform:So});const uU=tn({prop:"boxSizing"});vv(iU,XC,sU,lU,aU,cU,uU);const dU={border:{themeKey:"borders",transform:Yi},borderTop:{themeKey:"borders",transform:Yi},borderRight:{themeKey:"borders",transform:Yi},borderBottom:{themeKey:"borders",transform:Yi},borderLeft:{themeKey:"borders",transform:Yi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:yv},color:{themeKey:"palette",transform:lu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:lu},backgroundColor:{themeKey:"palette",transform:lu},p:{style:Hn},pt:{style:Hn},pr:{style:Hn},pb:{style:Hn},pl:{style:Hn},px:{style:Hn},py:{style:Hn},padding:{style:Hn},paddingTop:{style:Hn},paddingRight:{style:Hn},paddingBottom:{style:Hn},paddingLeft:{style:Hn},paddingX:{style:Hn},paddingY:{style:Hn},paddingInline:{style:Hn},paddingInlineStart:{style:Hn},paddingInlineEnd:{style:Hn},paddingBlock:{style:Hn},paddingBlockStart:{style:Hn},paddingBlockEnd:{style:Hn},m:{style:jn},mt:{style:jn},mr:{style:jn},mb:{style:jn},ml:{style:jn},mx:{style:jn},my:{style:jn},margin:{style:jn},marginTop:{style:jn},marginRight:{style:jn},marginBottom:{style:jn},marginLeft:{style:jn},marginX:{style:jn},marginY:{style:jn},marginInline:{style:jn},marginInlineStart:{style:jn},marginInlineEnd:{style:jn},marginBlock:{style:jn},marginBlockStart:{style:jn},marginBlockEnd:{style:jn},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:bv},rowGap:{style:Cv},columnGap:{style:wv},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:So},maxWidth:{style:XC},minWidth:{transform:So},height:{transform:So},maxHeight:{transform:So},minHeight:{transform:So},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},xv=dU;function fU(...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 pU(e,t){return typeof e=="function"?e(t):e}function hU(){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=xu(o,d)||{};return h?h(s):ii(s,r,b=>{let g=rg(m,p,b);return b===g&&typeof b=="string"&&(g=rg(m,p,`${n}${b==="default"?"":ce(b)}`,b)),c===!1?g:{[c]:g}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:xv;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=_7(i.breakpoints),h=Object.keys(p);let m=p;return Object.keys(d).forEach(v=>{const b=pU(d[v],i);if(b!=null)if(typeof b=="object")if(s[v])m=af(m,e(v,b,i,s));else{const g=ii({theme:i},b,S=>({[v]:S}));fU(g,b)?m[v]=t({sx:b,theme:i}):m=af(m,g)}else m=af(m,e(v,b,i,s))}),I7(h,m)}return Array.isArray(o)?o.map(a):a(o)}return t}const EO=hU();EO.filterProps=["sx"];const Sv=EO,mU=["breakpoints","palette","spacing","shape"];function QC(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=se(e,mU),a=E7(n),c=F7(o);let d=ti({breakpoints:a,direction:"ltr",components:{},palette:P({mode:"light"},r),spacing:c,shape:P({},k7,i)},s);return d=t.reduce((p,h)=>ti(p,h),d),d.unstable_sxConfig=P({},xv,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(h){return Sv({sx:h,theme:this})},d}function gU(e){return Object.keys(e).length===0}function Ev(e=null){const t=u.useContext(mv);return!t||gU(t)?e:t}const vU=QC();function Pv(e=vU){return Ev(e)}function yU({styles:e,themeId:t,defaultTheme:n={}}){const r=Pv(n),o=typeof e=="function"?e(t&&r[t]||r):e;return T.jsx(w7,{styles:o})}const bU=["sx"],wU=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:xv;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function JC(e){const{sx:t}=e,n=se(e,bU),{systemProps:r,otherProps:o}=wU(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return va(a)?P({},r,a):r}:i=P({},r,t),P({},o,{sx:i})}function PO(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=PO(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function pe(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=PO(e))&&(r&&(r+=" "),r+=t);return r}const CU=["className","component"];function xU(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=CO("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(Sv);return u.forwardRef(function(c,d){const p=Pv(n),h=JC(c),{className:m,component:v="div"}=h,b=se(h,CU);return T.jsx(i,P({as:v,ref:d,className:pe(m,o?o(r):r),theme:t&&p[t]||p},b))})}const SU=["variant"];function DI(e){return e.length===0}function kO(e){const{variant:t}=e,n=se(e,SU);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=DI(r)?e[o]:ce(e[o]):r+=`${DI(r)?o:ce(o)}${ce(e[o].toString())}`}),r}const EU=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function PU(e){return Object.keys(e).length===0}function kU(e){return typeof e=="string"&&e.charCodeAt(0)>96}const _U=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,IU=(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=kO(o.props);r[i]=o.style}),r},$U=(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[kO(d.props)])}),a};function cf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const MU=QC();function _d({defaultTheme:e,theme:t,themeId:n}){return PU(t)?e:t[n]||t}function RU(e={}){const{themeId:t,defaultTheme:n=MU,rootShouldForwardProp:r=cf,slotShouldForwardProp:o=cf}=e,i=s=>Sv(P({},s,{theme:_d(P({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{C7(s,x=>x.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:c,slot:d,skipVariantsResolver:p,skipSx:h,overridesResolver:m}=a,v=se(a,EU),b=p!==void 0?p:d&&d!=="Root"||!1,g=h||!1;let S,C=cf;d==="Root"?C=r:d?C=o:kU(s)&&(C=void 0);const E=CO(s,P({shouldForwardProp:C,label:S},v)),w=(x,...k)=>{const I=k?k.map(R=>typeof R=="function"&&R.__emotion_real!==R?L=>R(P({},L,{theme:_d(P({},L,{defaultTheme:n,themeId:t}))})):R):[];let _=x;c&&m&&I.push(R=>{const L=_d(P({},R,{defaultTheme:n,themeId:t})),H=_U(c,L);if(H){const j={};return Object.entries(H).forEach(([A,F])=>{j[A]=typeof F=="function"?F(P({},R,{theme:L})):F}),m(R,j)}return null}),c&&!b&&I.push(R=>{const L=_d(P({},R,{defaultTheme:n,themeId:t}));return $U(R,IU(c,L),L,c)}),g||I.push(i);const M=I.length-k.length;if(Array.isArray(x)&&M>0){const R=new Array(M).fill("");_=[...x,...R],_.raw=[...x.raw,...R]}else typeof x=="function"&&x.__emotion_real!==x&&(_=R=>x(P({},R,{theme:_d(P({},R,{defaultTheme:n,themeId:t}))})));const O=E(_,...I);return s.muiName&&(O.muiName=s.muiName),O};return E.withConfig&&(w.withConfig=E.withConfig),w}}function _O(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:DC(t.components[n].defaultProps,r)}function TU({props:e,name:t,defaultTheme:n,themeId:r}){let o=Pv(n);return r&&(o=o[r]||o),_O({theme:o,name:t,props:e})}function ZC(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function OU(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 Da(e){if(e.type)return e;if(e.charAt(0)==="#")return Da(OU(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Ul(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(Ul(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function kv(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 LU(e){e=Da(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])),kv({type:a,values:c})}function BI(e){e=Da(e);let t=e.type==="hsl"||e.type==="hsla"?Da(LU(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:xs((n+.055)/1.055,2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function AU(e,t){const n=BI(e),r=BI(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function at(e,t){return e=Da(e),t=ZC(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,kv(e)}function Vs(e,t){if(e=Da(e),t=ZC(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 kv(e)}function Us(e,t){if(e=Da(e),t=ZC(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 kv(e)}const FU=u.createContext(null),IO=FU;function $O(){return u.useContext(IO)}const NU=typeof Symbol=="function"&&Symbol.for,DU=NU?Symbol.for("mui.nested"):"__THEME_NESTED__";function BU(e,t){return typeof t=="function"?t(e):P({},e,t)}function zU(e){const{children:t,theme:n}=e,r=$O(),o=u.useMemo(()=>{const i=r===null?n:BU(r,n);return i!=null&&(i[DU]=r!==null),i},[n,r]);return T.jsx(IO.Provider,{value:o,children:t})}const zI={};function jI(e,t,n,r=!1){return u.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),s=e?P({},t,{[e]:i}):i;return r?()=>s:s}return e?P({},t,{[e]:n}):P({},t,n)},[e,t,n,r])}function jU(e){const{children:t,theme:n,themeId:r}=e,o=Ev(zI),i=$O()||zI,s=jI(r,o,n),a=jI(r,i,n,!0);return T.jsx(zU,{theme:a,children:T.jsx(mv.Provider,{value:s,children:t})})}function HU(e,t){return P({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const VU=["mode","contrastThreshold","tonalOffset"],HI={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:Df.white,default:Df.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}},ab={text:{primary:Df.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:Df.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 VI(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=Us(e.main,o):t==="dark"&&(e.dark=Vs(e.main,i)))}function UU(e="light"){return e==="dark"?{main:Pc[200],light:Pc[50],dark:Pc[400]}:{main:Pc[700],light:Pc[400],dark:Pc[800]}}function WU(e="light"){return e==="dark"?{main:Ec[200],light:Ec[50],dark:Ec[400]}:{main:Ec[500],light:Ec[300],dark:Ec[700]}}function GU(e="light"){return e==="dark"?{main:Sc[500],light:Sc[300],dark:Sc[700]}:{main:Sc[700],light:Sc[400],dark:Sc[800]}}function KU(e="light"){return e==="dark"?{main:kc[400],light:kc[300],dark:kc[700]}:{main:kc[700],light:kc[500],dark:kc[900]}}function qU(e="light"){return e==="dark"?{main:_c[400],light:_c[300],dark:_c[700]}:{main:_c[800],light:_c[500],dark:_c[900]}}function YU(e="light"){return e==="dark"?{main:Ed[400],light:Ed[300],dark:Ed[700]}:{main:"#ed6c02",light:Ed[500],dark:Ed[900]}}function XU(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=se(e,VU),i=e.primary||UU(t),s=e.secondary||WU(t),a=e.error||GU(t),c=e.info||KU(t),d=e.success||qU(t),p=e.warning||YU(t);function h(g){return AU(g,ab.text.primary)>=n?ab.text.primary:HI.text.primary}const m=({color:g,name:S,mainShade:C=500,lightShade:E=300,darkShade:w=700})=>{if(g=P({},g),!g.main&&g[C]&&(g.main=g[C]),!g.hasOwnProperty("main"))throw new Error(Ul(11,S?` (${S})`:"",C));if(typeof g.main!="string")throw new Error(Ul(12,S?` (${S})`:"",JSON.stringify(g.main)));return VI(g,"light",E,r),VI(g,"dark",w,r),g.contrastText||(g.contrastText=h(g.main)),g},v={dark:ab,light:HI};return ti(P({common:P({},Df),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:G8,contrastThreshold:n,getContrastText:h,augmentColor:m,tonalOffset:r},v[t]),o)}const QU=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function JU(e){return Math.round(e*1e5)/1e5}const UI={textTransform:"uppercase"},WI='"Roboto", "Helvetica", "Arial", sans-serif';function ZU(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=WI,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:p,pxToRem:h}=n,m=se(n,QU),v=o/14,b=h||(C=>`${C/d*v}rem`),g=(C,E,w,x,k)=>P({fontFamily:r,fontWeight:C,fontSize:b(E),lineHeight:w},r===WI?{letterSpacing:`${JU(x/E)}em`}:{},k,p),S={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(a,14,1.75,.4,UI),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,UI),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ti(P({htmlFontSize:d,pxToRem:b,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:c},S),m,{clone:!1})}const eW=.2,tW=.14,nW=.12;function kn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${eW})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${tW})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${nW})`].join(",")}const rW=["none",kn(0,2,1,-1,0,1,1,0,0,1,3,0),kn(0,3,1,-2,0,2,2,0,0,1,5,0),kn(0,3,3,-2,0,3,4,0,0,1,8,0),kn(0,2,4,-1,0,4,5,0,0,1,10,0),kn(0,3,5,-1,0,5,8,0,0,1,14,0),kn(0,3,5,-1,0,6,10,0,0,1,18,0),kn(0,4,5,-2,0,7,10,1,0,2,16,1),kn(0,5,5,-3,0,8,10,1,0,3,14,2),kn(0,5,6,-3,0,9,12,1,0,3,16,2),kn(0,6,6,-3,0,10,14,1,0,4,18,3),kn(0,6,7,-4,0,11,15,1,0,4,20,3),kn(0,7,8,-4,0,12,17,2,0,5,22,4),kn(0,7,8,-4,0,13,19,2,0,5,24,4),kn(0,7,9,-4,0,14,21,2,0,5,26,4),kn(0,8,9,-5,0,15,22,2,0,6,28,5),kn(0,8,10,-5,0,16,24,2,0,6,30,5),kn(0,8,11,-5,0,17,26,2,0,6,32,5),kn(0,9,11,-5,0,18,28,2,0,7,34,6),kn(0,9,12,-6,0,19,29,2,0,7,36,6),kn(0,10,13,-6,0,20,31,3,0,8,38,7),kn(0,10,13,-6,0,21,33,3,0,8,40,7),kn(0,10,14,-6,0,22,35,3,0,8,42,7),kn(0,11,14,-7,0,23,36,3,0,9,44,8),kn(0,11,15,-7,0,24,38,3,0,9,46,8)],oW=rW,iW=["duration","easing","delay"],sW={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)"},MO={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function GI(e){return`${Math.round(e)}ms`}function lW(e){if(!e)return 0;const t=e/36;return Math.round((4+15*xs(t,.25)+t/5)*10)}function aW(e){const t=P({},sW,e.easing),n=P({},MO,e.duration);return P({getAutoHeightDuration:lW,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:c=0}=i;return se(i,iW),(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof s=="string"?s:GI(s)} ${a} ${typeof c=="string"?c:GI(c)}`).join(",")}},e,{easing:t,duration:n})}const cW={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},uW=cW,dW=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ex(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=se(e,dW);if(e.vars)throw new Error(Ul(18));const a=XU(r),c=QC(e);let d=ti(c,{mixins:HU(c.breakpoints,n),palette:a,shadows:oW.slice(),typography:ZU(a,i),transitions:aW(o),zIndex:P({},uW)});return d=ti(d,s),d=t.reduce((p,h)=>ti(p,h),d),d.unstable_sxConfig=P({},xv,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(h){return Sv({sx:h,theme:this})},d}function fW(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function pW(e){return parseFloat(e)}const hW=ex(),_v=hW;function ao(){const e=Pv(_v);return e[Na]||e}function tt({props:e,name:t}){return TU({props:e,name:t,defaultTheme:_v,themeId:Na})}const Fo=e=>cf(e)&&e!=="classes",mW=cf,gW=RU({themeId:Na,defaultTheme:_v,rootShouldForwardProp:Fo}),oe=gW,vW=["theme"];function yW(e){let{theme:t}=e,n=se(e,vW);const r=t[Na];return T.jsx(jU,P({},n,{themeId:r?Na:void 0,theme:r||t}))}const bW=e=>{let t;return e<1?t=5.11916*xs(e,2):t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},KI=bW;function Ba(e){return typeof e=="string"}function Vd(e,t,n){return e===void 0||Ba(e)?t:P({},t,{ownerState:P({},t.ownerState,n)})}const wW={disableDefaultClasses:!1},CW=u.createContext(wW);function RO(e){const{disableDefaultClasses:t}=u.useContext(CW);return n=>t?"":e(n)}function xW(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 W1(e,t){return typeof e=="function"?e(t):e}function qI(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 SW(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const v=pe(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),b=P({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),g=P({},n,o,r);return v.length>0&&(g.className=v),Object.keys(b).length>0&&(g.style=b),{props:g,internalRef:void 0}}const s=xW(P({},o,r)),a=qI(r),c=qI(o),d=t(s),p=pe(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=P({},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=P({},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 EW=["elementType","externalSlotProps","ownerState"];function Ws(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=se(e,EW),s=W1(r,o),{props:a,internalRef:c}=SW(P({},i,{externalSlotProps:s})),d=Ut(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Vd(n,P({},a,{ref:d}),o)}function PW(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=NC({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 YI(e){return e.substring(2).toLowerCase()}function kW(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function TO(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=Ut(t.ref,a),h=dn(b=>{const g=d.current;d.current=!1;const S=gn(a.current);if(!c.current||!a.current||"clientX"in b&&kW(b,S))return;if(s.current){s.current=!1;return}let C;b.composedPath?C=b.composedPath().indexOf(a.current)>-1:C=!S.documentElement.contains(b.target)||a.current.contains(b.target),!C&&(n||!g)&&o(b)}),m=b=>g=>{d.current=!0;const S=t.props[b];S&&S(g)},v={ref:p};return i!==!1&&(v[i]=m(i)),u.useEffect(()=>{if(i!==!1){const b=YI(i),g=gn(a.current),S=()=>{s.current=!0};return g.addEventListener(b,h),g.addEventListener("touchmove",S),()=>{g.removeEventListener(b,h),g.removeEventListener("touchmove",S)}}},[h,i]),r!==!1&&(v[r]=m(r)),u.useEffect(()=>{if(r!==!1){const b=YI(r),g=gn(a.current);return g.addEventListener(b,h),()=>{g.removeEventListener(b,h)}}},[h,r]),T.jsx(u.Fragment,{children:u.cloneElement(t,v)})}const _W=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function IW(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 $W(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 MW(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||$W(e))}function RW(e){const t=[],n=[];return Array.from(e.querySelectorAll(_W)).forEach((r,o)=>{const i=IW(r);i===-1||!MW(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 TW(){return!0}function OO(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=RW,isEnabled:s=TW,open:a}=e,c=u.useRef(!1),d=u.useRef(null),p=u.useRef(null),h=u.useRef(null),m=u.useRef(null),v=u.useRef(!1),b=u.useRef(null),g=Ut(t.ref,b),S=u.useRef(null);u.useEffect(()=>{!a||!b.current||(v.current=!n)},[n,a]),u.useEffect(()=>{if(!a||!b.current)return;const w=gn(b.current);return b.current.contains(w.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),v.current&&b.current.focus()),()=>{o||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[a]),u.useEffect(()=>{if(!a||!b.current)return;const w=gn(b.current),x=_=>{const{current:M}=b;if(M!==null){if(!w.hasFocus()||r||!s()||c.current){c.current=!1;return}if(!M.contains(w.activeElement)){if(_&&m.current!==_.target||w.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!v.current)return;let L=[];if((w.activeElement===d.current||w.activeElement===p.current)&&(L=i(b.current)),L.length>0){var O,R;const H=!!((O=S.current)!=null&&O.shiftKey&&((R=S.current)==null?void 0:R.key)==="Tab"),j=L[0],A=L[L.length-1];typeof j!="string"&&typeof A!="string"&&(H?A.focus():j.focus())}else M.focus()}}},k=_=>{S.current=_,!(r||!s()||_.key!=="Tab")&&w.activeElement===b.current&&_.shiftKey&&(c.current=!0,p.current&&p.current.focus())};w.addEventListener("focusin",x),w.addEventListener("keydown",k,!0);const I=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&x(null)},50);return()=>{clearInterval(I),w.removeEventListener("focusin",x),w.removeEventListener("keydown",k,!0)}},[n,r,o,s,a,i]);const C=w=>{h.current===null&&(h.current=w.relatedTarget),v.current=!0,m.current=w.target;const x=t.props.onFocus;x&&x(w)},E=w=>{h.current===null&&(h.current=w.relatedTarget),v.current=!0};return T.jsxs(u.Fragment,{children:[T.jsx("div",{tabIndex:a?0:-1,onFocus:E,ref:d,"data-testid":"sentinelStart"}),u.cloneElement(t,{ref:g,onFocus:C}),T.jsx("div",{tabIndex:a?0:-1,onFocus:E,ref:p,"data-testid":"sentinelEnd"})]})}var oo="top",si="bottom",li="right",io="left",tx="auto",fp=[oo,si,li,io],Su="start",Vf="end",OW="clippingParents",LO="viewport",Id="popper",LW="reference",XI=fp.reduce(function(e,t){return e.concat([t+"-"+Su,t+"-"+Vf])},[]),AO=[].concat(fp,[tx]).reduce(function(e,t){return e.concat([t,t+"-"+Su,t+"-"+Vf])},[]),AW="beforeRead",FW="read",NW="afterRead",DW="beforeMain",BW="main",zW="afterMain",jW="beforeWrite",HW="write",VW="afterWrite",UW=[AW,FW,NW,DW,BW,zW,jW,HW,VW];function is(e){return e?(e.nodeName||"").toLowerCase():null}function Mo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function za(e){var t=Mo(e).Element;return e instanceof t||e instanceof Element}function ni(e){var t=Mo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function nx(e){if(typeof ShadowRoot=="undefined")return!1;var t=Mo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function WW(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];!ni(i)||!is(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 GW(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},{});!ni(o)||!is(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const KW={name:"applyStyles",enabled:!0,phase:"write",fn:WW,effect:GW,requires:["computeStyles"]};function ts(e){return e.split("-")[0]}var _a=Math.max,og=Math.min,Eu=Math.round;function G1(){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 FO(){return!/^((?!chrome|android).)*safari/i.test(G1())}function Pu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&ni(e)&&(o=e.offsetWidth>0&&Eu(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Eu(r.height)/e.offsetHeight||1);var s=za(e)?Mo(e):window,a=s.visualViewport,c=!FO()&&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 rx(e){var t=Pu(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 NO(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&nx(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Gs(e){return Mo(e).getComputedStyle(e)}function qW(e){return["table","td","th"].indexOf(is(e))>=0}function ea(e){return((za(e)?e.ownerDocument:e.document)||window.document).documentElement}function Iv(e){return is(e)==="html"?e:e.assignedSlot||e.parentNode||(nx(e)?e.host:null)||ea(e)}function QI(e){return!ni(e)||Gs(e).position==="fixed"?null:e.offsetParent}function YW(e){var t=/firefox/i.test(G1()),n=/Trident/i.test(G1());if(n&&ni(e)){var r=Gs(e);if(r.position==="fixed")return null}var o=Iv(e);for(nx(o)&&(o=o.host);ni(o)&&["html","body"].indexOf(is(o))<0;){var i=Gs(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 pp(e){for(var t=Mo(e),n=QI(e);n&&qW(n)&&Gs(n).position==="static";)n=QI(n);return n&&(is(n)==="html"||is(n)==="body"&&Gs(n).position==="static")?t:n||YW(e)||t}function ox(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function uf(e,t,n){return _a(e,og(t,n))}function XW(e,t,n){var r=uf(e,t,n);return r>n?n:r}function DO(){return{top:0,right:0,bottom:0,left:0}}function BO(e){return Object.assign({},DO(),e)}function zO(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var QW=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,BO(typeof t!="number"?t:zO(t,fp))};function JW(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=ts(n.placement),c=ox(a),d=[io,li].indexOf(a)>=0,p=d?"height":"width";if(!(!i||!s)){var h=QW(o.padding,n),m=rx(i),v=c==="y"?oo:io,b=c==="y"?si:li,g=n.rects.reference[p]+n.rects.reference[c]-s[c]-n.rects.popper[p],S=s[c]-n.rects.reference[c],C=pp(i),E=C?c==="y"?C.clientHeight||0:C.clientWidth||0:0,w=g/2-S/2,x=h[v],k=E-m[p]-h[b],I=E/2-m[p]/2+w,_=uf(x,I,k),M=c;n.modifiersData[r]=(t={},t[M]=_,t.centerOffset=_-I,t)}}function ZW(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)||NO(t.elements.popper,o)&&(t.elements.arrow=o))}const eG={name:"arrow",enabled:!0,phase:"main",fn:JW,effect:ZW,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ku(e){return e.split("-")[1]}var tG={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nG(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Eu(n*o)/o||0,y:Eu(r*o)/o||0}}function JI(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,v=m===void 0?0:m,b=s.y,g=b===void 0?0:b,S=typeof p=="function"?p({x:v,y:g}):{x:v,y:g};v=S.x,g=S.y;var C=s.hasOwnProperty("x"),E=s.hasOwnProperty("y"),w=io,x=oo,k=window;if(d){var I=pp(n),_="clientHeight",M="clientWidth";if(I===Mo(n)&&(I=ea(n),Gs(I).position!=="static"&&a==="absolute"&&(_="scrollHeight",M="scrollWidth")),I=I,o===oo||(o===io||o===li)&&i===Vf){x=si;var O=h&&I===k&&k.visualViewport?k.visualViewport.height:I[_];g-=O-r.height,g*=c?1:-1}if(o===io||(o===oo||o===si)&&i===Vf){w=li;var R=h&&I===k&&k.visualViewport?k.visualViewport.width:I[M];v-=R-r.width,v*=c?1:-1}}var L=Object.assign({position:a},d&&tG),H=p===!0?nG({x:v,y:g},Mo(n)):{x:v,y:g};if(v=H.x,g=H.y,c){var j;return Object.assign({},L,(j={},j[x]=E?"0":"",j[w]=C?"0":"",j.transform=(k.devicePixelRatio||1)<=1?"translate("+v+"px, "+g+"px)":"translate3d("+v+"px, "+g+"px, 0)",j))}return Object.assign({},L,(t={},t[x]=E?g+"px":"",t[w]=C?v+"px":"",t.transform="",t))}function rG(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:ts(t.placement),variation:ku(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,JI(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,JI(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 oG={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:rG,data:{}};var jh={passive:!0};function iG(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=Mo(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(p){p.addEventListener("scroll",n.update,jh)}),a&&c.addEventListener("resize",n.update,jh),function(){i&&d.forEach(function(p){p.removeEventListener("scroll",n.update,jh)}),a&&c.removeEventListener("resize",n.update,jh)}}const sG={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:iG,data:{}};var lG={left:"right",right:"left",bottom:"top",top:"bottom"};function ym(e){return e.replace(/left|right|bottom|top/g,function(t){return lG[t]})}var aG={start:"end",end:"start"};function ZI(e){return e.replace(/start|end/g,function(t){return aG[t]})}function ix(e){var t=Mo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function sx(e){return Pu(ea(e)).left+ix(e).scrollLeft}function cG(e,t){var n=Mo(e),r=ea(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;var d=FO();(d||!d&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a+sx(e),y:c}}function uG(e){var t,n=ea(e),r=ix(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=_a(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=_a(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+sx(e),c=-r.scrollTop;return Gs(o||n).direction==="rtl"&&(a+=_a(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:c}}function lx(e){var t=Gs(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function jO(e){return["html","body","#document"].indexOf(is(e))>=0?e.ownerDocument.body:ni(e)&&lx(e)?e:jO(Iv(e))}function df(e,t){var n;t===void 0&&(t=[]);var r=jO(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Mo(r),s=o?[i].concat(i.visualViewport||[],lx(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(df(Iv(s)))}function K1(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dG(e,t){var n=Pu(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 e2(e,t,n){return t===LO?K1(cG(e,n)):za(t)?dG(t,n):K1(uG(ea(e)))}function fG(e){var t=df(Iv(e)),n=["absolute","fixed"].indexOf(Gs(e).position)>=0,r=n&&ni(e)?pp(e):e;return za(r)?t.filter(function(o){return za(o)&&NO(o,r)&&is(o)!=="body"}):[]}function pG(e,t,n,r){var o=t==="clippingParents"?fG(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(c,d){var p=e2(e,d,r);return c.top=_a(p.top,c.top),c.right=og(p.right,c.right),c.bottom=og(p.bottom,c.bottom),c.left=_a(p.left,c.left),c},e2(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 HO(e){var t=e.reference,n=e.element,r=e.placement,o=r?ts(r):null,i=r?ku(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case oo:c={x:s,y:t.y-n.height};break;case si:c={x:s,y:t.y+t.height};break;case li:c={x:t.x+t.width,y:a};break;case io:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var d=o?ox(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(i){case Su:c[d]=c[d]-(t[p]/2-n[p]/2);break;case Vf:c[d]=c[d]+(t[p]/2-n[p]/2);break}}return c}function Uf(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?OW:a,d=n.rootBoundary,p=d===void 0?LO:d,h=n.elementContext,m=h===void 0?Id:h,v=n.altBoundary,b=v===void 0?!1:v,g=n.padding,S=g===void 0?0:g,C=BO(typeof S!="number"?S:zO(S,fp)),E=m===Id?LW:Id,w=e.rects.popper,x=e.elements[b?E:m],k=pG(za(x)?x:x.contextElement||ea(e.elements.popper),c,p,s),I=Pu(e.elements.reference),_=HO({reference:I,element:w,strategy:"absolute",placement:o}),M=K1(Object.assign({},w,_)),O=m===Id?M:I,R={top:k.top-O.top+C.top,bottom:O.bottom-k.bottom+C.bottom,left:k.left-O.left+C.left,right:O.right-k.right+C.right},L=e.modifiersData.offset;if(m===Id&&L){var H=L[o];Object.keys(R).forEach(function(j){var A=[li,si].indexOf(j)>=0?1:-1,F=[oo,si].indexOf(j)>=0?"y":"x";R[j]+=H[F]*A})}return R}function hG(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?AO:c,p=ku(r),h=p?a?XI:XI.filter(function(b){return ku(b)===p}):fp,m=h.filter(function(b){return d.indexOf(b)>=0});m.length===0&&(m=h);var v=m.reduce(function(b,g){return b[g]=Uf(e,{placement:g,boundary:o,rootBoundary:i,padding:s})[ts(g)],b},{});return Object.keys(v).sort(function(b,g){return v[b]-v[g]})}function mG(e){if(ts(e)===tx)return[];var t=ym(e);return[ZI(e),t,ZI(t)]}function gG(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,v=n.flipVariations,b=v===void 0?!0:v,g=n.allowedAutoPlacements,S=t.options.placement,C=ts(S),E=C===S,w=c||(E||!b?[ym(S)]:mG(S)),x=[S].concat(w).reduce(function(J,fe){return J.concat(ts(fe)===tx?hG(t,{placement:fe,boundary:p,rootBoundary:h,padding:d,flipVariations:b,allowedAutoPlacements:g}):fe)},[]),k=t.rects.reference,I=t.rects.popper,_=new Map,M=!0,O=x[0],R=0;R<x.length;R++){var L=x[R],H=ts(L),j=ku(L)===Su,A=[oo,si].indexOf(H)>=0,F=A?"width":"height",z=Uf(t,{placement:L,boundary:p,rootBoundary:h,altBoundary:m,padding:d}),G=A?j?li:io:j?si:oo;k[F]>I[F]&&(G=ym(G));var N=ym(G),B=[];if(i&&B.push(z[H]<=0),a&&B.push(z[G]<=0,z[N]<=0),B.every(function(J){return J})){O=L,M=!1;break}_.set(L,B)}if(M)for(var W=b?3:1,q=function(fe){var Q=x.find(function(le){var ne=_.get(le);if(ne)return ne.slice(0,fe).every(function(he){return he})});if(Q)return O=Q,"break"},X=W;X>0;X--){var ie=q(X);if(ie==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const vG={name:"flip",enabled:!0,phase:"main",fn:gG,requiresIfExists:["offset"],data:{_skip:!1}};function t2(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 n2(e){return[oo,li,si,io].some(function(t){return e[t]>=0})}function yG(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Uf(t,{elementContext:"reference"}),a=Uf(t,{altBoundary:!0}),c=t2(s,r),d=t2(a,o,i),p=n2(c),h=n2(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 bG={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:yG};function wG(e,t,n){var r=ts(e),o=[io,oo].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,[io,li].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function CG(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=AO.reduce(function(p,h){return p[h]=wG(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 xG={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:CG};function SG(e){var t=e.state,n=e.name;t.modifiersData[n]=HO({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const EG={name:"popperOffsets",enabled:!0,phase:"read",fn:SG,data:{}};function PG(e){return e==="x"?"y":"x"}function kG(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,v=m===void 0?!0:m,b=n.tetherOffset,g=b===void 0?0:b,S=Uf(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:p}),C=ts(t.placement),E=ku(t.placement),w=!E,x=ox(C),k=PG(x),I=t.modifiersData.popperOffsets,_=t.rects.reference,M=t.rects.popper,O=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,R=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(I){if(i){var j,A=x==="y"?oo:io,F=x==="y"?si:li,z=x==="y"?"height":"width",G=I[x],N=G+S[A],B=G-S[F],W=v?-M[z]/2:0,q=E===Su?_[z]:M[z],X=E===Su?-M[z]:-_[z],ie=t.elements.arrow,J=v&&ie?rx(ie):{width:0,height:0},fe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:DO(),Q=fe[A],le=fe[F],ne=uf(0,_[z],J[z]),he=w?_[z]/2-W-ne-Q-R.mainAxis:q-ne-Q-R.mainAxis,be=w?-_[z]/2+W+ne+le+R.mainAxis:X+ne+le+R.mainAxis,ge=t.elements.arrow&&pp(t.elements.arrow),$e=ge?x==="y"?ge.clientTop||0:ge.clientLeft||0:0,Be=(j=L==null?void 0:L[x])!=null?j:0,Le=G+he-Be-$e,re=G+be-Be,Te=uf(v?og(N,Le):N,G,v?_a(B,re):B);I[x]=Te,H[x]=Te-G}if(a){var ve,ze=x==="x"?oo:io,nt=x==="x"?si:li,pt=I[k],Qe=k==="y"?"height":"width",Ct=pt+S[ze],it=pt-S[nt],vt=[oo,io].indexOf(C)!==-1,ht=(ve=L==null?void 0:L[k])!=null?ve:0,ct=vt?Ct:pt-_[Qe]-M[Qe]-ht+R.altAxis,Ge=vt?pt+_[Qe]+M[Qe]-ht-R.altAxis:it,_e=v&&vt?XW(ct,pt,Ge):uf(v?ct:Ct,pt,v?Ge:it);I[k]=_e,H[k]=_e-pt}t.modifiersData[r]=H}}const _G={name:"preventOverflow",enabled:!0,phase:"main",fn:kG,requiresIfExists:["offset"]};function IG(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function $G(e){return e===Mo(e)||!ni(e)?ix(e):IG(e)}function MG(e){var t=e.getBoundingClientRect(),n=Eu(t.width)/e.offsetWidth||1,r=Eu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function RG(e,t,n){n===void 0&&(n=!1);var r=ni(t),o=ni(t)&&MG(t),i=ea(t),s=Pu(e,o,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((is(t)!=="body"||lx(i))&&(a=$G(t)),ni(t)?(c=Pu(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=sx(i))),{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function TG(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 OG(e){var t=TG(e);return UW.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function LG(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function AG(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 r2={placement:"bottom",modifiers:[],strategy:"absolute"};function o2(){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 FG(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?r2:o;return function(a,c,d){d===void 0&&(d=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},r2,i),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],m=!1,v={state:p,setOptions:function(C){var E=typeof C=="function"?C(p.options):C;g(),p.options=Object.assign({},i,p.options,E),p.scrollParents={reference:za(a)?df(a):a.contextElement?df(a.contextElement):[],popper:df(c)};var w=OG(AG([].concat(r,p.options.modifiers)));return p.orderedModifiers=w.filter(function(x){return x.enabled}),b(),v.update()},forceUpdate:function(){if(!m){var C=p.elements,E=C.reference,w=C.popper;if(o2(E,w)){p.rects={reference:RG(E,pp(w),p.options.strategy==="fixed"),popper:rx(w)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(R){return p.modifiersData[R.name]=Object.assign({},R.data)});for(var x=0;x<p.orderedModifiers.length;x++){if(p.reset===!0){p.reset=!1,x=-1;continue}var k=p.orderedModifiers[x],I=k.fn,_=k.options,M=_===void 0?{}:_,O=k.name;typeof I=="function"&&(p=I({state:p,options:M,name:O,instance:v})||p)}}}},update:LG(function(){return new Promise(function(S){v.forceUpdate(),S(p)})}),destroy:function(){g(),m=!0}};if(!o2(a,c))return v;v.setOptions(d).then(function(S){!m&&d.onFirstUpdate&&d.onFirstUpdate(S)});function b(){p.orderedModifiers.forEach(function(S){var C=S.name,E=S.options,w=E===void 0?{}:E,x=S.effect;if(typeof x=="function"){var k=x({state:p,name:C,instance:v,options:w}),I=function(){};h.push(k||I)}})}function g(){h.forEach(function(S){return S()}),h=[]}return v}}var NG=[sG,EG,oG,KW,xG,vG,_G,eG,bG],DG=FG({defaultModifiers:NG});function BG(e){return typeof e=="function"?e():e}const zG=u.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,a]=u.useState(null),c=Ut(u.isValidElement(r)?r.ref:null,n);if(fn(()=>{i||a(BG(o)||document.body)},[o,i]),fn(()=>{if(s&&!i)return Bf(n,s),()=>{Bf(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&&jl.createPortal(r,s)})}),VO=zG;function jG(e){return Ze("MuiPopper",e)}qe("MuiPopper",["root"]);const HG=["anchorEl","children","component","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],VG=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function UG(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 q1(e){return typeof e=="function"?e():e}function WG(e){return e.nodeType!==void 0}const GG=()=>ke({root:["root"]},RO(jG)),KG={},qG=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:v,slotProps:b={},slots:g={},TransitionProps:S}=t,C=se(t,HG),E=u.useRef(null),w=Ut(E,n),x=u.useRef(null),k=Ut(x,v),I=u.useRef(k);fn(()=>{I.current=k},[k]),u.useImperativeHandle(v,()=>x.current,[]);const _=UG(h,a),[M,O]=u.useState(_),[R,L]=u.useState(q1(o));u.useEffect(()=>{x.current&&x.current.forceUpdate()}),u.useEffect(()=>{o&&L(q1(o))},[o]),fn(()=>{if(!R||!p)return;const z=B=>{O(B.placement)};let G=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:B})=>{z(B)}}];d!=null&&(G=G.concat(d)),m&&m.modifiers!=null&&(G=G.concat(m.modifiers));const N=DG(R,E.current,P({placement:_},m,{modifiers:G}));return I.current(N),()=>{N.destroy(),I.current(null)}},[R,c,d,p,m,_]);const H={placement:M};S!==null&&(H.TransitionProps=S);const j=GG(),A=(r=s!=null?s:g.root)!=null?r:"div",F=Ws({elementType:A,externalSlotProps:b.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:j.root});return T.jsx(A,P({},F,{children:typeof i=="function"?i(H):i}))}),YG=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=KG,popperRef:v,style:b,transition:g=!1,slotProps:S={},slots:C={}}=t,E=se(t,VG),[w,x]=u.useState(!0),k=()=>{x(!1)},I=()=>{x(!0)};if(!c&&!p&&(!g||w))return null;let _;if(i)_=i;else if(r){const R=q1(r);_=R&&WG(R)?gn(R).body:gn(null).body}const M=!p&&c&&(!g||w)?"none":void 0,O=g?{in:p,onEnter:k,onExited:I}:void 0;return T.jsx(VO,{disablePortal:a,container:_,children:T.jsx(qG,P({anchorEl:r,direction:s,disablePortal:a,modifiers:d,ref:n,open:g?!w:p,placement:h,popperOptions:m,popperRef:v,slotProps:S,slots:C},E,{style:P({position:"fixed",top:0,left:0,display:M},b),TransitionProps:O,children:o}))})}),XG=YG;function QG(e){const t=gn(e);return t.body===e?so(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ff(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function i2(e){return parseInt(so(e).getComputedStyle(e).paddingRight,10)||0}function JG(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 s2(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const a=i.indexOf(s)===-1,c=!JG(s);a&&c&&ff(s,o)})}function cb(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function ZG(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(QG(r)){const s=nO(gn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${i2(r)+s}px`;const a=gn(r).querySelectorAll(".mui-fixed");[].forEach.call(a,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${i2(c)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=gn(r).body;else{const s=r.parentElement,a=so(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 eK(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class tK{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&&ff(t.modalRef,!1);const o=eK(n);s2(n,t.mount,t.modalRef,o,!0);const i=cb(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=cb(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=ZG(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=cb(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&&ff(t.modalRef,n),s2(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&&ff(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function nK(e){return Ze("MuiModal",e)}qe("MuiModal",["root","hidden","backdrop"]);const rK=["children","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],oK=e=>{const{open:t,exited:n}=e;return ke({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},RO(nK))};function iK(e){return typeof e=="function"?e():e}function sK(e){return e?e.props.hasOwnProperty("in"):!1}const lK=new tK,aK=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:v=!1,disableScrollLock:b=!1,hideBackdrop:g=!1,keepMounted:S=!1,manager:C=lK,onBackdropClick:E,onClose:w,onKeyDown:x,open:k,onTransitionEnter:I,onTransitionExited:_,slotProps:M={},slots:O={}}=t,R=se(t,rK),[L,H]=u.useState(!k),j=u.useRef({}),A=u.useRef(null),F=u.useRef(null),z=Ut(F,n),G=sK(i),N=(r=t["aria-hidden"])!=null?r:!0,B=()=>gn(A.current),W=()=>(j.current.modalRef=F.current,j.current.mountNode=A.current,j.current),q=()=>{C.mount(W(),{disableScrollLock:b}),F.current&&(F.current.scrollTop=0)},X=dn(()=>{const ve=iK(c)||B().body;C.add(W(),ve),F.current&&q()}),ie=u.useCallback(()=>C.isTopModal(W()),[C]),J=dn(ve=>{A.current=ve,!(!ve||!F.current)&&(k&&ie()?q():ff(F.current,N))}),fe=u.useCallback(()=>{C.remove(W(),N)},[C,N]);u.useEffect(()=>()=>{fe()},[fe]),u.useEffect(()=>{k?X():(!G||!s)&&fe()},[k,fe,G,s,X]);const Q=P({},t,{closeAfterTransition:s,disableAutoFocus:d,disableEnforceFocus:p,disableEscapeKeyDown:h,disablePortal:m,disableRestoreFocus:v,disableScrollLock:b,exited:L,hideBackdrop:g,keepMounted:S}),le=oK(Q),ne=()=>{H(!1),I&&I()},he=()=>{H(!0),_&&_(),s&&fe()},be=ve=>{ve.target===ve.currentTarget&&(E&&E(ve),w&&w(ve,"backdropClick"))},ge=ve=>{x&&x(ve),!(ve.key!=="Escape"||!ie())&&(h||(ve.stopPropagation(),w&&w(ve,"escapeKeyDown")))},$e={};i.props.tabIndex===void 0&&($e.tabIndex="-1"),G&&($e.onEnter=B1(ne,i.props.onEnter),$e.onExited=B1(he,i.props.onExited));const Be=(o=a!=null?a:O.root)!=null?o:"div",Le=Ws({elementType:Be,externalSlotProps:M.root,externalForwardedProps:R,additionalProps:{ref:z,role:"presentation",onKeyDown:ge},className:le.root,ownerState:Q}),re=O.backdrop,Te=Ws({elementType:re,externalSlotProps:M.backdrop,additionalProps:{"aria-hidden":!0,onClick:be,open:k},className:le.backdrop,ownerState:Q});return!S&&!k&&(!G||L)?null:T.jsx(VO,{ref:J,container:c,disablePortal:m,children:T.jsxs(Be,P({},Le,{children:[!g&&re?T.jsx(re,P({},Te)):null,T.jsx(OO,{disableEnforceFocus:p,disableAutoFocus:d,disableRestoreFocus:v,isEnabled:ie,open:k,children:u.cloneElement(i,$e)})]}))})}),cK=aK,uK=["onChange","maxRows","minRows","style","value"];function Hh(e){return parseInt(e,10)||0}const dK={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function l2(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const fK=u.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a}=t,c=se(t,uK),{current:d}=u.useRef(a!=null),p=u.useRef(null),h=Ut(n,p),m=u.useRef(null),v=u.useRef(0),[b,g]=u.useState({outerHeightStyle:0}),S=u.useCallback(()=>{const k=p.current,_=so(k).getComputedStyle(k);if(_.width==="0px")return{outerHeightStyle:0};const M=m.current;M.style.width=_.width,M.value=k.value||t.placeholder||"x",M.value.slice(-1)===`
89
+ `&&(M.value+=" ");const O=_.boxSizing,R=Hh(_.paddingBottom)+Hh(_.paddingTop),L=Hh(_.borderBottomWidth)+Hh(_.borderTopWidth),H=M.scrollHeight;M.value="x";const j=M.scrollHeight;let A=H;i&&(A=Math.max(Number(i)*j,A)),o&&(A=Math.min(Number(o)*j,A)),A=Math.max(A,j);const F=A+(O==="border-box"?R+L:0),z=Math.abs(A-H)<=1;return{outerHeightStyle:F,overflow:z}},[o,i,t.placeholder]),C=(k,I)=>{const{outerHeightStyle:_,overflow:M}=I;return v.current<20&&(_>0&&Math.abs((k.outerHeightStyle||0)-_)>1||k.overflow!==M)?(v.current+=1,{overflow:M,outerHeightStyle:_}):k},E=u.useCallback(()=>{const k=S();l2(k)||g(I=>C(I,k))},[S]),w=()=>{const k=S();l2(k)||jl.flushSync(()=>{g(I=>C(I,k))})};u.useEffect(()=>{const k=Hs(()=>{v.current=0,p.current&&w()});let I;const _=p.current,M=so(_);return M.addEventListener("resize",k),typeof ResizeObserver!="undefined"&&(I=new ResizeObserver(k),I.observe(_)),()=>{k.clear(),M.removeEventListener("resize",k),I&&I.disconnect()}}),fn(()=>{E()}),u.useEffect(()=>{v.current=0},[a]);const x=k=>{v.current=0,d||E(),r&&r(k)};return T.jsxs(u.Fragment,{children:[T.jsx("textarea",P({value:a,onChange:x,ref:h,rows:i,style:P({height:b.outerHeightStyle,overflow:b.overflow?"hidden":void 0},s)},c)),T.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:P({},dK.shadow,s,{padding:0})})]})}),pK=fK;function a2(e){return typeof e.normalize!="undefined"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function UO(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=a2(p));const h=p?a.filter(m=>{let v=(i||d)(m);return n&&(v=v.toLowerCase()),t&&(v=a2(v)),o==="start"?v.indexOf(p)===0:v.indexOf(p)>-1}):a;return typeof r=="number"?h.slice(0,r):h}}function ub(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const hK=UO(),c2=5,mK=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function gK(e){const{unstable_isActiveElementInListbox:t=mK,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:v,disabledItemsFocusable:b=!1,disableListWrap:g=!1,filterOptions:S=hK,filterSelectedOptions:C=!1,freeSolo:E=!1,getOptionDisabled:w,getOptionLabel:x=Ce=>{var me;return(me=Ce.label)!=null?me:Ce},groupBy:k,handleHomeEndKeys:I=!e.freeSolo,id:_,includeInputInList:M=!1,inputValue:O,isOptionEqualToValue:R=(Ce,me)=>Ce===me,multiple:L=!1,onChange:H,onClose:j,onHighlightChange:A,onInputChange:F,onOpen:z,open:G,openOnFocus:N=!1,options:B,readOnly:W=!1,selectOnFocus:q=!e.freeSolo,value:X}=e,ie=In(_);let J=x;J=Ce=>{const me=x(Ce);return typeof me!="string"?String(me):me};const fe=u.useRef(!1),Q=u.useRef(!0),le=u.useRef(null),ne=u.useRef(null),[he,be]=u.useState(null),[ge,$e]=u.useState(-1),Be=o?0:-1,Le=u.useRef(Be),[re,Te]=Zi({controlled:X,default:p,name:d}),[ve,ze]=Zi({controlled:O,default:"",name:d,state:"inputValue"}),[nt,pt]=u.useState(!1),Qe=u.useCallback((Ce,me)=>{if(!(L?re.length<me.length:me!==null)&&!a)return;let dt;if(L)dt="";else if(me==null)dt="";else{const Gt=J(me);dt=typeof Gt=="string"?Gt:""}ve!==dt&&(ze(dt),F&&F(Ce,dt,"reset"))},[J,ve,L,F,ze,a,re]),[Ct,it]=Zi({controlled:G,default:!1,name:d,state:"open"}),[vt,ht]=u.useState(!0),ct=!L&&re!=null&&ve===J(re),Ge=Ct&&!W,_e=Ge?S(B.filter(Ce=>!(C&&(L?re:[re]).some(me=>me!==null&&R(Ce,me)))),{inputValue:ct&&vt?"":ve,getOptionLabel:J}):[],Me=NC({filteredOptions:_e,value:re});u.useEffect(()=>{const Ce=re!==Me.value;nt&&!Ce||E&&!Ce||Qe(null,re)},[re,Qe,nt,Me.value,E]);const Fe=Ct&&_e.length>0&&!W,Ve=dn(Ce=>{Ce===-1?le.current.focus():he.querySelector(`[data-tag-index="${Ce}"]`).focus()});u.useEffect(()=>{L&&ge>re.length-1&&($e(-1),Ve(-1))},[re,L,ge,Ve]);function Se(Ce,me){if(!ne.current||Ce===-1)return-1;let He=Ce;for(;;){if(me==="next"&&He===_e.length||me==="previous"&&He===-1)return-1;const dt=ne.current.querySelector(`[data-option-index="${He}"]`),Gt=b?!1:!dt||dt.disabled||dt.getAttribute("aria-disabled")==="true";if(dt&&!dt.hasAttribute("tabindex")||Gt)He+=me==="next"?1:-1;else return He}}const Oe=dn(({event:Ce,index:me,reason:He="auto"})=>{if(Le.current=me,me===-1?le.current.removeAttribute("aria-activedescendant"):le.current.setAttribute("aria-activedescendant",`${ie}-option-${me}`),A&&A(Ce,me===-1?null:_e[me],He),!ne.current)return;const dt=ne.current.querySelector(`[role="option"].${n}-focused`);dt&&(dt.classList.remove(`${n}-focused`),dt.classList.remove(`${n}-focusVisible`));const Gt=ne.current.parentElement.querySelector('[role="listbox"]');if(!Gt)return;if(me===-1){Gt.scrollTop=0;return}const Mn=ne.current.querySelector(`[data-option-index="${me}"]`);if(Mn&&(Mn.classList.add(`${n}-focused`),He==="keyboard"&&Mn.classList.add(`${n}-focusVisible`),Gt.scrollHeight>Gt.clientHeight&&He!=="mouse")){const Rn=Mn,St=Gt.clientHeight+Gt.scrollTop,sr=Rn.offsetTop+Rn.offsetHeight;sr>St?Gt.scrollTop=sr-Gt.clientHeight:Rn.offsetTop-Rn.offsetHeight*(k?1.3:0)<Gt.scrollTop&&(Gt.scrollTop=Rn.offsetTop-Rn.offsetHeight*(k?1.3:0))}}),Ue=dn(({event:Ce,diff:me,direction:He="next",reason:dt="auto"})=>{if(!Ge)return;const Mn=Se((()=>{const Rn=_e.length-1;if(me==="reset")return Be;if(me==="start")return 0;if(me==="end")return Rn;const St=Le.current+me;return St<0?St===-1&&M?-1:g&&Le.current!==-1||Math.abs(me)>1?0:Rn:St>Rn?St===Rn+1&&M?-1:g||Math.abs(me)>1?Rn:0:St})(),He);if(Oe({index:Mn,reason:dt,event:Ce}),r&&me!=="reset")if(Mn===-1)le.current.value=ve;else{const Rn=J(_e[Mn]);le.current.value=Rn,Rn.toLowerCase().indexOf(ve.toLowerCase())===0&&ve.length>0&&le.current.setSelectionRange(ve.length,Rn.length)}}),st=()=>{const Ce=(me,He)=>{const dt=me?J(me):"",Gt=He?J(He):"";return dt===Gt};if(Le.current!==-1&&Me.filteredOptions&&Me.filteredOptions.length!==_e.length&&(L?re.length===Me.value.length&&Me.value.every((me,He)=>J(re[He])===J(me)):Ce(Me.value,re))){const me=Me.filteredOptions[Le.current];if(me&&_e.some(dt=>J(dt)===J(me)))return!0}return!1},Ft=u.useCallback(()=>{if(!Ge||st())return;const Ce=L?re[0]:re;if(_e.length===0||Ce==null){Ue({diff:"reset"});return}if(ne.current){if(Ce!=null){const me=_e[Le.current];if(L&&me&&ub(re,dt=>R(me,dt))!==-1)return;const He=ub(_e,dt=>R(dt,Ce));He===-1?Ue({diff:"reset"}):Oe({index:He});return}if(Le.current>=_e.length-1){Oe({index:_e.length-1});return}Oe({index:Le.current})}},[_e.length,L?!1:re,C,Ue,Oe,Ge,ve,L]),an=dn(Ce=>{Bf(ne,Ce),Ce&&Ft()});u.useEffect(()=>{Ft()},[Ft]);const yn=Ce=>{Ct||(it(!0),ht(!0),z&&z(Ce))},Wn=(Ce,me)=>{Ct&&(it(!1),j&&j(Ce,me))},xr=(Ce,me,He,dt)=>{if(L){if(re.length===me.length&&re.every((Gt,Mn)=>Gt===me[Mn]))return}else if(re===me)return;H&&H(Ce,me,He,dt),Te(me)},Sr=u.useRef(!1),Fr=(Ce,me,He="selectOption",dt="options")=>{let Gt=He,Mn=me;if(L){Mn=Array.isArray(re)?re.slice():[];const Rn=ub(Mn,St=>R(me,St));Rn===-1?Mn.push(me):dt!=="freeSolo"&&(Mn.splice(Rn,1),Gt="removeOption")}Qe(Ce,Mn),xr(Ce,Mn,Gt,{option:me}),!m&&(!Ce||!Ce.ctrlKey&&!Ce.metaKey)&&Wn(Ce,Gt),(s===!0||s==="touch"&&Sr.current||s==="mouse"&&!Sr.current)&&le.current.blur()};function Bn(Ce,me){if(Ce===-1)return-1;let He=Ce;for(;;){if(me==="next"&&He===re.length||me==="previous"&&He===-1)return-1;const dt=he.querySelector(`[data-tag-index="${He}"]`);if(!dt||!dt.hasAttribute("tabindex")||dt.disabled||dt.getAttribute("aria-disabled")==="true")He+=me==="next"?1:-1;else return He}}const cn=(Ce,me)=>{if(!L)return;ve===""&&Wn(Ce,"toggleInput");let He=ge;ge===-1?ve===""&&me==="previous"&&(He=re.length-1):(He+=me==="next"?1:-1,He<0&&(He=0),He===re.length&&(He=-1)),He=Bn(He,me),$e(He),Ve(He)},Xn=Ce=>{fe.current=!0,ze(""),F&&F(Ce,"","clear"),xr(Ce,L?[]:null,"clear")},us=Ce=>me=>{if(Ce.onKeyDown&&Ce.onKeyDown(me),!me.defaultMuiPrevented&&(ge!==-1&&["ArrowLeft","ArrowRight"].indexOf(me.key)===-1&&($e(-1),Ve(-1)),me.which!==229))switch(me.key){case"Home":Ge&&I&&(me.preventDefault(),Ue({diff:"start",direction:"next",reason:"keyboard",event:me}));break;case"End":Ge&&I&&(me.preventDefault(),Ue({diff:"end",direction:"previous",reason:"keyboard",event:me}));break;case"PageUp":me.preventDefault(),Ue({diff:-c2,direction:"previous",reason:"keyboard",event:me}),yn(me);break;case"PageDown":me.preventDefault(),Ue({diff:c2,direction:"next",reason:"keyboard",event:me}),yn(me);break;case"ArrowDown":me.preventDefault(),Ue({diff:1,direction:"next",reason:"keyboard",event:me}),yn(me);break;case"ArrowUp":me.preventDefault(),Ue({diff:-1,direction:"previous",reason:"keyboard",event:me}),yn(me);break;case"ArrowLeft":cn(me,"previous");break;case"ArrowRight":cn(me,"next");break;case"Enter":if(Le.current!==-1&&Ge){const He=_e[Le.current],dt=w?w(He):!1;if(me.preventDefault(),dt)return;Fr(me,He,"selectOption"),r&&le.current.setSelectionRange(le.current.value.length,le.current.value.length)}else E&&ve!==""&&ct===!1&&(L&&me.preventDefault(),Fr(me,ve,"createOption","freeSolo"));break;case"Escape":Ge?(me.preventDefault(),me.stopPropagation(),Wn(me,"escape")):c&&(ve!==""||L&&re.length>0)&&(me.preventDefault(),me.stopPropagation(),Xn(me));break;case"Backspace":if(L&&!W&&ve===""&&re.length>0){const He=ge===-1?re.length-1:ge,dt=re.slice();dt.splice(He,1),xr(me,dt,"removeOption",{option:re[He]})}break;case"Delete":if(L&&!W&&ve===""&&re.length>0&&ge!==-1){const He=ge,dt=re.slice();dt.splice(He,1),xr(me,dt,"removeOption",{option:re[He]})}break}},Ai=Ce=>{pt(!0),N&&!fe.current&&yn(Ce)},ds=Ce=>{if(t(ne)){le.current.focus();return}pt(!1),Q.current=!0,fe.current=!1,i&&Le.current!==-1&&Ge?Fr(Ce,_e[Le.current],"blur"):i&&E&&ve!==""?Fr(Ce,ve,"blur","freeSolo"):a&&Qe(Ce,re),Wn(Ce,"blur")},fs=Ce=>{const me=Ce.target.value;ve!==me&&(ze(me),ht(!1),F&&F(Ce,me,"input")),me===""?!h&&!L&&xr(Ce,null,"clear"):yn(Ce)},ae=Ce=>{const me=Number(Ce.currentTarget.getAttribute("data-option-index"));Le.current!==me&&Oe({event:Ce,index:me,reason:"mouse"})},ye=Ce=>{Oe({event:Ce,index:Number(Ce.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Sr.current=!0},Ae=Ce=>{const me=Number(Ce.currentTarget.getAttribute("data-option-index"));Fr(Ce,_e[me],"selectOption"),Sr.current=!1},ut=Ce=>me=>{const He=re.slice();He.splice(Ce,1),xr(me,He,"removeOption",{option:re[Ce]})},ot=Ce=>{Ct?Wn(Ce,"toggleInput"):yn(Ce)},je=Ce=>{Ce.target.getAttribute("id")!==ie&&Ce.preventDefault()},xt=()=>{le.current.focus(),q&&Q.current&&le.current.selectionEnd-le.current.selectionStart===0&&le.current.select(),Q.current=!1},Wt=Ce=>{(ve===""||!Ct)&&ot(Ce)};let En=E&&ve.length>0;En=En||(L?re.length>0:re!==null);let co=_e;return k&&(co=_e.reduce((Ce,me,He)=>{const dt=k(me);return Ce.length>0&&Ce[Ce.length-1].group===dt?Ce[Ce.length-1].options.push(me):Ce.push({key:He,index:He,group:dt,options:[me]}),Ce},[])),v&&nt&&ds(),{getRootProps:(Ce={})=>P({"aria-owns":Fe?`${ie}-listbox`:null},Ce,{onKeyDown:us(Ce),onMouseDown:je,onClick:xt}),getInputLabelProps:()=>({id:`${ie}-label`,htmlFor:ie}),getInputProps:()=>({id:ie,value:ve,onBlur:ds,onFocus:Ai,onChange:fs,onMouseDown:Wt,"aria-activedescendant":Ge?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Fe?`${ie}-listbox`:void 0,"aria-expanded":Fe,autoComplete:"off",ref:le,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,onClick:Xn}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:ot}),getTagProps:({index:Ce})=>P({key:Ce,"data-tag-index":Ce,tabIndex:-1},!W&&{onDelete:ut(Ce)}),getListboxProps:()=>({role:"listbox",id:`${ie}-listbox`,"aria-labelledby":`${ie}-label`,ref:an,onMouseDown:Ce=>{Ce.preventDefault()}}),getOptionProps:({index:Ce,option:me})=>{const He=(L?re:[re]).some(Gt=>Gt!=null&&R(me,Gt)),dt=w?w(me):!1;return{key:J(me),tabIndex:-1,role:"option",id:`${ie}-option-${Ce}`,onMouseMove:ae,onClick:Ae,onTouchStart:ye,"data-option-index":Ce,"aria-disabled":dt,"aria-selected":He}},id:ie,inputValue:ve,value:re,dirty:En,expanded:Ge&&he,popupOpen:Ge,focused:nt||ge!==-1,anchorEl:he,setAnchorEl:be,focusedTag:ge,groupedOptions:co}}function vK(e){return Ze("MuiSvgIcon",e)}qe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const yK=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],bK=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ce(t)}`,`fontSize${ce(n)}`]};return ke(o,vK,r)},wK=oe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ce(n.color)}`],t[`fontSize${ce(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,a,c,d,p,h,m,v,b,g,S,C,E;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=(v=(e.vars||e).palette)==null||(b=v[t.color])==null?void 0:b.main)!=null?m:{action:(g=(e.vars||e).palette)==null||(S=g.action)==null?void 0:S.active,disabled:(C=(e.vars||e).palette)==null||(E=C.action)==null?void 0:E.disabled,inherit:void 0}[t.color]}}),WO=u.forwardRef(function(t,n){const r=tt({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,v=se(r,yK),b=P({},r,{color:s,component:a,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:m}),g={};p||(g.viewBox=m);const S=bK(b);return T.jsxs(wK,P({as:a,className:pe(S.root,i),focusable:"false",color:d,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},g,v,{ownerState:b,children:[o,h?T.jsx("title",{children:h}):null]}))});WO.muiName="SvgIcon";const u2=WO;function At(e,t){function n(r,o){return T.jsx(u2,P({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=u2.muiName,u.memo(u.forwardRef(n))}const CK={configure:e=>{BC.configure(e)}},xK=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ce,createChainedFunction:B1,createSvgIcon:At,debounce:Hs,deprecatedPropType:tV,isMuiElement:lf,ownerDocument:gn,ownerWindow:so,requirePropFactory:nV,setRef:Bf,unstable_ClassNameGenerator:CK,unstable_useEnhancedEffect:fn,unstable_useId:In,unsupportedProp:iV,useControlled:Zi,useEventCallback:dn,useForkRef:Ut,useIsFocusVisible:tv},Symbol.toStringTag,{value:"Module"}));function Y1(e,t){return Y1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Y1(e,t)}function ax(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Y1(e,t)}const d2={disabled:!1},ig=Eo.createContext(null);var SK=function(t){return t.scrollTop},Ud="unmounted",ha="exited",ma="entering",Ac="entered",X1="exiting",Ys=function(e){ax(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=ha,i.appearStatus=ma):c=Ac:r.unmountOnExit||r.mountOnEnter?c=Ud:c=ha,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Ud?{status:ha}: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!==ma&&s!==Ac&&(i=ma):(s===ma||s===Ac)&&(i=X1)}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===ma){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Bh.findDOMNode(this);s&&SK(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ha&&this.setState({status:Ud})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,c=this.props.nodeRef?[a]:[Bh.findDOMNode(this),a],d=c[0],p=c[1],h=this.getTimeouts(),m=a?h.appear:h.enter;if(!o&&!s||d2.disabled){this.safeSetState({status:Ac},function(){i.props.onEntered(d)});return}this.props.onEnter(d,p),this.safeSetState({status:ma},function(){i.props.onEntering(d,p),i.onTransitionEnd(m,function(){i.safeSetState({status:Ac},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:Bh.findDOMNode(this);if(!i||d2.disabled){this.safeSetState({status:ha},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:X1},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:ha},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:Bh.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===Ud)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=se(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Eo.createElement(ig.Provider,{value:null},typeof s=="function"?s(o,a):Eo.cloneElement(Eo.Children.only(s),a))},t}(Eo.Component);Ys.contextType=ig;Ys.propTypes={};function $c(){}Ys.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$c,onEntering:$c,onEntered:$c,onExit:$c,onExiting:$c,onExited:$c};Ys.UNMOUNTED=Ud;Ys.EXITED=ha;Ys.ENTERING=ma;Ys.ENTERED=Ac;Ys.EXITING=X1;const $v=Ys;function Q1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cx(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 EK(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 Ca(e,t,n){return n[t]!=null?n[t]:e.props[t]}function PK(e,t){return cx(e.children,function(n){return u.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Ca(n,"appear",e),enter:Ca(n,"enter",e),exit:Ca(n,"exit",e)})})}function kK(e,t,n){var r=cx(e.children),o=EK(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:Ca(s,"exit",e),enter:Ca(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:Ca(s,"exit",e),enter:Ca(s,"enter",e)}))}}),o}var _K=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},IK={component:"div",childFactory:function(t){return t}},ux=function(e){ax(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=i.handleExited.bind(Q1(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?PK(o,a):kK(o,s,a),firstRender:!1}},n.handleExited=function(o,i){var s=cx(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(a){var c=P({},a.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,i=o.component,s=o.childFactory,a=se(o,["component","childFactory"]),c=this.state.contextValue,d=_K(this.state.children).map(s);return delete a.appear,delete a.enter,delete a.exit,i===null?Eo.createElement(ig.Provider,{value:c},d):Eo.createElement(ig.Provider,{value:c},Eo.createElement(i,a,d))},t}(Eo.Component);ux.propTypes={};ux.defaultProps=IK;const $K=ux,dx=e=>e.scrollTop;function Gl(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 MK(e){return Ze("MuiCollapse",e)}qe("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const RK=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],TK=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return ke(r,MK,n)},OK=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})=>P({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&P({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),LK=oe("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>P({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),AK=oe("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>P({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),GO=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:s,collapsedSize:a="0px",component:c,easing:d,in:p,onEnter:h,onEntered:m,onEntering:v,onExit:b,onExited:g,onExiting:S,orientation:C="vertical",style:E,timeout:w=MO.standard,TransitionComponent:x=$v}=r,k=se(r,RK),I=P({},r,{orientation:C,collapsedSize:a}),_=TK(I),M=ao(),O=u.useRef(),R=u.useRef(null),L=u.useRef(),H=typeof a=="number"?`${a}px`:a,j=C==="horizontal",A=j?"width":"height";u.useEffect(()=>()=>{clearTimeout(O.current)},[]);const F=u.useRef(null),z=Ut(n,F),G=Q=>le=>{if(Q){const ne=F.current;le===void 0?Q(ne):Q(ne,le)}},N=()=>R.current?R.current[j?"clientWidth":"clientHeight"]:0,B=G((Q,le)=>{R.current&&j&&(R.current.style.position="absolute"),Q.style[A]=H,h&&h(Q,le)}),W=G((Q,le)=>{const ne=N();R.current&&j&&(R.current.style.position="");const{duration:he,easing:be}=Gl({style:E,timeout:w,easing:d},{mode:"enter"});if(w==="auto"){const ge=M.transitions.getAutoHeightDuration(ne);Q.style.transitionDuration=`${ge}ms`,L.current=ge}else Q.style.transitionDuration=typeof he=="string"?he:`${he}ms`;Q.style[A]=`${ne}px`,Q.style.transitionTimingFunction=be,v&&v(Q,le)}),q=G((Q,le)=>{Q.style[A]="auto",m&&m(Q,le)}),X=G(Q=>{Q.style[A]=`${N()}px`,b&&b(Q)}),ie=G(g),J=G(Q=>{const le=N(),{duration:ne,easing:he}=Gl({style:E,timeout:w,easing:d},{mode:"exit"});if(w==="auto"){const be=M.transitions.getAutoHeightDuration(le);Q.style.transitionDuration=`${be}ms`,L.current=be}else Q.style.transitionDuration=typeof ne=="string"?ne:`${ne}ms`;Q.style[A]=H,Q.style.transitionTimingFunction=he,S&&S(Q)}),fe=Q=>{w==="auto"&&(O.current=setTimeout(Q,L.current||0)),o&&o(F.current,Q)};return T.jsx(x,P({in:p,onEnter:B,onEntered:q,onEntering:W,onExit:X,onExited:ie,onExiting:J,addEndListener:fe,nodeRef:F,timeout:w==="auto"?null:w},k,{children:(Q,le)=>T.jsx(OK,P({as:c,className:pe(_.root,s,{entered:_.entered,exited:!p&&H==="0px"&&_.hidden}[Q]),style:P({[j?"minWidth":"minHeight"]:H},E),ownerState:P({},I,{state:Q}),ref:z},le,{children:T.jsx(LK,{ownerState:P({},I,{state:Q}),className:_.wrapper,ref:R,children:T.jsx(AK,{ownerState:P({},I,{state:Q}),className:_.wrapperInner,children:i})})}))}))});GO.muiSupportAuto=!0;const KO=GO;function FK(e){return Ze("MuiPaper",e)}qe("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 NK=["className","component","elevation","square","variant"],DK=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ke(i,FK,o)},BK=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 P({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"&&P({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${at("#fff",KI(t.elevation))}, ${at("#fff",KI(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),zK=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:a=!1,variant:c="elevation"}=r,d=se(r,NK),p=P({},r,{component:i,elevation:s,square:a,variant:c}),h=DK(p);return T.jsx(BK,P({as:i,ownerState:p,className:pe(h.root,o),ref:n},d))}),ui=zK;function jK(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=pe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},b=pe(n.child,p&&n.childLeaving,r&&n.childPulsate);return!a&&!p&&h(!0),u.useEffect(()=>{if(!a&&c!=null){const g=setTimeout(c,d);return()=>{clearTimeout(g)}}},[c,a,d]),T.jsx("span",{className:m,style:v,children:T.jsx("span",{className:b})})}const HK=qe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),qo=HK,VK=["center","classes","className"];let Mv=e=>e,f2,p2,h2,m2;const J1=550,UK=80,WK=as(f2||(f2=Mv`
90
+ 0% {
91
+ transform: scale(0);
92
+ opacity: 0.1;
93
+ }
94
+
95
+ 100% {
96
+ transform: scale(1);
97
+ opacity: 0.3;
98
+ }
99
+ `)),GK=as(p2||(p2=Mv`
100
+ 0% {
101
+ opacity: 1;
102
+ }
103
+
104
+ 100% {
105
+ opacity: 0;
106
+ }
107
+ `)),KK=as(h2||(h2=Mv`
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
+ `)),qK=oe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),YK=oe(jK,{name:"MuiTouchRipple",slot:"Ripple"})(m2||(m2=Mv`
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
+ `),qo.rippleVisible,WK,J1,({theme:e})=>e.transitions.easing.easeInOut,qo.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,qo.child,qo.childLeaving,GK,J1,({theme:e})=>e.transitions.easing.easeInOut,qo.childPulsate,KK,({theme:e})=>e.transitions.easing.easeInOut),XK=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=se(r,VK),[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),v=u.useRef(null),b=u.useRef(null),g=u.useRef(null);u.useEffect(()=>()=>{clearTimeout(v.current)},[]);const S=u.useCallback(x=>{const{pulsate:k,rippleX:I,rippleY:_,rippleSize:M,cb:O}=x;d(R=>[...R,T.jsx(YK,{classes:{ripple:pe(i.ripple,qo.ripple),rippleVisible:pe(i.rippleVisible,qo.rippleVisible),ripplePulsate:pe(i.ripplePulsate,qo.ripplePulsate),child:pe(i.child,qo.child),childLeaving:pe(i.childLeaving,qo.childLeaving),childPulsate:pe(i.childPulsate,qo.childPulsate)},timeout:J1,pulsate:k,rippleX:I,rippleY:_,rippleSize:M},p.current)]),p.current+=1,h.current=O},[i]),C=u.useCallback((x={},k={},I=()=>{})=>{const{pulsate:_=!1,center:M=o||k.pulsate,fakeElement:O=!1}=k;if((x==null?void 0:x.type)==="mousedown"&&m.current){m.current=!1;return}(x==null?void 0:x.type)==="touchstart"&&(m.current=!0);const R=O?null:g.current,L=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let H,j,A;if(M||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)H=Math.round(L.width/2),j=Math.round(L.height/2);else{const{clientX:F,clientY:z}=x.touches&&x.touches.length>0?x.touches[0]:x;H=Math.round(F-L.left),j=Math.round(z-L.top)}if(M)A=Math.sqrt((2*xs(L.width,2)+xs(L.height,2))/3),A%2===0&&(A+=1);else{const F=Math.max(Math.abs((R?R.clientWidth:0)-H),H)*2+2,z=Math.max(Math.abs((R?R.clientHeight:0)-j),j)*2+2;A=Math.sqrt(xs(F,2)+xs(z,2))}x!=null&&x.touches?b.current===null&&(b.current=()=>{S({pulsate:_,rippleX:H,rippleY:j,rippleSize:A,cb:I})},v.current=setTimeout(()=>{b.current&&(b.current(),b.current=null)},UK)):S({pulsate:_,rippleX:H,rippleY:j,rippleSize:A,cb:I})},[o,S]),E=u.useCallback(()=>{C({},{pulsate:!0})},[C]),w=u.useCallback((x,k)=>{if(clearTimeout(v.current),(x==null?void 0:x.type)==="touchend"&&b.current){b.current(),b.current=null,v.current=setTimeout(()=>{w(x,k)});return}b.current=null,d(I=>I.length>0?I.slice(1):I),h.current=k},[]);return u.useImperativeHandle(n,()=>({pulsate:E,start:C,stop:w}),[E,C,w]),T.jsx(qK,P({className:pe(qo.root,i.root,s),ref:g},a,{children:T.jsx($K,{component:null,exit:!0,children:c})}))}),QK=XK;function JK(e){return Ze("MuiButtonBase",e)}const ZK=qe("MuiButtonBase",["root","disabled","focusVisible"]),eq=ZK,tq=["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"],nq=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=ke({root:["root",t&&"disabled",n&&"focusVisible"]},JK,o);return n&&r&&(s.root+=` ${r}`),s},rq=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"},[`&.${eq.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),oq=u.forwardRef(function(t,n){const r=tt({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:v="a",onBlur:b,onClick:g,onContextMenu:S,onDragLeave:C,onFocus:E,onFocusVisible:w,onKeyDown:x,onKeyUp:k,onMouseDown:I,onMouseLeave:_,onMouseUp:M,onTouchEnd:O,onTouchMove:R,onTouchStart:L,tabIndex:H=0,TouchRippleProps:j,touchRippleRef:A,type:F}=r,z=se(r,tq),G=u.useRef(null),N=u.useRef(null),B=Ut(N,A),{isFocusVisibleRef:W,onFocus:q,onBlur:X,ref:ie}=tv(),[J,fe]=u.useState(!1);d&&J&&fe(!1),u.useImperativeHandle(o,()=>({focusVisible:()=>{fe(!0),G.current.focus()}}),[]);const[Q,le]=u.useState(!1);u.useEffect(()=>{le(!0)},[]);const ne=Q&&!p&&!d;u.useEffect(()=>{J&&m&&!p&&Q&&N.current.pulsate()},[p,m,J,Q]);function he(Me,Fe,Ve=h){return dn(Se=>(Fe&&Fe(Se),!Ve&&N.current&&N.current[Me](Se),!0))}const be=he("start",I),ge=he("stop",S),$e=he("stop",C),Be=he("stop",M),Le=he("stop",Me=>{J&&Me.preventDefault(),_&&_(Me)}),re=he("start",L),Te=he("stop",O),ve=he("stop",R),ze=he("stop",Me=>{X(Me),W.current===!1&&fe(!1),b&&b(Me)},!1),nt=dn(Me=>{G.current||(G.current=Me.currentTarget),q(Me),W.current===!0&&(fe(!0),w&&w(Me)),E&&E(Me)}),pt=()=>{const Me=G.current;return c&&c!=="button"&&!(Me.tagName==="A"&&Me.href)},Qe=u.useRef(!1),Ct=dn(Me=>{m&&!Qe.current&&J&&N.current&&Me.key===" "&&(Qe.current=!0,N.current.stop(Me,()=>{N.current.start(Me)})),Me.target===Me.currentTarget&&pt()&&Me.key===" "&&Me.preventDefault(),x&&x(Me),Me.target===Me.currentTarget&&pt()&&Me.key==="Enter"&&!d&&(Me.preventDefault(),g&&g(Me))}),it=dn(Me=>{m&&Me.key===" "&&N.current&&J&&!Me.defaultPrevented&&(Qe.current=!1,N.current.stop(Me,()=>{N.current.pulsate(Me)})),k&&k(Me),g&&Me.target===Me.currentTarget&&pt()&&Me.key===" "&&!Me.defaultPrevented&&g(Me)});let vt=c;vt==="button"&&(z.href||z.to)&&(vt=v);const ht={};vt==="button"?(ht.type=F===void 0?"button":F,ht.disabled=d):(!z.href&&!z.to&&(ht.role="button"),d&&(ht["aria-disabled"]=d));const ct=Ut(n,ie,G),Ge=P({},r,{centerRipple:i,component:c,disabled:d,disableRipple:p,disableTouchRipple:h,focusRipple:m,tabIndex:H,focusVisible:J}),_e=nq(Ge);return T.jsxs(rq,P({as:vt,className:pe(_e.root,a),ownerState:Ge,onBlur:ze,onClick:g,onContextMenu:ge,onFocus:nt,onKeyDown:Ct,onKeyUp:it,onMouseDown:be,onMouseLeave:Le,onMouseUp:Be,onDragLeave:$e,onTouchEnd:Te,onTouchMove:ve,onTouchStart:re,ref:ct,tabIndex:d?-1:H,type:F},ht,z,{children:[s,ne?T.jsx(QK,P({ref:B,center:i},j)):null]}))}),ss=oq;function iq(e){return Ze("MuiAlert",e)}const sq=qe("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),g2=sq;function lq(e){return Ze("MuiIconButton",e)}const aq=qe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),cq=aq,uq=["edge","children","className","color","disabled","disableFocusRipple","size"],dq=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${ce(r)}`,o&&`edge${ce(o)}`,`size${ce(i)}`]};return ke(s,lq,t)},fq=oe(ss,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ce(n.color)}`],n.edge&&t[`edge${ce(n.edge)}`],t[`size${ce(n.size)}`]]}})(({theme:e,ownerState:t})=>P({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})`:at(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 P({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&P({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":P({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:at(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)},{[`&.${cq.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),pq=u.forwardRef(function(t,n){const r=tt({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=se(r,uq),m=P({},r,{edge:o,color:a,disabled:c,disableFocusRipple:d,size:p}),v=dq(m);return T.jsx(fq,P({className:pe(v.root,s),centerRipple:!0,focusRipple:!d,disabled:c,ref:n,ownerState:m},h,{children:i}))}),ur=pq,hq=At(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"),mq=At(T.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),gq=At(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"),vq=At(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"),qO=At(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"),yq=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],bq=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`${t}${ce(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return ke(i,iq,o)},wq=oe(ui,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ce(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Vs:Us,r=e.palette.mode==="light"?Us:Vs,o=t.color||t.severity;return P({},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),[`& .${g2.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}`,[`& .${g2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&P({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)}))}),Cq=oe("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),xq=oe("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),v2=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}),y2={success:T.jsx(hq,{fontSize:"inherit"}),warning:T.jsx(mq,{fontSize:"inherit"}),error:T.jsx(gq,{fontSize:"inherit"}),info:T.jsx(vq,{fontSize:"inherit"})},Sq=u.forwardRef(function(t,n){var r,o,i,s,a,c;const d=tt({props:t,name:"MuiAlert"}),{action:p,children:h,className:m,closeText:v="Close",color:b,components:g={},componentsProps:S={},icon:C,iconMapping:E=y2,onClose:w,role:x="alert",severity:k="success",slotProps:I={},slots:_={},variant:M="standard"}=d,O=se(d,yq),R=P({},d,{color:b,severity:k,variant:M}),L=bq(R),H=(r=(o=_.closeButton)!=null?o:g.CloseButton)!=null?r:ur,j=(i=(s=_.closeIcon)!=null?s:g.CloseIcon)!=null?i:qO,A=(a=I.closeButton)!=null?a:S.closeButton,F=(c=I.closeIcon)!=null?c:S.closeIcon;return T.jsxs(wq,P({role:x,elevation:0,ownerState:R,className:pe(L.root,m),ref:n},O,{children:[C!==!1?T.jsx(Cq,{ownerState:R,className:L.icon,children:C||E[k]||y2[k]}):null,T.jsx(xq,{ownerState:R,className:L.message,children:h}),p!=null?T.jsx(v2,{ownerState:R,className:L.action,children:p}):null,p==null&&w?T.jsx(v2,{ownerState:R,className:L.action,children:T.jsx(H,P({size:"small","aria-label":v,title:v,color:"inherit",onClick:w},A,{children:T.jsx(j,P({fontSize:"small"},F))}))}):null]}))}),No=Sq;function Eq(e){return Ze("MuiTypography",e)}qe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Pq=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],kq=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${ce(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return ke(a,Eq,s)},_q=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${ce(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>P({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})),b2={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Iq={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},$q=e=>Iq[e]||e,Mq=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiTypography"}),o=$q(r.color),i=JC(P({},r,{color:o})),{align:s="inherit",className:a,component:c,gutterBottom:d=!1,noWrap:p=!1,paragraph:h=!1,variant:m="body1",variantMapping:v=b2}=i,b=se(i,Pq),g=P({},i,{align:s,color:o,className:a,component:c,gutterBottom:d,noWrap:p,paragraph:h,variant:m,variantMapping:v}),S=c||(h?"p":v[m]||b2[m])||"span",C=kq(g);return T.jsx(_q,P({as:S,ref:n,ownerState:g,className:pe(C.root,a)},b))}),Rr=Mq;function Rq(e){return Ze("MuiAppBar",e)}qe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const Tq=["className","color","enableColorOnDark","position"],Oq=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${ce(t)}`,`position${ce(n)}`]};return ke(o,Rq,r)},Vh=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Lq=oe(ui,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ce(n.position)}`],t[`color${ce(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return P({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&&P({},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"&&P({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&P({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Vh(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Vh(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:Vh(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Vh(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"}))}),Aq=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:s=!1,position:a="fixed"}=r,c=se(r,Tq),d=P({},r,{color:i,position:a,enableColorOnDark:s}),p=Oq(d);return T.jsx(Lq,P({square:!0,component:"header",ownerState:d,elevation:4,className:pe(p.root,o,a==="fixed"&&"mui-fixed"),ref:n},c))}),Fq=Aq,Nq=["components","componentsProps","slots","slotProps"],Dq=oe(XG,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Bq=u.forwardRef(function(t,n){var r;const o=Ev(),i=tt({props:t,name:"MuiPopper"}),{components:s,componentsProps:a,slots:c,slotProps:d}=i,p=se(i,Nq),h=(r=c==null?void 0:c.root)!=null?r:s==null?void 0:s.Root;return T.jsx(Dq,P({direction:o==null?void 0:o.direction,slots:{root:h},slotProps:d!=null?d:a},p,{ref:n}))}),Za=Bq;function zq(e){return Ze("MuiListSubheader",e)}qe("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const jq=["className","color","component","disableGutters","disableSticky","inset"],Hq=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,s={root:["root",n!=="default"&&`color${ce(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return ke(s,zq,t)},Vq=oe("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ce(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>P({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})),YO=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:s="li",disableGutters:a=!1,disableSticky:c=!1,inset:d=!1}=r,p=se(r,jq),h=P({},r,{color:i,component:s,disableGutters:a,disableSticky:c,inset:d}),m=Hq(h);return T.jsx(Vq,P({as:s,className:pe(m.root,o),ref:n,ownerState:h},p))});YO.muiSkipListHighlight=!0;const Uq=YO,Wq=At(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 Gq(e){return Ze("MuiChip",e)}const Kq=qe("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=Kq,qq=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Yq=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${ce(r)}`,`color${ce(o)}`,a&&"clickable",a&&`clickableColor${ce(o)}`,s&&"deletable",s&&`deletableColor${ce(o)}`,`${c}${ce(o)}`],label:["label",`label${ce(r)}`],avatar:["avatar",`avatar${ce(r)}`,`avatarColor${ce(o)}`],icon:["icon",`icon${ce(r)}`,`iconColor${ce(i)}`],deleteIcon:["deleteIcon",`deleteIcon${ce(r)}`,`deleteIconColor${ce(o)}`,`deleteIcon${ce(c)}Color${ce(o)}`]};return ke(d,Gq,t)},Xq=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${ce(a)}`]},{[`& .${Yt.avatar}`]:t[`avatarColor${ce(r)}`]},{[`& .${Yt.icon}`]:t.icon},{[`& .${Yt.icon}`]:t[`icon${ce(a)}`]},{[`& .${Yt.icon}`]:t[`iconColor${ce(o)}`]},{[`& .${Yt.deleteIcon}`]:t.deleteIcon},{[`& .${Yt.deleteIcon}`]:t[`deleteIcon${ce(a)}`]},{[`& .${Yt.deleteIcon}`]:t[`deleteIconColor${ce(r)}`]},{[`& .${Yt.deleteIcon}`]:t[`deleteIcon${ce(c)}Color${ce(r)}`]},t.root,t[`size${ce(a)}`],t[`color${ce(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${ce(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${ce(r)}`],t[c],t[`${c}${ce(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return P({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}`]:P({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&P({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Yt.deleteIcon}`]:P({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:at(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)`:at(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)`:at(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}))`:at(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})=>P({},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}))`:at(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}))`:at(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})=>P({},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)`:at(e.palette[t.color].main,.7)}`,[`&.${Yt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:at(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})`:at(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Yt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:at(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Qq=oe("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ce(r)}`]]}})(({ownerState:e})=>P({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function w2(e){return e.key==="Backspace"||e.key==="Delete"}const Jq=u.forwardRef(function(t,n){const r=tt({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:v,onDelete:b,onKeyDown:g,onKeyUp:S,size:C="medium",variant:E="filled",tabIndex:w,skipFocusWhenDisabled:x=!1}=r,k=se(r,qq),I=u.useRef(null),_=Ut(I,n),M=B=>{B.stopPropagation(),b&&b(B)},O=B=>{B.currentTarget===B.target&&w2(B)&&B.preventDefault(),g&&g(B)},R=B=>{B.currentTarget===B.target&&(b&&w2(B)?b(B):B.key==="Escape"&&I.current&&I.current.blur()),S&&S(B)},L=s!==!1&&v?!0:s,H=L||b?ss:c||"div",j=P({},r,{component:H,disabled:p,size:C,color:a,iconColor:u.isValidElement(h)&&h.props.color||a,onDelete:!!b,clickable:L,variant:E}),A=Yq(j),F=H===ss?P({component:c||"div",focusVisibleClassName:A.focusVisible},b&&{disableRipple:!0}):{};let z=null;b&&(z=d&&u.isValidElement(d)?u.cloneElement(d,{className:pe(d.props.className,A.deleteIcon),onClick:M}):T.jsx(Wq,{className:pe(A.deleteIcon),onClick:M}));let G=null;o&&u.isValidElement(o)&&(G=u.cloneElement(o,{className:pe(A.avatar,o.props.className)}));let N=null;return h&&u.isValidElement(h)&&(N=u.cloneElement(h,{className:pe(A.icon,h.props.className)})),T.jsxs(Xq,P({as:H,className:pe(A.root,i),disabled:L&&p?!0:void 0,onClick:v,onKeyDown:O,onKeyUp:R,ref:_,tabIndex:x&&p?-1:w,ownerState:j},F,k,{children:[G||N,T.jsx(Qq,{className:pe(A.label),ownerState:j,children:m}),z]}))}),Rv=Jq;function ec({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 Zq=u.createContext(void 0),Tv=Zq;function Xs(){return u.useContext(Tv)}function eY(e){return T.jsx(yU,P({},e,{defaultTheme:_v,themeId:Na}))}function C2(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function fx(e,t=!1){return e&&(C2(e.value)&&e.value!==""||t&&C2(e.defaultValue)&&e.defaultValue!=="")}function tY(e){return e.startAdornment}function nY(e){return Ze("MuiInputBase",e)}const rY=qe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),wo=rY,oY=["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"],Ov=(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${ce(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Lv=(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]},iY=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:v,type:b}=e,g={root:["root",`color${ce(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",s&&"focused",a&&"formControl",m==="small"&&"sizeSmall",p&&"multiline",v&&"adornedStart",i&&"adornedEnd",d&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",p&&"inputMultiline",m==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",v&&"inputAdornedStart",i&&"inputAdornedEnd",h&&"readOnly"]};return ke(g,nY,t)},Av=oe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ov})(({theme:e,ownerState:t})=>P({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${wo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&P({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Fv=oe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Lv})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=P({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 P({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${wo.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${wo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),sY=T.jsx(eY,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),lY=u.forwardRef(function(t,n){var r;const o=tt({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:c,components:d={},componentsProps:p={},defaultValue:h,disabled:m,disableInjectingGlobalStyles:v,endAdornment:b,fullWidth:g=!1,id:S,inputComponent:C="input",inputProps:E={},inputRef:w,maxRows:x,minRows:k,multiline:I=!1,name:_,onBlur:M,onChange:O,onClick:R,onFocus:L,onKeyDown:H,onKeyUp:j,placeholder:A,readOnly:F,renderSuffix:z,rows:G,slotProps:N={},slots:B={},startAdornment:W,type:q="text",value:X}=o,ie=se(o,oY),J=E.value!=null?E.value:X,{current:fe}=u.useRef(J!=null),Q=u.useRef(),le=u.useCallback(_e=>{},[]),ne=Ut(Q,w,E.ref,le),[he,be]=u.useState(!1),ge=Xs(),$e=ec({props:o,muiFormControl:ge,states:["color","disabled","error","hiddenLabel","size","required","filled"]});$e.focused=ge?ge.focused:he,u.useEffect(()=>{!ge&&m&&he&&(be(!1),M&&M())},[ge,m,he,M]);const Be=ge&&ge.onFilled,Le=ge&&ge.onEmpty,re=u.useCallback(_e=>{fx(_e)?Be&&Be():Le&&Le()},[Be,Le]);fn(()=>{fe&&re({value:J})},[J,re,fe]);const Te=_e=>{if($e.disabled){_e.stopPropagation();return}L&&L(_e),E.onFocus&&E.onFocus(_e),ge&&ge.onFocus?ge.onFocus(_e):be(!0)},ve=_e=>{M&&M(_e),E.onBlur&&E.onBlur(_e),ge&&ge.onBlur?ge.onBlur(_e):be(!1)},ze=(_e,...Me)=>{if(!fe){const Fe=_e.target||Q.current;if(Fe==null)throw new Error(Ul(1));re({value:Fe.value})}E.onChange&&E.onChange(_e,...Me),O&&O(_e,...Me)};u.useEffect(()=>{re(Q.current)},[]);const nt=_e=>{Q.current&&_e.currentTarget===_e.target&&Q.current.focus(),R&&R(_e)};let pt=C,Qe=E;I&&pt==="input"&&(G?Qe=P({type:void 0,minRows:G,maxRows:G},Qe):Qe=P({type:void 0,maxRows:x,minRows:k},Qe),pt=pK);const Ct=_e=>{re(_e.animationName==="mui-auto-fill-cancel"?Q.current:{value:"x"})};u.useEffect(()=>{ge&&ge.setAdornedStart(!!W)},[ge,W]);const it=P({},o,{color:$e.color||"primary",disabled:$e.disabled,endAdornment:b,error:$e.error,focused:$e.focused,formControl:ge,fullWidth:g,hiddenLabel:$e.hiddenLabel,multiline:I,size:$e.size,startAdornment:W,type:q}),vt=iY(it),ht=B.root||d.Root||Av,ct=N.root||p.root||{},Ge=B.input||d.Input||Fv;return Qe=P({},Qe,(r=N.input)!=null?r:p.input),T.jsxs(u.Fragment,{children:[!v&&sY,T.jsxs(ht,P({},ct,!Ba(ht)&&{ownerState:P({},it,ct.ownerState)},{ref:n,onClick:nt},ie,{className:pe(vt.root,ct.className,c,F&&"MuiInputBase-readOnly"),children:[W,T.jsx(Tv.Provider,{value:null,children:T.jsx(Ge,P({ownerState:it,"aria-invalid":$e.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:h,disabled:$e.disabled,id:S,onAnimationStart:Ct,name:_,placeholder:A,readOnly:F,required:$e.required,rows:G,value:J,onKeyDown:H,onKeyUp:j,type:q},Qe,!Ba(Ge)&&{as:pt,ownerState:P({},it,Qe.ownerState)},{ref:ne,className:pe(vt.input,Qe.className,F&&"MuiInputBase-readOnly"),onBlur:ve,onChange:ze,onFocus:Te}))}),b,z?z(P({},$e,{startAdornment:W})):null]}))]})}),Vu=lY;function aY(e){return Ze("MuiInput",e)}const cY=P({},wo,qe("MuiInput",["root","underline","input"])),Cl=cY;function uY(e){return Ze("MuiOutlinedInput",e)}const dY=P({},wo,qe("MuiOutlinedInput",["root","notchedOutline","input"])),Hi=dY;function fY(e){return Ze("MuiFilledInput",e)}const pY=P({},wo,qe("MuiFilledInput",["root","underline","input"])),Co=pY,XO=At(T.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function hY(e){return Ze("MuiAutocomplete",e)}const mY=qe("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=mY;var x2,S2;const gY=["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"],vY=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${ce(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 ke(h,hY,t)},yY=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${ce(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})=>P({[`&.${Dt.focused} .${Dt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Dt.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${Dt.tag}`]:P({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}},[`& .${Cl.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Cl.root}.${wo.sizeSmall}`]:{[`& .${Cl.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Hi.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}},[`& .${Hi.root}.${wo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Dt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Co.root}`]:{paddingTop:19,paddingLeft:8,[`.${Dt.hasPopupIcon}&, .${Dt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${Dt.hasPopupIcon}.${Dt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Co.input}`]:{padding:"7px 4px"},[`& .${Dt.endAdornment}`]:{right:9}},[`& .${Co.root}.${wo.sizeSmall}`]:{paddingBottom:1,[`& .${Co.input}`]:{padding:"2.5px 4px"}},[`& .${wo.hiddenLabel}`]:{paddingTop:8},[`& .${Co.root}.${wo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Dt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Co.root}.${wo.hiddenLabel}.${wo.sizeSmall}`]:{[`& .${Dt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Dt.input}`]:P({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),bY=oe("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),wY=oe(ur,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),CY=oe(ur,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>P({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>P({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),xY=oe(Za,{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})=>P({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),SY=oe(ui,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>P({},e.typography.body1,{overflow:"auto"})),EY=oe("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),PY=oe("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),kY=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})`:at(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}))`:at(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}))`:at(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),_Y=oe(Uq,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),IY=oe("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Dt.option}`]:{paddingLeft:24}}),$Y=u.forwardRef(function(t,n){var r,o,i,s;const a=tt({props:t,name:"MuiAutocomplete"}),{autoComplete:c=!1,autoHighlight:d=!1,autoSelect:p=!1,blurOnSelect:h=!1,ChipProps:m,className:v,clearIcon:b=x2||(x2=T.jsx(qO,{fontSize:"small"})),clearOnBlur:g=!a.freeSolo,clearOnEscape:S=!1,clearText:C="Clear",closeText:E="Close",componentsProps:w={},defaultValue:x=a.multiple?[]:null,disableClearable:k=!1,disableCloseOnSelect:I=!1,disabled:_=!1,disabledItemsFocusable:M=!1,disableListWrap:O=!1,disablePortal:R=!1,filterSelectedOptions:L=!1,forcePopupIcon:H="auto",freeSolo:j=!1,fullWidth:A=!1,getLimitTagsText:F=je=>`+${je}`,getOptionLabel:z=je=>{var xt;return(xt=je.label)!=null?xt:je},groupBy:G,handleHomeEndKeys:N=!a.freeSolo,includeInputInList:B=!1,limitTags:W=-1,ListboxComponent:q="ul",ListboxProps:X,loading:ie=!1,loadingText:J="Loading…",multiple:fe=!1,noOptionsText:Q="No options",openOnFocus:le=!1,openText:ne="Open",PaperComponent:he=ui,PopperComponent:be=Za,popupIcon:ge=S2||(S2=T.jsx(XO,{})),readOnly:$e=!1,renderGroup:Be,renderInput:Le,renderOption:re,renderTags:Te,selectOnFocus:ve=!a.freeSolo,size:ze="medium",slotProps:nt={}}=a,pt=se(a,gY),{getRootProps:Qe,getInputProps:Ct,getInputLabelProps:it,getPopupIndicatorProps:vt,getClearProps:ht,getTagProps:ct,getListboxProps:Ge,getOptionProps:_e,value:Me,dirty:Fe,expanded:Ve,id:Se,popupOpen:Oe,focused:Ue,focusedTag:st,anchorEl:Ft,setAnchorEl:an,inputValue:yn,groupedOptions:Wn}=gK(P({},a,{componentName:"Autocomplete"})),xr=!k&&!_&&Fe&&!$e,Sr=(!j||H===!0)&&H!==!1,{onMouseDown:Fr}=Ct(),Bn=P({},a,{disablePortal:R,expanded:Ve,focused:Ue,fullWidth:A,hasClearIcon:xr,hasPopupIcon:Sr,inputFocused:st===-1,popupOpen:Oe,size:ze}),cn=vY(Bn);let Xn;if(fe&&Me.length>0){const je=xt=>P({className:cn.tag,disabled:_},ct(xt));Te?Xn=Te(Me,je,Bn):Xn=Me.map((xt,Wt)=>T.jsx(Rv,P({label:z(xt),size:ze},je({index:Wt}),m)))}if(W>-1&&Array.isArray(Xn)){const je=Xn.length-W;!Ue&&je>0&&(Xn=Xn.splice(0,W),Xn.push(T.jsx("span",{className:cn.tag,children:F(je)},Xn.length)))}const Ai=Be||(je=>T.jsxs("li",{children:[T.jsx(_Y,{className:cn.groupLabel,ownerState:Bn,component:"div",children:je.group}),T.jsx(IY,{className:cn.groupUl,ownerState:Bn,children:je.children})]},je.key)),fs=re||((je,xt)=>T.jsx("li",P({},je,{children:z(xt)}))),ae=(je,xt)=>{const Wt=_e({option:je,index:xt});return fs(P({},Wt,{className:cn.option}),je,{selected:Wt["aria-selected"],index:xt,inputValue:yn})},ye=(r=nt.clearIndicator)!=null?r:w.clearIndicator,Ae=(o=nt.paper)!=null?o:w.paper,ut=(i=nt.popper)!=null?i:w.popper,ot=(s=nt.popupIndicator)!=null?s:w.popupIndicator;return T.jsxs(u.Fragment,{children:[T.jsx(yY,P({ref:n,className:pe(cn.root,v),ownerState:Bn},Qe(pt),{children:Le({id:Se,disabled:_,fullWidth:!0,size:ze==="small"?"small":void 0,InputLabelProps:it(),InputProps:P({ref:an,className:cn.inputRoot,startAdornment:Xn,onClick:je=>{je.target===je.currentTarget&&Fr(je)}},(xr||Sr)&&{endAdornment:T.jsxs(bY,{className:cn.endAdornment,ownerState:Bn,children:[xr?T.jsx(wY,P({},ht(),{"aria-label":C,title:C,ownerState:Bn},ye,{className:pe(cn.clearIndicator,ye==null?void 0:ye.className),children:b})):null,Sr?T.jsx(CY,P({},vt(),{disabled:_,"aria-label":Oe?E:ne,title:Oe?E:ne,ownerState:Bn},ot,{className:pe(cn.popupIndicator,ot==null?void 0:ot.className),children:ge})):null]})}),inputProps:P({className:cn.input,disabled:_,readOnly:$e},Ct())})})),Ft?T.jsx(xY,P({as:be,disablePortal:R,style:{width:Ft?Ft.clientWidth:null},ownerState:Bn,role:"presentation",anchorEl:Ft,open:Oe},ut,{className:pe(cn.popper,ut==null?void 0:ut.className),children:T.jsxs(SY,P({ownerState:Bn,as:he},Ae,{className:pe(cn.paper,Ae==null?void 0:Ae.className),children:[ie&&Wn.length===0?T.jsx(EY,{className:cn.loading,ownerState:Bn,children:J}):null,Wn.length===0&&!j&&!ie?T.jsx(PY,{className:cn.noOptions,ownerState:Bn,role:"presentation",onMouseDown:je=>{je.preventDefault()},children:Q}):null,Wn.length>0?T.jsx(kY,P({as:q,className:cn.listbox,ownerState:Bn},Ge(),X,{children:Wn.map((je,xt)=>G?Ai({key:je.key,group:je.group,children:je.options.map((Wt,En)=>ae(Wt,je.index+En))}):ae(je,xt))})):null]}))})):null]})}),px=$Y,MY=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],RY={entering:{opacity:1},entered:{opacity:1}},TY=u.forwardRef(function(t,n){const r=ao(),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:v,onExited:b,onExiting:g,style:S,timeout:C=o,TransitionComponent:E=$v}=t,w=se(t,MY),x=u.useRef(null),k=Ut(x,a.ref,n),I=A=>F=>{if(A){const z=x.current;F===void 0?A(z):A(z,F)}},_=I(m),M=I((A,F)=>{dx(A);const z=Gl({style:S,timeout:C,easing:c},{mode:"enter"});A.style.webkitTransition=r.transitions.create("opacity",z),A.style.transition=r.transitions.create("opacity",z),p&&p(A,F)}),O=I(h),R=I(g),L=I(A=>{const F=Gl({style:S,timeout:C,easing:c},{mode:"exit"});A.style.webkitTransition=r.transitions.create("opacity",F),A.style.transition=r.transitions.create("opacity",F),v&&v(A)}),H=I(b),j=A=>{i&&i(x.current,A)};return T.jsx(E,P({appear:s,in:d,nodeRef:x,onEnter:M,onEntered:O,onEntering:_,onExit:L,onExited:H,onExiting:R,addEndListener:j,timeout:C},w,{children:(A,F)=>u.cloneElement(a,P({style:P({opacity:0,visibility:A==="exited"&&!d?"hidden":void 0},RY[A],S,a.props.style),ref:k},F))}))}),QO=TY;function OY(e){return Ze("MuiBackdrop",e)}qe("MuiBackdrop",["root","invisible"]);const LY=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],AY=e=>{const{classes:t,invisible:n}=e;return ke({root:["root",n&&"invisible"]},OY,t)},FY=oe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>P({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"})),NY=u.forwardRef(function(t,n){var r,o,i;const s=tt({props:t,name:"MuiBackdrop"}),{children:a,className:c,component:d="div",components:p={},componentsProps:h={},invisible:m=!1,open:v,slotProps:b={},slots:g={},TransitionComponent:S=QO,transitionDuration:C}=s,E=se(s,LY),w=P({},s,{component:d,invisible:m}),x=AY(w),k=(r=b.root)!=null?r:h.root;return T.jsx(S,P({in:v,timeout:C},E,{children:T.jsx(FY,P({"aria-hidden":!0},k,{as:(o=(i=g.root)!=null?i:p.Root)!=null?o:d,className:pe(x.root,c,k==null?void 0:k.className),ownerState:P({},w,k==null?void 0:k.ownerState),classes:x,ref:n,children:a}))}))}),JO=NY;function DY(e){return Ze("MuiBadge",e)}const BY=qe("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"]),al=BY,zY=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],db=10,fb=4,jY=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:s={}}=e,a={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${ce(n.vertical)}${ce(n.horizontal)}`,`anchorOrigin${ce(n.vertical)}${ce(n.horizontal)}${ce(o)}`,`overlap${ce(o)}`,t!=="default"&&`color${ce(t)}`]};return ke(a,DY,s)},HY=oe("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),VY=oe("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${ce(n.anchorOrigin.vertical)}${ce(n.anchorOrigin.horizontal)}${ce(n.overlap)}`],n.color!=="default"&&t[`color${ce(n.color)}`],n.invisible&&t.invisible]}})(({theme:e,ownerState:t})=>P({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:db*2,lineHeight:1,padding:"0 6px",height:db*2,borderRadius:db,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:fb,height:fb*2,minWidth:fb*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%",[`&.${al.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%",[`&.${al.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%",[`&.${al.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%",[`&.${al.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%",[`&.${al.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%",[`&.${al.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%",[`&.${al.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%",[`&.${al.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})})),UY=u.forwardRef(function(t,n){var r,o,i,s,a,c;const d=tt({props:t,name:"MuiBadge"}),{anchorOrigin:p={vertical:"top",horizontal:"right"},className:h,component:m,components:v={},componentsProps:b={},children:g,overlap:S="rectangular",color:C="default",invisible:E=!1,max:w=99,badgeContent:x,slots:k,slotProps:I,showZero:_=!1,variant:M="standard"}=d,O=se(d,zY),{badgeContent:R,invisible:L,max:H,displayValue:j}=PW({max:w,invisible:E,badgeContent:x,showZero:_}),A=NC({anchorOrigin:p,color:C,overlap:S,variant:M,badgeContent:x}),F=L||R==null&&M!=="dot",{color:z=C,overlap:G=S,anchorOrigin:N=p,variant:B=M}=F?A:d,W=B!=="dot"?j:void 0,q=P({},d,{badgeContent:R,invisible:F,max:H,displayValue:W,showZero:_,anchorOrigin:N,color:z,overlap:G,variant:B}),X=jY(q),ie=(r=(o=k==null?void 0:k.root)!=null?o:v.Root)!=null?r:HY,J=(i=(s=k==null?void 0:k.badge)!=null?s:v.Badge)!=null?i:VY,fe=(a=I==null?void 0:I.root)!=null?a:b.root,Q=(c=I==null?void 0:I.badge)!=null?c:b.badge,le=Ws({elementType:ie,externalSlotProps:fe,externalForwardedProps:O,additionalProps:{ref:n,as:m},ownerState:q,className:pe(fe==null?void 0:fe.className,X.root,h)}),ne=Ws({elementType:J,externalSlotProps:Q,ownerState:q,className:pe(X.badge,Q==null?void 0:Q.className)});return T.jsxs(ie,P({},le,{children:[g,T.jsx(J,P({},ne,{children:W}))]}))}),ZO=UY,WY=ex(),GY=xU({themeId:Na,defaultTheme:WY,defaultClassName:"MuiBox-root",generateClassName:BC.generate}),Je=GY;function KY(e){return Ze("MuiButton",e)}const qY=qe("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"]),Uh=qY,YY=u.createContext({}),XY=YY,QY=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],JY=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${ce(t)}`,`size${ce(o)}`,`${i}Size${ce(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${ce(o)}`],endIcon:["endIcon",`iconSize${ce(o)}`]},c=ke(a,KY,s);return P({},s,c)},eL=e=>P({},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}}),ZY=oe(ss,{shouldForwardProp:e=>Fo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ce(n.color)}`],t[`size${ce(n.size)}`],t[`${n.variant}Size${ce(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 P({},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":P({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:at(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})`:at(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})`:at(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":P({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Uh.focusVisible}`]:P({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Uh.disabled}`]:P({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 ${at(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"},[`&.${Uh.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Uh.disabled}`]:{boxShadow:"none"}}),eX=oe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ce(n.size)}`]]}})(({ownerState:e})=>P({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},eL(e))),tX=oe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ce(n.size)}`]]}})(({ownerState:e})=>P({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},eL(e))),nX=u.forwardRef(function(t,n){const r=u.useContext(XY),o=DC(r,t),i=tt({props:o,name:"MuiButton"}),{children:s,color:a="primary",component:c="button",className:d,disabled:p=!1,disableElevation:h=!1,disableFocusRipple:m=!1,endIcon:v,focusVisibleClassName:b,fullWidth:g=!1,size:S="medium",startIcon:C,type:E,variant:w="text"}=i,x=se(i,QY),k=P({},i,{color:a,component:c,disabled:p,disableElevation:h,disableFocusRipple:m,fullWidth:g,size:S,type:E,variant:w}),I=JY(k),_=C&&T.jsx(eX,{className:I.startIcon,ownerState:k,children:C}),M=v&&T.jsx(tX,{className:I.endIcon,ownerState:k,children:v});return T.jsxs(ZY,P({ownerState:k,className:pe(r.className,I.root,d),component:c,disabled:p,focusRipple:!m,focusVisibleClassName:pe(I.focusVisible,b),ref:n,type:E},x,{classes:I,children:[_,s,M]}))}),fr=nX;function rX(e){return Ze("MuiCard",e)}qe("MuiCard",["root"]);const oX=["className","raised"],iX=e=>{const{classes:t}=e;return ke({root:["root"]},rX,t)},sX=oe(ui,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),lX=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,s=se(r,oX),a=P({},r,{raised:i}),c=iX(a);return T.jsx(sX,P({className:pe(c.root,o),elevation:i?8:void 0,ref:n,ownerState:a},s))}),tL=lX;function aX(e){return Ze("MuiCardContent",e)}qe("MuiCardContent",["root"]);const cX=["className","component"],uX=e=>{const{classes:t}=e;return ke({root:["root"]},aX,t)},dX=oe("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),fX=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiCardContent"}),{className:o,component:i="div"}=r,s=se(r,cX),a=P({},r,{component:i}),c=uX(a);return T.jsx(dX,P({as:i,className:pe(c.root,o),ownerState:a,ref:n},s))}),nL=fX;function pX(e){return Ze("PrivateSwitchBase",e)}qe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const hX=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],mX=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${ce(o)}`],input:["input"]};return ke(i,pX,t)},gX=oe(ss)(({ownerState:e})=>P({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),vX=oe("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),yX=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:v,inputRef:b,name:g,onBlur:S,onChange:C,onFocus:E,readOnly:w,required:x=!1,tabIndex:k,type:I,value:_}=t,M=se(t,hX),[O,R]=Zi({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),L=Xs(),H=B=>{E&&E(B),L&&L.onFocus&&L.onFocus(B)},j=B=>{S&&S(B),L&&L.onBlur&&L.onBlur(B)},A=B=>{if(B.nativeEvent.defaultPrevented)return;const W=B.target.checked;R(W),C&&C(B,W)};let F=c;L&&typeof F=="undefined"&&(F=L.disabled);const z=I==="checkbox"||I==="radio",G=P({},t,{checked:O,disabled:F,disableFocusRipple:d,edge:p}),N=mX(G);return T.jsxs(gX,P({component:"span",className:pe(N.root,s),centerRipple:!0,focusRipple:!d,disabled:F,tabIndex:null,role:void 0,onFocus:H,onBlur:j,ownerState:G,ref:n},M,{children:[T.jsx(vX,P({autoFocus:r,checked:o,defaultChecked:a,className:N.input,disabled:F,id:z?m:void 0,name:g,onChange:A,readOnly:w,ref:b,required:x,ownerState:G,tabIndex:k,type:I},I==="checkbox"&&_===void 0?{}:{value:_},v)),O?i:h]}))}),rL=yX,bX=At(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"),wX=At(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"),CX=At(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 xX(e){return Ze("MuiCheckbox",e)}const SX=qe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),pb=SX,EX=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],PX=e=>{const{classes:t,indeterminate:n,color:r}=e,o={root:["root",n&&"indeterminate",`color${ce(r)}`]},i=ke(o,xX,t);return P({},t,i)},kX=oe(rL,{shouldForwardProp:e=>Fo(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${ce(n.color)}`]]}})(({theme:e,ownerState:t})=>P({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})`:at(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${pb.checked}, &.${pb.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${pb.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),_X=T.jsx(wX,{}),IX=T.jsx(bX,{}),$X=T.jsx(CX,{}),MX=u.forwardRef(function(t,n){var r,o;const i=tt({props:t,name:"MuiCheckbox"}),{checkedIcon:s=_X,color:a="primary",icon:c=IX,indeterminate:d=!1,indeterminateIcon:p=$X,inputProps:h,size:m="medium",className:v}=i,b=se(i,EX),g=d?p:c,S=d?p:s,C=P({},i,{color:a,indeterminate:d,size:m}),E=PX(C);return T.jsx(kX,P({type:"checkbox",inputProps:P({"data-indeterminate":d},h),icon:u.cloneElement(g,{fontSize:(r=g.props.fontSize)!=null?r:m}),checkedIcon:u.cloneElement(S,{fontSize:(o=S.props.fontSize)!=null?o:m}),ownerState:C,ref:n,className:pe(E.root,v)},b,{classes:E}))}),oL=MX;function RX(e){return Ze("MuiCircularProgress",e)}qe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const TX=["className","color","disableShrink","size","style","thickness","value","variant"];let Nv=e=>e,E2,P2,k2,_2;const cl=44,OX=as(E2||(E2=Nv`
163
+ 0% {
164
+ transform: rotate(0deg);
165
+ }
166
+
167
+ 100% {
168
+ transform: rotate(360deg);
169
+ }
170
+ `)),LX=as(P2||(P2=Nv`
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
+ `)),AX=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${ce(r)}`],svg:["svg"],circle:["circle",`circle${ce(n)}`,o&&"circleDisableShrink"]};return ke(i,RX,t)},FX=oe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ce(n.color)}`]]}})(({ownerState:e,theme:t})=>P({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"&&Wl(k2||(k2=Nv`
186
+ animation: ${0} 1.4s linear infinite;
187
+ `),OX)),NX=oe("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),DX=oe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ce(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>P({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&&Wl(_2||(_2=Nv`
188
+ animation: ${0} 1.4s ease-in-out infinite;
189
+ `),LX)),BX=u.forwardRef(function(t,n){const r=tt({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=se(r,TX),v=P({},r,{color:i,disableShrink:s,size:a,thickness:d,value:p,variant:h}),b=AX(v),g={},S={},C={};if(h==="determinate"){const E=2*Math.PI*((cl-d)/2);g.strokeDasharray=E.toFixed(3),C["aria-valuenow"]=Math.round(p),g.strokeDashoffset=`${((100-p)/100*E).toFixed(3)}px`,S.transform="rotate(-90deg)"}return T.jsx(FX,P({className:pe(b.root,o),style:P({width:a,height:a},S,c),ownerState:v,ref:n,role:"progressbar"},C,m,{children:T.jsx(NX,{className:b.svg,ownerState:v,viewBox:`${cl/2} ${cl/2} ${cl} ${cl}`,children:T.jsx(DX,{className:b.circle,style:g,ownerState:v,cx:cl,cy:cl,r:(cl-d)/2,fill:"none",strokeWidth:d})})}))}),Uu=BX,zX=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],jX=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})=>P({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),HX=oe(JO,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),VX=u.forwardRef(function(t,n){var r,o,i,s,a,c;const d=tt({name:"MuiModal",props:t}),{BackdropComponent:p=HX,BackdropProps:h,classes:m,className:v,closeAfterTransition:b=!1,children:g,component:S,components:C={},componentsProps:E={},disableAutoFocus:w=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:k=!1,disablePortal:I=!1,disableRestoreFocus:_=!1,disableScrollLock:M=!1,hideBackdrop:O=!1,keepMounted:R=!1,slotProps:L,slots:H,theme:j}=d,A=se(d,zX),[F,z]=u.useState(!0),G={closeAfterTransition:b,disableAutoFocus:w,disableEnforceFocus:x,disableEscapeKeyDown:k,disablePortal:I,disableRestoreFocus:_,disableScrollLock:M,hideBackdrop:O,keepMounted:R},N=P({},d,G,{exited:F}),B=(r=(o=H==null?void 0:H.root)!=null?o:C.Root)!=null?r:jX,W=(i=(s=H==null?void 0:H.backdrop)!=null?s:C.Backdrop)!=null?i:p,q=(a=L==null?void 0:L.root)!=null?a:E.root,X=(c=L==null?void 0:L.backdrop)!=null?c:E.backdrop;return T.jsx(cK,P({slots:{root:B,backdrop:W},slotProps:{root:()=>P({},W1(q,N),!Ba(B)&&{as:S,theme:j},{className:pe(v,q==null?void 0:q.className,m==null?void 0:m.root,!N.open&&N.exited&&(m==null?void 0:m.hidden))}),backdrop:()=>P({},h,W1(X,N),{className:pe(X==null?void 0:X.className,m==null?void 0:m.backdrop)})},onTransitionEnter:()=>z(!1),onTransitionExited:()=>z(!0),ref:n},A,G,{children:g}))}),hx=VX;function UX(e){return Ze("MuiDialog",e)}const WX=qe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),hb=WX,GX=u.createContext({}),iL=GX,KX=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],qX=oe(JO,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),YX=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${ce(n)}`],paper:["paper",`paperScroll${ce(n)}`,`paperWidth${ce(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return ke(s,UX,t)},XX=oe(hx,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),QX=oe("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ce(n.scroll)}`]]}})(({ownerState:e})=>P({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"}})),JX=oe(ui,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ce(n.scroll)}`],t[`paperWidth${ce(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>P({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}`,[`&.${hb.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}`,[`&.${hb.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,[`&.${hb.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),ZX=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiDialog"}),o=ao(),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:v=!1,fullWidth:b=!1,maxWidth:g="sm",onBackdropClick:S,onClose:C,open:E,PaperComponent:w=ui,PaperProps:x={},scroll:k="paper",TransitionComponent:I=QO,transitionDuration:_=i,TransitionProps:M}=r,O=se(r,KX),R=P({},r,{disableEscapeKeyDown:m,fullScreen:v,fullWidth:b,maxWidth:g,scroll:k}),L=YX(R),H=u.useRef(),j=G=>{H.current=G.target===G.currentTarget},A=G=>{H.current&&(H.current=null,S&&S(G),C&&C(G,"backdropClick"))},F=In(a),z=u.useMemo(()=>({titleId:F}),[F]);return T.jsx(XX,P({className:pe(L.root,h),closeAfterTransition:!0,components:{Backdrop:qX},componentsProps:{backdrop:P({transitionDuration:_,as:c},d)},disableEscapeKeyDown:m,onClose:C,open:E,ref:n,onClick:A,ownerState:R},O,{children:T.jsx(I,P({appear:!0,in:E,timeout:_,role:"presentation"},M,{children:T.jsx(QX,{className:pe(L.container),onMouseDown:j,ownerState:R,children:T.jsx(JX,P({as:w,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":F},x,{className:pe(L.paper,x.className),ownerState:R,children:T.jsx(iL.Provider,{value:z,children:p})}))})}))}))}),eQ=ZX;function tQ(e){return Ze("MuiDialogContent",e)}qe("MuiDialogContent",["root","dividers"]);function nQ(e){return Ze("MuiDialogTitle",e)}const rQ=qe("MuiDialogTitle",["root"]),oQ=rQ,iQ=["className","dividers"],sQ=e=>{const{classes:t,dividers:n}=e;return ke({root:["root",n&&"dividers"]},tQ,t)},lQ=oe("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>P({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}`}:{[`.${oQ.root} + &`]:{paddingTop:0}})),aQ=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=se(r,iQ),a=P({},r,{dividers:i}),c=sQ(a);return T.jsx(lQ,P({className:pe(c.root,o),ownerState:a,ref:n},s))}),cQ=aQ,uQ=["className","id"],dQ=e=>{const{classes:t}=e;return ke({root:["root"]},nQ,t)},fQ=oe(Rr,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),pQ=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,s=se(r,uQ),a=r,c=dQ(a),{titleId:d=i}=u.useContext(iL);return T.jsx(fQ,P({component:"h2",className:pe(c.root,o),ownerState:a,ref:n,variant:"h6",id:i!=null?i:d},s))}),hQ=pQ,mQ=qe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),I2=mQ,gQ=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function vQ(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=so(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 yQ(e){return typeof e=="function"?e():e}function Wh(e,t,n){const r=yQ(n),o=vQ(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const bQ=u.forwardRef(function(t,n){const r=ao(),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:v,onEntered:b,onEntering:g,onExit:S,onExited:C,onExiting:E,style:w,timeout:x=i,TransitionComponent:k=$v}=t,I=se(t,gQ),_=u.useRef(null),M=Ut(c.ref,_,n),O=N=>B=>{N&&(B===void 0?N(_.current):N(_.current,B))},R=O((N,B)=>{Wh(p,N,d),dx(N),v&&v(N,B)}),L=O((N,B)=>{const W=Gl({timeout:x,style:w,easing:h},{mode:"enter"});N.style.webkitTransition=r.transitions.create("-webkit-transform",P({},W)),N.style.transition=r.transitions.create("transform",P({},W)),N.style.webkitTransform="none",N.style.transform="none",g&&g(N,B)}),H=O(b),j=O(E),A=O(N=>{const B=Gl({timeout:x,style:w,easing:h},{mode:"exit"});N.style.webkitTransition=r.transitions.create("-webkit-transform",B),N.style.transition=r.transitions.create("transform",B),Wh(p,N,d),S&&S(N)}),F=O(N=>{N.style.webkitTransition="",N.style.transition="",C&&C(N)}),z=N=>{s&&s(_.current,N)},G=u.useCallback(()=>{_.current&&Wh(p,_.current,d)},[p,d]);return u.useEffect(()=>{if(m||p==="down"||p==="right")return;const N=Hs(()=>{_.current&&Wh(p,_.current,d)}),B=so(_.current);return B.addEventListener("resize",N),()=>{N.clear(),B.removeEventListener("resize",N)}},[p,m,d]),u.useEffect(()=>{m||G()},[m,G]),T.jsx(k,P({nodeRef:_,onEnter:R,onEntered:H,onEntering:L,onExit:A,onExited:F,onExiting:j,addEndListener:z,appear:a,in:m,timeout:x},I,{children:(N,B)=>u.cloneElement(c,P({ref:M,style:P({visibility:N==="exited"&&!m?"hidden":void 0},w,c.props.style)},B))}))}),wQ=bQ;function CQ(e){return Ze("MuiDrawer",e)}qe("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const xQ=["BackdropProps"],SQ=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],sL=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},EQ=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ce(n)}`,r!=="temporary"&&`paperAnchorDocked${ce(n)}`]};return ke(o,CQ,t)},PQ=oe(hx,{name:"MuiDrawer",slot:"Root",overridesResolver:sL})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),$2=oe("div",{shouldForwardProp:Fo,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:sL})({flex:"0 0 auto"}),kQ=oe(ui,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${ce(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${ce(n.anchor)}`]]}})(({theme:e,ownerState:t})=>P({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}`})),lL={left:"right",right:"left",top:"down",bottom:"up"};function _Q(e){return["left","right"].indexOf(e)!==-1}function IQ(e,t){return e.direction==="rtl"&&_Q(t)?lL[t]:t}const $Q=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiDrawer"}),o=ao(),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:v,open:b=!1,PaperProps:g={},SlideProps:S,TransitionComponent:C=wQ,transitionDuration:E=i,variant:w="temporary"}=r,x=se(r.ModalProps,xQ),k=se(r,SQ),I=u.useRef(!1);u.useEffect(()=>{I.current=!0},[]);const _=IQ(o,s),O=P({},r,{anchor:s,elevation:p,open:b,variant:w},k),R=EQ(O),L=T.jsx(kQ,P({elevation:w==="temporary"?p:0,square:!0},g,{className:pe(R.paper,g.className),ownerState:O,children:c}));if(w==="permanent")return T.jsx($2,P({className:pe(R.root,R.docked,d),ownerState:O,ref:n},k,{children:L}));const H=T.jsx(C,P({in:b,direction:lL[_],timeout:E,appear:I.current},S,{children:L}));return w==="persistent"?T.jsx($2,P({className:pe(R.root,R.docked,d),ownerState:O,ref:n},k,{children:H})):T.jsx(PQ,P({BackdropProps:P({},a,m,{transitionDuration:E}),className:pe(R.root,R.modal,d),open:b,ownerState:O,onClose:v,hideBackdrop:h,ref:n},k,x,{children:H}))}),MQ=$Q,RQ=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],TQ=e=>{const{classes:t,disableUnderline:n}=e,o=ke({root:["root",!n&&"underline"],input:["input"]},fY,t);return P({},t,o)},OQ=oe(Av,{shouldForwardProp:e=>Fo(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ov(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 P({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}},[`&.${Co.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Co.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"},[`&.${Co.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Co.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(.${Co.disabled}, .${Co.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Co.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&P({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),LQ=oe(Fv,{name:"MuiFilledInput",slot:"Input",overridesResolver:Lv})(({theme:e,ownerState:t})=>P({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})),aL=u.forwardRef(function(t,n){var r,o,i,s;const a=tt({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:d,fullWidth:p=!1,inputComponent:h="input",multiline:m=!1,slotProps:v,slots:b={},type:g="text"}=a,S=se(a,RQ),C=P({},a,{fullWidth:p,inputComponent:h,multiline:m,type:g}),E=TQ(a),w={root:{ownerState:C},input:{ownerState:C}},x=(v!=null?v:d)?ti(v!=null?v:d,w):w,k=(r=(o=b.root)!=null?o:c.Root)!=null?r:OQ,I=(i=(s=b.input)!=null?s:c.Input)!=null?i:LQ;return T.jsx(Vu,P({slots:{root:k,input:I},componentsProps:x,fullWidth:p,inputComponent:h,multiline:m,ref:n,type:g},S,{classes:E}))});aL.muiName="Input";const cL=aL;function AQ(e){return Ze("MuiFormControl",e)}qe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const FQ=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],NQ=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ce(n)}`,r&&"fullWidth"]};return ke(o,AQ,t)},DQ=oe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>P({},t.root,t[`margin${ce(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>P({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%"})),BQ=u.forwardRef(function(t,n){const r=tt({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:v="none",required:b=!1,size:g="medium",variant:S="outlined"}=r,C=se(r,FQ),E=P({},r,{color:s,component:a,disabled:c,error:d,fullWidth:h,hiddenLabel:m,margin:v,required:b,size:g,variant:S}),w=NQ(E),[x,k]=u.useState(()=>{let j=!1;return o&&u.Children.forEach(o,A=>{if(!lf(A,["Input","Select"]))return;const F=lf(A,["Select"])?A.props.input:A;F&&tY(F.props)&&(j=!0)}),j}),[I,_]=u.useState(()=>{let j=!1;return o&&u.Children.forEach(o,A=>{lf(A,["Input","Select"])&&fx(A.props,!0)&&(j=!0)}),j}),[M,O]=u.useState(!1);c&&M&&O(!1);const R=p!==void 0&&!c?p:M;let L;const H=u.useMemo(()=>({adornedStart:x,setAdornedStart:k,color:s,disabled:c,error:d,filled:I,focused:R,fullWidth:h,hiddenLabel:m,size:g,onBlur:()=>{O(!1)},onEmpty:()=>{_(!1)},onFilled:()=>{_(!0)},onFocus:()=>{O(!0)},registerEffect:L,required:b,variant:S}),[x,s,c,d,I,R,h,m,L,b,g,S]);return T.jsx(Tv.Provider,{value:H,children:T.jsx(DQ,P({as:a,ownerState:E,className:pe(w.root,i),ref:n},C,{children:o}))})}),tc=BQ;function zQ(e){return Ze("MuiFormControlLabel",e)}const jQ=qe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Wd=jQ,HQ=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],VQ=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${ce(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return ke(s,zQ,t)},UQ=oe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Wd.label}`]:t.label},t.root,t[`labelPlacement${ce(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>P({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Wd.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},{[`& .${Wd.label}`]:{[`&.${Wd.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),WQ=oe("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Wd.error}`]:{color:(e.vars||e).palette.error.main}})),GQ=u.forwardRef(function(t,n){var r,o;const i=tt({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:c,disabled:d,disableTypography:p,label:h,labelPlacement:m="end",required:v,slotProps:b={}}=i,g=se(i,HQ),S=Xs(),C=(r=d!=null?d:c.props.disabled)!=null?r:S==null?void 0:S.disabled,E=v!=null?v:c.props.required,w={disabled:C,required:E};["checked","name","onChange","value","inputRef"].forEach(O=>{typeof c.props[O]=="undefined"&&typeof i[O]!="undefined"&&(w[O]=i[O])});const x=ec({props:i,muiFormControl:S,states:["error"]}),k=P({},i,{disabled:C,labelPlacement:m,required:E,error:x.error}),I=VQ(k),_=(o=b.typography)!=null?o:a.typography;let M=h;return M!=null&&M.type!==Rr&&!p&&(M=T.jsx(Rr,P({component:"span"},_,{className:pe(I.label,_==null?void 0:_.className),children:M}))),T.jsxs(UQ,P({className:pe(I.root,s),ownerState:k,ref:n},g,{children:[u.cloneElement(c,w),M,E&&T.jsxs(WQ,{ownerState:k,"aria-hidden":!0,className:I.asterisk,children:[" ","*"]})]}))}),uL=GQ;function KQ(e){return Ze("MuiFormHelperText",e)}const qQ=qe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),M2=qQ;var R2;const YQ=["children","className","component","disabled","error","filled","focused","margin","required","variant"],XQ=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${ce(r)}`,n&&"contained",a&&"focused",s&&"filled",c&&"required"]};return ke(d,KQ,t)},QQ=oe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ce(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>P({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${M2.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${M2.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),JQ=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,a=se(r,YQ),c=Xs(),d=ec({props:r,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),p=P({},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=XQ(p);return T.jsx(QQ,P({as:s,ownerState:p,className:pe(h.root,i),ref:n},a,{children:o===" "?R2||(R2=T.jsx("span",{className:"notranslate",children:"​"})):o}))}),Dv=JQ;function ZQ(e){return Ze("MuiFormLabel",e)}const eJ=qe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),pf=eJ,tJ=["children","className","color","component","disabled","error","filled","focused","required"],nJ=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=e,c={root:["root",`color${ce(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return ke(c,ZQ,t)},rJ=oe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>P({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>P({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${pf.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${pf.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${pf.error}`]:{color:(e.vars||e).palette.error.main}})),oJ=oe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${pf.error}`]:{color:(e.vars||e).palette.error.main}})),iJ=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,a=se(r,tJ),c=Xs(),d=ec({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),p=P({},r,{color:d.color||"primary",component:s,disabled:d.disabled,error:d.error,filled:d.filled,focused:d.focused,required:d.required}),h=nJ(p);return T.jsxs(rJ,P({as:s,ownerState:p,className:pe(h.root,i),ref:n},a,{children:[o,d.required&&T.jsxs(oJ,{ownerState:p,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),dL=iJ,sJ=u.createContext(),T2=sJ;function lJ(e){return Ze("MuiGrid",e)}const aJ=[0,1,2,3,4,5,6,7,8,9,10],cJ=["column-reverse","column","row-reverse","row"],uJ=["nowrap","wrap-reverse","wrap"],$d=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Wf=qe("MuiGrid",["root","container","item","zeroMinWidth",...aJ.map(e=>`spacing-xs-${e}`),...cJ.map(e=>`direction-xs-${e}`),...uJ.map(e=>`wrap-xs-${e}`),...$d.map(e=>`grid-xs-${e}`),...$d.map(e=>`grid-sm-${e}`),...$d.map(e=>`grid-md-${e}`),...$d.map(e=>`grid-lg-${e}`),...$d.map(e=>`grid-xl-${e}`)]),dJ=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function au(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function fJ({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=gv({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} + ${au(p)})`;d={flexBasis:h,maxWidth:h}}}i=P({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 pJ({theme:e,ownerState:t}){const n=gv({values:t.direction,breakpoints:e.breakpoints.values});return ii({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${Wf.item}`]={maxWidth:"none"}),o})}function fL({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 hJ({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=gv({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=fL({breakpoints:e.breakpoints.values,values:i})),o=ii({theme:e},i,(a,c)=>{var d;const p=e.spacing(a);return p!=="0px"?{marginTop:`-${au(p)}`,[`& > .${Wf.item}`]:{paddingTop:au(p)}}:(d=s)!=null&&d.includes(c)?{}:{marginTop:0,[`& > .${Wf.item}`]:{paddingTop:0}}})}return o}function mJ({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=gv({values:r,breakpoints:e.breakpoints.values});let s;typeof i=="object"&&(s=fL({breakpoints:e.breakpoints.values,values:i})),o=ii({theme:e},i,(a,c)=>{var d;const p=e.spacing(a);return p!=="0px"?{width:`calc(100% + ${au(p)})`,marginLeft:`-${au(p)}`,[`& > .${Wf.item}`]:{paddingLeft:au(p)}}:(d=s)!=null&&d.includes(c)?{}:{width:"100%",marginLeft:0,[`& > .${Wf.item}`]:{paddingLeft:0}}})}return o}function gJ(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 vJ=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=gJ(s,d,t));const h=[];return d.forEach(m=>{const v=n[m];v&&h.push(t[`grid-${m}-${String(v)}`])}),[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})=>P({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}),pJ,hJ,mJ,fJ);function yJ(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 bJ=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:s,zeroMinWidth:a,breakpoints:c}=e;let d=[];n&&(d=yJ(i,c));const p=[];c.forEach(m=>{const v=e[m];v&&p.push(`grid-${m}-${String(v)}`)});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 ke(h,lJ,t)},wJ=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiGrid"}),{breakpoints:o}=ao(),i=JC(r),{className:s,columns:a,columnSpacing:c,component:d="div",container:p=!1,direction:h="row",item:m=!1,rowSpacing:v,spacing:b=0,wrap:g="wrap",zeroMinWidth:S=!1}=i,C=se(i,dJ),E=v||b,w=c||b,x=u.useContext(T2),k=p?a||12:x,I={},_=P({},C);o.keys.forEach(R=>{C[R]!=null&&(I[R]=C[R],delete _[R])});const M=P({},i,{columns:k,container:p,direction:h,item:m,rowSpacing:E,columnSpacing:w,wrap:g,zeroMinWidth:S,spacing:b},I,{breakpoints:o.keys}),O=bJ(M);return T.jsx(T2.Provider,{value:k,children:T.jsx(vJ,P({ownerState:M,className:pe(O.root,s),as:d,ref:n},_))})}),Qn=wJ,CJ=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Z1(e){return`scale(${e}, ${xs(e,2)})`}const xJ={entering:{opacity:1,transform:Z1(1)},entered:{opacity:1,transform:"none"}},mb=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),pL=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:v,style:b,timeout:g="auto",TransitionComponent:S=$v}=t,C=se(t,CJ),E=u.useRef(),w=u.useRef(),x=ao(),k=u.useRef(null),I=Ut(k,i.ref,n),_=F=>z=>{if(F){const G=k.current;z===void 0?F(G):F(G,z)}},M=_(p),O=_((F,z)=>{dx(F);const{duration:G,delay:N,easing:B}=Gl({style:b,timeout:g,easing:s},{mode:"enter"});let W;g==="auto"?(W=x.transitions.getAutoHeightDuration(F.clientHeight),w.current=W):W=G,F.style.transition=[x.transitions.create("opacity",{duration:W,delay:N}),x.transitions.create("transform",{duration:mb?W:W*.666,delay:N,easing:B})].join(","),c&&c(F,z)}),R=_(d),L=_(v),H=_(F=>{const{duration:z,delay:G,easing:N}=Gl({style:b,timeout:g,easing:s},{mode:"exit"});let B;g==="auto"?(B=x.transitions.getAutoHeightDuration(F.clientHeight),w.current=B):B=z,F.style.transition=[x.transitions.create("opacity",{duration:B,delay:G}),x.transitions.create("transform",{duration:mb?B:B*.666,delay:mb?G:G||B*.333,easing:N})].join(","),F.style.opacity=0,F.style.transform=Z1(.75),h&&h(F)}),j=_(m),A=F=>{g==="auto"&&(E.current=setTimeout(F,w.current||0)),r&&r(k.current,F)};return u.useEffect(()=>()=>{clearTimeout(E.current)},[]),T.jsx(S,P({appear:o,in:a,nodeRef:k,onEnter:O,onEntered:R,onEntering:M,onExit:H,onExited:j,onExiting:L,addEndListener:A,timeout:g==="auto"?null:g},C,{children:(F,z)=>u.cloneElement(i,P({style:P({opacity:0,transform:Z1(.75),visibility:F==="exited"&&!a?"hidden":void 0},xJ[F],b,i.props.style),ref:I},z))}))});pL.muiSupportAuto=!0;const sg=pL;function SJ(e,t,n,r,o){const[i,s]=u.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return fn(()=>{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 hL=Ra["useSyncExternalStore"];function EJ(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 hL(c,a,s)}function mL(e,t={}){const n=Ev(),r=typeof window!="undefined"&&typeof window.matchMedia!="undefined",{defaultMatches:o=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:a=!1}=_O({name:"MuiUseMediaQuery",props:t,theme:n});let c=typeof e=="function"?e(n):e;return c=c.replace(/^@media( ?)/m,""),(hL!==void 0?EJ:SJ)(c,o,i,s,a)}const PJ=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],kJ=e=>{const{classes:t,disableUnderline:n}=e,o=ke({root:["root",!n&&"underline"],input:["input"]},aY,t);return P({},t,o)},_J=oe(Av,{shouldForwardProp:e=>Fo(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ov(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})`),P({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"},[`&.${Cl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Cl.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(.${Cl.disabled}, .${Cl.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Cl.disabled}:before`]:{borderBottomStyle:"dotted"}})}),IJ=oe(Fv,{name:"MuiInput",slot:"Input",overridesResolver:Lv})({}),gL=u.forwardRef(function(t,n){var r,o,i,s;const a=tt({props:t,name:"MuiInput"}),{disableUnderline:c,components:d={},componentsProps:p,fullWidth:h=!1,inputComponent:m="input",multiline:v=!1,slotProps:b,slots:g={},type:S="text"}=a,C=se(a,PJ),E=kJ(a),x={root:{ownerState:{disableUnderline:c}}},k=(b!=null?b:p)?ti(b!=null?b:p,x):x,I=(r=(o=g.root)!=null?o:d.Root)!=null?r:_J,_=(i=(s=g.input)!=null?s:d.Input)!=null?i:IJ;return T.jsx(Vu,P({slots:{root:I,input:_},slotProps:k,fullWidth:h,inputComponent:m,multiline:v,ref:n,type:S},C,{classes:E}))});gL.muiName="Input";const vL=gL;function $J(e){return Ze("MuiInputAdornment",e)}const MJ=qe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),O2=MJ;var L2;const RJ=["children","className","component","disablePointerEvents","disableTypography","position","variant"],TJ=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ce(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},OJ=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${ce(o)}`,s,r&&"hiddenLabel",i&&`size${ce(i)}`]};return ke(a,$J,t)},LJ=oe("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:TJ})(({theme:e,ownerState:t})=>P({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${O2.positionStart}&:not(.${O2.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),AJ=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:s="div",disablePointerEvents:a=!1,disableTypography:c=!1,position:d,variant:p}=r,h=se(r,RJ),m=Xs()||{};let v=p;p&&m.variant,m&&!v&&(v=m.variant);const b=P({},r,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:a,position:d,variant:v}),g=OJ(b);return T.jsx(Tv.Provider,{value:null,children:T.jsx(LJ,P({as:s,ownerState:b,className:pe(g.root,i),ref:n},h,{children:typeof o=="string"&&!c?T.jsx(Rr,{color:"text.secondary",children:o}):T.jsxs(u.Fragment,{children:[d==="start"?L2||(L2=T.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),lg=AJ;function FJ(e){return Ze("MuiInputLabel",e)}qe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const NJ=["disableAnimation","margin","shrink","variant","className"],DJ=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=e,d=ke({root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r==="small"&&"sizeSmall",s],asterisk:[a&&"asterisk"]},FJ,t);return P({},t,d)},BJ=oe(dL,{shouldForwardProp:e=>Fo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${pf.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})=>P({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"&&P({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&&P({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"&&P({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)"}))),zJ=u.forwardRef(function(t,n){const r=tt({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:s}=r,a=se(r,NJ),c=Xs();let d=i;typeof d=="undefined"&&c&&(d=c.filled||c.focused||c.adornedStart);const p=ec({props:r,muiFormControl:c,states:["size","variant","required"]}),h=P({},r,{disableAnimation:o,formControl:c,shrink:d,size:p.size,variant:p.variant,required:p.required}),m=DJ(h);return T.jsx(BJ,P({"data-shrink":d,ownerState:h,ref:n,className:pe(m.root,s)},a,{classes:m}))}),ew=zJ;function jJ(e){return Ze("MuiLinearProgress",e)}qe("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const HJ=["className","color","value","valueBuffer","variant"];let Wu=e=>e,A2,F2,N2,D2,B2,z2;const tw=4,VJ=as(A2||(A2=Wu`
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
+ `)),UJ=as(F2||(F2=Wu`
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
+ `)),WJ=as(N2||(N2=Wu`
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
+ `)),GJ=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${ce(r)}`,n],dashed:["dashed",`dashedColor${ce(r)}`],bar1:["bar",`barColor${ce(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${ce(r)}`,n==="buffer"&&`color${ce(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return ke(o,jJ,t)},mx=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?Us(e.palette[t].main,.62):Vs(e.palette[t].main,.5),KJ=oe("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ce(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>P({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:mx(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)"})),qJ=oe("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${ce(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=mx(t,e.color);return P({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"})},Wl(D2||(D2=Wu`
235
+ animation: ${0} 3s infinite linear;
236
+ `),WJ)),YJ=oe("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${ce(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>P({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 .${tw}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${tw}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Wl(B2||(B2=Wu`
237
+ width: auto;
238
+ animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
239
+ `),VJ)),XJ=oe("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${ce(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>P({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:mx(t,e.color),transition:`transform .${tw}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Wl(z2||(z2=Wu`
240
+ width: auto;
241
+ animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
242
+ `),UJ)),QJ=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:s,valueBuffer:a,variant:c="indeterminate"}=r,d=se(r,HJ),p=P({},r,{color:i,variant:c}),h=GJ(p),m=ao(),v={},b={bar1:{},bar2:{}};if((c==="determinate"||c==="buffer")&&s!==void 0){v["aria-valuenow"]=Math.round(s),v["aria-valuemin"]=0,v["aria-valuemax"]=100;let g=s-100;m.direction==="rtl"&&(g=-g),b.bar1.transform=`translateX(${g}%)`}if(c==="buffer"&&a!==void 0){let g=(a||0)-100;m.direction==="rtl"&&(g=-g),b.bar2.transform=`translateX(${g}%)`}return T.jsxs(KJ,P({className:pe(h.root,o),ownerState:p,role:"progressbar"},v,{ref:n},d,{children:[c==="buffer"?T.jsx(qJ,{className:h.dashed,ownerState:p}):null,T.jsx(YJ,{className:h.bar1,ownerState:p,style:b.bar1}),c==="determinate"?null:T.jsx(XJ,{className:h.bar2,ownerState:p,style:b.bar2})]}))}),JJ=QJ;function ZJ(e){return Ze("MuiLink",e)}const eZ=qe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),tZ=eZ,yL={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},nZ=e=>yL[e]||e,rZ=({theme:e,ownerState:t})=>{const n=nZ(t.color),r=xu(e,`palette.${n}`,!1)||t.color,o=xu(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:at(r,.4)},oZ=rZ,iZ=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],sZ=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${ce(o)}`,n==="button"&&"button",r&&"focusVisible"]};return ke(i,ZJ,t)},lZ=oe(Rr,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ce(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>P({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&P({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:oZ({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"},[`&.${tZ.focusVisible}`]:{outline:"auto"}})),aZ=u.forwardRef(function(t,n){const r=tt({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,v=se(r,iZ),{isFocusVisibleRef:b,onBlur:g,onFocus:S,ref:C}=tv(),[E,w]=u.useState(!1),x=Ut(n,C),k=O=>{g(O),b.current===!1&&w(!1),a&&a(O)},I=O=>{S(O),b.current===!0&&w(!0),c&&c(O)},_=P({},r,{color:i,component:s,focusVisible:E,underline:p,variant:h}),M=sZ(_);return T.jsx(lZ,P({color:i,className:pe(M.root,o),classes:d,component:s,onBlur:k,onFocus:I,ref:x,ownerState:_,variant:h,sx:[...Object.keys(yL).includes(i)?[]:[{color:i}],...Array.isArray(m)?m:[m]]},v))}),Zo=aZ,cZ=u.createContext({}),_i=cZ;function uZ(e){return Ze("MuiList",e)}qe("MuiList",["root","padding","dense","subheader"]);const dZ=["children","className","component","dense","disablePadding","subheader"],fZ=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ke({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},uZ,t)},pZ=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})=>P({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),hZ=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:c=!1,subheader:d}=r,p=se(r,dZ),h=u.useMemo(()=>({dense:a}),[a]),m=P({},r,{component:s,dense:a,disablePadding:c}),v=fZ(m);return T.jsx(_i.Provider,{value:h,children:T.jsxs(pZ,P({as:s,className:pe(v.root,i),ref:n,ownerState:m},p,{children:[d,o]}))})}),Bv=hZ;function mZ(e){return Ze("MuiListItem",e)}const gZ=qe("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Fc=gZ;function vZ(e){return Ze("MuiListItemButton",e)}const yZ=qe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Nc=yZ,bZ=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],wZ=(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]},CZ=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:s,selected:a}=e,d=ke({root:["root",r&&"dense",!i&&"gutters",s&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},vZ,n);return P({},n,d)},xZ=oe(ss,{shouldForwardProp:e=>Fo(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:wZ})(({theme:e,ownerState:t})=>P({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"}},[`&.${Nc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:at(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Nc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:at(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Nc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:at(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})`:at(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Nc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Nc.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})),SZ=u.forwardRef(function(t,n){const r=tt({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:v}=r,b=se(r,bZ),g=u.useContext(_i),S=u.useMemo(()=>({dense:c||g.dense||!1,alignItems:o,disableGutters:d}),[o,g.dense,c,d]),C=u.useRef(null);fn(()=>{i&&C.current&&C.current.focus()},[i]);const E=P({},r,{alignItems:o,dense:S.dense,disableGutters:d,divider:p,selected:m}),w=CZ(E),x=Ut(C,n);return T.jsx(_i.Provider,{value:S,children:T.jsx(xZ,P({ref:x,href:b.href||b.to,component:(b.href||b.to)&&s==="div"?"button":s,focusVisibleClassName:pe(w.focusVisible,h),ownerState:E,className:pe(w.root,v)},b,{classes:w,children:a}))})}),EZ=SZ;function PZ(e){return Ze("MuiListItemSecondaryAction",e)}qe("MuiListItemSecondaryAction",["root","disableGutters"]);const kZ=["className"],_Z=e=>{const{disableGutters:t,classes:n}=e;return ke({root:["root",t&&"disableGutters"]},PZ,n)},IZ=oe("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>P({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),bL=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=se(r,kZ),s=u.useContext(_i),a=P({},r,{disableGutters:s.disableGutters}),c=_Z(a);return T.jsx(IZ,P({className:pe(c.root,o),ownerState:a,ref:n},i))});bL.muiName="ListItemSecondaryAction";const $Z=bL,MZ=["className"],RZ=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],TZ=(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]},OZ=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:s,disablePadding:a,divider:c,hasSecondaryAction:d,selected:p}=e;return ke({root:["root",o&&"dense",!s&&"gutters",!a&&"padding",c&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",d&&"secondaryAction",p&&"selected"],container:["container"]},mZ,r)},LZ=oe("div",{name:"MuiListItem",slot:"Root",overridesResolver:TZ})(({theme:e,ownerState:t})=>P({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&P({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Nc.root}`]:{paddingRight:48}},{[`&.${Fc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Fc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:at(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Fc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:at(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Fc.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"}},[`&.${Fc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:at(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})`:at(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),AZ=oe("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),FZ=u.forwardRef(function(t,n){const r=tt({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:v}={},dense:b=!1,disabled:g=!1,disableGutters:S=!1,disablePadding:C=!1,divider:E=!1,focusVisibleClassName:w,secondaryAction:x,selected:k=!1,slotProps:I={},slots:_={}}=r,M=se(r.ContainerProps,MZ),O=se(r,RZ),R=u.useContext(_i),L=u.useMemo(()=>({dense:b||R.dense||!1,alignItems:o,disableGutters:S}),[o,R.dense,b,S]),H=u.useRef(null);fn(()=>{i&&H.current&&H.current.focus()},[i]);const j=u.Children.toArray(a),A=j.length&&lf(j[j.length-1],["ListItemSecondaryAction"]),F=P({},r,{alignItems:o,autoFocus:i,button:s,dense:L.dense,disabled:g,disableGutters:S,disablePadding:C,divider:E,hasSecondaryAction:A,selected:k}),z=OZ(F),G=Ut(H,n),N=_.root||p.Root||LZ,B=I.root||h.root||{},W=P({className:pe(z.root,B.className,c),disabled:g},O);let q=d||"li";return s&&(W.component=d||"div",W.focusVisibleClassName=pe(Fc.focusVisible,w),q=ss),A?(q=!W.component&&!d?"div":q,m==="li"&&(q==="li"?q="div":W.component==="li"&&(W.component="div")),T.jsx(_i.Provider,{value:L,children:T.jsxs(AZ,P({as:m,className:pe(z.container,v),ref:G,ownerState:F},M,{children:[T.jsx(N,P({},B,!Ba(N)&&{as:q,ownerState:P({},F,B.ownerState)},W,{children:j})),j.pop()]}))})):T.jsx(_i.Provider,{value:L,children:T.jsxs(N,P({},B,{as:q,ref:G},!Ba(N)&&{ownerState:P({},F,B.ownerState)},W,{children:[j,x&&T.jsx($Z,{children:x})]}))})}),wL=FZ;function NZ(e){return Ze("MuiListItemIcon",e)}const DZ=qe("MuiListItemIcon",["root","alignItemsFlexStart"]),j2=DZ,BZ=["className"],zZ=e=>{const{alignItems:t,classes:n}=e;return ke({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},NZ,n)},jZ=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})=>P({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),HZ=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=se(r,BZ),s=u.useContext(_i),a=P({},r,{alignItems:s.alignItems}),c=zZ(a);return T.jsx(jZ,P({className:pe(c.root,o),ownerState:a,ref:n},i))}),CL=HZ;function VZ(e){return Ze("MuiListItemText",e)}const UZ=qe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ag=UZ,WZ=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],GZ=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return ke({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},VZ,t)},KZ=oe("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ag.primary}`]:t.primary},{[`& .${ag.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>P({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),qZ=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:a=!1,primary:c,primaryTypographyProps:d,secondary:p,secondaryTypographyProps:h}=r,m=se(r,WZ),{dense:v}=u.useContext(_i);let b=c!=null?c:o,g=p;const S=P({},r,{disableTypography:s,inset:a,primary:!!b,secondary:!!g,dense:v}),C=GZ(S);return b!=null&&b.type!==Rr&&!s&&(b=T.jsx(Rr,P({variant:v?"body2":"body1",className:C.primary,component:d!=null&&d.variant?void 0:"span",display:"block"},d,{children:b}))),g!=null&&g.type!==Rr&&!s&&(g=T.jsx(Rr,P({variant:"body2",className:C.secondary,color:"text.secondary",display:"block"},h,{children:g}))),T.jsxs(KZ,P({className:pe(C.root,i),ownerState:S,ref:n},m,{children:[b,g]}))}),zv=qZ,YZ=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function gb(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function H2(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function xL(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 Md(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")||!xL(a,i)||c)a=o(e,a,n);else return a.focus(),!0}return!1}const XZ=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=se(t,YZ),v=u.useRef(null),b=u.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});fn(()=>{o&&v.current.focus()},[o]),u.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,x)=>{const k=!v.current.style.width;if(w.clientHeight<v.current.clientHeight&&k){const I=`${nO(gn(w))}px`;v.current.style[x.direction==="rtl"?"paddingLeft":"paddingRight"]=I,v.current.style.width=`calc(100% + ${I})`}return v.current}}),[]);const g=w=>{const x=v.current,k=w.key,I=gn(x).activeElement;if(k==="ArrowDown")w.preventDefault(),Md(x,I,d,c,gb);else if(k==="ArrowUp")w.preventDefault(),Md(x,I,d,c,H2);else if(k==="Home")w.preventDefault(),Md(x,null,d,c,gb);else if(k==="End")w.preventDefault(),Md(x,null,d,c,H2);else if(k.length===1){const _=b.current,M=k.toLowerCase(),O=performance.now();_.keys.length>0&&(O-_.lastTime>500?(_.keys=[],_.repeating=!0,_.previousKeyMatched=!0):_.repeating&&M!==_.keys[0]&&(_.repeating=!1)),_.lastTime=O,_.keys.push(M);const R=I&&!_.repeating&&xL(I,_);_.previousKeyMatched&&(R||Md(x,I,!1,c,gb,_))?w.preventDefault():_.previousKeyMatched=!1}p&&p(w)},S=Ut(v,n);let C=-1;u.Children.forEach(s,(w,x)=>{u.isValidElement(w)&&(w.props.disabled||(h==="selectedMenu"&&w.props.selected||C===-1)&&(C=x),C===x&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(C+=1,C>=s.length&&(C=-1)))});const E=u.Children.map(s,(w,x)=>{if(x===C){const k={};return i&&(k.autoFocus=!0),w.props.tabIndex===void 0&&h==="selectedMenu"&&(k.tabIndex=0),u.cloneElement(w,k)}return w});return T.jsx(Bv,P({role:"menu",ref:S,className:a,onKeyDown:g,tabIndex:o?0:-1},m,{children:E}))}),jv=XZ;function QZ(e){return Ze("MuiPopover",e)}qe("MuiPopover",["root","paper"]);const JZ=["onEntering"],ZZ=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function V2(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function U2(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function W2(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function vb(e){return typeof e=="function"?e():e}const eee=e=>{const{classes:t}=e;return ke({root:["root"],paper:["paper"]},QZ,t)},tee=oe(hx,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nee=oe(ui,{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}),ree=u.forwardRef(function(t,n){const r=tt({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:v=16,open:b,PaperProps:g={},transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:C=sg,transitionDuration:E="auto",TransitionProps:{onEntering:w}={}}=r,x=se(r.TransitionProps,JZ),k=se(r,ZZ),I=u.useRef(),_=Ut(I,g.ref),M=P({},r,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:v,PaperProps:g,transformOrigin:S,TransitionComponent:C,transitionDuration:E,TransitionProps:x}),O=eee(M),R=u.useCallback(()=>{if(c==="anchorPosition")return a;const W=vb(i),X=(W&&W.nodeType===1?W:gn(I.current).body).getBoundingClientRect();return{top:X.top+V2(X,s.vertical),left:X.left+U2(X,s.horizontal)}},[i,s.horizontal,s.vertical,a,c]),L=u.useCallback(W=>({vertical:V2(W,S.vertical),horizontal:U2(W,S.horizontal)}),[S.horizontal,S.vertical]),H=u.useCallback(W=>{const q={width:W.offsetWidth,height:W.offsetHeight},X=L(q);if(c==="none")return{top:null,left:null,transformOrigin:W2(X)};const ie=R();let J=ie.top-X.vertical,fe=ie.left-X.horizontal;const Q=J+q.height,le=fe+q.width,ne=so(vb(i)),he=ne.innerHeight-v,be=ne.innerWidth-v;if(J<v){const ge=J-v;J-=ge,X.vertical+=ge}else if(Q>he){const ge=Q-he;J-=ge,X.vertical+=ge}if(fe<v){const ge=fe-v;fe-=ge,X.horizontal+=ge}else if(le>be){const ge=le-be;fe-=ge,X.horizontal+=ge}return{top:`${Math.round(J)}px`,left:`${Math.round(fe)}px`,transformOrigin:W2(X)}},[i,c,R,L,v]),[j,A]=u.useState(b),F=u.useCallback(()=>{const W=I.current;if(!W)return;const q=H(W);q.top!==null&&(W.style.top=q.top),q.left!==null&&(W.style.left=q.left),W.style.transformOrigin=q.transformOrigin,A(!0)},[H]),z=(W,q)=>{w&&w(W,q),F()},G=()=>{A(!1)};u.useEffect(()=>{b&&F()}),u.useImperativeHandle(o,()=>b?{updatePosition:()=>{F()}}:null,[b,F]),u.useEffect(()=>{if(!b)return;const W=Hs(()=>{F()}),q=so(i);return q.addEventListener("resize",W),()=>{W.clear(),q.removeEventListener("resize",W)}},[i,b,F]);let N=E;E==="auto"&&!C.muiSupportAuto&&(N=void 0);const B=h||(i?gn(vb(i)).body:void 0);return T.jsx(tee,P({BackdropProps:{invisible:!0},className:pe(O.root,p),container:B,open:b,ref:n,ownerState:M},k,{children:T.jsx(C,P({appear:!0,in:b,onEntering:z,onExited:G,timeout:N},x,{children:T.jsx(nee,P({elevation:m},g,{ref:_,className:pe(O.paper,g.className)},j?void 0:{style:P({},g.style,{opacity:0})},{ownerState:M,children:d}))}))}))}),oee=ree;function iee(e){return Ze("MuiMenu",e)}qe("MuiMenu",["root","paper","list"]);const see=["onEntering"],lee=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],aee={vertical:"top",horizontal:"right"},cee={vertical:"top",horizontal:"left"},uee=e=>{const{classes:t}=e;return ke({root:["root"],paper:["paper"],list:["list"]},iee,t)},dee=oe(oee,{shouldForwardProp:e=>Fo(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),fee=oe(ui,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),pee=oe(jv,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),hee=u.forwardRef(function(t,n){const r=tt({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:v}={},variant:b="selectedMenu"}=r,g=se(r.TransitionProps,see),S=se(r,lee),C=ao(),E=C.direction==="rtl",w=P({},r,{autoFocus:o,disableAutoFocusItem:s,MenuListProps:a,onEntering:v,PaperProps:p,transitionDuration:m,TransitionProps:g,variant:b}),x=uee(w),k=o&&!s&&d,I=u.useRef(null),_=(R,L)=>{I.current&&I.current.adjustStyleForScrollbar(R,C),v&&v(R,L)},M=R=>{R.key==="Tab"&&(R.preventDefault(),c&&c(R,"tabKeyDown"))};let O=-1;return u.Children.map(i,(R,L)=>{u.isValidElement(R)&&(R.props.disabled||(b==="selectedMenu"&&R.props.selected||O===-1)&&(O=L))}),T.jsx(dee,P({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?aee:cee,PaperProps:P({as:fee},p,{classes:P({},p.classes,{root:x.paper})}),className:x.root,open:d,ref:n,transitionDuration:m,TransitionProps:P({onEntering:_},g),ownerState:w},S,{classes:h,children:T.jsx(pee,P({onKeyDown:M,actions:I,autoFocus:o&&(O===-1||s),autoFocusItem:k,variant:b},a,{className:pe(x.list,a.className),children:i}))}))}),SL=hee;function mee(e){return Ze("MuiMenuItem",e)}const gee=qe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Rd=gee,vee=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],yee=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},bee=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,c=ke({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},mee,s);return P({},s,c)},wee=oe(ss,{shouldForwardProp:e=>Fo(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:yee})(({theme:e,ownerState:t})=>P({},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"}},[`&.${Rd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:at(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Rd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:at(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Rd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:at(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})`:at(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Rd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Rd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${I2.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${I2.inset}`]:{marginLeft:52},[`& .${ag.root}`]:{marginTop:0,marginBottom:0},[`& .${ag.inset}`]:{paddingLeft:36},[`& .${j2.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&P({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${j2.root} svg`]:{fontSize:"1.25rem"}}))),Cee=u.forwardRef(function(t,n){const r=tt({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,v=se(r,vee),b=u.useContext(_i),g=u.useMemo(()=>({dense:s||b.dense||!1,disableGutters:c}),[b.dense,s,c]),S=u.useRef(null);fn(()=>{o&&S.current&&S.current.focus()},[o]);const C=P({},r,{dense:g.dense,divider:a,disableGutters:c}),E=bee(r),w=Ut(S,n);let x;return r.disabled||(x=h!==void 0?h:-1),T.jsx(_i.Provider,{value:g,children:T.jsx(wee,P({ref:w,role:p,tabIndex:x,component:i,focusVisibleClassName:pe(E.focusVisible,d),className:pe(E.root,m)},v,{ownerState:C,classes:E}))})}),pr=Cee;function xee(e){return Ze("MuiNativeSelect",e)}const See=qe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),gx=See,Eee=["className","disabled","error","IconComponent","inputRef","variant"],Pee=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${ce(n)}`,i&&"iconOpen",r&&"disabled"]};return ke(a,xee,t)},EL=({ownerState:e,theme:t})=>P({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":P({},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"},[`&.${gx.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}}),kee=oe("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Fo,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${gx.multiple}`]:t.multiple}]}})(EL),PL=({ownerState:e,theme:t})=>P({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${gx.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),_ee=oe("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ce(n.variant)}`],n.open&&t.iconOpen]}})(PL),Iee=u.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:c="standard"}=t,d=se(t,Eee),p=P({},t,{disabled:o,variant:c,error:i}),h=Pee(p);return T.jsxs(u.Fragment,{children:[T.jsx(kee,P({ownerState:p,className:pe(h.select,r),disabled:o,ref:a||n},d)),t.multiple?null:T.jsx(_ee,{as:s,ownerState:p,className:h.icon})]})}),$ee=Iee;var G2;const Mee=["children","classes","className","label","notched"],Ree=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%"}),Tee=oe("legend")(({ownerState:e,theme:t})=>P({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&&P({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 Oee(e){const{className:t,label:n,notched:r}=e,o=se(e,Mee),i=n!=null&&n!=="",s=P({},e,{notched:r,withLabel:i});return T.jsx(Ree,P({"aria-hidden":!0,className:t,ownerState:s},o,{children:T.jsx(Tee,{ownerState:s,children:i?T.jsx("span",{children:n}):G2||(G2=T.jsx("span",{className:"notranslate",children:"​"}))})}))}const Lee=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Aee=e=>{const{classes:t}=e,r=ke({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},uY,t);return P({},t,r)},Fee=oe(Av,{shouldForwardProp:e=>Fo(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ov})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return P({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Hi.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Hi.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Hi.focused} .${Hi.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Hi.error} .${Hi.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Hi.disabled} .${Hi.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&P({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Nee=oe(Oee,{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}}),Dee=oe(Fv,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Lv})(({theme:e,ownerState:t})=>P({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})),kL=u.forwardRef(function(t,n){var r,o,i,s,a;const c=tt({props:t,name:"MuiOutlinedInput"}),{components:d={},fullWidth:p=!1,inputComponent:h="input",label:m,multiline:v=!1,notched:b,slots:g={},type:S="text"}=c,C=se(c,Lee),E=Aee(c),w=Xs(),x=ec({props:c,muiFormControl:w,states:["required"]}),k=P({},c,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:w,fullWidth:p,hiddenLabel:x.hiddenLabel,multiline:v,size:x.size,type:S}),I=(r=(o=g.root)!=null?o:d.Root)!=null?r:Fee,_=(i=(s=g.input)!=null?s:d.Input)!=null?i:Dee;return T.jsx(Vu,P({slots:{root:I,input:_},renderSuffix:M=>T.jsx(Nee,{ownerState:k,className:E.notchedOutline,label:m!=null&&m!==""&&x.required?a||(a=T.jsxs(u.Fragment,{children:[m," ","*"]})):m,notched:typeof b!="undefined"?b:!!(M.startAdornment||M.filled||M.focused)}),fullWidth:p,inputComponent:h,multiline:v,ref:n,type:S},C,{classes:P({},E,{notchedOutline:null})}))});kL.muiName="Input";const _L=kL,K2=At(T.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),q2=At(T.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function Bee(e){return Ze("MuiSelect",e)}const zee=qe("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Td=zee;var Y2;const jee=["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"],Hee=oe("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Td.select}`]:t.select},{[`&.${Td.select}`]:t[n.variant]},{[`&.${Td.error}`]:t.error},{[`&.${Td.multiple}`]:t.multiple}]}})(EL,{[`&.${Td.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Vee=oe("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ce(n.variant)}`],n.open&&t.iconOpen]}})(PL),Uee=oe("input",{shouldForwardProp:e=>mW(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 X2(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Wee(e){return e==null||typeof e=="string"&&!e.trim()}const Gee=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${ce(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ke(a,Bee,t)},Kee=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:v=!1,IconComponent:b,inputRef:g,labelId:S,MenuProps:C={},multiple:E,name:w,onBlur:x,onChange:k,onClose:I,onFocus:_,onOpen:M,open:O,readOnly:R,renderValue:L,SelectDisplayProps:H={},tabIndex:j,value:A,variant:F="standard"}=t,z=se(t,jee),[G,N]=Zi({controlled:A,default:p,name:"Select"}),[B,W]=Zi({controlled:O,default:d,name:"Select"}),q=u.useRef(null),X=u.useRef(null),[ie,J]=u.useState(null),{current:fe}=u.useRef(O!=null),[Q,le]=u.useState(),ne=Ut(n,g),he=u.useCallback(Fe=>{X.current=Fe,Fe&&J(Fe)},[]),be=ie==null?void 0:ie.parentNode;u.useImperativeHandle(ne,()=>({focus:()=>{X.current.focus()},node:q.current,value:G}),[G]),u.useEffect(()=>{d&&B&&ie&&!fe&&(le(s?null:be.clientWidth),X.current.focus())},[ie,s]),u.useEffect(()=>{i&&X.current.focus()},[i]),u.useEffect(()=>{if(!S)return;const Fe=gn(X.current).getElementById(S);if(Fe){const Ve=()=>{getSelection().isCollapsed&&X.current.focus()};return Fe.addEventListener("click",Ve),()=>{Fe.removeEventListener("click",Ve)}}},[S]);const ge=(Fe,Ve)=>{Fe?M&&M(Ve):I&&I(Ve),fe||(le(s?null:be.clientWidth),W(Fe))},$e=Fe=>{Fe.button===0&&(Fe.preventDefault(),X.current.focus(),ge(!0,Fe))},Be=Fe=>{ge(!1,Fe)},Le=u.Children.toArray(a),re=Fe=>{const Ve=Le.map(Oe=>Oe.props.value).indexOf(Fe.target.value);if(Ve===-1)return;const Se=Le[Ve];N(Se.props.value),k&&k(Fe,Se)},Te=Fe=>Ve=>{let Se;if(Ve.currentTarget.hasAttribute("tabindex")){if(E){Se=Array.isArray(G)?G.slice():[];const Oe=G.indexOf(Fe.props.value);Oe===-1?Se.push(Fe.props.value):Se.splice(Oe,1)}else Se=Fe.props.value;if(Fe.props.onClick&&Fe.props.onClick(Ve),G!==Se&&(N(Se),k)){const Oe=Ve.nativeEvent||Ve,Ue=new Oe.constructor(Oe.type,Oe);Object.defineProperty(Ue,"target",{writable:!0,value:{value:Se,name:w}}),k(Ue,Fe)}E||ge(!1,Ve)}},ve=Fe=>{R||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Fe.key)!==-1&&(Fe.preventDefault(),ge(!0,Fe))},ze=ie!==null&&B,nt=Fe=>{!ze&&x&&(Object.defineProperty(Fe,"target",{writable:!0,value:{value:G,name:w}}),x(Fe))};delete z["aria-invalid"];let pt,Qe;const Ct=[];let it=!1;(fx({value:G})||m)&&(L?pt=L(G):it=!0);const vt=Le.map(Fe=>{if(!u.isValidElement(Fe))return null;let Ve;if(E){if(!Array.isArray(G))throw new Error(Ul(2));Ve=G.some(Se=>X2(Se,Fe.props.value)),Ve&&it&&Ct.push(Fe.props.children)}else Ve=X2(G,Fe.props.value),Ve&&it&&(Qe=Fe.props.children);return u.cloneElement(Fe,{"aria-selected":Ve?"true":"false",onClick:Te(Fe),onKeyUp:Se=>{Se.key===" "&&Se.preventDefault(),Fe.props.onKeyUp&&Fe.props.onKeyUp(Se)},role:"option",selected:Ve,value:void 0,"data-value":Fe.props.value})});it&&(E?Ct.length===0?pt=null:pt=Ct.reduce((Fe,Ve,Se)=>(Fe.push(Ve),Se<Ct.length-1&&Fe.push(", "),Fe),[]):pt=Qe);let ht=Q;!s&&fe&&ie&&(ht=be.clientWidth);let ct;typeof j!="undefined"?ct=j:ct=h?null:0;const Ge=H.id||(w?`mui-component-select-${w}`:void 0),_e=P({},t,{variant:F,value:G,open:ze,error:v}),Me=Gee(_e);return T.jsxs(u.Fragment,{children:[T.jsx(Hee,P({ref:he,tabIndex:ct,role:"button","aria-disabled":h?"true":void 0,"aria-expanded":ze?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[S,Ge].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:ve,onMouseDown:h||R?null:$e,onBlur:nt,onFocus:_},H,{ownerState:_e,className:pe(H.className,Me.select,c),id:Ge,children:Wee(pt)?Y2||(Y2=T.jsx("span",{className:"notranslate",children:"​"})):pt})),T.jsx(Uee,P({"aria-invalid":v,value:Array.isArray(G)?G.join(","):G,name:w,ref:q,"aria-hidden":!0,onChange:re,tabIndex:-1,disabled:h,className:Me.nativeInput,autoFocus:i,ownerState:_e},z)),T.jsx(Vee,{as:b,className:Me.icon,ownerState:_e}),T.jsx(SL,P({id:`menu-${w||""}`,anchorEl:be,open:ze,onClose:Be,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},C,{MenuListProps:P({"aria-labelledby":S,role:"listbox",disableListWrap:!0},C.MenuListProps),PaperProps:P({},C.PaperProps,{style:P({minWidth:ht},C.PaperProps!=null?C.PaperProps.style:null)}),children:vt}))]})}),qee=Kee,Yee=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Xee=e=>{const{classes:t}=e;return t},vx={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Fo(e)&&e!=="variant",slot:"Root"},Qee=oe(vL,vx)(""),Jee=oe(_L,vx)(""),Zee=oe(cL,vx)(""),IL=u.forwardRef(function(t,n){const r=tt({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:c=!1,displayEmpty:d=!1,IconComponent:p=XO,id:h,input:m,inputProps:v,label:b,labelId:g,MenuProps:S,multiple:C=!1,native:E=!1,onClose:w,onOpen:x,open:k,renderValue:I,SelectDisplayProps:_,variant:M="outlined"}=r,O=se(r,Yee),R=E?$ee:qee,L=Xs(),H=ec({props:r,muiFormControl:L,states:["variant","error"]}),j=H.variant||M,A=P({},r,{variant:j,classes:s}),F=Xee(A),z=m||{standard:T.jsx(Qee,{ownerState:A}),outlined:T.jsx(Jee,{label:b,ownerState:A}),filled:T.jsx(Zee,{ownerState:A})}[j],G=Ut(n,z.ref);return T.jsx(u.Fragment,{children:u.cloneElement(z,P({inputComponent:R,inputProps:P({children:i,error:H.error,IconComponent:p,variant:j,type:void 0,multiple:C},E?{id:h}:{autoWidth:o,defaultOpen:c,displayEmpty:d,labelId:g,MenuProps:S,onClose:w,onOpen:x,open:k,renderValue:I,SelectDisplayProps:P({id:h},_)},v,{classes:v?ti(F,v.classes):F},m?m.props.inputProps:{})},C&&E&&j==="outlined"?{notched:!0}:{},{ref:G,className:pe(z.props.className,a)},!m&&{variant:j},O))})});IL.muiName="Select";const yx=IL;function ete(e){return Ze("MuiSkeleton",e)}qe("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const tte=["animation","className","component","height","style","variant","width"];let cg=e=>e,Q2,J2,Z2,e$;const nte=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:s}=e;return ke({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!s&&"heightAuto"]},ete,t)},rte=as(Q2||(Q2=cg`
243
+ 0% {
244
+ opacity: 1;
245
+ }
246
+
247
+ 50% {
248
+ opacity: 0.4;
249
+ }
250
+
251
+ 100% {
252
+ opacity: 1;
253
+ }
254
+ `)),ote=as(J2||(J2=cg`
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
+ `)),ite=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=fW(e.shape.borderRadius)||"px",r=pW(e.shape.borderRadius);return P({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:at(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"&&Wl(Z2||(Z2=cg`
268
+ animation: ${0} 1.5s ease-in-out 0.5s infinite;
269
+ `),rte),({ownerState:e,theme:t})=>e.animation==="wave"&&Wl(e$||(e$=cg`
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
+ `),ote,(t.vars||t).palette.action.hover)),ste=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:s="span",height:a,style:c,variant:d="text",width:p}=r,h=se(r,tte),m=P({},r,{animation:o,component:s,variant:d,hasChildren:!!h.children}),v=nte(m);return T.jsx(ite,P({as:s,ref:n,className:pe(v.root,i),ownerState:m},h,{style:P({width:p,height:a},c)}))}),lte=ste;function ate(e){return Ze("MuiTooltip",e)}const cte=qe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Pl=cte,ute=["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 dte(e){return Math.round(e*1e5)/1e5}const fte=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${ce(i.split("-")[0])}`],arrow:["arrow"]};return ke(s,ate,t)},pte=oe(Za,{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})=>P({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Pl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Pl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Pl.arrow}`]:P({},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"] .${Pl.arrow}`]:P({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),hte=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${ce(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>P({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:at(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:`${dte(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Pl.popper}[data-popper-placement*="left"] &`]:P({transformOrigin:"right center"},t.isRtl?P({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):P({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Pl.popper}[data-popper-placement*="right"] &`]:P({transformOrigin:"left center"},t.isRtl?P({marginRight:"14px"},t.touch&&{marginRight:"24px"}):P({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Pl.popper}[data-popper-placement*="top"] &`]:P({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Pl.popper}[data-popper-placement*="bottom"] &`]:P({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),mte=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:at(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Gh=!1,yb=null,Od={x:0,y:0};function Kh(e,t){return n=>{t&&t(n),e(n)}}const gte=u.forwardRef(function(t,n){var r,o,i,s,a,c,d,p,h,m,v,b,g,S,C,E,w,x,k;const I=tt({props:t,name:"MuiTooltip"}),{arrow:_=!1,children:M,components:O={},componentsProps:R={},describeChild:L=!1,disableFocusListener:H=!1,disableHoverListener:j=!1,disableInteractive:A=!1,disableTouchListener:F=!1,enterDelay:z=100,enterNextDelay:G=0,enterTouchDelay:N=700,followCursor:B=!1,id:W,leaveDelay:q=0,leaveTouchDelay:X=1500,onClose:ie,onOpen:J,open:fe,placement:Q="bottom",PopperComponent:le,PopperProps:ne={},slotProps:he={},slots:be={},title:ge,TransitionComponent:$e=sg,TransitionProps:Be}=I,Le=se(I,ute),re=ao(),Te=re.direction==="rtl",[ve,ze]=u.useState(),[nt,pt]=u.useState(null),Qe=u.useRef(!1),Ct=A||B,it=u.useRef(),vt=u.useRef(),ht=u.useRef(),ct=u.useRef(),[Ge,_e]=Zi({controlled:fe,default:!1,name:"Tooltip",state:"open"});let Me=Ge;const Fe=In(W),Ve=u.useRef(),Se=u.useCallback(()=>{Ve.current!==void 0&&(document.body.style.WebkitUserSelect=Ve.current,Ve.current=void 0),clearTimeout(ct.current)},[]);u.useEffect(()=>()=>{clearTimeout(it.current),clearTimeout(vt.current),clearTimeout(ht.current),Se()},[Se]);const Oe=St=>{clearTimeout(yb),Gh=!0,_e(!0),J&&!Me&&J(St)},Ue=dn(St=>{clearTimeout(yb),yb=setTimeout(()=>{Gh=!1},800+q),_e(!1),ie&&Me&&ie(St),clearTimeout(it.current),it.current=setTimeout(()=>{Qe.current=!1},re.transitions.duration.shortest)}),st=St=>{Qe.current&&St.type!=="touchstart"||(ve&&ve.removeAttribute("title"),clearTimeout(vt.current),clearTimeout(ht.current),z||Gh&&G?vt.current=setTimeout(()=>{Oe(St)},Gh?G:z):Oe(St))},Ft=St=>{clearTimeout(vt.current),clearTimeout(ht.current),ht.current=setTimeout(()=>{Ue(St)},q)},{isFocusVisibleRef:an,onBlur:yn,onFocus:Wn,ref:xr}=tv(),[,Sr]=u.useState(!1),Fr=St=>{yn(St),an.current===!1&&(Sr(!1),Ft(St))},Bn=St=>{ve||ze(St.currentTarget),Wn(St),an.current===!0&&(Sr(!0),st(St))},cn=St=>{Qe.current=!0;const sr=M.props;sr.onTouchStart&&sr.onTouchStart(St)},Xn=st,us=Ft,Ai=St=>{cn(St),clearTimeout(ht.current),clearTimeout(it.current),Se(),Ve.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ct.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ve.current,st(St)},N)},ds=St=>{M.props.onTouchEnd&&M.props.onTouchEnd(St),Se(),clearTimeout(ht.current),ht.current=setTimeout(()=>{Ue(St)},X)};u.useEffect(()=>{if(!Me)return;function St(sr){(sr.key==="Escape"||sr.key==="Esc")&&Ue(sr)}return document.addEventListener("keydown",St),()=>{document.removeEventListener("keydown",St)}},[Ue,Me]);const fs=Ut(M.ref,xr,ze,n);!ge&&ge!==0&&(Me=!1);const ae=u.useRef(),ye=St=>{const sr=M.props;sr.onMouseMove&&sr.onMouseMove(St),Od={x:St.clientX,y:St.clientY},ae.current&&ae.current.update()},Ae={},ut=typeof ge=="string";L?(Ae.title=!Me&&ut&&!j?ge:null,Ae["aria-describedby"]=Me?Fe:null):(Ae["aria-label"]=ut?ge:null,Ae["aria-labelledby"]=Me&&!ut?Fe:null);const ot=P({},Ae,Le,M.props,{className:pe(Le.className,M.props.className),onTouchStart:cn,ref:fs},B?{onMouseMove:ye}:{}),je={};F||(ot.onTouchStart=Ai,ot.onTouchEnd=ds),j||(ot.onMouseOver=Kh(Xn,ot.onMouseOver),ot.onMouseLeave=Kh(us,ot.onMouseLeave),Ct||(je.onMouseOver=Xn,je.onMouseLeave=us)),H||(ot.onFocus=Kh(Bn,ot.onFocus),ot.onBlur=Kh(Fr,ot.onBlur),Ct||(je.onFocus=Bn,je.onBlur=Fr));const xt=u.useMemo(()=>{var St;let sr=[{name:"arrow",enabled:!!nt,options:{element:nt,padding:4}}];return(St=ne.popperOptions)!=null&&St.modifiers&&(sr=sr.concat(ne.popperOptions.modifiers)),P({},ne.popperOptions,{modifiers:sr})},[nt,ne]),Wt=P({},I,{isRtl:Te,arrow:_,disableInteractive:Ct,placement:Q,PopperComponentProp:le,touch:Qe.current}),En=fte(Wt),co=(r=(o=be.popper)!=null?o:O.Popper)!=null?r:pte,Ce=(i=(s=(a=be.transition)!=null?a:O.Transition)!=null?s:$e)!=null?i:sg,me=(c=(d=be.tooltip)!=null?d:O.Tooltip)!=null?c:hte,He=(p=(h=be.arrow)!=null?h:O.Arrow)!=null?p:mte,dt=Vd(co,P({},ne,(m=he.popper)!=null?m:R.popper,{className:pe(En.popper,ne==null?void 0:ne.className,(v=(b=he.popper)!=null?b:R.popper)==null?void 0:v.className)}),Wt),Gt=Vd(Ce,P({},Be,(g=he.transition)!=null?g:R.transition),Wt),Mn=Vd(me,P({},(S=he.tooltip)!=null?S:R.tooltip,{className:pe(En.tooltip,(C=(E=he.tooltip)!=null?E:R.tooltip)==null?void 0:C.className)}),Wt),Rn=Vd(He,P({},(w=he.arrow)!=null?w:R.arrow,{className:pe(En.arrow,(x=(k=he.arrow)!=null?k:R.arrow)==null?void 0:x.className)}),Wt);return T.jsxs(u.Fragment,{children:[u.cloneElement(M,ot),T.jsx(co,P({as:le!=null?le:Za,placement:Q,anchorEl:B?{getBoundingClientRect:()=>({top:Od.y,left:Od.x,right:Od.x,bottom:Od.y,width:0,height:0})}:ve,popperRef:ae,open:ve?Me:!1,id:Fe,transition:!0},je,dt,{popperOptions:xt,children:({TransitionProps:St})=>T.jsx(Ce,P({timeout:re.transitions.duration.shorter},St,Gt,{children:T.jsxs(me,P({},Mn,{children:[ge,_?T.jsx(He,P({},Rn,{ref:pt})):null]}))}))}))]})}),hp=gte;function vte(e){return Ze("MuiSwitch",e)}const yte=qe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),$r=yte,bte=["className","color","edge","size","sx"],wte=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:s}=e,a={root:["root",n&&`edge${ce(n)}`,`size${ce(r)}`],switchBase:["switchBase",`color${ce(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=ke(a,vte,t);return P({},t,c)},Cte=oe("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${ce(n.edge)}`],t[`size${ce(n.size)}`]]}})(({ownerState:e})=>P({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,[`& .${$r.thumb}`]:{width:16,height:16},[`& .${$r.switchBase}`]:{padding:4,[`&.${$r.checked}`]:{transform:"translateX(16px)"}}})),xte=oe(rL,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${$r.input}`]:t.input},n.color!=="default"&&t[`color${ce(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}),[`&.${$r.checked}`]:{transform:"translateX(20px)"},[`&.${$r.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${$r.checked} + .${$r.track}`]:{opacity:.5},[`&.${$r.disabled} + .${$r.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${$r.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>P({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:at(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${$r.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})`:at(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${$r.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Us(e.palette[t.color].main,.62):Vs(e.palette[t.color].main,.55)}`}},[`&.${$r.checked} + .${$r.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),Ste=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}`})),Ete=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%"})),Pte=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:s=!1,size:a="medium",sx:c}=r,d=se(r,bte),p=P({},r,{color:i,edge:s,size:a}),h=wte(p),m=T.jsx(Ete,{className:h.thumb,ownerState:p});return T.jsxs(Cte,{className:pe(h.root,o),sx:c,ownerState:p,children:[T.jsx(xte,P({type:"checkbox",icon:m,checkedIcon:m,ref:n,ownerState:p},d,{classes:P({},h,{root:h.switchBase})})),T.jsx(Ste,{className:h.track,ownerState:p})]})}),$L=Pte;function kte(e){return Ze("MuiTab",e)}const _te=qe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),da=_te,Ite=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],$te=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${ce(n)}`,r&&"fullWidth",o&&"wrapped",a&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return ke(d,kte,t)},Mte=oe(ss,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${ce(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>P({},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,[`& > .${da.iconWrapper}`]:P({},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,[`&.${da.selected}`]:{opacity:1},[`&.${da.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${da.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${da.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${da.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${da.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)})),Rte=u.forwardRef(function(t,n){const r=tt({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:v,onFocus:b,selected:g,selectionFollowsFocus:S,textColor:C="inherit",value:E,wrapped:w=!1}=r,x=se(r,Ite),k=P({},r,{disabled:i,disableFocusRipple:s,selected:g,icon:!!c,iconPosition:d,label:!!h,fullWidth:a,textColor:C,wrapped:w}),I=$te(k),_=c&&h&&u.isValidElement(c)?u.cloneElement(c,{className:pe(I.iconWrapper,c.props.className)}):c,M=R=>{!g&&m&&m(R,E),v&&v(R)},O=R=>{S&&!g&&m&&m(R,E),b&&b(R)};return T.jsxs(Mte,P({focusRipple:!s,className:pe(I.root,o),ref:n,role:"tab","aria-selected":g,disabled:i,onClick:M,onFocus:O,ownerState:k,tabIndex:g?0:-1},x,{children:[d==="top"||d==="start"?T.jsxs(u.Fragment,{children:[_,h]}):T.jsxs(u.Fragment,{children:[h,_]}),p]}))}),ML=Rte,Tte=u.createContext(),Ote=Tte,Lte=u.createContext(),Ate=Lte;function Fte(e){return Ze("MuiTableCell",e)}const Nte=qe("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Dte=Nte,Bte=["align","className","component","padding","scope","size","sortDirection","variant"],zte=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:s}=e,a={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${ce(r)}`,o!=="normal"&&`padding${ce(o)}`,`size${ce(i)}`]};return ke(a,Fte,t)},jte=oe("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ce(n.size)}`],n.padding!=="normal"&&t[`padding${ce(n.padding)}`],n.align!=="inherit"&&t[`align${ce(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>P({},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"?Us(at(e.palette.divider,1),.88):Vs(at(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",[`&.${Dte.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})),Hte=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:s,padding:a,scope:c,size:d,sortDirection:p,variant:h}=r,m=se(r,Bte),v=u.useContext(Ote),b=u.useContext(Ate),g=b&&b.variant==="head";let S;s?S=s:S=g?"th":"td";let C=c;S==="td"?C=void 0:!C&&g&&(C="col");const E=h||b&&b.variant,w=P({},r,{align:o,component:S,padding:a||(v&&v.padding?v.padding:"normal"),size:d||(v&&v.size?v.size:"medium"),sortDirection:p,stickyHeader:E==="head"&&v&&v.stickyHeader,variant:E}),x=zte(w);let k=null;return p&&(k=p==="asc"?"ascending":"descending"),T.jsx(jte,P({as:S,ref:n,className:pe(x.root,i),"aria-sort":k,scope:C,ownerState:w},m))}),nw=Hte;function Vte(e){return Ze("MuiToolbar",e)}qe("MuiToolbar",["root","gutters","regular","dense"]);const Ute=["className","component","disableGutters","variant"],Wte=e=>{const{classes:t,disableGutters:n,variant:r}=e;return ke({root:["root",!n&&"gutters",r]},Vte,t)},Gte=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})=>P({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),Kte=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:s=!1,variant:a="regular"}=r,c=se(r,Ute),d=P({},r,{component:i,disableGutters:s,variant:a}),p=Wte(d);return T.jsx(Gte,P({as:i,className:pe(p.root,o),ref:n,ownerState:d},c))}),RL=Kte,rw=At(T.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ow=At(T.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var t$,n$,r$,o$,i$,s$,l$,a$;const qte=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],Yte=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=se(t,qte),v=ao(),b=E=>{a(E,0)},g=E=>{a(E,c-1)},S=E=>{a(E,c+1)},C=E=>{a(E,Math.max(0,Math.ceil(o/d)-1))};return T.jsxs("div",P({ref:n},m,{children:[p&&T.jsx(ur,{onClick:b,disabled:c===0,"aria-label":i("first",c),title:i("first",c),children:v.direction==="rtl"?t$||(t$=T.jsx(q2,{})):n$||(n$=T.jsx(K2,{}))}),T.jsx(ur,P({onClick:g,disabled:c===0,color:"inherit","aria-label":i("previous",c),title:i("previous",c)},r,{children:v.direction==="rtl"?r$||(r$=T.jsx(ow,{})):o$||(o$=T.jsx(rw,{}))})),T.jsx(ur,P({onClick:S,disabled:o!==-1?c>=Math.ceil(o/d)-1:!1,color:"inherit","aria-label":i("next",c),title:i("next",c)},s,{children:v.direction==="rtl"?i$||(i$=T.jsx(rw,{})):s$||(s$=T.jsx(ow,{}))})),h&&T.jsx(ur,{onClick:C,disabled:c>=Math.ceil(o/d)-1,"aria-label":i("last",c),title:i("last",c),children:v.direction==="rtl"?l$||(l$=T.jsx(K2,{})):a$||(a$=T.jsx(q2,{}))})]}))}),Xte=Yte;function Qte(e){return Ze("MuiTablePagination",e)}const Jte=qe("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Ia=Jte;var c$;const Zte=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],ene=oe(nw,{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}})),tne=oe(RL,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>P({[`& .${Ia.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},[`& .${Ia.actions}`]:{flexShrink:0,marginLeft:20}})),nne=oe("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),rne=oe("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>P({},e.typography.body2,{flexShrink:0})),one=oe(yx,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>P({[`& .${Ia.selectIcon}`]:t.selectIcon,[`& .${Ia.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Ia.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),ine=oe(pr,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),sne=oe("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>P({},e.typography.body2,{flexShrink:0}));function lne({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function ane(e){return`Go to ${e} page`}const cne=e=>{const{classes:t}=e;return ke({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Qte,t)},une=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=Xte,backIconButtonProps:i,className:s,colSpan:a,component:c=nw,count:d,getItemAriaLabel:p=ane,labelDisplayedRows:h=lne,labelRowsPerPage:m="Rows per page:",nextIconButtonProps:v,onPageChange:b,onRowsPerPageChange:g,page:S,rowsPerPage:C,rowsPerPageOptions:E=[10,25,50,100],SelectProps:w={},showFirstButton:x=!1,showLastButton:k=!1}=r,I=se(r,Zte),_=r,M=cne(_),O=w.native?"option":ine;let R;(c===nw||c==="td")&&(R=a||1e3);const L=In(w.id),H=In(w.labelId),j=()=>d===-1?(S+1)*C:C===-1?d:Math.min(d,(S+1)*C);return T.jsx(ene,P({colSpan:R,ref:n,as:c,ownerState:_,className:pe(M.root,s)},I,{children:T.jsxs(tne,{className:M.toolbar,children:[T.jsx(nne,{className:M.spacer}),E.length>1&&T.jsx(rne,{className:M.selectLabel,id:H,children:m}),E.length>1&&T.jsx(one,P({variant:"standard"},!w.variant&&{input:c$||(c$=T.jsx(Vu,{}))},{value:C,onChange:g,id:L,labelId:H},w,{classes:P({},w.classes,{root:pe(M.input,M.selectRoot,(w.classes||{}).root),select:pe(M.select,(w.classes||{}).select),icon:pe(M.selectIcon,(w.classes||{}).icon)}),children:E.map(A=>u.createElement(O,P({},!Ba(O)&&{ownerState:_},{className:M.menuItem,key:A.label?A.label:A,value:A.value?A.value:A}),A.label?A.label:A))})),T.jsx(sne,{className:M.displayedRows,children:h({from:d===0?0:S*C+1,to:j(),count:d===-1?-1:d,page:S})}),T.jsx(o,{className:M.actions,backIconButtonProps:i,count:d,nextIconButtonProps:v,onPageChange:b,page:S,rowsPerPage:C,showFirstButton:x,showLastButton:k,getItemAriaLabel:p})]})}))}),dne=une;function fne(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function pne(e,t,n,r={},o=()=>{}){const{ease:i=fne,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 v=Math.min(1,(m-a)/s);if(t[e]=i(v)*(n-c)+c,v>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(h)};return c===n?(o(new Error("Element already at target position")),p):(requestAnimationFrame(h),p)}const hne=["onChange"],mne={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function gne(e){const{onChange:t}=e,n=se(e,hne),r=u.useRef(),o=u.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return fn(()=>{const s=Hs(()=>{const c=r.current;i(),c!==r.current&&t(r.current)}),a=so(o.current);return a.addEventListener("resize",s),()=>{s.clear(),a.removeEventListener("resize",s)}},[t]),u.useEffect(()=>{i(),t(r.current)},[t]),T.jsx("div",P({style:mne,ref:o},n))}function vne(e){return Ze("MuiTabScrollButton",e)}const yne=qe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),bne=yne,wne=["className","slots","slotProps","direction","orientation","disabled"],Cne=e=>{const{classes:t,orientation:n,disabled:r}=e;return ke({root:["root",n,r&&"disabled"]},vne,t)},xne=oe(ss,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>P({width:40,flexShrink:0,opacity:.8,[`&.${bne.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Sne=u.forwardRef(function(t,n){var r,o;const i=tt({props:t,name:"MuiTabScrollButton"}),{className:s,slots:a={},slotProps:c={},direction:d}=i,p=se(i,wne),m=ao().direction==="rtl",v=P({isRtl:m},i),b=Cne(v),g=(r=a.StartScrollButtonIcon)!=null?r:rw,S=(o=a.EndScrollButtonIcon)!=null?o:ow,C=Ws({elementType:g,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),E=Ws({elementType:S,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return T.jsx(xne,P({component:"div",className:pe(b.root,s),ref:n,role:null,ownerState:v,tabIndex:null},p,{children:d==="left"?T.jsx(g,P({},C)):T.jsx(S,P({},E))}))}),Ene=Sne;function Pne(e){return Ze("MuiTabs",e)}const kne=qe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bb=kne,_ne=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],u$=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,d$=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,qh=(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}}},Ine=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:s,scrollButtonsHideMobile:a,classes:c}=e;return ke({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"]},Pne,c)},$ne=oe("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bb.scrollButtons}`]:t.scrollButtons},{[`& .${bb.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>P({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${bb.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Mne=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})=>P({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"})),Rne=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})=>P({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Tne=oe("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>P({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})),One=oe(gne,{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),f$={},Lne=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiTabs"}),o=ao(),i=o.direction==="rtl",{"aria-label":s,"aria-labelledby":a,action:c,centered:d=!1,children:p,className:h,component:m="div",allowScrollButtonsMobile:v=!1,indicatorColor:b="primary",onChange:g,orientation:S="horizontal",ScrollButtonComponent:C=Ene,scrollButtons:E="auto",selectionFollowsFocus:w,slots:x={},slotProps:k={},TabIndicatorProps:I={},TabScrollButtonProps:_={},textColor:M="primary",value:O,variant:R="standard",visibleScrollbar:L=!1}=r,H=se(r,_ne),j=R==="scrollable",A=S==="vertical",F=A?"scrollTop":"scrollLeft",z=A?"top":"left",G=A?"bottom":"right",N=A?"clientHeight":"clientWidth",B=A?"height":"width",W=P({},r,{component:m,allowScrollButtonsMobile:v,indicatorColor:b,orientation:S,vertical:A,scrollButtons:E,textColor:M,variant:R,visibleScrollbar:L,fixed:!j,hideScrollbar:j&&!L,scrollableX:j&&!A,scrollableY:j&&A,centered:d&&!j,scrollButtonsHideMobile:!v}),q=Ine(W),X=Ws({elementType:x.StartScrollButtonIcon,externalSlotProps:k.startScrollButtonIcon,ownerState:W}),ie=Ws({elementType:x.EndScrollButtonIcon,externalSlotProps:k.endScrollButtonIcon,ownerState:W}),[J,fe]=u.useState(!1),[Q,le]=u.useState(f$),[ne,he]=u.useState({start:!1,end:!1}),[be,ge]=u.useState({overflow:"hidden",scrollbarWidth:0}),$e=new Map,Be=u.useRef(null),Le=u.useRef(null),re=()=>{const Se=Be.current;let Oe;if(Se){const st=Se.getBoundingClientRect();Oe={clientWidth:Se.clientWidth,scrollLeft:Se.scrollLeft,scrollTop:Se.scrollTop,scrollLeftNormalized:SI(Se,o.direction),scrollWidth:Se.scrollWidth,top:st.top,bottom:st.bottom,left:st.left,right:st.right}}let Ue;if(Se&&O!==!1){const st=Le.current.children;if(st.length>0){const Ft=st[$e.get(O)];Ue=Ft?Ft.getBoundingClientRect():null}}return{tabsMeta:Oe,tabMeta:Ue}},Te=dn(()=>{const{tabsMeta:Se,tabMeta:Oe}=re();let Ue=0,st;if(A)st="top",Oe&&Se&&(Ue=Oe.top-Se.top+Se.scrollTop);else if(st=i?"right":"left",Oe&&Se){const an=i?Se.scrollLeftNormalized+Se.clientWidth-Se.scrollWidth:Se.scrollLeft;Ue=(i?-1:1)*(Oe[st]-Se[st]+an)}const Ft={[st]:Ue,[B]:Oe?Oe[B]:0};if(isNaN(Q[st])||isNaN(Q[B]))le(Ft);else{const an=Math.abs(Q[st]-Ft[st]),yn=Math.abs(Q[B]-Ft[B]);(an>=1||yn>=1)&&le(Ft)}}),ve=(Se,{animation:Oe=!0}={})=>{Oe?pne(F,Be.current,Se,{duration:o.transitions.duration.standard}):Be.current[F]=Se},ze=Se=>{let Oe=Be.current[F];A?Oe+=Se:(Oe+=Se*(i?-1:1),Oe*=i&&rO()==="reverse"?-1:1),ve(Oe)},nt=()=>{const Se=Be.current[N];let Oe=0;const Ue=Array.from(Le.current.children);for(let st=0;st<Ue.length;st+=1){const Ft=Ue[st];if(Oe+Ft[N]>Se){st===0&&(Oe=Se);break}Oe+=Ft[N]}return Oe},pt=()=>{ze(-1*nt())},Qe=()=>{ze(nt())},Ct=u.useCallback(Se=>{ge({overflow:null,scrollbarWidth:Se})},[]),it=()=>{const Se={};Se.scrollbarSizeListener=j?T.jsx(One,{onChange:Ct,className:pe(q.scrollableX,q.hideScrollbar)}):null;const Oe=ne.start||ne.end,Ue=j&&(E==="auto"&&Oe||E===!0);return Se.scrollButtonStart=Ue?T.jsx(C,P({slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:X},orientation:S,direction:i?"right":"left",onClick:pt,disabled:!ne.start},_,{className:pe(q.scrollButtons,_.className)})):null,Se.scrollButtonEnd=Ue?T.jsx(C,P({slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ie},orientation:S,direction:i?"left":"right",onClick:Qe,disabled:!ne.end},_,{className:pe(q.scrollButtons,_.className)})):null,Se},vt=dn(Se=>{const{tabsMeta:Oe,tabMeta:Ue}=re();if(!(!Ue||!Oe)){if(Ue[z]<Oe[z]){const st=Oe[F]+(Ue[z]-Oe[z]);ve(st,{animation:Se})}else if(Ue[G]>Oe[G]){const st=Oe[F]+(Ue[G]-Oe[G]);ve(st,{animation:Se})}}}),ht=dn(()=>{if(j&&E!==!1){const{scrollTop:Se,scrollHeight:Oe,clientHeight:Ue,scrollWidth:st,clientWidth:Ft}=Be.current;let an,yn;if(A)an=Se>1,yn=Se<Oe-Ue-1;else{const Wn=SI(Be.current,o.direction);an=i?Wn<st-Ft-1:Wn>1,yn=i?Wn>1:Wn<st-Ft-1}(an!==ne.start||yn!==ne.end)&&he({start:an,end:yn})}});u.useEffect(()=>{const Se=Hs(()=>{Be.current&&(Te(),ht())}),Oe=so(Be.current);Oe.addEventListener("resize",Se);let Ue;return typeof ResizeObserver!="undefined"&&(Ue=new ResizeObserver(Se),Array.from(Le.current.children).forEach(st=>{Ue.observe(st)})),()=>{Se.clear(),Oe.removeEventListener("resize",Se),Ue&&Ue.disconnect()}},[Te,ht]);const ct=u.useMemo(()=>Hs(()=>{ht()}),[ht]);u.useEffect(()=>()=>{ct.clear()},[ct]),u.useEffect(()=>{fe(!0)},[]),u.useEffect(()=>{Te(),ht()}),u.useEffect(()=>{vt(f$!==Q)},[vt,Q]),u.useImperativeHandle(c,()=>({updateIndicator:Te,updateScrollButtons:ht}),[Te,ht]);const Ge=T.jsx(Tne,P({},I,{className:pe(q.indicator,I.className),ownerState:W,style:P({},Q,I.style)}));let _e=0;const Me=u.Children.map(p,Se=>{if(!u.isValidElement(Se))return null;const Oe=Se.props.value===void 0?_e:Se.props.value;$e.set(Oe,_e);const Ue=Oe===O;return _e+=1,u.cloneElement(Se,P({fullWidth:R==="fullWidth",indicator:Ue&&!J&&Ge,selected:Ue,selectionFollowsFocus:w,onChange:g,textColor:M,value:Oe},_e===1&&O===!1&&!Se.props.tabIndex?{tabIndex:0}:{}))}),Fe=Se=>{const Oe=Le.current,Ue=gn(Oe).activeElement;if(Ue.getAttribute("role")!=="tab")return;let Ft=S==="horizontal"?"ArrowLeft":"ArrowUp",an=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&i&&(Ft="ArrowRight",an="ArrowLeft"),Se.key){case Ft:Se.preventDefault(),qh(Oe,Ue,d$);break;case an:Se.preventDefault(),qh(Oe,Ue,u$);break;case"Home":Se.preventDefault(),qh(Oe,null,u$);break;case"End":Se.preventDefault(),qh(Oe,null,d$);break}},Ve=it();return T.jsxs($ne,P({className:pe(q.root,h),ownerState:W,ref:n,as:m},H,{children:[Ve.scrollButtonStart,Ve.scrollbarSizeListener,T.jsxs(Mne,{className:q.scroller,ownerState:W,style:{overflow:be.overflow,[A?`margin${i?"Left":"Right"}`:"marginBottom"]:L?void 0:-be.scrollbarWidth},ref:Be,onScroll:ct,children:[T.jsx(Rne,{"aria-label":s,"aria-labelledby":a,"aria-orientation":S==="vertical"?"vertical":null,className:q.flexContainer,ownerState:W,onKeyDown:Fe,ref:Le,role:"tablist",children:Me}),J&&Ge]}),Ve.scrollButtonEnd]}))}),TL=Lne;function Ane(e){return Ze("MuiTextField",e)}qe("MuiTextField",["root"]);const Fne=["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"],Nne={standard:vL,filled:cL,outlined:_L},Dne=e=>{const{classes:t}=e;return ke({root:["root"]},Ane,t)},Bne=oe(tc,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zne=u.forwardRef(function(t,n){const r=tt({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:v=!1,helperText:b,id:g,InputLabelProps:S,inputProps:C,InputProps:E,inputRef:w,label:x,maxRows:k,minRows:I,multiline:_=!1,name:M,onBlur:O,onChange:R,onFocus:L,placeholder:H,required:j=!1,rows:A,select:F=!1,SelectProps:z,type:G,value:N,variant:B="outlined"}=r,W=se(r,Fne),q=P({},r,{autoFocus:i,color:c,disabled:p,error:h,fullWidth:v,multiline:_,required:j,select:F,variant:B}),X=Dne(q),ie={};B==="outlined"&&(S&&typeof S.shrink!="undefined"&&(ie.notched=S.shrink),ie.label=x),F&&((!z||!z.native)&&(ie.id=void 0),ie["aria-describedby"]=void 0);const J=In(g),fe=b&&J?`${J}-helper-text`:void 0,Q=x&&J?`${J}-label`:void 0,le=Nne[B],ne=T.jsx(le,P({"aria-describedby":fe,autoComplete:o,autoFocus:i,defaultValue:d,fullWidth:v,multiline:_,name:M,rows:A,maxRows:k,minRows:I,type:G,value:N,id:J,inputRef:w,onBlur:O,onChange:R,onFocus:L,placeholder:H,inputProps:C},ie,E));return T.jsxs(Bne,P({className:pe(X.root,a),disabled:p,error:h,fullWidth:v,ref:n,required:j,color:c,variant:B,ownerState:q},W,{children:[x!=null&&x!==""&&T.jsx(ew,P({htmlFor:J,id:Q},S,{children:x})),F?T.jsx(yx,P({"aria-describedby":fe,id:J,labelId:Q,value:N,input:ne},z,{children:s})):ne,b&&T.jsx(Dv,P({id:fe},m,{children:b}))]}))}),mp=zne;var bx={},ft={},jne={get exports(){return ft},set exports(e){ft=e}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(jne);var wb={};const Hne=LM(xK);var p$;function gt(){return p$||(p$=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Hne}(wb)),wb}var Vne=ft;Object.defineProperty(bx,"__esModule",{value:!0});var OL=bx.default=void 0,Une=Vne(gt()),Wne=mt(),Gne=(0,Une.default)((0,Wne.jsx)("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"}),"AccountTree");OL=bx.default=Gne;var wx={},Kne=ft;Object.defineProperty(wx,"__esModule",{value:!0});var LL=wx.default=void 0,qne=Kne(gt()),Yne=mt(),Xne=(0,qne.default)((0,Yne.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");LL=wx.default=Xne;var Cx={},Qne=ft;Object.defineProperty(Cx,"__esModule",{value:!0});var AL=Cx.default=void 0,Jne=Qne(gt()),Zne=mt(),ere=(0,Jne.default)((0,Zne.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");AL=Cx.default=ere;var xx={},tre=ft;Object.defineProperty(xx,"__esModule",{value:!0});var FL=xx.default=void 0,nre=tre(gt()),rre=mt(),ore=(0,nre.default)((0,rre.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");FL=xx.default=ore;var Sx={},ire=ft;Object.defineProperty(Sx,"__esModule",{value:!0});var NL=Sx.default=void 0,sre=ire(gt()),h$=mt(),lre=(0,sre.default)([(0,h$.jsx)("circle",{cx:"10",cy:"8",r:"4"},"0"),(0,h$.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");NL=Sx.default=lre;var Ex={},are=ft;Object.defineProperty(Ex,"__esModule",{value:!0});var DL=Ex.default=void 0,cre=are(gt()),ure=mt(),dre=(0,cre.default)((0,ure.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");DL=Ex.default=dre;var Px={},fre=ft;Object.defineProperty(Px,"__esModule",{value:!0});var BL=Px.default=void 0,pre=fre(gt()),hre=mt(),mre=(0,pre.default)((0,hre.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");BL=Px.default=mre;var kx={},gre=ft;Object.defineProperty(kx,"__esModule",{value:!0});var _x=kx.default=void 0,vre=gre(gt()),yre=mt(),bre=(0,vre.default)((0,yre.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");_x=kx.default=bre;var Ix={},wre=ft;Object.defineProperty(Ix,"__esModule",{value:!0});var zL=Ix.default=void 0,Cre=wre(gt()),xre=mt(),Sre=(0,Cre.default)((0,xre.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");zL=Ix.default=Sre;var $x={},Ere=ft;Object.defineProperty($x,"__esModule",{value:!0});var jL=$x.default=void 0,Pre=Ere(gt()),kre=mt(),_re=(0,Pre.default)((0,kre.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");jL=$x.default=_re;var Os={},Ire={get exports(){return Os},set exports(e){Os=e}};/**
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
+ */(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,v=4,b=1,g=2,S=1,C=2,E=4,w=8,x=16,k=32,I=64,_=128,M=256,O=512,R=30,L="...",H=800,j=16,A=1,F=2,z=3,G=1/0,N=9007199254740991,B=17976931348623157e292,W=0/0,q=4294967295,X=q-1,ie=q>>>1,J=[["ary",_],["bind",S],["bindKey",C],["curry",w],["curryRight",x],["flip",O],["partial",k],["partialRight",I],["rearg",M]],fe="[object Arguments]",Q="[object Array]",le="[object AsyncFunction]",ne="[object Boolean]",he="[object Date]",be="[object DOMException]",ge="[object Error]",$e="[object Function]",Be="[object GeneratorFunction]",Le="[object Map]",re="[object Number]",Te="[object Null]",ve="[object Object]",ze="[object Promise]",nt="[object Proxy]",pt="[object RegExp]",Qe="[object Set]",Ct="[object String]",it="[object Symbol]",vt="[object Undefined]",ht="[object WeakMap]",ct="[object WeakSet]",Ge="[object ArrayBuffer]",_e="[object DataView]",Me="[object Float32Array]",Fe="[object Float64Array]",Ve="[object Int8Array]",Se="[object Int16Array]",Oe="[object Int32Array]",Ue="[object Uint8Array]",st="[object Uint8ClampedArray]",Ft="[object Uint16Array]",an="[object Uint32Array]",yn=/\b__p \+= '';/g,Wn=/\b(__p \+=) '' \+/g,xr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Sr=/&(?:amp|lt|gt|quot|#39);/g,Fr=/[&<>"']/g,Bn=RegExp(Sr.source),cn=RegExp(Fr.source),Xn=/<%-([\s\S]+?)%>/g,us=/<%([\s\S]+?)%>/g,Ai=/<%=([\s\S]+?)%>/g,ds=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fs=/^\w*$/,ae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ye=/[\\^$.*+?()[\]{}|]/g,Ae=RegExp(ye.source),ut=/^\s+/,ot=/\s/,je=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,xt=/\{\n\/\* \[wrapped with (.+)\] \*/,Wt=/,? & /,En=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,co=/[()=,{}\[\]\/\s]/,Ce=/\\(\\)?/g,me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,He=/\w*$/,dt=/^[-+]0x[0-9a-f]+$/i,Gt=/^0b[01]+$/i,Mn=/^\[object .+?Constructor\]$/,Rn=/^0o[0-7]+$/i,St=/^(?:0|[1-9]\d*)$/,sr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Op=/($^)/,e4=/['\n\r\u2028\u2029\\]/g,Lp="\\ud800-\\udfff",t4="\\u0300-\\u036f",n4="\\ufe20-\\ufe2f",r4="\\u20d0-\\u20ff",IE=t4+n4+r4,$E="\\u2700-\\u27bf",ME="a-z\\xdf-\\xf6\\xf8-\\xff",o4="\\xac\\xb1\\xd7\\xf7",i4="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",s4="\\u2000-\\u206f",l4=" \\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",RE="A-Z\\xc0-\\xd6\\xd8-\\xde",TE="\\ufe0e\\ufe0f",OE=o4+i4+s4+l4,wy="['’]",a4="["+Lp+"]",LE="["+OE+"]",Ap="["+IE+"]",AE="\\d+",c4="["+$E+"]",FE="["+ME+"]",NE="[^"+Lp+OE+AE+$E+ME+RE+"]",Cy="\\ud83c[\\udffb-\\udfff]",u4="(?:"+Ap+"|"+Cy+")",DE="[^"+Lp+"]",xy="(?:\\ud83c[\\udde6-\\uddff]){2}",Sy="[\\ud800-\\udbff][\\udc00-\\udfff]",ac="["+RE+"]",BE="\\u200d",zE="(?:"+FE+"|"+NE+")",d4="(?:"+ac+"|"+NE+")",jE="(?:"+wy+"(?:d|ll|m|re|s|t|ve))?",HE="(?:"+wy+"(?:D|LL|M|RE|S|T|VE))?",VE=u4+"?",UE="["+TE+"]?",f4="(?:"+BE+"(?:"+[DE,xy,Sy].join("|")+")"+UE+VE+")*",p4="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",h4="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",WE=UE+VE+f4,m4="(?:"+[c4,xy,Sy].join("|")+")"+WE,g4="(?:"+[DE+Ap+"?",Ap,xy,Sy,a4].join("|")+")",v4=RegExp(wy,"g"),y4=RegExp(Ap,"g"),Ey=RegExp(Cy+"(?="+Cy+")|"+g4+WE,"g"),b4=RegExp([ac+"?"+FE+"+"+jE+"(?="+[LE,ac,"$"].join("|")+")",d4+"+"+HE+"(?="+[LE,ac+zE,"$"].join("|")+")",ac+"?"+zE+"+"+jE,ac+"+"+HE,h4,p4,AE,m4].join("|"),"g"),w4=RegExp("["+BE+Lp+IE+TE+"]"),C4=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,x4=["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"],S4=-1,bn={};bn[Me]=bn[Fe]=bn[Ve]=bn[Se]=bn[Oe]=bn[Ue]=bn[st]=bn[Ft]=bn[an]=!0,bn[fe]=bn[Q]=bn[Ge]=bn[ne]=bn[_e]=bn[he]=bn[ge]=bn[$e]=bn[Le]=bn[re]=bn[ve]=bn[pt]=bn[Qe]=bn[Ct]=bn[ht]=!1;var pn={};pn[fe]=pn[Q]=pn[Ge]=pn[_e]=pn[ne]=pn[he]=pn[Me]=pn[Fe]=pn[Ve]=pn[Se]=pn[Oe]=pn[Le]=pn[re]=pn[ve]=pn[pt]=pn[Qe]=pn[Ct]=pn[it]=pn[Ue]=pn[st]=pn[Ft]=pn[an]=!0,pn[ge]=pn[$e]=pn[ht]=!1;var E4={À:"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"},P4={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},k4={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},_4={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},I4=parseFloat,$4=parseInt,GE=typeof Cn=="object"&&Cn&&Cn.Object===Object&&Cn,M4=typeof self=="object"&&self&&self.Object===Object&&self,gr=GE||M4||Function("return this")(),Py=t&&!t.nodeType&&t,na=Py&&!0&&e&&!e.nodeType&&e,KE=na&&na.exports===Py,ky=KE&&GE.process,Do=function(){try{var Z=na&&na.require&&na.require("util").types;return Z||ky&&ky.binding&&ky.binding("util")}catch(we){}}(),qE=Do&&Do.isArrayBuffer,YE=Do&&Do.isDate,XE=Do&&Do.isMap,QE=Do&&Do.isRegExp,JE=Do&&Do.isSet,ZE=Do&&Do.isTypedArray;function uo(Z,we,de){switch(de.length){case 0:return Z.call(we);case 1:return Z.call(we,de[0]);case 2:return Z.call(we,de[0],de[1]);case 3:return Z.call(we,de[0],de[1],de[2])}return Z.apply(we,de)}function R4(Z,we,de,We){for(var Pt=-1,Xt=Z==null?0:Z.length;++Pt<Xt;){var tr=Z[Pt];we(We,tr,de(tr),Z)}return We}function Bo(Z,we){for(var de=-1,We=Z==null?0:Z.length;++de<We&&we(Z[de],de,Z)!==!1;);return Z}function T4(Z,we){for(var de=Z==null?0:Z.length;de--&&we(Z[de],de,Z)!==!1;);return Z}function eP(Z,we){for(var de=-1,We=Z==null?0:Z.length;++de<We;)if(!we(Z[de],de,Z))return!1;return!0}function Js(Z,we){for(var de=-1,We=Z==null?0:Z.length,Pt=0,Xt=[];++de<We;){var tr=Z[de];we(tr,de,Z)&&(Xt[Pt++]=tr)}return Xt}function Fp(Z,we){var de=Z==null?0:Z.length;return!!de&&cc(Z,we,0)>-1}function _y(Z,we,de){for(var We=-1,Pt=Z==null?0:Z.length;++We<Pt;)if(de(we,Z[We]))return!0;return!1}function Pn(Z,we){for(var de=-1,We=Z==null?0:Z.length,Pt=Array(We);++de<We;)Pt[de]=we(Z[de],de,Z);return Pt}function Zs(Z,we){for(var de=-1,We=we.length,Pt=Z.length;++de<We;)Z[Pt+de]=we[de];return Z}function Iy(Z,we,de,We){var Pt=-1,Xt=Z==null?0:Z.length;for(We&&Xt&&(de=Z[++Pt]);++Pt<Xt;)de=we(de,Z[Pt],Pt,Z);return de}function O4(Z,we,de,We){var Pt=Z==null?0:Z.length;for(We&&Pt&&(de=Z[--Pt]);Pt--;)de=we(de,Z[Pt],Pt,Z);return de}function $y(Z,we){for(var de=-1,We=Z==null?0:Z.length;++de<We;)if(we(Z[de],de,Z))return!0;return!1}var L4=My("length");function A4(Z){return Z.split("")}function F4(Z){return Z.match(En)||[]}function tP(Z,we,de){var We;return de(Z,function(Pt,Xt,tr){if(we(Pt,Xt,tr))return We=Xt,!1}),We}function Np(Z,we,de,We){for(var Pt=Z.length,Xt=de+(We?1:-1);We?Xt--:++Xt<Pt;)if(we(Z[Xt],Xt,Z))return Xt;return-1}function cc(Z,we,de){return we===we?q4(Z,we,de):Np(Z,nP,de)}function N4(Z,we,de,We){for(var Pt=de-1,Xt=Z.length;++Pt<Xt;)if(We(Z[Pt],we))return Pt;return-1}function nP(Z){return Z!==Z}function rP(Z,we){var de=Z==null?0:Z.length;return de?Ty(Z,we)/de:W}function My(Z){return function(we){return we==null?n:we[Z]}}function Ry(Z){return function(we){return Z==null?n:Z[we]}}function oP(Z,we,de,We,Pt){return Pt(Z,function(Xt,tr,un){de=We?(We=!1,Xt):we(de,Xt,tr,un)}),de}function D4(Z,we){var de=Z.length;for(Z.sort(we);de--;)Z[de]=Z[de].value;return Z}function Ty(Z,we){for(var de,We=-1,Pt=Z.length;++We<Pt;){var Xt=we(Z[We]);Xt!==n&&(de=de===n?Xt:de+Xt)}return de}function Oy(Z,we){for(var de=-1,We=Array(Z);++de<Z;)We[de]=we(de);return We}function B4(Z,we){return Pn(we,function(de){return[de,Z[de]]})}function iP(Z){return Z&&Z.slice(0,cP(Z)+1).replace(ut,"")}function fo(Z){return function(we){return Z(we)}}function Ly(Z,we){return Pn(we,function(de){return Z[de]})}function td(Z,we){return Z.has(we)}function sP(Z,we){for(var de=-1,We=Z.length;++de<We&&cc(we,Z[de],0)>-1;);return de}function lP(Z,we){for(var de=Z.length;de--&&cc(we,Z[de],0)>-1;);return de}function z4(Z,we){for(var de=Z.length,We=0;de--;)Z[de]===we&&++We;return We}var j4=Ry(E4),H4=Ry(P4);function V4(Z){return"\\"+_4[Z]}function U4(Z,we){return Z==null?n:Z[we]}function uc(Z){return w4.test(Z)}function W4(Z){return C4.test(Z)}function G4(Z){for(var we,de=[];!(we=Z.next()).done;)de.push(we.value);return de}function Ay(Z){var we=-1,de=Array(Z.size);return Z.forEach(function(We,Pt){de[++we]=[Pt,We]}),de}function aP(Z,we){return function(de){return Z(we(de))}}function el(Z,we){for(var de=-1,We=Z.length,Pt=0,Xt=[];++de<We;){var tr=Z[de];(tr===we||tr===p)&&(Z[de]=p,Xt[Pt++]=de)}return Xt}function Dp(Z){var we=-1,de=Array(Z.size);return Z.forEach(function(We){de[++we]=We}),de}function K4(Z){var we=-1,de=Array(Z.size);return Z.forEach(function(We){de[++we]=[We,We]}),de}function q4(Z,we,de){for(var We=de-1,Pt=Z.length;++We<Pt;)if(Z[We]===we)return We;return-1}function Y4(Z,we,de){for(var We=de+1;We--;)if(Z[We]===we)return We;return We}function dc(Z){return uc(Z)?Q4(Z):L4(Z)}function fi(Z){return uc(Z)?J4(Z):A4(Z)}function cP(Z){for(var we=Z.length;we--&&ot.test(Z.charAt(we)););return we}var X4=Ry(k4);function Q4(Z){for(var we=Ey.lastIndex=0;Ey.test(Z);)++we;return we}function J4(Z){return Z.match(Ey)||[]}function Z4(Z){return Z.match(b4)||[]}var eD=function Z(we){we=we==null?gr:fc.defaults(gr.Object(),we,fc.pick(gr,x4));var de=we.Array,We=we.Date,Pt=we.Error,Xt=we.Function,tr=we.Math,un=we.Object,Fy=we.RegExp,tD=we.String,zo=we.TypeError,Bp=de.prototype,nD=Xt.prototype,pc=un.prototype,zp=we["__core-js_shared__"],jp=nD.toString,nn=pc.hasOwnProperty,rD=0,uP=function(){var l=/[^.]+$/.exec(zp&&zp.keys&&zp.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),Hp=pc.toString,oD=jp.call(un),iD=gr._,sD=Fy("^"+jp.call(nn).replace(ye,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Vp=KE?we.Buffer:n,tl=we.Symbol,Up=we.Uint8Array,dP=Vp?Vp.allocUnsafe:n,Wp=aP(un.getPrototypeOf,un),fP=un.create,pP=pc.propertyIsEnumerable,Gp=Bp.splice,hP=tl?tl.isConcatSpreadable:n,nd=tl?tl.iterator:n,ra=tl?tl.toStringTag:n,Kp=function(){try{var l=aa(un,"defineProperty");return l({},"",{}),l}catch(f){}}(),lD=we.clearTimeout!==gr.clearTimeout&&we.clearTimeout,aD=We&&We.now!==gr.Date.now&&We.now,cD=we.setTimeout!==gr.setTimeout&&we.setTimeout,qp=tr.ceil,Yp=tr.floor,Ny=un.getOwnPropertySymbols,uD=Vp?Vp.isBuffer:n,mP=we.isFinite,dD=Bp.join,fD=aP(un.keys,un),nr=tr.max,Er=tr.min,pD=We.now,hD=we.parseInt,gP=tr.random,mD=Bp.reverse,Dy=aa(we,"DataView"),rd=aa(we,"Map"),By=aa(we,"Promise"),hc=aa(we,"Set"),od=aa(we,"WeakMap"),id=aa(un,"create"),Xp=od&&new od,mc={},gD=ca(Dy),vD=ca(rd),yD=ca(By),bD=ca(hc),wD=ca(od),Qp=tl?tl.prototype:n,sd=Qp?Qp.valueOf:n,vP=Qp?Qp.toString:n;function V(l){if(zn(l)&&!kt(l)&&!(l instanceof zt)){if(l instanceof jo)return l;if(nn.call(l,"__wrapped__"))return yk(l)}return new jo(l)}var gc=function(){function l(){}return function(f){if(!Tn(f))return{};if(fP)return fP(f);l.prototype=f;var y=new l;return l.prototype=n,y}}();function Jp(){}function jo(l,f){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}V.templateSettings={escape:Xn,evaluate:us,interpolate:Ai,variable:"",imports:{_:V}},V.prototype=Jp.prototype,V.prototype.constructor=V,jo.prototype=gc(Jp.prototype),jo.prototype.constructor=jo;function zt(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function CD(){var l=new zt(this.__wrapped__);return l.__actions__=Gr(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=Gr(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=Gr(this.__views__),l}function xD(){if(this.__filtered__){var l=new zt(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function SD(){var l=this.__wrapped__.value(),f=this.__dir__,y=kt(l),$=f<0,D=y?l.length:0,U=A5(0,D,this.__views__),K=U.start,Y=U.end,te=Y-K,xe=$?Y:K-1,Ee=this.__iteratees__,Pe=Ee.length,De=0,rt=Er(te,this.__takeCount__);if(!y||!$&&D==te&&rt==te)return jP(l,this.__actions__);var bt=[];e:for(;te--&&De<rt;){xe+=f;for(var Mt=-1,wt=l[xe];++Mt<Pe;){var Nt=Ee[Mt],Vt=Nt.iteratee,mo=Nt.type,Br=Vt(wt);if(mo==F)wt=Br;else if(!Br){if(mo==A)continue e;break e}}bt[De++]=wt}return bt}zt.prototype=gc(Jp.prototype),zt.prototype.constructor=zt;function oa(l){var f=-1,y=l==null?0:l.length;for(this.clear();++f<y;){var $=l[f];this.set($[0],$[1])}}function ED(){this.__data__=id?id(null):{},this.size=0}function PD(l){var f=this.has(l)&&delete this.__data__[l];return this.size-=f?1:0,f}function kD(l){var f=this.__data__;if(id){var y=f[l];return y===c?n:y}return nn.call(f,l)?f[l]:n}function _D(l){var f=this.__data__;return id?f[l]!==n:nn.call(f,l)}function ID(l,f){var y=this.__data__;return this.size+=this.has(l)?0:1,y[l]=id&&f===n?c:f,this}oa.prototype.clear=ED,oa.prototype.delete=PD,oa.prototype.get=kD,oa.prototype.has=_D,oa.prototype.set=ID;function ps(l){var f=-1,y=l==null?0:l.length;for(this.clear();++f<y;){var $=l[f];this.set($[0],$[1])}}function $D(){this.__data__=[],this.size=0}function MD(l){var f=this.__data__,y=Zp(f,l);if(y<0)return!1;var $=f.length-1;return y==$?f.pop():Gp.call(f,y,1),--this.size,!0}function RD(l){var f=this.__data__,y=Zp(f,l);return y<0?n:f[y][1]}function TD(l){return Zp(this.__data__,l)>-1}function OD(l,f){var y=this.__data__,$=Zp(y,l);return $<0?(++this.size,y.push([l,f])):y[$][1]=f,this}ps.prototype.clear=$D,ps.prototype.delete=MD,ps.prototype.get=RD,ps.prototype.has=TD,ps.prototype.set=OD;function hs(l){var f=-1,y=l==null?0:l.length;for(this.clear();++f<y;){var $=l[f];this.set($[0],$[1])}}function LD(){this.size=0,this.__data__={hash:new oa,map:new(rd||ps),string:new oa}}function AD(l){var f=dh(this,l).delete(l);return this.size-=f?1:0,f}function FD(l){return dh(this,l).get(l)}function ND(l){return dh(this,l).has(l)}function DD(l,f){var y=dh(this,l),$=y.size;return y.set(l,f),this.size+=y.size==$?0:1,this}hs.prototype.clear=LD,hs.prototype.delete=AD,hs.prototype.get=FD,hs.prototype.has=ND,hs.prototype.set=DD;function ia(l){var f=-1,y=l==null?0:l.length;for(this.__data__=new hs;++f<y;)this.add(l[f])}function BD(l){return this.__data__.set(l,c),this}function zD(l){return this.__data__.has(l)}ia.prototype.add=ia.prototype.push=BD,ia.prototype.has=zD;function pi(l){var f=this.__data__=new ps(l);this.size=f.size}function jD(){this.__data__=new ps,this.size=0}function HD(l){var f=this.__data__,y=f.delete(l);return this.size=f.size,y}function VD(l){return this.__data__.get(l)}function UD(l){return this.__data__.has(l)}function WD(l,f){var y=this.__data__;if(y instanceof ps){var $=y.__data__;if(!rd||$.length<o-1)return $.push([l,f]),this.size=++y.size,this;y=this.__data__=new hs($)}return y.set(l,f),this.size=y.size,this}pi.prototype.clear=jD,pi.prototype.delete=HD,pi.prototype.get=VD,pi.prototype.has=UD,pi.prototype.set=WD;function yP(l,f){var y=kt(l),$=!y&&ua(l),D=!y&&!$&&sl(l),U=!y&&!$&&!D&&wc(l),K=y||$||D||U,Y=K?Oy(l.length,tD):[],te=Y.length;for(var xe in l)(f||nn.call(l,xe))&&!(K&&(xe=="length"||D&&(xe=="offset"||xe=="parent")||U&&(xe=="buffer"||xe=="byteLength"||xe=="byteOffset")||ys(xe,te)))&&Y.push(xe);return Y}function bP(l){var f=l.length;return f?l[Xy(0,f-1)]:n}function GD(l,f){return fh(Gr(l),sa(f,0,l.length))}function KD(l){return fh(Gr(l))}function zy(l,f,y){(y!==n&&!hi(l[f],y)||y===n&&!(f in l))&&ms(l,f,y)}function ld(l,f,y){var $=l[f];(!(nn.call(l,f)&&hi($,y))||y===n&&!(f in l))&&ms(l,f,y)}function Zp(l,f){for(var y=l.length;y--;)if(hi(l[y][0],f))return y;return-1}function qD(l,f,y,$){return nl(l,function(D,U,K){f($,D,y(D),K)}),$}function wP(l,f){return l&&Ni(f,lr(f),l)}function YD(l,f){return l&&Ni(f,qr(f),l)}function ms(l,f,y){f=="__proto__"&&Kp?Kp(l,f,{configurable:!0,enumerable:!0,value:y,writable:!0}):l[f]=y}function jy(l,f){for(var y=-1,$=f.length,D=de($),U=l==null;++y<$;)D[y]=U?n:C0(l,f[y]);return D}function sa(l,f,y){return l===l&&(y!==n&&(l=l<=y?l:y),f!==n&&(l=l>=f?l:f)),l}function Ho(l,f,y,$,D,U){var K,Y=f&h,te=f&m,xe=f&v;if(y&&(K=D?y(l,$,D,U):y(l)),K!==n)return K;if(!Tn(l))return l;var Ee=kt(l);if(Ee){if(K=N5(l),!Y)return Gr(l,K)}else{var Pe=Pr(l),De=Pe==$e||Pe==Be;if(sl(l))return UP(l,Y);if(Pe==ve||Pe==fe||De&&!D){if(K=te||De?{}:ck(l),!Y)return te?k5(l,YD(K,l)):P5(l,wP(K,l))}else{if(!pn[Pe])return D?l:{};K=D5(l,Pe,Y)}}U||(U=new pi);var rt=U.get(l);if(rt)return rt;U.set(l,K),Dk(l)?l.forEach(function(wt){K.add(Ho(wt,f,y,wt,l,U))}):Fk(l)&&l.forEach(function(wt,Nt){K.set(Nt,Ho(wt,f,y,Nt,l,U))});var bt=xe?te?l0:s0:te?qr:lr,Mt=Ee?n:bt(l);return Bo(Mt||l,function(wt,Nt){Mt&&(Nt=wt,wt=l[Nt]),ld(K,Nt,Ho(wt,f,y,Nt,l,U))}),K}function XD(l){var f=lr(l);return function(y){return CP(y,l,f)}}function CP(l,f,y){var $=y.length;if(l==null)return!$;for(l=un(l);$--;){var D=y[$],U=f[D],K=l[D];if(K===n&&!(D in l)||!U(K))return!1}return!0}function xP(l,f,y){if(typeof l!="function")throw new zo(s);return hd(function(){l.apply(n,y)},f)}function ad(l,f,y,$){var D=-1,U=Fp,K=!0,Y=l.length,te=[],xe=f.length;if(!Y)return te;y&&(f=Pn(f,fo(y))),$?(U=_y,K=!1):f.length>=o&&(U=td,K=!1,f=new ia(f));e:for(;++D<Y;){var Ee=l[D],Pe=y==null?Ee:y(Ee);if(Ee=$||Ee!==0?Ee:0,K&&Pe===Pe){for(var De=xe;De--;)if(f[De]===Pe)continue e;te.push(Ee)}else U(f,Pe,$)||te.push(Ee)}return te}var nl=YP(Fi),SP=YP(Vy,!0);function QD(l,f){var y=!0;return nl(l,function($,D,U){return y=!!f($,D,U),y}),y}function eh(l,f,y){for(var $=-1,D=l.length;++$<D;){var U=l[$],K=f(U);if(K!=null&&(Y===n?K===K&&!ho(K):y(K,Y)))var Y=K,te=U}return te}function JD(l,f,y,$){var D=l.length;for(y=It(y),y<0&&(y=-y>D?0:D+y),$=$===n||$>D?D:It($),$<0&&($+=D),$=y>$?0:zk($);y<$;)l[y++]=f;return l}function EP(l,f){var y=[];return nl(l,function($,D,U){f($,D,U)&&y.push($)}),y}function vr(l,f,y,$,D){var U=-1,K=l.length;for(y||(y=z5),D||(D=[]);++U<K;){var Y=l[U];f>0&&y(Y)?f>1?vr(Y,f-1,y,$,D):Zs(D,Y):$||(D[D.length]=Y)}return D}var Hy=XP(),PP=XP(!0);function Fi(l,f){return l&&Hy(l,f,lr)}function Vy(l,f){return l&&PP(l,f,lr)}function th(l,f){return Js(f,function(y){return bs(l[y])})}function la(l,f){f=ol(f,l);for(var y=0,$=f.length;l!=null&&y<$;)l=l[Di(f[y++])];return y&&y==$?l:n}function kP(l,f,y){var $=f(l);return kt(l)?$:Zs($,y(l))}function Nr(l){return l==null?l===n?vt:Te:ra&&ra in un(l)?L5(l):K5(l)}function Uy(l,f){return l>f}function ZD(l,f){return l!=null&&nn.call(l,f)}function e5(l,f){return l!=null&&f in un(l)}function t5(l,f,y){return l>=Er(f,y)&&l<nr(f,y)}function Wy(l,f,y){for(var $=y?_y:Fp,D=l[0].length,U=l.length,K=U,Y=de(U),te=1/0,xe=[];K--;){var Ee=l[K];K&&f&&(Ee=Pn(Ee,fo(f))),te=Er(Ee.length,te),Y[K]=!y&&(f||D>=120&&Ee.length>=120)?new ia(K&&Ee):n}Ee=l[0];var Pe=-1,De=Y[0];e:for(;++Pe<D&&xe.length<te;){var rt=Ee[Pe],bt=f?f(rt):rt;if(rt=y||rt!==0?rt:0,!(De?td(De,bt):$(xe,bt,y))){for(K=U;--K;){var Mt=Y[K];if(!(Mt?td(Mt,bt):$(l[K],bt,y)))continue e}De&&De.push(bt),xe.push(rt)}}return xe}function n5(l,f,y,$){return Fi(l,function(D,U,K){f($,y(D),U,K)}),$}function cd(l,f,y){f=ol(f,l),l=pk(l,f);var $=l==null?l:l[Di(Uo(f))];return $==null?n:uo($,l,y)}function _P(l){return zn(l)&&Nr(l)==fe}function r5(l){return zn(l)&&Nr(l)==Ge}function o5(l){return zn(l)&&Nr(l)==he}function ud(l,f,y,$,D){return l===f?!0:l==null||f==null||!zn(l)&&!zn(f)?l!==l&&f!==f:i5(l,f,y,$,ud,D)}function i5(l,f,y,$,D,U){var K=kt(l),Y=kt(f),te=K?Q:Pr(l),xe=Y?Q:Pr(f);te=te==fe?ve:te,xe=xe==fe?ve:xe;var Ee=te==ve,Pe=xe==ve,De=te==xe;if(De&&sl(l)){if(!sl(f))return!1;K=!0,Ee=!1}if(De&&!Ee)return U||(U=new pi),K||wc(l)?sk(l,f,y,$,D,U):T5(l,f,te,y,$,D,U);if(!(y&b)){var rt=Ee&&nn.call(l,"__wrapped__"),bt=Pe&&nn.call(f,"__wrapped__");if(rt||bt){var Mt=rt?l.value():l,wt=bt?f.value():f;return U||(U=new pi),D(Mt,wt,y,$,U)}}return De?(U||(U=new pi),O5(l,f,y,$,D,U)):!1}function s5(l){return zn(l)&&Pr(l)==Le}function Gy(l,f,y,$){var D=y.length,U=D,K=!$;if(l==null)return!U;for(l=un(l);D--;){var Y=y[D];if(K&&Y[2]?Y[1]!==l[Y[0]]:!(Y[0]in l))return!1}for(;++D<U;){Y=y[D];var te=Y[0],xe=l[te],Ee=Y[1];if(K&&Y[2]){if(xe===n&&!(te in l))return!1}else{var Pe=new pi;if($)var De=$(xe,Ee,te,l,f,Pe);if(!(De===n?ud(Ee,xe,b|g,$,Pe):De))return!1}}return!0}function IP(l){if(!Tn(l)||H5(l))return!1;var f=bs(l)?sD:Mn;return f.test(ca(l))}function l5(l){return zn(l)&&Nr(l)==pt}function a5(l){return zn(l)&&Pr(l)==Qe}function c5(l){return zn(l)&&yh(l.length)&&!!bn[Nr(l)]}function $P(l){return typeof l=="function"?l:l==null?Yr:typeof l=="object"?kt(l)?TP(l[0],l[1]):RP(l):Qk(l)}function Ky(l){if(!pd(l))return fD(l);var f=[];for(var y in un(l))nn.call(l,y)&&y!="constructor"&&f.push(y);return f}function u5(l){if(!Tn(l))return G5(l);var f=pd(l),y=[];for(var $ in l)$=="constructor"&&(f||!nn.call(l,$))||y.push($);return y}function qy(l,f){return l<f}function MP(l,f){var y=-1,$=Kr(l)?de(l.length):[];return nl(l,function(D,U,K){$[++y]=f(D,U,K)}),$}function RP(l){var f=c0(l);return f.length==1&&f[0][2]?dk(f[0][0],f[0][1]):function(y){return y===l||Gy(y,l,f)}}function TP(l,f){return d0(l)&&uk(f)?dk(Di(l),f):function(y){var $=C0(y,l);return $===n&&$===f?x0(y,l):ud(f,$,b|g)}}function nh(l,f,y,$,D){l!==f&&Hy(f,function(U,K){if(D||(D=new pi),Tn(U))d5(l,f,K,y,nh,$,D);else{var Y=$?$(p0(l,K),U,K+"",l,f,D):n;Y===n&&(Y=U),zy(l,K,Y)}},qr)}function d5(l,f,y,$,D,U,K){var Y=p0(l,y),te=p0(f,y),xe=K.get(te);if(xe){zy(l,y,xe);return}var Ee=U?U(Y,te,y+"",l,f,K):n,Pe=Ee===n;if(Pe){var De=kt(te),rt=!De&&sl(te),bt=!De&&!rt&&wc(te);Ee=te,De||rt||bt?kt(Y)?Ee=Y:Gn(Y)?Ee=Gr(Y):rt?(Pe=!1,Ee=UP(te,!0)):bt?(Pe=!1,Ee=WP(te,!0)):Ee=[]:md(te)||ua(te)?(Ee=Y,ua(Y)?Ee=jk(Y):(!Tn(Y)||bs(Y))&&(Ee=ck(te))):Pe=!1}Pe&&(K.set(te,Ee),D(Ee,te,$,U,K),K.delete(te)),zy(l,y,Ee)}function OP(l,f){var y=l.length;if(y)return f+=f<0?y:0,ys(f,y)?l[f]:n}function LP(l,f,y){f.length?f=Pn(f,function(U){return kt(U)?function(K){return la(K,U.length===1?U[0]:U)}:U}):f=[Yr];var $=-1;f=Pn(f,fo(yt()));var D=MP(l,function(U,K,Y){var te=Pn(f,function(xe){return xe(U)});return{criteria:te,index:++$,value:U}});return D4(D,function(U,K){return E5(U,K,y)})}function f5(l,f){return AP(l,f,function(y,$){return x0(l,$)})}function AP(l,f,y){for(var $=-1,D=f.length,U={};++$<D;){var K=f[$],Y=la(l,K);y(Y,K)&&dd(U,ol(K,l),Y)}return U}function p5(l){return function(f){return la(f,l)}}function Yy(l,f,y,$){var D=$?N4:cc,U=-1,K=f.length,Y=l;for(l===f&&(f=Gr(f)),y&&(Y=Pn(l,fo(y)));++U<K;)for(var te=0,xe=f[U],Ee=y?y(xe):xe;(te=D(Y,Ee,te,$))>-1;)Y!==l&&Gp.call(Y,te,1),Gp.call(l,te,1);return l}function FP(l,f){for(var y=l?f.length:0,$=y-1;y--;){var D=f[y];if(y==$||D!==U){var U=D;ys(D)?Gp.call(l,D,1):Zy(l,D)}}return l}function Xy(l,f){return l+Yp(gP()*(f-l+1))}function h5(l,f,y,$){for(var D=-1,U=nr(qp((f-l)/(y||1)),0),K=de(U);U--;)K[$?U:++D]=l,l+=y;return K}function Qy(l,f){var y="";if(!l||f<1||f>N)return y;do f%2&&(y+=l),f=Yp(f/2),f&&(l+=l);while(f);return y}function Rt(l,f){return h0(fk(l,f,Yr),l+"")}function m5(l){return bP(Cc(l))}function g5(l,f){var y=Cc(l);return fh(y,sa(f,0,y.length))}function dd(l,f,y,$){if(!Tn(l))return l;f=ol(f,l);for(var D=-1,U=f.length,K=U-1,Y=l;Y!=null&&++D<U;){var te=Di(f[D]),xe=y;if(te==="__proto__"||te==="constructor"||te==="prototype")return l;if(D!=K){var Ee=Y[te];xe=$?$(Ee,te,Y):n,xe===n&&(xe=Tn(Ee)?Ee:ys(f[D+1])?[]:{})}ld(Y,te,xe),Y=Y[te]}return l}var NP=Xp?function(l,f){return Xp.set(l,f),l}:Yr,v5=Kp?function(l,f){return Kp(l,"toString",{configurable:!0,enumerable:!1,value:E0(f),writable:!0})}:Yr;function y5(l){return fh(Cc(l))}function Vo(l,f,y){var $=-1,D=l.length;f<0&&(f=-f>D?0:D+f),y=y>D?D:y,y<0&&(y+=D),D=f>y?0:y-f>>>0,f>>>=0;for(var U=de(D);++$<D;)U[$]=l[$+f];return U}function b5(l,f){var y;return nl(l,function($,D,U){return y=f($,D,U),!y}),!!y}function rh(l,f,y){var $=0,D=l==null?$:l.length;if(typeof f=="number"&&f===f&&D<=ie){for(;$<D;){var U=$+D>>>1,K=l[U];K!==null&&!ho(K)&&(y?K<=f:K<f)?$=U+1:D=U}return D}return Jy(l,f,Yr,y)}function Jy(l,f,y,$){var D=0,U=l==null?0:l.length;if(U===0)return 0;f=y(f);for(var K=f!==f,Y=f===null,te=ho(f),xe=f===n;D<U;){var Ee=Yp((D+U)/2),Pe=y(l[Ee]),De=Pe!==n,rt=Pe===null,bt=Pe===Pe,Mt=ho(Pe);if(K)var wt=$||bt;else xe?wt=bt&&($||De):Y?wt=bt&&De&&($||!rt):te?wt=bt&&De&&!rt&&($||!Mt):rt||Mt?wt=!1:wt=$?Pe<=f:Pe<f;wt?D=Ee+1:U=Ee}return Er(U,X)}function DP(l,f){for(var y=-1,$=l.length,D=0,U=[];++y<$;){var K=l[y],Y=f?f(K):K;if(!y||!hi(Y,te)){var te=Y;U[D++]=K===0?0:K}}return U}function BP(l){return typeof l=="number"?l:ho(l)?W:+l}function po(l){if(typeof l=="string")return l;if(kt(l))return Pn(l,po)+"";if(ho(l))return vP?vP.call(l):"";var f=l+"";return f=="0"&&1/l==-G?"-0":f}function rl(l,f,y){var $=-1,D=Fp,U=l.length,K=!0,Y=[],te=Y;if(y)K=!1,D=_y;else if(U>=o){var xe=f?null:M5(l);if(xe)return Dp(xe);K=!1,D=td,te=new ia}else te=f?[]:Y;e:for(;++$<U;){var Ee=l[$],Pe=f?f(Ee):Ee;if(Ee=y||Ee!==0?Ee:0,K&&Pe===Pe){for(var De=te.length;De--;)if(te[De]===Pe)continue e;f&&te.push(Pe),Y.push(Ee)}else D(te,Pe,y)||(te!==Y&&te.push(Pe),Y.push(Ee))}return Y}function Zy(l,f){return f=ol(f,l),l=pk(l,f),l==null||delete l[Di(Uo(f))]}function zP(l,f,y,$){return dd(l,f,y(la(l,f)),$)}function oh(l,f,y,$){for(var D=l.length,U=$?D:-1;($?U--:++U<D)&&f(l[U],U,l););return y?Vo(l,$?0:U,$?U+1:D):Vo(l,$?U+1:0,$?D:U)}function jP(l,f){var y=l;return y instanceof zt&&(y=y.value()),Iy(f,function($,D){return D.func.apply(D.thisArg,Zs([$],D.args))},y)}function e0(l,f,y){var $=l.length;if($<2)return $?rl(l[0]):[];for(var D=-1,U=de($);++D<$;)for(var K=l[D],Y=-1;++Y<$;)Y!=D&&(U[D]=ad(U[D]||K,l[Y],f,y));return rl(vr(U,1),f,y)}function HP(l,f,y){for(var $=-1,D=l.length,U=f.length,K={};++$<D;){var Y=$<U?f[$]:n;y(K,l[$],Y)}return K}function t0(l){return Gn(l)?l:[]}function n0(l){return typeof l=="function"?l:Yr}function ol(l,f){return kt(l)?l:d0(l,f)?[l]:vk(Zt(l))}var w5=Rt;function il(l,f,y){var $=l.length;return y=y===n?$:y,!f&&y>=$?l:Vo(l,f,y)}var VP=lD||function(l){return gr.clearTimeout(l)};function UP(l,f){if(f)return l.slice();var y=l.length,$=dP?dP(y):new l.constructor(y);return l.copy($),$}function r0(l){var f=new l.constructor(l.byteLength);return new Up(f).set(new Up(l)),f}function C5(l,f){var y=f?r0(l.buffer):l.buffer;return new l.constructor(y,l.byteOffset,l.byteLength)}function x5(l){var f=new l.constructor(l.source,He.exec(l));return f.lastIndex=l.lastIndex,f}function S5(l){return sd?un(sd.call(l)):{}}function WP(l,f){var y=f?r0(l.buffer):l.buffer;return new l.constructor(y,l.byteOffset,l.length)}function GP(l,f){if(l!==f){var y=l!==n,$=l===null,D=l===l,U=ho(l),K=f!==n,Y=f===null,te=f===f,xe=ho(f);if(!Y&&!xe&&!U&&l>f||U&&K&&te&&!Y&&!xe||$&&K&&te||!y&&te||!D)return 1;if(!$&&!U&&!xe&&l<f||xe&&y&&D&&!$&&!U||Y&&y&&D||!K&&D||!te)return-1}return 0}function E5(l,f,y){for(var $=-1,D=l.criteria,U=f.criteria,K=D.length,Y=y.length;++$<K;){var te=GP(D[$],U[$]);if(te){if($>=Y)return te;var xe=y[$];return te*(xe=="desc"?-1:1)}}return l.index-f.index}function KP(l,f,y,$){for(var D=-1,U=l.length,K=y.length,Y=-1,te=f.length,xe=nr(U-K,0),Ee=de(te+xe),Pe=!$;++Y<te;)Ee[Y]=f[Y];for(;++D<K;)(Pe||D<U)&&(Ee[y[D]]=l[D]);for(;xe--;)Ee[Y++]=l[D++];return Ee}function qP(l,f,y,$){for(var D=-1,U=l.length,K=-1,Y=y.length,te=-1,xe=f.length,Ee=nr(U-Y,0),Pe=de(Ee+xe),De=!$;++D<Ee;)Pe[D]=l[D];for(var rt=D;++te<xe;)Pe[rt+te]=f[te];for(;++K<Y;)(De||D<U)&&(Pe[rt+y[K]]=l[D++]);return Pe}function Gr(l,f){var y=-1,$=l.length;for(f||(f=de($));++y<$;)f[y]=l[y];return f}function Ni(l,f,y,$){var D=!y;y||(y={});for(var U=-1,K=f.length;++U<K;){var Y=f[U],te=$?$(y[Y],l[Y],Y,y,l):n;te===n&&(te=l[Y]),D?ms(y,Y,te):ld(y,Y,te)}return y}function P5(l,f){return Ni(l,u0(l),f)}function k5(l,f){return Ni(l,lk(l),f)}function ih(l,f){return function(y,$){var D=kt(y)?R4:qD,U=f?f():{};return D(y,l,yt($,2),U)}}function vc(l){return Rt(function(f,y){var $=-1,D=y.length,U=D>1?y[D-1]:n,K=D>2?y[2]:n;for(U=l.length>3&&typeof U=="function"?(D--,U):n,K&&Dr(y[0],y[1],K)&&(U=D<3?n:U,D=1),f=un(f);++$<D;){var Y=y[$];Y&&l(f,Y,$,U)}return f})}function YP(l,f){return function(y,$){if(y==null)return y;if(!Kr(y))return l(y,$);for(var D=y.length,U=f?D:-1,K=un(y);(f?U--:++U<D)&&$(K[U],U,K)!==!1;);return y}}function XP(l){return function(f,y,$){for(var D=-1,U=un(f),K=$(f),Y=K.length;Y--;){var te=K[l?Y:++D];if(y(U[te],te,U)===!1)break}return f}}function _5(l,f,y){var $=f&S,D=fd(l);function U(){var K=this&&this!==gr&&this instanceof U?D:l;return K.apply($?y:this,arguments)}return U}function QP(l){return function(f){f=Zt(f);var y=uc(f)?fi(f):n,$=y?y[0]:f.charAt(0),D=y?il(y,1).join(""):f.slice(1);return $[l]()+D}}function yc(l){return function(f){return Iy(Yk(qk(f).replace(v4,"")),l,"")}}function fd(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 y=gc(l.prototype),$=l.apply(y,f);return Tn($)?$:y}}function I5(l,f,y){var $=fd(l);function D(){for(var U=arguments.length,K=de(U),Y=U,te=bc(D);Y--;)K[Y]=arguments[Y];var xe=U<3&&K[0]!==te&&K[U-1]!==te?[]:el(K,te);if(U-=xe.length,U<y)return nk(l,f,sh,D.placeholder,n,K,xe,n,n,y-U);var Ee=this&&this!==gr&&this instanceof D?$:l;return uo(Ee,this,K)}return D}function JP(l){return function(f,y,$){var D=un(f);if(!Kr(f)){var U=yt(y,3);f=lr(f),y=function(Y){return U(D[Y],Y,D)}}var K=l(f,y,$);return K>-1?D[U?f[K]:K]:n}}function ZP(l){return vs(function(f){var y=f.length,$=y,D=jo.prototype.thru;for(l&&f.reverse();$--;){var U=f[$];if(typeof U!="function")throw new zo(s);if(D&&!K&&uh(U)=="wrapper")var K=new jo([],!0)}for($=K?$:y;++$<y;){U=f[$];var Y=uh(U),te=Y=="wrapper"?a0(U):n;te&&f0(te[0])&&te[1]==(_|w|k|M)&&!te[4].length&&te[9]==1?K=K[uh(te[0])].apply(K,te[3]):K=U.length==1&&f0(U)?K[Y]():K.thru(U)}return function(){var xe=arguments,Ee=xe[0];if(K&&xe.length==1&&kt(Ee))return K.plant(Ee).value();for(var Pe=0,De=y?f[Pe].apply(this,xe):Ee;++Pe<y;)De=f[Pe].call(this,De);return De}})}function sh(l,f,y,$,D,U,K,Y,te,xe){var Ee=f&_,Pe=f&S,De=f&C,rt=f&(w|x),bt=f&O,Mt=De?n:fd(l);function wt(){for(var Nt=arguments.length,Vt=de(Nt),mo=Nt;mo--;)Vt[mo]=arguments[mo];if(rt)var Br=bc(wt),go=z4(Vt,Br);if($&&(Vt=KP(Vt,$,D,rt)),U&&(Vt=qP(Vt,U,K,rt)),Nt-=go,rt&&Nt<xe){var Kn=el(Vt,Br);return nk(l,f,sh,wt.placeholder,y,Vt,Kn,Y,te,xe-Nt)}var mi=Pe?y:this,Cs=De?mi[l]:l;return Nt=Vt.length,Y?Vt=q5(Vt,Y):bt&&Nt>1&&Vt.reverse(),Ee&&te<Nt&&(Vt.length=te),this&&this!==gr&&this instanceof wt&&(Cs=Mt||fd(Cs)),Cs.apply(mi,Vt)}return wt}function ek(l,f){return function(y,$){return n5(y,l,f($),{})}}function lh(l,f){return function(y,$){var D;if(y===n&&$===n)return f;if(y!==n&&(D=y),$!==n){if(D===n)return $;typeof y=="string"||typeof $=="string"?(y=po(y),$=po($)):(y=BP(y),$=BP($)),D=l(y,$)}return D}}function o0(l){return vs(function(f){return f=Pn(f,fo(yt())),Rt(function(y){var $=this;return l(f,function(D){return uo(D,$,y)})})})}function ah(l,f){f=f===n?" ":po(f);var y=f.length;if(y<2)return y?Qy(f,l):f;var $=Qy(f,qp(l/dc(f)));return uc(f)?il(fi($),0,l).join(""):$.slice(0,l)}function $5(l,f,y,$){var D=f&S,U=fd(l);function K(){for(var Y=-1,te=arguments.length,xe=-1,Ee=$.length,Pe=de(Ee+te),De=this&&this!==gr&&this instanceof K?U:l;++xe<Ee;)Pe[xe]=$[xe];for(;te--;)Pe[xe++]=arguments[++Y];return uo(De,D?y:this,Pe)}return K}function tk(l){return function(f,y,$){return $&&typeof $!="number"&&Dr(f,y,$)&&(y=$=n),f=ws(f),y===n?(y=f,f=0):y=ws(y),$=$===n?f<y?1:-1:ws($),h5(f,y,$,l)}}function ch(l){return function(f,y){return typeof f=="string"&&typeof y=="string"||(f=Wo(f),y=Wo(y)),l(f,y)}}function nk(l,f,y,$,D,U,K,Y,te,xe){var Ee=f&w,Pe=Ee?K:n,De=Ee?n:K,rt=Ee?U:n,bt=Ee?n:U;f|=Ee?k:I,f&=~(Ee?I:k),f&E||(f&=~(S|C));var Mt=[l,f,D,rt,Pe,bt,De,Y,te,xe],wt=y.apply(n,Mt);return f0(l)&&hk(wt,Mt),wt.placeholder=$,mk(wt,l,f)}function i0(l){var f=tr[l];return function(y,$){if(y=Wo(y),$=$==null?0:Er(It($),292),$&&mP(y)){var D=(Zt(y)+"e").split("e"),U=f(D[0]+"e"+(+D[1]+$));return D=(Zt(U)+"e").split("e"),+(D[0]+"e"+(+D[1]-$))}return f(y)}}var M5=hc&&1/Dp(new hc([,-0]))[1]==G?function(l){return new hc(l)}:_0;function rk(l){return function(f){var y=Pr(f);return y==Le?Ay(f):y==Qe?K4(f):B4(f,l(f))}}function gs(l,f,y,$,D,U,K,Y){var te=f&C;if(!te&&typeof l!="function")throw new zo(s);var xe=$?$.length:0;if(xe||(f&=~(k|I),$=D=n),K=K===n?K:nr(It(K),0),Y=Y===n?Y:It(Y),xe-=D?D.length:0,f&I){var Ee=$,Pe=D;$=D=n}var De=te?n:a0(l),rt=[l,f,y,$,D,Ee,Pe,U,K,Y];if(De&&W5(rt,De),l=rt[0],f=rt[1],y=rt[2],$=rt[3],D=rt[4],Y=rt[9]=rt[9]===n?te?0:l.length:nr(rt[9]-xe,0),!Y&&f&(w|x)&&(f&=~(w|x)),!f||f==S)var bt=_5(l,f,y);else f==w||f==x?bt=I5(l,f,Y):(f==k||f==(S|k))&&!D.length?bt=$5(l,f,y,$):bt=sh.apply(n,rt);var Mt=De?NP:hk;return mk(Mt(bt,rt),l,f)}function ok(l,f,y,$){return l===n||hi(l,pc[y])&&!nn.call($,y)?f:l}function ik(l,f,y,$,D,U){return Tn(l)&&Tn(f)&&(U.set(f,l),nh(l,f,n,ik,U),U.delete(f)),l}function R5(l){return md(l)?n:l}function sk(l,f,y,$,D,U){var K=y&b,Y=l.length,te=f.length;if(Y!=te&&!(K&&te>Y))return!1;var xe=U.get(l),Ee=U.get(f);if(xe&&Ee)return xe==f&&Ee==l;var Pe=-1,De=!0,rt=y&g?new ia:n;for(U.set(l,f),U.set(f,l);++Pe<Y;){var bt=l[Pe],Mt=f[Pe];if($)var wt=K?$(Mt,bt,Pe,f,l,U):$(bt,Mt,Pe,l,f,U);if(wt!==n){if(wt)continue;De=!1;break}if(rt){if(!$y(f,function(Nt,Vt){if(!td(rt,Vt)&&(bt===Nt||D(bt,Nt,y,$,U)))return rt.push(Vt)})){De=!1;break}}else if(!(bt===Mt||D(bt,Mt,y,$,U))){De=!1;break}}return U.delete(l),U.delete(f),De}function T5(l,f,y,$,D,U,K){switch(y){case _e:if(l.byteLength!=f.byteLength||l.byteOffset!=f.byteOffset)return!1;l=l.buffer,f=f.buffer;case Ge:return!(l.byteLength!=f.byteLength||!U(new Up(l),new Up(f)));case ne:case he:case re:return hi(+l,+f);case ge:return l.name==f.name&&l.message==f.message;case pt:case Ct:return l==f+"";case Le:var Y=Ay;case Qe:var te=$&b;if(Y||(Y=Dp),l.size!=f.size&&!te)return!1;var xe=K.get(l);if(xe)return xe==f;$|=g,K.set(l,f);var Ee=sk(Y(l),Y(f),$,D,U,K);return K.delete(l),Ee;case it:if(sd)return sd.call(l)==sd.call(f)}return!1}function O5(l,f,y,$,D,U){var K=y&b,Y=s0(l),te=Y.length,xe=s0(f),Ee=xe.length;if(te!=Ee&&!K)return!1;for(var Pe=te;Pe--;){var De=Y[Pe];if(!(K?De in f:nn.call(f,De)))return!1}var rt=U.get(l),bt=U.get(f);if(rt&&bt)return rt==f&&bt==l;var Mt=!0;U.set(l,f),U.set(f,l);for(var wt=K;++Pe<te;){De=Y[Pe];var Nt=l[De],Vt=f[De];if($)var mo=K?$(Vt,Nt,De,f,l,U):$(Nt,Vt,De,l,f,U);if(!(mo===n?Nt===Vt||D(Nt,Vt,y,$,U):mo)){Mt=!1;break}wt||(wt=De=="constructor")}if(Mt&&!wt){var Br=l.constructor,go=f.constructor;Br!=go&&"constructor"in l&&"constructor"in f&&!(typeof Br=="function"&&Br instanceof Br&&typeof go=="function"&&go instanceof go)&&(Mt=!1)}return U.delete(l),U.delete(f),Mt}function vs(l){return h0(fk(l,n,Ck),l+"")}function s0(l){return kP(l,lr,u0)}function l0(l){return kP(l,qr,lk)}var a0=Xp?function(l){return Xp.get(l)}:_0;function uh(l){for(var f=l.name+"",y=mc[f],$=nn.call(mc,f)?y.length:0;$--;){var D=y[$],U=D.func;if(U==null||U==l)return D.name}return f}function bc(l){var f=nn.call(V,"placeholder")?V:l;return f.placeholder}function yt(){var l=V.iteratee||P0;return l=l===P0?$P:l,arguments.length?l(arguments[0],arguments[1]):l}function dh(l,f){var y=l.__data__;return j5(f)?y[typeof f=="string"?"string":"hash"]:y.map}function c0(l){for(var f=lr(l),y=f.length;y--;){var $=f[y],D=l[$];f[y]=[$,D,uk(D)]}return f}function aa(l,f){var y=U4(l,f);return IP(y)?y:n}function L5(l){var f=nn.call(l,ra),y=l[ra];try{l[ra]=n;var $=!0}catch(U){}var D=Hp.call(l);return $&&(f?l[ra]=y:delete l[ra]),D}var u0=Ny?function(l){return l==null?[]:(l=un(l),Js(Ny(l),function(f){return pP.call(l,f)}))}:I0,lk=Ny?function(l){for(var f=[];l;)Zs(f,u0(l)),l=Wp(l);return f}:I0,Pr=Nr;(Dy&&Pr(new Dy(new ArrayBuffer(1)))!=_e||rd&&Pr(new rd)!=Le||By&&Pr(By.resolve())!=ze||hc&&Pr(new hc)!=Qe||od&&Pr(new od)!=ht)&&(Pr=function(l){var f=Nr(l),y=f==ve?l.constructor:n,$=y?ca(y):"";if($)switch($){case gD:return _e;case vD:return Le;case yD:return ze;case bD:return Qe;case wD:return ht}return f});function A5(l,f,y){for(var $=-1,D=y.length;++$<D;){var U=y[$],K=U.size;switch(U.type){case"drop":l+=K;break;case"dropRight":f-=K;break;case"take":f=Er(f,l+K);break;case"takeRight":l=nr(l,f-K);break}}return{start:l,end:f}}function F5(l){var f=l.match(xt);return f?f[1].split(Wt):[]}function ak(l,f,y){f=ol(f,l);for(var $=-1,D=f.length,U=!1;++$<D;){var K=Di(f[$]);if(!(U=l!=null&&y(l,K)))break;l=l[K]}return U||++$!=D?U:(D=l==null?0:l.length,!!D&&yh(D)&&ys(K,D)&&(kt(l)||ua(l)))}function N5(l){var f=l.length,y=new l.constructor(f);return f&&typeof l[0]=="string"&&nn.call(l,"index")&&(y.index=l.index,y.input=l.input),y}function ck(l){return typeof l.constructor=="function"&&!pd(l)?gc(Wp(l)):{}}function D5(l,f,y){var $=l.constructor;switch(f){case Ge:return r0(l);case ne:case he:return new $(+l);case _e:return C5(l,y);case Me:case Fe:case Ve:case Se:case Oe:case Ue:case st:case Ft:case an:return WP(l,y);case Le:return new $;case re:case Ct:return new $(l);case pt:return x5(l);case Qe:return new $;case it:return S5(l)}}function B5(l,f){var y=f.length;if(!y)return l;var $=y-1;return f[$]=(y>1?"& ":"")+f[$],f=f.join(y>2?", ":" "),l.replace(je,`{
301
+ /* [wrapped with `+f+`] */
302
+ `)}function z5(l){return kt(l)||ua(l)||!!(hP&&l&&l[hP])}function ys(l,f){var y=typeof l;return f=f==null?N:f,!!f&&(y=="number"||y!="symbol"&&St.test(l))&&l>-1&&l%1==0&&l<f}function Dr(l,f,y){if(!Tn(y))return!1;var $=typeof f;return($=="number"?Kr(y)&&ys(f,y.length):$=="string"&&f in y)?hi(y[f],l):!1}function d0(l,f){if(kt(l))return!1;var y=typeof l;return y=="number"||y=="symbol"||y=="boolean"||l==null||ho(l)?!0:fs.test(l)||!ds.test(l)||f!=null&&l in un(f)}function j5(l){var f=typeof l;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?l!=="__proto__":l===null}function f0(l){var f=uh(l),y=V[f];if(typeof y!="function"||!(f in zt.prototype))return!1;if(l===y)return!0;var $=a0(y);return!!$&&l===$[0]}function H5(l){return!!uP&&uP in l}var V5=zp?bs:$0;function pd(l){var f=l&&l.constructor,y=typeof f=="function"&&f.prototype||pc;return l===y}function uk(l){return l===l&&!Tn(l)}function dk(l,f){return function(y){return y==null?!1:y[l]===f&&(f!==n||l in un(y))}}function U5(l){var f=gh(l,function($){return y.size===d&&y.clear(),$}),y=f.cache;return f}function W5(l,f){var y=l[1],$=f[1],D=y|$,U=D<(S|C|_),K=$==_&&y==w||$==_&&y==M&&l[7].length<=f[8]||$==(_|M)&&f[7].length<=f[8]&&y==w;if(!(U||K))return l;$&S&&(l[2]=f[2],D|=y&S?0:E);var Y=f[3];if(Y){var te=l[3];l[3]=te?KP(te,Y,f[4]):Y,l[4]=te?el(l[3],p):f[4]}return Y=f[5],Y&&(te=l[5],l[5]=te?qP(te,Y,f[6]):Y,l[6]=te?el(l[5],p):f[6]),Y=f[7],Y&&(l[7]=Y),$&_&&(l[8]=l[8]==null?f[8]:Er(l[8],f[8])),l[9]==null&&(l[9]=f[9]),l[0]=f[0],l[1]=D,l}function G5(l){var f=[];if(l!=null)for(var y in un(l))f.push(y);return f}function K5(l){return Hp.call(l)}function fk(l,f,y){return f=nr(f===n?l.length-1:f,0),function(){for(var $=arguments,D=-1,U=nr($.length-f,0),K=de(U);++D<U;)K[D]=$[f+D];D=-1;for(var Y=de(f+1);++D<f;)Y[D]=$[D];return Y[f]=y(K),uo(l,this,Y)}}function pk(l,f){return f.length<2?l:la(l,Vo(f,0,-1))}function q5(l,f){for(var y=l.length,$=Er(f.length,y),D=Gr(l);$--;){var U=f[$];l[$]=ys(U,y)?D[U]:n}return l}function p0(l,f){if(!(f==="constructor"&&typeof l[f]=="function")&&f!="__proto__")return l[f]}var hk=gk(NP),hd=cD||function(l,f){return gr.setTimeout(l,f)},h0=gk(v5);function mk(l,f,y){var $=f+"";return h0(l,B5($,Y5(F5($),y)))}function gk(l){var f=0,y=0;return function(){var $=pD(),D=j-($-y);if(y=$,D>0){if(++f>=H)return arguments[0]}else f=0;return l.apply(n,arguments)}}function fh(l,f){var y=-1,$=l.length,D=$-1;for(f=f===n?$:f;++y<f;){var U=Xy(y,D),K=l[U];l[U]=l[y],l[y]=K}return l.length=f,l}var vk=U5(function(l){var f=[];return l.charCodeAt(0)===46&&f.push(""),l.replace(ae,function(y,$,D,U){f.push(D?U.replace(Ce,"$1"):$||y)}),f});function Di(l){if(typeof l=="string"||ho(l))return l;var f=l+"";return f=="0"&&1/l==-G?"-0":f}function ca(l){if(l!=null){try{return jp.call(l)}catch(f){}try{return l+""}catch(f){}}return""}function Y5(l,f){return Bo(J,function(y){var $="_."+y[0];f&y[1]&&!Fp(l,$)&&l.push($)}),l.sort()}function yk(l){if(l instanceof zt)return l.clone();var f=new jo(l.__wrapped__,l.__chain__);return f.__actions__=Gr(l.__actions__),f.__index__=l.__index__,f.__values__=l.__values__,f}function X5(l,f,y){(y?Dr(l,f,y):f===n)?f=1:f=nr(It(f),0);var $=l==null?0:l.length;if(!$||f<1)return[];for(var D=0,U=0,K=de(qp($/f));D<$;)K[U++]=Vo(l,D,D+=f);return K}function Q5(l){for(var f=-1,y=l==null?0:l.length,$=0,D=[];++f<y;){var U=l[f];U&&(D[$++]=U)}return D}function J5(){var l=arguments.length;if(!l)return[];for(var f=de(l-1),y=arguments[0],$=l;$--;)f[$-1]=arguments[$];return Zs(kt(y)?Gr(y):[y],vr(f,1))}var Z5=Rt(function(l,f){return Gn(l)?ad(l,vr(f,1,Gn,!0)):[]}),eB=Rt(function(l,f){var y=Uo(f);return Gn(y)&&(y=n),Gn(l)?ad(l,vr(f,1,Gn,!0),yt(y,2)):[]}),tB=Rt(function(l,f){var y=Uo(f);return Gn(y)&&(y=n),Gn(l)?ad(l,vr(f,1,Gn,!0),n,y):[]});function nB(l,f,y){var $=l==null?0:l.length;return $?(f=y||f===n?1:It(f),Vo(l,f<0?0:f,$)):[]}function rB(l,f,y){var $=l==null?0:l.length;return $?(f=y||f===n?1:It(f),f=$-f,Vo(l,0,f<0?0:f)):[]}function oB(l,f){return l&&l.length?oh(l,yt(f,3),!0,!0):[]}function iB(l,f){return l&&l.length?oh(l,yt(f,3),!0):[]}function sB(l,f,y,$){var D=l==null?0:l.length;return D?(y&&typeof y!="number"&&Dr(l,f,y)&&(y=0,$=D),JD(l,f,y,$)):[]}function bk(l,f,y){var $=l==null?0:l.length;if(!$)return-1;var D=y==null?0:It(y);return D<0&&(D=nr($+D,0)),Np(l,yt(f,3),D)}function wk(l,f,y){var $=l==null?0:l.length;if(!$)return-1;var D=$-1;return y!==n&&(D=It(y),D=y<0?nr($+D,0):Er(D,$-1)),Np(l,yt(f,3),D,!0)}function Ck(l){var f=l==null?0:l.length;return f?vr(l,1):[]}function lB(l){var f=l==null?0:l.length;return f?vr(l,G):[]}function aB(l,f){var y=l==null?0:l.length;return y?(f=f===n?1:It(f),vr(l,f)):[]}function cB(l){for(var f=-1,y=l==null?0:l.length,$={};++f<y;){var D=l[f];$[D[0]]=D[1]}return $}function xk(l){return l&&l.length?l[0]:n}function uB(l,f,y){var $=l==null?0:l.length;if(!$)return-1;var D=y==null?0:It(y);return D<0&&(D=nr($+D,0)),cc(l,f,D)}function dB(l){var f=l==null?0:l.length;return f?Vo(l,0,-1):[]}var fB=Rt(function(l){var f=Pn(l,t0);return f.length&&f[0]===l[0]?Wy(f):[]}),pB=Rt(function(l){var f=Uo(l),y=Pn(l,t0);return f===Uo(y)?f=n:y.pop(),y.length&&y[0]===l[0]?Wy(y,yt(f,2)):[]}),hB=Rt(function(l){var f=Uo(l),y=Pn(l,t0);return f=typeof f=="function"?f:n,f&&y.pop(),y.length&&y[0]===l[0]?Wy(y,n,f):[]});function mB(l,f){return l==null?"":dD.call(l,f)}function Uo(l){var f=l==null?0:l.length;return f?l[f-1]:n}function gB(l,f,y){var $=l==null?0:l.length;if(!$)return-1;var D=$;return y!==n&&(D=It(y),D=D<0?nr($+D,0):Er(D,$-1)),f===f?Y4(l,f,D):Np(l,nP,D,!0)}function vB(l,f){return l&&l.length?OP(l,It(f)):n}var yB=Rt(Sk);function Sk(l,f){return l&&l.length&&f&&f.length?Yy(l,f):l}function bB(l,f,y){return l&&l.length&&f&&f.length?Yy(l,f,yt(y,2)):l}function wB(l,f,y){return l&&l.length&&f&&f.length?Yy(l,f,n,y):l}var CB=vs(function(l,f){var y=l==null?0:l.length,$=jy(l,f);return FP(l,Pn(f,function(D){return ys(D,y)?+D:D}).sort(GP)),$});function xB(l,f){var y=[];if(!(l&&l.length))return y;var $=-1,D=[],U=l.length;for(f=yt(f,3);++$<U;){var K=l[$];f(K,$,l)&&(y.push(K),D.push($))}return FP(l,D),y}function m0(l){return l==null?l:mD.call(l)}function SB(l,f,y){var $=l==null?0:l.length;return $?(y&&typeof y!="number"&&Dr(l,f,y)?(f=0,y=$):(f=f==null?0:It(f),y=y===n?$:It(y)),Vo(l,f,y)):[]}function EB(l,f){return rh(l,f)}function PB(l,f,y){return Jy(l,f,yt(y,2))}function kB(l,f){var y=l==null?0:l.length;if(y){var $=rh(l,f);if($<y&&hi(l[$],f))return $}return-1}function _B(l,f){return rh(l,f,!0)}function IB(l,f,y){return Jy(l,f,yt(y,2),!0)}function $B(l,f){var y=l==null?0:l.length;if(y){var $=rh(l,f,!0)-1;if(hi(l[$],f))return $}return-1}function MB(l){return l&&l.length?DP(l):[]}function RB(l,f){return l&&l.length?DP(l,yt(f,2)):[]}function TB(l){var f=l==null?0:l.length;return f?Vo(l,1,f):[]}function OB(l,f,y){return l&&l.length?(f=y||f===n?1:It(f),Vo(l,0,f<0?0:f)):[]}function LB(l,f,y){var $=l==null?0:l.length;return $?(f=y||f===n?1:It(f),f=$-f,Vo(l,f<0?0:f,$)):[]}function AB(l,f){return l&&l.length?oh(l,yt(f,3),!1,!0):[]}function FB(l,f){return l&&l.length?oh(l,yt(f,3)):[]}var NB=Rt(function(l){return rl(vr(l,1,Gn,!0))}),DB=Rt(function(l){var f=Uo(l);return Gn(f)&&(f=n),rl(vr(l,1,Gn,!0),yt(f,2))}),BB=Rt(function(l){var f=Uo(l);return f=typeof f=="function"?f:n,rl(vr(l,1,Gn,!0),n,f)});function zB(l){return l&&l.length?rl(l):[]}function jB(l,f){return l&&l.length?rl(l,yt(f,2)):[]}function HB(l,f){return f=typeof f=="function"?f:n,l&&l.length?rl(l,n,f):[]}function g0(l){if(!(l&&l.length))return[];var f=0;return l=Js(l,function(y){if(Gn(y))return f=nr(y.length,f),!0}),Oy(f,function(y){return Pn(l,My(y))})}function Ek(l,f){if(!(l&&l.length))return[];var y=g0(l);return f==null?y:Pn(y,function($){return uo(f,n,$)})}var VB=Rt(function(l,f){return Gn(l)?ad(l,f):[]}),UB=Rt(function(l){return e0(Js(l,Gn))}),WB=Rt(function(l){var f=Uo(l);return Gn(f)&&(f=n),e0(Js(l,Gn),yt(f,2))}),GB=Rt(function(l){var f=Uo(l);return f=typeof f=="function"?f:n,e0(Js(l,Gn),n,f)}),KB=Rt(g0);function qB(l,f){return HP(l||[],f||[],ld)}function YB(l,f){return HP(l||[],f||[],dd)}var XB=Rt(function(l){var f=l.length,y=f>1?l[f-1]:n;return y=typeof y=="function"?(l.pop(),y):n,Ek(l,y)});function Pk(l){var f=V(l);return f.__chain__=!0,f}function QB(l,f){return f(l),l}function ph(l,f){return f(l)}var JB=vs(function(l){var f=l.length,y=f?l[0]:0,$=this.__wrapped__,D=function(U){return jy(U,l)};return f>1||this.__actions__.length||!($ instanceof zt)||!ys(y)?this.thru(D):($=$.slice(y,+y+(f?1:0)),$.__actions__.push({func:ph,args:[D],thisArg:n}),new jo($,this.__chain__).thru(function(U){return f&&!U.length&&U.push(n),U}))});function ZB(){return Pk(this)}function e3(){return new jo(this.value(),this.__chain__)}function t3(){this.__values__===n&&(this.__values__=Bk(this.value()));var l=this.__index__>=this.__values__.length,f=l?n:this.__values__[this.__index__++];return{done:l,value:f}}function n3(){return this}function r3(l){for(var f,y=this;y instanceof Jp;){var $=yk(y);$.__index__=0,$.__values__=n,f?D.__wrapped__=$:f=$;var D=$;y=y.__wrapped__}return D.__wrapped__=l,f}function o3(){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:ph,args:[m0],thisArg:n}),new jo(f,this.__chain__)}return this.thru(m0)}function i3(){return jP(this.__wrapped__,this.__actions__)}var s3=ih(function(l,f,y){nn.call(l,y)?++l[y]:ms(l,y,1)});function l3(l,f,y){var $=kt(l)?eP:QD;return y&&Dr(l,f,y)&&(f=n),$(l,yt(f,3))}function a3(l,f){var y=kt(l)?Js:EP;return y(l,yt(f,3))}var c3=JP(bk),u3=JP(wk);function d3(l,f){return vr(hh(l,f),1)}function f3(l,f){return vr(hh(l,f),G)}function p3(l,f,y){return y=y===n?1:It(y),vr(hh(l,f),y)}function kk(l,f){var y=kt(l)?Bo:nl;return y(l,yt(f,3))}function _k(l,f){var y=kt(l)?T4:SP;return y(l,yt(f,3))}var h3=ih(function(l,f,y){nn.call(l,y)?l[y].push(f):ms(l,y,[f])});function m3(l,f,y,$){l=Kr(l)?l:Cc(l),y=y&&!$?It(y):0;var D=l.length;return y<0&&(y=nr(D+y,0)),bh(l)?y<=D&&l.indexOf(f,y)>-1:!!D&&cc(l,f,y)>-1}var g3=Rt(function(l,f,y){var $=-1,D=typeof f=="function",U=Kr(l)?de(l.length):[];return nl(l,function(K){U[++$]=D?uo(f,K,y):cd(K,f,y)}),U}),v3=ih(function(l,f,y){ms(l,y,f)});function hh(l,f){var y=kt(l)?Pn:MP;return y(l,yt(f,3))}function y3(l,f,y,$){return l==null?[]:(kt(f)||(f=f==null?[]:[f]),y=$?n:y,kt(y)||(y=y==null?[]:[y]),LP(l,f,y))}var b3=ih(function(l,f,y){l[y?0:1].push(f)},function(){return[[],[]]});function w3(l,f,y){var $=kt(l)?Iy:oP,D=arguments.length<3;return $(l,yt(f,4),y,D,nl)}function C3(l,f,y){var $=kt(l)?O4:oP,D=arguments.length<3;return $(l,yt(f,4),y,D,SP)}function x3(l,f){var y=kt(l)?Js:EP;return y(l,vh(yt(f,3)))}function S3(l){var f=kt(l)?bP:m5;return f(l)}function E3(l,f,y){(y?Dr(l,f,y):f===n)?f=1:f=It(f);var $=kt(l)?GD:g5;return $(l,f)}function P3(l){var f=kt(l)?KD:y5;return f(l)}function k3(l){if(l==null)return 0;if(Kr(l))return bh(l)?dc(l):l.length;var f=Pr(l);return f==Le||f==Qe?l.size:Ky(l).length}function _3(l,f,y){var $=kt(l)?$y:b5;return y&&Dr(l,f,y)&&(f=n),$(l,yt(f,3))}var I3=Rt(function(l,f){if(l==null)return[];var y=f.length;return y>1&&Dr(l,f[0],f[1])?f=[]:y>2&&Dr(f[0],f[1],f[2])&&(f=[f[0]]),LP(l,vr(f,1),[])}),mh=aD||function(){return gr.Date.now()};function $3(l,f){if(typeof f!="function")throw new zo(s);return l=It(l),function(){if(--l<1)return f.apply(this,arguments)}}function Ik(l,f,y){return f=y?n:f,f=l&&f==null?l.length:f,gs(l,_,n,n,n,n,f)}function $k(l,f){var y;if(typeof f!="function")throw new zo(s);return l=It(l),function(){return--l>0&&(y=f.apply(this,arguments)),l<=1&&(f=n),y}}var v0=Rt(function(l,f,y){var $=S;if(y.length){var D=el(y,bc(v0));$|=k}return gs(l,$,f,y,D)}),Mk=Rt(function(l,f,y){var $=S|C;if(y.length){var D=el(y,bc(Mk));$|=k}return gs(f,$,l,y,D)});function Rk(l,f,y){f=y?n:f;var $=gs(l,w,n,n,n,n,n,f);return $.placeholder=Rk.placeholder,$}function Tk(l,f,y){f=y?n:f;var $=gs(l,x,n,n,n,n,n,f);return $.placeholder=Tk.placeholder,$}function Ok(l,f,y){var $,D,U,K,Y,te,xe=0,Ee=!1,Pe=!1,De=!0;if(typeof l!="function")throw new zo(s);f=Wo(f)||0,Tn(y)&&(Ee=!!y.leading,Pe="maxWait"in y,U=Pe?nr(Wo(y.maxWait)||0,f):U,De="trailing"in y?!!y.trailing:De);function rt(Kn){var mi=$,Cs=D;return $=D=n,xe=Kn,K=l.apply(Cs,mi),K}function bt(Kn){return xe=Kn,Y=hd(Nt,f),Ee?rt(Kn):K}function Mt(Kn){var mi=Kn-te,Cs=Kn-xe,Jk=f-mi;return Pe?Er(Jk,U-Cs):Jk}function wt(Kn){var mi=Kn-te,Cs=Kn-xe;return te===n||mi>=f||mi<0||Pe&&Cs>=U}function Nt(){var Kn=mh();if(wt(Kn))return Vt(Kn);Y=hd(Nt,Mt(Kn))}function Vt(Kn){return Y=n,De&&$?rt(Kn):($=D=n,K)}function mo(){Y!==n&&VP(Y),xe=0,$=te=D=Y=n}function Br(){return Y===n?K:Vt(mh())}function go(){var Kn=mh(),mi=wt(Kn);if($=arguments,D=this,te=Kn,mi){if(Y===n)return bt(te);if(Pe)return VP(Y),Y=hd(Nt,f),rt(te)}return Y===n&&(Y=hd(Nt,f)),K}return go.cancel=mo,go.flush=Br,go}var M3=Rt(function(l,f){return xP(l,1,f)}),R3=Rt(function(l,f,y){return xP(l,Wo(f)||0,y)});function T3(l){return gs(l,O)}function gh(l,f){if(typeof l!="function"||f!=null&&typeof f!="function")throw new zo(s);var y=function(){var $=arguments,D=f?f.apply(this,$):$[0],U=y.cache;if(U.has(D))return U.get(D);var K=l.apply(this,$);return y.cache=U.set(D,K)||U,K};return y.cache=new(gh.Cache||hs),y}gh.Cache=hs;function vh(l){if(typeof l!="function")throw new zo(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 O3(l){return $k(2,l)}var L3=w5(function(l,f){f=f.length==1&&kt(f[0])?Pn(f[0],fo(yt())):Pn(vr(f,1),fo(yt()));var y=f.length;return Rt(function($){for(var D=-1,U=Er($.length,y);++D<U;)$[D]=f[D].call(this,$[D]);return uo(l,this,$)})}),y0=Rt(function(l,f){var y=el(f,bc(y0));return gs(l,k,n,f,y)}),Lk=Rt(function(l,f){var y=el(f,bc(Lk));return gs(l,I,n,f,y)}),A3=vs(function(l,f){return gs(l,M,n,n,n,f)});function F3(l,f){if(typeof l!="function")throw new zo(s);return f=f===n?f:It(f),Rt(l,f)}function N3(l,f){if(typeof l!="function")throw new zo(s);return f=f==null?0:nr(It(f),0),Rt(function(y){var $=y[f],D=il(y,0,f);return $&&Zs(D,$),uo(l,this,D)})}function D3(l,f,y){var $=!0,D=!0;if(typeof l!="function")throw new zo(s);return Tn(y)&&($="leading"in y?!!y.leading:$,D="trailing"in y?!!y.trailing:D),Ok(l,f,{leading:$,maxWait:f,trailing:D})}function B3(l){return Ik(l,1)}function z3(l,f){return y0(n0(f),l)}function j3(){if(!arguments.length)return[];var l=arguments[0];return kt(l)?l:[l]}function H3(l){return Ho(l,v)}function V3(l,f){return f=typeof f=="function"?f:n,Ho(l,v,f)}function U3(l){return Ho(l,h|v)}function W3(l,f){return f=typeof f=="function"?f:n,Ho(l,h|v,f)}function G3(l,f){return f==null||CP(l,f,lr(f))}function hi(l,f){return l===f||l!==l&&f!==f}var K3=ch(Uy),q3=ch(function(l,f){return l>=f}),ua=_P(function(){return arguments}())?_P:function(l){return zn(l)&&nn.call(l,"callee")&&!pP.call(l,"callee")},kt=de.isArray,Y3=qE?fo(qE):r5;function Kr(l){return l!=null&&yh(l.length)&&!bs(l)}function Gn(l){return zn(l)&&Kr(l)}function X3(l){return l===!0||l===!1||zn(l)&&Nr(l)==ne}var sl=uD||$0,Q3=YE?fo(YE):o5;function J3(l){return zn(l)&&l.nodeType===1&&!md(l)}function Z3(l){if(l==null)return!0;if(Kr(l)&&(kt(l)||typeof l=="string"||typeof l.splice=="function"||sl(l)||wc(l)||ua(l)))return!l.length;var f=Pr(l);if(f==Le||f==Qe)return!l.size;if(pd(l))return!Ky(l).length;for(var y in l)if(nn.call(l,y))return!1;return!0}function ez(l,f){return ud(l,f)}function tz(l,f,y){y=typeof y=="function"?y:n;var $=y?y(l,f):n;return $===n?ud(l,f,n,y):!!$}function b0(l){if(!zn(l))return!1;var f=Nr(l);return f==ge||f==be||typeof l.message=="string"&&typeof l.name=="string"&&!md(l)}function nz(l){return typeof l=="number"&&mP(l)}function bs(l){if(!Tn(l))return!1;var f=Nr(l);return f==$e||f==Be||f==le||f==nt}function Ak(l){return typeof l=="number"&&l==It(l)}function yh(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=N}function Tn(l){var f=typeof l;return l!=null&&(f=="object"||f=="function")}function zn(l){return l!=null&&typeof l=="object"}var Fk=XE?fo(XE):s5;function rz(l,f){return l===f||Gy(l,f,c0(f))}function oz(l,f,y){return y=typeof y=="function"?y:n,Gy(l,f,c0(f),y)}function iz(l){return Nk(l)&&l!=+l}function sz(l){if(V5(l))throw new Pt(i);return IP(l)}function lz(l){return l===null}function az(l){return l==null}function Nk(l){return typeof l=="number"||zn(l)&&Nr(l)==re}function md(l){if(!zn(l)||Nr(l)!=ve)return!1;var f=Wp(l);if(f===null)return!0;var y=nn.call(f,"constructor")&&f.constructor;return typeof y=="function"&&y instanceof y&&jp.call(y)==oD}var w0=QE?fo(QE):l5;function cz(l){return Ak(l)&&l>=-N&&l<=N}var Dk=JE?fo(JE):a5;function bh(l){return typeof l=="string"||!kt(l)&&zn(l)&&Nr(l)==Ct}function ho(l){return typeof l=="symbol"||zn(l)&&Nr(l)==it}var wc=ZE?fo(ZE):c5;function uz(l){return l===n}function dz(l){return zn(l)&&Pr(l)==ht}function fz(l){return zn(l)&&Nr(l)==ct}var pz=ch(qy),hz=ch(function(l,f){return l<=f});function Bk(l){if(!l)return[];if(Kr(l))return bh(l)?fi(l):Gr(l);if(nd&&l[nd])return G4(l[nd]());var f=Pr(l),y=f==Le?Ay:f==Qe?Dp:Cc;return y(l)}function ws(l){if(!l)return l===0?l:0;if(l=Wo(l),l===G||l===-G){var f=l<0?-1:1;return f*B}return l===l?l:0}function It(l){var f=ws(l),y=f%1;return f===f?y?f-y:f:0}function zk(l){return l?sa(It(l),0,q):0}function Wo(l){if(typeof l=="number")return l;if(ho(l))return W;if(Tn(l)){var f=typeof l.valueOf=="function"?l.valueOf():l;l=Tn(f)?f+"":f}if(typeof l!="string")return l===0?l:+l;l=iP(l);var y=Gt.test(l);return y||Rn.test(l)?$4(l.slice(2),y?2:8):dt.test(l)?W:+l}function jk(l){return Ni(l,qr(l))}function mz(l){return l?sa(It(l),-N,N):l===0?l:0}function Zt(l){return l==null?"":po(l)}var gz=vc(function(l,f){if(pd(f)||Kr(f)){Ni(f,lr(f),l);return}for(var y in f)nn.call(f,y)&&ld(l,y,f[y])}),Hk=vc(function(l,f){Ni(f,qr(f),l)}),wh=vc(function(l,f,y,$){Ni(f,qr(f),l,$)}),vz=vc(function(l,f,y,$){Ni(f,lr(f),l,$)}),yz=vs(jy);function bz(l,f){var y=gc(l);return f==null?y:wP(y,f)}var wz=Rt(function(l,f){l=un(l);var y=-1,$=f.length,D=$>2?f[2]:n;for(D&&Dr(f[0],f[1],D)&&($=1);++y<$;)for(var U=f[y],K=qr(U),Y=-1,te=K.length;++Y<te;){var xe=K[Y],Ee=l[xe];(Ee===n||hi(Ee,pc[xe])&&!nn.call(l,xe))&&(l[xe]=U[xe])}return l}),Cz=Rt(function(l){return l.push(n,ik),uo(Vk,n,l)});function xz(l,f){return tP(l,yt(f,3),Fi)}function Sz(l,f){return tP(l,yt(f,3),Vy)}function Ez(l,f){return l==null?l:Hy(l,yt(f,3),qr)}function Pz(l,f){return l==null?l:PP(l,yt(f,3),qr)}function kz(l,f){return l&&Fi(l,yt(f,3))}function _z(l,f){return l&&Vy(l,yt(f,3))}function Iz(l){return l==null?[]:th(l,lr(l))}function $z(l){return l==null?[]:th(l,qr(l))}function C0(l,f,y){var $=l==null?n:la(l,f);return $===n?y:$}function Mz(l,f){return l!=null&&ak(l,f,ZD)}function x0(l,f){return l!=null&&ak(l,f,e5)}var Rz=ek(function(l,f,y){f!=null&&typeof f.toString!="function"&&(f=Hp.call(f)),l[f]=y},E0(Yr)),Tz=ek(function(l,f,y){f!=null&&typeof f.toString!="function"&&(f=Hp.call(f)),nn.call(l,f)?l[f].push(y):l[f]=[y]},yt),Oz=Rt(cd);function lr(l){return Kr(l)?yP(l):Ky(l)}function qr(l){return Kr(l)?yP(l,!0):u5(l)}function Lz(l,f){var y={};return f=yt(f,3),Fi(l,function($,D,U){ms(y,f($,D,U),$)}),y}function Az(l,f){var y={};return f=yt(f,3),Fi(l,function($,D,U){ms(y,D,f($,D,U))}),y}var Fz=vc(function(l,f,y){nh(l,f,y)}),Vk=vc(function(l,f,y,$){nh(l,f,y,$)}),Nz=vs(function(l,f){var y={};if(l==null)return y;var $=!1;f=Pn(f,function(U){return U=ol(U,l),$||($=U.length>1),U}),Ni(l,l0(l),y),$&&(y=Ho(y,h|m|v,R5));for(var D=f.length;D--;)Zy(y,f[D]);return y});function Dz(l,f){return Uk(l,vh(yt(f)))}var Bz=vs(function(l,f){return l==null?{}:f5(l,f)});function Uk(l,f){if(l==null)return{};var y=Pn(l0(l),function($){return[$]});return f=yt(f),AP(l,y,function($,D){return f($,D[0])})}function zz(l,f,y){f=ol(f,l);var $=-1,D=f.length;for(D||(D=1,l=n);++$<D;){var U=l==null?n:l[Di(f[$])];U===n&&($=D,U=y),l=bs(U)?U.call(l):U}return l}function jz(l,f,y){return l==null?l:dd(l,f,y)}function Hz(l,f,y,$){return $=typeof $=="function"?$:n,l==null?l:dd(l,f,y,$)}var Wk=rk(lr),Gk=rk(qr);function Vz(l,f,y){var $=kt(l),D=$||sl(l)||wc(l);if(f=yt(f,4),y==null){var U=l&&l.constructor;D?y=$?new U:[]:Tn(l)?y=bs(U)?gc(Wp(l)):{}:y={}}return(D?Bo:Fi)(l,function(K,Y,te){return f(y,K,Y,te)}),y}function Uz(l,f){return l==null?!0:Zy(l,f)}function Wz(l,f,y){return l==null?l:zP(l,f,n0(y))}function Gz(l,f,y,$){return $=typeof $=="function"?$:n,l==null?l:zP(l,f,n0(y),$)}function Cc(l){return l==null?[]:Ly(l,lr(l))}function Kz(l){return l==null?[]:Ly(l,qr(l))}function qz(l,f,y){return y===n&&(y=f,f=n),y!==n&&(y=Wo(y),y=y===y?y:0),f!==n&&(f=Wo(f),f=f===f?f:0),sa(Wo(l),f,y)}function Yz(l,f,y){return f=ws(f),y===n?(y=f,f=0):y=ws(y),l=Wo(l),t5(l,f,y)}function Xz(l,f,y){if(y&&typeof y!="boolean"&&Dr(l,f,y)&&(f=y=n),y===n&&(typeof f=="boolean"?(y=f,f=n):typeof l=="boolean"&&(y=l,l=n)),l===n&&f===n?(l=0,f=1):(l=ws(l),f===n?(f=l,l=0):f=ws(f)),l>f){var $=l;l=f,f=$}if(y||l%1||f%1){var D=gP();return Er(l+D*(f-l+I4("1e-"+((D+"").length-1))),f)}return Xy(l,f)}var Qz=yc(function(l,f,y){return f=f.toLowerCase(),l+(y?Kk(f):f)});function Kk(l){return S0(Zt(l).toLowerCase())}function qk(l){return l=Zt(l),l&&l.replace(sr,j4).replace(y4,"")}function Jz(l,f,y){l=Zt(l),f=po(f);var $=l.length;y=y===n?$:sa(It(y),0,$);var D=y;return y-=f.length,y>=0&&l.slice(y,D)==f}function Zz(l){return l=Zt(l),l&&cn.test(l)?l.replace(Fr,H4):l}function e6(l){return l=Zt(l),l&&Ae.test(l)?l.replace(ye,"\\$&"):l}var t6=yc(function(l,f,y){return l+(y?"-":"")+f.toLowerCase()}),n6=yc(function(l,f,y){return l+(y?" ":"")+f.toLowerCase()}),r6=QP("toLowerCase");function o6(l,f,y){l=Zt(l),f=It(f);var $=f?dc(l):0;if(!f||$>=f)return l;var D=(f-$)/2;return ah(Yp(D),y)+l+ah(qp(D),y)}function i6(l,f,y){l=Zt(l),f=It(f);var $=f?dc(l):0;return f&&$<f?l+ah(f-$,y):l}function s6(l,f,y){l=Zt(l),f=It(f);var $=f?dc(l):0;return f&&$<f?ah(f-$,y)+l:l}function l6(l,f,y){return y||f==null?f=0:f&&(f=+f),hD(Zt(l).replace(ut,""),f||0)}function a6(l,f,y){return(y?Dr(l,f,y):f===n)?f=1:f=It(f),Qy(Zt(l),f)}function c6(){var l=arguments,f=Zt(l[0]);return l.length<3?f:f.replace(l[1],l[2])}var u6=yc(function(l,f,y){return l+(y?"_":"")+f.toLowerCase()});function d6(l,f,y){return y&&typeof y!="number"&&Dr(l,f,y)&&(f=y=n),y=y===n?q:y>>>0,y?(l=Zt(l),l&&(typeof f=="string"||f!=null&&!w0(f))&&(f=po(f),!f&&uc(l))?il(fi(l),0,y):l.split(f,y)):[]}var f6=yc(function(l,f,y){return l+(y?" ":"")+S0(f)});function p6(l,f,y){return l=Zt(l),y=y==null?0:sa(It(y),0,l.length),f=po(f),l.slice(y,y+f.length)==f}function h6(l,f,y){var $=V.templateSettings;y&&Dr(l,f,y)&&(f=n),l=Zt(l),f=wh({},f,$,ok);var D=wh({},f.imports,$.imports,ok),U=lr(D),K=Ly(D,U),Y,te,xe=0,Ee=f.interpolate||Op,Pe="__p += '",De=Fy((f.escape||Op).source+"|"+Ee.source+"|"+(Ee===Ai?me:Op).source+"|"+(f.evaluate||Op).source+"|$","g"),rt="//# sourceURL="+(nn.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++S4+"]")+`
303
+ `;l.replace(De,function(wt,Nt,Vt,mo,Br,go){return Vt||(Vt=mo),Pe+=l.slice(xe,go).replace(e4,V4),Nt&&(Y=!0,Pe+=`' +
304
+ __e(`+Nt+`) +
305
+ '`),Br&&(te=!0,Pe+=`';
306
+ `+Br+`;
307
+ __p += '`),Vt&&(Pe+=`' +
308
+ ((__t = (`+Vt+`)) == null ? '' : __t) +
309
+ '`),xe=go+wt.length,wt}),Pe+=`';
310
+ `;var bt=nn.call(f,"variable")&&f.variable;if(!bt)Pe=`with (obj) {
311
+ `+Pe+`
312
+ }
313
+ `;else if(co.test(bt))throw new Pt(a);Pe=(te?Pe.replace(yn,""):Pe).replace(Wn,"$1").replace(xr,"$1;"),Pe="function("+(bt||"obj")+`) {
314
+ `+(bt?"":`obj || (obj = {});
315
+ `)+"var __t, __p = ''"+(Y?", __e = _.escape":"")+(te?`, __j = Array.prototype.join;
316
+ function print() { __p += __j.call(arguments, '') }
317
+ `:`;
318
+ `)+Pe+`return __p
319
+ }`;var Mt=Xk(function(){return Xt(U,rt+"return "+Pe).apply(n,K)});if(Mt.source=Pe,b0(Mt))throw Mt;return Mt}function m6(l){return Zt(l).toLowerCase()}function g6(l){return Zt(l).toUpperCase()}function v6(l,f,y){if(l=Zt(l),l&&(y||f===n))return iP(l);if(!l||!(f=po(f)))return l;var $=fi(l),D=fi(f),U=sP($,D),K=lP($,D)+1;return il($,U,K).join("")}function y6(l,f,y){if(l=Zt(l),l&&(y||f===n))return l.slice(0,cP(l)+1);if(!l||!(f=po(f)))return l;var $=fi(l),D=lP($,fi(f))+1;return il($,0,D).join("")}function b6(l,f,y){if(l=Zt(l),l&&(y||f===n))return l.replace(ut,"");if(!l||!(f=po(f)))return l;var $=fi(l),D=sP($,fi(f));return il($,D).join("")}function w6(l,f){var y=R,$=L;if(Tn(f)){var D="separator"in f?f.separator:D;y="length"in f?It(f.length):y,$="omission"in f?po(f.omission):$}l=Zt(l);var U=l.length;if(uc(l)){var K=fi(l);U=K.length}if(y>=U)return l;var Y=y-dc($);if(Y<1)return $;var te=K?il(K,0,Y).join(""):l.slice(0,Y);if(D===n)return te+$;if(K&&(Y+=te.length-Y),w0(D)){if(l.slice(Y).search(D)){var xe,Ee=te;for(D.global||(D=Fy(D.source,Zt(He.exec(D))+"g")),D.lastIndex=0;xe=D.exec(Ee);)var Pe=xe.index;te=te.slice(0,Pe===n?Y:Pe)}}else if(l.indexOf(po(D),Y)!=Y){var De=te.lastIndexOf(D);De>-1&&(te=te.slice(0,De))}return te+$}function C6(l){return l=Zt(l),l&&Bn.test(l)?l.replace(Sr,X4):l}var x6=yc(function(l,f,y){return l+(y?" ":"")+f.toUpperCase()}),S0=QP("toUpperCase");function Yk(l,f,y){return l=Zt(l),f=y?n:f,f===n?W4(l)?Z4(l):F4(l):l.match(f)||[]}var Xk=Rt(function(l,f){try{return uo(l,n,f)}catch(y){return b0(y)?y:new Pt(y)}}),S6=vs(function(l,f){return Bo(f,function(y){y=Di(y),ms(l,y,v0(l[y],l))}),l});function E6(l){var f=l==null?0:l.length,y=yt();return l=f?Pn(l,function($){if(typeof $[1]!="function")throw new zo(s);return[y($[0]),$[1]]}):[],Rt(function($){for(var D=-1;++D<f;){var U=l[D];if(uo(U[0],this,$))return uo(U[1],this,$)}})}function P6(l){return XD(Ho(l,h))}function E0(l){return function(){return l}}function k6(l,f){return l==null||l!==l?f:l}var _6=ZP(),I6=ZP(!0);function Yr(l){return l}function P0(l){return $P(typeof l=="function"?l:Ho(l,h))}function $6(l){return RP(Ho(l,h))}function M6(l,f){return TP(l,Ho(f,h))}var R6=Rt(function(l,f){return function(y){return cd(y,l,f)}}),T6=Rt(function(l,f){return function(y){return cd(l,y,f)}});function k0(l,f,y){var $=lr(f),D=th(f,$);y==null&&!(Tn(f)&&(D.length||!$.length))&&(y=f,f=l,l=this,D=th(f,lr(f)));var U=!(Tn(y)&&"chain"in y)||!!y.chain,K=bs(l);return Bo(D,function(Y){var te=f[Y];l[Y]=te,K&&(l.prototype[Y]=function(){var xe=this.__chain__;if(U||xe){var Ee=l(this.__wrapped__),Pe=Ee.__actions__=Gr(this.__actions__);return Pe.push({func:te,args:arguments,thisArg:l}),Ee.__chain__=xe,Ee}return te.apply(l,Zs([this.value()],arguments))})}),l}function O6(){return gr._===this&&(gr._=iD),this}function _0(){}function L6(l){return l=It(l),Rt(function(f){return OP(f,l)})}var A6=o0(Pn),F6=o0(eP),N6=o0($y);function Qk(l){return d0(l)?My(Di(l)):p5(l)}function D6(l){return function(f){return l==null?n:la(l,f)}}var B6=tk(),z6=tk(!0);function I0(){return[]}function $0(){return!1}function j6(){return{}}function H6(){return""}function V6(){return!0}function U6(l,f){if(l=It(l),l<1||l>N)return[];var y=q,$=Er(l,q);f=yt(f),l-=q;for(var D=Oy($,f);++y<l;)f(y);return D}function W6(l){return kt(l)?Pn(l,Di):ho(l)?[l]:Gr(vk(Zt(l)))}function G6(l){var f=++rD;return Zt(l)+f}var K6=lh(function(l,f){return l+f},0),q6=i0("ceil"),Y6=lh(function(l,f){return l/f},1),X6=i0("floor");function Q6(l){return l&&l.length?eh(l,Yr,Uy):n}function J6(l,f){return l&&l.length?eh(l,yt(f,2),Uy):n}function Z6(l){return rP(l,Yr)}function ej(l,f){return rP(l,yt(f,2))}function tj(l){return l&&l.length?eh(l,Yr,qy):n}function nj(l,f){return l&&l.length?eh(l,yt(f,2),qy):n}var rj=lh(function(l,f){return l*f},1),oj=i0("round"),ij=lh(function(l,f){return l-f},0);function sj(l){return l&&l.length?Ty(l,Yr):0}function lj(l,f){return l&&l.length?Ty(l,yt(f,2)):0}return V.after=$3,V.ary=Ik,V.assign=gz,V.assignIn=Hk,V.assignInWith=wh,V.assignWith=vz,V.at=yz,V.before=$k,V.bind=v0,V.bindAll=S6,V.bindKey=Mk,V.castArray=j3,V.chain=Pk,V.chunk=X5,V.compact=Q5,V.concat=J5,V.cond=E6,V.conforms=P6,V.constant=E0,V.countBy=s3,V.create=bz,V.curry=Rk,V.curryRight=Tk,V.debounce=Ok,V.defaults=wz,V.defaultsDeep=Cz,V.defer=M3,V.delay=R3,V.difference=Z5,V.differenceBy=eB,V.differenceWith=tB,V.drop=nB,V.dropRight=rB,V.dropRightWhile=oB,V.dropWhile=iB,V.fill=sB,V.filter=a3,V.flatMap=d3,V.flatMapDeep=f3,V.flatMapDepth=p3,V.flatten=Ck,V.flattenDeep=lB,V.flattenDepth=aB,V.flip=T3,V.flow=_6,V.flowRight=I6,V.fromPairs=cB,V.functions=Iz,V.functionsIn=$z,V.groupBy=h3,V.initial=dB,V.intersection=fB,V.intersectionBy=pB,V.intersectionWith=hB,V.invert=Rz,V.invertBy=Tz,V.invokeMap=g3,V.iteratee=P0,V.keyBy=v3,V.keys=lr,V.keysIn=qr,V.map=hh,V.mapKeys=Lz,V.mapValues=Az,V.matches=$6,V.matchesProperty=M6,V.memoize=gh,V.merge=Fz,V.mergeWith=Vk,V.method=R6,V.methodOf=T6,V.mixin=k0,V.negate=vh,V.nthArg=L6,V.omit=Nz,V.omitBy=Dz,V.once=O3,V.orderBy=y3,V.over=A6,V.overArgs=L3,V.overEvery=F6,V.overSome=N6,V.partial=y0,V.partialRight=Lk,V.partition=b3,V.pick=Bz,V.pickBy=Uk,V.property=Qk,V.propertyOf=D6,V.pull=yB,V.pullAll=Sk,V.pullAllBy=bB,V.pullAllWith=wB,V.pullAt=CB,V.range=B6,V.rangeRight=z6,V.rearg=A3,V.reject=x3,V.remove=xB,V.rest=F3,V.reverse=m0,V.sampleSize=E3,V.set=jz,V.setWith=Hz,V.shuffle=P3,V.slice=SB,V.sortBy=I3,V.sortedUniq=MB,V.sortedUniqBy=RB,V.split=d6,V.spread=N3,V.tail=TB,V.take=OB,V.takeRight=LB,V.takeRightWhile=AB,V.takeWhile=FB,V.tap=QB,V.throttle=D3,V.thru=ph,V.toArray=Bk,V.toPairs=Wk,V.toPairsIn=Gk,V.toPath=W6,V.toPlainObject=jk,V.transform=Vz,V.unary=B3,V.union=NB,V.unionBy=DB,V.unionWith=BB,V.uniq=zB,V.uniqBy=jB,V.uniqWith=HB,V.unset=Uz,V.unzip=g0,V.unzipWith=Ek,V.update=Wz,V.updateWith=Gz,V.values=Cc,V.valuesIn=Kz,V.without=VB,V.words=Yk,V.wrap=z3,V.xor=UB,V.xorBy=WB,V.xorWith=GB,V.zip=KB,V.zipObject=qB,V.zipObjectDeep=YB,V.zipWith=XB,V.entries=Wk,V.entriesIn=Gk,V.extend=Hk,V.extendWith=wh,k0(V,V),V.add=K6,V.attempt=Xk,V.camelCase=Qz,V.capitalize=Kk,V.ceil=q6,V.clamp=qz,V.clone=H3,V.cloneDeep=U3,V.cloneDeepWith=W3,V.cloneWith=V3,V.conformsTo=G3,V.deburr=qk,V.defaultTo=k6,V.divide=Y6,V.endsWith=Jz,V.eq=hi,V.escape=Zz,V.escapeRegExp=e6,V.every=l3,V.find=c3,V.findIndex=bk,V.findKey=xz,V.findLast=u3,V.findLastIndex=wk,V.findLastKey=Sz,V.floor=X6,V.forEach=kk,V.forEachRight=_k,V.forIn=Ez,V.forInRight=Pz,V.forOwn=kz,V.forOwnRight=_z,V.get=C0,V.gt=K3,V.gte=q3,V.has=Mz,V.hasIn=x0,V.head=xk,V.identity=Yr,V.includes=m3,V.indexOf=uB,V.inRange=Yz,V.invoke=Oz,V.isArguments=ua,V.isArray=kt,V.isArrayBuffer=Y3,V.isArrayLike=Kr,V.isArrayLikeObject=Gn,V.isBoolean=X3,V.isBuffer=sl,V.isDate=Q3,V.isElement=J3,V.isEmpty=Z3,V.isEqual=ez,V.isEqualWith=tz,V.isError=b0,V.isFinite=nz,V.isFunction=bs,V.isInteger=Ak,V.isLength=yh,V.isMap=Fk,V.isMatch=rz,V.isMatchWith=oz,V.isNaN=iz,V.isNative=sz,V.isNil=az,V.isNull=lz,V.isNumber=Nk,V.isObject=Tn,V.isObjectLike=zn,V.isPlainObject=md,V.isRegExp=w0,V.isSafeInteger=cz,V.isSet=Dk,V.isString=bh,V.isSymbol=ho,V.isTypedArray=wc,V.isUndefined=uz,V.isWeakMap=dz,V.isWeakSet=fz,V.join=mB,V.kebabCase=t6,V.last=Uo,V.lastIndexOf=gB,V.lowerCase=n6,V.lowerFirst=r6,V.lt=pz,V.lte=hz,V.max=Q6,V.maxBy=J6,V.mean=Z6,V.meanBy=ej,V.min=tj,V.minBy=nj,V.stubArray=I0,V.stubFalse=$0,V.stubObject=j6,V.stubString=H6,V.stubTrue=V6,V.multiply=rj,V.nth=vB,V.noConflict=O6,V.noop=_0,V.now=mh,V.pad=o6,V.padEnd=i6,V.padStart=s6,V.parseInt=l6,V.random=Xz,V.reduce=w3,V.reduceRight=C3,V.repeat=a6,V.replace=c6,V.result=zz,V.round=oj,V.runInContext=Z,V.sample=S3,V.size=k3,V.snakeCase=u6,V.some=_3,V.sortedIndex=EB,V.sortedIndexBy=PB,V.sortedIndexOf=kB,V.sortedLastIndex=_B,V.sortedLastIndexBy=IB,V.sortedLastIndexOf=$B,V.startCase=f6,V.startsWith=p6,V.subtract=ij,V.sum=sj,V.sumBy=lj,V.template=h6,V.times=U6,V.toFinite=ws,V.toInteger=It,V.toLength=zk,V.toLower=m6,V.toNumber=Wo,V.toSafeInteger=mz,V.toString=Zt,V.toUpper=g6,V.trim=v6,V.trimEnd=y6,V.trimStart=b6,V.truncate=w6,V.unescape=C6,V.uniqueId=G6,V.upperCase=x6,V.upperFirst=S0,V.each=kk,V.eachRight=_k,V.first=xk,k0(V,function(){var l={};return Fi(V,function(f,y){nn.call(V.prototype,y)||(l[y]=f)}),l}(),{chain:!1}),V.VERSION=r,Bo(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){V[l].placeholder=V}),Bo(["drop","take"],function(l,f){zt.prototype[l]=function(y){y=y===n?1:nr(It(y),0);var $=this.__filtered__&&!f?new zt(this):this.clone();return $.__filtered__?$.__takeCount__=Er(y,$.__takeCount__):$.__views__.push({size:Er(y,q),type:l+($.__dir__<0?"Right":"")}),$},zt.prototype[l+"Right"]=function(y){return this.reverse()[l](y).reverse()}}),Bo(["filter","map","takeWhile"],function(l,f){var y=f+1,$=y==A||y==z;zt.prototype[l]=function(D){var U=this.clone();return U.__iteratees__.push({iteratee:yt(D,3),type:y}),U.__filtered__=U.__filtered__||$,U}}),Bo(["head","last"],function(l,f){var y="take"+(f?"Right":"");zt.prototype[l]=function(){return this[y](1).value()[0]}}),Bo(["initial","tail"],function(l,f){var y="drop"+(f?"":"Right");zt.prototype[l]=function(){return this.__filtered__?new zt(this):this[y](1)}}),zt.prototype.compact=function(){return this.filter(Yr)},zt.prototype.find=function(l){return this.filter(l).head()},zt.prototype.findLast=function(l){return this.reverse().find(l)},zt.prototype.invokeMap=Rt(function(l,f){return typeof l=="function"?new zt(this):this.map(function(y){return cd(y,l,f)})}),zt.prototype.reject=function(l){return this.filter(vh(yt(l)))},zt.prototype.slice=function(l,f){l=It(l);var y=this;return y.__filtered__&&(l>0||f<0)?new zt(y):(l<0?y=y.takeRight(-l):l&&(y=y.drop(l)),f!==n&&(f=It(f),y=f<0?y.dropRight(-f):y.take(f-l)),y)},zt.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},zt.prototype.toArray=function(){return this.take(q)},Fi(zt.prototype,function(l,f){var y=/^(?:filter|find|map|reject)|While$/.test(f),$=/^(?:head|last)$/.test(f),D=V[$?"take"+(f=="last"?"Right":""):f],U=$||/^find/.test(f);D&&(V.prototype[f]=function(){var K=this.__wrapped__,Y=$?[1]:arguments,te=K instanceof zt,xe=Y[0],Ee=te||kt(K),Pe=function(Nt){var Vt=D.apply(V,Zs([Nt],Y));return $&&De?Vt[0]:Vt};Ee&&y&&typeof xe=="function"&&xe.length!=1&&(te=Ee=!1);var De=this.__chain__,rt=!!this.__actions__.length,bt=U&&!De,Mt=te&&!rt;if(!U&&Ee){K=Mt?K:new zt(this);var wt=l.apply(K,Y);return wt.__actions__.push({func:ph,args:[Pe],thisArg:n}),new jo(wt,De)}return bt&&Mt?l.apply(this,Y):(wt=this.thru(Pe),bt?$?wt.value()[0]:wt.value():wt)})}),Bo(["pop","push","shift","sort","splice","unshift"],function(l){var f=Bp[l],y=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",$=/^(?:pop|shift)$/.test(l);V.prototype[l]=function(){var D=arguments;if($&&!this.__chain__){var U=this.value();return f.apply(kt(U)?U:[],D)}return this[y](function(K){return f.apply(kt(K)?K:[],D)})}}),Fi(zt.prototype,function(l,f){var y=V[f];if(y){var $=y.name+"";nn.call(mc,$)||(mc[$]=[]),mc[$].push({name:f,func:y})}}),mc[sh(n,C).name]=[{name:"wrapper",func:n}],zt.prototype.clone=CD,zt.prototype.reverse=xD,zt.prototype.value=SD,V.prototype.at=JB,V.prototype.chain=ZB,V.prototype.commit=e3,V.prototype.next=t3,V.prototype.plant=r3,V.prototype.reverse=o3,V.prototype.toJSON=V.prototype.valueOf=V.prototype.value=i3,V.prototype.first=V.prototype.head,nd&&(V.prototype[nd]=n3),V},fc=eD();na?((na.exports=fc)._=fc,Py._=fc):gr._=fc}).call(Cn)})(Ire,Os);const Lt=Os;var Mx={},$re=ft;Object.defineProperty(Mx,"__esModule",{value:!0});var Hv=Mx.default=void 0,Mre=$re(gt()),Rre=mt(),Tre=(0,Mre.default)((0,Rre.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");Hv=Mx.default=Tre;var Rx={},Ore=ft;Object.defineProperty(Rx,"__esModule",{value:!0});var Tx=Rx.default=void 0,Lre=Ore(gt()),Are=mt(),Fre=(0,Lre.default)((0,Are.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");Tx=Rx.default=Fre;var Ox={},Nre=ft;Object.defineProperty(Ox,"__esModule",{value:!0});var gp=Ox.default=void 0,Dre=Nre(gt()),Bre=mt(),zre=(0,Dre.default)((0,Bre.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");gp=Ox.default=zre;var Lx={},jre=ft;Object.defineProperty(Lx,"__esModule",{value:!0});var Vv=Lx.default=void 0,Hre=jre(gt()),Vre=mt(),Ure=(0,Hre.default)((0,Vre.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");Vv=Lx.default=Ure;var Ax={},Wre=ft;Object.defineProperty(Ax,"__esModule",{value:!0});var HL=Ax.default=void 0,Gre=Wre(gt()),Kre=mt(),qre=(0,Gre.default)((0,Kre.jsx)("path",{d:"M12 8V4l8 8-8 8v-4H4V8z"}),"Forward");HL=Ax.default=qre;var Fx={},Yre=ft;Object.defineProperty(Fx,"__esModule",{value:!0});var Gf=Fx.default=void 0,Xre=Yre(gt()),Qre=mt(),Jre=(0,Xre.default)((0,Qre.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");Gf=Fx.default=Jre;var Nx={},Zre=ft;Object.defineProperty(Nx,"__esModule",{value:!0});var Uv=Nx.default=void 0,eoe=Zre(gt()),toe=mt(),noe=(0,eoe.default)((0,toe.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");Uv=Nx.default=noe;globalThis&&globalThis.__awaiter;function VL(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 roe(e,t,n,r){const o=u.useRef(t);UL(()=>{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 ooe(){const e=u.useRef(!1);return u.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),u.useCallback(()=>e.current,[])}const UL=typeof window!="undefined"?u.useLayoutEffect:u.useEffect;function ioe(){const[e,t]=u.useState({width:0,height:0}),n=()=>{t({width:window.innerWidth,height:window.innerHeight})};return roe("resize",n),UL(()=>{n()},[]),e}function xo(e){const t=ooe(),[n,r]=u.useState(e),o=u.useCallback(i=>{t()&&r(i)},[t,r]);return[n,o,t]}function soe(e){return e.filter(t=>t===0||t&&(!Array.isArray(t)||t.length))}function loe(e,t){const n=[];for(const r of soe(t))n.push(r,e);return n.splice(-1,1),ug(n)}function ug(e){return e.map((t,n)=>!t||typeof t=="string"?t:Array.isArray(t)?ug(t):u.createElement(u.Fragment,{key:n,children:t}))}const aoe=Symbol(),Dx=Symbol(),Ld="a",hf="w";let coe=(e,t)=>new Proxy(e,t);const iw=Object.getPrototypeOf,sw=new WeakMap,WL=e=>e&&(sw.has(e)?sw.get(e):iw(e)===Object.prototype||iw(e)===Array.prototype),dg=e=>typeof e=="object"&&e!==null,uoe=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(iw(e),t)},Bx=e=>e[Dx]||e,GL=(e,t,n,r)=>{if(!WL(e))return e;let o=r&&r.get(e);if(!o){const c=Bx(e);o=(d=>Object.values(Object.getOwnPropertyDescriptors(d)).some(p=>!p.configurable&&!p.writable))(c)?[c,uoe(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=(b,g)=>{if(!h){let S=p[Ld].get(c);if(S||(S={},p[Ld].set(c,S)),b===hf)S[hf]=!0;else{let C=S[b];C||(C=new Set,S[b]=C),C.add(g)}}},v={get:(b,g)=>g===Dx?c:(m("k",g),GL(Reflect.get(b,g),p[Ld],p.c)),has:(b,g)=>g===aoe?(h=!0,p[Ld].delete(c),!0):(m("h",g),Reflect.has(b,g)),getOwnPropertyDescriptor:(b,g)=>(m("o",g),Reflect.getOwnPropertyDescriptor(b,g)),ownKeys:b=>(m(hf),Reflect.ownKeys(b))};return d&&(v.set=v.deleteProperty=()=>!1),[v,p]})(i,!!s),a[1].p=coe(s||i,a[0]),n&&n.set(i,a)),a[1][Ld]=t,a[1].c=n,a[1].p},KL=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!dg(e)||!dg(t))return!0;const o=n.get(Bx(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[hf]===!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=KL(e[s],t[s],n,r),i)return i;return i===null&&(i=!0),i}finally{r&&r.set(e,{n:t,g:i})}},doe=e=>WL(e)&&e[Dx]||null,m$=(e,t=!0)=>{sw.set(e,t)},foe=(e,t,n)=>{const r=[],o=new WeakSet,i=(s,a)=>{if(o.has(s))return;dg(s)&&o.add(s);const c=dg(s)&&t.get(Bx(s));if(c){var d,p;if((d=c.h)==null||d.forEach(m=>{const v=`:has(${String(m)})`;r.push(a?[...a,v]:[v])}),c[hf]===!0){const m=":ownKeys";r.push(a?[...a,m]:[m])}else{var h;(h=c.o)==null||h.forEach(m=>{const v=`:hasOwn(${String(m)})`;r.push(a?[...a,v]:[v])})}(p=c.k)==null||p.forEach(m=>{n&&!("value"in(Object.getOwnPropertyDescriptor(s,m)||{}))||i(s[m],a?[...a,m]:[m])})}else a&&r.push(a)};return i(e),r},Cb=e=>typeof e=="object"&&e!==null,ml=new WeakMap,Yh=new WeakSet,poe=(e=Object.is,t=(d,p)=>new Proxy(d,p),n=d=>Cb(d)&&!Yh.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 v=Array.isArray(d)?[]:Object.create(Object.getPrototypeOf(d));return m$(v,!0),o.set(d,[p,v]),Reflect.ownKeys(d).forEach(b=>{if(Object.getOwnPropertyDescriptor(v,b))return;const g=Reflect.get(d,b),S={value:g,enumerable:!0,configurable:!0};if(Yh.has(g))m$(g,!1);else if(g instanceof Promise)delete S.value,S.get=()=>h(g);else if(ml.has(g)){const[C,E]=ml.get(g);S.value=i(C,E(),h)}Object.defineProperty(v,b,S)}),v},s=new WeakMap,a=[1,1],c=d=>{if(!Cb(d))throw new Error("object required");const p=s.get(d);if(p)return p;let h=a[0];const m=new Set,v=(O,R=++a[0])=>{h!==R&&(h=R,m.forEach(L=>L(O,R)))};let b=a[1];const g=(O=++a[1])=>(b!==O&&!m.size&&(b=O,C.forEach(([R])=>{const L=R[1](O);L>h&&(h=L)})),h),S=O=>(R,L)=>{const H=[...R];H[1]=[O,...H[1]],v(H,L)},C=new Map,E=(O,R)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&C.has(O))throw new Error("prop listener already exists");if(m.size){const L=R[3](S(O));C.set(O,[R,L])}else C.set(O,[R])},w=O=>{var R;const L=C.get(O);L&&(C.delete(O),(R=L[1])==null||R.call(L))},x=O=>(m.add(O),m.size===1&&C.forEach(([L,H],j)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&H)throw new Error("remove already exists");const A=L[3](S(j));C.set(j,[L,A])}),()=>{m.delete(O),m.size===0&&C.forEach(([L,H],j)=>{H&&(H(),C.set(j,[L]))})}),k=Array.isArray(d)?[]:Object.create(Object.getPrototypeOf(d)),_=t(k,{deleteProperty(O,R){const L=Reflect.get(O,R);w(R);const H=Reflect.deleteProperty(O,R);return H&&v(["delete",[R],L]),H},set(O,R,L,H){const j=Reflect.has(O,R),A=Reflect.get(O,R,H);if(j&&(e(A,L)||s.has(L)&&e(A,s.get(L))))return!0;w(R),Cb(L)&&(L=doe(L)||L);let F=L;if(L instanceof Promise)L.then(z=>{L.status="fulfilled",L.value=z,v(["resolve",[R],z])}).catch(z=>{L.status="rejected",L.reason=z,v(["reject",[R],z])});else{!ml.has(L)&&n(L)&&(F=c(L));const z=!Yh.has(F)&&ml.get(F);z&&E(R,z)}return Reflect.set(O,R,F,H),v(["set",[R],L,A]),!0}});s.set(d,_);const M=[k,g,i,x];return ml.set(_,M),Reflect.ownKeys(d).forEach(O=>{const R=Object.getOwnPropertyDescriptor(d,O);"value"in R&&(_[O]=d[O],delete R.value,delete R.writable),Object.defineProperty(k,O,R)}),_})=>[c,ml,Yh,e,t,n,r,o,i,s,a],[hoe]=poe();function zx(e={}){return hoe(e)}function jx(e,t,n){const r=ml.get(e);({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!r&&console.warn("Please use proxy object");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 g$(e,t){const n=ml.get(e);({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!n&&console.warn("Please use proxy object");const[r,o,i]=n;return i(r,o(),t)}var lw={},moe={get exports(){return lw},set exports(e){lw=e}},qL={};/**
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 _u=u;function goe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var voe=typeof Object.is=="function"?Object.is:goe,yoe=_u.useState,boe=_u.useEffect,woe=_u.useLayoutEffect,Coe=_u.useDebugValue;function xoe(e,t){var n=t(),r=yoe({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return woe(function(){o.value=n,o.getSnapshot=t,xb(o)&&i({inst:o})},[e,n,t]),boe(function(){return xb(o)&&i({inst:o}),e(function(){xb(o)&&i({inst:o})})},[e]),Coe(n),n}function xb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!voe(e,n)}catch(r){return!0}}function Soe(e,t){return t()}var Eoe=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?Soe:xoe;qL.useSyncExternalStore=_u.useSyncExternalStore!==void 0?_u.useSyncExternalStore:Eoe;(function(e){e.exports=qL})(moe);const Poe=Nw(lw),{use:v$}=Eo,{useSyncExternalStore:koe}=Poe,_oe=(e,t)=>{const n=u.useRef();u.useEffect(()=>{n.current=foe(e,t,!0)}),u.useDebugValue(n.current)},Ioe=new WeakMap;function Hx(e,t){const n=t==null?void 0:t.sync,r=u.useRef(),o=u.useRef();let i=!0;const s=koe(u.useCallback(d=>{const p=jx(e,d,n);return d(),p},[e,n]),()=>{const d=g$(e,v$);try{if(!i&&r.current&&o.current&&!KL(r.current,d,o.current,new WeakMap))return r.current}catch(p){}return d},()=>g$(e,v$));i=!1;const a=new WeakMap;u.useEffect(()=>{r.current=s,o.current=a}),({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&_oe(s,a);const c=u.useMemo(()=>new WeakMap,[]);return GL(s,a,c,Ioe)}const $a=zx([]),bm={closableContent:"x",padding:!0};function $oe(){const e=Hx($a);return u.createElement(u.Fragment,{},e.length>0&&e.map((t,n)=>u.createElement(Moe,Ie({key:n},t))))}function Moe(e){var r;const t=u.useRef();if(u.useEffect(()=>{var o;(o=t.current)==null||o.focus()},[]),e=Ie(Ie({},bm),e),e.Container)return u.createElement(e.Container,e);return u.createElement("div",{ref:t,className:"dialog-backdrop "+(e.className||""),tabIndex:0,onKeyDown:Roe,onClick:()=>Ri()},e.noFrame?u.createElement(e.Content||"div"):u.createElement("div",Ie({className:"dialog",style:Ie(Ie({},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(){Ri()}},e.closableContent),e.icon&&u.createElement("div",{className:"dialog-icon dialog-type"},aw(e.icon)),u.createElement("div",{className:"dialog-title"},aw(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&&Ie(Ie({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 aw(e){return typeof e=="function"?u.createElement(e):e}function Roe(e){e.key==="Escape"&&Ri()}function di(e){const t=Math.random();return e.$id=t,$a.push(e),n=>{var o;const r=$a.findIndex(i=>i.$id===t);r<0||($a.splice(r,1),(o=e.onClose)==null||o.call(e,n))}}function Ri(e){var n;let t=$a.length;for(;t--;){const r=$a[t];if(!r.reserveClosing)return $a.splice(t,1),(n=r.onClose)==null?void 0:n.call(r,e)}}var Ma={},Wv={},Iu={};const Toe={},Ooe=Object.freeze(Object.defineProperty({__proto__:null,default:Toe},Symbol.toStringTag,{value:"Module"})),y$=LM(Ooe);Object.defineProperty(Iu,"__esModule",{value:!0});var b$=Iu.crossEnvCrypto=void 0;try{const e=typeof window!="undefined"&&window.crypto||y$.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);b$=Iu.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=y$,n=r=>o=>t.createHash(r).update(o).digest().buffer;b$=Iu.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(Wv,"__esModule",{value:!0});Wv.SRPParameters=void 0;const Xh=Iu;class $u{constructor(t=$u.PrimeGroup[2048],n=$u.H.SHA512){if(this.primeGroup=t,this.H=n,this.NBits=this.primeGroup.N.toString(2).length,!n)throw new Error("Hash function required")}}Wv.SRPParameters=$u;$u.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)}};$u.H={SHA1:Xh.crossEnvCrypto.hashFunctions.SHA1,SHA256:Xh.crossEnvCrypto.hashFunctions.SHA256,SHA384:Xh.crossEnvCrypto.hashFunctions.SHA384,SHA512:Xh.crossEnvCrypto.hashFunctions.SHA512};var Gv={},Kv={};(function(e){var t=Cn&&Cn.__awaiter||function(w,x,k,I){function _(M){return M instanceof k?M:new k(function(O){O(M)})}return new(k||(k=Promise))(function(M,O){function R(j){try{H(I.next(j))}catch(A){O(A)}}function L(j){try{H(I.throw(j))}catch(A){O(A)}}function H(j){j.done?M(j.value):_(j.value).then(R,L)}H((I=I.apply(w,x||[])).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=Iu,r=BigInt(0),o=BigInt(1),i=BigInt(2),s=w=>{const x=w.toString(16),k=new ArrayBuffer(Math.ceil(x.length/2)),I=new Uint8Array(k);let _=0;x.length%2!==0&&(I[0]=parseInt(x[0],16),_=1);for(let M=0;M<k.byteLength;M++)I[M+_]=parseInt(x.slice(2*M+_,2*M+2+_),16);return k};e.bigIntToArrayBuffer=s;const a=w=>{const x=[];return new Uint8Array(w).forEach(k=>{x.push(("0"+k.toString(16)).slice(-2))}),BigInt(`0x${x.join("")}`)};e.arrayBufferToBigInt=a;function c(w){return new TextEncoder().encode(w).buffer}e.stringToArrayBuffer=c;const d=(w,x)=>{const k=new Uint8Array(w);if(k.length<x){const I=new Uint8Array(x);return I.fill(0,0,x-k.length),I.set(k,x-k.length),I}return k};e.padStartArrayBuffer=d;function p(w,...x){const k=x.reduce((_,M)=>_+M.byteLength,0),I=new Uint8Array(k);for(let _=0,M=0;M<x.length;M++)I.set(new Uint8Array(x[M]),_),_+=x[M].byteLength;return w.H(I)}e.hash=p;function h(w,x,...k){const I=k.map(_=>e.padStartArrayBuffer(_,x));return p(w,...I)}e.hashPadded=h;function m(w=10){const x=new Uint8Array(Math.ceil(Math.ceil(w/2)));return n.crossEnvCrypto.randomBytes(x),x.reduce((k,I)=>{const _=I.toString(16).toString();return _.length===1?k+"0"+_:k+_},"").slice(0,w)}e.generateRandomString=m;function v(w=16){return e.arrayBufferToBigInt(E(w))}e.generateRandomBigInt=v;function b(w,x,k,I){return t(this,void 0,void 0,function*(){if(!x||!x.trim())throw new Error("Identity (I) must not be null or empty.");if(!k)throw new Error("Salt (s) must not be null.");if(!I)throw new Error("Password (P) must not be null");const _=yield w.computeX(x,k,I);return w.computeVerifier(_)})}e.createVerifier=b;function g(w,x,k,I){return t(this,void 0,void 0,function*(){const _=yield w.generateRandomSalt(I);return{s:_,v:yield b(w,x,_,k)}})}e.createVerifierAndSalt=g;const S=w=>t(void 0,void 0,void 0,function*(){return(yield p(w,e.bigIntToArrayBuffer(BigInt(1)))).byteLength*8});e.hashBitCount=S;function C(w,x,k){let I=o;for(;x>r;)x%i==o?(I=w*I%k,x-=o):(w=w*w%k,x/=i);return I}e.modPow=C;const E=w=>{const x=new Uint8Array(w);return n.crossEnvCrypto.randomBytes(x),x.buffer}})(Kv);var ul=Cn&&Cn.__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(Gv,"__esModule",{value:!0});Gv.SRPRoutines=void 0;const ln=Kv;class Loe{constructor(t){this.parameters=t}hash(...t){return ln.hash(this.parameters,...t)}hashPadded(...t){const n=Math.trunc((this.parameters.NBits+7)/8);return ln.hashPadded(this.parameters,n,...t)}computeK(){return ul(this,void 0,void 0,function*(){return ln.arrayBufferToBigInt(yield this.hashPadded(ln.bigIntToArrayBuffer(this.parameters.primeGroup.N),ln.bigIntToArrayBuffer(this.parameters.primeGroup.g)))})}generateRandomSalt(t){return ul(this,void 0,void 0,function*(){const n=yield ln.hashBitCount(this.parameters),r=t||2*n/8;return ln.generateRandomBigInt(r)})}computeX(t,n,r){return ul(this,void 0,void 0,function*(){return ln.arrayBufferToBigInt(yield this.hash(ln.bigIntToArrayBuffer(n),yield this.computeIdentityHash(t,r)))})}computeXStep2(t,n){return ul(this,void 0,void 0,function*(){return ln.arrayBufferToBigInt(yield this.hash(ln.bigIntToArrayBuffer(t),n))})}computeIdentityHash(t,n){return ul(this,void 0,void 0,function*(){return yield this.hash(ln.stringToArrayBuffer(n))})}computeVerifier(t){return ln.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}generatePrivateValue(){const t=Math.max(256,this.parameters.NBits);let n;do n=ln.generateRandomBigInt(t/8)%this.parameters.primeGroup.N;while(n===BigInt(0));return n}computeClientPublicValue(t){return ln.modPow(this.parameters.primeGroup.g,t,this.parameters.primeGroup.N)}isValidPublicValue(t){return t%this.parameters.primeGroup.N!==BigInt(0)}computeU(t,n){return ul(this,void 0,void 0,function*(){return ln.arrayBufferToBigInt(yield this.hashPadded(ln.bigIntToArrayBuffer(t),ln.bigIntToArrayBuffer(n)))})}computeClientEvidence(t,n,r,o,i){return ul(this,void 0,void 0,function*(){return ln.arrayBufferToBigInt(yield this.hash(ln.bigIntToArrayBuffer(r),ln.bigIntToArrayBuffer(o),ln.bigIntToArrayBuffer(i)))})}computeServerEvidence(t,n,r){return ul(this,void 0,void 0,function*(){return ln.arrayBufferToBigInt(yield this.hash(ln.bigIntToArrayBuffer(t),ln.bigIntToArrayBuffer(n),ln.bigIntToArrayBuffer(r)))})}computeClientSessionKey(t,n,r,o,i){const s=this.parameters.primeGroup.N,a=r*n+o,c=ln.modPow(this.parameters.primeGroup.g,n,s)*t%s;return ln.modPow(i+s-c,a,s)}}Gv.SRPRoutines=Loe;var Dl={},Vx=Cn&&Cn.__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(Dl,"__esModule",{value:!0});Dl.SRPClientSessionStep2=Dl.SRPClientSessionStep1=Dl.SRPClientSession=void 0;class Aoe{constructor(t){this.routines=t}step1(t,n){return Vx(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 qv(this.routines,t,r)})}}Dl.SRPClientSession=Aoe;class qv{constructor(t,n,r){this.routines=t,this.I=n,this.IH=r}step2(t,n){return Vx(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 Yv(this.routines,i,d,c)})}toJSON(){return{I:this.I,IH:Array.from(new Uint8Array(this.IH))}}static fromState(t,n){return new qv(t,n.I,new Uint8Array(n.IH).buffer)}}Dl.SRPClientSessionStep1=qv;class Yv{constructor(t,n,r,o){this.routines=t,this.A=n,this.M1=r,this.S=o}step3(t){return Vx(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 Yv(t,BigInt("0x"+n.A),BigInt("0x"+n.M1),BigInt("0x"+n.S))}}Dl.SRPClientSessionStep2=Yv;var Mu={},cw=Cn&&Cn.__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(Mu,"__esModule",{value:!0});Mu.SRPServerSessionStep1=Mu.SRPServerSession=void 0;const uw=Kv;class Foe{constructor(t){this.routines=t}step1(t,n,r){return cw(this,void 0,void 0,function*(){const o=this.routines.generatePrivateValue(),i=yield this.routines.computeK(),s=Noe(this.routines.parameters,i,r,o);return new Xv(this.routines,t,n,r,o,s)})}}Mu.SRPServerSession=Foe;class Xv{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 cw(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 Doe(this.routines.parameters.primeGroup.N,this.verifier,n,t,this.b)})}step2(t,n){return cw(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 Xv(t,n.identifier,BigInt("0x"+n.salt),BigInt("0x"+n.verifier),BigInt("0x"+n.b),BigInt("0x"+n.B))}}Mu.SRPServerSessionStep1=Xv;const Noe=(e,t,n,r)=>(uw.modPow(e.primeGroup.g,r,e.primeGroup.N)+n*t)%e.primeGroup.N,Doe=(e,t,n,r,o)=>uw.modPow(uw.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=Wv;Object.defineProperty(e,"SRPParameters",{enumerable:!0,get:function(){return t.SRPParameters}});var n=Gv;Object.defineProperty(e,"SRPRoutines",{enumerable:!0,get:function(){return n.SRPRoutines}});var r=Dl;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=Mu;Object.defineProperty(e,"SRPServerSession",{enumerable:!0,get:function(){return o.SRPServerSession}}),Object.defineProperty(e,"SRPServerSessionStep1",{enumerable:!0,get:function(){return o.SRPServerSessionStep1}});var i=Kv;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}})})(Ma);function Boe(e,t,n){return lt(this,null,function*(){const{pubKey:r,salt:o}=yield n("loginSrp1",{username:e});if(!o)throw Error("salt");const i=new Ma.SRPRoutines(new Ma.SRPParameters),c=yield(yield new Ma.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})}window._=Lt;Object.fromEntries(new URLSearchParams(window.location.search).entries());const w$=["","K","M","G","T"];function ja(e,{post:t="B",k:n=1024,digits:r=NaN}={}){if(isNaN(Number(e))||e<0)return"";let o=1,i=n,s=0;for(;s<w$.length&&e>i;)o=i,i*=n,++s;return e/=o,(s&&!isNaN(r)?e.toFixed(r):Lt.round(e,isNaN(r)?e>=100?0:1:r))+" "+(w$[s]||"")+t}function mf(e,t,n=""){return t?e+t+n:""}function zoe(e){const t=e+"=";let r=decodeURIComponent(document.cookie).split(";");for(let o of r)if(o=o.trim(),o.startsWith(t))return o.substring(t.length,o.length);return""}function Ux(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>[n,t(r,n)]))}function joe(e,t){return!t||t.endsWith(e)?t:t+e}function Hoe(e){return!!e}function vp(e){return e.filter(Hoe)}function Voe(e,t){return Object.defineProperties(e,Ux(t,n=>({enumerable:!1,writable:!0,value:n})))}function C$(e,t){return t(e)}function YL(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 XL(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 Uoe(e){return(e*100).toFixed(1)+"%"}function Woe(e){return e==null?[]:Array.isArray(e)?e:[e]}function Goe(){let e;const t=new Promise((n,r)=>e={resolve:n,reject:r});return Object.assign(t,e)}function Koe(){return window.innerWidth<800}function QL(){return window.HFS}function qoe(){return QL().prefixUrl||""}function Yoe(e){return e.slice(e.lastIndexOf("/")+1||e.lastIndexOf("\\")+1)}var Wx={},Xoe=ft;Object.defineProperty(Wx,"__esModule",{value:!0});var Gx=Wx.default=void 0,Qoe=Xoe(gt()),Joe=mt(),Zoe=(0,Qoe.default)((0,Joe.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");Gx=Wx.default=Zoe;function eie(e){return Ze("MuiLoadingButton",e)}const tie=qe("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),Ss=tie,nie=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],rie=e=>{const{loading:t,loadingPosition:n,classes:r}=e,o={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${ce(n)}`],endIcon:[t&&`endIconLoading${ce(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${ce(n)}`]},i=ke(o,eie,r);return P({},r,i)},oie=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",iie=oe(fr,{shouldForwardProp:e=>oie(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${Ss.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${Ss.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>P({[`& .${Ss.startIconLoadingStart}, & .${Ss.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}),[`&.${Ss.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${Ss.startIconLoadingStart}, & .${Ss.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${Ss.startIconLoadingStart}, & .${Ss.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),sie=oe("div",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${ce(n.loadingPosition)}`]]}})(({theme:e,ownerState:t})=>P({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})),lie=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiLoadingButton"}),{children:o,disabled:i=!1,id:s,loading:a=!1,loadingIndicator:c,loadingPosition:d="center",variant:p="text"}=r,h=se(r,nie),m=In(s),v=c!=null?c:T.jsx(Uu,{"aria-labelledby":m,color:"inherit",size:16}),b=P({},r,{disabled:i,loading:a,loadingIndicator:v,loadingPosition:d,variant:p}),g=rie(b),S=a?T.jsx(sie,{className:g.loadingIndicator,ownerState:b,children:v}):null;return T.jsxs(iie,P({disabled:i||a,id:m,ref:n},h,{variant:p,classes:g,ownerState:b,children:[b.loadingPosition==="end"?o:S,b.loadingPosition==="end"?S:o]}))}),aie=lie,cie=u.createContext({}),Kx=cie,uie=["element"];function die(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}function fie(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 JL=u.createContext({});function pie(e){const t=u.useRef(null);return u.useEffect(()=>{t.current=e},[e]),t.current}const x$=()=>{};function hie(e){const[,t]=u.useState(),{registerDescendant:n=x$,unregisterDescendant:r=x$,descendants:o=[],parentId:i=null}=u.useContext(JL),s=die(o,d=>d.element===e.element),a=pie(o),c=o.some((d,p)=>a&&a[p]&&a[p].element!==d.element);return fn(()=>{if(e.element)return n(P({},e,{index:s})),()=>{r(e.element)};t({})},[n,r,s,c,e]),{parentId:i,index:s}}function ZL(e){const{children:t,id:n}=e,[r,o]=u.useState([]),i=u.useCallback(c=>{let{element:d}=c,p=se(c,uie);o(h=>{let m;if(h.length===0)return[P({},p,{element:d,index:0})];const v=fie(h,d);if(h[v]&&h[v].element===d)m=h;else{const b=P({},p,{element:d,index:v});m=h.slice(),m.splice(v,0,b)}return m.forEach((b,g)=>{b.index=g}),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(JL.Provider,{value:a,children:t})}function mie(e){const{focus:t,isExpanded:n,isExpandable:r,isFocused:o,isDisabled:i,isSelected:s,multiSelect:a,selectNode:c,selectRange:d,toggleExpansion:p}=u.useContext(Kx),h=r?r(e):!1,m=n?n(e):!1,v=o?o(e):!1,b=i?i(e):!1,g=s?s(e):!1;return{disabled:b,expanded:m,selected:g,focused:v,handleExpansion:w=>{if(!b){v||t(w,e);const x=a&&(w.shiftKey||w.ctrlKey||w.metaKey);h&&!(x&&n(e))&&p(w,e)}},handleSelection:w=>{b||(v||t(w,e),a&&(w.shiftKey||w.ctrlKey||w.metaKey)?w.shiftKey?d(w,{end:e}):c(w,e,!0):c(w,e))},preventSelection:w=>{(w.shiftKey||w.ctrlKey||w.metaKey||b)&&w.preventDefault()}}}const gie=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],vie=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=se(t,gie),{disabled:v,expanded:b,selected:g,focused:S,handleExpansion:C,handleSelection:E,preventSelection:w}=mie(d),x=a||s||i,k=_=>{w(_),h&&h(_)},I=_=>{C(_),E(_),p&&p(_)};return T.jsxs("div",P({className:pe(o,r.root,b&&r.expanded,g&&r.selected,S&&r.focused,v&&r.disabled),onClick:I,onMouseDown:k,ref:n},m,{children:[T.jsx("div",{className:r.iconContainer,children:x}),T.jsx("div",{className:r.label,children:c})]}))}),eA=vie;function yie(e){return Ze("MuiTreeItem",e)}const bie=qe("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]),dl=bie,wie=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],Cie=e=>{const{classes:t}=e;return ke({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],group:["group"]},yie,t)},xie=oe("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),Sie=oe(eA,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${dl.iconContainer}`]:t.iconContainer},t.label&&{[`& .${dl.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"}},[`&.${dl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${dl.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${dl.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:at(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}))`:at(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})`:at(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${dl.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:at(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${dl.iconContainer}`]:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${dl.label}`]:P({width:"100%",minWidth:0,paddingLeft:4,position:"relative"},e.typography.body1)})),Eie=oe(KO,{name:"MuiTreeItem",slot:"Group",overridesResolver:(e,t)=>t.group})({margin:0,padding:0,marginLeft:17}),Pie=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiTreeItem"}),{children:o,className:i,collapseIcon:s,ContentComponent:a=eA,ContentProps:c,endIcon:d,expandIcon:p,disabled:h,icon:m,id:v,label:b,nodeId:g,onClick:S,onMouseDown:C,TransitionComponent:E=KO,TransitionProps:w}=r,x=se(r,wie),{icons:k={},focus:I,isExpanded:_,isFocused:M,isSelected:O,isDisabled:R,multiSelect:L,disabledItemsFocusable:H,mapFirstChar:j,unMapFirstChar:A,registerNode:F,unregisterNode:z,treeId:G}=u.useContext(Kx);let N=null;v!=null?N=v:G&&g&&(N=`${G}-${g}`);const[B,W]=u.useState(null),q=u.useRef(null),X=Ut(W,n),ie=u.useMemo(()=>({element:B,id:g}),[g,B]),{index:J,parentId:fe}=hie(ie),Q=!!(Array.isArray(o)?o.length:o),le=_?_(g):!1,ne=M?M(g):!1,he=O?O(g):!1,be=R?R(g):!1,ge=P({},r,{expanded:le,focused:ne,selected:he,disabled:be}),$e=Cie(ge);let Be,Le;Q&&(le?Le=s||k.defaultCollapseIcon:Le=p||k.defaultExpandIcon),Q?Be=k.defaultParentIcon:Be=d||k.defaultEndIcon,u.useEffect(()=>{if(F&&z&&J!==-1)return F({id:g,idAttribute:N,index:J,parentId:fe,expandable:Q,disabled:h}),()=>{z(g)}},[F,z,fe,J,g,Q,h,N]),u.useEffect(()=>{if(j&&A&&b)return j(g,q.current.textContent.substring(0,1).toLowerCase()),()=>{A(g)}},[j,A,g,b]);let re;L?re=he:he&&(re=!0);function Te(ve){if(ve.target===ve.currentTarget){let nt;typeof ve.target.getRootNode=="function"?nt=ve.target.getRootNode():nt=gn(ve.target),nt.getElementById(G).focus({preventScroll:!0})}const ze=!H&&be;!ne&&ve.currentTarget===ve.target&&!ze&&I(ve,g)}return T.jsxs(xie,P({className:pe($e.root,i),role:"treeitem","aria-expanded":Q?le:null,"aria-selected":re,"aria-disabled":be||null,ref:X,id:N,tabIndex:-1},x,{ownerState:ge,onFocus:Te,children:[T.jsx(Sie,P({as:a,ref:q,classes:{root:$e.content,expanded:$e.expanded,selected:$e.selected,focused:$e.focused,disabled:$e.disabled,iconContainer:$e.iconContainer,label:$e.label},label:b,nodeId:g,onClick:S,onMouseDown:C,icon:m,expansionIcon:Le,displayIcon:Be,ownerState:ge},c)),o&&T.jsx(ZL,{id:g,children:T.jsx(Eie,P({as:E,unmountOnExit:!0,className:$e.group,in:le,component:"ul",role:"group"},w,{children:o}))})]}))}),dw=Pie;function kie(e){return Ze("MuiTreeView",e)}qe("MuiTreeView",["root"]);const _ie=["children","className","defaultCollapseIcon","defaultEndIcon","defaultExpanded","defaultExpandIcon","defaultParentIcon","defaultSelected","disabledItemsFocusable","disableSelection","expanded","id","multiSelect","onBlur","onFocus","onKeyDown","onNodeFocus","onNodeSelect","onNodeToggle","selected"],Iie=e=>{const{classes:t}=e;return ke({root:["root"]},kie,t)},$ie=oe("ul",{name:"MuiTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0});function Mie(e){return e&&e.length===1&&e.match(/\S/)}function S$(e,t,n){for(let r=t;r<e.length;r+=1)if(n===e[r])return r;return-1}function E$(){return!1}const Rie=[],Tie=[],Oie=u.forwardRef(function(t,n){const r=tt({props:t,name:"MuiTreeView"}),{children:o,className:i,defaultCollapseIcon:s,defaultEndIcon:a,defaultExpanded:c=Rie,defaultExpandIcon:d,defaultParentIcon:p,defaultSelected:h=Tie,disabledItemsFocusable:m=!1,disableSelection:v=!1,expanded:b,id:g,multiSelect:S=!1,onBlur:C,onFocus:E,onKeyDown:w,onNodeFocus:x,onNodeSelect:k,onNodeToggle:I,selected:_}=r,M=se(r,_ie),R=ao().direction==="rtl",L=P({},r,{defaultExpanded:c,defaultSelected:h,disabledItemsFocusable:m,disableSelection:v,multiSelect:S}),H=Iie(L),j=In(g),A=u.useRef(null),F=Ut(A,n),[z,G]=u.useState(null),N=u.useRef({}),B=u.useRef({}),[W,q]=Zi({controlled:b,default:c,name:"TreeView",state:"expanded"}),[X,ie]=Zi({controlled:_,default:h,name:"TreeView",state:"selected"}),J=u.useCallback(ae=>Array.isArray(W)?W.indexOf(ae)!==-1:!1,[W]),fe=u.useCallback(ae=>N.current[ae]&&N.current[ae].expandable,[]),Q=u.useCallback(ae=>Array.isArray(X)?X.indexOf(ae)!==-1:X===ae,[X]),le=u.useCallback(ae=>{let ye=N.current[ae];if(!ye)return!1;if(ye.disabled)return!0;for(;ye.parentId!=null;)if(ye=N.current[ye.parentId],ye.disabled)return!0;return!1},[]),ne=ae=>z===ae,he=ae=>Object.keys(N.current).map(ye=>N.current[ye]).filter(ye=>ye.parentId===ae).sort((ye,Ae)=>ye.index-Ae.index).map(ye=>ye.id),be=ae=>{let ye=he(ae);return m||(ye=ye.filter(Ae=>!le(Ae))),ye},ge=ae=>{if(J(ae)&&be(ae).length>0)return be(ae)[0];let ye=N.current[ae];for(;ye!=null;){const Ae=be(ye.parentId),ut=Ae[Ae.indexOf(ye.id)+1];if(ut)return ut;ye=N.current[ye.parentId]}return null},$e=ae=>{const ye=N.current[ae],Ae=be(ye.parentId),ut=Ae.indexOf(ae);if(ut===0)return ye.parentId;let ot=Ae[ut-1];for(;J(ot)&&be(ot).length>0;)ot=be(ot).pop();return ot},Be=()=>{let ae=be(null).pop();for(;J(ae);)ae=be(ae).pop();return ae},Le=()=>be(null)[0],re=ae=>N.current[ae].parentId,Te=(ae,ye)=>{if(ae===ye)return[ae,ye];const Ae=N.current[ae],ut=N.current[ye];if(Ae.parentId===ut.id||ut.parentId===Ae.id)return ut.parentId===Ae.id?[Ae.id,ut.id]:[ut.id,Ae.id];const ot=[Ae.id],je=[ut.id];let xt=Ae.parentId,Wt=ut.parentId,En=je.indexOf(xt)!==-1,co=ot.indexOf(Wt)!==-1,Ce=!0,me=!0;for(;!co&&!En;)Ce&&(ot.push(xt),En=je.indexOf(xt)!==-1,Ce=xt!==null,!En&&Ce&&(xt=N.current[xt].parentId)),me&&!En&&(je.push(Wt),co=ot.indexOf(Wt)!==-1,me=Wt!==null,!co&&me&&(Wt=N.current[Wt].parentId));const He=En?xt:Wt,dt=he(He),Gt=ot[ot.indexOf(He)-1],Mn=je[je.indexOf(He)-1];return dt.indexOf(Gt)<dt.indexOf(Mn)?[ae,ye]:[ye,ae]},ve=(ae,ye)=>{const[Ae,ut]=Te(ae,ye),ot=[Ae];let je=Ae;for(;je!==ut;)je=ge(je),ot.push(je);return ot},ze=(ae,ye)=>{ye&&(G(ye),x&&x(ae,ye))},nt=(ae,ye)=>ze(ae,ge(ye)),pt=(ae,ye)=>ze(ae,$e(ye)),Qe=ae=>ze(ae,Le()),Ct=ae=>ze(ae,Be()),it=(ae,ye,Ae)=>{let ut,ot;const je=Ae.toLowerCase(),xt=[],Wt=[];Object.keys(B.current).forEach(En=>{const co=B.current[En],Ce=N.current[En],me=Ce.parentId?J(Ce.parentId):!0,He=m?!1:le(En);me&&!He&&(xt.push(En),Wt.push(co))}),ut=xt.indexOf(ye)+1,ut>=xt.length&&(ut=0),ot=S$(Wt,ut,je),ot===-1&&(ot=S$(Wt,0,je)),ot>-1&&ze(ae,xt[ot])},vt=(ae,ye=z)=>{let Ae;W.indexOf(ye)!==-1?Ae=W.filter(ut=>ut!==ye):Ae=[ye].concat(W),I&&I(ae,Ae),q(Ae)},ht=(ae,ye)=>{const Ae=N.current[ye],ot=he(Ae.parentId).filter(xt=>fe(xt)&&!J(xt)),je=W.concat(ot);ot.length>0&&(q(je),I&&I(ae,je))},ct=u.useRef(null),Ge=u.useRef(!1),_e=u.useRef([]),Me=(ae,ye)=>{let Ae=X.slice();const{start:ut,next:ot,current:je}=ye;!ot||!je||(_e.current.indexOf(je)===-1&&(_e.current=[]),Ge.current?_e.current.indexOf(ot)!==-1?(Ae=Ae.filter(xt=>xt===ut||xt!==je),_e.current=_e.current.filter(xt=>xt===ut||xt!==je)):(Ae.push(ot),_e.current.push(ot)):(Ae.push(ot),_e.current.push(je,ot)),k&&k(ae,Ae),ie(Ae))},Fe=(ae,ye)=>{let Ae=X.slice();const{start:ut,end:ot}=ye;Ge.current&&(Ae=Ae.filter(Wt=>_e.current.indexOf(Wt)===-1));let je=ve(ut,ot);je=je.filter(Wt=>!le(Wt)),_e.current=je;let xt=Ae.concat(je);xt=xt.filter((Wt,En)=>xt.indexOf(Wt)===En),k&&k(ae,xt),ie(xt)},Ve=(ae,ye)=>{let Ae;X.indexOf(ye)!==-1?Ae=X.filter(ut=>ut!==ye):Ae=[ye].concat(X),k&&k(ae,Ae),ie(Ae)},Se=(ae,ye)=>{const Ae=S?[ye]:ye;k&&k(ae,Ae),ie(Ae)},Oe=(ae,ye,Ae=!1)=>ye?(Ae?Ve(ae,ye):Se(ae,ye),ct.current=ye,Ge.current=!1,_e.current=[],!0):!1,Ue=(ae,ye,Ae=!1)=>{const{start:ut=ct.current,end:ot,current:je}=ye;Ae?Me(ae,{start:ut,next:ot,current:je}):ut!=null&&ot!=null&&Fe(ae,{start:ut,end:ot}),Ge.current=!0},st=(ae,ye)=>{ct.current||(ct.current=ye);const Ae=Ge.current?ct.current:ye;Ue(ae,{start:Ae,end:Le()})},Ft=(ae,ye)=>{ct.current||(ct.current=ye);const Ae=Ge.current?ct.current:ye;Ue(ae,{start:Ae,end:Be()})},an=(ae,ye)=>{le(ge(ye))||Ue(ae,{end:ge(ye),current:ye},!0)},yn=(ae,ye)=>{le($e(ye))||Ue(ae,{end:$e(ye),current:ye},!0)},Wn=ae=>{Ue(ae,{start:Le(),end:Be()})},xr=u.useCallback(ae=>{const{id:ye,index:Ae,parentId:ut,expandable:ot,idAttribute:je,disabled:xt}=ae;N.current[ye]={id:ye,index:Ae,parentId:ut,expandable:ot,idAttribute:je,disabled:xt}},[]),Sr=u.useCallback(ae=>{const ye=P({},N.current);delete ye[ae],N.current=ye,G(Ae=>Ae===ae&&A.current===gn(A.current).activeElement?he(null)[0]:Ae)},[]),Fr=u.useCallback((ae,ye)=>{B.current[ae]=ye},[]),Bn=u.useCallback(ae=>{const ye=P({},B.current);delete ye[ae],B.current=ye},[]),cn=ae=>(fe(z)&&(J(z)?nt(ae,z):le(z)||vt(ae)),!0),Xn=ae=>{if(J(z)&&!le(z))return vt(ae,z),!0;const ye=re(z);return ye?(ze(ae,ye),!0):!1},us=ae=>{let ye=!1;const Ae=ae.key;if(ae.altKey||ae.currentTarget!==ae.target||!z)return;const ut=ae.ctrlKey||ae.metaKey;switch(Ae){case" ":!v&&!le(z)&&(S&&ae.shiftKey?(Ue(ae,{end:z}),ye=!0):S?ye=Oe(ae,z,!0):ye=Oe(ae,z)),ae.stopPropagation();break;case"Enter":le(z)||(fe(z)?(vt(ae),ye=!0):S?ye=Oe(ae,z,!0):ye=Oe(ae,z)),ae.stopPropagation();break;case"ArrowDown":S&&ae.shiftKey&&!v&&an(ae,z),nt(ae,z),ye=!0;break;case"ArrowUp":S&&ae.shiftKey&&!v&&yn(ae,z),pt(ae,z),ye=!0;break;case"ArrowRight":R?ye=Xn(ae):ye=cn(ae);break;case"ArrowLeft":R?ye=cn(ae):ye=Xn(ae);break;case"Home":S&&ut&&ae.shiftKey&&!v&&!le(z)&&st(ae,z),Qe(ae),ye=!0;break;case"End":S&&ut&&ae.shiftKey&&!v&&!le(z)&&Ft(ae,z),Ct(ae),ye=!0;break;default:Ae==="*"?(ht(ae,z),ye=!0):S&&ut&&Ae.toLowerCase()==="a"&&!v?(Wn(ae),ye=!0):!ut&&!ae.shiftKey&&Mie(Ae)&&(it(ae,z,Ae),ye=!0)}ye&&(ae.preventDefault(),ae.stopPropagation()),w&&w(ae)},Ai=ae=>{if(ae.target===ae.currentTarget){const ye=Array.isArray(X)?X[0]:X;ze(ae,ye||be(null)[0])}E&&E(ae)},ds=ae=>{G(null),C&&C(ae)},fs=N.current[z]?N.current[z].idAttribute:null;return T.jsx(Kx.Provider,{value:{icons:{defaultCollapseIcon:s,defaultExpandIcon:d,defaultParentIcon:p,defaultEndIcon:a},focus:ze,toggleExpansion:vt,isExpanded:J,isExpandable:fe,isFocused:ne,isSelected:Q,isDisabled:le,selectNode:v?E$:Oe,selectRange:v?E$:Ue,multiSelect:S,disabledItemsFocusable:m,mapFirstChar:Fr,unMapFirstChar:Bn,registerNode:xr,unregisterNode:Sr,treeId:j},children:T.jsx(ZL,{children:T.jsx($ie,P({role:"tree",id:j,"aria-activedescendant":fs,"aria-multiselectable":S,className:pe(H.root,i),ref:F,tabIndex:0,onKeyDown:us,onFocus:Ai,onBlur:ds,ownerState:L},M,{children:o}))})})}),tA=Oie;function eo(m){var v=m,{value:e,onChange:t,min:n,max:r,required:o,getApi:i,typing:s,start:a,end:c,onTyping:d,suggestions:p}=v,h=hn(v,["value","onChange","min","max","required","getApi","typing","start","end","onTyping","suggestions"]);const b=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[g,S]=u.useState(b),C=u.useRef(b);u.useEffect(()=>{S(b),C.current=b},[b]);const E=x=>u.createElement(mp,Ie(Ot(Ie({fullWidth:!0,InputLabelProps:g||h.placeholder?{shrink:!0}:void 0},h),{sx:h.label?h.sx:Object.assign({"& .MuiInputBase-input":{pt:1.5}},h.sx),value:g,onChange(k){const I=k.target.value;(d==null?void 0:d(I))!==!1&&(S(I),(s||document.activeElement!==k.target)&&w(k,I))},onKeyDown(k){var I;(I=h.onKeyDown)==null||I.call(h,k),k.key==="Enter"&&w(k)},onBlur(k){var I;(I=h.onBlur)==null||I.call(h,k),w(k)},InputProps:Ie({startAdornment:a&&u.createElement(lg,{position:"start"},a),endAdornment:c&&u.createElement(lg,{position:"end"},c)},h.InputProps)}),x));return p?u.createElement(px,{freeSolo:!0,options:p,renderInput:E}):E(null);function w(x,k=g){const I=k.trim();I!==C.current&&(C.current=I,t(I,{was:e,event:x,cancel(){S(b)}}))}}function ls(e){const a=e,{value:t,onChange:n,getApi:r,options:o,sx:i}=a,s=hn(a,["value","onChange","getApi","options","sx"]);return u.createElement(mp,Ot(Ie(Ie({},nA(e)),s),{onChange(c){try{let d=c.target.value;d=JSON.parse(d),n(d,{was:t,event:c})}catch(d){}}}))}function qx(e){const a=e,{value:t,onChange:n,getApi:r,options:o,sx:i}=a,s=hn(a,["value","onChange","getApi","options","sx"]);return u.createElement(mp,Ot(Ie(Ie({},nA(Ot(Ie({},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 nA(e){const{options:t,disabled:n}=e,r=Array.isArray(t)?t.map(s=>typeof s=="string"||typeof s=="number"?{value:s,label:String(s)}:s):Object.entries(t).map(([s,a])=>({value:a,label:s})),o=JSON.stringify(e.value),i=r.find(s=>JSON.stringify(s.value)===o);return{select:!0,fullWidth:!0,sx:e.label?e.sx:Object.assign({"& .MuiInputBase-input":{pt:1}},e.sx),value:i?o:"",disabled:!(r!=null&&r.length)||n,children:r.map((s,a)=>u.createElement(pr,{key:a,value:JSON.stringify(s==null?void 0:s.value),children:s==null?void 0:s.label}))}}function wm(r){var o=r,{value:e,empty:t="-"}=o,n=hn(o,["value","empty"]);return!n.toField&&t!==void 0&&e!==0&&!e&&(e=t),u.createElement(eo,Ot(Ie({},n),{value:e,disabled:!0}))}function Is(d){var p=d,{value:e,onChange:t,getApi:n,required:r,min:o,max:i,step:s,unit:a}=p,c=hn(p,["value","onChange","getApi","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(eo,Ie({type:"number",value:e==null?"":String(e),onChange(h,b){var g=b,{was:m}=g,v=hn(g,["was"]);t(h?Number(h):null,Ot(Ie({},v),{was:m?Number(m):null}))},inputProps:{min:o,max:i,step:s},InputProps:Lt.merge({sx:{"& input":{appearance:"textfield"}}},a&&{sx:{pr:"6px","& input":{pl:".2em",textAlign:"right"}},endAdornment:u.createElement(lg,{position:"end",sx:{mt:"1.2em",ml:"5px","& p":{fontSize:"80%"}}},a)})},c))}function Xi(c){var d=c,{label:e="",value:t,onChange:n,getApi:r,helperText:o,error:i,type:s}=d,a=hn(d,["label","value","onChange","getApi","helperText","error","type"]);const p=()=>t!=null?t:!1,[h,m]=u.useState(p);u.useEffect(()=>m(p),[t]);const v=u.createElement($L,Ot(Ie({checked:h},a),{onChange(b){n(b.target.checked,{event:b,was:t})}}));return u.createElement(Je,{ml:1,mt:1,sx:i?{color:"error.main",outlineOffset:6,outline:"1px solid"}:void 0},u.createElement(uL,{label:e,control:v,labelPlacement:"end"}),o&&u.createElement(Dv,{error:i},o))}var Yx={},Lie=ft;Object.defineProperty(Yx,"__esModule",{value:!0});var Qv=Yx.default=void 0,Aie=Lie(gt()),Fie=mt(),Nie=(0,Aie.default)((0,Fie.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");Qv=Yx.default=Nie;var Xx={},Die=ft;Object.defineProperty(Xx,"__esModule",{value:!0});var Ti=Xx.default=void 0,Bie=Die(gt()),zie=mt(),jie=(0,Bie.default)((0,zie.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");Ti=Xx.default=jie;function Hie({value:e,onChange:t,keyLabel:n="key",valueLabel:r="value",keyWidth:o=5,valueWidth:i=5,actionsWidth:s=1}){const a=u.useRef(),c=u.useRef(),d={padding:".5em 1em",fontWeight:"bold"};return u.createElement(Qn,{container:!0},u.createElement(Qn,{item:!0,xs:o,sx:d},n),u.createElement(Qn,{item:!0,xs:i,sx:d},r),u.createElement(Qn,{item:!0,xs:s},u.createElement(ur,{onClick(){a.current.focus()}},u.createElement(Qv))),Object.entries(e||{}).map(([p,h])=>[u.createElement(Qn,{key:"k",item:!0,xs:o},u.createElement(eo,{value:p,onChange(m,g){var S=g,{was:v}=S,b=hn(S,["was"]);const C=Ie({},e);m&&(C[m]=v!==void 0?C[v]:""),v!==void 0&&delete C[v],t(C,Ie({was:e},b))}})),u.createElement(Qn,{key:"v",item:!0,xs:i},u.createElement(eo,{inputRef(m){c.current===p&&(m==null||m.focus(),c.current=null)},value:h,onChange(m,g){var S=g,{was:v}=S,b=hn(S,["was"]);const C=Ie({},e);m?C[p]=m:delete C[p],t(C,Ie({was:e},b))}})),u.createElement(Qn,{key:"actions",item:!0,xs:s,sx:{display:"flex"}},u.createElement(ur,{onClick(m){const v=Ie({},e);delete v[p],t(v,{was:e,event:m})}},u.createElement(Ti)))]),u.createElement(Qn,{item:!0,xs:o},u.createElement(eo,{inputRef:a,value:"",onChange(p,h){if(p){if(h.cancel(),e&&p in e)return alert(n+" entry already present");c.current=p,t(Ot(Ie({},e),{[p]:""}),Ot(Ie({},h),{was:e}))}}})),u.createElement(Qn,{item:!0,xs:i},u.createElement(eo,{value:"",onChange(){},disabled:!0})))}function yp(b){var g=b,{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}=g,v=hn(g,["fields","values","set","defaults","save","stickyBar","addToBar","barSx","formRef","onError","saveOnEnter","gridProps","formProps"]);const S=u.useRef(!1);u.useEffect(()=>(S.current=!0,()=>{S.current=!1}),[]);const[C,E]=u.useState({}),[w,x]=u.useState({}),k=typeof o=="function"?{onClick:o}:o,[I,_]=u.useState(0),M=u.useRef(!1),O=u.useRef("");u.useEffect(()=>void j(),[I]);const R={};return u.createElement("form",Ot(Ie({ref:c&&(A=>c.current=A||void 0)},m),{onSubmit(A){A.preventDefault()},onKeyDown(A){k&&!k.disabled&&(A.ctrlKey||A.metaKey)&&A.key==="Enter"&&L()}}),u.createElement(Je,Ie({display:"flex",flexDirection:"column",gap:3},v),u.createElement(Qn,Ie({container:!0,rowSpacing:3,columnSpacing:1},h),e.map((A,F)=>{if(!A)return null;if(u.isValidElement(A))return u.createElement(Qn,{key:F,item:!0,xs:12},A);const ie=A,{k:z,fromField:G=Os.identity,toField:N=Os.identity,getError:B,error:W}=ie,q=hn(ie,["k","fromField","toField","getError","error"]);let X=C[z]||w[z];if(X===!0&&(X="Not valid"),z){const fe=A.hasOwnProperty("value")?A.value:t==null?void 0:t[z],Q=Ie(Ie({},A),q);Object.assign(q,{value:N(fe),error:!!(X||W)||void 0,getApi(le){R[z]=le},onBlur(){H(z)},onKeyDown(le){p&&le.key==="Enter"&&L()},onChange(le){try{if(le=G(le),x(ne=>Ot(Ie({},ne),{[z]:!1})),Os.isEqual(le,fe))return;n(le,z),H(z)}catch(ne){x(he=>Ot(Ie({},he),{[z]:(ne==null?void 0:ne.message)||String(ne)||!0}))}}}),X&&(q.helperText=q.helperText?u.createElement(u.Fragment,{},u.createElement("span",{style:{borderBottom:"1px solid"}},X),u.createElement(Je,{color:"text.primary"},q.helperText)):X),q.label===void 0&&(q.label=rA(z)),Os.defaults(q,r==null?void 0:r(Q))}{const J=q,{xs:fe=12,sm:Q,md:le,lg:ne,xl:he,comp:be=eo,before:ge,after:$e,fromField:Be,toField:Le}=J,re=hn(J,["xs","sm","md","lg","xl","comp","before","after","fromField","toField"]);return Object.assign(re,{name:z}),u.createElement(Qn,{key:z||F,item:!0,xs:fe,sm:Q,md:le,lg:ne,xl:he},ge,u.isValidElement(be)?be:u.createElement(be,re),$e)}})),k&&u.createElement(Je,{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(aie,Ot(Ie({variant:"contained",startIcon:u.createElement(Gx),children:"Save",loading:I!==0},k),{onClick:L})),...s)));function L(){M.current=!0,H()}function H(A=""){I===0&&(O.current=A,setTimeout(()=>_(F=>F===0?1:F)))}function j(){return lt(this,null,function*(){var z,G;if(I===0)return;if(I===1)return _(2);const A="Please review errors",F={};for(const N of e){if(!N||u.isValidElement(N)||!N.k)continue;const{k:B}=N,W=t==null?void 0:t[B],q=(yield(z=R[B])==null?void 0:z.getError())||(yield(G=N.getError)==null?void 0:G.call(N,W,{values:t,fields:e}))||w[B];if(F[B]=q||!1,!M.current&&B===O.current)break;if(!S.current)return}E(F);try{if(!M.current)return;if(Object.values(F).some(Boolean))return yield d==null?void 0:d(A);const N=k&&k.onClick;N&&(yield N())}catch(N){yield d==null?void 0:d(N)}finally{M.current=!1,S.current&&_(0)}})}}function rA(e){return Os.upperFirst(e.indexOf("_")>0?e.replace(/_/g," "):e.replace(/([a-z])([A-Z])/g,(t,n,r)=>n+" "+r.toLowerCase()))}function oA(){return mL("(prefers-color-scheme: dark)")}const Vie={};function Uie(){const e=oA()?null:Vie;return u.useMemo(()=>ex({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])}bm.Container=function(t){const n=u.useRef(),{width:r,height:o}=ioe(),i=r>0&&Math.min(r,o)<500;u.useEffect(()=>{const h=setTimeout(()=>{const m=n.current;if(!m||(m.focus(),i))return;const v=m.querySelector("[autofocus]")||m.querySelector("input,textarea");v&&v instanceof HTMLElement&&v.focus()});return()=>clearTimeout(h)},[n.current]);const s=Qx();t=Ie(Ie({},bm),t);const p=t.dialogProps||{},{sx:a,root:c}=p,d=hn(p,["sx","root"]);return bm.dialogProps={fullScreen:i,sx:{overflow:"initial"}},u.createElement(eQ,Ot(Ie(Ie({open:!0,maxWidth:"lg",fullScreen:i},d),c),{onClose:()=>Ri()}),t.title&&u.createElement(hQ,{sx:Ie({position:"sticky",top:0,py:1,pr:1,zIndex:2,boxShadow:"0 0 8px #0004",display:"flex",alignItems:"center"},s)},u.createElement(Je,{flex:1,minWidth:40},aw(t.title)),u.createElement(Nn,{icon:gp,tooltip:"close",onClick:()=>Ri()})),u.createElement(cQ,{ref:n,sx:Ie({p:t.padding?1:0,pt:"16px !important",overflow:"initial",display:"flex",flexDirection:"column",justifyContent:"center"},a)},u.createElement(t.Content)))};function Qx(){return oA()?{bgcolor:"#2d2d2d"}:{bgcolor:"#ccc",color:"#444"}}const iA={error:Vv,warning:Uv,info:Gf,success:Tx};function Un(e,t){return lt(this,null,function*(){return new Promise(n=>{const r=typeof t=="string"?{type:t}:t!=null?t:{};let a=r,{type:o="info"}=a,i=hn(a,["type"]);e instanceof Error&&(e=e.message||String(e),o="error");const s=di(Ot(Ie({className:"dialog-alert-"+o,icon:"!",onClose:n},i),{Content(){var c;return u.createElement(Je,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},u.createElement(ur,{onClick(){s()},size:"small",sx:{position:"absolute",right:0,top:0,opacity:.5}},u.createElement(gp)),(c=r.icon)!=null?c:u.createElement(iA[o],{color:o,fontSize:"large"}),u.isValidElement(e)?e:u.createElement(Je,{fontSize:"large",mb:1,lineHeight:"1.8em"},String(e)))}}))})})}function Ha(n){return lt(this,arguments,function*(e,{href:t}={}){return new Promise(o=>di({className:"dialog-confirm",icon:"?",onClose:o,Content:r}));function r(){return u.createElement(u.Fragment,{},u.createElement(Je,{mb:2},e),u.createElement(nS,{},u.createElement("a",{href:t,onClick:()=>Ri(!0)},u.createElement(fr,{variant:"contained"},"Confirm")),u.createElement(fr,{onClick:()=>Ri(!1)},"Don't")))}})}function Ru(r){return lt(this,null,function*(){var o=r,{form:e,values:t}=o,n=hn(o,["form","values"]);return new Promise(s=>di(Ot(Ie({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=hn(h,["onChange","before"]);return u.createElement(u.Fragment,{},d,u.createElement(yp,Ot(Ie({},p),{values:s,set(m,v){const b=Ot(Ie({},s),{[v]:m});a(b),c==null||c(b,{setValues:a})},save:Ot(Ie({},p.save),{onClick(){Ri(s)}})})))}})}function Wie(n){return lt(this,arguments,function*(e,t={}){return Ru(Ot(Ie({},t),{form:{fields:[Ie({k:"text",label:null,autoFocus:!0,before:u.createElement(Je,{mb:2},e)},t.field)],save:Ie({children:"Continue",startIcon:u.createElement(HL)},t.save),saveOnEnter:!0,barSx:{gap:2},addToBar:[u.createElement(fr,{onClick:Ri},"Cancel"),...t.addToBar||[]]}})).then(r=>r==null?void 0:r.text)})}function Gie(){return di({Content:Uu,closable:!1})}function Ii(e,t="info"){const r=di({Content:o,dialogProps:{PaperProps:{sx:{transition:"opacity 3000ms ease-in"},ref(i){i&&(i.style.opacity="0")}}}});setTimeout(r,3e3);function o(){return u.createElement(Je,{display:"flex",flexDirection:"column",alignItems:"center",gap:1},u.isValidElement(t)?t:u.createElement(iA[t],{color:t}),u.isValidElement(e)?e:u.createElement("div",{},String(e)))}}function sA(){return u.createElement(Uu)}function Kie(e){return e&&/^[a-zA-Z]:$/.test(e)}function Jx(e,t){return e==t||e&&t&&typeof e=="object"&&typeof t=="object"&&Object.entries(e).every(([n,r])=>Jx(r,t[n]))}function Jv(e){return e?{outline:"2px solid"}:void 0}function Nn(d){var p=d,{title:e,icon:t,onClick:n,disabled:r,progress:o,link:i,tooltipProps:s,confirm:a}=p,c=hn(p,["title","icon","onClick","disabled","progress","link","tooltipProps","confirm"]);const[h,m]=xo(!1);typeof r=="string"&&(e=r),i&&(n=()=>window.open(i));let v=u.createElement(ur,Ot(Ie({disabled:!!(h||o||r)},c),{onClick(){return lt(this,arguments,function*(){if(a&&!(yield Ha(a)))return;const g=n==null?void 0:n.apply(this,arguments);g&&g instanceof Promise&&(m(!0),g.catch(Un).finally(()=>m(!1)))})}}),u.createElement(t));return(o||h)&&o!==!1&&(v=u.createElement(Je,{position:"relative",display:"inline-block"},u.createElement(Uu,Ot(Ie({},typeof o=="number"?{value:o*100,variant:"determinate"}:null),{style:{position:"absolute",top:4,left:4,width:32,height:32}})),v)),e&&(v=u.createElement(hp,Ot(Ie({title:e},s),{children:u.createElement("span",{},v)}))),v}function yo(e,t,n){return u.createElement(hp,{title:t,children:u.createElement(e,{sx:n})})}function Zx(e){return u.createElement(Zo,Ie({component:QT},e))}function eS(e){return u.createElement(Je,Ie({display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center",flexDirection:"column"},e))}function qie(e,t){return lt(this,null,function*(){const r=(yield $t("get_config",{only:[e]}))[e],o=yield t(r);JSON.stringify(r)!==JSON.stringify(o)&&(yield $t("set_config",{values:{[e]:o}}))})}function Yie(e){return Object.keys(e)}function Xie(e,t){var n;return(n=t[e])!=null?n:e}function Va(e){return mL(t=>t.breakpoints.up(e),{noSsr:!0})}function lA(e){return{ENOENT:"Not found",ENOTDIR:"Not a folder"}[e]||e}function tS(e,t){return u.createElement(Nn,Ie({icon:Hv,title:"Reload",onClick:e},t))}const Qie=navigator.platform.match("Mac");function Jie(e){return(e.ctrlKey||Qie&&e.metaKey)&&e.key}function aA({icon:e,progress:t,sx:n}){return u.createElement(u.Fragment,{},u.createElement(e,{sx:{position:"absolute",ml:"4px"}}),u.createElement(hp,{title:Uoe(t),children:u.createElement(Uu,{value:t*100,variant:"determinate",size:32,sx:n})}))}function nS(i){var s=i,{gap:e=".8em",vert:t=!1,children:n=null,props:r={}}=s,o=hn(s,["gap","vert","children","props"]);return u.createElement(Je,Ie({sx:Ie({display:"flex",gap:e,flexDirection:t?"column":void 0},o)},r),n)}function Zie(e,t,n,r){let o=e[t];return jx(e,()=>{const i=e[t];Object.is(o,i)||n(o=i)},r)}const cA="admin_state",xn=zx(Object.assign({title:"",config:{},selectedFiles:[],vfs:void 0,loginRequired:!1,username:"",onlinePluginsColumns:{version:!1,pushed_at:!1,license:!1}},JSON.parse(localStorage[cA]||null))),uA=["onlinePluginsColumns"],ese=Lt.debounce(()=>localStorage[cA]=JSON.stringify(Lt.pick(xn,uA)),500,{maxWait:1e3});for(const e of uA)Zie(xn,e,ese);function ta(){return Hx(xn)}function Si(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 Tu(e){return!!e&&!!e[Ro]}function Ua(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)===ase}(e)||Array.isArray(e)||!!e[T$]||!!(!((t=e.constructor)===null||t===void 0)&&t[T$])||rS(e)||oS(e))}function Kf(e,t,n){n===void 0&&(n=!1),Gu(e)===0?(n?Object.keys:cS)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function Gu(e){var t=e[Ro];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:rS(e)?2:oS(e)?3:0}function fw(e,t){return Gu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function tse(e,t){return Gu(e)===2?e.get(t):e[t]}function dA(e,t,n){var r=Gu(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function nse(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function rS(e){return sse&&e instanceof Map}function oS(e){return lse&&e instanceof Set}function ga(e){return e.o||e.t}function iS(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=cse(e);delete t[Ro];for(var n=cS(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 sS(e,t){return t===void 0&&(t=!1),lS(e)||Tu(e)||!Ua(e)||(Gu(e)>1&&(e.set=e.add=e.clear=e.delete=rse),Object.freeze(e),t&&Kf(e,function(n,r){return sS(r,!0)},!0)),e}function rse(){Si(2)}function lS(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ns(e){var t=use[e];return t||Si(18,e),t}function P$(){return qf}function Sb(e,t){t&&(ns("Patches"),e.u=[],e.s=[],e.v=t)}function fg(e){pw(e),e.p.forEach(ose),e.p=null}function pw(e){e===qf&&(qf=e.l)}function k$(e){return qf={p:[],l:qf,h:e,m:!0,_:0}}function ose(e){var t=e[Ro];t.i===0||t.i===1?t.j():t.g=!0}function Eb(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||ns("ES5").S(t,e,r),r?(n[Ro].P&&(fg(t),Si(4)),Ua(e)&&(e=pg(t,e),t.l||hg(t,e)),t.u&&ns("Patches").M(n[Ro].t,e,t.u,t.s)):e=pg(t,n,[]),fg(t),t.u&&t.v(t.u,t.s),e!==fA?e:void 0}function pg(e,t,n){if(lS(t))return t;var r=t[Ro];if(!r)return Kf(t,function(a,c){return _$(e,r,t,a,c,n)},!0),t;if(r.A!==e)return t;if(!r.P)return hg(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=iS(r.k):r.o,i=o,s=!1;r.i===3&&(i=new Set(o),o.clear(),s=!0),Kf(i,function(a,c){return _$(e,r,o,a,c,n,s)}),hg(e,o,!1),n&&e.u&&ns("Patches").N(r,n,e.u,e.s)}return r.o}function _$(e,t,n,r,o,i,s){if(Tu(o)){var a=pg(e,o,i&&t&&t.i!==3&&!fw(t.R,r)?i.concat(r):void 0);if(dA(n,r,a),!Tu(a))return;e.m=!1}else s&&n.add(o);if(Ua(o)&&!lS(o)){if(!e.h.D&&e._<1)return;pg(e,o),t&&t.A.l||hg(e,o)}}function hg(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&sS(t,n)}function Pb(e,t){var n=e[Ro];return(n?ga(n):e)[t]}function I$(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 hw(e){e.P||(e.P=!0,e.l&&hw(e.l))}function kb(e){e.o||(e.o=iS(e.t))}function mw(e,t,n){var r=rS(t)?ns("MapSet").F(t,n):oS(t)?ns("MapSet").T(t,n):e.O?function(o,i){var s=Array.isArray(o),a={i:s?1:0,A:i?i.A:P$(),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=Gd);var p=Proxy.revocable(c,d),h=p.revoke,m=p.proxy;return a.k=m,a.j=h,m}(t,n):ns("ES5").J(t,n);return(n?n.A:P$()).p.push(r),r}function ise(e){return Tu(e)||Si(22,e),function t(n){if(!Ua(n))return n;var r,o=n[Ro],i=Gu(n);if(o){if(!o.P&&(o.i<4||!ns("ES5").K(o)))return o.t;o.I=!0,r=$$(n,i),o.I=!1}else r=$$(n,i);return Kf(r,function(s,a){o&&tse(o.t,s)===a||dA(r,s,t(a))}),i===3?new Set(r):r}(e)}function $$(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return iS(e)}var M$,qf,aS=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",sse=typeof Map!="undefined",lse=typeof Set!="undefined",R$=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",fA=aS?Symbol.for("immer-nothing"):((M$={})["immer-nothing"]=!0,M$),T$=aS?Symbol.for("immer-draftable"):"__$immer_draftable",Ro=aS?Symbol.for("immer-state"):"__$immer_state",ase=""+Object.prototype.constructor,cS=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,cse=Object.getOwnPropertyDescriptors||function(e){var t={};return cS(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},use={},gw={get:function(e,t){if(t===Ro)return e;var n=ga(e);if(!fw(n,t))return function(o,i,s){var a,c=I$(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||!Ua(r)?r:r===Pb(e.t,t)?(kb(e),e.o[t]=mw(e.A.h,r,e)):r},has:function(e,t){return t in ga(e)},ownKeys:function(e){return Reflect.ownKeys(ga(e))},set:function(e,t,n){var r=I$(ga(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Pb(ga(e),t),i=o==null?void 0:o[Ro];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(nse(n,o)&&(n!==void 0||fw(e.t,t)))return!0;kb(e),hw(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 Pb(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,kb(e),hw(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=ga(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Si(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Si(12)}},Gd={};Kf(gw,function(e,t){Gd[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Gd.deleteProperty=function(e,t){return Gd.set.call(this,e,t,void 0)},Gd.set=function(e,t,n){return gw.set.call(this,e[0],t,n,e[0])};var dse=function(){function e(n){var r=this;this.O=R$,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(g){var S=this;g===void 0&&(g=a);for(var C=arguments.length,E=Array(C>1?C-1:0),w=1;w<C;w++)E[w-1]=arguments[w];return c.produce(g,function(x){var k;return(k=i).call.apply(k,[S,x].concat(E))})}}var d;if(typeof i!="function"&&Si(6),s!==void 0&&typeof s!="function"&&Si(7),Ua(o)){var p=k$(r),h=mw(r,o,void 0),m=!0;try{d=i(h),m=!1}finally{m?fg(p):pw(p)}return typeof Promise!="undefined"&&d instanceof Promise?d.then(function(g){return Sb(p,s),Eb(g,p)},function(g){throw fg(p),g}):(Sb(p,s),Eb(d,p))}if(!o||typeof o!="object"){if((d=i(o))===void 0&&(d=o),d===fA&&(d=void 0),r.D&&sS(d,!0),s){var v=[],b=[];ns("Patches").M(o,d,v,b),s(v,b)}return d}Si(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(v){return o.apply(void 0,[v].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){Ua(n)||Si(8),Tu(n)&&(n=ise(n));var r=k$(this),o=mw(this,n,void 0);return o[Ro].C=!0,pw(r),o},t.finishDraft=function(n,r){var o=n&&n[Ro],i=o.A;return Sb(i,r),Eb(void 0,i)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!R$&&Si(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=ns("Patches").$;return Tu(n)?s(n,r):this.produce(n,function(a){return s(a,r)})},e}(),To=new dse,fse=To.produce;To.produceWithPatches.bind(To);To.setAutoFreeze.bind(To);To.setUseProxies.bind(To);To.applyPatches.bind(To);To.createDraft.bind(To);To.finishDraft.bind(To);const pse=fse,pA=qoe()+"/~/api/",hse={loginSrp1:90,get_status:20},hA={};function mse(e){Object.assign(hA,e)}function $t(e,t,n={}){var s,a,c;Lt.defaults(n,hA);const r=(s=n.modal)==null?void 0:s.call(n,e,t),o=vA();o&&(t=Ie({csrf:o},t));const i=new AbortController;return n.timeout!==!1&&setTimeout(()=>i.abort("timeout"),1e3*((c=(a=hse[e])!=null?a:n.timeout)!=null?c:10)),Object.assign(fetch(pA+e,{method:"POST",headers:{"content-type":"application/json"},signal:i.signal,body:t&&JSON.stringify(t)}).then(d=>lt(this,null,function*(){var h;r==null||r();let p=yield d.text();try{p=JSON.parse(p)}catch(m){}if(console.debug(d.ok?"API":"API FAILED",e,t,">>",p),yield(h=n.onResponse)==null?void 0:h.call(n,d,p),!d.ok)throw new mA(d.status,p||`Failed API ${e}: ${d.statusText}`);return p}),d=>{var p;throw r==null||r(),(p=d==null?void 0:d.message)!=null&&p.includes("fetch")?Error("Network error"):d}),{abort(){i.abort("cancel")}})}class mA extends Error{constructor(t,n){super(n),this.code=t}}function bp(e,t){const[n,r]=xo(void 0),[o,i]=xo(void 0),[s,a]=xo(0),c=u.useRef(),d=u.useRef();u.useEffect(()=>{var b,g;if((b=c.current)==null||b.abort(),r(void 0),i(void 0),!e)return;let h=!1;const m=$t(e,t),v=m.then(S=>h||r(S),S=>h||i(S)).finally(()=>c.current=void 0);c.current=Object.assign(v,{abort(){h=!0,m.abort()}}),(g=d.current)==null||g.resolve(v)},[e,JSON.stringify(t),s]);const p=u.useCallback(()=>c.current||a(h=>h+1)||(d.current=Goe()),[a]);return[n,o,p]}function gA(e,t,n){console.debug("API EVENTS",e,t);const r={};for(const s in t){const a=t[s];a!==void 0&&(r[s]=JSON.stringify(a))}const o=vA();o&&(r.csrf=JSON.stringify(o));const i=new EventSource(pA+e+"?"+new URLSearchParams(r));return i.onopen=()=>n("connected"),i.onerror=s=>n("error",s),i.onmessage=({data:s})=>{if(!s)return n("closed"),i.close();try{s=JSON.parse(s)}catch(a){return n("string",s)}console.debug("SSE msg",s),n("msg",s)},i}function vA(){return zoe("csrf")}function gse(e,t={}){const[n,r]=xo(void 0),[o,i]=xo(void 0),[s,a]=xo(!1);return u.useEffect(()=>{const c=gA(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}}mse({onResponse(e,t){return lt(this,null,function*(){if(e.status===401)throw xn.loginRequired=(t==null?void 0:t.any)!==!1||403,new mA(e.status,"Unauthorized")})}});function Io(...e){const[t,n,r]=bp(...e),o=e[0],i=t===void 0,s=u.useMemo(()=>o?n?u.createElement(No,{severity:"error"},String(n),u.createElement(Nn,{icon:Hv,onClick:r,sx:{m:"-8px 0 -8px 16px"}})):i?sA():null:null,[n,o,i,r]);return{data:t,error:n,reload:r,loading:i,element:s}}function nc(e,t={},{addId:n=!1,map:r=o=>o}={}){const[o,i]=xo([]),[s,a]=xo(void 0),[c,d]=xo(void 0),[p,h]=xo(!0),[m,v]=xo(!1),[b,g]=xo(!0),[S,C]=u.useState(0),E=u.useRef(0);return u.useEffect(()=>{if(!e)return;const k=[],I=Lt.debounce(()=>{const O=k.splice(0,1/0);O.length&&i(R=>[...R,...O])},1e3,{maxWait:1e3});d(void 0),v(!0),h(!0),g(!0),i([]);const _=gA(e,t,(O,R)=>{switch(O){case"connected":return h(!1),setTimeout(()=>I.flush());case"error":return d("Connection error"),M();case"closed":return M();case"msg":Woe(R).forEach(L=>{if(L==="ready"){I.flush(),g(!1);return}if(L.error){L.error===401?xn.loginRequired=L.any!==!1||403:d(lA(L.error));return}if(L.props)return a(L.props);if(L.add){const H=r(L.add);n&&(H.id=++E.current),k.push(H),I();return}if(L.remove){const H=[];for(const j of L.remove){const A=Lt.matches(j);Lt.isEmpty(Lt.remove(k,A))&&H.push(A)}if(Lt.isEmpty(H))return;i(j=>{const A=j.filter(F=>!H.some(z=>z(F)));return A.length<j.length?A:j});return}if(L.update){I.flush(),i(H=>{const j=[...H];for(const{search:A,change:F}of L.update){const z=j.findIndex(Lt.matches(A));z>=0&&(j[z]=Ie(Ie({},j[z]),F))}return j});return}console.debug("unknown api event",O,L)}),(_==null?void 0:_.readyState)===(_==null?void 0:_.CLOSED)&&M()}});return()=>_.close();function M(){g(!1),v(!1),I.flush()}},[S,e,JSON.stringify(t)]),{list:o,props:s,loading:m,error:c,initializing:b,connecting:p,setList:i,updateList:x,reload:w};function w(){C(k=>k+1)}function x(k){i(pse(o,I=>{k(I)}))}}var uS={},vse=ft;Object.defineProperty(uS,"__esModule",{value:!0});var yA=uS.default=void 0,yse=vse(gt()),bse=mt(),wse=(0,yse.default)((0,bse.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");yA=uS.default=wse;var dS={},Cse=ft;Object.defineProperty(dS,"__esModule",{value:!0});var Zv=dS.default=void 0,xse=Cse(gt()),Sse=mt(),Ese=(0,xse.default)((0,Sse.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");Zv=dS.default=Ese;var fS={},Pse=ft;Object.defineProperty(fS,"__esModule",{value:!0});var pS=fS.default=void 0,kse=Pse(gt()),_se=mt(),Ise=(0,kse.default)((0,_se.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");pS=fS.default=Ise;var hS={},$se=ft;Object.defineProperty(hS,"__esModule",{value:!0});var bA=hS.default=void 0,Mse=$se(gt()),Rse=mt(),Tse=(0,Mse.default)((0,Rse.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");bA=hS.default=Tse;var mS={},Ose=ft;Object.defineProperty(mS,"__esModule",{value:!0});var wA=mS.default=void 0,Lse=Ose(gt()),Ase=mt(),Fse=(0,Lse.default)((0,Ase.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");wA=mS.default=Fse;var gS={},Nse=ft;Object.defineProperty(gS,"__esModule",{value:!0});var wp=gS.default=void 0,Dse=Nse(gt()),Bse=mt(),zse=(0,Dse.default)((0,Bse.jsx)("path",{d:"M5 20h14v-2H5v2zm0-10h4v6h6v-6h4l-7-7-7 7z"}),"Upload");wp=gS.default=zse;const CA=u.createContext(void 0);function Et(){const e=u.useContext(CA);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 xA=u.createContext(void 0),Xe=()=>{const e=u.useContext(xA);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e};function Bt(e){return Ze("MuiDataGrid",e)}const ee=qe("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","autoHeight","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","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","filterFormLinkOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","root","root--densityStandard","root--densityComfortable","root--densityCompact","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","withBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),jse=e=>{const{classes:t}=e;return ke({root:["main"]},Bt,t)},Hse=oe("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})(()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"}));function SA(e){const t=Xe(),n=jse(t);return T.jsx(Hse,{className:n.root,ownerState:t,children:e.children})}function Vse(e,t){var n=function(x){var k=x.__resizeTriggers__,I=k.firstElementChild,_=k.lastElementChild,M=I.firstElementChild;_.scrollLeft=_.scrollWidth,_.scrollTop=_.scrollHeight,M.style.width=I.offsetWidth+1+"px",M.style.height=I.offsetHeight+1+"px",I.scrollLeft=I.scrollWidth,I.scrollTop=I.scrollHeight},r=function(x){return x.offsetWidth!=x.__resizeLast__.width||x.offsetHeight!=x.__resizeLast__.height},o=function(x){if(!(x.target.className.indexOf("contract-trigger")<0&&x.target.className.indexOf("expand-trigger")<0)){var k=this;n(this),this.__resizeRAF__&&t.cancelAnimationFrame(this.__resizeRAF__),this.__resizeRAF__=t.requestAnimationFrame(function(){r(k)&&(k.__resizeLast__.width=k.offsetWidth,k.__resizeLast__.height=k.offsetHeight,k.__resizeListeners__.forEach(function(I){I.call(k,x)}))})}},i=!1,s="",a="animationstart",c="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="";{var h=document.createElement("fakeelement");if(h.style.animationName!==void 0&&(i=!0),i===!1){for(var m=0;m<c.length;m++)if(h.style[c[m]+"AnimationName"]!==void 0){p=c[m],s="-"+p.toLowerCase()+"-",a=d[m],i=!0;break}}}var v="resizeanim",b="@"+s+"keyframes "+v+" { from { opacity: 0; } to { opacity: 0; } } ",g=s+"animation: 1ms "+v+"; ",S=function(x,k){if(!k.getElementById("muiDetectElementResize")){var I=(b||"")+".Mui-resizeTriggers { "+(g||"")+'visibility: hidden; opacity: 0; } .Mui-resizeTriggers, .Mui-resizeTriggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .Mui-resizeTriggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',_=k.constructor.name==="ShadowRoot"?k:x.head||x.getElementsByTagName("head")[0],M=x.createElement("style");M.id="muiDetectElementResize",M.type="text/css",e!=null&&M.setAttribute("nonce",e),M.styleSheet?M.styleSheet.cssText=I:M.appendChild(x.createTextNode(I)),_.appendChild(M)}},C=function(x,k){if(!x.__resizeTriggers__){var I=x.ownerDocument,_=t.getComputedStyle(x);_&&_.position=="static"&&(x.style.position="relative"),S(I,x.getRootNode()),x.__resizeLast__={},x.__resizeListeners__=[],(x.__resizeTriggers__=I.createElement("div")).className="Mui-resizeTriggers",x.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',x.appendChild(x.__resizeTriggers__),n(x),x.addEventListener("scroll",o,!0),a&&(x.__resizeTriggers__.__animationListener__=function(O){O.animationName==v&&n(x)},x.__resizeTriggers__.addEventListener(a,x.__resizeTriggers__.__animationListener__))}x.__resizeListeners__.push(k)},E=function(x,k){if(x.__resizeListeners__.splice(x.__resizeListeners__.indexOf(k),1),!x.__resizeListeners__.length){x.removeEventListener("scroll",o,!0),x.__resizeTriggers__.__animationListener__&&(x.__resizeTriggers__.removeEventListener(a,x.__resizeTriggers__.__animationListener__),x.__resizeTriggers__.__animationListener__=null);try{x.__resizeTriggers__=!x.removeChild(x.__resizeTriggers__)}catch(I){}}};return{addResizeListener:C,removeResizeListener:E}}const Use=["children","defaultHeight","defaultWidth","disableHeight","disableWidth","nonce","onResize","style"],Wse=u.forwardRef(function(t,n){const{children:r,defaultHeight:o=null,defaultWidth:i=null,disableHeight:s=!1,disableWidth:a=!1,nonce:c,onResize:d,style:p}=t,h=se(t,Use),[m,v]=u.useState({height:o,width:i}),b=u.useRef(null),g=u.useRef(null),S=dn(()=>{if(g.current){const x=g.current.offsetHeight||0,k=g.current.offsetWidth||0,_=so(g.current).getComputedStyle(g.current),M=parseInt(_.paddingLeft,10)||0,O=parseInt(_.paddingRight,10)||0,R=parseInt(_.paddingTop,10)||0,L=parseInt(_.paddingBottom,10)||0,H=x-R-L,j=k-M-O;(!s&&m.height!==H||!a&&m.width!==j)&&(v({height:H,width:j}),d&&d({height:H,width:j}))}});fn(()=>{var x;if(g.current=b.current.parentElement,!g)return;const k=so((x=g.current)!=null?x:void 0),I=Vse(c,k);return I.addResizeListener(g.current,S),S(),()=>{I.removeResizeListener(g.current,S)}},[c,S]);const C={overflow:"visible"},E={};s||(C.height=0,E.height=m.height),a||(C.width=0,E.width=m.width);const w=Ut(b,n);return T.jsx("div",P({ref:w,style:P({},C,p)},h,{children:m.height===null&&m.width===null?null:r(E)}))}),Oi=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
329
+ `):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},vS=(e,t)=>e;function Gse(e){return e.acceptsApiRef}Oi(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);const Ye=(e,t)=>Gse(t)?t(e):t(e.current.state);var mg="NOT_FOUND";function Kse(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:mg},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function qse(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 mg}function o(a,c){r(a)===mg&&(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 Yse=function(t,n){return t===n};function Xse(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 EA(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?Yse:r,i=n.maxSize,s=i===void 0?1:i,a=n.resultEqualityCheck,c=Xse(o),d=s===1?Kse(c):qse(s,c);function p(){var h=d.get(arguments);if(h===mg){if(h=e.apply(null,arguments),a){var m=d.getEntries(),v=m.find(function(b){return a(b.value,h)});v&&(h=v.value)}d.put(arguments,h)}return h}return p.clearCache=function(){return d.clear()},p}function Qse(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 Jse(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 v=h,b=v.memoizeOptions,g=b===void 0?n:b,S=Array.isArray(g)?g:[g],C=Qse(a),E=e.apply(void 0,[function(){return d++,m.apply(null,arguments)}].concat(S)),w=e(function(){for(var k=[],I=C.length,_=0;_<I;_++)k.push(C[_].apply(null,arguments));return p=E.apply(null,k),p});return Object.assign(w,{resultFunc:m,memoizedResultFunc:E,dependencies:C,lastResult:function(){return p},recomputations:function(){return d},resetRecomputations:function(){return d=0}}),w};return o}var Zse=Jse(EA);const $s={cache:null};Oi(["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)`."]);const et=(...e)=>{$s.cache===null&&($s.cache={});const t=(...n)=>{const[r,o]=n,i=!!r.current,s=i?r.current.instanceId:o!=null?o:"default",a=i?r.current.state:r;$s.cache===null&&($s.cache={});const{cache:c}=$s;if(c[s]&&c[s].get(e))return c[s].get(e)(a,s);const d=Zse(...e);return c[s]||(c[s]=new Map),c[s].set(e,d),d(a,s)};return t.acceptsApiRef=!0,t},ele=e=>{typeof e!="undefined"?$s.cache&&$s.cache[e]&&delete $s.cache[e]:$s.cache=null},cs=e=>e.rows,ey=et(cs,e=>e.totalRowCount),tle=et(cs,e=>e.loading),nle=et(cs,e=>e.totalTopLevelRowCount),cu=et(cs,e=>e.idRowsLookup),yS=et(cs,e=>e.idToIdLookup),kl=et(cs,e=>e.tree),rle=et(cs,e=>e.groupingName),bS=et(cs,e=>e.treeDepth),xa=et(cs,e=>e.ids),ole=et(cs,e=>e==null?void 0:e.additionalRowGroups),Cp=et(ole,e=>e==null?void 0:e.pinnedRows),ile=et(Cp,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)}),wS=e=>e.sorting,CS=et(wS,e=>e.sortedRows),xS=et(CS,cu,(e,t)=>e.map(n=>({id:n,model:t[n]}))),wi=et(wS,e=>e.sortModel),sle=et(wi,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),Wa=e=>e.columns,Ou=et(Wa,e=>e.all),Ku=et(Wa,e=>e.lookup),$i=et(Ou,Ku,(e,t)=>e.map(n=>t[n])),Ls=et(Wa,e=>e.columnVisibilityModel),Ar=et($i,Ls,(e,t)=>e.filter(n=>t[n.field]!==!1));et(Ar,e=>e.map(t=>t.field));const Ga=et(Ar,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),ty=et(Ar,Ga,(e,t)=>{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),SS=et($i,e=>e.filter(t=>t.filterable)),lle=et($i,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{}));vS(et(SS,e=>e.map(t=>t.field)));vS(et(Ar,e=>e.length));const ale=vS(et(Ga,ty,(e,t)=>({totalWidth:t,positions:e}))),xp=e=>e.filter,Xr=et(xp,e=>e.filterModel);et(Xr,e=>e.quickFilterValues);const cle=et(xp,e=>e.visibleRowsLookup),PA=et(xp,e=>e.filteredRowsLookup);et(xp,e=>e.filteredDescendantCountLookup);const Qs=et(cle,xS,(e,t)=>t.filter(n=>e[n.id]!==!1)),gf=et(Qs,e=>e.map(t=>t.id)),ule=et(PA,xS,(e,t)=>t.filter(n=>e[n.id]!==!1)),dle=et(ule,e=>e.map(t=>t.id)),kA=et(Qs,kl,bS,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),_A=et(Qs,e=>e.length),IA=et(kA,e=>e.length),fle=et(Xr,Ku,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var o,i;if(!r.columnField)return!1;const s=t[r.columnField];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.operatorValue);return a?!a.InputComponent||r.value!=null&&((i=r.value)==null?void 0:i.toString())!=="":!1})}),ple=et(fle,e=>e.reduce((n,r)=>(n[r.columnField]?n[r.columnField].push(r):n[r.columnField]=[r],n),{})),rc=e=>e.density,hle=et(rc,e=>e.value),Sp=et(rc,e=>e.rowHeight),$A=et(rc,e=>e.headerHeight),ES=et(rc,e=>e.headerGroupingMaxDepth),mle=et(rc,e=>e.factor),Ep=et(rc,e=>e.headerHeight*(1+e.headerGroupingMaxDepth));function gle(e){var t,n;const r=Et(),o=Xe(),i=Ye(r,Ep),[s,a]=u.useState(()=>{var p,h;return(p=(h=r.current.getRootDimensions())==null?void 0:h.viewportInnerSize)!=null?p:null}),c=u.useCallback(()=>{var p,h;a((p=(h=r.current.getRootDimensions())==null?void 0:h.viewportInnerSize)!=null?p:null)},[r]);fn(()=>r.current.subscribeEvent("viewportInnerSizeChange",c),[r,c]);let d=(t=s==null?void 0:s.height)!=null?t:0;return o.autoHeight&&d===0&&(d="auto"),s?T.jsx("div",P({style:{height:d,width:(n=s==null?void 0:s.width)!=null?n:0,position:"absolute",top:i,bottom:d==="auto"?0:void 0}},e)):null}function vle(){const e=Et(),t=Xe(),n=Ye(e,ey),r=Ye(e,_A),o=Ye(e,tle),i=!o&&n===0,s=!o&&n>0&&r===0;let a=null;if(i){var c;a=T.jsx(t.components.NoRowsOverlay,P({},(c=t.componentsProps)==null?void 0:c.noRowsOverlay))}if(s){var d;a=T.jsx(t.components.NoResultsOverlay,P({},(d=t.componentsProps)==null?void 0:d.noResultsOverlay))}if(o){var p;a=T.jsx(t.components.LoadingOverlay,P({},(p=t.componentsProps)==null?void 0:p.loadingOverlay))}return a===null?null:T.jsx(gle,{children:a})}function yle(e){const{children:t,VirtualScrollerComponent:n,ColumnHeadersComponent:r}=e,o=Et(),i=Xe(),s=Ye(o,Ep),[a,c]=u.useState(i.disableVirtualization),d=u.useCallback(()=>{c(!0)},[]),p=u.useCallback(()=>{c(!1)},[]);u.useEffect(()=>{c(i.disableVirtualization)},[i.disableVirtualization]),o.current.unstable_disableVirtualization=d,o.current.unstable_enableVirtualization=p;const h=u.useRef(null),m=u.useRef(null),v=u.useRef(null),b=u.useRef(null);o.current.columnHeadersContainerElementRef=m,o.current.columnHeadersElementRef=h,o.current.windowRef=v,o.current.renderingZoneRef=b;const g=u.useCallback(S=>{o.current.publishEvent("resize",S)},[o]);return T.jsxs(SA,{children:[T.jsx(vle,{}),T.jsx(r,{ref:m,innerRef:h}),T.jsx(Wse,{nonce:i.nonce,disableHeight:i.autoHeight,onResize:g,children:S=>{const C={width:S.width,height:S.height?S.height-s:"auto",marginTop:s};return T.jsx(n,{ref:v,style:C,disableVirtualization:a})}}),t]})}function er(e,t){const n=u.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}class ble extends u.Component{static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){this.props.api.current&&(this.logError(t),this.props.api.current.showError({error:t,errorInfo:n}))}logError(t,n){this.props.logger.error(`An unexpected error occurred. Error: ${t&&t.message}. `,t,n)}render(){var t;return this.props.hasError||(t=this.state)!=null&&t.hasError?this.props.render(this.state):this.props.children}}function wle(e){const{children:t}=e,n=Et(),r=er(n,"GridErrorHandler"),o=Xe(),i=n.current.state.error;return T.jsx(ble,{hasError:i!=null,api:n,logger:r,render:s=>{var a;return T.jsx(SA,{children:T.jsx(o.components.ErrorOverlay,P({},s,i,(a=o.componentsProps)==null?void 0:a.errorOverlay))})},children:t})}function Cle(){var e;const t=Et(),n=Xe(),r=u.useRef(null);return t.current.footerRef=r,n.hideFooter?null:T.jsx("div",{ref:r,children:T.jsx(n.components.Footer,P({},(e=n.componentsProps)==null?void 0:e.footer))})}function xle(){var e;const t=Et(),n=Xe(),r=u.useRef(null);return t.current.headerRef=r,T.jsx("div",{ref:r,children:T.jsx(n.components.Header,P({},(e=n.componentsProps)==null?void 0:e.header))})}var Tr;(function(e){e.Cell="cell",e.Row="row"})(Tr||(Tr={}));var Tt;(function(e){e.Edit="edit",e.View="view"})(Tt||(Tt={}));var Kt;(function(e){e.Edit="edit",e.View="view"})(Kt||(Kt={}));const uu={client:"client",server:"server"};var Hr;(function(e){e.And="and",e.Or="or"})(Hr||(Hr={}));var Ps;(function(e){e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown"})(Ps||(Ps={}));var Vi;(function(e){e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown"})(Vi||(Vi={}));var ks;(function(e){e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown"})(ks||(ks={}));var Ui;(function(e){e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown"})(Ui||(Ui={}));var Yf;(function(e){e.Compact="compact",e.Standard="standard",e.Comfortable="comfortable"})(Yf||(Yf={}));function MA(e){return e.field!==void 0}const RA=e=>e.focus,Ei=et(RA,e=>e.cell),Sle=et(RA,e=>e.columnHeader),TA=e=>e.tabIndex,gg=et(TA,e=>e.cell),OA=et(TA,e=>e.columnHeader),Ele=["align","children","colIndex","colDef","cellMode","field","formattedValue","hasFocus","height","isEditable","rowId","tabIndex","value","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","onClick","onDoubleClick","onMouseDown","onMouseUp","onKeyDown","onDragEnter","onDragOver"];let _b;function Ple(){return _b===void 0&&document.createElement("div").focus({get preventScroll(){return _b=!0,!1}}),_b}const kle=e=>{const{align:t,showRightBorder:n,isEditable:r,classes:o}=e,i={root:["cell",`cell--text${ce(t)}`,r&&"cell--editable",n&&"withBorder"],content:["cellContent"]};return ke(i,Bt,o)};function _le(e){const{align:t,children:n,colIndex:r,cellMode:o,field:i,formattedValue:s,hasFocus:a,height:c,isEditable:d,rowId:p,tabIndex:h,value:m,width:v,className:b,showRightBorder:g,colSpan:S,disableDragEvents:C,onClick:E,onDoubleClick:w,onMouseDown:x,onMouseUp:k,onKeyDown:I,onDragEnter:_,onDragOver:M}=e,O=se(e,Ele),R=s==null?m:s,L=u.useRef(null),H=u.useRef(null),j=Et(),A=Xe(),F={align:t,showRightBorder:g,isEditable:d,classes:A.classes},z=kle(F),G=u.useCallback(Q=>le=>{const ne=j.current.getCellParams(p,i||"");j.current.publishEvent(Q,ne,le),k&&k(le)},[j,i,k,p]),N=u.useCallback(Q=>le=>{const ne=j.current.getCellParams(p,i||"");j.current.publishEvent(Q,ne,le),x&&x(le)},[j,i,x,p]),B=u.useCallback((Q,le)=>ne=>{if(!ne.currentTarget.contains(ne.target)||!j.current.getRow(p))return;const he=j.current.getCellParams(p,i||"");j.current.publishEvent(Q,he,ne),le&&le(ne)},[j,i,p]),W={minWidth:v,maxWidth:v,minHeight:c,maxHeight:c==="auto"?"none":c};u.useEffect(()=>{if(!a||o===Tt.Edit)return;const Q=gn(j.current.rootElementRef.current);if(L.current&&!L.current.contains(Q.activeElement)){const le=L.current.querySelector('[tabindex="0"]'),ne=H.current||le||L.current;if(Ple())ne.focus({preventScroll:!0});else{const he=j.current.getScrollPosition();ne.focus(),j.current.scroll(he)}}},[a,o,j]);let q=O.onFocus;const ie=j.current.getColumn(i).type==="actions",J=()=>{if(n==null){const Q=R==null?void 0:R.toString();return T.jsx("div",{title:Q,className:z.content,children:Q})}return u.isValidElement(n)&&ie?u.cloneElement(n,{focusElementRef:H}):n},fe=C?null:{onDragEnter:B("cellDragEnter",_),onDragOver:B("cellDragOver",M)};return T.jsx("div",P({ref:L,className:pe(b,z.root),role:"cell","data-field":i,"data-colindex":r,"aria-colindex":r+1,"aria-colspan":S,style:W,tabIndex:(o==="view"||!d)&&!ie?h:-1,onClick:B("cellClick",E),onDoubleClick:B("cellDoubleClick",w),onMouseDown:N("cellMouseDown"),onMouseUp:G("cellMouseUp"),onKeyDown:B("cellKeyDown",I)},fe,O,{onFocus:q,children:J()}))}const Ile=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","getValue"],$le=e=>{const{classes:t}=e;return ke({root:["booleanCell"]},Bt,t)},Mle=e=>{const{value:t}=e,n=se(e,Ile),r=Et(),o=Xe(),i={classes:o.classes},s=$le(i),a=u.useMemo(()=>t?o.components.BooleanCellTrueIcon:o.components.BooleanCellFalseIcon,[o.components.BooleanCellFalseIcon,o.components.BooleanCellTrueIcon,t]);return T.jsx(a,P({fontSize:"small",className:s.root,titleAccess:r.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},n))},Rle=u.memo(Mle),Tle=e=>e.rowNode.isAutoGenerated?"":T.jsx(Rle,P({},e)),Ole=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","isProcessingProps","error","onValueChange"],Lle=e=>{const{classes:t}=e;return ke({root:["editBooleanCell"]},Bt,t)};function Ale(e){var t;const{id:n,value:r,field:o,className:i,hasFocus:s,onValueChange:a}=e,c=se(e,Ole),d=Et(),p=u.useRef(null),h=In(),[m,v]=u.useState(r),b=Xe(),g={classes:b.classes},S=Lle(g),C=u.useCallback(E=>lt(this,null,function*(){const w=E.target.checked;a&&(yield a(E,w)),v(w),yield d.current.setEditCellValue({id:n,field:o,value:w},E)}),[d,o,n,a]);return u.useEffect(()=>{v(r)},[r]),fn(()=>{s&&p.current.focus()},[s]),T.jsx("label",P({htmlFor:h,className:pe(S.root,i)},c,{children:T.jsx(b.components.BaseCheckbox,P({id:h,inputRef:p,checked:!!m,onChange:C,size:"small"},(t=b.componentsProps)==null?void 0:t.baseCheckbox))}))}const Fle=e=>T.jsx(Ale,P({},e)),Nle=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","inputProps","isValidating","isProcessingProps","onValueChange"],Dle=oe(Vu)({fontSize:"inherit"}),Ble=e=>{const{classes:t}=e;return ke({root:["editInputCell"]},Bt,t)};function zle(e){const{id:t,value:n,field:r,colDef:o,hasFocus:i,inputProps:s,onValueChange:a}=e,c=se(e,Nle),d=o.type==="dateTime",p=Et(),h=u.useRef(),m=u.useMemo(()=>{let w;n==null?w=null:n instanceof Date?w=n:w=new Date((n!=null?n:"").toString());let x;return w==null||Number.isNaN(w.getTime())?x="":x=new Date(w.getTime()-w.getTimezoneOffset()*60*1e3).toISOString().substr(0,d?16:10),{parsed:w,formatted:x}},[n,d]),[v,b]=u.useState(m),S={classes:Xe().classes},C=Ble(S),E=u.useCallback(w=>lt(this,null,function*(){const x=w.target.value;let k;if(x==="")k=null;else{const[I,_]=x.split("T"),[M,O,R]=I.split("-");if(k=new Date,k.setFullYear(Number(M),Number(O)-1,Number(R)),k.setHours(0,0,0,0),_){const[L,H]=_.split(":");k.setHours(Number(L),Number(H),0,0)}}a&&(yield a(w,k)),b({parsed:k,formatted:x}),p.current.setEditCellValue({id:t,field:r,value:k},w)}),[p,r,t,a]);return u.useEffect(()=>{b(w=>{var x,k;return m.parsed!==w.parsed&&((x=m.parsed)==null?void 0:x.getTime())!==((k=w.parsed)==null?void 0:k.getTime())?m:w})},[m]),fn(()=>{i&&h.current.focus()},[i]),T.jsx(Dle,P({inputRef:h,fullWidth:!0,className:C.root,type:d?"datetime-local":"date",inputProps:P({max:d?"9999-12-31T23:59":"9999-12-31"},s),value:v.formatted,onChange:E},c))}const LA=e=>T.jsx(zle,P({},e)),jle=At(T.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),Hle=At(T.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),O$=At(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"),L$=At(T.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Vle=At(T.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),Ule=At(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"),Wle=At(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");At(T.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");At(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 Gle=At(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"),Kle=At(T.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),qle=At(T.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),Yle=At(T.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),Xle=At(T.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),Qle=At(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"),Ib=At(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"),AA=At(T.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),Jle=At(T.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),PS=At(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"),FA=At(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"),Zle=At(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"),eae=At(T.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),tae=At(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");function _l(e){return typeof e=="object"&&e!==null?e.value:e}function vg(e,t){if(t===void 0)return;const n=t.find(r=>{const o=_l(r);return String(o)===String(e)});return _l(n)}const nae=["item","applyValue","type","apiRef","focusElementRef"],rae=({valueOptions:e,valueFormatter:t,field:n},r,o)=>(typeof e=="function"?["",...e({field:n})]:["",...e||[]]).map(s=>{const a=typeof s=="object",c=a?s.value:s,d=a?s.value:s,p=t&&s!==""?t({value:s,field:n,api:r}):s,h=a?s.label:p;return T.jsx(o,{value:d,children:h},c)}),NA=500;function Ki(e){var t,n,r,o,i;const{item:s,applyValue:a,type:c,apiRef:d,focusElementRef:p}=e,h=se(e,nae),m=u.useRef(),[v,b]=u.useState((t=s.value)!=null?t:""),[g,S]=u.useState(!1),C=In(),E=Xe(),x=(r=(((n=E.componentsProps)==null?void 0:n.baseSelect)||{}).native)!=null?r:!0,k=c==="singleSelect"?{select:!0,SelectProps:P({native:x},(o=E.componentsProps)==null?void 0:o.baseSelect),children:rae(d.current.getColumn(s.columnField),d.current,x?"option":pr)}:{},I=u.useCallback(M=>{let O=M.target.value;if(c==="singleSelect"){const R=d.current.getColumn(s.columnField),L=typeof R.valueOptions=="function"?R.valueOptions({field:R.field}):R.valueOptions;O=vg(O,L)}clearTimeout(m.current),b(String(O)),S(!0),m.current=setTimeout(()=>{a(P({},s,{value:O})),S(!1)},NA)},[d,a,s,c]);u.useEffect(()=>()=>{clearTimeout(m.current)},[]),u.useEffect(()=>{var M;const O=(M=s.value)!=null?M:"";b(String(O))},[s.value]);const _=g?{endAdornment:T.jsx(PS,{})}:h.InputProps;return T.jsx(E.components.BaseTextField,P({id:C,label:d.current.getLocaleText("filterPanelInputLabel"),placeholder:d.current.getLocaleText("filterPanelInputPlaceholder"),value:v,onChange:I,variant:"standard",type:c||"text",InputProps:_,InputLabelProps:{shrink:!0},inputRef:p},k,h,(i=E.componentsProps)==null?void 0:i.baseTextField))}const oae=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","isValidating","debounceMs","isProcessingProps","onValueChange"],iae=e=>{const{classes:t}=e;return ke({root:["editInputCell"]},Bt,t)},sae=oe(Vu,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>P({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),lae=u.forwardRef((e,t)=>{var n,r;const o=Xe(),{id:i,value:s,field:a,colDef:c,hasFocus:d,debounceMs:p=(n=o.experimentalFeatures)!=null&&n.newEditingApi?200:NA,isProcessingProps:h,onValueChange:m}=e,v=se(e,oae),b=Et(),g=u.useRef(),[S,C]=u.useState(s),E=iae(o),w=u.useCallback(k=>lt(void 0,null,function*(){var I;const _=k.target.value;m&&(yield m(k,_));const M=b.current.getColumn(a);let O=_;M.valueParser&&(I=o.experimentalFeatures)!=null&&I.newEditingApi&&(O=M.valueParser(_,b.current.getCellParams(i,a))),C(O),b.current.setEditCellValue({id:i,field:a,value:O,debounceMs:p,unstable_skipValueParser:!0},k)}),[b,p,a,i,m,(r=o.experimentalFeatures)==null?void 0:r.newEditingApi]),x=b.current.unstable_getEditCellMeta?b.current.unstable_getEditCellMeta(i,a):{};return u.useEffect(()=>{x.changeReason!=="debouncedSetEditCellValue"&&C(s)},[x.changeReason,s]),fn(()=>{d&&g.current.focus()},[d]),T.jsx(sae,P({ref:t,inputRef:g,className:E.root,ownerState:o,fullWidth:!0,type:c.type==="number"?c.type:"text",value:S!=null?S:"",onChange:w,endAdornment:h?T.jsx(PS,{}):void 0},v))}),aae=e=>T.jsx(lae,P({},e)),kS=e=>e==="Escape",DA=e=>e==="Enter",BA=e=>e==="Tab",zA=e=>e===" ",cae=e=>e.indexOf("Arrow")===0,uae=e=>e==="Home"||e==="End",dae=e=>e.indexOf("Page")===0,vw=e=>e==="Delete"||e==="Backspace";function ny(e){return e.key.length===1&&e.ctrlKey===!1&&e.metaKey===!1}const fae=["Enter","Escape","Tab"],pae=["Enter","Tab"],hae=e=>DA(e.key)||vw(e.key)||ny(e),mae=e=>fae.indexOf(e)>-1,A$=e=>pae.indexOf(e)>-1,Pp=e=>uae(e)||cae(e)||dae(e)||zA(e),yw=e=>!!e.key,gae=e=>BA(e)||kS(e),vae=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"],yae=(e,t)=>{const n=typeof e=="object",r=n?e.value:e,o=n?e.value:e,i=n?e.label:e;return T.jsx(t,{value:o,children:i},r)};function bae(e){return!!e.key}function wae(e){var t,n,r;const o=Xe(),{id:i,value:s,api:a,field:c,row:d,colDef:p,hasFocus:h,error:m,onValueChange:v,initialOpen:b=o.editMode===Tr.Cell}=e,g=se(e,vae),S=Et(),C=u.useRef(),E=u.useRef(),[w,x]=u.useState(b),I=(n=(((t=o.componentsProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!1;let _;typeof p.valueOptions=="function"?_=p.valueOptions({id:i,row:d,field:c}):_=p.valueOptions,p.valueFormatter&&(_=_.map(L=>{if(typeof L=="object")return L;const H={field:c,api:a,value:L};return{value:L,label:String(p.valueFormatter(H))}}));const M=L=>lt(this,null,function*(){var H;x(!1);const j=L.target,A=vg(j.value,_);v&&(yield v(L,A));const F=yield S.current.setEditCellValue({id:i,field:c,value:A},L);if((H=o.experimentalFeatures)!=null&&H.newEditingApi||o.editMode===Tr.Row||F===!1)return;if((yield Promise.resolve(S.current.commitCellChange({id:i,field:c},L)))&&(S.current.setCellMode(i,c,"view"),L.key)){const G=S.current.getCellParams(i,c);S.current.publishEvent("cellNavigationKeyDown",G,L)}}),O=(L,H)=>{if(o.editMode===Tr.Row){x(!1);return}if(H==="backdropClick"||kS(L.key)){var j;(j=o.experimentalFeatures)!=null&&j.newEditingApi?S.current.stopCellEditMode({id:i,field:c,ignoreModifications:!0}):S.current.setCellMode(i,c,"view")}},R=L=>{bae(L)&&L.key==="Enter"||x(!0)};return fn(()=>{h&&E.current.focus()},[h]),T.jsx(o.components.BaseSelect,P({ref:C,inputRef:E,value:s,onChange:M,open:w,onOpen:R,MenuProps:{onClose:O},error:m,native:I,fullWidth:!0},g,(r=o.componentsProps)==null?void 0:r.baseSelect,{children:_.map(L=>yae(L,I?"option":pr))}))}const Cae=e=>T.jsx(wae,P({},e)),xae=["open","target","onClickAway","children","position","className","onExited"],Sae=e=>{const{classes:t}=e;return ke({root:["menu"]},Bt,t)},Eae=oe(Za,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${ee.menuList}`]:{outline:0}})),Pae={"bottom-start":"top left","bottom-end":"top right"},jA=e=>{var t;const{open:n,target:r,onClickAway:o,children:i,position:s,className:a,onExited:c}=e,d=se(e,xae),p=Et(),h=u.useRef(r),m=u.useRef(n),v=Xe(),b=Sae(v);u.useEffect(()=>{m.current&&h.current&&h.current.focus();const S=n?"menuOpen":"menuClose";p.current.publishEvent(S,{target:r}),m.current=n,h.current=r},[p,n,r]);const g=S=>C=>{S&&S(),c&&c(C)};return T.jsx(Eae,P({as:v.components.BasePopper,className:pe(a,b.root),ownerState:v,open:n,anchorEl:r,transition:!0,placement:s},d,(t=v.componentsProps)==null?void 0:t.basePopper,{children:({TransitionProps:S,placement:C})=>T.jsx(TO,{onClickAway:o,mouseEvent:"onMouseDown",children:T.jsx(sg,P({},S,{style:{transformOrigin:Pae[C]},onExited:g(S==null?void 0:S.onExited),children:T.jsx(ui,{children:i})}))})}))},kae=["colDef","id","api","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","getValue","tabIndex","position","focusElementRef"],_ae=e=>typeof e.getActions=="function",Iae=e=>{const{colDef:t,id:n,hasFocus:r,tabIndex:o,position:i="bottom-end",focusElementRef:s}=e,a=se(e,kae),[c,d]=u.useState(-1),[p,h]=u.useState(!1),m=Et(),v=u.useRef(null),b=u.useRef(null),g=u.useRef(!1),S=u.useRef({}),C=In(),E=In(),w=Xe();if(u.useLayoutEffect(()=>{r||Object.entries(S.current).forEach(([A,F])=>{F==null||F.stop({},()=>{delete S.current[A]})})},[r]),u.useEffect(()=>{if(c<0||!v.current||c>=v.current.children.length)return;v.current.children[c].focus({preventScroll:!0})},[c]),u.useEffect(()=>{r||(d(-1),g.current=!1)},[r]),u.useImperativeHandle(s,()=>({focus(){g.current||d(0)}}),[]),!_ae(t))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const x=t.getActions(m.current.getRowParams(n)),k=x.filter(A=>!A.props.showInMenu),I=x.filter(A=>A.props.showInMenu),_=k.length+(I.length?1:0);u.useEffect(()=>{c>=_&&d(_-1)},[c,_]);const M=()=>{h(!0),d(_-1),g.current=!0},O=()=>{h(!1)},R=A=>F=>{S.current[A]=F},L=(A,F)=>z=>{d(A),g.current=!0,F&&F(z)},H=A=>{if(_<=1)return;let F=c;A.key==="ArrowRight"?F+=1:A.key==="ArrowLeft"&&(F-=1),!(F<0||F>=_)&&F!==c&&(A.preventDefault(),A.stopPropagation(),d(F))},j=A=>{A.key==="Tab"&&A.preventDefault(),["Tab","Enter","Escape"].includes(A.key)&&O()};return T.jsxs("div",P({role:"menu",ref:v,tabIndex:-1,className:ee.actionsCell,onKeyDown:H},a,{children:[k.map((A,F)=>u.cloneElement(A,{key:F,touchRippleRef:R(F),onClick:L(F,A.props.onClick),tabIndex:c===F?o:-1})),I.length>0&&E&&T.jsx(ur,{ref:b,id:E,"aria-label":m.current.getLocaleText("actionsCellMore"),"aria-controls":C,"aria-expanded":p?"true":void 0,"aria-haspopup":"true",role:"menuitem",size:"small",onClick:M,touchRippleRef:R(E),tabIndex:c===k.length?o:-1,children:T.jsx(w.components.MoreActionsIcon,{fontSize:"small"})}),I.length>0&&T.jsx(jA,{onClickAway:O,onClick:O,open:p,target:b.current,position:i,children:T.jsx(jv,{id:C,className:ee.menuList,onKeyDown:j,"aria-labelledby":E,variant:"menu",autoFocusItem:!0,children:I.map((A,F)=>u.cloneElement(A,{key:F}))})})]}))},$ae=e=>T.jsx(Iae,P({},e)),Mae=["field","align","width","contentWidth"],Rae=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${ce(t)}`]};return ke(r,Bt,n)};function Tae(e){const{align:t,width:n,contentWidth:r}=e,o=se(e,Mae),s={classes:Xe().classes,align:t},a=Rae(s);return T.jsx("div",P({className:a.root,style:{width:n}},o,{children:T.jsx(lte,{width:`${r}%`})}))}const Oae=oe("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${ee.autoHeight}`]:t.autoHeight},{[`&.${ee.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${ee["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${ee["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${ee["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${ee.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`& .${ee.editBooleanCell}`]:t.editBooleanCell},{[`& .${ee["cell--editing"]}`]:t["cell--editing"]},{[`& .${ee["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${ee["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${ee["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${ee["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${ee.cell}`]:t.cell},{[`& .${ee.cellContent}`]:t.cellContent},{[`& .${ee.cellCheckbox}`]:t.cellCheckbox},{[`& .${ee.cellSkeleton}`]:t.cellSkeleton},{[`& .${ee.checkboxInput}`]:t.checkboxInput},{[`& .${ee["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${ee["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${ee["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${ee["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${ee["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${ee["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${ee["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${ee["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${ee.columnHeader}`]:t.columnHeader},{[`& .${ee.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${ee.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${ee.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${ee["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${ee["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${ee.columnSeparator}`]:t.columnSeparator},{[`& .${ee.filterIcon}`]:t.filterIcon},{[`& .${ee.iconSeparator}`]:t.iconSeparator},{[`& .${ee.menuIcon}`]:t.menuIcon},{[`& .${ee.menuIconButton}`]:t.menuIconButton},{[`& .${ee.menuOpen}`]:t.menuOpen},{[`& .${ee.menuList}`]:t.menuList},{[`& .${ee["row--editable"]}`]:t["row--editable"]},{[`& .${ee["row--editing"]}`]:t["row--editing"]},{[`& .${ee["row--dragging"]}`]:t["row--dragging"]},{[`& .${ee.row}`]:t.row},{[`& .${ee.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${ee.rowReorderCell}`]:t.rowReorderCell},{[`& .${ee["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${ee.sortIcon}`]:t.sortIcon},{[`& .${ee.withBorder}`]:t.withBorder},{[`& .${ee.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${ee.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${ee.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${ee["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=e.palette.mode==="light"?Us(at(e.palette.divider,1),.88):Vs(at(e.palette.divider,1),.68);return P({flex:1,boxSizing:"border-box",position:"relative",border:`1px solid ${t}`,borderRadius:e.shape.borderRadius,color:e.palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",flexDirection:"column",[`&.${ee.autoHeight}`]:{height:"auto",[`& .${ee["row--lastVisible"]} .${ee.cell}`]:{borderBottomColor:"transparent"}},[`& .${ee["virtualScrollerContent--overflowed"]} .${ee["row--lastVisible"]} .${ee.cell}`]:{borderBottomColor:"transparent"},[`& .${ee.columnHeader}, & .${ee.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${ee.columnHeader}:focus-within, & .${ee.cell}:focus-within`]:{outline:`solid ${at(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${ee.columnHeader}:focus, & .${ee.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${ee.columnHeaderCheckbox}, & .${ee.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${ee.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${ee["columnHeader--sorted"]} .${ee.iconButtonContainer}, & .${ee["columnHeader--filtered"]} .${ee.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${ee.columnHeader}:not(.${ee["columnHeader--sorted"]}) .${ee.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${ee.columnHeader}:not(.${ee["columnHeader--sorted"]}):hover .${ee.sortIcon}`]:{opacity:.5},[`& .${ee.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${ee.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${ee["columnHeader--filledGroup"]} .${ee.columnHeaderTitleContainer}`]:{borderBottom:`solid ${t} 1px`,boxSizing:"border-box"},[`& .${ee["columnHeader--filledGroup"]}.${ee["columnHeader--showColumnBorder"]} .${ee.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${ee["columnHeader--filledGroup"]}.${ee["columnHeader--showColumnBorder"]}`]:{borderBottom:`solid ${t} 1px`,boxSizing:"border-box"},[`& .${ee.sortIcon}, & .${ee.filterIcon}`]:{fontSize:"inherit"},[`& .${ee["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${ee["columnHeader--alignCenter"]} .${ee.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${ee["columnHeader--alignRight"]} .${ee.columnHeaderDraggableContainer}, & .${ee["columnHeader--alignRight"]} .${ee.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${ee["columnHeader--alignCenter"]} .${ee.menuIcon}, & .${ee["columnHeader--alignRight"]} .${ee.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${ee["columnHeader--alignRight"]} .${ee.menuIcon}, & .${ee["columnHeader--alignRight"]} .${ee.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${ee["columnHeader--moving"]}`]:{backgroundColor:e.palette.action.hover},[`& .${ee.columnSeparator}`]:{position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},[`& .${ee["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${ee["columnSeparator--sideRight"]}`]:{right:-12},[`& .${ee["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:e.palette.text.primary,"@media (hover: none)":{color:t}},[`&.${ee["columnSeparator--resizing"]}`]:{color:e.palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${ee.iconSeparator}`]:{color:"inherit"},[`& .${ee.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`& .${ee.columnHeader}:hover`]:{[`& .${ee.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${ee.menuIcon}`]:{width:"auto",visibility:"visible"}},[`.${ee.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${ee.row}`]:{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:at(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:at(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:at(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${ee.cell}`]:{display:"flex",alignItems:"center",borderBottom:`1px solid ${t}`},[`& .${ee.row}:not(.${ee["row--dynamicHeight"]}) > .${ee.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${ee.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${ee.cell}.${ee["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:e.palette.background.paper,"&:focus-within":{outline:`solid ${e.palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${ee["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${ee["row--editing"]} .${ee.cell}`]:{boxShadow:e.shadows[0],backgroundColor:e.palette.background.paper},[`& .${ee.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${ee.booleanCell}[data-value="true"]`]:{color:e.palette.text.secondary},[`& .${ee.booleanCell}[data-value="false"]`]:{color:e.palette.text.disabled},[`& .${ee.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${ee.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:e.palette.action.disabledOpacity},[`& .${ee["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${ee.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`& .${ee.withBorder}`]:{borderRight:`1px solid ${t}`},[`& .${ee["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${ee["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${ee["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${ee.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${ee.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${ee["columnHeader--dragging"]}, & .${ee["row--dragging"]}`]:{background:e.palette.background.paper,padding:"0 12px",borderRadius:e.shape.borderRadius,opacity:e.palette.action.disabledOpacity},[`& .${ee["row--dragging"]}`]:{background:e.palette.background.paper,padding:"0 12px",borderRadius:e.shape.borderRadius,opacity:e.palette.action.disabledOpacity,[`& .${ee.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${ee.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ee.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${ee.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ee.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),Lae=["children","className"],Aae=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${ce(n)}`]};return ke(o,Bt,r)},Fae=u.forwardRef(function(t,n){const r=Xe(),{children:o,className:i}=t,s=se(t,Lae),a=Et(),c=Ye(a,Ar),d=Ye(a,ey),p=Ye(a,hle),h=Ye(a,ES),m=u.useRef(null),v=Ut(m,n),b=Ye(a,ile),g=P({},r,{density:p}),S=Aae(g);a.current.rootElementRef=m;const[C,E]=u.useState(!1);return fn(()=>{E(!0)},[]),fn(()=>{C&&a.current.unstable_updateGridDimensionsRef()},[a,C]),C?T.jsx(Oae,P({ref:v,className:pe(i,S.root),ownerState:g,role:"grid","aria-colcount":c.length,"aria-rowcount":h+1+b+d,"aria-multiselectable":!r.disableMultipleSelection,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"]},s,{children:o})):null}),Nae=["className"],Dae=e=>{const{classes:t}=e;return ke({root:["footerContainer"]},Bt,t)},Bae=oe("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:`1px solid ${e.palette.mode==="light"?Us(at(e.palette.divider,1),.88):Vs(at(e.palette.divider,1),.68)}`})),zae=u.forwardRef(function(t,n){const{className:r}=t,o=se(t,Nae),i=Xe(),s=Dae(i);return T.jsx(Bae,P({ref:n,className:pe(s.root,r),ownerState:i},o))}),jae=["className"],Hae=e=>{const{classes:t}=e;return ke({root:["overlay"]},Bt,t)},Vae=oe("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})(({theme:e})=>({position:"absolute",top:0,zIndex:4,width:"100%",height:"100%",pointerEvents:"none",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:at(e.palette.background.default,e.palette.action.disabledOpacity)})),ry=u.forwardRef(function(t,n){const{className:r}=t,o=se(t,jae),i=Xe(),s=Hae(i);return T.jsx(Vae,P({ref:n,className:pe(s.root,r),ownerState:i},o))}),Uae=["className"],Wae=e=>{const{classes:t}=e;return ke({root:["iconButtonContainer"]},Bt,t)},Gae=oe("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),HA=u.forwardRef(function(t,n){const{className:r}=t,o=se(t,Uae),i=Xe(),s=Wae(i);return T.jsx(Gae,P({ref:n,className:pe(s.root,r),ownerState:i},o))}),Kae=e=>{const{classes:t}=e;return ke({icon:["sortIcon"]},Bt,t)};function qae(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,P({fontSize:"small",className:n},i)):null}function Yae(e){const{direction:t,index:n,sortingOrder:r}=e,o=Et(),i=Xe(),s=P({},e,{classes:i.classes}),a=Kae(s),c=qae(i.components,t,a.icon,r);if(!c)return null;const d=T.jsx(ur,{tabIndex:-1,"aria-label":o.current.getLocaleText("columnHeaderSortIconLabel"),title:o.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",children:c});return T.jsxs(HA,{children:[n!=null&&T.jsx(ZO,{badgeContent:n,color:"default",children:d}),n==null&&d]})}const Xae=u.memo(Yae),Qae=e=>{const{classes:t,open:n}=e;return ke({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},Bt,t)},Jae=u.memo(e=>{const{column:t,open:n,columnMenuId:r,columnMenuButtonId:o,iconButtonRef:i}=e,s=Et(),a=Xe(),c=P({},e,{classes:a.classes}),d=Qae(c),p=u.useCallback(h=>{h.preventDefault(),h.stopPropagation(),s.current.toggleColumnMenu(t.field)},[s,t.field]);return T.jsx("div",{className:d.root,children:T.jsx(ur,{ref:i,tabIndex:-1,className:d.button,"aria-label":s.current.getLocaleText("columnMenuLabel"),title:s.current.getLocaleText("columnMenuLabel"),size:"small",onClick:p,"aria-expanded":n?"true":void 0,"aria-haspopup":"true","aria-controls":r,id:o,children:T.jsx(a.components.ColumnMenuIcon,{fontSize:"small"})})})});function Zae({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:s,onExited:a}){const c=Et(),d=c.current.getColumn(o),p=u.useCallback(h=>{h.stopPropagation(),c.current.hideColumnMenu()},[c]);return s?T.jsx(jA,{placement:`bottom-${d.align==="right"?"start":"end"}`,open:i,target:s,onClickAway:p,onExited:a,children:T.jsx(n,P({currentColumn:d,hideMenu:p,open:i,id:e,labelledby:t},r))}):null}function ece(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function tce(e,t){return e.closest(`.${t}`)}function _S(e){return e.replace(/["\\]/g,"\\$&")}function nce(e,t){return e.querySelector(`[role="columnheader"][data-field="${_S(t)}"]`)}function VA(e){return`.${ee.row}[data-id="${_S(String(e))}"]`}function rce(e,t){return e.querySelector(VA(t))}function oce(e,{id:t,field:n}){const r=VA(t),o=`.${ee.cell}[data-field="${_S(n)}"]`,i=`${r} ${o}`;return e.querySelector(i)}const ice=["className"],sce=e=>{const{classes:t}=e;return ke({root:["columnHeaderTitle"]},Bt,t)},lce=oe("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})(({theme:e})=>({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:e.typography.fontWeightMedium})),ace=u.forwardRef(function(t,n){const{className:r}=t,o=se(t,ice),i=Xe(),s=sce(i);return T.jsx(lce,P({ref:n,className:pe(s.root,r),ownerState:i},o))});function cce(e){var t;const{label:n,description:r,columnWidth:o}=e,i=Xe(),s=u.useRef(null),[a,c]=u.useState("");return u.useEffect(()=>{if(!r&&s&&s.current){const d=ece(s.current);c(d?n:"")}},[s,o,r,n]),T.jsx(i.components.BaseTooltip,P({title:r||a},(t=i.componentsProps)==null?void 0:t.baseTooltip,{children:T.jsx(ace,{ref:s,children:n})}))}const uce=["resizable","resizing","height","side"];var bw;(function(e){e.Left="left",e.Right="right"})(bw||(bw={}));const dce=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${ce(o)}`],icon:["iconSeparator"]};return ke(i,Bt,r)};function fce(e){const{height:t,side:n=bw.Right}=e,r=se(e,uce),o=Xe(),i=P({},e,{side:n,classes:o.classes}),s=dce(i),a=u.useCallback(c=>{c.preventDefault(),c.stopPropagation()},[]);return T.jsx("div",P({className:s.root,style:{minHeight:t,opacity:o.showColumnRightBorder?0:1}},r,{onClick:a,children:T.jsx(o.components.ColumnResizeIcon,{className:s.icon})}))}const pce=u.memo(fce),hce=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","disableHeaderSeparator"],UA=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:v,description:b,width:g,columnMenuIconButton:S=null,columnMenu:C=null,columnTitleIconButtons:E=null,headerClassName:w,label:x,resizable:k,draggableContainerProps:I,columnHeaderSeparatorProps:_,disableHeaderSeparator:M}=t,O=se(t,hce),R=Et(),L=Xe(),H=u.useRef(null),[j,A]=u.useState(o),F=Ut(H,n);let z="none";return c!=null&&(z=c==="asc"?"ascending":"descending"),u.useEffect(()=>{j||A(o)},[j,o]),u.useLayoutEffect(()=>{const G=R.current.state.columnMenu;if(d&&!G.open){const B=H.current.querySelector('[tabindex="0"]')||H.current;B==null||B.focus(),R.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[R,d]),T.jsxs("div",P({ref:F,className:pe(r.root,w),style:{height:s,width:g,minWidth:g,maxWidth:g},role:"columnheader",tabIndex:p,"aria-colindex":i+1,"aria-sort":z,"aria-label":v==null?x:void 0},O,{children:[T.jsxs("div",P({className:r.draggableContainer,draggable:m},I,{children:[T.jsxs("div",{className:r.titleContainer,children:[T.jsx("div",{className:r.titleContainerContent,children:v!==void 0?v:T.jsx(cce,{label:x,description:b,columnWidth:g})}),E]}),S]})),!M&&T.jsx(pce,P({resizable:!L.disableColumnResize&&!!k,resizing:a,height:s,side:h},_)),C]}))}),mce=e=>{const{column: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",i&&"withBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return ke(p,Bt,n)};function gce(e){var t,n,r,o,i;const{column:s,columnMenuOpen:a,colIndex:c,headerHeight:d,isResizing:p,isLastColumn:h,sortDirection:m,sortIndex:v,filterItemsCounter:b,hasFocus:g,tabIndex:S,extendRowFullWidth:C,disableReorder:E,separatorSide:w}=e,x=Et(),k=Xe(),I=u.useRef(null),_=In(),M=In(),O=u.useRef(null),[R,L]=u.useState(a),{hasScrollX:H,hasScrollY:j}=(t=x.current.getRootDimensions())!=null?t:{hasScrollX:!1,hasScrollY:!1},A=u.useMemo(()=>!k.disableColumnReorder&&!E&&!s.disableReorder,[k.disableColumnReorder,E,s.disableReorder]);let F;s.renderHeader&&(F=s.renderHeader(x.current.getColumnHeaderParams(s.field)));const G=h?!(h&&H&&!j)&&!C:k.showColumnRightBorder,N=P({},e,{classes:k.classes,showRightBorder:G}),B=mce(N),W=u.useCallback(ge=>$e=>{$e.currentTarget.contains($e.target)&&x.current.publishEvent(ge,x.current.getColumnHeaderParams(s.field),$e)},[x,s.field]),q=u.useMemo(()=>({onClick:W("columnHeaderClick"),onDoubleClick:W("columnHeaderDoubleClick"),onMouseOver:W("columnHeaderOver"),onMouseOut:W("columnHeaderOut"),onMouseEnter:W("columnHeaderEnter"),onMouseLeave:W("columnHeaderLeave"),onKeyDown:W("columnHeaderKeyDown"),onFocus:W("columnHeaderFocus"),onBlur:W("columnHeaderBlur")}),[W]),X=u.useMemo(()=>A?{onDragStart:W("columnHeaderDragStart"),onDragEnter:W("columnHeaderDragEnter"),onDragOver:W("columnHeaderDragOver"),onDragEnd:W("columnHeaderDragEnd")}:{},[A,W]),ie=u.useMemo(()=>({onMouseDown:W("columnSeparatorMouseDown")}),[W]);u.useEffect(()=>{R||L(a)},[R,a]);const J=u.useCallback(()=>{L(!1)},[]),fe=!k.disableColumnMenu&&!s.disableColumnMenu&&T.jsx(Jae,{column:s,columnMenuId:_,columnMenuButtonId:M,open:R,iconButtonRef:O}),Q=T.jsx(Zae,{columnMenuId:_,columnMenuButtonId:M,field:s.field,open:a,target:O.current,ContentComponent:k.components.ColumnMenu,contentComponentProps:(n=k.componentsProps)==null?void 0:n.columnMenu,onExited:J}),le=(r=s.sortingOrder)!=null?r:k.sortingOrder,ne=T.jsxs(u.Fragment,{children:[!k.disableColumnFilter&&T.jsx(k.components.ColumnHeaderFilterIconButton,P({field:s.field,counter:b},(o=k.componentsProps)==null?void 0:o.columnHeaderFilterIconButton)),s.sortable&&!s.hideSortIcons&&T.jsx(Xae,{direction:m,index:v,sortingOrder:le})]});u.useLayoutEffect(()=>{const ge=x.current.state.columnMenu;if(g&&!ge.open){const Be=I.current.querySelector('[tabindex="0"]')||I.current;Be==null||Be.focus(),x.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[x,g]);const he=typeof s.headerClassName=="function"?s.headerClassName({field:s.field,colDef:s}):s.headerClassName,be=(i=s.headerName)!=null?i:s.field;return T.jsx(UA,P({ref:I,classes:B,columnMenuOpen:a,colIndex:c,height:d,isResizing:p,sortDirection:m,hasFocus:g,tabIndex:S,separatorSide:w,isDraggable:A,headerComponent:F,description:s.description,elementId:s.field,width:s.computedWidth,columnMenuIconButton:fe,columnTitleIconButtons:ne,headerClassName:he,label:be,resizable:!k.disableColumnResize&&!!s.resizable,"data-field":s.field,columnMenu:Q,draggableContainerProps:X,columnHeaderSeparatorProps:ie},q))}const yg=e=>e.preferencePanel;var Kl;(function(e){e.filters="filters",e.columns="columns"})(Kl||(Kl={}));const vce=e=>{const{classes:t}=e;return ke({icon:["filterIcon"]},Bt,t)};function yce(e){var t;const{counter:n,field:r,onClick:o}=e,i=Et(),s=Xe(),a=P({},e,{classes:s.classes}),c=vce(a),d=u.useCallback(h=>{h.preventDefault(),h.stopPropagation();const{open:m,openedPanelValue:v}=yg(i.current.state);m&&v===Kl.filters?i.current.hideFilterPanel():i.current.showFilterPanel(),o&&o(i.current.getColumnHeaderParams(r),h)},[i,r,o]);if(!n)return null;const p=T.jsx(ur,{onClick:d,color:"default","aria-label":i.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,children:T.jsx(s.components.ColumnFilteredIcon,{className:c.icon,fontSize:"small"})});return T.jsx(s.components.BaseTooltip,P({title:i.current.getLocaleText("columnHeaderFiltersTooltipActive")(n),enterDelay:1e3},(t=s.componentsProps)==null?void 0:t.baseTooltip,{children:T.jsxs(HA,{children:[n>1&&T.jsx(ZO,{badgeContent:n,color:"default",children:p}),n===1&&p]})}))}const bce=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","getValue","api"],wce=e=>{const{classes:t}=e;return ke({root:["checkboxInput"]},Bt,t)},Cce=u.forwardRef(function(t,n){var r;const{field:o,id:i,value:s,rowNode:a,hasFocus:c,tabIndex:d}=t,p=se(t,bce),h=Et(),m=Xe(),v={classes:m.classes},b=wce(v),g=u.useRef(null),S=u.useRef(),C=Ut(g,n),E=h.current.getCellElement(i,o),w=_=>{const M={value:_.target.checked,id:i};h.current.publishEvent("rowSelectionCheckboxChange",M,_)};u.useLayoutEffect(()=>{d===0&&E&&(E.tabIndex=-1)},[E,d]),u.useEffect(()=>{if(c){var _;const M=(_=g.current)==null?void 0:_.querySelector("input");M==null||M.focus({preventScroll:!0})}else S.current&&S.current.stop({})},[c]);const x=u.useCallback(_=>{zA(_.key)&&_.stopPropagation(),Pp(_.key)&&!_.shiftKey&&h.current.publishEvent("cellNavigationKeyDown",t,_)},[h,t]);if(a.position==="footer")return null;const k=h.current.isRowSelectable(i),I=h.current.getLocaleText(s?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return a.isPinned?null:T.jsx(m.components.BaseCheckbox,P({ref:C,tabIndex:d,checked:s,onChange:w,className:b.root,inputProps:{"aria-label":I},onKeyDown:x,disabled:!k,touchRippleRef:S},(r=m.componentsProps)==null?void 0:r.baseCheckbox,p))}),xce=Cce,Ko=e=>e.selection,Sce=et(Ko,e=>e.length),Ece=et(Ko,cu,(e,t)=>new Map(e.map(n=>[n,t[n]]))),bg=et(Ko,e=>e.reduce((t,n)=>(t[n]=n,t),{})),qu=e=>e.pagination,Kd=et(qu,e=>e.page),vf=et(qu,e=>e.pageSize);et(qu,e=>e.pageCount);const IS=et(qu,kl,bS,Qs,kA,(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(v=>v.id===c.id);let h=p,m=0;for(;h<r.length&&m<=d;){const v=r[h],b=t[v.id].depth;(m<d||b>0)&&(h+=1),b===0&&(m+=1)}return{firstRowIndex:p,lastRowIndex:h-1}}),Pce=et(Qs,IS,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),WA=et(gf,IS,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),kce=["field","colDef"],_ce=e=>{const{classes:t}=e;return ke({root:["checkboxInput"]},Bt,t)},Ice=u.forwardRef(function(t,n){var r;const o=se(t,kce),[,i]=u.useState(!1),s=Et(),a=Xe(),c={classes:a.classes},d=_ce(c),p=Ye(s,OA),h=Ye(s,Ko),m=Ye(s,gf),v=Ye(s,WA),b=u.useMemo(()=>typeof a.isRowSelectable!="function"?h:h.filter(M=>s.current.getRow(M)?a.isRowSelectable(s.current.getRowParams(M)):!1),[s,a.isRowSelectable,h]),g=u.useMemo(()=>(!a.pagination||!a.checkboxSelectionVisibleOnly?m:v).reduce((O,R)=>(O[R]=!0,O),{}),[a.pagination,a.checkboxSelectionVisibleOnly,v,m]),S=u.useMemo(()=>b.filter(M=>g[M]).length,[b,g]),C=S>0&&S<Object.keys(g).length,E=S>0,w=M=>{const O={value:M.target.checked};s.current.publishEvent("headerSelectionCheckboxChange",O)},x=p!==null&&p.field===t.field?0:-1;u.useLayoutEffect(()=>{const M=s.current.getColumnHeaderElement(t.field);x===0&&M&&(M.tabIndex=-1)},[x,s,t.field]);const k=u.useCallback(M=>{M.key===" "&&s.current.publishEvent("headerSelectionCheckboxChange",{value:!E}),Pp(M.key)&&!M.shiftKey&&s.current.publishEvent("columnHeaderNavigationKeyDown",t,M)},[s,t,E]),I=u.useCallback(()=>{i(M=>!M)},[]);u.useEffect(()=>s.current.subscribeEvent("selectionChange",I),[s,I]);const _=s.current.getLocaleText(E?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return T.jsx(a.components.BaseCheckbox,P({ref:n,indeterminate:C,checked:E,onChange:w,className:d.root,inputProps:{"aria-label":_},tabIndex:x,onKeyDown:k},(r=a.componentsProps)==null?void 0:r.baseCheckbox,o))}),$ce=e=>{const{onClick:t}=e,n=Et(),r=Xe(),o=u.useCallback(i=>{t(i),n.current.showPreferences(Kl.columns)},[n,t]);return r.disableColumnSelector?null:T.jsx(pr,{onClick:o,children:n.current.getLocaleText("columnMenuShowColumns")})},Mce=e=>{const{column:t,onClick:n}=e,r=Et(),o=Xe(),i=u.useCallback(s=>{n(s),r.current.showFilterPanel(t==null?void 0:t.field)},[r,t==null?void 0:t.field,n]);return o.disableColumnFilter||!(t!=null&&t.filterable)?null:T.jsx(pr,{onClick:i,children:r.current.getLocaleText("columnMenuFilter")})},Rce=["hideMenu","currentColumn","open","id","labelledby","className","children"],Tce=u.forwardRef(function(t,n){const{hideMenu:r,open:o,id:i,labelledby:s,className:a,children:c}=t,d=se(t,Rce),p=u.useCallback(h=>{BA(h.key)&&h.preventDefault(),gae(h.key)&&r(h)},[r]);return T.jsx(jv,P({id:i,ref:n,className:pe(ee.menuList,a),"aria-labelledby":s,onKeyDown:p,autoFocus:o},d,{children:c}))}),Oce=Oi(["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"),GA=(e,t)=>t&&e.length>1?(Oce(),[e[0]]):e,F$=(e,t)=>n=>P({},n,{sorting:P({},n.sorting,{sortModel:GA(e,t)})}),Lce=e=>e==="desc",Ace=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=Lce(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}},Fce=(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),Nce=(e,t)=>{const n=e.map(r=>Ace(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)=>Fce(n,o,i)).map(o=>o.node.id)},N$=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},$S=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,Dce=new Intl.Collator,Bce=(e,t)=>{const n=$S(e,t);return n!==null?n:typeof e=="string"?Dce.compare(e.toString(),t.toString()):e-t},KA=(e,t)=>{const n=$S(e,t);return n!==null?n:Number(e)-Number(t)},qA=(e,t)=>{const n=$S(e,t);return n!==null?n:e>t?1:e<t?-1:0};function zce(e){return typeof e=="number"}function YA(e){return typeof e=="function"}function jce(){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 Cm(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Lu=(e,t,n)=>Math.max(t,Math.min(n,e));function Ns(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(!Ns(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(!Ns(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(!Ns(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Hce(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 Vce(e,t,n){const r=Hce(e);return()=>t+(n-t)*r()}function XA(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const Uce=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function QA(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,color:s,error:a,helperText:c,size:d,variant:p}=e,h=se(e,Uce),m={color:s,error:a,helperText:c,size:d,variant:p},[v,b]=u.useState(t.value||[]),g=In(),S=Xe();u.useEffect(()=>{var E;const w=(E=t.value)!=null?E:[];b(w.map(String))},[t.value]);const C=u.useCallback((E,w)=>{b(w.map(String)),n(P({},t,{value:[...w]}))},[n,t]);return T.jsx(px,P({multiple:!0,freeSolo:!0,options:[],filterOptions:(E,w)=>{const{inputValue:x}=w;return x==null||x===""?[]:[x]},id:g,value:v,onChange:C,renderTags:(E,w)=>E.map((x,k)=>T.jsx(Rv,P({variant:"outlined",size:"small",label:x},w({index:k})))),renderInput:E=>{var w;return T.jsx(S.components.BaseTextField,P({},E,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:P({},E.InputLabelProps,{shrink:!0}),inputRef:i,type:r||"text"},m,(w=S.componentsProps)==null?void 0:w.baseTextField))}},h))}const Wce=e=>{if(!e)return null;const t=new RegExp(Cm(e),"i");return({value:n})=>n!=null?t.test(n.toString()):!1},Gce=(e=!1)=>[{value:"contains",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(Cm(n),"i");return({value:o})=>o!=null?r.test(o.toString()):!1},InputComponent:Ki},{value:"equals",getApplyFilterFn: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({value:o})=>o!=null?r.compare(n,o.toString())===0:!1},InputComponent:Ki},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${Cm(n)}.*$`,"i");return({value:o})=>o!=null?r.test(o.toString()):!1},InputComponent:Ki},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${Cm(n)}$`,"i");return({value:o})=>o!=null?r.test(o.toString()):!1},InputComponent:Ki},{value:"isEmpty",getApplyFilterFn:()=>({value:t})=>t===""||t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>({value:t})=>t!==""&&t!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn: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({value:o})=>o!=null?n.some(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:QA}],ql={width:100,minWidth:50,maxWidth:1/0,hide:!1,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:Bce,type:"string",align:"left",filterOperators:Gce(),renderEditCell:aae,getApplyQuickFilterFn:Wce},MS="actions",Kce=P({},ql,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:$ae,getApplyQuickFilterFn:void 0}),qce=["item","applyValue","apiRef","focusElementRef"];function Yce(e){var t,n,r,o;const{item:i,applyValue:s,apiRef:a,focusElementRef:c}=e,d=se(e,qce),[p,h]=u.useState(i.value||""),m=Xe(),b=(n=(((t=m.componentsProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!0,g=b?"option":pr,S=u.useCallback(C=>{const E=C.target.value;h(E),s(P({},i,{value:E}))},[s,i]);return u.useEffect(()=>{h(i.value||"")},[i.value]),T.jsxs(m.components.BaseTextField,P({label:a.current.getLocaleText("filterPanelInputLabel"),value:p,onChange:S,select:!0,variant:"standard",SelectProps:P({native:b,displayEmpty:!0},(r=m.componentsProps)==null?void 0:r.baseSelect),InputLabelProps:{shrink:!0},inputRef:c},d,(o=m.componentsProps)==null?void 0:o.baseTextField,{children:[T.jsx(g,{value:"",children:a.current.getLocaleText("filterValueAny")}),T.jsx(g,{value:"true",children:a.current.getLocaleText("filterValueTrue")}),T.jsx(g,{value:"false",children:a.current.getLocaleText("filterValueFalse")})]}))}const Xce=()=>[{value:"is",getApplyFilterFn:e=>{if(!e.value)return null;const t=e.value==="true";return({value:n})=>!!n===t},InputComponent:Yce}];function Qce({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const JA=P({},ql,{type:"boolean",align:"center",headerAlign:"center",renderCell:Tle,renderEditCell:Fle,sortComparator:KA,valueFormatter:Qce,filterOperators:Xce(),getApplyQuickFilterFn:void 0,aggregable:!1}),fl="__check__",kp=P({},JA,{field:fl,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,valueGetter:e=>bg(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>T.jsx(Ice,P({},e)),renderCell:e=>T.jsx(xce,P({},e))}),Jce=["item","applyValue","type","apiRef","focusElementRef","InputProps"],Zce=500;function Mc(e){var t,n;const{item:r,applyValue:o,type:i,apiRef:s,focusElementRef:a,InputProps:c}=e,d=se(e,Jce),p=u.useRef(),[h,m]=u.useState((t=r.value)!=null?t:""),[v,b]=u.useState(!1),g=In(),S=Xe(),C=u.useCallback(E=>{const w=E.target.value;clearTimeout(p.current),m(String(w)),b(!0),p.current=setTimeout(()=>{o(P({},r,{value:w})),b(!1)},Zce)},[o,r]);return u.useEffect(()=>()=>{clearTimeout(p.current)},[]),u.useEffect(()=>{var E;const w=(E=r.value)!=null?E:"";m(String(w))},[r.value]),T.jsx(S.components.BaseTextField,P({id:g,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:h,onChange:C,variant:"standard",type:i||"text",InputLabelProps:{shrink:!0},inputRef:a,InputProps:P({},v?{endAdornment:T.jsx(PS,{})}:{},c,{inputProps:P({max:i==="datetime-local"?"9999-12-31T23:59":"9999-12-31"},c==null?void 0:c.inputProps)})},d,(n=S.componentsProps)==null?void 0:n.baseTextField))}const eue=/(\d+)-(\d+)-(\d+)/,tue=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function Rc(e,t,n,r){if(!e.value)return null;const[o,i,s,a,c]=e.value.match(n?tue:eue).slice(1).map(Number),d=new Date(o,i-1,s,a||0,c||0).getTime();return({value:p})=>{if(!p)return!1;const h=p instanceof Date?p:new Date(p.toString());if(r)return t(h.getTime(),d);const v=(p instanceof Date?new Date(h):h).setHours(n?h.getHours():0,n?h.getMinutes():0,0,0);return t(v,d)}}const ZA=e=>[{value:"is",getApplyFilterFn:t=>Rc(t,(n,r)=>n===r,e),InputComponent:Mc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>Rc(t,(n,r)=>n!==r,e),InputComponent:Mc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>Rc(t,(n,r)=>n>r,e),InputComponent:Mc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>Rc(t,(n,r)=>n>=r,e),InputComponent:Mc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>Rc(t,(n,r)=>n<r,e,!e),InputComponent:Mc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>Rc(t,(n,r)=>n<=r,e),InputComponent:Mc,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>({value:t})=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>({value:t})=>t!=null,requiresFilterValue:!1}];function nue({value:e}){return e instanceof Date?e.toLocaleDateString():e!=null?e:""}function rue({value:e}){return e instanceof Date?e.toLocaleString():e!=null?e:""}const oue=P({},ql,{type:"date",sortComparator:qA,valueFormatter:nue,filterOperators:ZA(),renderEditCell:LA,getApplyQuickFilterFn:void 0}),iue=P({},ql,{type:"dateTime",sortComparator:qA,valueFormatter:rue,filterOperators:ZA(!0),renderEditCell:LA,getApplyQuickFilterFn:void 0}),gl=e=>e==null?null:Number(e),sue=e=>e==null||Number.isNaN(e)||e===""?null:({value:t})=>gl(t)===gl(e),lue=()=>[{label:"=",value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>gl(t)===e.value,InputComponent:Ki,InputComponentProps:{type:"number"}},{label:"!=",value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>gl(t)!==e.value,InputComponent:Ki,InputComponentProps:{type:"number"}},{label:">",value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:gl(t)>e.value,InputComponent:Ki,InputComponentProps:{type:"number"}},{label:">=",value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:gl(t)>=e.value,InputComponent:Ki,InputComponentProps:{type:"number"}},{label:"<",value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:gl(t)<e.value,InputComponent:Ki,InputComponentProps:{type:"number"}},{label:"<=",value:"<=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:({value:t})=>t==null?!1:gl(t)<=e.value,InputComponent:Ki,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>({value:e})=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>({value:e})=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>!Array.isArray(e.value)||e.value.length===0?null:({value:t})=>t!=null&&e.value.includes(Number(t)),InputComponent:QA,InputComponentProps:{type:"number"}}],aue=P({},ql,{type:"number",align:"right",headerAlign:"right",sortComparator:KA,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>zce(e)?e.toLocaleString():e||"",filterOperators:lue(),getApplyQuickFilterFn:sue}),cue=["item","applyValue","type","apiRef","focusElementRef"],uue=({valueOptions:e,valueFormatter:t,field:n},r,o)=>(typeof e=="function"?["",...e({field:n})]:["",...e||[]]).map(s=>{const a=typeof s=="object",c=a?s.value:s,d=a?s.value:s,p=t&&s!==""?t({value:s,field:n,api:r}):s,h=a?s.label:p;return T.jsx(o,{value:d,children:h},c)});function D$(e){var t,n,r,o,i;const{item:s,applyValue:a,type:c,apiRef:d,focusElementRef:p}=e,h=se(e,cue),[m,v]=u.useState((t=s.value)!=null?t:""),b=In(),g=Xe(),C=(r=(((n=g.componentsProps)==null?void 0:n.baseSelect)||{}).native)!=null?r:!0,E=s.columnField?d.current.getColumn(s.columnField):null,w=u.useMemo(()=>{if(E!==null)return typeof E.valueOptions=="function"?E.valueOptions({field:E.field}):E.valueOptions},[E]),x=u.useCallback(k=>{let I=k.target.value;I=vg(I,w),v(String(I)),a(P({},s,{value:I}))},[a,s,w]);return u.useEffect(()=>{var k;let I;if(w!==void 0){if(I=vg(s.value,w),I!==s.value){a(P({},s,{value:I}));return}}else I=s.value;I=(k=I)!=null?k:"",v(String(I))},[s,w,a]),T.jsx(g.components.BaseTextField,P({id:b,label:d.current.getLocaleText("filterPanelInputLabel"),placeholder:d.current.getLocaleText("filterPanelInputPlaceholder"),value:m,onChange:x,variant:"standard",type:c||"text",InputLabelProps:{shrink:!0},inputRef:p,select:!0,SelectProps:P({native:C},(o=g.componentsProps)==null?void 0:o.baseSelect)},h,(i=g.componentsProps)==null?void 0:i.baseTextField,{children:uue(d.current.getColumn(s.columnField),d.current,C?"option":pr)}))}const due=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],fue=(e,t)=>_l(e)===_l(t),pue=UO();function hue(e){const{item:t,applyValue:n,apiRef:r,focusElementRef:o,color:i,error:s,helperText:a,size:c,variant:d="standard"}=e,p=se(e,due),h={color:i,error:s,helperText:a,size:c,variant:d},m=In(),v=Xe(),b=t.columnField?r.current.getColumn(t.columnField):null,g=u.useMemo(()=>b!=null&&b.valueOptions?typeof b.valueOptions=="function"?b.valueOptions({field:b.field}):b.valueOptions:[],[b]),S=u.useMemo(()=>g==null?void 0:g.map(_l),[g]),{valueFormatter:C,field:E}=r.current.getColumn(t.columnField),w=I=>typeof I=="object"?I.label:C&&I!==""?C({value:I,field:E,api:r.current}):I,x=u.useMemo(()=>Array.isArray(t.value)?g!==void 0?t.value.map(_=>{const M=_l(_);return(S==null?void 0:S.findIndex(R=>R===M))||0}).filter(_=>_>=0).map(_=>g[_]):t.value:[],[t.value,g,S]);u.useEffect(()=>{(!Array.isArray(t.value)||x.length!==t.value.length)&&n(P({},t,{value:x.map(_l)}))},[t,x,n]);const k=u.useCallback((I,_)=>{n(P({},t,{value:[..._.map(_l)]}))},[n,t]);return T.jsx(px,P({multiple:!0,options:g,isOptionEqualToValue:fue,filterOptions:pue,id:m,value:x,onChange:k,renderTags:(I,_)=>I.map((M,O)=>T.jsx(Rv,P({variant:"outlined",size:"small",label:w(M)},_({index:O})))),renderInput:I=>{var _;return T.jsx(v.components.BaseTextField,P({},I,{label:r.current.getLocaleText("filterPanelInputLabel"),placeholder:r.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:P({},I.InputLabelProps,{shrink:!0}),inputRef:o,type:"singleSelect"},h,(_=v.componentsProps)==null?void 0:_.baseTextField))}},p))}const vl=e=>e==null||typeof e!="object"?e:e.value,mue=(e,t,n)=>{if(!e)return null;const{valueOptions:r,valueFormatter:o,field:i}=t,s=[vl(e).toString()],a=typeof r=="function"?r({field:i}):r||[];return a&&a.forEach(c=>{let d,p;typeof c=="object"?(d=c.value,p=c.label):(d=c,o?p=o({value:c,field:i,api:n.current}):p=c),p.slice(0,e.length).toLowerCase()===e.toLowerCase()&&(s.includes(d)||s.push(d.toString()))}),({value:c})=>c!=null?s.includes(vl(c).toString()):!1},gue=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:({value:t})=>vl(t)===vl(e.value),InputComponent:D$},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:({value:t})=>vl(t)!==vl(e.value),InputComponent:D$},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(vl);return({value:n})=>t.includes(vl(n))},InputComponent:hue}],vue=P({},ql,{type:"singleSelect",renderEditCell:Cae,filterOperators:gue(),getApplyQuickFilterFn:mue}),wg="__default__",yue=()=>({string:ql,number:aue,date:oue,dateTime:iue,boolean:JA,singleSelect:vue,[MS]:Kce,[wg]:ql}),eF=["maxWidth","minWidth","width","flex"],tF=(e={})=>{const t=P({},yue());return Object.entries(e).forEach(([n,r])=>{t[n]?t[n]=P({},t[n],r):t[n]=P({},t[r.extendType||wg],r)}),t};function bue({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r={all:{},frozenFields:[],freeze:i=>{const s=r.all[i];s&&s.frozen!==!0&&(r.all[i].frozen=!0,r.frozenFields.push(i))}};function o(){if(r.frozenFields.length===n.length)return;const i={min:{},max:{}};let s=e,a=t,c=0;r.frozenFields.forEach(d=>{s-=r.all[d].computedWidth,a-=r.all[d].flex});for(let d=0;d<n.length;d+=1){const p=n[d];if(r.all[p.field]&&r.all[p.field].frozen===!0)continue;let m=s/a*p.flex;m<p.minWidth?(c+=p.minWidth-m,m=p.minWidth,i.min[p.field]=!0):m>p.maxWidth&&(c+=p.maxWidth-m,m=p.maxWidth,i.max[p.field]=!0),r.all[p.field]={frozen:!1,computedWidth:m,flex:p.flex}}c<0?Object.keys(i.max).forEach(d=>{r.freeze(d)}):c>0?Object.keys(i.min).forEach(d=>{r.freeze(d)}):n.forEach(({field:d})=>{r.freeze(d)}),o()}return o(),r.all}const nF=(e,t)=>{const n={};let r=0,o=0;const i=[];e.all.forEach(a=>{const c=P({},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=Lu(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=bue({initialFreeSpace:s,totalFlexUnits:r,flexColumns:i});Object.keys(a).forEach(c=>{n[c].computedWidth=a[c].computedWidth})}return P({},e,{lookup:n})},wue=(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.all:[...s,...e.all.filter(p=>!i[p])],c=P({},e.lookup);for(let p=0;p<o.length;p+=1){const h=o[p],m=P({},c[h],{hasBeenResized:!0});Object.entries(r[h]).forEach(([v,b])=>{m[v]=b===-1?1/0:b}),c[h]=m}return{all:a,lookup:c}},Cue=(e,t)=>!t||!e[t]?e[wg]:e[t],Dc=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,currentColumnVisibilityModel:o=Ls(e),shouldRegenColumnVisibilityModelFromColumns:i,keepOnlyColumnsToUpsert:s=!1})=>{var a,c,d,p;const h=!e.current.state.columns;let m;if(h)m={all:[],lookup:{}};else{const x=Wa(e.current.state);m={all:s?[]:[...x.all],lookup:P({},x.lookup)}}let v={};s&&!h&&(v=Object.keys(m.lookup).reduce((x,k)=>P({},x,{[k]:!1}),{}));const b={};t.forEach(x=>{const{field:k}=x;b[k]=!0,v[k]=!0;let I=m.lookup[k];I==null?(I=P({},Cue(r,x.type),{field:k,hasBeenResized:!1}),m.all.push(k)):s&&m.all.push(k);let _=I.hasBeenResized;eF.forEach(M=>{x[M]!==void 0&&(_=!0,x[M]===-1&&(x[M]=1/0))}),m.lookup[k]=P({},I,{hide:x.hide==null?!1:x.hide},x,{hasBeenResized:_})}),s&&!h&&Object.keys(m.lookup).forEach(x=>{v[x]||delete m.lookup[x]});const g=P({},m.lookup),S=e.current.unstable_applyPipeProcessors("hydrateColumns",m);let C={};if(i){let x=!1;const k=P({},o);h?S.all.forEach(I=>{k[I]=!m.lookup[I].hide}):s&&Object.keys(k).forEach(I=>{S.lookup[I]||(delete k[I],x=!0)}),S.all.forEach(I=>{if(!b[I]&&g[I]===S.lookup[I])return;let _=o[I];_===void 0&&(h?_=!0:_=!!Wa(e.current.state).lookup[I]);const M=!S.lookup[I].hide;M!==_&&(x=!0,k[I]=M)}),x||h?C=k:C=o}else C=o;const E=wue(S,n),w=P({},E,{columnVisibilityModel:C});return nF(w,(a=(c=(d=e.current).getRootDimensions)==null||(p=c.call(d))==null?void 0:p.viewportInnerSize.width)!=null?a:0)},B$=e=>t=>P({},t,{columns:e});function ww({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 xue({firstColumnIndex:e,minColumnIndex:t,columnBuffer:n,firstRowToRender:r,lastRowToRender:o,apiRef:i,visibleRows:s}){const a=Math.max(e-n,t);return ww({firstColumnToRender:a,apiRef:i,firstRowToRender:r,lastRowToRender:o,visibleRows:s})}const Sue=e=>{const{column:t,onClick:n}=e,r=Et(),o=Xe(),i=u.useRef(),c=Ar(r).filter(p=>p.disableColumnMenu!==!0).length===1,d=u.useCallback(p=>{c||(n(p),i.current=setTimeout(()=>{r.current.setColumnVisibility(t==null?void 0:t.field,!1)},100))},[r,t==null?void 0:t.field,n,c]);return u.useEffect(()=>()=>clearTimeout(i.current),[]),o.disableColumnSelector||t.hideable===!1?null:T.jsx(pr,{onClick:d,disabled:c,children:r.current.getLocaleText("columnMenuHideColumn")})};function Eue(e){var t;const{column:n,onClick:r}=e,o=Et(),i=Ye(o,wi),s=Xe(),a=(t=n.sortingOrder)!=null?t:s.sortingOrder,c=u.useMemo(()=>{if(!n)return null;const p=i.find(h=>h.field===n.field);return p==null?void 0:p.sort},[n,i]),d=u.useCallback(p=>{r(p);const h=p.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n,h)},[o,n,r]);return!n||!n.sortable?null:T.jsxs(u.Fragment,{children:[a.includes(null)?T.jsx(pr,{onClick:d,disabled:c==null,children:o.current.getLocaleText("columnMenuUnsort")}):null,a.includes("asc")?T.jsx(pr,{onClick:d,"data-value":"asc",disabled:c==="asc",children:o.current.getLocaleText("columnMenuSortAsc")}):null,a.includes("desc")?T.jsx(pr,{onClick:d,"data-value":"desc",disabled:c==="desc",children:o.current.getLocaleText("columnMenuSortDesc")}):null]})}const Pue=u.forwardRef(function(t,n){const{hideMenu:r,currentColumn:o}=t,i=Et(),s=[T.jsx(Eue,{onClick:r,column:o}),T.jsx(Mce,{onClick:r,column:o}),T.jsx(Sue,{onClick:r,column:o}),T.jsx($ce,{onClick:r,column:o})],a=i.current.unstable_applyPipeProcessors("columnMenu",s,o);return T.jsx(Tce,P({ref:n},t,{children:a.map((c,d)=>u.cloneElement(c,{key:d,onClick:r,column:o}))}))}),kue=["className"],_ue=e=>{const{classes:t}=e;return ke({root:["panelContent"]},Bt,t)},Iue=oe("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function rF(e){const{className:t}=e,n=se(e,kue),r=Xe(),o=_ue(r);return T.jsx(Iue,P({className:pe(t,o.root),ownerState:r},n))}const $ue=["className"],Mue=e=>{const{classes:t}=e;return ke({root:["panelFooter"]},Bt,t)},Rue=oe("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function oF(e){const{className:t}=e,n=se(e,$ue),r=Xe(),o=Mue(r);return T.jsx(Rue,P({className:pe(t,o.root),ownerState:r},n))}const Tue=["className"],Oue=e=>{const{classes:t}=e;return ke({root:["panelHeader"]},Bt,t)},Lue=oe("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})(({theme:e})=>({padding:e.spacing(1)}));function Aue(e){const{className:t}=e,n=se(e,Tue),r=Xe(),o=Oue(r);return T.jsx(Lue,P({className:pe(t,o.root),ownerState:r},n))}const Fue=["className","slotProps"],Nue=e=>{const{classes:t}=e;return ke({root:["panelWrapper"]},Bt,t)},Due=oe("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),Bue=()=>!0,iF=u.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,i=se(t,Fue),s=Xe(),a=Nue(s);return T.jsx(OO,P({open:!0,disableEnforceFocus:!0,isEnabled:Bue},o.TrapFocus,{children:T.jsx(Due,P({ref:n,tabIndex:-1,className:pe(r,a.root),ownerState:s},i))}))}),zue=!1,jue=["sort","searchPredicate","autoFocusSearchField"],Hue=e=>{const{classes:t}=e;return ke({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},Bt,t)},Vue=oe("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),Uue=oe("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${$r.root}`]:{marginRight:e.spacing(.5)}})),Wue=oe(ur)({justifyContent:"flex-end"}),z$=new Intl.Collator,Gue=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;function Kue(e){var t,n,r;const o=Et(),i=u.useRef(null),s=Ye(o,$i),a=Ye(o,Ls),c=Xe(),[d,p]=u.useState(""),h=Hue(c),{sort:m,searchPredicate:v=Gue,autoFocusSearchField:b=!0}=e,g=se(e,jue),S=u.useMemo(()=>{switch(m){case"asc":return[...s].sort((M,O)=>z$.compare(M.headerName||M.field,O.headerName||O.field));case"desc":return[...s].sort((M,O)=>-z$.compare(M.headerName||M.field,O.headerName||O.field));default:return s}},[s,m]),C=M=>{const{name:O}=M.target;o.current.setColumnVisibility(O,a[O]===!1)},E=u.useCallback(M=>{if(o.current.unstable_caches.columns.isUsingColumnVisibilityModel){const O=Ls(o),R=P({},O);return s.forEach(L=>{L.hideable&&(M?delete R[L.field]:R[L.field]=!1)}),o.current.setColumnVisibilityModel(R)}return o.current.updateColumns(s.map(O=>O.hideable!==!1?{field:O.field,hide:!M}:O))},[o,s]),w=u.useCallback(M=>{p(M.target.value)},[]),x=u.useMemo(()=>{if(!d)return S;const M=d.toLowerCase();return S.filter(O=>v(O,M))},[S,d,v]),k=u.useRef(null);u.useEffect(()=>{b?i.current.focus():k.current&&typeof k.current.focus=="function"&&k.current.focus()},[b]);let I=!1;const _=M=>I===!1&&M.hideable!==!1?(I=!0,!0):!1;return T.jsxs(iF,P({},g,{children:[T.jsx(Aue,{children:T.jsx(c.components.BaseTextField,P({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:i,value:d,onChange:w,variant:"standard",fullWidth:!0},(t=c.componentsProps)==null?void 0:t.baseTextField))}),T.jsx(rF,{children:T.jsx(Vue,{className:h.root,ownerState:c,children:x.map(M=>{var O;return T.jsxs(Uue,{className:h.columnsPanelRow,ownerState:c,children:[T.jsx(uL,{control:T.jsx(c.components.BaseSwitch,P({disabled:M.hideable===!1,checked:a[M.field]!==!1,onClick:C,name:M.field,size:"small",inputRef:_(M)?k:void 0},(O=c.componentsProps)==null?void 0:O.baseSwitch)),label:M.headerName||M.field}),!c.disableColumnReorder&&zue&&T.jsx(Wue,{draggable:!0,"aria-label":o.current.getLocaleText("columnsPanelDragIconLabel"),title:o.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0,children:T.jsx(FA,{})})]},M.field)})})}),T.jsxs(oF,{children:[T.jsx(c.components.BaseButton,P({onClick:()=>E(!1)},(n=c.componentsProps)==null?void 0:n.baseButton,{children:o.current.getLocaleText("columnsPanelHideAllButton")})),T.jsx(c.components.BaseButton,P({onClick:()=>E(!0)},(r=c.componentsProps)==null?void 0:r.baseButton,{children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const que=["children","className","classes"],Yue=qe("MuiDataGrid",["panel","paper"]),Xue=oe(Za,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),Que=oe(ui,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:e.palette.background.paper,minWidth:300,maxHeight:450,display:"flex"})),Jue=u.forwardRef((e,t)=>{var n;const{children:r,className:o}=e,i=se(e,que),s=Et(),a=Xe(),c=Yue,[d,p]=u.useState(!1),h=u.useCallback(()=>{s.current.hidePreferences()},[s]),m=u.useCallback(g=>{kS(g.key)&&s.current.hidePreferences()},[s]),v=u.useMemo(()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{p(!0)},effect:()=>()=>{p(!1)}}],[]),b=(n=s.current.columnHeadersContainerElementRef)==null?void 0:n.current;return b?T.jsx(Xue,P({ref:t,placement:"bottom-start",className:pe(o,c.panel),ownerState:a,anchorEl:b,modifiers:v},i,{children:T.jsx(TO,{mouseEvent:"onMouseUp",onClickAway:h,children:T.jsx(Que,{className:c.paper,ownerState:a,elevation:8,onKeyDown:m,children:d&&r})})})):null}),Zue=u.forwardRef(function(t,n){var r,o,i;const s=Et(),a=Ye(s,$i),c=Xe(),d=Ye(s,yg),p=s.current.unstable_applyPipeProcessors("preferencePanel",null,(r=d.openedPanelValue)!=null?r:Kl.filters);return T.jsx(c.components.Panel,P({ref:n,as:c.components.BasePopper,open:a.length>0&&d.open},(o=c.componentsProps)==null?void 0:o.panel,t,(i=c.componentsProps)==null?void 0:i.basePopper,{children:p}))}),ede=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","linkOperators","columnsSort","deleteIconProps","linkOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],tde=["InputComponentProps"],nde=e=>{const{classes:t}=e;return ke({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],linkOperatorInput:["filterFormLinkOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Bt,t)},rde=oe("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),ode=oe(tc,{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),ide=oe(tc,{name:"MuiDataGrid",slot:"FilterFormLinkOperatorInput",overridesResolver:(e,t)=>t.filterFormLinkOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),sde=oe(tc,{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),lde=oe(tc,{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),ade=oe(tc,{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),cde=e=>{switch(e){case Hr.And:return"filterPanelOperatorAnd";case Hr.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `linkOperator` property in the `GridFilterPanel`.")}},Ad=e=>e.headerName||e.field,j$=new Intl.Collator,ude=u.forwardRef(function(t,n){var r,o,i,s,a,c,d;const{item:p,hasMultipleFilters:h,deleteFilter:m,applyFilterChanges:v,multiFilterOperator:b,showMultiFilterOperators:g,disableMultiFilterOperator:S,applyMultiFilterOperatorChanges:C,focusElementRef:E,linkOperators:w=[Hr.And,Hr.Or],columnsSort:x,deleteIconProps:k={},linkOperatorInputProps:I={},operatorInputProps:_={},columnInputProps:M={},valueInputProps:O={}}=t,R=se(t,ede),L=Et(),H=Ye(L,SS),j=In(),A=In(),F=In(),z=In(),G=Xe(),N=nde(G),B=u.useRef(null),W=u.useRef(null),q=h&&w.length>0,X=((r=G.componentsProps)==null?void 0:r.baseFormControl)||{},J=(i=(((o=G.componentsProps)==null?void 0:o.baseSelect)||{}).native)!=null?i:!0,fe=J?"option":pr,{InputComponentProps:Q}=O,le=se(O,tde),ne=u.useMemo(()=>{switch(x){case"asc":return H.sort((re,Te)=>j$.compare(Ad(re),Ad(Te)));case"desc":return H.sort((re,Te)=>-j$.compare(Ad(re),Ad(Te)));default:return H}},[H,x]),he=p.columnField?L.current.getColumn(p.columnField):null,be=u.useMemo(()=>{var re;return!p.operatorValue||!he?null:(re=he.filterOperators)==null?void 0:re.find(Te=>Te.value===p.operatorValue)},[p,he]),ge=u.useCallback(re=>{const Te=re.target.value,ve=L.current.getColumn(Te);if(ve.field===he.field)return;const ze=ve.filterOperators.find(pt=>pt.value===p.operatorValue)||ve.filterOperators[0],nt=!ze.InputComponent||ze.InputComponent!==(be==null?void 0:be.InputComponent);v(P({},p,{columnField:Te,operatorValue:ze.value,value:nt?void 0:p.value}))},[L,v,p,he,be]),$e=u.useCallback(re=>{const Te=re.target.value,ve=he==null?void 0:he.filterOperators.find(nt=>nt.value===Te),ze=!(ve!=null&&ve.InputComponent)||(ve==null?void 0:ve.InputComponent)!==(be==null?void 0:be.InputComponent);v(P({},p,{operatorValue:Te,value:ze?void 0:p.value}))},[v,p,he,be]),Be=u.useCallback(re=>{const Te=re.target.value===Hr.And.toString()?Hr.And:Hr.Or;C(Te)},[C]),Le=()=>{G.disableMultipleColumnsFiltering?p.value===void 0?m(p):v(P({},p,{value:void 0})):m(p)};return u.useImperativeHandle(E,()=>({focus:()=>{if(be!=null&&be.InputComponent){var re;B==null||(re=B.current)==null||re.focus()}else W.current.focus()}}),[be]),T.jsxs(rde,P({ref:n,className:N.root,ownerState:G},R,{children:[T.jsx(ode,P({variant:"standard",as:G.components.BaseFormControl},X,k,{className:pe(N.deleteIcon,X.className,k.className),ownerState:G,children:T.jsx(ur,{"aria-label":L.current.getLocaleText("filterPanelDeleteIconLabel"),title:L.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:Le,size:"small",children:T.jsx(G.components.FilterPanelDeleteIcon,{fontSize:"small"})})})),T.jsx(ide,P({variant:"standard",as:G.components.BaseFormControl},X,I,{sx:P({display:q?"flex":"none",visibility:g?"visible":"hidden"},X.sx||{},I.sx||{}),className:pe(N.linkOperatorInput,X.className,I.className),ownerState:G,children:T.jsx(G.components.BaseSelect,P({inputProps:{"aria-label":L.current.getLocaleText("filterPanelLinkOperator")},value:b,onChange:Be,disabled:!!S||w.length===1,native:J},(s=G.componentsProps)==null?void 0:s.baseSelect,{children:w.map(re=>T.jsx(fe,{value:re.toString(),children:L.current.getLocaleText(cde(re))},re.toString()))}))})),T.jsxs(sde,P({variant:"standard",as:G.components.BaseFormControl},X,M,{className:pe(N.columnInput,X.className,M.className),ownerState:G,children:[T.jsx(ew,{htmlFor:j,id:A,children:L.current.getLocaleText("filterPanelColumns")}),T.jsx(G.components.BaseSelect,P({labelId:A,id:j,label:L.current.getLocaleText("filterPanelColumns"),value:p.columnField||"",onChange:ge,native:J},(a=G.componentsProps)==null?void 0:a.baseSelect,{children:ne.map(re=>T.jsx(fe,{value:re.field,children:Ad(re)},re.field))}))]})),T.jsxs(lde,P({variant:"standard",as:G.components.BaseFormControl},X,_,{className:pe(N.operatorInput,X.className,_.className),ownerState:G,children:[T.jsx(ew,{htmlFor:F,id:z,children:L.current.getLocaleText("filterPanelOperators")}),T.jsx(G.components.BaseSelect,P({labelId:z,label:L.current.getLocaleText("filterPanelOperators"),id:F,value:p.operatorValue,onChange:$e,native:J,inputRef:W},(c=G.componentsProps)==null?void 0:c.baseSelect,{children:he==null||(d=he.filterOperators)==null?void 0:d.map(re=>T.jsx(fe,{value:re.value,children:re.label||L.current.getLocaleText(`filterOperator${ce(re.value)}`)},re.value))}))]})),T.jsx(ade,P({variant:"standard",as:G.components.BaseFormControl},X,le,{className:pe(N.valueInput,X.className,le.className),ownerState:G,children:be!=null&&be.InputComponent?T.jsx(be.InputComponent,P({apiRef:L,item:p,applyValue:v,focusElementRef:B},be.InputComponentProps,Q)):null}))]}))}),dde=["linkOperators","columnsSort","filterFormProps","children"],fde=u.forwardRef(function(t,n){var r;const o=Et(),i=Xe(),s=Ye(o,Xr),a=Ye(o,SS),c=u.useRef(null),{linkOperators:d=[Hr.And,Hr.Or],columnsSort:p,filterFormProps:h}=t,m=se(t,dde),v=u.useCallback(x=>{o.current.upsertFilterItem(x)},[o]),b=u.useCallback(x=>{o.current.setFilterLinkOperator(x)},[o]),g=u.useCallback(()=>{const x=a.find(k=>{var I;return(I=k.filterOperators)==null?void 0:I.length});return x?{columnField:x.field,operatorValue:x.filterOperators[0].value,id:Math.round(Math.random()*1e5)}:null},[a]),S=u.useMemo(()=>{if(s.items.length)return s.items;const x=g();return x?[x]:[]},[s.items,g]),C=S.length>1,E=()=>{const x=g();x&&o.current.upsertFilterItems([...S,x])},w=u.useCallback(x=>{const k=S.length===1;o.current.deleteFilterItem(x),k&&o.current.hideFilterPanel()},[o,S.length]);return u.useEffect(()=>{d.length>0&&s.linkOperator&&!d.includes(s.linkOperator)&&b(d[0])},[d,b,s.linkOperator]),u.useEffect(()=>{S.length>0&&c.current.focus()},[S.length]),T.jsxs(iF,P({ref:n},m,{children:[T.jsx(rF,{children:S.map((x,k)=>T.jsx(ude,P({item:x,applyFilterChanges:v,deleteFilter:w,hasMultipleFilters:C,showMultiFilterOperators:k>0,multiFilterOperator:s.linkOperator,disableMultiFilterOperator:k!==1,applyMultiFilterOperatorChanges:b,focusElementRef:k===S.length-1?c:null,linkOperators:d,columnsSort:p},h),x.id==null?k:x.id))}),!i.disableMultipleColumnsFiltering&&T.jsx(oF,{children:T.jsx(i.components.BaseButton,P({onClick:E,startIcon:T.jsx(AA,{})},(r=i.componentsProps)==null?void 0:r.baseButton,{children:o.current.getLocaleText("filterPanelAddFilter")}))})]}))}),pde=["hideMenu","options"],hde=["hideMenu","options"],mde=e=>{const t=Et(),{hideMenu:n,options:r}=e,o=se(e,pde);return T.jsx(pr,P({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))},gde=e=>{const t=Et(),{hideMenu:n,options:r}=e,o=se(e,hde);return T.jsx(pr,P({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))},Xf=()=>({items:[],linkOperator:Hr.And,quickFilterValues:[],quickFilterLogicOperator:Hr.And}),vde=["className","rowCount","visibleRowCount"],yde=e=>{const{classes:t}=e;return ke({root:["rowCount"]},Bt,t)},bde=oe("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),wde=u.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:i}=t,s=se(t,vde),a=Et(),c=Xe(),d=yde(c);if(o===0)return null;const p=i<o?a.current.getLocaleText("footerTotalVisibleRows")(i,o):o.toLocaleString();return T.jsxs(bde,P({ref:n,className:pe(d.root,r),ownerState:c},s,{children:[a.current.getLocaleText("footerTotalRows")," ",p]}))}),Cde=["className","selectedRowCount"],xde=e=>{const{classes:t}=e;return ke({root:["selectedRowCount"]},Bt,t)},Sde=oe("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"}})),Ede=u.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,i=se(t,Cde),s=Et(),a=Xe(),c=xde(a),d=s.current.getLocaleText("footerRowSelected")(o);return T.jsx(Sde,P({ref:n,className:pe(c.root,r),ownerState:a},i,{children:d}))}),Pde=u.forwardRef(function(t,n){var r;const o=Et(),i=Xe(),s=Ye(o,nle),a=Ye(o,Sce),c=Ye(o,IA),d=!i.hideFooterSelectedRowCount&&a>0?T.jsx(Ede,{selectedRowCount:a}):T.jsx("div",{}),p=!i.hideFooterRowCount&&!i.pagination?T.jsx(wde,{rowCount:s,visibleRowCount:c}):null,h=i.pagination&&!i.hideFooterPagination&&i.components.Pagination&&T.jsx(i.components.Pagination,P({},(r=i.componentsProps)==null?void 0:r.pagination));return T.jsxs(zae,P({ref:n},t,{children:[d,p,h]}))}),kde=u.forwardRef(function(t,n){var r,o;const i=Xe();return T.jsxs("div",P({ref:n},t,{children:[T.jsx(i.components.PreferencesPanel,P({},(r=i.componentsProps)==null?void 0:r.preferencesPanel)),i.components.Toolbar&&T.jsx(i.components.Toolbar,P({},(o=i.componentsProps)==null?void 0:o.toolbar))]}))}),_de=u.forwardRef(function(t,n){return T.jsx(ry,P({ref:n},t,{children:T.jsx(Uu,{})}))}),Ide=u.forwardRef(function(t,n){const o=Et().current.getLocaleText("noRowsLabel");return T.jsx(ry,P({ref:n},t,{children:o}))}),$de=oe(dne)(({theme:e})=>({[`& .${Ia.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${Ia.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),Mde=u.forwardRef(function(t,n){var r;const o=Et(),i=Xe(),s=Ye(o,qu),a=u.useMemo(()=>Math.floor(s.rowCount/(s.pageSize||1)),[s.rowCount,s.pageSize]),c=u.useCallback(p=>{const h=Number(p.target.value);o.current.setPageSize(h)},[o]),d=u.useCallback((p,h)=>{o.current.setPage(h)},[o]);return T.jsx($de,P({ref:n,component:"div",count:s.rowCount,page:s.page<=a?s.page:a,rowsPerPageOptions:(r=i.rowsPerPageOptions)!=null&&r.includes(s.pageSize)?i.rowsPerPageOptions:[],rowsPerPage:s.pageSize,onPageChange:d,onRowsPerPageChange:c},o.current.getLocaleText("MuiTablePagination"),t))}),oy=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=IS(e),n=Pce(e)):(n=Qs(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},oc=(e,t)=>{const n=oy(e,t);return u.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},RS="__detail_panel_toggle__",Rde=["selected","rowId","row","index","style","position","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","cellFocus","cellTabIndex","editRowsState","isLastVisible","onClick","onDoubleClick","onMouseEnter","onMouseLeave"],Tde=["changeReason"],Ode=e=>{const{editable:t,editing:n,selected:r,isLastVisible:o,rowHeight:i,classes:s}=e;return ke({root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--lastVisible",i==="auto"&&"row--dynamicHeight"]},Bt,s)},Lde=({width:e})=>{if(!e)return null;const t={width:e};return T.jsx("div",{className:"MuiDataGrid-cell",style:t})},Ade=u.forwardRef(function(t,n){var r;const{selected:o,rowId:i,row:s,index:a,style:c,position:d,rowHeight:p,className:h,visibleColumns:m,renderedColumns:v,containerWidth:b,firstColumnToRender:g,cellFocus:S,cellTabIndex:C,editRowsState:E,isLastVisible:w=!1,onClick:x,onDoubleClick:k,onMouseEnter:I,onMouseLeave:_}=t,M=se(t,Rde),O=Et(),R=u.useRef(null),L=Xe(),H=oc(O,L),j=Ye(O,ty),A=Ye(O,wi),F=Ye(O,bS),z=Ye(O,ES),G=Ut(R,n),N=a+z+2,{hasScrollX:B,hasScrollY:W}=(r=O.current.getRootDimensions())!=null?r:{hasScrollX:!1,hasScrollY:!1},q={selected:o,isLastVisible:w,classes:L.classes,editing:O.current.getRowMode(i)===Kt.Edit,editable:L.editMode===Tr.Row,rowHeight:p},X=Ode(q);u.useLayoutEffect(()=>{p==="auto"&&R.current&&typeof ResizeObserver=="undefined"&&O.current.unstable_storeRowHeightMeasurement(i,R.current.clientHeight,d)},[O,p,i,d]),u.useLayoutEffect(()=>{if(H.range){const ze=O.current.getRowIndexRelativeToVisibleRows(i);ze!=null&&O.current.unstable_setLastMeasuredRowIndex(ze)}const re=R.current;if(!re||p!=="auto"||typeof ResizeObserver=="undefined")return;const ve=new ResizeObserver(ze=>{const[nt]=ze,pt=nt.borderBoxSize&&nt.borderBoxSize.length>0?nt.borderBoxSize[0].blockSize:nt.contentRect.height;O.current.unstable_storeRowHeightMeasurement(i,pt,d)});return ve.observe(re),()=>ve.disconnect()},[O,H.range,a,p,i,d]);const ie=u.useCallback((re,Te)=>ve=>{ve.target.nodeType===1&&!ve.currentTarget.contains(ve.target)||O.current.getRow(i)&&(O.current.publishEvent(re,O.current.getRowParams(i),ve),Te&&Te(ve))},[O,i]),J=u.useCallback(re=>{const Te=tce(re.target,ee.cell),ve=Te==null?void 0:Te.getAttribute("data-field");ve&&(ve===kp.field||ve===RS||ve==="__reorder__"||O.current.getCellMode(i,ve)===Tt.Edit||O.current.getColumn(ve).type===MS)||ie("rowClick",x)(re)},[O,x,ie,i]),fe=u.useCallback((re,Te)=>{var ve;const ze=O.current.getCellParams(i,re.field),nt=[],pt=L.disableColumnReorder&&re.disableReorder||!L.rowReordering&&!!A.length&&F>1&&Object.keys(E).length>0;re.cellClassName&&nt.push(pe(typeof re.cellClassName=="function"?re.cellClassName(ze):re.cellClassName));const Qe=E[i]?E[i][re.field]:null;let Ct=null;if(Qe==null&&re.renderCell){var it;Ct=re.renderCell(P({},ze,{api:O.current})),nt.push(pe(ee["cell--withRenderer"],(it=L.classes)==null?void 0:it["cell--withRenderer"]))}if(Qe!=null&&re.renderEditCell){var vt;let Ge=s;O.current.unstable_getRowWithUpdatedValues&&(Ge=O.current.unstable_getRowWithUpdatedValues(i,re.field));const _e=se(Qe,Tde),Me=P({},ze,{row:Ge},_e,{api:O.current});Ct=re.renderEditCell(Me),nt.push(pe(ee["cell--editing"],(vt=L.classes)==null?void 0:vt["cell--editing"]))}L.getCellClassName&&nt.push(L.getCellClassName(ze));const ht=S!==null&&S.id===i&&S.field===re.field,ct=C!==null&&C.id===i&&C.field===re.field&&ze.cellMode==="view"?0:-1;return T.jsx(L.components.Cell,P({value:ze.value,field:re.field,width:Te.width,rowId:i,height:p,showRightBorder:Te.showRightBorder,formattedValue:ze.formattedValue,align:re.align||"left",cellMode:ze.cellMode,colIndex:Te.indexRelativeToAllColumns,isEditable:ze.isEditable,hasFocus:ht,tabIndex:ct,className:pe(nt),colSpan:Te.colSpan,disableDragEvents:pt},(ve=L.componentsProps)==null?void 0:ve.cell,{children:Ct}),re.field)},[O,C,E,S,L,s,p,i,F,A.length]),Q=O.current.unstable_getRowInternalSizes(i);let le=p;if(le==="auto"&&Q){let re=0;const Te=Object.entries(Q).reduce((ve,[ze,nt])=>/^base[A-Z]/.test(ze)?(re+=1,nt>ve?nt:ve):ve,0);Te>0&&re>1&&(le=Te)}const ne=P({},c,{maxHeight:p==="auto"?"none":p,minHeight:le});if(Q!=null&&Q.spacingTop){const re=L.rowSpacingType==="border"?"borderTopWidth":"marginTop";ne[re]=Q.spacingTop}if(Q!=null&&Q.spacingBottom){const re=L.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let Te=ne[re];typeof Te!="number"&&(Te=parseInt(Te||"0",10)),Te+=Q.spacingBottom,ne[re]=Te}const he=O.current.unstable_applyPipeProcessors("rowClassName",[],i);if(typeof L.getRowClassName=="function"){var be;const re=a-(((be=H.range)==null?void 0:be.firstRowIndex)||0),Te=P({},O.current.getRowParams(i),{isFirstVisible:re===0,isLastVisible:re===H.rows.length-1,indexRelativeToCurrentPage:re});he.push(L.getRowClassName(Te))}const ge=Vce(1e4,20,80),$e=[];for(let re=0;re<v.length;re+=1){const Te=v[re],ve=g+re,ze=ve===m.length-1,pt=ze?!(ze&&B&&!W)&&L.disableExtendRowFullWidth:L.showCellRightBorder,Qe=O.current.unstable_getCellColSpanInfo(i,ve);if(Qe&&!Qe.spannedByColSpan)if(s){const{colSpan:Ct,width:it}=Qe.cellProps,vt={width:it,colSpan:Ct,showRightBorder:pt,indexRelativeToAllColumns:ve};$e.push(fe(Te,vt))}else{const{width:Ct}=Qe.cellProps,it=Math.round(ge());$e.push(T.jsx(L.components.SkeletonCell,{width:Ct,contentWidth:it,field:Te.field,align:Te.align},Te.field))}}const Be=b-j,Le=s?{onClick:J,onDoubleClick:ie("rowDoubleClick",k),onMouseEnter:ie("rowMouseEnter",I),onMouseLeave:ie("rowMouseLeave",_)}:null;return T.jsxs("div",P({ref:G,"data-id":i,"data-rowindex":a,role:"row",className:pe(...he,X.root,h),"aria-rowindex":N,"aria-selected":o,style:ne},Le,M,{children:[$e,Be>0&&T.jsx(Lde,{width:Be})]}))}),H$=1e3;class Fde{constructor(t=H$){this.timeouts=new Map,this.cleanupTimeout=H$,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 Nde{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 Yl;(function(e){e.DataGrid="DataGrid",e.DataGridPro="DataGridPro"})(Yl||(Yl={}));class Dde{}function Bde(e){let t=0;return function(r,o,i,s){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new Nde:new Fde);const[a]=u.useState(new Dde),c=u.useRef(null),d=u.useRef();d.current=i;const p=u.useRef(null);if(!c.current&&d.current){const h=(m,v,b)=>{if(!v.defaultMuiPrevented){var g;(g=d.current)==null||g.call(d,m,v,b)}};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,v,b)=>{if(!v.defaultMuiPrevented){var g;(g=d.current)==null||g.call(d,m,v,b)}};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 zde={registry:null},Ne=Bde(zde),jde={isFirst:!0};function jt(e,t,n){Ne(e,t,n,jde)}const V$=1,Hde=1.5,Vde=e=>{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return ke(r,Bt,n)},Ude=oe("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${ee["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${ee["scrollArea--right"]}`]:t["scrollArea--right"]},t.scrollArea]})(()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${ee["scrollArea--left"]}`]:{left:0},[`&.${ee["scrollArea--right"]}`]:{right:0}}));function Wde(e){const{scrollDirection:t}=e,n=u.useRef(null),r=Et(),o=u.useRef(),[i,s]=u.useState(!1),a=Ye(r,$A),c=u.useRef({left:0,top:0}),d=Xe(),p=P({},d,{scrollDirection:t}),h=Vde(p),m=u.useCallback(g=>{c.current=g},[]),v=u.useCallback(g=>{let S;if(t==="left")S=g.clientX-n.current.getBoundingClientRect().right;else if(t==="right")S=Math.max(1,g.clientX-n.current.getBoundingClientRect().left);else throw new Error("MUI: Wrong drag direction");S=(S-V$)*Hde+V$,clearTimeout(o.current),o.current=setTimeout(()=>{r.current.scroll({left:c.current.left+S,top:c.current.top})})},[t,r]);u.useEffect(()=>()=>{clearTimeout(o.current)},[]);const b=u.useCallback(()=>{s(g=>!g)},[]);return Ne(r,"rowsScroll",m),Ne(r,"columnHeaderDragStart",b),Ne(r,"columnHeaderDragEnd",b),i?T.jsx(Ude,{ref:n,className:pe(h.root),ownerState:p,onDragOver:v,style:{height:a}}):null}const U$=u.memo(Wde),Gde=({apiRef:e,props:t,children:n})=>T.jsx(xA.Provider,{value:t,children:T.jsx(CA.Provider,{value:e,children:n})}),Kde=jce()&&window.localStorage.getItem("DEBUG")!=null,qd=()=>{},qde={debug:qd,info:qd,warn:qd,error:qd},W$=["debug","info","warn","error"];function G$(e,t,n=console){const r=W$.indexOf(t);if(r===-1)throw new Error(`MUI: Log level ${t} not recognized.`);return W$.reduce((i,s,a)=>(a>=r?i[s]=(...c)=>{const[d,...p]=c;n[s](`MUI: ${e} - ${d}`,...p)}:i[s]=qd,i),{})}const Yde=(e,t)=>{e.current.getLogger=u.useCallback(n=>Kde?G$(n,"debug",t.logger):t.logLevel?G$(n,t.logLevel.toString(),t.logger):qde,[t.logLevel,t.logger])};function Jt(e,t,n){const r=u.useRef(t),[o]=u.useState(Object.keys(t)),i=u.useCallback(()=>{e.current&&o.forEach(s=>{e.current.hasOwnProperty(s)||(e.current[s]=(...a)=>r.current[s](...a))})},[o,e]);u.useEffect(()=>{r.current=t},[t]),u.useEffect(()=>{i()},[i]),i()}class Xde{constructor(){this.maxListeners=10,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 Qde=e=>e.isPropagationStopped!==void 0;let K$=0;function Jde(e,t){const n=u.useRef();n.current||(n.current={unstable_eventManager:new Xde,unstable_caches:{},state:{},instanceId:K$},K$+=1),u.useImperativeHandle(e,()=>n.current,[n]);const r=u.useCallback((...s)=>{const[a,c,d={}]=s;if(d.defaultMuiPrevented=!1,Qde(d)&&d.isPropagationStopped())return;const p=t.signature===Yl.DataGridPro?{api:n.current}:{};n.current.unstable_eventManager.emit(a,c,d,p)},[n,t.signature]),o=u.useCallback((s,a,c)=>{n.current.unstable_eventManager.on(s,a,c);const d=n.current;return()=>{d.unstable_eventManager.removeListener(s,a)}},[n]),i=u.useCallback(s=>{n.current.publishEvent("componentError",s)},[n]);return Jt(n,{subscribeEvent:o,publishEvent:r,showError:i}),u.useEffect(()=>{const s=n.current;return()=>{ele(s.instanceId),s.publishEvent("unmount")}},[n]),n}function Zde(e,t){const n=u.useCallback(r=>{e.current.setState(o=>P({},o,{error:r}))},[e]);u.useEffect(()=>{t.error?n({error:t.error}):n(null)},[n,t.error]),Ne(e,"componentError",n)}const efe=(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.getLocaleText=n};function Qf(e){return Qf=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},Qf(e)}function tfe(e,t){if(Qf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jf(e){var t=tfe(e,"string");return Qf(t)==="symbol"?t:String(t)}const nfe=e=>{const t=u.useRef({}),n=u.useCallback(c=>{c&&Object.values(c.appliers).forEach(d=>{d()})},[]),r=u.useCallback((c,d,p)=>{t.current[c]||(t.current[c]={processors:new Map,appliers:{}});const h=t.current[c];return h.processors.get(d)!==p&&(h.processors.set(d,p),n(h)),()=>{t.current[c].processors.set(d,null)}},[n]),o=u.useCallback((c,d,p)=>(t.current[c]||(t.current[c]={processors:new Map,appliers:{}}),t.current[c].appliers[d]=p,()=>{const h=t.current[c].appliers,m=se(h,[d].map(Jf));t.current[c].appliers=m}),[]),i=u.useCallback(c=>{const d=t.current[c];n(d)},[n]),s=u.useCallback((...c)=>{const[d,p,h]=c;return t.current[d]?Array.from(t.current[d].processors.values()).reduce((v,b)=>b?b(v,h):v,p):p},[]);Jt(e,{unstable_registerPipeProcessor:r,unstable_registerPipeApplier:o,unstable_requestPipeProcessorsApplication:i,unstable_applyPipeProcessors:s})},_p=e=>{const t=u.useRef(!0);t.current&&(t.current=!1,e())},hr=(e,t,n)=>{const r=u.useRef(),o=u.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=u.useCallback(()=>{r.current=e.current.unstable_registerPipeProcessor(t,o.current,n)},[e,n,t]);_p(()=>{i()});const s=u.useRef(!0);u.useEffect(()=>(s.current?s.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},TS=(e,t,n)=>{const r=u.useRef(),o=u.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=u.useCallback(()=>{r.current=e.current.unstable_registerPipeApplier(t,o.current,n)},[e,n,t]);_p(()=>{i()});const s=u.useRef(!0);u.useEffect(()=>(s.current?s.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},OS=(e,t,n,r)=>{const o=u.useCallback(()=>{e.current.unstable_registerStrategyProcessor(t,n,r)},[e,r,n,t]);_p(()=>{o()});const i=u.useRef(!0);u.useEffect(()=>{i.current?i.current=!1:o()},[o])},Ip="none",q$={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree"},rfe=e=>{const t=u.useRef(new Map),n=u.useRef({}),r=u.useCallback((c,d,p)=>{const h=()=>{const b=n.current[d],g=se(b,[c].map(Jf));n.current[d]=g};n.current[d]||(n.current[d]={});const m=n.current[d],v=m[c];return m[c]=p,!v||v===p||c===e.current.unstable_getActiveStrategy(q$[d])&&e.current.publishEvent("activeStrategyProcessorChange",d),h},[e]),o=u.useCallback((c,d)=>{const p=e.current.unstable_getActiveStrategy(q$[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:Ip},[]),s=u.useCallback((c,d,p)=>{t.current.set(d,{group:c,isAvailable:p}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Jt(e,{unstable_registerStrategyProcessor:r,unstable_applyStrategyProcessor:o,unstable_getActiveStrategy:i,unstable_setStrategyAvailability:s})},ofe=(e,t,n,r,o)=>{const i=er(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(YA(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])},ife=["stateId"],sfe=(e,t)=>{const n=u.useRef({}),[,r]=u.useState(),o=u.useCallback(d=>{const{stateId:p}=d,h=se(d,ife);n.current[p]=P({},h,{stateId:p})},[]),i=u.useCallback((d,p)=>{let h;if(YA(d)?h=d(e.current.state):h=d,e.current.state===h)return!1;let m=!1;const v=[];if(Object.keys(n.current).forEach(b=>{const g=n.current[b],S=g.stateSelector(e.current.state,e.current.instanceId),C=g.stateSelector(h,e.current.instanceId);C!==S&&(v.push({stateId:g.stateId,hasPropChanged:C!==g.propModel}),g.propModel!==void 0&&C!==g.propModel&&(m=!0))}),v.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${v[0].stateId}, therefore, you're not allowed to update ${v.map(b=>b.stateId).join(", ")} in the same transaction.`);if(m||(e.current.state=h,e.current.publishEvent&&e.current.publishEvent("stateChange",h)),v.length===1){const{stateId:b,hasPropChanged:g}=v[0],S=n.current[b],C=S.stateSelector(h,e.current.instanceId);if(S.propOnChange&&g){const E=t.signature===Yl.DataGridPro?{api:e.current,reason:p}:{reason:p};S.propOnChange(C,E)}m||e.current.publishEvent(S.changeEvent,C,{reason:p})}return!m},[e,t.signature]),s=u.useCallback((d,p,h)=>e.current.setState(m=>P({},m,{[d]:p(m[d])}),h),[e]),a=u.useCallback(()=>r(()=>e.current.state),[e]);Jt(e,{setState:i,forceUpdate:a,unstable_updateControlState:s,unstable_registerControlState:o})},lfe=(e,t)=>{const n=Jde(e,t);return Yde(n,t),Zde(n,t),sfe(n,t),nfe(n),rfe(n),efe(n,t),n},vo=(e,t,n)=>{const r=u.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)};function Y$(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 afe(e){var t;return((t=window.getSelection())==null?void 0:t.toString())!==""?!0:e?(e.selectionEnd||0)-(e.selectionStart||0)>0:!1}const cfe=e=>{const t=u.useCallback((o=!1)=>{if(e.current.getSelectedRows().size===0)return;const i=e.current.getDataAsCsv({includeHeaders:o,delimiter:" "});navigator.clipboard?navigator.clipboard.writeText(i).catch(()=>{Y$(i)}):Y$(i)},[e]),n=u.useCallback(o=>{const i=o.ctrlKey||o.metaKey||o.altKey;String.fromCharCode(o.keyCode)!=="C"||!i||afe(o.target)||e.current.unstable_copySelectedRowsToClipboard(o.altKey)},[e]);ofe(e,e.current.rootElementRef,"keydown",n),Jt(e,{unstable_copySelectedRowsToClipboard:t})},sF=e=>e.columnMenu,ufe=e=>P({},e,{columnMenu:{open:!1}}),dfe=e=>{const t=er(e,"useGridColumnMenu"),n=u.useCallback(a=>{e.current.setState(d=>d.columnMenu.open&&d.columnMenu.field===a?d:(t.debug("Opening Column Menu"),P({},d,{columnMenu:{open:!0,field:a}})))&&(e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=u.useCallback(()=>{e.current.setState(c=>!c.columnMenu.open&&c.columnMenu.field===void 0?c:(t.debug("Hiding Column Menu"),P({},c,{columnMenu:P({},c.columnMenu,{open:!1,field:void 0})})))&&e.current.forceUpdate()},[e,t]),o=u.useCallback(a=>{t.debug("Toggle Column Menu");const c=sF(e.current.state);!c.open||c.field!==a?n(a):r()},[e,t,n,r]);Jt(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o});const s=u.useCallback((a,c)=>{if(!c.target.classList.contains(ee.menuIconButton)||!c.relatedTarget)return;const d=c.relatedTarget.classList.contains(ee.menuList),p=c.relatedTarget.getAttribute("role")==="menuitem";(d||p)&&e.current.setColumnHeaderFocus(a.field)},[e]);Ne(e,"columnResizeStart",r),Ne(e,"columnHeaderFocus",s),Ne(e,"virtualScrollerWheel",e.current.hideColumnMenu),Ne(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},ffe=(e,t,n)=>{var r,o,i,s,a,c,d;const p=!!t.columnVisibilityModel||!!((r=t.initialState)!=null&&(o=r.columns)!=null&&o.columnVisibilityModel);n.current.unstable_caches.columns={isUsingColumnVisibilityModel:p};const h=tF(t.columnTypes),m=Dc({apiRef:n,columnTypes:h,columnsToUpsert:t.columns,initialState:(i=t.initialState)==null?void 0:i.columns,shouldRegenColumnVisibilityModelFromColumns:!p,currentColumnVisibilityModel:(s=(a=t.columnVisibilityModel)!=null?a:(c=t.initialState)==null||(d=c.columns)==null?void 0:d.columnVisibilityModel)!=null?s:{},keepOnlyColumnsToUpsert:!0});return P({},e,{columns:m})};function pfe(e,t){var n,r;const o=er(e,"useGridColumns"),i=u.useMemo(()=>tF(t.columnTypes),[t.columnTypes]),s=u.useRef(t.columns),a=u.useRef(i);e.current.unstable_registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:Ls,changeEvent:"columnVisibilityModelChange"});const c=u.useCallback(j=>{o.debug("Updating columns state."),e.current.setState(B$(j)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",j.all)},[o,e]),d=u.useCallback(j=>Ku(e)[j],[e]),p=u.useCallback(()=>$i(e),[e]),h=u.useCallback(()=>Ar(e),[e]),m=u.useCallback(()=>ale(e),[e]),v=u.useCallback((j,A=!0)=>(A?Ar(e):$i(e)).findIndex(z=>z.field===j),[e]),b=u.useCallback(j=>{const A=v(j);return Ga(e)[A]},[e,v]),g=u.useCallback(j=>{Ls(e)!==j&&(e.current.setState(F=>P({},F,{columns:Dc({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!1,currentColumnVisibilityModel:j,keepOnlyColumnsToUpsert:!1})})),e.current.forceUpdate())},[e,i]),S=u.useCallback(j=>{const A=Dc({apiRef:e,columnTypes:i,columnsToUpsert:j,initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!0,keepOnlyColumnsToUpsert:!1});c(A)},[e,c,i]),C=u.useCallback(j=>e.current.updateColumns([j]),[e]),E=u.useCallback((j,A)=>{if(e.current.unstable_caches.columns.isUsingColumnVisibilityModel){var F;const z=Ls(e),G=(F=z[j])!=null?F:!0;if(A!==G){const N=P({},z,{[j]:A});e.current.setColumnVisibilityModel(N)}}else{const z=e.current.getColumn(j),G=P({},z,{hide:!A});e.current.updateColumns([G]);const N={field:j,colDef:G,isVisible:A};e.current.publishEvent("columnVisibilityChange",N)}},[e]),w=u.useCallback((j,A)=>{const F=Ou(e),z=F.findIndex(W=>W===j);if(z===A)return;o.debug(`Moving column ${j} to index ${A}`);const G=[...F],N=G.splice(z,1)[0];G.splice(A,0,N),c(P({},Wa(e.current.state),{all:G}));const B={field:j,element:e.current.getColumnHeaderElement(j),colDef:e.current.getColumn(j),targetIndex:A,oldIndex:z};e.current.publishEvent("columnOrderChange",B)},[e,o,c]),x=u.useCallback((j,A)=>{o.debug(`Updating column ${j} width to ${A}`);const F=e.current.getColumn(j),z=P({},F,{width:A});e.current.updateColumns([z]),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(j),colDef:z,width:A})},[e,o]);Jt(e,{getColumn:d,getAllColumns:p,getColumnIndex:v,getColumnPosition:b,getVisibleColumns:h,getColumnsMeta:m,updateColumn:C,updateColumns:S,setColumnVisibilityModel:g,setColumnVisibility:E,setColumnIndex:w,setColumnWidth:x});const I=u.useCallback((j,A)=>{const F={};if(e.current.unstable_caches.columns.isUsingColumnVisibilityModel){var z,G,N;const q=Ls(e);(!A.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((z=(G=t.initialState)==null||(N=G.columns)==null?void 0:N.columnVisibilityModel)!=null?z:{}).length>0||Object.keys(q).length>0)&&(F.columnVisibilityModel=q)}F.orderedFields=Ou(e);const B=$i(e),W={};return B.forEach(q=>{if(q.hasBeenResized){const X={};eF.forEach(ie=>{let J=q[ie];J===1/0&&(J=-1),X[ie]=J}),W[q.field]=X}}),Object.keys(W).length>0&&(F.dimensions=W),P({},j,{columns:F})},[e,t.columnVisibilityModel,(n=t.initialState)==null?void 0:n.columns]),_=u.useCallback((j,A)=>{var F;const z=e.current.unstable_caches.columns.isUsingColumnVisibilityModel?(F=A.stateToRestore.columns)==null?void 0:F.columnVisibilityModel:void 0,G=A.stateToRestore.columns;if(z==null&&G==null)return j;const N=Dc({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:G,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,currentColumnVisibilityModel:z,keepOnlyColumnsToUpsert:!1});return e.current.setState(B$(N)),G!=null&&e.current.publishEvent("columnsChange",N.all),j},[e,i]),M=u.useCallback((j,A)=>{if(A===Kl.columns){var F;const z=t.components.ColumnsPanel;return T.jsx(z,P({},(F=t.componentsProps)==null?void 0:F.columnsPanel))}return j},[t.components.ColumnsPanel,(r=t.componentsProps)==null?void 0:r.columnsPanel]);hr(e,"exportState",I),hr(e,"restoreState",_),hr(e,"preferencePanel",M);const O=u.useRef(null);Ne(e,"viewportInnerSizeChange",j=>{O.current!==j.width&&(O.current=j.width,c(nF(Wa(e.current.state),j.width)))}),jt(e,"columnVisibilityChange",t.onColumnVisibilityChange);const L=u.useCallback(()=>{o.info("Columns pipe processing have changed, regenerating the columns");const j=Dc({apiRef:e,columnTypes:i,columnsToUpsert:[],initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,keepOnlyColumnsToUpsert:!1});c(j)},[e,o,c,i]);TS(e,"hydrateColumns",L);const H=u.useRef(!0);u.useEffect(()=>{if(H.current){H.current=!1;return}if(o.info(`GridColumns have changed, new length ${t.columns.length}`),s.current===t.columns&&a.current===i)return;const j=Dc({apiRef:e,columnTypes:i,initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});s.current=t.columns,a.current=i,c(j)},[o,e,c,t.columns,i]),u.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,o,t.columnVisibilityModel])}const hfe=e=>e.columnGrouping,lF=et(hfe,e=>e.lookup),mfe=["groupId","children"];function gfe(e){return e.groupPath!==void 0}const aF=(e,t,n)=>{if(MA(e)){if(n[e.field]!==void 0)throw new Error(["MUI: columnGroupingModel contains duplicated field",`column field ${e.field} occurrs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
330
+ `));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{aF(i,[...t,r],n)})},cF=e=>{if(!e)return{};const t={};return e.forEach(n=>{aF(n,[],t)}),t},LS=e=>{let t={};return e.forEach(n=>{if(MA(n))return;const{groupId:r,children:o}=n,i=se(n,mfe);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=P({},i,{groupId:r}),a=LS(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=P({},t,a,{[r]:s})}),P({},t)},vfe=(e,t)=>{var n;const r=LS((n=t.columnGroupingModel)!=null?n:[]);return P({},e,{columnGrouping:{lookup:r,groupCollapsedModel:{}}})},yfe=(e,t)=>{var n;const r=u.useCallback(a=>{var c,d;return(c=(d=Ku(e)[a])==null?void 0:d.groupPath)!=null?c:[]},[e]),o=u.useCallback(()=>lF(e),[e]);Jt(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o});const s=u.useRef(!0);u.useEffect(()=>{var a,c;if(s.current){s.current=!1;return}if(!((a=t.experimentalFeatures)!=null&&a.columnGrouping))return;const d=LS((c=t.columnGroupingModel)!=null?c:[]);e.current.setState(p=>P({},p,{columnGrouping:P({},p.columnGrouping,{lookup:d})}))},[e,t.columnGroupingModel,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping])},$b=.7,Mb=1.3,uF=(e,t,n,r)=>{switch(e){case Yf.Compact:return{value:e,headerHeight:Math.floor(t*$b),rowHeight:Math.floor(n*$b),headerGroupingMaxDepth:r,factor:$b};case Yf.Comfortable:return{value:e,headerHeight:Math.floor(t*Mb),rowHeight:Math.floor(n*Mb),headerGroupingMaxDepth:r,factor:Mb};default:return{value:e,headerHeight:t,rowHeight:n,headerGroupingMaxDepth:r,factor:1}}},bfe=(e,t)=>{let n;if(t.columnGroupingModel==null||Object.keys(t.columnGroupingModel).length===0)n=0;else{const r=cF(t.columnGroupingModel),o=e.columns,i=o.all.filter(s=>o.columnVisibilityModel[s]!==!1);i.length===0?n=0:n=Math.max(...i.map(s=>{var a,c;return(a=(c=r[s])==null?void 0:c.length)!=null?a:0}))}return P({},e,{density:uF(t.density,t.headerHeight,t.rowHeight,n)})},wfe=(e,t)=>{const n=Ye(e,Ar),r=n.length>0?Math.max(...n.map(a=>{var c,d;return(c=(d=a.groupPath)==null?void 0:d.length)!=null?c:0})):0,o=er(e,"useDensity"),i=u.useCallback((a,c=t.headerHeight,d=t.rowHeight,p=r)=>{o.debug(`Set grid density to ${a}`),e.current.setState(h=>{const m=rc(h),v=uF(a,c,d,p);return Ns(m,v)?h:P({},h,{density:v})}),e.current.forceUpdate()},[o,e,t.headerHeight,t.rowHeight,r]);u.useEffect(()=>{e.current.setDensity(t.density,t.headerHeight,t.rowHeight,r)},[e,t.density,t.rowHeight,t.headerHeight,r]),Jt(e,{setDensity:i})};function Cfe(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 dF=(e,t)=>{if(typeof e=="string"){const n=e.replace(/"/g,'""');return[t,`
331
+ `,"\r"].some(r=>n.includes(r))?`"${n}"`:n}return e};Oi(["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."]);const xfe=(e,t,n,r)=>t.map(o=>{const i=n(e,o.field);return dF(i.formattedValue,r)});function Sfe(e){const{columns:t,rowIds:n,getCellParams:r,delimiterCharacter:o,includeHeaders:i}=e,s=n.reduce((c,d)=>`${c}${xfe(d,t,r,o).join(o)}\r
332
+ `,"").trim();return i?`${`${t.filter(c=>c.field!==kp.field).map(c=>dF(c.headerName||c.field,o)).join(o)}\r
333
+ `}${s}`.trim():s}const fF=({apiRef:e,options:t})=>{const n=$i(e);return t.fields?t.fields.map(o=>n.find(i=>i.field===o)).filter(o=>!!o):(t.allColumns?n:Ar(e)).filter(o=>!o.disableExport)},Efe=({apiRef:e})=>{var t,n;const r=dle(e),o=kl(e),i=e.current.getSelectedRows(),s=r.filter(p=>{var h;return((h=o[p].position)!=null?h:"body")==="body"}),a=Cp(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},Pfe=e=>{const t=er(e,"useGridCsvExport"),n=u.useCallback((s={})=>{var a,c;t.debug("Get data as CSV");const d=fF({apiRef:e,options:s}),h=((a=s.getRowsToExport)!=null?a:Efe)({apiRef:e});return Sfe({columns:d,rowIds:h,getCellParams:e.current.getCellParams,delimiterCharacter:s.delimiter||",",includeHeaders:(c=s.includeHeaders)!=null?c:!0})},[t,e]),r=u.useCallback(s=>{t.debug("Export data as CSV");const a=n(s),c=new Blob([s!=null&&s.utf8WithBom?new Uint8Array([239,187,191]):"",a],{type:"text/csv"});Cfe(c,"csv",s==null?void 0:s.fileName)},[t,n]);Jt(e,{getDataAsCsv:n,exportDataAsCsv:r});const i=u.useCallback((s,a)=>{var c;return(c=a.csvOptions)!=null&&c.disableToolbarButton?s:[...s,{component:T.jsx(mde,{options:a.csvOptions}),componentName:"csvExport"}]},[]);hr(e,"exportMenu",i)},Zf=e=>e.rowsMeta;function kfe(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function _fe(){const e=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);return e?parseInt(e[2],10):null}const Ife=(e,t)=>{const n=er(e,"useGridPrintExport"),r=u.useRef(null),o=u.useRef(null),i=u.useRef({});u.useEffect(()=>{r.current=gn(e.current.rootElementRef.current)},[e]);const s=u.useCallback((v,b)=>new Promise(g=>{if(!v&&!b){g();return}const S=fF({apiRef:e,options:{fields:v,allColumns:b}}).map(w=>w.field),C=$i(e),E={};C.forEach(w=>{E[w.field]=S.includes(w.field)}),e.current.setColumnVisibilityModel(E),g()}),[e]),a=u.useCallback(v=>{const b=document.createElement("iframe");return b.style.position="absolute",b.style.width="0px",b.style.height="0px",b.title=v||document.title,b},[]),c=u.useCallback((v,b)=>{var g,S;const C=P({copyStyles:!0,hideToolbar:!1,hideFooter:!1},b),E=v.contentDocument;if(!E)return;const w=Ep(e),x=Zf(e.current.state),k=e.current.rootElementRef.current,I=k.cloneNode(!0),_=I.querySelector(`.${ee.virtualScroller}`);_.style.height="auto",_.style.width="auto",_.parentElement.style.width="auto",_.parentElement.style.height="auto";const M=I.querySelector(`.${ee.main}`);M.style.overflow="visible";const O=_fe();O&&O>=108&&(I.style.contain="size");const L=I.querySelector(`.${ee.columnHeaders}`).querySelector(`.${ee.columnHeadersInner}`);L.style.width="100%";let H=((g=k.querySelector(`.${ee.toolbarContainer}`))==null?void 0:g.clientHeight)||0,j=((S=k.querySelector(`.${ee.footerContainer}`))==null?void 0:S.clientHeight)||0;if(C.hideToolbar){var A;(A=I.querySelector(`.${ee.toolbarContainer}`))==null||A.remove(),H=0}if(C.hideFooter){var F;(F=I.querySelector(`.${ee.footerContainer}`))==null||F.remove(),j=0}I.style.height=`${x.currentPageTotalHeight+w+H+j}px`;const z=document.createElement("div");z.appendChild(I),E.body.innerHTML=z.innerHTML;const G=typeof C.pageStyle=="function"?C.pageStyle():C.pageStyle;if(typeof G=="string"){const N=E.createElement("style");N.appendChild(E.createTextNode(G)),E.head.appendChild(N)}if(C.bodyClassName&&E.body.classList.add(...C.bodyClassName.split(" ")),C.copyStyles){const N=r.current.querySelectorAll("style, link[rel='stylesheet']");for(let B=0;B<N.length;B+=1){const W=N[B];if(W.tagName==="STYLE"){const q=E.createElement(W.tagName),X=W.sheet;if(X){let ie="";for(let J=0;J<X.cssRules.length;J+=1)typeof X.cssRules[J].cssText=="string"&&(ie+=`${X.cssRules[J].cssText}\r
334
+ `);q.appendChild(E.createTextNode(ie)),E.head.appendChild(q)}}else if(W.getAttribute("href")){const q=E.createElement(W.tagName);for(let X=0;X<W.attributes.length;X+=1){const ie=W.attributes[X];ie&&q.setAttribute(ie.nodeName,ie.nodeValue||"")}E.head.appendChild(q)}}}v.contentWindow.print()},[e,r]),d=u.useCallback(v=>{var b,g;r.current.body.removeChild(v),e.current.restoreState(o.current||{}),(b=o.current)!=null&&(g=b.columns)!=null&&g.columnVisibilityModel||e.current.setColumnVisibilityModel(i.current),e.current.unstable_enableVirtualization(),o.current=null,i.current={}},[e]),h={exportDataAsPrint:u.useCallback(v=>lt(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=Ls(e),t.pagination){const g=_A(e);e.current.setPageSize(g)}yield s(v==null?void 0:v.fields,v==null?void 0:v.allColumns),e.current.unstable_disableVirtualization(),yield kfe();const b=a(v==null?void 0:v.fileName);b.onload=()=>{c(b,v),b.contentWindow.matchMedia("print").addEventListener("change",S=>{S.matches===!1&&d(b)})},r.current.body.appendChild(b)}),[t,n,e,a,c,d,s])};Jt(e,h);const m=u.useCallback((v,b)=>{var g;return(g=b.printOptions)!=null&&g.disableToolbarButton?v:[...v,{component:T.jsx(gde,{options:b.printOptions}),componentName:"printExport"}]},[]);hr(e,"exportMenu",m)},$fe=["rowsBeforePartialUpdates"];function Mfe(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(`
335
+ `))}const Cw=(e,t,n)=>{const r=t?t(e):e.id;return Mfe(r,e,n),r},xm=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,idRowsLookup:{},idToIdLookup:{},ids:[]};for(let i=0;i<e.length;i+=1){const s=e[i],a=Cw(s,t);o.idRowsLookup[a]=s,o.idToIdLookup[a]=a,o.ids.push(a)}return o},pF=({apiRef:e,previousTree:t,rowCountProp:n,loadingProp:r})=>{const o=e.current.unstable_caches.rows,i=se(o,$fe),s=n!=null?n:0,a=e.current.unstable_applyStrategyProcessor("rowTreeCreation",P({},i,{previousTree:t})),c=e.current.unstable_applyPipeProcessors("hydrateRows",a),d=c.treeDepth===1?c.ids.length:Object.values(c.tree).filter(p=>p.parent==null&&!p.isPinned).length;return P({},c,{groupingResponseBeforeRowHydration:a,loading:r,totalRowCount:Math.max(s,c.ids.length),totalTopLevelRowCount:Math.max(s,d)})},hF=(e,t,n)=>{var r;const o=(r=e[t])==null?void 0:r.children;if(o==null)return[];const i=[];for(let s=0;s<o.length;s+=1){const a=o[s],c=e[a];(!n||!c.isAutoGenerated)&&i.push(a),i.push(...hF(e,c.id,n))}return i};function mF(e){var t,n;const r=Cp(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}}const xw=(e,t)=>{const n=P({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operatorValue==null){const r=Ku(t)[n.columnField];n.operatorValue=r&&r.filterOperators[0].value}return n},Rfe=Oi(["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"),Tfe=Oi("MUI: The 'id' field is required on `filterModel.items` when you use multiple filters.","error"),Ofe=Oi(["MUI: One of your filtering item have no `operatorValue` provided.","This property will become required on `@mui/x-data-grid@6.X`."]),gF=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(Rfe(),o=[e.items[0]]):o=e.items;const i=r&&o.some(a=>a.id==null),s=o.some(a=>a.operatorValue==null);return i&&Tfe(),s&&Ofe(),s||i?P({},e,{items:o.map(a=>xw(a,n))}):e.items!==o?P({},e,{items:o}):e},X$=(e,t,n)=>r=>P({},r,{filterModel:gF(e,t,n)}),vF=(e,t)=>{if(!e.columnField||!e.operatorValue)return null;const n=t.current.getColumn(e.columnField);if(!n)return null;let r;if(n.valueParser){var o;const p=n.valueParser;r=Array.isArray(e.value)?(o=e.value)==null?void 0:o.map(h=>p(h)):p(e.value)}else r=e.value;const i=P({},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(p=>p.value===i.operatorValue);if(!a)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${i.operatorValue}'.`);const c=a.getApplyFilterFn(i,n);return typeof c!="function"?null:{fn:p=>{const h=t.current.getCellParams(p,i.columnField);return c(h)},item:i}},Lfe=(e,t)=>{const{items:n}=e,r=n.map(o=>vF(o,t)).filter(o=>!!o);return r.length===0?null:(o,i)=>{const s={};return(i?r.filter(c=>i(c.item.columnField)):r).forEach(c=>{s[c.item.id]=c.fn(o)}),s}},Afe=(e,t)=>{const{quickFilterValues:n=[]}=e;if(n.length===0)return null;const r=Ou(t),o={};r.forEach(s=>{const a=t.current.getColumn(s),c=a==null?void 0:a.getApplyQuickFilterFn;c&&(o[s]=n.map(d=>c(d,a,t)))});const i=n.filter((s,a)=>Object.keys(o).some(c=>o[c][a]!=null));return i.length===0?null:(s,a)=>{const c={},d=[];Object.keys(o).forEach(h=>{(!a||a(h))&&(c[h]=t.current.getCellParams(s,h),d.push(h))});const p={};return i.forEach((h,m)=>{const v=d.some(b=>{var g,S;return o[b][m]==null?!1:(g=(S=o[b])[m])==null?void 0:g.call(S,c[b])});p[h]=v}),p}},Ffe=(e,t)=>{const n=Lfe(e,t),r=Afe(e,t);return(o,i)=>({passingFilterItems:n&&n(o,i),passingQuickFilterValues:r&&r(o,i)})},Nfe=(e,t,n,r)=>{var o,i;const s=n.items.filter(h=>vF(h,r)!==null),a=e.filter(h=>h!=null),c=t.filter(h=>h!=null),d=(o=n.quickFilterLogicOperator)!=null?o:Xf().quickFilterLogicOperator,p=(i=n.linkOperator)!=null?i:Xf().linkOperator;if(a.length>0){const h=m=>a.some(v=>v[m.id]);if(p===Hr.And){if(!s.every(h))return!1}else if(!s.some(h))return!1}if(c.length>0&&n.quickFilterValues!=null){const h=m=>c.some(v=>v[m]);if(d===Hr.And){if(!n.quickFilterValues.every(h))return!1}else if(!n.quickFilterValues.some(h))return!1}return!0},Dfe=(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:Xf();return P({},e,{filter:{filterModel:gF(a,t.disableMultipleColumnsFiltering,n),visibleRowsLookup:{},filteredDescendantCountLookup:{}}})},Bfe=(e,t)=>{var n,r,o;const i=er(e,"useGridFilter");e.current.unstable_registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:Xr,changeEvent:"filterModelChange"});const s=u.useCallback(()=>{e.current.setState(M=>{const O=Xr(M,e.current.instanceId),R=t.filterMode===uu.client?Ffe(O,e):null,L=e.current.unstable_applyStrategyProcessor("filtering",{isRowMatchingFilters:R,filterModel:O!=null?O:Xf()});return P({},M,{filter:P({},M.filter,L)})}),e.current.publishEvent("filteredRowsSet")},[t.filterMode,e]),a=u.useCallback(()=>{s(),e.current.forceUpdate()},[e,s]),c=u.useCallback(M=>{const O=Xr(e),R=[...O.items],L=R.findIndex(H=>H.id===M.id);L===-1?R.push(M):R[L]=M,e.current.setFilterModel(P({},O,{items:R}),"upsertFilterItem")},[e]),d=u.useCallback(M=>{const O=Xr(e),R=[...O.items];M.forEach(L=>{const H=M.findIndex(j=>j.id===L.id);H===-1?R.push(L):R[H]=L}),e.current.setFilterModel(P({},O,{items:M}),"upsertFilterItems")},[e]),p=u.useCallback(M=>{const O=Xr(e),R=O.items.filter(L=>L.id!==M.id);R.length!==O.items.length&&e.current.setFilterModel(P({},O,{items:R}),"deleteFilterItem")},[e]),h=u.useCallback(M=>{if(i.debug("Displaying filter panel"),M){const O=Xr(e),R=O.items.filter(j=>{var A;if(j.value!==void 0)return!0;const z=(A=e.current.getColumn(j.columnField).filterOperators)==null?void 0:A.find(N=>N.value===j.operatorValue);return!(typeof(z==null?void 0:z.requiresFilterValue)=="undefined"?!0:z==null?void 0:z.requiresFilterValue)});let L;R.find(j=>j.columnField===M)?L=R:t.disableMultipleColumnsFiltering?L=[xw({columnField:M},e)]:L=[...R,xw({columnField:M},e)],e.current.setFilterModel(P({},O,{items:L}))}e.current.showPreferences(Kl.filters)},[e,i,t.disableMultipleColumnsFiltering]),m=u.useCallback(()=>{i.debug("Hiding filter panel"),e.current.hidePreferences()},[e,i]),v=u.useCallback(M=>{const O=Xr(e);O.linkOperator!==M&&e.current.setFilterModel(P({},O,{linkOperator:M}),"changeLogicOperator")},[e]),b=u.useCallback(M=>{const O=Xr(e);Ns(O.quickFilterValues,M)||e.current.setFilterModel(P({},O,{quickFilterValues:[...M]}))},[e]),g=u.useCallback((M,O)=>{Xr(e)!==M&&(i.debug("Setting filter model"),e.current.unstable_updateControlState("filter",X$(M,t.disableMultipleColumnsFiltering,e),O),e.current.unstable_applyFilters())},[e,i,t.disableMultipleColumnsFiltering]),S=u.useCallback(()=>{const M=Qs(e);return new Map(M.map(O=>[O.id,O.model]))},[e]);Jt(e,{setFilterLinkOperator:v,unstable_applyFilters:a,deleteFilterItem:p,upsertFilterItem:c,upsertFilterItems:d,setFilterModel:g,showFilterPanel:h,hideFilterPanel:m,getVisibleRowModels:S,setQuickFilterValues:b});const E=u.useCallback((M,O)=>{var R,L;const H=Xr(e);return!O.exportOnlyDirtyModels||t.filterModel!=null||((R=t.initialState)==null||(L=R.filter)==null?void 0:L.filterModel)!=null||!Ns(H,Xf())?P({},M,{filter:{filterModel:H}}):M},[e,t.filterModel,(n=t.initialState)==null||(r=n.filter)==null?void 0:r.filterModel]),w=u.useCallback((M,O)=>{var R;const L=(R=O.stateToRestore.filter)==null?void 0:R.filterModel;return L==null?M:(e.current.unstable_updateControlState("filter",X$(L,t.disableMultipleColumnsFiltering,e),"restoreState"),P({},M,{callbacks:[...M.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),x=u.useCallback((M,O)=>{if(O===Kl.filters){var R;const L=t.components.FilterPanel;return T.jsx(L,P({},(R=t.componentsProps)==null?void 0:R.filterPanel))}return M},[t.components.FilterPanel,(o=t.componentsProps)==null?void 0:o.filterPanel]),k=u.useCallback(M=>{if(t.filterMode===uu.client&&M.isRowMatchingFilters){const O=xa(e),R={};for(let L=0;L<O.length;L+=1){const H=O[L];let j;if(typeof H=="string"&&H.startsWith("auto-generated-group-footer"))j=!0;else{const{passingFilterItems:A,passingQuickFilterValues:F}=M.isRowMatchingFilters(H);j=Nfe([A],[F],M.filterModel,e)}R[H]=j}return{filteredRowsLookup:R,visibleRowsLookup:R,filteredDescendantCountLookup:{}}}return{visibleRowsLookup:{},filteredRowsLookup:{},filteredDescendantCountLookup:{}}},[e,t.filterMode]);hr(e,"exportState",E),hr(e,"restoreState",w),hr(e,"preferencePanel",x),OS(e,Ip,"filtering",k);const I=u.useCallback(()=>{i.debug("onColUpdated - GridColumns changed, applying filters");const M=Xr(e),O=lle(e),R=M.items.filter(L=>L.columnField&&O[L.columnField]);R.length<M.items.length&&e.current.setFilterModel(P({},M,{items:R}))},[e,i]),_=u.useCallback(M=>{M==="filtering"&&e.current.unstable_applyFilters()},[e]);Ne(e,"rowsSet",s),Ne(e,"rowExpansionChange",e.current.unstable_applyFilters),Ne(e,"columnsChange",I),Ne(e,"activeStrategyProcessorChange",_),_p(()=>{e.current.unstable_applyFilters()}),u.useEffect(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,i,t.filterModel])},zfe=e=>P({},e,{focus:{cell:null,columnHeader:null},tabIndex:{cell:null,columnHeader:null}}),jfe=(e,t)=>{const n=er(e,"useGridFocus"),r=u.useRef(null),o=u.useCallback((S,C)=>{S&&e.current.getRow(S.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(S.id,S.field),C)},[e]),i=u.useCallback((S,C)=>{const E=Ei(e);(E==null?void 0:E.id)===S&&(E==null?void 0:E.field)===C||(e.current.setState(w=>(n.debug(`Focusing on cell with id=${S} and field=${C}`),P({},w,{tabIndex:{cell:{id:S,field:C},columnHeader:null},focus:{cell:{id:S,field:C},columnHeader:null}}))),e.current.forceUpdate(),e.current.getRow(S)&&(E&&o(E,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(S,C))))},[e,n,o]),s=u.useCallback((S,C={})=>{const E=Ei(e);o(E,C),e.current.setState(w=>(n.debug(`Focusing on column header with colIndex=${S}`),P({},w,{tabIndex:{columnHeader:{field:S},cell:null},focus:{columnHeader:{field:S},cell:null}}))),e.current.forceUpdate()},[e,n,o]),a=u.useCallback((S,C,E)=>{let w=e.current.getColumnIndex(C),x=e.current.getRowIndexRelativeToVisibleRows(S);const k=Ar(e);E==="right"?w+=1:E==="left"?w-=1:x+=1;const I=oy(e,{pagination:t.pagination,paginationMode:t.paginationMode});w>=k.length?(x+=1,x<I.rows.length&&(w=0)):w<0&&(x-=1,x>=0&&(w=k.length-1)),x=Lu(x,0,I.rows.length-1);const _=I.rows[x],M=e.current.unstable_getCellColSpanInfo(_.id,w);M&&M.spannedByColSpan&&(E==="left"||E==="below"?w=M.leftVisibleCellIndex:E==="right"&&(w=M.rightVisibleCellIndex)),w=Lu(w,0,k.length-1);const O=k[w];e.current.setCellFocus(_.id,O.field)},[e,t.pagination,t.paginationMode]),c=u.useCallback(({id:S,field:C})=>{e.current.setCellFocus(S,C)},[e]),d=u.useCallback((S,C)=>{C.key==="Enter"||C.key==="Tab"||Pp(C.key)||e.current.setCellFocus(S.id,S.field)},[e]),p=u.useCallback(({field:S},C)=>{C.target===C.currentTarget&&e.current.setColumnHeaderFocus(S,C)},[e]),h=u.useCallback(()=>{n.debug("Clearing focus"),e.current.setState(S=>P({},S,{focus:{cell:null,columnHeader:null}}))},[n,e]),m=u.useCallback(S=>{r.current=S},[]),v=u.useCallback(S=>{const C=r.current;r.current=null;const E=Ei(e);if(!E){C&&e.current.setCellFocus(C.id,C.field);return}if((C==null?void 0:C.id)===E.id&&(C==null?void 0:C.field)===E.field)return;const w=e.current.getCellElement(E.id,E.field);w!=null&&w.contains(S.target)||(C?e.current.setCellFocus(C.id,C.field):(e.current.setState(x=>P({},x,{focus:{cell:null,columnHeader:null}})),e.current.forceUpdate(),o(E,S)))},[e,o]),b=u.useCallback(S=>{if(S.cellMode==="view")return;const C=Ei(e);((C==null?void 0:C.id)!==S.id||(C==null?void 0:C.field)!==S.field)&&e.current.setCellFocus(S.id,S.field)},[e]),g=u.useCallback(()=>{const S=Ei(e);S&&!e.current.getRow(S.id)&&e.current.setState(C=>P({},C,{focus:{cell:null,columnHeader:null}}))},[e]);Jt(e,{setCellFocus:i,setColumnHeaderFocus:s,unstable_moveFocusToRelativeCell:a}),u.useEffect(()=>{const S=gn(e.current.rootElementRef.current);return S.addEventListener("click",v),()=>{S.removeEventListener("click",v)}},[e,v]),Ne(e,"columnHeaderBlur",h),Ne(e,"cellDoubleClick",c),Ne(e,"cellMouseDown",m),Ne(e,"cellKeyDown",d),Ne(e,"cellModeChange",b),Ne(e,"columnHeaderFocus",p),Ne(e,"rowsSet",g)};function Hfe(e,t){const n=Cp(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const Vfe=(e,t)=>{const n=er(e,"useGridKeyboardNavigation"),r=oc(e,t).rows,o=u.useMemo(()=>Hfe(e,r),[e,r]),i=u.useCallback((h,m,v="left")=>{const b=Qs(e),g=e.current.unstable_getCellColSpanInfo(m,h);g&&g.spannedByColSpan&&(v==="left"?h=g.leftVisibleCellIndex:v==="right"&&(h=g.rightVisibleCellIndex));const S=b.findIndex(E=>E.id===m);n.debug(`Navigating to cell row ${S}, col ${h}`),e.current.scrollToIndexes({colIndex:h,rowIndex:S});const C=e.current.getVisibleColumns()[h].field;e.current.setCellFocus(m,C)},[e,n]),s=u.useCallback((h,m)=>{n.debug(`Navigating to header col ${h}`),e.current.scrollToIndexes({colIndex:h});const v=e.current.getVisibleColumns()[h].field;e.current.setColumnHeaderFocus(v,m)},[e,n]),a=u.useCallback(h=>o[h].id,[o]),c=u.useCallback((h,m)=>{const v=e.current.getRootDimensions();if(o.length===0||!v)return;const b=e.current.unstable_getViewportPageSize(),g=h.field?e.current.getColumnIndex(h.field):0,S=o.findIndex(I=>I.id===h.id),C=0,E=o.length-1,w=0,x=Ar(e).length-1;let k=!0;switch(m.key){case"ArrowDown":case"Enter":{S<E&&i(g,a(S+1));break}case"ArrowUp":{S>C?i(g,a(S-1)):s(g,m);break}case"ArrowRight":{g<x&&i(g+1,a(S),"right");break}case"ArrowLeft":{g>w&&i(g-1,a(S));break}case"Tab":{m.shiftKey&&g>w?i(g-1,a(S),"left"):!m.shiftKey&&g<x&&i(g+1,a(S),"right");break}case" ":{if(h.field===RS)break;const _=h.colDef;if(_&&_.type==="treeDataGroup")break;!m.shiftKey&&S<E&&i(g,a(Math.min(S+b,E)));break}case"PageDown":{S<E&&i(g,a(Math.min(S+b,E)));break}case"PageUp":{const I=Math.max(S-b,C);I!==S&&I>=C?i(g,a(I)):s(g,m);break}case"Home":{m.ctrlKey||m.metaKey||m.shiftKey?i(w,a(C)):i(w,a(S));break}case"End":{m.ctrlKey||m.metaKey||m.shiftKey?i(x,a(E)):i(x,a(S));break}default:k=!1}k&&m.preventDefault()},[e,o,i,s,a]),d=u.useCallback((h,m)=>{const v=m.currentTarget.querySelector(`.${ee.columnHeaderTitleContainerContent}`);if(!!v&&v.contains(m.target)&&h.field!==kp.field||!e.current.getRootDimensions())return;const S=e.current.unstable_getViewportPageSize(),C=h.field?e.current.getColumnIndex(h.field):0,E=0,w=o.length-1,x=0,k=Ar(e).length-1;let I=!0;switch(m.key){case"ArrowDown":{i(C,a(E));break}case"ArrowRight":{C<k&&s(C+1,m);break}case"ArrowLeft":{C>x&&s(C-1,m);break}case"PageDown":{w!==null&&i(C,a(Math.min(E+S,w)));break}case"Home":{s(x,m);break}case"End":{s(k,m);break}case"Enter":{(m.ctrlKey||m.metaKey)&&e.current.toggleColumnMenu(h.field);break}case" ":break;default:I=!1}I&&m.preventDefault()},[e,o,i,s,a]),p=u.useCallback((h,m)=>{if(!m.currentTarget.contains(m.target))return;const v=e.current.getCellParams(h.id,h.field);v.cellMode!==Tt.Edit&&Pp(m.key)&&e.current.publishEvent("cellNavigationKeyDown",v,m)},[e]);Ne(e,"cellNavigationKeyDown",c),Ne(e,"columnHeaderKeyDown",d),Ne(e,"cellKeyDown",p)},yF=e=>e?0:100,Q$=e=>t=>P({},t,{pagination:P({},t.pagination,{pageSize:e})}),Ufe=(e,t)=>{var n,r;const o=er(e,"useGridPageSize"),i=Ye(e,Sp);e.current.unstable_registerControlState({stateId:"pageSize",propModel:t.pageSize,propOnChange:t.onPageSizeChange,stateSelector:vf,changeEvent:"pageSizeChange"});const a={setPageSize:u.useCallback(h=>{h!==vf(e)&&(o.debug(`Setting page size to ${h}`),e.current.setState(Q$(h)),e.current.forceUpdate())},[e,o])};Jt(e,a);const c=u.useCallback((h,m)=>{var v,b;const g=vf(e);return!m.exportOnlyDirtyModels||t.pageSize!=null||((v=t.initialState)==null||(b=v.pagination)==null?void 0:b.pageSize)!=null||g!==yF(t.autoPageSize)?P({},h,{pagination:P({},h.pagination,{pageSize:g})}):h},[e,t.pageSize,(n=t.initialState)==null||(r=n.pagination)==null?void 0:r.pageSize,t.autoPageSize]),d=u.useCallback((h,m)=>{var v;const b=(v=m.stateToRestore.pagination)==null?void 0:v.pageSize;return b!=null&&e.current.setState(Q$(b)),h},[e]);hr(e,"exportState",c),hr(e,"restoreState",d);const p=u.useCallback(()=>{const h=e.current.getRootDimensions();if(!t.autoPageSize||!h)return;const m=mF(e),v=Math.floor((h.viewportInnerSize.height-m.top-m.bottom)/i);e.current.setPageSize(v)},[e,t.autoPageSize,i]);Ne(e,"viewportInnerSizeChange",p),u.useEffect(()=>{t.pageSize!=null&&!t.autoPageSize&&e.current.setPageSize(t.pageSize)},[e,t.autoPageSize,t.pageSize]),u.useEffect(()=>{p()},[p])},Sw=(e,t)=>t>0&&e>0?Math.ceil(e/t):0,Ew=e=>e.pageCount?P({},e,{page:Math.max(Math.min(e.page,e.pageCount-1),0)}):e,J$=e=>t=>P({},t,{pagination:Ew(P({},t.pagination,{page:e}))});Oi(["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 Wfe=(e,t)=>{var n,r;const o=er(e,"useGridPage"),i=Ye(e,IA);e.current.unstable_registerControlState({stateId:"page",propModel:t.page,propOnChange:t.onPageChange,stateSelector:Kd,changeEvent:"pageChange"});const a={setPage:u.useCallback(m=>{o.debug(`Setting page to ${m}`),e.current.setState(J$(m)),e.current.forceUpdate()},[e,o])};Jt(e,a);const c=u.useCallback((m,v)=>{var b,g;const S=Kd(e);return!v.exportOnlyDirtyModels||t.page!=null||((b=t.initialState)==null||(g=b.pagination)==null?void 0:g.page)!=null||S!==0?P({},m,{pagination:P({},m.pagination,{page:S})}):m},[e,t.page,(n=t.initialState)==null||(r=n.pagination)==null?void 0:r.page]),d=u.useCallback((m,v)=>{var b,g;const S=(b=(g=v.stateToRestore.pagination)==null?void 0:g.page)!=null?b:Kd(e);return e.current.setState(J$(S)),m},[e]);hr(e,"exportState",c),hr(e,"restoreState",d);const p=m=>{e.current.setState(v=>{const b=Sw(v.pagination.rowCount,m);return P({},v,{pagination:Ew(P({},v.pagination,{pageCount:b,page:v.pagination.page}))})}),e.current.forceUpdate()},h=()=>e.current.scrollToIndexes({rowIndex:Kd(e)*vf(e)});Ne(e,"pageSizeChange",p),Ne(e,"pageChange",h),u.useEffect(()=>{},[t.rowCount,t.paginationMode]),u.useEffect(()=>{e.current.setState(m=>{const v=t.rowCount!==void 0?t.rowCount:i,b=Sw(v,m.pagination.pageSize),g=t.page==null?m.pagination.page:t.page;return P({},m,{pagination:Ew(P({},m.pagination,{page:g,rowCount:v,pageCount:b}))})}),e.current.forceUpdate()},[i,t.rowCount,t.page,t.paginationMode,e])},Gfe=(e,t)=>{var n,r,o,i,s,a,c,d;let p;return t.pageSize!=null?p=t.pageSize:((n=t.initialState)==null||(r=n.pagination)==null?void 0:r.pageSize)!=null?p=t.initialState.pagination.pageSize:p=yF(t.autoPageSize),P({},e,{pagination:{pageSize:p,page:(o=(i=t.page)!=null?i:(s=t.initialState)==null||(a=s.pagination)==null?void 0:a.page)!=null?o:0,pageCount:Sw((c=t.rowCount)!=null?c:0,p),rowCount:(d=t.rowCount)!=null?d:0}})},Kfe=(e,t)=>{Ufe(e,t),Wfe(e,t)},qfe=(e,t)=>{var n,r;return P({},e,{preferencePanel:(n=(r=t.initialState)==null?void 0:r.preferencePanel)!=null?n:{open:!1}})},Yfe=(e,t)=>{var n;const r=er(e,"useGridPreferencesPanel"),o=u.useRef(),i=u.useRef(),s=u.useCallback(()=>{r.debug("Hiding Preferences Panel");const m=yg(e.current.state);m.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:m.openedPanelValue}),e.current.setState(v=>P({},v,{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=>{r.debug("Opening Preferences Panel"),a(),e.current.setState(v=>P({},v,{preferencePanel:P({},v.preferencePanel,{open:!0,openedPanelValue:m})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:m}),e.current.forceUpdate()},[r,a,e]);Jt(e,{showPreferences:d,hidePreferences:c});const p=u.useCallback((m,v)=>{var b;const g=yg(e.current.state);return!v.exportOnlyDirtyModels||((b=t.initialState)==null?void 0:b.preferencePanel)!=null||g.open?P({},m,{preferencePanel:g}):m},[e,(n=t.initialState)==null?void 0:n.preferencePanel]),h=u.useCallback((m,v)=>{const b=v.stateToRestore.preferencePanel;return b!=null&&e.current.setState(g=>P({},g,{preferencePanel:b})),m},[e]);hr(e,"exportState",p),hr(e,"restoreState",h),u.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(i.current)},[])},Ln=e=>e.editRows;function Z$(e){return typeof e.then=="function"}const Xfe=(e,t)=>{var n;const r=er(e,"useGridEditRows"),o=w=>(...x)=>{t.editMode===Tr.Cell&&w(...x)},i=u.useCallback((w,x,k)=>{e.current.getCellMode(w,x)!==k&&(r.debug(`Switching cell id: ${w} field: ${x} to mode: ${k}`),e.current.setState(I=>{const _=P({},I.editRows);return _[w]=P({},_[w]),k===Tt.Edit?_[w][x]={value:e.current.getCellValue(w,x)}:(delete _[w][x],Object.keys(_[w]).length||delete _[w]),P({},I,{editRows:_})}),e.current.forceUpdate(),e.current.publishEvent("cellModeChange",e.current.getCellParams(w,x)))},[e,r]),s=u.useCallback((w,x)=>{const k=Ln(e.current.state);return k[w]&&k[w][x]?Tt.Edit:Tt.View},[e]),a=u.useCallback((w,x={})=>{var k;const{id:I,field:_}=w;e.current.unstable_runPendingEditCellValueMutation(I,_);const M=e.current.getEditRowsModel();if(!M[I]||!M[I][_])throw new Error(`MUI: Cell at id: ${I} and field: ${_} is not in edit mode.`);const O=M[I][_],R=e.current.getColumn(_),L=e.current.getRow(I);if((k=t.experimentalFeatures)!=null&&k.preventCommitWhileValidating){const A=M[I][_];if(A.isValidating||A.error)return!1}const H=P({},w,{value:O.value});let j=!!O.error;if(!j&&typeof R.preProcessEditCellProps=="function"){const A=R.preProcessEditCellProps({id:I,row:L,props:O});if(Z$(A))return A.then(F=>(e.current.unstable_setEditCellProps({id:I,field:_,props:F}),F.error?!1:(e.current.publishEvent("cellEditCommit",H,x),!0)));e.current.unstable_setEditCellProps({id:I,field:_,props:A}),j=!!A.error}return j?!1:(e.current.publishEvent("cellEditCommit",H,x),!0)},[e,(n=t.experimentalFeatures)==null?void 0:n.preventCommitWhileValidating]),c=u.useCallback(w=>{const x=e.current.getColumn(w.field),k=e.current.getRow(w.id);return new Promise(I=>{let _={value:w.value};const O=e.current.getEditRowsModel()[w.id][w.field];if(typeof x.preProcessEditCellProps!="function"){e.current.unstable_setEditCellProps(P({},w,{props:_})),I(!0);return}_=e.current.unstable_setEditCellProps(P({},w,{props:P({},O,{isValidating:!0})})),Promise.resolve(x.preProcessEditCellProps({id:w.id,row:k,props:P({},_,{value:e.current.unstable_parseValue(w.id,w.field,w.value)})})).then(R=>{e.current.unstable_setEditCellProps(P({},w,{props:P({},R,{isValidating:!1})})),I(!R.error)})})},[e]);Jt(e,{setCellMode:i,getCellMode:s,commitCellChange:a,unstable_setCellEditingEditCellValue:c});const p=u.useCallback((w,x)=>lt(void 0,null,function*(){if(x.which===229)return;const{id:k,field:I,cellMode:_,isEditable:M}=w;if(!M)return;const O=_===Tt.Edit,R=x.ctrlKey||x.metaKey||x.altKey;if(!O&&hae(x)&&!R&&!(x.key===" "&&x.shiftKey)&&e.current.publishEvent("cellEditStart",w,x),!O&&vw(x.key)&&(e.current.setEditCellValue({id:k,field:I,value:""}),e.current.commitCellChange({id:k,field:I},x),e.current.publishEvent("cellEditStop",w,x)),O&&A$(x.key)){const L={id:k,field:I};if(!(yield e.current.commitCellChange(L,x)))return}O&&mae(x.key)&&e.current.publishEvent("cellEditStop",w,x)}),[e]),h=u.useCallback((w,x)=>{w.isEditable&&e.current.publishEvent("cellEditStart",w,x)},[e]),m=(w,x)=>lt(void 0,null,function*(){w.cellMode!==Tt.View&&(yield e.current.commitCellChange(w,x),e.current.publishEvent("cellEditStop",w,x))}),v=dn((w,x)=>{m(w,x)}),b=dn(()=>{const w=Ei(e);if(!w)return;const x=e.current.getCellParams(w.id,w.field);m(x,{})}),g=u.useCallback((w,x)=>{w.isEditable&&(e.current.setCellMode(w.id,w.field,Tt.Edit),yw(x)&&ny(x)&&e.current.unstable_setEditCellProps({id:w.id,field:w.field,props:{value:""}}))},[e]),S=u.useCallback((w,x)=>{if(e.current.setCellMode(w.id,w.field,Tt.View),!!yw(x)){if(A$(x.key)){e.current.publishEvent("cellNavigationKeyDown",w,x);return}(x.key==="Escape"||vw(x.key))&&e.current.setCellFocus(w.id,w.field)}},[e]),C=u.useCallback(w=>{const{id:x,field:k}=w,I=e.current.getEditRowsModel(),{value:_}=I[x][k];r.debug(`Setting cell id: ${x} field: ${k} to value: ${_==null?void 0:_.toString()}`);const M=e.current.getRow(x);if(M){const O=e.current.getColumn(w.field);let R=P({},M,{[k]:_});O.valueSetter&&(R=O.valueSetter({row:M,value:_})),e.current.updateRows([R])}},[e,r]),E=u.useCallback(w=>{const x=e.current.getRow(w.id),k=e.current.getColumn(w.field),I=k.preProcessEditCellProps?k.preProcessEditCellProps({id:w.id,row:x,props:w.props}):w.props;Z$(I)?I.then(_=>{e.current.unstable_setEditCellProps(P({},w,{props:_}))}):e.current.unstable_setEditCellProps(P({},w,{props:I}))},[e]);Ne(e,"cellKeyDown",o(p)),Ne(e,"cellDoubleClick",o(h)),Ne(e,"cellFocusOut",o(v)),Ne(e,"columnHeaderDragStart",o(b)),Ne(e,"cellEditStart",o(g)),Ne(e,"cellEditStop",o(S)),Ne(e,"cellEditCommit",o(C)),Ne(e,"editCellPropsChange",o(E)),jt(e,"cellEditCommit",t.onCellEditCommit),jt(e,"cellEditStart",t.onCellEditStart),jt(e,"cellEditStop",t.onCellEditStop)},Qfe=(e,t)=>{var n,r;const o=u.useRef(null),i=u.useRef(null),s=Ye(e,$i),a=_=>(...M)=>{t.editMode===Tr.Row&&_(...M)},c=u.useCallback((_,M)=>{M!==e.current.getRowMode(_)&&(e.current.setState(O=>{const R=P({},O.editRows);return M===Kt.Edit?(R[_]={},s.forEach(L=>{const H=e.current.getCellParams(_,L.field);H.isEditable&&(R[_][L.field]={value:H.value})})):delete R[_],P({},O,{editRows:R})}),e.current.forceUpdate())},[e,s]),d=u.useCallback(_=>t.editMode===Tr.Cell?Kt.View:Ln(e.current.state)[_]?Kt.Edit:Kt.View,[e,t.editMode]),p=u.useCallback((_,M={})=>{var O;if(t.editMode===Tr.Cell)throw new Error("MUI: You can't commit changes when the edit mode is 'cell'.");e.current.unstable_runPendingEditCellValueMutation(_);const L=e.current.getEditRowsModel()[_];if(!L)throw new Error(`MUI: Row at id: ${_} is not being edited.`);if((O=t.experimentalFeatures)!=null&&O.preventCommitWhileValidating&&!Object.keys(L).reduce((F,z)=>F&&!L[z].isValidating&&!L[z].error,!0)||Object.values(L).some(A=>!!A.error))return!1;const j=Object.keys(L).filter(A=>typeof e.current.getColumn(A).preProcessEditCellProps=="function");if(j.length>0){const A=e.current.getRow(_),F=j.map(z=>lt(void 0,null,function*(){const G=e.current.getColumn(z),N=yield Promise.resolve(G.preProcessEditCellProps({id:_,row:A,props:L[z]}));return e.current.unstable_setEditCellProps({id:_,field:z,props:N}),N.error}));return Promise.all(F).then(z=>z.some(G=>!!G)?!1:(e.current.publishEvent("rowEditCommit",_,M),!0))}return e.current.publishEvent("rowEditCommit",_,M),!0},[e,t.editMode,(n=t.experimentalFeatures)==null?void 0:n.preventCommitWhileValidating]),h=u.useCallback(_=>{const O=e.current.getEditRowsModel()[_.id],R=e.current.getRow(_.id);let L=!0;return new Promise(H=>{Object.keys(O).forEach(j=>lt(void 0,null,function*(){const A=e.current.getColumn(j);let F=j===_.field?{value:_.value}:O[j];F=e.current.unstable_setEditCellProps({id:_.id,field:j,props:P({},F,{isValidating:!0})}),A.preProcessEditCellProps&&(F=yield Promise.resolve(A.preProcessEditCellProps({id:_.id,row:R,props:P({},F,{value:j===_.field?e.current.unstable_parseValue(_.id,j,_.value):F.value})}))),F.error&&(L=!1),e.current.unstable_setEditCellProps({id:_.id,field:j,props:P({},F,{isValidating:!1})})})),H(L)})},[e]);Jt(e,{setRowMode:c,getRowMode:d,commitRowChange:p,unstable_setRowEditingEditCellValue:h});const v=u.useCallback((_,M)=>lt(void 0,null,function*(){if(M.which===229)return;const{cellMode:O,isEditable:R}=_;if(!R)return;const L=O===Tt.Edit,H=e.current.getRowParams(_.id);if(L)if(M.key==="Enter"){var j;if(!(yield e.current.commitRowChange(_.id))&&(j=t.experimentalFeatures)!=null&&j.preventCommitWhileValidating)return;e.current.publishEvent("rowEditStop",H,M)}else M.key==="Escape"&&e.current.publishEvent("rowEditStop",H,M);else M.key==="Enter"&&e.current.publishEvent("rowEditStart",H,M)}),[e,(r=t.experimentalFeatures)==null?void 0:r.preventCommitWhileValidating]),b=u.useCallback((_,M)=>{if(!_.isEditable)return;const O=e.current.getRowParams(_.id);e.current.publishEvent("rowEditStart",O,M)},[e]),g=u.useCallback(_=>{const M=e.current.getRow(_.id),R=e.current.getEditRowsModel()[_.id];Object.keys(R).forEach(L=>lt(void 0,null,function*(){const H=e.current.getColumn(L);if(H.preProcessEditCellProps){const j=L===_.field?_.props:R[L],A=yield Promise.resolve(H.preProcessEditCellProps({id:_.id,row:M,props:j}));e.current.unstable_setEditCellProps({id:_.id,field:L,props:A})}else L===_.field&&e.current.unstable_setEditCellProps(_)}))},[e]),S=u.useCallback(_=>{e.current.setRowMode(_.id,Kt.Edit)},[e]),C=u.useCallback((_,M)=>{e.current.setRowMode(_.id,Kt.View),M.key==="Enter"&&e.current.publishEvent("cellNavigationKeyDown",_,M)},[e]),E=u.useCallback(_=>{const O=e.current.getEditRowsModel()[_];if(!O)throw new Error(`MUI: Row at id: ${_} is not being edited.`);const R=e.current.getRow(_);if(R){let L=P({},R);Object.keys(O).forEach(H=>{const j=e.current.getColumn(H),A=O[H].value;j.valueSetter?L=j.valueSetter({row:L,value:A}):L[H]=A}),e.current.updateRows([L])}},[e]),w=u.useCallback(_=>{i.current=_},[]),x=(_,M)=>lt(void 0,null,function*(){_.cellMode!==Tt.View&&(i.current=null,o.current=setTimeout(()=>lt(void 0,null,function*(){var O;if(((O=i.current)==null?void 0:O.id)!==_.id){yield e.current.commitRowChange(_.id,M);const R=e.current.getRowParams(_.id);e.current.publishEvent("rowEditStop",R,M)}})))}),k=dn((_,M)=>{x(_,M)}),I=dn(()=>{const _=Ei(e);if(!_)return;const M=e.current.getCellParams(_.id,_.field);x(M,{})});Ne(e,"cellKeyDown",a(v)),Ne(e,"cellDoubleClick",a(b)),Ne(e,"editCellPropsChange",a(g)),Ne(e,"rowEditStart",a(S)),Ne(e,"rowEditStop",a(C)),Ne(e,"rowEditCommit",a(E)),Ne(e,"cellFocusIn",a(w)),Ne(e,"cellFocusOut",a(k)),Ne(e,"columnHeaderDragStart",a(I)),jt(e,"rowEditCommit",t.onRowEditCommit),jt(e,"rowEditStart",t.onRowEditStart),jt(e,"rowEditStop",t.onRowEditStop)},Jfe=e=>P({},e,{editRows:{}});function Zfe(e,t){var n;const r=er(e,"useGridEditRows");Xfe(e,t),Qfe(e,t);const o=u.useRef({});e.current.unstable_registerControlState({stateId:"editRows",propModel:t.editRowsModel,propOnChange:t.onEditRowsModelChange,stateSelector:Ln,changeEvent:"editRowsModelChange"});const i=u.useCallback(g=>!g.rowNode.isAutoGenerated&&!g.rowNode.isPinned&&!!g.colDef.editable&&!!g.colDef.renderEditCell&&(!t.isCellEditable||t.isCellEditable(g)),[t.isCellEditable]),s=(g,S,C,E)=>{if(!C){E();return}if(o.current[g]||(o.current[g]={}),o.current[g][S]){const[k]=o.current[g][S];clearTimeout(k)}const w=()=>{E();const[k]=o.current[g][S];clearTimeout(k),delete o.current[g][S]},x=setTimeout(()=>{E(),delete o.current[g][S]},C);o.current[g][S]=[x,w]},a=u.useCallback((g,S)=>{if(o.current[g]){if(!S)Object.keys(o.current[g]).forEach(C=>{const[,E]=o.current[g][C];E()});else if(o.current[g][S]){const[,C]=o.current[g][S];C()}}},[]),c=u.useCallback((g,S={})=>{s(g.id,g.field,g.debounceMs,()=>{var C;if((C=t.experimentalFeatures)!=null&&C.preventCommitWhileValidating)return t.editMode==="row"?e.current.unstable_setRowEditingEditCellValue(g):e.current.unstable_setCellEditingEditCellValue(g);const E={id:g.id,field:g.field,props:{value:g.value}};return e.current.publishEvent("editCellPropsChange",E,S)})},[e,t.editMode,(n=t.experimentalFeatures)==null?void 0:n.preventCommitWhileValidating]),d=u.useCallback((g,S,C)=>{const E=e.current.getColumn(S);return E.valueParser?E.valueParser(C,e.current.getCellParams(g,S)):C},[e]),p=u.useCallback(g=>{const{id:S,field:C,props:E}=g;return r.debug(`Setting cell props on id: ${S} field: ${C}`),e.current.setState(x=>{const k=P({},x.editRows);return k[S]=P({},x.editRows[S]),k[S][C]=P({},E,{value:d(S,C,E.value)}),P({},x,{editRows:k})}),e.current.forceUpdate(),Ln(e.current.state)[S][C]},[e,r,d]),h=u.useCallback(g=>{Ln(e.current.state)!==g&&(r.debug("Setting editRows model"),e.current.setState(C=>P({},C,{editRows:g})),e.current.forceUpdate())},[e,r]),m=u.useCallback(()=>Ln(e.current.state),[e]),v=u.useCallback((g,S)=>{const C=S.detail>1;g.isEditable&&g.cellMode===Tt.View&&C&&S.preventDefault()},[]);Ne(e,"cellMouseDown",v),jt(e,"editCellPropsChange",t.onEditCellPropsChange),Jt(e,{isCellEditable:i,setEditRowsModel:h,getEditRowsModel:m,setEditCellValue:c,unstable_setEditCellProps:p,unstable_parseValue:d,unstable_runPendingEditCellValueMutation:a}),u.useEffect(()=>{t.editRowsModel!==void 0&&e.current.setEditRowsModel(t.editRowsModel)},[e,t.editRowsModel])}const epe=["id","field"],tpe=["id","field"],npe=Oi(["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/#persistence."],"error"),rpe=(e,t)=>{const[n,r]=u.useState({}),o=u.useRef(n),i=u.useRef({}),{processRowUpdate:s,onProcessRowUpdateError:a,cellModesModel:c,onCellModesModelChange:d,signature:p}=t,h=A=>(...F)=>{t.editMode===Tr.Cell&&A(...F)},m=u.useCallback((A,F)=>{const z=e.current.getCellParams(A,F);if(!e.current.isCellEditable(z))throw new Error(`MUI: The cell with id=${A} and field=${F} is not editable.`)},[e]),v=u.useCallback((A,F,z)=>{if(e.current.getCellMode(A,F)!==z)throw new Error(`MUI: The cell with id=${A} and field=${F} is not in ${z} mode.`)},[e]),b=u.useCallback((A,F)=>{if(!A.isEditable||A.cellMode===Tt.Edit)return;const z=P({},A,{reason:Ps.cellDoubleClick});e.current.publishEvent("cellEditStart",z,F)},[e]),g=u.useCallback((A,F)=>{if(A.cellMode===Tt.View||e.current.getCellMode(A.id,A.field)===Tt.View)return;const z=P({},A,{reason:Vi.cellFocusOut});e.current.publishEvent("cellEditStop",z,F)},[e]),S=u.useCallback((A,F)=>{if(A.cellMode===Tt.Edit){if(F.which===229)return;let z;if(F.key==="Escape"?z=Vi.escapeKeyDown:F.key==="Enter"?z=Vi.enterKeyDown:F.key==="Tab"&&(z=F.shiftKey?Vi.shiftTabKeyDown:Vi.tabKeyDown,F.preventDefault()),z){const G=P({},A,{reason:z});e.current.publishEvent("cellEditStop",G,F)}}else if(A.isEditable){let z;if(F.key===" "&&F.shiftKey)return;if(ny(F)||(F.ctrlKey||F.metaKey)&&F.key==="v"?z=Ps.printableKeyDown:F.key==="Enter"?z=Ps.enterKeyDown:(F.key==="Delete"||F.key==="Backspace")&&(z=Ps.deleteKeyDown),z){const G=P({},A,{reason:z,key:F.key});e.current.publishEvent("cellEditStart",G,F)}}},[e]),C=u.useCallback(A=>{const{id:F,field:z,reason:G,key:N}=A,B={id:F,field:z};G===Ps.printableKeyDown?u.version.startsWith("18")?B.initialValue=N:B.deleteValue=!0:G===Ps.deleteKeyDown&&(B.deleteValue=!0),e.current.startCellEditMode(B)},[e]),E=u.useCallback(A=>{const{id:F,field:z,reason:G}=A;e.current.unstable_runPendingEditCellValueMutation(F,z);let N;G===Vi.enterKeyDown?N="below":G===Vi.tabKeyDown?N="right":G===Vi.shiftTabKeyDown&&(N="left");let B=G==="escapeKeyDown";Ln(e.current.state)[F][z].isProcessingProps&&!t.disableIgnoreModificationsIfProcessingProps&&(B=!0),e.current.stopCellEditMode({id:F,field:z,ignoreModifications:B,cellToFocusAfter:N})},[e,t.disableIgnoreModificationsIfProcessingProps]);Ne(e,"cellDoubleClick",h(b)),Ne(e,"cellFocusOut",h(g)),Ne(e,"cellKeyDown",h(S)),Ne(e,"cellEditStart",h(C)),Ne(e,"cellEditStop",h(E)),jt(e,"cellEditStart",t.onCellEditStart),jt(e,"cellEditStop",t.onCellEditStop);const w=u.useCallback((A,F)=>{const z=Ln(e.current.state);return z[A]&&z[A][F]?Tt.Edit:Tt.View},[e]),x=dn(A=>{const F=A!==t.cellModesModel;if(d&&F){const z=p===Yl.DataGridPro?{api:e.current}:{};d(A,z)}t.cellModesModel&&F||(r(A),o.current=A,e.current.publishEvent("cellModesModelChange",A))}),k=u.useCallback((A,F,z)=>{const G=P({},o.current);if(z!==null)G[A]=P({},G[A],{[F]:P({},z)});else{const N=G[A],B=se(N,[F].map(Jf));G[A]=B,Object.keys(G[A]).length===0&&delete G[A]}x(G)},[x]),I=u.useCallback((A,F,z)=>{e.current.setState(G=>{const N=P({},G.editRows);return z!==null?N[A]=P({},N[A],{[F]:P({},z)}):(delete N[A][F],Object.keys(N[A]).length===0&&delete N[A]),P({},G,{editRows:N})}),e.current.forceUpdate()},[e]),_=u.useCallback(A=>{const{id:F,field:z}=A,G=se(A,epe);m(F,z),v(F,z,Tt.View),k(F,z,P({mode:Tt.Edit},G))},[m,v,k]),M=dn(A=>{const{id:F,field:z,deleteValue:G,initialValue:N}=A;let B=e.current.getCellValue(F,z);(G||N)&&(B=G?"":N),I(F,z,{value:B,error:!1,isProcessingProps:!1}),e.current.setCellFocus(F,z)}),O=u.useCallback(A=>{const{id:F,field:z}=A,G=se(A,tpe);v(F,z,Tt.Edit),k(F,z,P({mode:Tt.View},G))},[v,k]),R=dn(A=>lt(void 0,null,function*(){const{id:F,field:z,ignoreModifications:G,cellToFocusAfter:N="none"}=A;v(F,z,Tt.Edit),e.current.unstable_runPendingEditCellValueMutation(F,z);const B=()=>{I(F,z,null),k(F,z,null),N!=="none"&&e.current.unstable_moveFocusToRelativeCell(F,z,N)};if(G){B();return}const W=Ln(e.current.state),{error:q,isProcessingProps:X}=W[F][z];if(q||X){i.current[F][z].mode=Tt.Edit,k(F,z,{mode:Tt.Edit});return}const ie=e.current.unstable_getRowWithUpdatedValuesFromCellEditing(F,z);if(s){const J=fe=>{i.current[F][z].mode=Tt.Edit,k(F,z,{mode:Tt.Edit}),a?a(fe):npe()};try{const fe=e.current.getRow(F);Promise.resolve(s(ie,fe)).then(Q=>{e.current.updateRows([Q]),B()}).catch(J)}catch(fe){J(fe)}}else e.current.updateRows([ie]),B()})),L=u.useCallback(A=>lt(void 0,null,function*(){var F,z;const{id:G,field:N,value:B,debounceMs:W,unstable_skipValueParser:q}=A;m(G,N),v(G,N,Tt.Edit);const X=e.current.getColumn(N),ie=e.current.getRow(G);let J=B;X.valueParser&&!q&&(J=X.valueParser(B,e.current.getCellParams(G,N)));let fe=Ln(e.current.state),Q=P({},fe[G][N],{value:J,changeReason:W?"debouncedSetEditCellValue":"setEditCellValue"});if(X.preProcessEditCellProps){const le=B!==fe[G][N].value;Q=P({},Q,{isProcessingProps:!0}),I(G,N,Q),Q=yield Promise.resolve(X.preProcessEditCellProps({id:G,row:ie,props:Q,hasChanged:le}))}return e.current.getCellMode(G,N)===Tt.View?!1:(fe=Ln(e.current.state),Q=P({},Q,{isProcessingProps:!1}),Q.value=X.preProcessEditCellProps?fe[G][N].value:J,I(G,N,Q),fe=Ln(e.current.state),!((F=fe[G])!=null&&(z=F[N])!=null&&z.error))}),[e,m,v,I]),H=u.useCallback((A,F)=>{const z=e.current.getColumn(F),G=Ln(e.current.state),{value:N}=G[A][F],B=e.current.getRow(A);return z.valueSetter?z.valueSetter({value:N,row:B}):P({},B,{[F]:N})},[e]);Jt(e,{getCellMode:w,startCellEditMode:_,stopCellEditMode:O,unstable_setCellEditingEditCellValue:L,unstable_getRowWithUpdatedValuesFromCellEditing:H}),u.useEffect(()=>{c&&x(c)},[c,x]),u.useEffect(()=>{const A=yS(e),F=i.current;i.current=XA(n),Object.entries(n).forEach(([z,G])=>{Object.entries(G).forEach(([N,B])=>{var W,q,X;const ie=((W=F[z])==null||(q=W[N])==null?void 0:q.mode)||Tt.View,J=(X=A[z])!=null?X:z;B.mode===Tt.Edit&&ie===Tt.View?M(P({id:J,field:N},B)):B.mode===Tt.View&&ie===Tt.Edit&&R(P({id:J,field:N},B))})})},[e,n,M,R])},ope=["id"],ipe=["id"],spe=Oi(["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/#persistence."],"error"),lpe=(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,signature:m}=t,v=N=>(...B)=>{t.editMode===Tr.Row&&N(...B)},b=u.useCallback((N,B)=>{const W=e.current.getCellParams(N,B);if(!e.current.isCellEditable(W))throw new Error(`MUI: The cell with id=${N} and field=${B} is not editable.`)},[e]),g=u.useCallback((N,B)=>{if(e.current.getRowMode(N)!==B)throw new Error(`MUI: The row with id=${N} is not in ${B} mode.`)},[e]),S=u.useCallback((N,B)=>{if(!N.isEditable||e.current.getRowMode(N.id)===Kt.Edit)return;const W=e.current.getRowParams(N.id),q=P({},W,{field:N.field,reason:ks.cellDoubleClick});e.current.publishEvent("rowEditStart",q,B)},[e]),C=u.useCallback(N=>{a.current=N},[]),E=u.useCallback((N,B)=>{N.isEditable&&e.current.getRowMode(N.id)!==Kt.View&&(a.current=null,s.current=setTimeout(()=>{var W;if(s.current=null,((W=a.current)==null?void 0:W.id)!==N.id){if(!e.current.getRow(N.id)||e.current.getRowMode(N.id)===Kt.View)return;const q=e.current.getRowParams(N.id),X=P({},q,{field:N.field,reason:Ui.rowFocusOut});e.current.publishEvent("rowEditStop",X,B)}}))},[e]);u.useEffect(()=>()=>{clearTimeout(s.current)},[]);const w=u.useCallback((N,B)=>{if(N.cellMode===Kt.Edit){if(B.which===229)return;let W;if(B.key==="Escape")W=Ui.escapeKeyDown;else if(B.key==="Enter")W=Ui.enterKeyDown;else if(B.key==="Tab"){const q=Ou(e).filter(X=>e.current.isCellEditable(e.current.getCellParams(N.id,X)));B.shiftKey?N.field===q[0]&&(W=Ui.shiftTabKeyDown):N.field===q[q.length-1]&&(W=Ui.tabKeyDown),W&&B.preventDefault()}if(W){const q=e.current.getRowParams(N.id),X=P({},q,{reason:W,field:N.field});e.current.publishEvent("rowEditStop",X,B)}}else if(N.isEditable){let W;if(B.key===" "&&B.shiftKey)return;if(ny(B)||(B.ctrlKey||B.metaKey)&&B.key==="v"?W=ks.printableKeyDown:B.key==="Enter"?W=ks.enterKeyDown:(B.key==="Delete"||B.key==="Backspace")&&(W=ks.deleteKeyDown),W){const q=e.current.getRowParams(N.id),X=P({},q,{field:N.field,key:B.key,reason:W});e.current.publishEvent("rowEditStart",X,B)}}},[e]),x=u.useCallback(N=>{const{id:B,field:W,reason:q,key:X}=N,ie={id:B,fieldToFocus:W};q===ks.printableKeyDown?u.version.startsWith("18")?ie.initialValue=X:ie.deleteValue=!!W:q===ks.deleteKeyDown&&(ie.deleteValue=!!W),e.current.startRowEditMode(ie)},[e]),k=u.useCallback(N=>{const{id:B,reason:W,field:q}=N;e.current.unstable_runPendingEditCellValueMutation(B);let X;W===Ui.enterKeyDown?X="below":W===Ui.tabKeyDown?X="right":W===Ui.shiftTabKeyDown&&(X="left");let ie=W==="escapeKeyDown";const J=Ln(e.current.state);!ie&&!t.disableIgnoreModificationsIfProcessingProps&&(ie=Object.values(J[B]).some(fe=>fe.isProcessingProps)),e.current.stopRowEditMode({id:B,ignoreModifications:ie,field:q,cellToFocusAfter:X})},[e,t.disableIgnoreModificationsIfProcessingProps]);Ne(e,"cellDoubleClick",v(S)),Ne(e,"cellFocusIn",v(C)),Ne(e,"cellFocusOut",v(E)),Ne(e,"cellKeyDown",v(w)),Ne(e,"rowEditStart",v(x)),Ne(e,"rowEditStop",v(k)),jt(e,"rowEditStart",t.onRowEditStart),jt(e,"rowEditStop",t.onRowEditStop);const I=u.useCallback(N=>{if(t.editMode===Tr.Cell)return Kt.View;const B=Ln(e.current.state);return B[N]&&Object.keys(B[N]).length>0?Kt.Edit:Kt.View},[e,t.editMode]),_=dn(N=>{const B=N!==t.rowModesModel;if(h&&B){const W=m===Yl.DataGridPro?{api:e.current}:{};h(N,W)}t.rowModesModel&&B||(r(N),o.current=N,e.current.publishEvent("rowModesModelChange",N))}),M=u.useCallback((N,B)=>{const W=P({},o.current);B!==null?W[N]=P({},B):delete W[N],_(W)},[_]),O=u.useCallback((N,B)=>{e.current.setState(W=>{const q=P({},W.editRows);return B!==null?q[N]=B:delete q[N],P({},W,{editRows:q})}),e.current.forceUpdate()},[e]),R=u.useCallback((N,B,W)=>{e.current.setState(q=>{const X=P({},q.editRows);return W!==null?X[N]=P({},X[N],{[B]:P({},W)}):(delete X[N][B],Object.keys(X[N]).length===0&&delete X[N]),P({},q,{editRows:X})}),e.current.forceUpdate()},[e]),L=u.useCallback(N=>{const{id:B}=N,W=se(N,ope);g(B,Kt.View),M(B,P({mode:Kt.Edit},W))},[g,M]),H=dn(N=>{const{id:B,fieldToFocus:W,deleteValue:q,initialValue:X}=N,J=Ou(e).reduce((fe,Q)=>{if(!e.current.getCellParams(B,Q).isEditable)return fe;let ne=e.current.getCellValue(B,Q);return W===Q&&(q||X)&&(ne=q?"":X),fe[Q]={value:ne,error:!1,isProcessingProps:!1},fe},{});O(B,J),W&&e.current.setCellFocus(B,W)}),j=u.useCallback(N=>{const{id:B}=N,W=se(N,ipe);g(B,Kt.Edit),M(B,P({mode:Kt.View},W))},[g,M]),A=dn(N=>{const{id:B,ignoreModifications:W,field:q,cellToFocusAfter:X="none"}=N;e.current.unstable_runPendingEditCellValueMutation(B);const ie=()=>{X!=="none"&&q&&e.current.unstable_moveFocusToRelativeCell(B,q,X),O(B,null),M(B,null)};if(W){ie();return}const J=Ln(e.current.state),fe=e.current.getRow(B);if(Object.values(J[B]).some(he=>he.isProcessingProps)){i.current[B].mode=Kt.Edit;return}if(Object.values(J[B]).some(he=>he.error)){i.current[B].mode=Kt.Edit,M(B,{mode:Kt.Edit});return}const ne=e.current.unstable_getRowWithUpdatedValuesFromRowEditing(B);if(c){const he=be=>{i.current[B].mode=Kt.Edit,M(B,{mode:Kt.Edit}),d?d(be):spe()};try{Promise.resolve(c(ne,fe)).then(be=>{e.current.updateRows([be]),ie()}).catch(he)}catch(be){he(be)}}else e.current.updateRows([ne]),ie()}),F=u.useCallback(N=>{const{id:B,field:W,value:q,debounceMs:X,unstable_skipValueParser:ie}=N;b(B,W);const J=e.current.getColumn(W),fe=e.current.getRow(B);let Q=q;J.valueParser&&!ie&&(Q=J.valueParser(q,e.current.getCellParams(B,W)));let le=Ln(e.current.state),ne=P({},le[B][W],{value:Q,changeReason:X?"debouncedSetEditCellValue":"setEditCellValue"});return J.preProcessEditCellProps||R(B,W,ne),new Promise(he=>{const be=[];if(J.preProcessEditCellProps){const ge=ne.value!==le[B][W].value;ne=P({},ne,{isProcessingProps:!0}),R(B,W,ne);const $e=le[B],Be=se($e,[W].map(Jf)),Le=Promise.resolve(J.preProcessEditCellProps({id:B,row:fe,props:ne,hasChanged:ge,otherFieldsProps:Be})).then(re=>{if(e.current.getRowMode(B)===Kt.View){he(!1);return}le=Ln(e.current.state),re=P({},re,{isProcessingProps:!1}),re.value=J.preProcessEditCellProps?le[B][W].value:Q,R(B,W,re)});be.push(Le)}Object.entries(le[B]).forEach(([ge,$e])=>{if(ge===W)return;const Be=e.current.getColumn(ge);if(!Be.preProcessEditCellProps)return;$e=P({},$e,{isProcessingProps:!0}),R(B,ge,$e),le=Ln(e.current.state);const Le=le[B],re=se(Le,[ge].map(Jf)),Te=Promise.resolve(Be.preProcessEditCellProps({id:B,row:fe,props:$e,hasChanged:!1,otherFieldsProps:re})).then(ve=>{if(e.current.getRowMode(B)===Kt.View){he(!1);return}ve=P({},ve,{isProcessingProps:!1}),R(B,ge,ve)});be.push(Te)}),Promise.all(be).then(()=>{e.current.getRowMode(B)===Kt.Edit?(le=Ln(e.current.state),he(!le[B][W].error)):he(!1)})})},[e,b,R]),z=u.useCallback(N=>{const B=Ln(e.current.state),W=e.current.getRow(N);let q=P({},W);return Object.entries(B[N]).forEach(([X,ie])=>{const J=e.current.getColumn(X);J.valueSetter?q=J.valueSetter({value:ie.value,row:q}):q[X]=ie.value}),q},[e]);Jt(e,{getRowMode:I,startRowEditMode:L,stopRowEditMode:j,unstable_setRowEditingEditCellValue:F,unstable_getRowWithUpdatedValuesFromRowEditing:z}),u.useEffect(()=>{p&&_(p)},[p,_]),u.useEffect(()=>{const N=yS(e),B=i.current;i.current=XA(n),Object.entries(n).forEach(([W,q])=>{var X,ie;const J=((X=B[W])==null?void 0:X.mode)||Kt.View,fe=(ie=N[W])!=null?ie:W;q.mode===Kt.Edit&&J===Kt.View?H(P({id:fe},q)):q.mode===Kt.View&&J===Kt.Edit&&A(P({id:fe},q))})},[e,n,H,A])},ape=e=>P({},e,{editRows:{}}),cpe=(e,t)=>{rpe(e,t),lpe(e,t);const n=u.useRef({}),{isCellEditable:r}=t,o=u.useCallback(h=>h.rowNode.isAutoGenerated||!h.colDef.editable||!h.colDef.renderEditCell?!1:r?r(h):!h.rowNode.isPinned,[r]),i=(h,m,v,b)=>{if(!v){b();return}if(n.current[h]||(n.current[h]={}),n.current[h][m]){const[C]=n.current[h][m];clearTimeout(C)}const g=()=>{const[C]=n.current[h][m];clearTimeout(C),b(),delete n.current[h][m]},S=setTimeout(()=>{b(),delete n.current[h][m]},v);n.current[h][m]=[S,g]};u.useEffect(()=>{const h=n.current;return()=>{Object.entries(h).forEach(([m,v])=>{Object.keys(v).forEach(b=>{const[g]=h[m][b];clearTimeout(g),delete h[m][b]})})}},[]);const s=u.useCallback((h,m)=>{if(n.current[h]){if(!m)Object.keys(n.current[h]).forEach(v=>{const[,b]=n.current[h][v];b()});else if(n.current[h][m]){const[,v]=n.current[h][m];v()}}},[]),a=u.useCallback(h=>{const{id:m,field:v,debounceMs:b}=h;return new Promise(g=>{i(m,v,b,()=>lt(void 0,null,function*(){const S=t.editMode===Tr.Row?e.current.unstable_setRowEditingEditCellValue:e.current.unstable_setCellEditingEditCellValue;if(e.current.getCellMode(m,v)===Tt.Edit){const C=yield S(h);g(C)}}))})},[e,t.editMode]),c=u.useCallback((h,m)=>t.editMode===Tr.Cell?e.current.unstable_getRowWithUpdatedValuesFromCellEditing(h,m):e.current.unstable_getRowWithUpdatedValuesFromRowEditing(h),[e,t.editMode]),d=u.useCallback((h,m)=>({changeReason:Ln(e.current.state)[h][m].changeReason}),[e]);Jt(e,{isCellEditable:o,setEditCellValue:a,unstable_runPendingEditCellValueMutation:s,unstable_getRowWithUpdatedValues:c,unstable_getEditCellMeta:d})},upe=(e,t,n)=>(n.current.unstable_caches.rows=xm({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),P({},e,{rows:pF({apiRef:n,previousTree:null,rowCountProp:t.rowCount,loadingProp:t.loading})})),dpe=(e,t)=>{const n=er(e,"useGridRows"),r=oc(e,t),o=u.useRef(Date.now()),i=u.useRef(null),s=u.useCallback(R=>{var L;return(L=cu(e)[R])!=null?L:null},[e]),a=u.useMemo(()=>r.rows.reduce((R,{id:L},H)=>(R[L]=H,R),{}),[r.rows]),c=u.useCallback((R,L)=>{const H=()=>{i.current=null,o.current=Date.now(),e.current.setState(A=>P({},A,{rows:pF({apiRef:e,previousTree:kl(e),rowCountProp:t.rowCount,loadingProp:t.loading})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(i.current&&(clearTimeout(i.current),i.current=null),e.current.unstable_caches.rows=R,!L){H();return}const j=t.throttleRowsMs-(Date.now()-o.current);if(j>0){i.current=setTimeout(H,j);return}H()},[t.throttleRowsMs,t.rowCount,t.loading,e]),d=u.useCallback(R=>{n.debug(`Updating all rows, new length ${R.length}`);const L=xm({rows:R,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),H=e.current.unstable_caches.rows;L.rowsBeforePartialUpdates=H.rowsBeforePartialUpdates,c(L,!0)},[n,t.getRowId,t.loading,t.rowCount,c,e]),p=u.useCallback(R=>{if(t.signature===Yl.DataGrid&&R.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(`
336
+ `));const L=new Map;R.forEach(F=>{const z=Cw(F,t.getRowId,"A row was provided without id when calling updateRows():");L.has(z)?L.set(z,P({},L.get(z),F)):L.set(z,F)});const H=[],j=e.current.unstable_caches.rows,A={rowsBeforePartialUpdates:j.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:j.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:j.rowCountPropBeforePartialUpdates,idRowsLookup:P({},j.idRowsLookup),idToIdLookup:P({},j.idToIdLookup),ids:[...j.ids]};L.forEach((F,z)=>{if(F._action==="delete"){delete A.idRowsLookup[z],delete A.idToIdLookup[z],H.push(z);return}if(!e.current.getRow(z)){A.idRowsLookup[z]=F,A.idToIdLookup[z]=z,A.ids.push(z);return}A.idRowsLookup[z]=P({},e.current.getRow(z),F)}),H.length>0&&(A.ids=A.ids.filter(F=>!H.includes(F))),c(A,!0)},[t.signature,t.getRowId,c,e]),h=u.useCallback(()=>{const R=xa(e),L=cu(e);return new Map(R.map(H=>[H,L[H]]))},[e]),m=u.useCallback(()=>ey(e),[e]),v=u.useCallback(()=>xa(e),[e]),b=u.useCallback(R=>a[R],[a]),g=u.useCallback((R,L)=>{const H=e.current.getRowNode(R);if(!H)throw new Error(`MUI: No row with id #${R} found`);const j=P({},H,{childrenExpanded:L});e.current.setState(A=>P({},A,{rows:P({},A.rows,{tree:P({},A.rows.tree,{[R]:j})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",j)},[e]),S=u.useCallback(R=>{var L;return(L=kl(e)[R])!=null?L:null},[e]),C=u.useCallback(({skipAutoGeneratedRows:R=!0,groupId:L,applySorting:H,applyFiltering:j})=>{const A=kl(e);let F;if(H){const z=A[L];if(!z)return[];const G=CS(e);F=[];const N=G.findIndex(B=>B===L)+1;for(let B=N;B<G.length&&A[G[B]].depth>z.depth;B+=1){const W=G[B],q=A[W];(!R||!q.isAutoGenerated)&&F.push(W)}}else F=hF(A,L,R);if(j){const z=PA(e);F=F.filter(G=>z[G]!==!1)}return F},[e]),E=u.useCallback((R,L)=>{const H=xa(e),j=H.findIndex(F=>F===R);if(j===-1||j===L)return;n.debug(`Moving row ${R} to index ${L}`);const A=[...H];A.splice(L,0,A.splice(j,1)[0]),e.current.setState(F=>P({},F,{rows:P({},F.rows,{ids:A})})),e.current.unstable_caches.rows.ids=A,e.current.publishEvent("rowsSet")},[e,n]),w=u.useCallback((R,L)=>{if(t.signature===Yl.DataGrid&&L.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(`
337
+ `));if(L.length===0)return;const j=[...xa(e)],A=cu(e),F=yS(e),z=kl(e),G=P({},A),N=P({},F),B=P({},z),W=L.map(q=>({id:Cw(q,t.getRowId,"A row was provided without id when calling replaceRows()."),model:q}));W.forEach((q,X)=>{const[ie]=j.splice(R+X,1,q.id);delete G[ie],delete N[ie],delete B[ie]}),W.forEach(q=>{const X={id:q.id,parent:null,depth:0,groupingKey:null,groupingField:null};G[q.id]=q.model,N[q.id]=q.id,B[q.id]=X}),e.current.unstable_caches.rows.idRowsLookup=G,e.current.unstable_caches.rows.idToIdLookup=N,e.current.unstable_caches.rows.ids=j,e.current.setState(q=>{const X={idRowsLookup:G,idToIdLookup:N,tree:B,ids:j};return P({},q,{rows:P({},q.rows,X,{groupingResponseBeforeRowHydration:P({},q.rows.groupingResponseBeforeRowHydration,X)})})}),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),x={getRow:s,getRowModels:h,getRowsCount:m,getAllRowIds:v,setRows:d,setRowIndex:E,updateRows:p,setRowChildrenExpansion:g,getRowNode:S,getRowIndexRelativeToVisibleRows:b,getRowGroupChildren:C,unstable_replaceRows:w},k=u.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let R;e.current.unstable_caches.rows.rowsBeforePartialUpdates===t.rows?R=e.current.unstable_caches.rows:R=xm({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),c(R,!1)},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,c]),I=u.useCallback(R=>{R==="rowTreeCreation"&&k()},[k]),_=u.useCallback(()=>{e.current.unstable_getActiveStrategy("rowTree")!==rle(e)&&k()},[e,k]);Ne(e,"activeStrategyProcessorChange",I),Ne(e,"strategyAvailabilityChange",_);const M=u.useCallback(()=>{e.current.setState(R=>P({},R,{rows:P({},R.rows,e.current.unstable_applyPipeProcessors("hydrateRows",R.rows.groupingResponseBeforeRowHydration))})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e]);TS(e,"hydrateRows",M),Jt(e,x),u.useEffect(()=>()=>{i.current!==null&&clearTimeout(i.current)},[]);const O=u.useRef(!0);u.useEffect(()=>{if(O.current){O.current=!1;return}const R=e.current.unstable_caches.rows.rowsBeforePartialUpdates===t.rows,L=e.current.unstable_caches.rows.loadingPropBeforePartialUpdates===t.loading,H=e.current.unstable_caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(R){L||(e.current.setState(j=>P({},j,{rows:P({},j.rows,{loading:t.loading})})),e.current.unstable_caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),H||(e.current.setState(j=>P({},j,{rows:P({},j.rows,{totalRowCount:Math.max(t.rowCount||0,j.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,j.rows.totalTopLevelRowCount)})})),e.current.unstable_caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate());return}n.debug(`Updating all rows, new length ${t.rows.length}`),c(xm({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),!1)},[t.rows,t.rowCount,t.getRowId,t.loading,n,c,e])},fpe=({ids:e,idRowsLookup:t,idToIdLookup:n,previousTree:r})=>{const o={};for(let i=0;i<e.length;i+=1){const s=e[i];r&&r[s]&&r[s].depth===0&&r[s].parent==null&&!r[s].isPinned?o[s]=r[s]:o[s]={id:s,depth:0,parent:null,groupingKey:"",groupingField:null}}return{groupingName:Ip,tree:o,treeDepth:1,idRowsLookup:t,idToIdLookup:n,ids:e}},ppe=e=>{OS(e,Ip,"rowTreeCreation",fpe)};Oi(["MUI: You are calling getValue. This method is deprecated and will be removed in the next major version.","Instead, you can access the data from `params.row`."]);function hpe(e){const t=u.useCallback(h=>({field:h,colDef:e.current.getColumn(h)}),[e]),n=u.useCallback((...h)=>e.current.getCellValue(...h),[e]),r=u.useCallback(h=>{const m=e.current.getRow(h);if(!m)throw new Error(`No row with id #${h} found`);return{id:h,columns:e.current.getAllColumns(),row:m,getValue:n}},[e,n]),o=u.useCallback((h,m)=>{const v=e.current.getRow(h),b=e.current.getRowNode(h);if(!v||!b)throw new Error(`No row with id #${h} found`);const g=Ei(e),S=gg(e);return{id:h,field:m,row:v,rowNode:b,value:v[m],colDef:e.current.getColumn(m),cellMode:e.current.getCellMode(h,m),getValue:n,api:e.current,hasFocus:g!==null&&g.field===m&&g.id===h,tabIndex:S&&S.field===m&&S.id===h?0:-1}},[e,n]),i=u.useCallback((h,m)=>{const v=e.current.getColumn(m),b=e.current.getCellValue(h,m),g=e.current.getRow(h),S=e.current.getRowNode(h);if(!g||!S)throw new Error(`No row with id #${h} found`);const C=Ei(e),E=gg(e),w={id:h,field:m,row:g,rowNode:S,colDef:v,cellMode:e.current.getCellMode(h,m),getValue:n,hasFocus:C!==null&&C.field===m&&C.id===h,tabIndex:E&&E.field===m&&E.id===h?0:-1,value:b,formattedValue:b};return v&&v.valueFormatter&&(w.formattedValue=v.valueFormatter({id:h,field:w.field,value:w.value,api:e.current})),w.isEditable=v&&e.current.isCellEditable(w),w},[e,n]),s=u.useCallback((h,m)=>{const v=e.current.getColumn(m);if(!v||!v.valueGetter){const b=e.current.getRow(h);if(!b)throw new Error(`No row with id #${h} found`);return b[m]}return v.valueGetter(o(h,m))},[e,o]),a=u.useCallback(h=>e.current.rootElementRef.current?nce(e.current.rootElementRef.current,h):null,[e]),c=u.useCallback(h=>e.current.rootElementRef.current?rce(e.current.rootElementRef.current,h):null,[e]),d=u.useCallback((h,m)=>e.current.rootElementRef.current?oce(e.current.rootElementRef.current,{id:h,field:m}):null,[e]);Jt(e,{getCellValue:s,getCellParams:i,getCellElement:d,getRowParams:r,getRowElement:c,getColumnHeaderParams:t,getColumnHeaderElement:a})}const bF=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],mpe=(e,t)=>{var n;return P({},e,{selection:(n=bF(t.selectionModel))!=null?n:[]})},gpe=(e,t)=>{const n=er(e,"useGridSelection"),r=u.useMemo(()=>bF(t.selectionModel,Ko(e.current.state)),[e,t.selectionModel]),o=u.useRef(null);e.current.unstable_registerControlState({stateId:"selection",propModel:r,propOnChange:t.onSelectionModelChange,stateSelector:Ko,changeEvent:"selectionChange"});const{checkboxSelection:i,disableMultipleSelection:s,disableSelectionOnClick:a,pagination:c,paginationMode:d,isRowSelectable:p}=t,h=!s||i,m=oc(e,t),v=u.useCallback(A=>{var F;let z=A;const G=(F=o.current)!=null?F:A,N=e.current.isRowSelected(A);if(N){const B=gf(e),W=B.findIndex(X=>X===G),q=B.findIndex(X=>X===z);if(W===q)return;W>q?z=B[q+1]:z=B[q-1]}o.current=A,e.current.selectRowRange({startId:G,endId:z},!N)},[e]),b=u.useCallback(A=>{Ko(e.current.state)!==A&&(n.debug("Setting selection model"),e.current.setState(z=>P({},z,{selection:A})),e.current.forceUpdate())},[e,n]),g=u.useCallback(A=>Ko(e.current.state).includes(A),[e]),S=u.useCallback(A=>{if(p&&!p(e.current.getRowParams(A)))return!1;const F=e.current.getRowNode(A);return!((F==null?void 0:F.position)==="footer"||F!=null&&F.isPinned)},[e,p]),C=u.useCallback(()=>Ece(e),[e]),E=u.useCallback((A,F=!0,z=!1)=>{if(e.current.isRowSelectable(A))if(o.current=A,z)n.debug(`Setting selection for row ${A}`),e.current.setSelectionModel(F?[A]:[]);else{n.debug(`Toggling selection for row ${A}`);const N=Ko(e.current.state).filter(W=>W!==A);F&&N.push(A),(N.length<2||h)&&e.current.setSelectionModel(N)}},[e,n,h]),w=u.useCallback((A,F=!0,z=!1)=>{n.debug("Setting selection for several rows");const G=A.filter(W=>e.current.isRowSelectable(W));let N;if(z)N=F?G:[];else{const W=P({},bg(e));G.forEach(q=>{F?W[q]=q:delete W[q]}),N=Object.values(W)}(N.length<2||h)&&e.current.setSelectionModel(N)},[e,n,h]),x=u.useCallback(({startId:A,endId:F},z=!0,G)=>{if(!e.current.getRow(A)||!e.current.getRow(F))return;n.debug(`Expanding selection from row ${A} to row ${F}`);const N=gf(e),B=N.indexOf(A),W=N.indexOf(F),[q,X]=B>W?[W,B]:[B,W],ie=N.slice(q,X+1);e.current.selectRows(ie,z,G)},[e,n]);Jt(e,{selectRow:E,selectRows:w,selectRowRange:x,setSelectionModel:b,getSelectedRows:C,isRowSelected:g,isRowSelectable:S});const I=u.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const A=Ko(e.current.state),F=cu(e),z=P({},bg(e));let G=!1;A.forEach(N=>{F[N]||(delete z[N],G=!0)}),G&&e.current.setSelectionModel(Object.values(z))},[e,t.keepNonExistentRowsSelected]),_=u.useCallback((A,F)=>{const z=F.metaKey||F.ctrlKey,G=!i&&!z&&!yw(F),N=!h||G,B=e.current.isRowSelected(A);N?e.current.selectRow(A,G?!0:!B,!0):e.current.selectRow(A,!B,!1)},[e,h,i]),M=u.useCallback((A,F)=>{var z;if(a)return;const G=(z=F.target.closest(`.${ee.cell}`))==null?void 0:z.getAttribute("data-field");G===kp.field||G===RS||G&&e.current.getColumn(G).type===MS||e.current.getRowNode(A.id).isPinned||(F.shiftKey&&(h||i)?v(A.id):_(A.id,F))},[a,h,i,e,v,_]),O=u.useCallback((A,F)=>{if(h&&F.shiftKey){var z;(z=window.getSelection())==null||z.removeAllRanges()}},[h]),R=u.useCallback((A,F)=>{F.nativeEvent.shiftKey?v(A.id):e.current.selectRow(A.id,A.value)},[e,v]),L=u.useCallback(A=>{const z=t.checkboxSelectionVisibleOnly&&t.pagination?WA(e):gf(e);e.current.selectRows(z,A.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),H=u.useCallback((A,F)=>{if(e.current.getCellMode(A.id,A.field)!==Tt.Edit&&F.currentTarget.contains(F.target)){if(Pp(F.key)&&F.shiftKey){const z=Ei(e);if(z&&z.id!==A.id){F.preventDefault();const G=e.current.isRowSelected(z.id);if(!h){e.current.selectRow(z.id,!G,!0);return}const N=e.current.getRowIndexRelativeToVisibleRows(z.id),B=e.current.getRowIndexRelativeToVisibleRows(A.id);let W,q;N>B?G?(W=B,q=N-1):(W=B,q=N):G?(W=N+1,q=B):(W=N,q=B);const X=m.rows.slice(W,q+1).map(ie=>ie.id);e.current.selectRows(X,!G);return}}if(F.key===" "&&F.shiftKey){F.preventDefault(),_(A.id,F);return}F.key.toLowerCase()==="a"&&(F.ctrlKey||F.metaKey)&&(F.preventDefault(),w(e.current.getAllRowIds(),!0))}},[e,_,w,m.rows,h]);Ne(e,"sortedRowsSet",I),Ne(e,"rowClick",M),Ne(e,"rowSelectionCheckboxChange",R),Ne(e,"headerSelectionCheckboxChange",L),Ne(e,"cellMouseDown",O),Ne(e,"cellKeyDown",H),u.useEffect(()=>{r!==void 0&&e.current.setSelectionModel(r)},[e,r]);const j=r!=null;u.useEffect(()=>{if(j)return;const A=Ko(e.current.state);if(S){const F=A.filter(z=>S(z));F.length<A.length&&e.current.setSelectionModel(F)}},[e,S,j]),u.useEffect(()=>{const A=Ko(e.current.state);if(!h&&A.length>1){const{rows:F}=oy(e,{pagination:c,paginationMode:d}),z=F.reduce((N,{id:B})=>(N[B]=!0,N),{}),G=A.find(N=>{let B=!0;return S&&(B=S(N)),B&&z[N]});e.current.setSelectionModel(G!==void 0?[G]:[])}},[e,h,i,s,S,c,d])},vpe={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",errorOverlayDefaultLabel:"An error occurred.",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",filterPanelDeleteIconLabel:"Delete",filterPanelLinkOperator:"Logic operator",filterPanelOperators:"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",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide",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"},ype=["sortingOrder"],bpe=u.memo(function(t){const{sortingOrder:n}=t,r=se(t,ype),o=Xe(),[i]=n,s=i==="asc"?o.components.ColumnSortedAscendingIcon:o.components.ColumnSortedDescendingIcon;return s?T.jsx(s,P({},r)):null}),wpe=["error","hasError","errorInfo"],Cpe=u.forwardRef(function(t,n){const{error:r}=t,o=se(t,wpe),i=Et(),s=i.current.getLocaleText("errorOverlayDefaultLabel"),a=Ye(i,Sp);return T.jsx(ry,P({ref:n,sx:{width:"100%",minHeight:2*a}},o,{children:(r==null?void 0:r.message)||s}))}),xpe=u.forwardRef(function(t,n){const o=Et().current.getLocaleText("noResultsOverlayLabel");return T.jsx(ry,P({ref:n},t,{children:o}))}),Spe={BooleanCellTrueIcon:eae,BooleanCellFalseIcon:Ib,ColumnMenuIcon:Qle,OpenFilterButtonIcon:Vle,FilterPanelDeleteIcon:Ib,ColumnFilteredIcon:Ule,ColumnSelectorIcon:Gle,ColumnUnsortedIcon:bpe,ColumnSortedAscendingIcon:jle,ColumnSortedDescendingIcon:Hle,ColumnResizeIcon:Kle,DensityCompactIcon:qle,DensityStandardIcon:Yle,DensityComfortableIcon:Xle,ExportIcon:Zle,MoreActionsIcon:tae,TreeDataCollapseIcon:L$,TreeDataExpandIcon:O$,GroupingCriteriaCollapseIcon:L$,GroupingCriteriaExpandIcon:O$,DetailPanelExpandIcon:AA,DetailPanelCollapseIcon:Jle,RowReorderIcon:FA,QuickFilterIcon:Wle,QuickFilterClearIcon:Ib},eM=P({},Spe,{BaseCheckbox:oL,BaseTextField:mp,BaseFormControl:tc,BaseSelect:yx,BaseSwitch:$L,BaseButton:fr,BaseTooltip:hp,BasePopper:Za,Cell:_le,SkeletonCell:Tae,ColumnHeaderFilterIconButton:yce,ColumnMenu:Pue,ErrorOverlay:Cpe,Footer:Pde,Header:kde,Toolbar:null,PreferencesPanel:Zue,LoadingOverlay:_de,NoResultsOverlay:xpe,NoRowsOverlay:Ide,Pagination:Mde,FilterPanel:fde,ColumnsPanel:Kue,Panel:Jue,Row:Ade}),Epe=e=>{const{classes:t}=e;return u.useMemo(()=>ke({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Bt,t),[t])},Ppe=(e,t)=>{const n={classes:t.classes},r=Epe(n),o=u.useCallback(i=>{const s=P({},kp,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),a=t.checkboxSelection,c=i.lookup[fl]!=null;return a&&!c?(i.lookup[fl]=s,i.all=[fl,...i.all]):!a&&c?(delete i.lookup[fl],i.all=i.all.filter(d=>d!==fl)):a&&c&&(i.lookup[fl]=P({},s,i.lookup[fl])),i},[e,r,t.checkboxSelection]);hr(e,"hydrateColumns",o)},kpe=(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 P({},e,{sorting:{sortModel:GA(s,t.disableMultipleColumnsSorting),sortedRows:[]}})},_pe=(e,t)=>{var n,r;const o=er(e,"useGridSorting");e.current.unstable_registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:wi,changeEvent:"sortModelChange"});const i=u.useCallback((_,M)=>{const O=wi(e),R=O.findIndex(H=>H.field===_);let L=[...O];return R>-1?M?L.splice(R,1,M):L.splice(R,1):L=[...O,M],L},[e]),s=u.useCallback((_,M)=>{var O;const L=wi(e).find(j=>j.field===_.field);if(L){var H;const j=M===void 0?N$((H=_.sortingOrder)!=null?H:t.sortingOrder,L.sort):M;return j==null?void 0:P({},L,{sort:j})}return{field:_.field,sort:M===void 0?N$((O=_.sortingOrder)!=null?O:t.sortingOrder):M}},[e,t.sortingOrder]),a=u.useCallback(()=>{e.current.setState(_=>{if(t.sortingMode===uu.server)return o.debug("Skipping sorting rows as sortingMode = server"),P({},_,{sorting:P({},_.sorting,{sortedRows:xa(_,e.current.instanceId)})});const M=wi(_,e.current.instanceId),O=Nce(M,e),R=e.current.unstable_applyStrategyProcessor("sorting",{sortRowList:O});return P({},_,{sorting:P({},_.sorting,{sortedRows:R})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,o,t.sortingMode]),c=u.useCallback(_=>{wi(e)!==_&&(o.debug("Setting sort model"),e.current.setState(F$(_,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,o,t.disableMultipleColumnsSorting]),d=u.useCallback((_,M,O)=>{if(!_.sortable)return;const R=s(_,M);let L;!O||t.disableMultipleColumnsSorting?L=R?[R]:[]:L=i(_.field,R),e.current.setSortModel(L)},[e,i,s,t.disableMultipleColumnsSorting]),p=u.useCallback(()=>wi(e),[e]),h=u.useCallback(()=>xS(e).map(M=>M.model),[e]),m=u.useCallback(()=>CS(e),[e]),v=u.useCallback(_=>e.current.getSortedRowIds().indexOf(_),[e]),b=u.useCallback(_=>e.current.getSortedRowIds()[_],[e]);Jt(e,{getSortModel:p,getSortedRows:h,getSortedRowIds:m,getRowIndex:v,getRowIdFromRowIndex:b,setSortModel:c,sortColumn:d,applySorting:a});const S=u.useCallback((_,M)=>{var O,R;const L=wi(e);return!M.exportOnlyDirtyModels||t.sortModel!=null||((O=t.initialState)==null||(R=O.sorting)==null?void 0:R.sortModel)!=null||L.length>0?P({},_,{sorting:{sortModel:L}}):_},[e,t.sortModel,(n=t.initialState)==null||(r=n.sorting)==null?void 0:r.sortModel]),C=u.useCallback((_,M)=>{var O;const R=(O=M.stateToRestore.sorting)==null?void 0:O.sortModel;return R==null?_:(e.current.setState(F$(R,t.disableMultipleColumnsSorting)),P({},_,{callbacks:[..._.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),E=u.useCallback(_=>{const M=kl(e);if(!_.sortRowList){const L=[],H=[];return xa(e).forEach(j=>{M[j].isPinned||(M[j].position==="footer"?H.push(j):L.push(j))}),[...L,...H]}const O=[],R=[];return Object.values(M).forEach(L=>{L.isPinned||(L.position==="footer"?R.push(L.id):O.push(L))}),[..._.sortRowList(O),...R]},[e]);hr(e,"exportState",S),hr(e,"restoreState",C),OS(e,Ip,"sorting",E);const w=u.useCallback(({colDef:_},M)=>{const O=M.shiftKey||M.metaKey||M.ctrlKey;d(_,void 0,O)},[d]),x=u.useCallback(({colDef:_},M)=>{DA(M.key)&&!M.ctrlKey&&!M.metaKey&&d(_,void 0,M.shiftKey)},[d]),k=u.useCallback(()=>{const _=wi(e),M=Ku(e);if(_.length>0){const O=_.filter(R=>M[R.field]);O.length<_.length&&e.current.setSortModel(O)}},[e]),I=u.useCallback(_=>{_==="sorting"&&e.current.applySorting()},[e]);Ne(e,"columnHeaderClick",w),Ne(e,"columnHeaderKeyDown",x),Ne(e,"rowsSet",e.current.applySorting),Ne(e,"columnsChange",k),Ne(e,"activeStrategyProcessorChange",I),_p(()=>{e.current.applySorting()}),u.useEffect(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function tM(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 Ipe=(e,t)=>{const n=er(e,"useGridScroll"),r=e.current.columnHeadersElementRef,o=e.current.windowRef,i=Ye(e,Qs),s=u.useCallback(p=>{const h=ey(e),m=Ar(e);if(!(p.rowIndex==null)&&h===0||m.length===0)return!1;n.debug(`Scrolling to cell at row ${p.rowIndex}, col: ${p.colIndex} `);let b={};if(p.colIndex!=null){const E=Ga(e);let w;if(typeof p.rowIndex!="undefined"){var g;const x=(g=i[p.rowIndex])==null?void 0:g.id,k=e.current.unstable_getCellColSpanInfo(x,p.colIndex);k&&!k.spannedByColSpan&&(w=k.cellProps.width)}typeof w=="undefined"&&(w=m[p.colIndex].computedWidth),b.left=tM({clientHeight:o.current.clientWidth,scrollTop:o.current.scrollLeft,offsetHeight:w,offsetTop:E[p.colIndex]})}if(p.rowIndex!=null){var S,C;const E=Zf(e.current.state),w=Kd(e),x=vf(e),k=t.pagination?p.rowIndex-w*x:p.rowIndex,I=E.positions[k+1]?E.positions[k+1]-E.positions[k]:E.currentPageTotalHeight-E.positions[k],_=((S=o.current.querySelector(`.${ee["pinnedRows--top"]}`))==null?void 0:S.clientHeight)||0,M=((C=o.current.querySelector(`.${ee["pinnedRows--bottom"]}`))==null?void 0:C.clientHeight)||0;b.top=tM({clientHeight:o.current.clientHeight-_-M,scrollTop:o.current.scrollTop,offsetHeight:I,offsetTop:E.positions[k]})}return b=e.current.unstable_applyPipeProcessors("scrollToIndexes",b,p),typeof b.left!==void 0||typeof b.top!==void 0?(e.current.scroll(b),!0):!1},[n,e,o,t.pagination,i]),a=u.useCallback(p=>{o.current&&p.left!=null&&r.current&&(r.current.scrollLeft=p.left,o.current.scrollLeft=p.left,n.debug(`Scrolling left: ${p.left}`)),o.current&&p.top!=null&&(o.current.scrollTop=p.top,n.debug(`Scrolling top: ${p.top}`)),n.debug("Scrolling, updating container, and viewport")},[o,r,n]),c=u.useCallback(()=>o!=null&&o.current?{top:o.current.scrollTop,left:o.current.scrollLeft}:{top:0,left:0},[o]);Jt(e,{scroll:a,scrollToIndexes:s,getScrollPosition:c})};function $pe(e,t){jt(e,"columnHeaderClick",t.onColumnHeaderClick),jt(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),jt(e,"columnHeaderOver",t.onColumnHeaderOver),jt(e,"columnHeaderOut",t.onColumnHeaderOut),jt(e,"columnHeaderEnter",t.onColumnHeaderEnter),jt(e,"columnHeaderLeave",t.onColumnHeaderLeave),jt(e,"columnOrderChange",t.onColumnOrderChange),jt(e,"cellClick",t.onCellClick),jt(e,"cellDoubleClick",t.onCellDoubleClick),jt(e,"cellKeyDown",t.onCellKeyDown),jt(e,"cellFocusOut",t.onCellFocusOut),jt(e,"preferencePanelClose",t.onPreferencePanelClose),jt(e,"preferencePanelOpen",t.onPreferencePanelOpen),jt(e,"menuOpen",t.onMenuOpen),jt(e,"menuClose",t.onMenuClose),jt(e,"rowDoubleClick",t.onRowDoubleClick),jt(e,"rowClick",t.onRowClick),jt(e,"componentError",t.onError),jt(e,"stateChange",t.onStateChange)}const Mpe=({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 Rpe(e,t){const n=er(e,"useResizeContainer"),r=u.useRef(!1),o=u.useRef(null),i=u.useRef(null),s=Ye(e,Zf),a=Ye(e,Ep),c=u.useCallback(()=>{var S;const C=(S=e.current.rootElementRef)==null?void 0:S.current,E=ty(e),w=mF(e);if(!o.current)return;let x;if(t.scrollbarSize!=null)x=t.scrollbarSize;else if(!E||!C)x=0;else{const H=gn(C).createElement("div");H.style.width="99px",H.style.height="99px",H.style.position="absolute",H.style.overflow="scroll",H.className="scrollDiv",C.appendChild(H),x=H.offsetWidth-H.clientWidth,C.removeChild(H)}let k,I,_;if(t.autoHeight)_=!1,I=Math.round(E)>o.current.width,k={width:o.current.width,height:s.currentPageTotalHeight+(I?x:0)};else{k={width:o.current.width,height:o.current.height-a};const L=Mpe({content:{width:Math.round(E),height:s.currentPageTotalHeight},container:{width:k.width,height:k.height-w.top-w.bottom},scrollBarSize:x});_=L.hasScrollY,I=L.hasScrollX}const M={width:k.width-(_?x:0),height:k.height-(I?x:0)},O={viewportOuterSize:k,viewportInnerSize:M,hasScrollX:I,hasScrollY:_,scrollBarSize:x},R=i.current;i.current=O,(O.viewportInnerSize.width!==(R==null?void 0:R.viewportInnerSize.width)||O.viewportInnerSize.height!==(R==null?void 0:R.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",O.viewportInnerSize)},[e,t.scrollbarSize,t.autoHeight,a,s.currentPageTotalHeight]),d=u.useCallback(()=>{c(),e.current.publishEvent("debouncedResize",o.current)},[e,c]),p=u.useCallback(()=>i.current,[]),h=u.useCallback(()=>{const S=e.current.getRootDimensions();if(!S)return 0;const C=oy(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const w=e.current.unstable_getRenderContext(),x=w.lastRowIndex-w.firstRowIndex;return Math.min(x-1,C.rows.length)}const E=Math.floor(S.viewportInnerSize.height/Sp(e));return Math.min(E,C.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight]);Jt(e,{resize:d,getRootDimensions:p,unstable_getViewportPageSize:h,unstable_updateGridDimensionsRef:c});const v=u.useMemo(()=>Hs(d,60),[d]),b=u.useRef(!0),g=u.useCallback(S=>{o.current=S;const C=/jsdom/.test(window.navigator.userAgent);if(S.height===0&&!r.current&&!t.autoHeight&&!C&&(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(`
338
+ `)),r.current=!0),S.width===0&&!r.current&&!C&&(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(`
339
+ `)),r.current=!0),b.current){d(),b.current=!1;return}v()},[t.autoHeight,v,n,d]);fn(()=>c(),[c]),jt(e,"sortedRowsSet",c),jt(e,"pageChange",c),jt(e,"pageSizeChange",c),jt(e,"columnsChange",c),Ne(e,"resize",g),jt(e,"debouncedResize",t.onResize)}const Tpe=e=>P({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),Ope=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,i=u.useRef({}),s=u.useRef(-1),a=u.useRef(!1),c=Ye(e,Sp),d=Ye(e,xp),p=Ye(e,qu),h=Ye(e,wS),m=oc(e,t),v=Ye(e,Cp),b=u.useCallback(()=>{var O,R;a.current=!1;const L=mle(e.current.state,e.current.instanceId),H=F=>{i.current[F.id]||(i.current[F.id]={sizes:{baseCenter:c},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:z,needsFirstMeasurement:G,sizes:N}=i.current[F.id];let B=c;const W=N.baseCenter;if(z)B=W;else if(n){const Q=n(P({},F,{densityFactor:L}));if(Q==="auto"){if(G){const le=o?o(P({},F,{densityFactor:L})):c;B=le!=null?le:c}else B=W;a.current=!0,i.current[F.id].autoHeight=!0}else B=Q!=null?Q:c,i.current[F.id].needsFirstMeasurement=!1,i.current[F.id].autoHeight=!1}else i.current[F.id].needsFirstMeasurement=!1;const q=Object.entries(N).reduce((Q,[le,ne])=>(/^base[A-Z]/.test(le)&&(Q[le]=ne),Q),{}),X=P({},q,{baseCenter:B});if(r){var ie,J;const Q=e.current.getRowIndexRelativeToVisibleRows(F.id),le=r(P({},F,{isFirstVisible:Q===0,isLastVisible:Q===m.rows.length-1,indexRelativeToCurrentPage:Q}));X.spacingTop=(ie=le.top)!=null?ie:0,X.spacingBottom=(J=le.bottom)!=null?J:0}const fe=e.current.unstable_applyPipeProcessors("rowHeight",X,F);return i.current[F.id].sizes=fe,fe},j=[],A=m.rows.reduce((F,z)=>{j.push(F);let G=0,N=0;const B=H(z);return Object.entries(B).forEach(([W,q])=>{/^base[A-Z]/.test(W)?G=q>G?q:G:N+=q}),F+G+N},0);v==null||(O=v.top)==null||O.forEach(F=>{H(F)}),v==null||(R=v.bottom)==null||R.forEach(F=>{H(F)}),e.current.setState(F=>P({},F,{rowsMeta:{currentPageTotalHeight:A,positions:j}})),a.current||(s.current=1/0),e.current.forceUpdate()},[e,m.rows,c,n,r,o,v]),g=u.useCallback(O=>{const R=i.current[O];return R?R.sizes.baseCenter:c},[c]),S=O=>{var R;return(R=i.current[O])==null?void 0:R.sizes},C=u.useCallback((O,R)=>{i.current[O].sizes.baseCenter=R,i.current[O].isResized=!0,i.current[O].needsFirstMeasurement=!1,b()},[b]),E=u.useMemo(()=>Hs(b),[b]),w=u.useCallback((O,R,L)=>{if(!i.current[O]||!i.current[O].autoHeight)return;const H=i.current[O].sizes[`base${ce(L)}`]!==R;i.current[O].needsFirstMeasurement=!1,i.current[O].sizes[`base${ce(L)}`]=R,H&&E()},[E]),x=u.useCallback(O=>{var R;return((R=i.current[O])==null?void 0:R.autoHeight)||!1},[]),k=u.useCallback(()=>s.current,[]),I=u.useCallback(O=>{a.current&&O>s.current&&(s.current=O)},[]),_=u.useCallback(()=>{i.current={},b()},[b]);u.useEffect(()=>{b()},[c,d,p,h,b]),TS(e,"rowHeight",b),Jt(e,{unstable_getLastMeasuredRowIndex:k,unstable_setLastMeasuredRowIndex:I,unstable_rowHasAutoHeight:x,unstable_getRowHeight:g,unstable_getRowInternalSizes:S,unstable_setRowHeight:C,unstable_storeRowHeightMeasurement:w,resetRowHeights:_})},Lpe=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]);Jt(e,{exportState:t,restoreState:n})},Ape=e=>{const t=u.useRef({}),n=u.useCallback((c,d,p)=>{const h=t.current;h[c]||(h[c]={}),h[c][d]=p},[]),r=u.useCallback((c,d)=>{var p;return(p=t.current[c])==null?void 0:p[d]},[]),o=u.useCallback(c=>{const{columnIndex:d,rowId:p,minFirstColumnIndex:h,maxLastColumnIndex:m,columns:v}=c,b=v.length,g=v[d],S=typeof g.colSpan=="function"?g.colSpan(e.current.getCellParams(p,g.field)):g.colSpan;if(!S||S===1)return n(p,d,{spannedByColSpan:!1,cellProps:{colSpan:1,width:g.computedWidth}}),{colSpan:1};let C=g.computedWidth;for(let E=1;E<S;E+=1){const w=d+E;if(w>=h&&w<m){const x=v[w];C+=x.computedWidth,n(p,d+E,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(d+S,b-1),leftVisibleCellIndex:d})}n(p,d,{spannedByColSpan:!1,cellProps:{colSpan:S,width:C}})}return{colSpan:S}},[e,n]),i=u.useCallback(({rowId:c,minFirstColumn:d,maxLastColumn:p,columns:h})=>{for(let m=d;m<p;m+=1){const v=o({columnIndex:m,rowId:c,minFirstColumnIndex:d,maxLastColumnIndex:p,columns:h});v.colSpan>1&&(m+=v.colSpan-1)}},[o]);Jt(e,{unstable_getCellColSpanInfo:r,unstable_calculateColSpan:i});const a=u.useCallback(()=>{t.current={}},[]);Ne(e,"columnOrderChange",a)},Fpe=(e,t)=>{var n;const r=u.useCallback(o=>{var i;if(!((i=t.experimentalFeatures)!=null&&i.columnGrouping))return o;const s=cF(t.columnGroupingModel);return o.all.forEach(a=>{var c,d;const p=(c=s[a])!=null?c:[],h=o.lookup[a];gfe(h)&&Ns(p,h==null?void 0:h.groupPath)||(o.lookup[a]=P({},o.lookup[a],{groupPath:(d=s[a])!=null?d:[]}))}),o},[t.columnGroupingModel,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);hr(e,"hydrateColumns",r)},Npe=e=>{var t,n;const r=lfe(void 0,e);return Fpe(r,e),Ppe(r,e),ppe(r),vo(mpe,r,e),vo(ffe,r,e),vo(vfe,r,e),vo(upe,r,e),vo((t=e.experimentalFeatures)!=null&&t.newEditingApi?ape:Jfe,r,e),vo(zfe,r,e),vo(kpe,r,e),vo(qfe,r,e),vo(Dfe,r,e),vo(bfe,r,e),vo(Gfe,r,e),vo(Tpe,r,e),vo(ufe,r,e),Vfe(r,e),gpe(r,e),pfe(r,e),dpe(r,e),hpe(r),Ape(r),yfe(r,e),((n=e.experimentalFeatures)!=null&&n.newEditingApi?cpe:Zfe)(r,e),jfe(r,e),Yfe(r,e),Bfe(r,e),_pe(r,e),wfe(r,e),Kfe(r,e),Ope(r,e),Ipe(r,e),dfe(r),Pfe(r),Ife(r,e),cfe(r),Rpe(r,e),$pe(r,e),Lpe(r),r},Dpe={apiRef:void 0,disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},Bpe=100,zpe={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,density:Yf.Standard,disableExtendRowFullWidth:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableMultipleColumnsFiltering:!1,disableMultipleSelection:!1,disableMultipleColumnsSorting:!1,disableSelectionOnClick:!1,disableVirtualization:!1,disableIgnoreModificationsIfProcessingProps:!1,editMode:Tr.Cell,filterMode:uu.client,headerHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:uu.client,rowHeight:52,rowsPerPageOptions:[25,50,100],rowSpacingType:"margin",showCellRightBorder:!1,showColumnRightBorder:!1,sortingOrder:["asc","desc",null],sortingMode:uu.client,throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1},jpe=e=>{if(e.pageSize>Bpe)throw new Error("'props.pageSize' cannot exceed 100 in DataGrid.");const t=tt({props:e,name:"MuiDataGrid"}),n=u.useMemo(()=>P({},vpe,t.localeText),[t.localeText]),r=u.useMemo(()=>{const o=t.components;if(!o)return P({},eM);const i={};return Object.entries(eM).forEach(([s,a])=>{i[s]=o[s]===void 0?a:o[s]}),i},[t.components]);return u.useMemo(()=>P({},zpe,t,{localeText:n,components:r},Dpe),[t,n,r])},Hpe=["className"],Vpe=e=>{const{classes:t}=e;return ke({root:["virtualScroller"]},Bt,t)},Upe=oe("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",position:"relative","@media print":{overflow:"hidden"}}),Wpe=u.forwardRef(function(t,n){const{className:r}=t,o=se(t,Hpe),i=Xe(),s=Vpe(i);return T.jsx(Upe,P({ref:n,className:pe(s.root,r),ownerState:i},o))}),Gpe=["className","style"],Kpe=e=>{const{classes:t,overflowedContent:n}=e;return ke({root:["virtualScrollerContent",n&&"virtualScrollerContent--overflowed"]},Bt,t)},qpe=oe("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),Ype=u.forwardRef(function(t,n){const{className:r,style:o}=t,i=se(t,Gpe),s=Xe(),a=P({},s,{overflowedContent:!s.autoHeight&&(o==null?void 0:o.minHeight)==="auto"}),c=Kpe(a);return T.jsx(qpe,P({ref:n,className:pe(c.root,r),ownerState:a,style:o},i))}),Xpe=["className"],Qpe=e=>{const{classes:t}=e;return ke({root:["virtualScrollerRenderZone"]},Bt,t)},Jpe=oe("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),Zpe=u.forwardRef(function(t,n){const{className:r}=t,o=se(t,Xpe),i=Xe(),s=Qpe(i);return T.jsx(Jpe,P({ref:n,className:pe(s.root,r),ownerState:i},o))}),ehe=["style"];function du(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?du(e,t,n,o):du(e,t,o+1,r)}function the(e,t,n){let r=1;for(;n<t.length&&t[n]<e;)n+=r,r*=2;return du(e,t,Math.floor(n/2),Math.min(n,t.length))}const yl=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[Lu(e-n,r,o),Lu(t+n,r,o)],nhe=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,rhe=e=>{var t,n;const r=Et(),o=Xe(),i=Ye(r,Ar),{ref:s,disableVirtualization:a,onRenderZonePositioning:c,renderZoneMinColumnIndex:d=0,renderZoneMaxColumnIndex:p=i.length,getRowProps:h}=e,m=Ye(r,Ga),v=Ye(r,ty),b=Ye(r,Sp),g=Ye(r,Ei),S=Ye(r,gg),C=Ye(r,Zf),E=Ye(r,Ln),w=Ye(r,bg),x=oc(r,o),k=u.useRef(null),I=u.useRef(null),_=Ut(s,I),[M,O]=u.useState(null),R=u.useRef(M),L=u.useRef({top:0,left:0}),[H,j]=u.useState({width:null,height:null}),A=u.useRef(v),F=u.useCallback(ne=>{var he,be;const ge=r.current.unstable_getLastMeasuredRowIndex();let $e=ge===1/0;(he=x.range)!=null&&he.lastRowIndex&&!$e&&($e=ge>=x.range.lastRowIndex);const Be=Lu(ge-(((be=x.range)==null?void 0:be.firstRowIndex)||0),0,C.positions.length);return $e||C.positions[Be]>=ne?du(ne,C.positions):the(ne,C.positions,Be)},[r,(t=x.range)==null?void 0:t.firstRowIndex,(n=x.range)==null?void 0:n.lastRowIndex,C.positions]),z=u.useCallback(()=>{if(a)return{firstRowIndex:0,lastRowIndex:x.rows.length,firstColumnIndex:0,lastColumnIndex:i.length};const{top:ne,left:he}=L.current,be=Math.min(F(ne),C.positions.length-1),ge=o.autoHeight?be+x.rows.length:F(ne+H.height);let $e=!1,Be=0,Le=m.length;const[re,Te]=yl({firstIndex:be,lastIndex:ge,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:o.rowBuffer});for(let ve=re;ve<Te&&!$e;ve+=1){const ze=x.rows[ve];$e=r.current.unstable_rowHasAutoHeight(ze.id)}return $e||(Be=du(he,m),Le=du(he+H.width,m)),{firstRowIndex:be,lastRowIndex:ge,firstColumnIndex:Be,lastColumnIndex:Le}},[a,F,C.positions.length,o.autoHeight,o.rowBuffer,x.rows,m,i.length,r,H]);fn(()=>{a?k.current.style.transform="translate3d(0px, 0px, 0px)":(I.current.scrollLeft=0,I.current.scrollTop=0)},[a]),fn(()=>{j({width:I.current.clientWidth,height:I.current.clientHeight})},[C.currentPageTotalHeight]);const G=u.useCallback(ne=>{j({width:ne.width,height:ne.height})},[]);Ne(r,"resize",G);const N=u.useCallback(ne=>{const[he,be]=yl({firstIndex:ne.firstRowIndex,lastIndex:ne.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:o.rowBuffer}),[ge]=yl({firstIndex:ne.firstColumnIndex,lastIndex:ne.lastColumnIndex,minFirstIndex:d,maxLastIndex:p,buffer:o.columnBuffer}),$e=ww({firstColumnToRender:ge,apiRef:r,firstRowToRender:he,lastRowToRender:be,visibleRows:x.rows}),Be=Zf(r.current.state).positions[he],Le=Ga(r)[$e];k.current.style.transform=`translate3d(${Le}px, ${Be}px, 0px)`,typeof c=="function"&&c({top:Be,left:Le})},[r,x.rows,c,d,p,o.columnBuffer,o.rowBuffer]),B=u.useCallback(ne=>{if(R.current&&nhe(ne,R.current)){N(ne);return}O(ne),N(ne);const[he,be]=yl({firstIndex:ne.firstRowIndex,lastIndex:ne.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:o.rowBuffer});r.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:he,lastRowToRender:be}),R.current=ne},[r,O,R,x.rows.length,o.rowBuffer,N]);fn(()=>{if(H.width==null)return;const ne=z();B(ne);const{top:he,left:be}=L.current,ge={top:he,left:be,renderContext:ne};r.current.publishEvent("rowsScroll",ge)},[r,z,H.width,B]);const W=ne=>{const{scrollTop:he,scrollLeft:be}=ne.currentTarget;if(L.current.top=he,L.current.left=be,be<0||he<0||!R.current)return;const ge=a?R.current:z(),$e=Math.abs(ge.firstRowIndex-R.current.firstRowIndex),Be=Math.abs(ge.lastRowIndex-R.current.lastRowIndex),Le=Math.abs(ge.firstColumnIndex-R.current.firstColumnIndex),re=Math.abs(ge.lastColumnIndex-R.current.lastColumnIndex),Te=$e>=o.rowThreshold||Be>=o.rowThreshold||Le>=o.columnThreshold||re>=o.columnThreshold||A.current!==v;r.current.publishEvent("rowsScroll",{top:he,left:be,renderContext:Te?ge:R.current},ne),Te&&(jl.flushSync(()=>{B(ge)}),A.current=v)},q=ne=>{r.current.publishEvent("virtualScrollerWheel",{},ne)},X=ne=>{r.current.publishEvent("virtualScrollerTouchMove",{},ne)},ie=(ne={renderContext:M})=>{const{renderContext:he,minFirstColumn:be=d,maxLastColumn:ge=p,availableSpace:$e=H.width,rowIndexOffset:Be=0,position:Le="center"}=ne;if(!he||$e==null)return null;const re=a?0:o.rowBuffer,Te=a?0:o.columnBuffer,[ve,ze]=yl({firstIndex:he.firstRowIndex,lastIndex:he.lastRowIndex,minFirstIndex:0,maxLastIndex:x.rows.length,buffer:re}),nt=[];if(ne.rows)ne.rows.forEach(Ge=>{nt.push(Ge),r.current.unstable_calculateColSpan({rowId:Ge.id,minFirstColumn:be,maxLastColumn:ge,columns:i})});else{if(!x.range)return null;for(let Ge=ve;Ge<ze;Ge+=1){const _e=x.rows[Ge];nt.push(_e),r.current.unstable_calculateColSpan({rowId:_e.id,minFirstColumn:be,maxLastColumn:ge,columns:i})}}const[pt,Qe]=yl({firstIndex:he.firstColumnIndex,lastIndex:he.lastColumnIndex,minFirstIndex:be,maxLastIndex:ge,buffer:Te}),Ct=ww({firstColumnToRender:pt,apiRef:r,firstRowToRender:ve,lastRowToRender:ze,visibleRows:x.rows}),it=i.slice(Ct,Qe),vt=[];for(let Ge=0;Ge<nt.length;Ge+=1){var ht,ct;const{id:_e,model:Me}=nt[Ge],Fe=ve+Ge===x.rows.length-1,Ve=r.current.unstable_rowHasAutoHeight(_e)?"auto":r.current.unstable_getRowHeight(_e);let Se;w[_e]==null?Se=!1:Se=r.current.isRowSelectable(_e),vt.push(T.jsx(o.components.Row,P({row:Me,rowId:_e,rowHeight:Ve,cellFocus:g,cellTabIndex:S,editRowsState:E,renderedColumns:it,visibleColumns:i,firstColumnToRender:Ct,lastColumnToRender:Qe,selected:Se,index:Be+((x==null||(ht=x.range)==null?void 0:ht.firstRowIndex)||0)+ve+Ge,containerWidth:$e,isLastVisible:Fe,position:Le},typeof h=="function"?h(_e,Me):{},(ct=o.componentsProps)==null?void 0:ct.row),_e))}return vt},J=H.width&&v>H.width,fe=u.useMemo(()=>{const ne=Math.max(C.currentPageTotalHeight,1);let he=!1;I!=null&&I.current&&ne<=(I==null?void 0:I.current.clientHeight)&&(he=!0);const be={width:J?v:"auto",height:ne,minHeight:he?"100%":"auto"};return o.autoHeight&&x.rows.length===0&&(be.height=2*b),be},[I,v,C.currentPageTotalHeight,x.rows.length,J,o.autoHeight,b]);u.useEffect(()=>{r.current.publishEvent("virtualScrollerContentSizeChange")},[r,fe]),o.autoHeight&&x.rows.length===0&&(fe.height=2*b);const Q={};J||(Q.overflowX="hidden"),o.autoHeight&&(Q.overflowY="hidden");const le=u.useCallback(()=>R.current,[]);return r.current.unstable_getRenderContext=le,{renderContext:M,updateRenderZonePosition:N,getRows:ie,getRootProps:(ne={})=>{let{style:he={}}=ne,be=se(ne,ehe);return P({ref:_,onScroll:W,onWheel:q,onTouchMove:X,style:P({},he,Q)},be)},getContentProps:({style:ne={}}={})=>({style:P({},ne,fe)}),getRenderZoneProps:()=>({ref:k})}},ohe=["className","disableVirtualization"],ihe=u.forwardRef(function(t,n){const{className:r,disableVirtualization:o}=t,i=se(t,ohe),{getRootProps:s,getContentProps:a,getRenderZoneProps:c,getRows:d}=rhe({ref:n,disableVirtualization:o});return T.jsx(Wpe,P({className:r},s(i),{children:T.jsx(Ype,P({},a(),{children:T.jsx(Zpe,P({},c(),{children:d()}))}))}))}),she=e=>{const{classes:t,headerAlign:n,isDragging:r,showRightBorder:o,showColumnBorder:i,groupId:s}=e;return ke({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",o&&"withBorder",i&&"columnHeader--showColumnBorder",s===null?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]},Bt,t)};function lhe(e){var t,n;const{groupId:r,width:o,depth:i,maxDepth:s,fields:a,height:c,colIndex:d,isLastColumn:p,extendRowFullWidth:h}=e,m=Xe(),v=Et(),b=Ye(v,lF),{hasScrollX:g,hasScrollY:S}=(t=v.current.getRootDimensions())!=null?t:{hasScrollX:!1,hasScrollY:!1},C=r?b[r]:{},{headerName:E=r!=null?r:"",description:w="",headerAlign:x=void 0}=C;let k;const I=r&&((n=b[r])==null?void 0:n.renderHeaderGroup),_={groupId:r,headerName:E,description:w,depth:i,maxDepth:s,fields:a,colIndex:d,isLastColumn:p};r&&I&&(k=I(_));const O=p?!(p&&g&&!S)&&!h:m.showColumnRightBorder,R=m.showColumnRightBorder,L=P({},e,{classes:m.classes,showRightBorder:O,showColumnBorder:R,headerAlign:x,depth:i,isDragging:!1}),H=E!=null?E:r,j=In(),A=r===null?`empty-group-cell-${j}`:r,F=she(L),z=typeof C.headerClassName=="function"?C.headerClassName(_):C.headerClassName;return T.jsx(UA,{classes:F,columnMenuOpen:!1,colIndex:d,height:c,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:-1,isDraggable:!1,headerComponent:k,headerClassName:z,description:w,elementId:A,width:o,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:H,"aria-colspan":a.length,"data-fields":`|-${a.join("-|-")}-|`,disableHeaderSeparator:!0})}const nM=oe("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function ahe(e){return!!e.target}const che=e=>{const{innerRef:t,minColumnIndex:n=0}=e,[r,o]=u.useState(""),[i,s]=u.useState(""),a=Et(),c=Ye(a,Ar),d=Ye(a,Ga),p=Ye(a,OA),h=Ye(a,gg),m=Ye(a,Sle),v=Ye(a,$A),b=Ye(a,ES),g=Ye(a,Ep),S=Ye(a,ple),C=Ye(a,sle),E=Ye(a,sF),w=Xe(),x=u.useRef(null),k=Ut(t,x),[I,_]=u.useState(null),M=u.useRef(I),O=u.useRef(0),R=oc(a,w);u.useEffect(()=>{a.current.columnHeadersContainerElementRef.current.scrollLeft=0},[a]);const L=u.useRef(EA(xue,{equalityCheck:(ie,J)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every(fe=>ie[fe]===J[fe])})),H=u.useCallback(ie=>{const[J,fe]=yl({firstIndex:ie.firstRowIndex,lastIndex:ie.lastRowIndex,minFirstIndex:0,maxLastIndex:R.rows.length,buffer:w.rowBuffer}),Q=L.current({firstColumnIndex:ie.firstColumnIndex,minColumnIndex:n,columnBuffer:w.columnBuffer,firstRowToRender:J,lastRowToRender:fe,apiRef:a,visibleRows:R.rows}),le=Q>0?O.current-d[Q]:O.current;x.current.style.transform=`translate3d(${-le}px, 0px, 0px)`},[d,n,w.columnBuffer,a,R.rows,w.rowBuffer]);u.useLayoutEffect(()=>{I&&H(I)},[I,H]);const j=u.useCallback(({left:ie,renderContext:J=null},fe)=>{var Q,le;if(!x.current||O.current===ie&&((Q=M.current)==null?void 0:Q.firstColumnIndex)===(J==null?void 0:J.firstColumnIndex)&&((le=M.current)==null?void 0:le.lastColumnIndex)===(J==null?void 0:J.lastColumnIndex))return;O.current=ie;let ne=!1;J!==M.current||!M.current?(ahe(fe)?(jl.flushSync(()=>{_(J)}),ne=!0):_(J),M.current=J):ne=!0,J&&ne&&H(J)},[H]),A=u.useCallback(ie=>s(ie.field),[]),F=u.useCallback(()=>s(""),[]),z=u.useCallback(ie=>o(ie.field),[]),G=u.useCallback(()=>o(""),[]);Ne(a,"columnResizeStart",A),Ne(a,"columnResizeStop",F),Ne(a,"columnHeaderDragStart",z),Ne(a,"columnHeaderDragEnd",G),Ne(a,"rowsScroll",j);const N=ie=>{const{renderContext:J=I,minFirstColumn:fe=n,maxLastColumn:Q=c.length}=ie||{};if(!J)return null;const[le,ne]=yl({firstIndex:J.firstRowIndex,lastIndex:J.lastRowIndex,minFirstIndex:0,maxLastIndex:R.rows.length,buffer:w.rowBuffer}),he=L.current({firstColumnIndex:J.firstColumnIndex,minColumnIndex:fe,columnBuffer:w.columnBuffer,apiRef:a,firstRowToRender:le,lastRowToRender:ne,visibleRows:R.rows}),be=Math.min(J.lastColumnIndex+w.columnBuffer,Q);return{renderedColumns:c.slice(he,be),firstColumnToRender:he,lastColumnToRender:be,minFirstColumn:fe,maxLastColumn:Q}},B=(ie,J={})=>{const fe=N(ie);if(fe==null)return null;const{renderedColumns:Q,firstColumnToRender:le}=fe,ne=[];for(let he=0;he<Q.length;he+=1){const be=Q[he],ge=le+he,$e=ge===0,Be=!(p===null&&h===null),Le=p!==null&&p.field===be.field||$e&&!Be?0:-1,re=m!==null&&m.field===be.field,Te=E.open&&E.field===be.field;ne.push(T.jsx(gce,P({},C[be.field],{columnMenuOpen:Te,filterItemsCounter:S[be.field]&&S[be.field].length,headerHeight:v,isDragging:be.field===r,column:be,colIndex:ge,isResizing:i===be.field,isLastColumn:ge===c.length-1,extendRowFullWidth:!w.disableExtendRowFullWidth,hasFocus:re,tabIndex:Le},J),be.field))}return T.jsx(nM,{role:"row","aria-rowindex":b+1,ownerState:w,children:ne})},W=(ie=[],J)=>ie.slice(0,J+1),q=ie=>{if(b===0)return null;const J=N(ie);if(J==null||J.renderedColumns.length===0)return null;const{renderedColumns:fe,firstColumnToRender:Q,lastColumnToRender:le,maxLastColumn:ne}=J,he=[],be=[];for(let it=0;it<b;it+=1){var ge,$e,Be;const vt=[];let ht=0,ct=Q-1;const Ge=(ge=c[Q])==null||($e=ge.groupPath)==null?void 0:$e[it],_e=W((Be=c[Q])==null?void 0:Be.groupPath,it);for(;Ge!==null&&ct>=n&&(Le=c[ct])!=null&&Le.groupPath&&Ns(W((re=c[ct])==null?void 0:re.groupPath,it),_e);){var Le,re,Te;const Ve=c[ct];if(ht+=(Te=Ve.computedWidth)!=null?Te:0,vt.length===0){var ve;vt.push({width:(ve=Ve.computedWidth)!=null?ve:0,fields:[Ve.field],groupId:Ge,groupParents:_e,colIndex:ct})}else{var ze;vt[0].width+=(ze=Ve.computedWidth)!=null?ze:0,vt[0].fields.push(Ve.field),vt[0].colIndex=ct}ct-=1}const Me=fe.reduce((Ve,Se,Oe)=>{var Ue;const st=Ve[Ve.length-1];if(Se.groupPath&&Se.groupPath.length>it){var Ft;if(st&&st.groupId===Se.groupPath[it]){var an;return[...Ve.slice(0,Ve.length-1),P({},st,{width:st.width+((an=Se.computedWidth)!=null?an:0),fields:[...st.fields,Se.field]})]}return[...Ve,{groupId:Se.groupPath[it],groupParents:W(Se.groupPath,it),width:(Ft=Se.computedWidth)!=null?Ft:0,fields:[Se.field],colIndex:Q+Oe}]}if(st&&st.groupId===null&&Ns(W(Se.groupPath,it),st.groupParents)){var yn;return[...Ve.slice(0,Ve.length-1),P({},st,{width:st.width+((yn=Se.computedWidth)!=null?yn:0),fields:[...st.fields,Se.field]})]}return[...Ve,{groupId:null,groupParents:W(Se.groupPath,it),width:(Ue=Se.computedWidth)!=null?Ue:0,fields:[Se.field],colIndex:Q+Oe}]},vt);ct=le;const Fe=Me[Me.length-1].groupId;for(;Fe!==null&&ct<ne&&(nt=c[ct])!=null&&nt.groupPath&&((pt=c[ct])==null||(Qe=pt.groupPath)==null?void 0:Qe[it])===Fe;){var nt,pt,Qe,Ct;const Ve=c[ct];Me[Me.length-1].width+=(Ct=Ve.computedWidth)!=null?Ct:0,Me[Me.length-1].fields.push(Ve.field),ct+=1}be.push({leftOverflow:ht,elements:[...Me]})}return be.forEach((it,vt)=>{he.push(T.jsx(nM,{style:{height:`${v}px`,transform:`translateX(-${it.leftOverflow}px)`},role:"row","aria-rowindex":vt+1,ownerState:w,children:it.elements.map(({groupId:ht,width:ct,fields:Ge,colIndex:_e},Me)=>T.jsx(lhe,{groupId:ht,width:ct,fields:Ge,colIndex:_e,depth:vt,isLastColumn:_e===c.length-Ge.length,extendRowFullWidth:!w.disableExtendRowFullWidth,maxDepth:be.length,height:v},Me))},vt))}),he},X={minHeight:g,maxHeight:g,lineHeight:`${v}px`};return{renderContext:I,getColumnHeaders:B,getColumnGroupHeaders:q,isDragging:!!r,getRootProps:(ie={})=>P({style:X},ie),getInnerProps:()=>({ref:k,role:"rowgroup"})}},uhe=["className"],dhe=e=>{const{classes:t}=e;return ke({root:["columnHeaders"]},Bt,t)},fhe=oe("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})(({theme:e})=>({position:"absolute",top:0,left:0,right:0,overflow:"hidden",display:"flex",alignItems:"center",boxSizing:"border-box",borderBottom:`1px solid ${e.palette.mode==="light"?Us(at(e.palette.divider,1),.88):Vs(at(e.palette.divider,1),.68)}`,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius})),phe=u.forwardRef(function(t,n){const{className:r}=t,o=se(t,uhe),i=Xe(),s=dhe(i);return T.jsx(fhe,P({ref:n,className:pe(r,s.root),ownerState:i},o))}),hhe=["isDragging","className"],mhe=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return ke({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},Bt,r)},ghe=oe("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${ee.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})(()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${ee.columnHeaderDropZone} .${ee.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${ee["columnHeadersInner--scrollable"]} .${ee.columnHeader}:last-child`]:{borderRight:"none"}})),vhe=u.forwardRef(function(t,n){var r,o;const{isDragging:i,className:s}=t,a=se(t,hhe),c=Et(),d=Xe(),p=P({},d,{isDragging:i,hasScrollX:(r=(o=c.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1}),h=mhe(p);return T.jsx(ghe,P({ref:n,className:pe(s,h.root),ownerState:p},a))}),yhe=["innerRef","className"],bhe=u.forwardRef(function(t,n){const{innerRef:r}=t,o=se(t,yhe),{isDragging:i,getRootProps:s,getInnerProps:a,getColumnHeaders:c,getColumnGroupHeaders:d}=che({innerRef:r});return T.jsxs(phe,P({ref:n},s(o),{children:[T.jsx(U$,{scrollDirection:"left"}),T.jsxs(vhe,P({isDragging:i},a(),{children:[d(),c()]})),T.jsx(U$,{scrollDirection:"right"})]}))}),wF=u.forwardRef(function(t,n){const r=jpe(t),o=Npe(r);return T.jsx(Gde,{apiRef:o,props:r,children:T.jsx(Fae,{className:r.className,style:r.style,sx:r.sx,ref:n,children:T.jsxs(wle,{children:[T.jsx(xle,{}),T.jsx(yle,{ColumnHeadersComponent:bhe,VirtualScrollerComponent:ihe}),T.jsx(Cle,{})]})})})}),Yu=u.memo(wF);wF.propTypes={"aria-label":ue.string,"aria-labelledby":ue.string,autoHeight:ue.bool,autoPageSize:ue.bool,cellModesModel:ue.object,checkboxSelection:ue.bool,classes:ue.object,columnBuffer:ue.number,columnGroupingModel:ue.arrayOf(ue.object),columns:ib(ue.array.isRequired),columnThreshold:ue.number,columnTypes:ue.object,columnVisibilityModel:ue.object,components:ue.object,componentsProps:ue.object,density:ue.oneOf(["comfortable","compact","standard"]),disableColumnFilter:ue.bool,disableColumnMenu:ue.bool,disableColumnSelector:ue.bool,disableDensitySelector:ue.bool,disableExtendRowFullWidth:ue.bool,disableIgnoreModificationsIfProcessingProps:ue.bool,disableSelectionOnClick:ue.bool,disableVirtualization:ue.bool,editMode:ue.oneOf(["cell","row"]),editRowsModel:ue.object,error:ue.any,experimentalFeatures:ue.shape({columnGrouping:ue.bool,newEditingApi:ue.bool,preventCommitWhileValidating:ue.bool,warnIfFocusStateIsNotSynced:ue.bool}),filterMode:ue.oneOf(["client","server"]),filterModel:ue.shape({items:ue.arrayOf(ue.shape({columnField:ue.string.isRequired,id:ue.oneOfType([ue.number,ue.string]),operatorValue:ue.string,value:ue.any})).isRequired,linkOperator:ue.oneOf(["and","or"]),quickFilterLogicOperator:ue.oneOf(["and","or"]),quickFilterValues:ue.array}),getCellClassName:ue.func,getDetailPanelContent:ue.func,getEstimatedRowHeight:ue.func,getRowClassName:ue.func,getRowHeight:ue.func,getRowId:ue.func,getRowSpacing:ue.func,headerHeight:ue.number,hideFooter:ue.bool,hideFooterPagination:ue.bool,hideFooterSelectedRowCount:ue.bool,initialState:ue.object,isCellEditable:ue.func,isRowSelectable:ue.func,keepNonExistentRowsSelected:ue.bool,loading:ue.bool,localeText:ue.object,logger:ue.shape({debug:ue.func.isRequired,error:ue.func.isRequired,info:ue.func.isRequired,warn:ue.func.isRequired}),logLevel:ue.oneOf(["debug","error","info","warn",!1]),nonce:ue.string,onCellClick:ue.func,onCellDoubleClick:ue.func,onCellEditCommit:ue.func,onCellEditStart:ue.func,onCellEditStop:ue.func,onCellFocusOut:ue.func,onCellKeyDown:ue.func,onCellModesModelChange:ue.func,onColumnHeaderClick:ue.func,onColumnHeaderDoubleClick:ue.func,onColumnHeaderEnter:ue.func,onColumnHeaderLeave:ue.func,onColumnHeaderOut:ue.func,onColumnHeaderOver:ue.func,onColumnOrderChange:ue.func,onColumnVisibilityChange:ue.func,onColumnVisibilityModelChange:ue.func,onEditCellPropsChange:ue.func,onEditRowsModelChange:ue.func,onError:ue.func,onFilterModelChange:ue.func,onMenuClose:ue.func,onMenuOpen:ue.func,onPageChange:ue.func,onPageSizeChange:ue.func,onPreferencePanelClose:ue.func,onPreferencePanelOpen:ue.func,onProcessRowUpdateError:ue.func,onResize:ue.func,onRowClick:ue.func,onRowDoubleClick:ue.func,onRowEditCommit:ue.func,onRowEditStart:ue.func,onRowEditStop:ue.func,onRowModesModelChange:ue.func,onSelectionModelChange:ue.func,onSortModelChange:ue.func,onStateChange:ue.func,page:ue.number,pageSize:ib(ue.number),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(`
340
+ `)):null,paginationMode:ue.oneOf(["client","server"]),processRowUpdate:ue.func,rowBuffer:ue.number,rowCount:ue.number,rowHeight:ue.number,rowModesModel:ue.object,rows:ue.arrayOf(ue.object).isRequired,rowSpacingType:ue.oneOf(["border","margin"]),rowsPerPageOptions:ue.arrayOf(ue.number),rowThreshold:ue.number,scrollbarSize:ue.number,selectionModel:ib(ue.oneOfType([ue.number,ue.string,ue.array])),showCellRightBorder:ue.bool,showColumnRightBorder:ue.bool,sortingMode:ue.oneOf(["client","server"]),sortingOrder:ue.arrayOf(ue.oneOf(["asc","desc"])),sortModel:ue.arrayOf(ue.shape({field:ue.string.isRequired,sort:ue.oneOf(["asc","desc"])})),sx:ue.oneOfType([ue.arrayOf(ue.oneOfType([ue.func,ue.object,ue.bool])),ue.func,ue.object])};function whe(){return u.createElement(u.Fragment,{},u.createElement(xhe),u.createElement(She))}const Che=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function xhe(){const{data:e,element:t}=Io("get_status"),{data:n}=gse("get_connection_stats");e&&n&&Object.assign(e,n);const r=Va("md"),o=Va("sm");return t||u.createElement(Je,{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:ja,minWidth:"4em"}),o&&i("got",{render:ja,minWidth:"4em"}),i("outSpeed",{label:"Output speed",render:CF}));function i(a,{label:c,minWidth:d,render:p}={}){let h=Lt.get(e,a);if(h===void 0)return null;typeof h=="string"&&Che.test(h)&&(h=new Date(h).toLocaleString());let m;return p&&(h=p(h),Array.isArray(h)&&([h,m]=h)),c||(c=Lt.capitalize(a.replaceAll("_"," "))),u.createElement(Rv,{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 She(){const{list:e,error:t,props:n}=nc("get_connections"),[r,o]=u.useState(!0),[i,s]=u.useState(!1),a=u.useMemo(()=>e==null?void 0:e.filter(d=>!r||d.path).map((d,p)=>Ie({id:p},d)),[!i&&e,r]),c=u.useMemo(()=>[{field:"ip",headerName:"Address",flex:1,maxWidth:400,valueGetter:({row:d,value:p})=>(d.v===6?`[${p}]`:p)+" :"+d.port},{field:"user",headerName:"User"},{field:"started",headerName:"Started",type:"dateTime",width:130,valueFormatter:({value:d})=>new Date(d).toLocaleTimeString()},{field:"path",headerName:"File",flex:1,renderCell({value:d,row:p}){if(!d)return;if(p.archive)return u.createElement(u.Fragment,{},u.createElement(wA,{sx:{mr:1}}),p.archive,u.createElement(Je,{ml:2,color:"text.secondary"},d));const h=d==null?void 0:d.lastIndexOf("/");return u.createElement(u.Fragment,{},p.uploadProgress!==void 0&&u.createElement(aA,{icon:wp,progress:p.uploadProgress,sx:{mr:1}}),d.slice(h+1),h>0&&u.createElement(Je,{ml:2,color:"text.secondary"},d.slice(0,h)))}},{field:"v",headerName:"Protocol",align:"center",hide:!0,renderCell:({value:d,row:p})=>u.createElement(u.Fragment,{},"IPv"+d,p.secure&&yo(pS,"HTTPS",{opacity:.5}))},{field:"outSpeed",headerName:"Speed",type:"number",renderCell:({value:d,row:p})=>CF(Math.max(d||0,p.inSpeed||0))},{field:"sent",headerName:"Total",type:"number",renderCell:({value:d,row:p})=>ja(Math.max(d||0,p.got||0))},{field:"agent",headerName:"Agent"},{field:"Actions",width:80,align:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell({row:d}){return u.createElement("div",{},u.createElement(Nn,{icon:Ti,title:"Disconnect",onClick:()=>$t("disconnect",Lt.pick(d,["ip","port"]))}),u.createElement(Nn,{icon:bA,title:"Block IP",disabled:d.ip===(n==null?void 0:n.you),onClick:()=>Ehe(d.ip)}))}}],[n]);return u.createElement(u.Fragment,{},u.createElement(Je,{display:"flex",alignItems:"center"},u.createElement(ls,{fullWidth:!1,value:r,onChange:o,options:{"Show only files":!0,"Show all connections":!1}}),u.createElement(Je,{flex:1}),u.createElement(Nn,{title:i?"Resume":"Pause",icon:i?Zv:yA,sx:{mr:1},onClick(){s(!i)}})),t?u.createElement(No,{severity:"error"},t):u.createElement(Yu,{rows:a,columns:c,localeText:r?{noRowsLabel:"No downloads at the moment"}:void 0}))}function Ehe(e){return qie("block",t=>[...t,{ip:e}])}function CF(e){return e?ja(e*1e3,{post:"B/s",k:1e3,digits:1}):""}var AS={},Phe=ft;Object.defineProperty(AS,"__esModule",{value:!0});var xF=AS.default=void 0,khe=Phe(gt()),_he=mt(),Ihe=(0,khe.default)((0,_he.jsx)("path",{d:"M5 17h14v2H5zm7-12L5.33 15h13.34z"}),"Eject");xF=AS.default=Ihe;var FS={},$he=ft;Object.defineProperty(FS,"__esModule",{value:!0});var SF=FS.default=void 0,Mhe=$he(gt()),Rhe=mt(),The=(0,Mhe.default)((0,Rhe.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward");SF=FS.default=The;var NS={},Ohe=ft;Object.defineProperty(NS,"__esModule",{value:!0});var EF=NS.default=void 0,Lhe=Ohe(gt()),Ahe=mt(),Fhe=(0,Lhe.default)((0,Ahe.jsx)("path",{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"}),"VerticalAlignTop");EF=NS.default=Fhe;var DS={},Nhe=ft;Object.defineProperty(DS,"__esModule",{value:!0});var PF=DS.default=void 0,Dhe=Nhe(gt()),Bhe=mt(),zhe=(0,Dhe.default)((0,Bhe.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");PF=DS.default=zhe;var BS={},jhe=ft;Object.defineProperty(BS,"__esModule",{value:!0});var kF=BS.default=void 0,Hhe=jhe(gt()),Vhe=mt(),Uhe=(0,Hhe.default)((0,Vhe.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");kF=BS.default=Uhe;var zS={},Whe=ft;Object.defineProperty(zS,"__esModule",{value:!0});var _F=zS.default=void 0,Ghe=Whe(gt()),rM=mt(),Khe=(0,Ghe.default)([(0,rM.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,rM.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");_F=zS.default=Khe;var jS={},qhe=ft;Object.defineProperty(jS,"__esModule",{value:!0});var IF=jS.default=void 0,Yhe=qhe(gt()),Xhe=mt(),Qhe=(0,Yhe.default)((0,Xhe.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");IF=jS.default=Qhe;var HS={},Jhe=ft;Object.defineProperty(HS,"__esModule",{value:!0});var $F=HS.default=void 0,Zhe=Jhe(gt()),eme=mt(),tme=(0,Zhe.default)((0,eme.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home");$F=HS.default=tme;var VS={},nme=ft;Object.defineProperty(VS,"__esModule",{value:!0});var MF=VS.default=void 0,rme=nme(gt()),ome=mt(),ime=(0,rme.default)((0,ome.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");MF=VS.default=ime;var US={},sme=ft;Object.defineProperty(US,"__esModule",{value:!0});var RF=US.default=void 0,lme=sme(gt()),ame=mt(),cme=(0,lme.default)((0,ame.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");RF=US.default=cme;var WS={},ume=ft;Object.defineProperty(WS,"__esModule",{value:!0});var TF=WS.default=void 0,dme=ume(gt()),fme=mt(),pme=(0,dme.default)((0,fme.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");TF=WS.default=pme;var GS={},hme=ft;Object.defineProperty(GS,"__esModule",{value:!0});var OF=GS.default=void 0,mme=hme(gt()),gme=mt(),vme=(0,mme.default)((0,gme.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");OF=GS.default=vme;var KS={},yme=ft;Object.defineProperty(KS,"__esModule",{value:!0});var LF=KS.default=void 0,bme=yme(gt()),wme=mt(),Cme=(0,bme.default)((0,wme.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");LF=KS.default=Cme;function xme(){const e=di({title:"Add files or folders",dialogProps:{sx:{minWidth:"min(90vw, 40em)",minHeight:"calc(100vh - 9em)"}},Content(){const t=AF();return u.createElement(u.Fragment,{},u.createElement(Je,{sx:{typography:"body1",px:1,py:2}},"Selected elements will be added under "+(t.isRoot?"(home)":t.id)),u.createElement(RN,{from:t.source,onSelect(r){return lt(this,null,function*(){const o=vp(yield Promise.all(r.map(i=>$t("add_vfs",{parent:t.id,source:i}).then(()=>null,s=>[i,s.message]))));o.length&&(yield Un(u.createElement(Je,{},"Some elements have been rejected",u.createElement("ul",{},o.map(([i,s])=>u.createElement("li",{key:i},i,": ",s)))),"error")),Ya(),e()})}}))}})}function Sme(){return lt(this,null,function*(){try{const e=yield Wie("Enter folder name");if(!e)return;const{id:t}=AF();yield $t("add_vfs",{parent:t,name:e}),Ya([t+e]),yield Un(`Folder "${e}" created`,"success")}catch(e){yield Un(e)}})}function AF(){const e=xn.selectedFiles[0]||xn.vfs;return e.type==="folder"?e:e.parent}function FF(n){var r=n,{items:e}=r,t=hn(r,["items"]);const[o,i]=Eo.useState(),s=!!o,a=u.useCallback(()=>i(void 0),[]);return u.createElement(Eo.Fragment,{},u.createElement(fr,Ie({"aria-controls":s?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":s?"true":void 0,onClick:c=>{i(c.currentTarget)}},t)),u.createElement(SL,{anchorEl:o,open:s,onClose:a,MenuListProps:{"aria-labelledby":"basic-button"},children:e.map((c,d)=>u.createElement(pr,Ot(Ie({key:d},c),{onClick(){var p;a(),(p=c.onClick)==null||p.apply(this,arguments)}})))}))}function Eme(){return u.createElement(Je,{display:"flex",gap:2,mb:2,sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"}},u.createElement(FF,{variant:"contained",startIcon:u.createElement(Qv),items:[{children:"from disk",onClick:xme},{children:"virtual folder",onClick:Sme}]},"Add"),tS(()=>Ya()))}function Ms(e){typeof e!="string"&&(e=e[0]);const t=/([`*/_])(.+)\1|(\n)/g,n=[];let r=0,o;for(;o=t.exec(e);){if(n.push(e.slice(r,o.index)),o[3])n.push(u.createElement("br"));else{const i={"`":"code","*":"b","/":"i",_:"u"}[o[1]];if(!i)throw Error("should never happen");n.push(u.createElement(i,{},o[2]))}r=o.index+o[0].length}return u.createElement(u.Fragment,{},...n,e.slice(r,1/0))}const qS=Symbol.for("yaml.alias"),Pw=Symbol.for("yaml.document"),Bl=Symbol.for("yaml.map"),NF=Symbol.for("yaml.pair"),Ks=Symbol.for("yaml.scalar"),Xu=Symbol.for("yaml.seq"),ai=Symbol.for("yaml.node.type"),ic=e=>!!e&&typeof e=="object"&&e[ai]===qS,$p=e=>!!e&&typeof e=="object"&&e[ai]===Pw,sc=e=>!!e&&typeof e=="object"&&e[ai]===Bl,$n=e=>!!e&&typeof e=="object"&&e[ai]===NF,vn=e=>!!e&&typeof e=="object"&&e[ai]===Ks,Qu=e=>!!e&&typeof e=="object"&&e[ai]===Xu;function An(e){if(e&&typeof e=="object")switch(e[ai]){case Bl:case Xu:return!0}return!1}function Yn(e){if(e&&typeof e=="object")switch(e[ai]){case qS:case Bl:case Ks:case Xu:return!0}return!1}const Pme=e=>(vn(e)||An(e))&&!!e.anchor;class YS{constructor(t){Object.defineProperty(this,ai,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}}const Jr=Symbol("break visit"),DF=Symbol("skip children"),rs=Symbol("remove node");function Xl(e,t){const n=BF(t);$p(e)?Qc(null,e.contents,n,Object.freeze([e]))===rs&&(e.contents=null):Qc(null,e,n,Object.freeze([]))}Xl.BREAK=Jr;Xl.SKIP=DF;Xl.REMOVE=rs;function Qc(e,t,n,r){const o=zF(e,t,n,r);if(Yn(o)||$n(o))return jF(e,r,o),Qc(e,o,n,r);if(typeof o!="symbol"){if(An(t)){r=Object.freeze(r.concat(t));for(let i=0;i<t.items.length;++i){const s=Qc(i,t.items[i],n,r);if(typeof s=="number")i=s-1;else{if(s===Jr)return Jr;s===rs&&(t.items.splice(i,1),i-=1)}}}else if($n(t)){r=Object.freeze(r.concat(t));const i=Qc("key",t.key,n,r);if(i===Jr)return Jr;i===rs&&(t.key=null);const s=Qc("value",t.value,n,r);if(s===Jr)return Jr;s===rs&&(t.value=null)}}return o}function iy(e,t){return lt(this,null,function*(){const n=BF(t);$p(e)?(yield Jc(null,e.contents,n,Object.freeze([e])))===rs&&(e.contents=null):yield Jc(null,e,n,Object.freeze([]))})}iy.BREAK=Jr;iy.SKIP=DF;iy.REMOVE=rs;function Jc(e,t,n,r){return lt(this,null,function*(){const o=yield zF(e,t,n,r);if(Yn(o)||$n(o))return jF(e,r,o),Jc(e,o,n,r);if(typeof o!="symbol"){if(An(t)){r=Object.freeze(r.concat(t));for(let i=0;i<t.items.length;++i){const s=yield Jc(i,t.items[i],n,r);if(typeof s=="number")i=s-1;else{if(s===Jr)return Jr;s===rs&&(t.items.splice(i,1),i-=1)}}}else if($n(t)){r=Object.freeze(r.concat(t));const i=yield Jc("key",t.key,n,r);if(i===Jr)return Jr;i===rs&&(t.key=null);const s=yield Jc("value",t.value,n,r);if(s===Jr)return Jr;s===rs&&(t.value=null)}}return o})}function BF(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 zF(e,t,n,r){var o,i,s,a,c;if(typeof n=="function")return n(e,t,r);if(sc(t))return(o=n.Map)==null?void 0:o.call(n,e,t,r);if(Qu(t))return(i=n.Seq)==null?void 0:i.call(n,e,t,r);if($n(t))return(s=n.Pair)==null?void 0:s.call(n,e,t,r);if(vn(t))return(a=n.Scalar)==null?void 0:a.call(n,e,t,r);if(ic(t))return(c=n.Alias)==null?void 0:c.call(n,e,t,r)}function jF(e,t,n){const r=t[t.length-1];if(An(r))r.items[e]=n;else if($n(r))e==="key"?r.key=n:r.value=n;else if($p(r))r.contents=n;else{const o=ic(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const kme={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},_me=e=>e.replace(/[!,[\]{}]/g,t=>kme[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+_me(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&&Yn(t.contents)){const i={};Xl(t.contents,(s,a)=>{Yn(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(`
341
+ `)}}jr.defaultYaml={explicit:!1,version:"1.2"};jr.defaultTags={"!!":"tag:yaml.org,2002:"};function HF(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 VF(e){const t=new Set;return Xl(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function UF(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function Ime(e,t){const n=[],r=new Map;let o=null;return{onAnchor:i=>{n.push(i),o||(o=VF(e));const s=UF(t,o);return o.add(s),s},setAnchors:()=>{for(const i of n){const s=r.get(i);if(typeof s=="object"&&s.anchor&&(vn(s.node)||An(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}}class sy extends YS{constructor(t){super(qS),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return Xl(t,{Node:(r,o)=>{if(o===this)return Xl.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)}const a=r.get(s);if(!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=Sm(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(HF(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 Sm(e,t,n){if(ic(t)){const r=t.resolve(e),o=n&&r&&n.get(r);return o?o.count*o.aliasCount:0}else if(An(t)){let r=0;for(const o of t.items){const i=Sm(e,o,n);i>r&&(r=i)}return r}else if($n(t)){const r=Sm(e,t.key,n),o=Sm(e,t.value,n);return Math.max(r,o)}return 1}function os(e,t,n){if(Array.isArray(e))return e.map((r,o)=>os(r,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!Pme(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}const WF=e=>!e||typeof e!="function"&&typeof e!="object";class _t extends YS{constructor(t){super(Ks),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:os(this.value,t,n)}toString(){return String(this.value)}}_t.BLOCK_FOLDED="BLOCK_FOLDED";_t.BLOCK_LITERAL="BLOCK_LITERAL";_t.PLAIN="PLAIN";_t.QUOTE_DOUBLE="QUOTE_DOUBLE";_t.QUOTE_SINGLE="QUOTE_SINGLE";const $me="tag:yaml.org,2002:";function Mme(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 ep(e,t,n){var h,m;if($p(e)&&(e=e.contents),Yn(e))return e;if($n(e)){const v=(m=(h=n.schema[Bl]).createNode)==null?void 0:m.call(h,n.schema,null,n);return v.items.push(e),v}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!="undefined"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:o,onTagObj: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 sy(c.anchor);c={anchor:null,node:null},a.set(e,c)}t!=null&&t.startsWith("!!")&&(t=$me+t.slice(2));let d=Mme(e,t,s.tags);if(!d){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const v=new _t(e);return c&&(c.node=v),v}d=e instanceof Map?s[Bl]:Symbol.iterator in Object(e)?s[Xu]:s[Bl]}i&&(i(d),delete n.onTagObj);const p=d!=null&&d.createNode?d.createNode(n.schema,e,n):new _t(e);return t&&(p.tag=t),c&&(c.node=p),p}function Cg(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 ep(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 Yd=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class ly extends YS{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=>Yn(r)||$n(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Yd(t))this.add(n);else{const[r,...o]=t,i=this.get(r,!0);if(An(i))i.addIn(o,n);else if(i===void 0&&this.schema)this.set(r,Cg(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(An(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&&vn(i)?i.value:i:An(i)?i.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!$n(n))return!1;const r=n.value;return r==null||t&&vn(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 An(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(An(i))i.setIn(o,n);else if(i===void 0&&this.schema)this.set(r,Cg(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}}ly.maxFlowStringSingleLineLength=60;const Rme=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function As(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const Il=(e,t,n)=>e.endsWith(`
342
+ `)?As(n,t):n.includes(`
343
+ `)?`
344
+ `+As(n,t):(e.endsWith(" ")?"":" ")+n,GF="flow",kw="block",Em="quoted";function ay(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,v,b=!1,g=-1,S=-1,C=-1;n===kw&&(g=oM(e,g),g!==-1&&(h=g+c));for(let w;w=e[g+=1];){if(n===Em&&w==="\\"){switch(S=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}C=g}if(w===`
345
+ `)n===kw&&(g=oM(e,g)),h=g+c,m=void 0;else{if(w===" "&&v&&v!==" "&&v!==`
346
+ `&&v!==" "){const x=e[g+1];x&&x!==" "&&x!==`
347
+ `&&x!==" "&&(m=g)}if(g>=h)if(m)d.push(m),h=m+c,m=void 0;else if(n===Em){for(;v===" "||v===" ";)v=w,w=e[g+=1],b=!0;const x=g>C+1?g-2:S-1;if(p[x])return e;d.push(x),p[x]=!0,h=x+c,m=void 0}else b=!0}v=w}if(b&&a&&a(),d.length===0)return e;s&&s();let E=e.slice(0,d[0]);for(let w=0;w<d.length;++w){const x=d[w],k=d[w+1]||e.length;x===0?E=`
348
+ ${t}${e.slice(0,k)}`:(n===Em&&p[x]&&(E+=`${e[x]}\\`),E+=`
349
+ ${t}${e.slice(x+1,k)}`)}return E}function oM(e,t){let n=e[t+1];for(;n===" "||n===" ";){do n=e[t+=1];while(n&&n!==`
350
+ `);n=e[t+1]}return t}const cy=e=>({indentAtStart:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),uy=e=>/^(%|---|\.\.\.)/m.test(e);function Tme(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]===`
351
+ `){if(i-s>r)return!0;if(s=i+1,o-s<=r)return!1}return!0}function yf(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(uy(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)+`
352
+
353
+ `;n[c+2]==="\\"&&n[c+3]==="n"&&n[c+4]!=='"';)s+=`
354
+ `,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:ay(s,i,Em,cy(t))}function _w(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
355
+ `)||/[ \t]\n|\n[ \t]/.test(e))return yf(e,t);const n=t.indent||(uy(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
356
+ ${n}`)+"'";return t.implicitKey?r:ay(r,n,GF,cy(t))}function Zc(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=yf;else{const o=e.includes('"'),i=e.includes("'");o&&!i?r=_w:i&&!o?r=yf:r=n?_w:yf}return r(e,t)}function Pm({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 Zc(n,r);const d=r.indent||(r.forceBlockIndent||uy(n)?" ":""),p=s==="literal"?!0:s==="folded"||t===_t.BLOCK_FOLDED?!1:t===_t.BLOCK_LITERAL?!0:!Tme(n,c,d.length);if(!n)return p?`|
357
+ `:`>
358
+ `;let h,m;for(m=n.length;m>0;--m){const I=n[m-1];if(I!==`
359
+ `&&I!==" "&&I!==" ")break}let v=n.substring(m);const b=v.indexOf(`
360
+ `);b===-1?h="-":n===v||b!==v.length-1?(h="+",i&&i()):h="",v&&(n=n.slice(0,-v.length),v[v.length-1]===`
361
+ `&&(v=v.slice(0,-1)),v=v.replace(/\n+(?!\n|$)/g,`$&${d}`));let g=!1,S,C=-1;for(S=0;S<n.length;++S){const I=n[S];if(I===" ")g=!0;else if(I===`
362
+ `)C=S;else break}let E=n.substring(0,C<S?C+1:S);E&&(n=n.substring(E.length),E=E.replace(/\n+/g,`$&${d}`));let x=(p?"|":">")+(g?d?"2":"1":"")+h;if(e&&(x+=" "+a(e.replace(/ ?[\r\n]+/g," ")),o&&o()),p)return n=n.replace(/\n+/g,`$&${d}`),`${x}
363
+ ${d}${E}${n}${v}`;n=n.replace(/\n+/g,`
364
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const k=ay(`${E}${n}${v}`,d,kw,cy(r));return`${x}
365
+ ${d}${k}`}function Ome(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 Zc(i,t);if(!i||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return a||p||!i.includes(`
366
+ `)?Zc(i,t):Pm(e,t,n,r);if(!a&&!p&&o!==_t.PLAIN&&i.includes(`
367
+ `))return Pm(e,t,n,r);if(uy(i)){if(c==="")return t.forceBlockIndent=!0,Pm(e,t,n,r);if(a&&c===d)return Zc(i,t)}const h=i.replace(/\n+/g,`$&
368
+ ${c}`);if(s){const m=g=>{var S;return g.default&&g.tag!=="tag:yaml.org,2002:str"&&((S=g.test)==null?void 0:S.test(h))},{compat:v,tags:b}=t.doc.schema;if(b.some(m)||v!=null&&v.some(m))return Zc(i,t)}return a?h:ay(h,c,GF,cy(t))}function Mp(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!==_t.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value)&&(a=_t.QUOTE_DOUBLE);const c=p=>{switch(p){case _t.BLOCK_FOLDED:case _t.BLOCK_LITERAL:return o||i?Zc(s.value,t):Pm(s,t,n,r);case _t.QUOTE_DOUBLE:return yf(s.value,t);case _t.QUOTE_SINGLE:return _w(s.value,t);case _t.PLAIN:return Ome(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 KF(e,t){const n=Object.assign({blockQuote:!0,commentString:Rme,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 Lme(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(vn(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 Ame(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const o=[],i=(vn(e)||An(e))&&e.anchor;i&&HF(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 Ka(e,t,n,r){var c,d;if($n(e))return e.toString(t,n,r);if(ic(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=Yn(e)?e:t.doc.createNode(e,{onTagObj:p=>o=p});o||(o=Lme(t.doc.schema.tags,i));const s=Ame(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):vn(i)?Mp(i,t,n,r):i.toString(t,n,r);return s?vn(i)||a[0]==="{"||a[0]==="["?`${s} ${a}`:`${s}
369
+ ${t.indent}${a}`:a}function Fme({key:e,value:t},n,r,o){var _,M;const{allNullValues:i,doc:s,indent:a,indentStep:c,options:{commentString:d,indentSeq:p,simpleKeys:h}}=n;let m=Yn(e)&&e.comment||null;if(h){if(m)throw new Error("With simple keys, key nodes cannot have comments");if(An(e)){const O="With simple keys, collection cannot be used as a key value";throw new Error(O)}}let v=!h&&(!e||m&&t==null&&!n.inFlow||An(e)||(vn(e)?e.type===_t.BLOCK_FOLDED||e.type===_t.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!v&&(h||!i),indent:a+c});let b=!1,g=!1,S=Ka(e,n,()=>b=!0,()=>g=!0);if(!v&&!n.inFlow&&S.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");v=!0}if(n.inFlow){if(i||t==null)return b&&r&&r(),S===""?"?":v?`? ${S}`:S}else if(i&&!h||t==null&&v)return S=`? ${S}`,m&&!b?S+=Il(S,n.indent,d(m)):g&&o&&o(),S;b&&(m=null),v?(m&&(S+=Il(S,n.indent,d(m))),S=`? ${S}
370
+ ${a}:`):(S=`${S}:`,m&&(S+=Il(S,n.indent,d(m))));let C,E,w;Yn(t)?(C=!!t.spaceBefore,E=t.commentBefore,w=t.comment):(C=!1,E=null,w=null,t&&typeof t=="object"&&(t=s.createNode(t))),n.implicitKey=!1,!v&&!m&&vn(t)&&(n.indentAtStart=S.length+1),g=!1,!p&&c.length>=2&&!n.inFlow&&!v&&Qu(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let x=!1;const k=Ka(t,n,()=>x=!0,()=>g=!0);let I=" ";if(m||C||E){if(I=C?`
371
+ `:"",E){const O=d(E);I+=`
372
+ ${As(O,n.indent)}`}k===""&&!n.inFlow?I===`
373
+ `&&(I=`
374
+
375
+ `):I+=`
376
+ ${n.indent}`}else if(!v&&An(t)){const O=k[0],R=k.indexOf(`
377
+ `),L=R!==-1,H=(M=(_=n.inFlow)!=null?_:t.flow)!=null?M:t.items.length===0;if(L||!H){let j=!1;if(L&&(O==="&"||O==="!")){let A=k.indexOf(" ");O==="&"&&A!==-1&&A<R&&k[A+1]==="!"&&(A=k.indexOf(" ",A+1)),(A===-1||R<A)&&(j=!0)}j||(I=`
378
+ ${n.indent}`)}}else(k===""||k[0]===`
379
+ `)&&(I="");return S+=I+k,n.inFlow?x&&r&&r():w&&!x?S+=Il(S,n.indent,d(w)):g&&o&&o(),S}function qF(e,t){(e==="debug"||e==="warn")&&(typeof process!="undefined"&&process.emitWarning?process.emitWarning(t):console.warn(t))}const iM="<<";function YF(e,t,{key:n,value:r}){if(e!=null&&e.doc.schema.merge&&Nme(n))if(r=ic(r)?r.resolve(e.doc):r,Qu(r))for(const o of r.items)Rb(e,t,o);else if(Array.isArray(r))for(const o of r)Rb(e,t,o);else Rb(e,t,r);else{const o=os(n,"",e);if(t instanceof Map)t.set(o,os(r,o,e));else if(t instanceof Set)t.add(o);else{const i=Dme(n,o,e),s=os(r,i,e);i in t?Object.defineProperty(t,i,{value:s,writable:!0,enumerable:!0,configurable:!0}):t[i]=s}}return t}const Nme=e=>e===iM||vn(e)&&e.value===iM&&(!e.type||e.type===_t.PLAIN);function Rb(e,t,n){const r=e&&ic(n)?n.resolve(e.doc):n;if(!sc(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 Dme(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(Yn(e)&&n&&n.doc){const r=KF(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)+'..."'),qF(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 XS(e,t,n){const r=ep(e,void 0,n),o=ep(t,void 0,n);return new Or(r,o)}class Or{constructor(t,n=null){Object.defineProperty(this,ai,{value:NF}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return Yn(n)&&(n=n.clone(t)),Yn(r)&&(r=r.clone(t)),new Or(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return YF(n,r,this)}toString(t,n,r){return t!=null&&t.doc?Fme(this,t,n,r):JSON.stringify(this)}}function XF(e,t,n){var i;return(((i=t.inFlow)!=null?i:e.flow)?zme:Bme)(e,t,n)}function Bme({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 b=0;b<t.length;++b){const g=t[b];let S=null;if(Yn(g))!h&&g.spaceBefore&&m.push(""),xg(n,m,g.commentBefore,h),g.comment&&(S=g.comment);else if($n(g)){const E=Yn(g.key)?g.key:null;E&&(!h&&E.spaceBefore&&m.push(""),xg(n,m,E.commentBefore,h))}h=!1;let C=Ka(g,p,()=>S=null,()=>h=!0);S&&(C+=Il(C,i,d(S))),h&&S&&(h=!1),m.push(r+C)}let v;if(m.length===0)v=o.start+o.end;else{v=m[0];for(let b=1;b<m.length;++b){const g=m[b];v+=g?`
380
+ ${c}${g}`:`
381
+ `}}return e?(v+=`
382
+ `+As(d(e),c),a&&a()):h&&s&&s(),v}function zme({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 v=[];for(let C=0;C<t.length;++C){const E=t[C];let w=null;if(Yn(E))E.spaceBefore&&v.push(""),xg(n,v,E.commentBefore,!1),E.comment&&(w=E.comment);else if($n(E)){const k=Yn(E.key)?E.key:null;k&&(k.spaceBefore&&v.push(""),xg(n,v,k.commentBefore,!1),k.comment&&(h=!0));const I=Yn(E.value)?E.value:null;I?(I.comment&&(w=I.comment),I.commentBefore&&(h=!0)):E.value==null&&k&&k.comment&&(w=k.comment)}w&&(h=!0);let x=Ka(E,p,()=>w=null);C<t.length-1&&(x+=","),w&&(x+=Il(x,o,d(w))),!h&&(v.length>m||x.includes(`
383
+ `))&&(h=!0),v.push(x),m=v.length}let b;const{start:g,end:S}=r;if(v.length===0)b=g+S;else if(h||(h=v.reduce((E,w)=>E+w.length+2,2)>ly.maxFlowStringSingleLineLength),h){b=g;for(const C of v)b+=C?`
384
+ ${a}${s}${C}`:`
385
+ `;b+=`
386
+ ${s}${S}`}else b=`${g}${c}${v.join(" ")}${c}${S}`;return e&&(b+=Il(b,d(e),s),i&&i()),b}function xg({indent:e,options:{commentString:t}},n,r,o){if(r&&o&&(r=r.replace(/^\n+/,"")),r){const i=As(t(r),e);n.push(i.trimStart())}}function Sa(e,t){const n=vn(t)?t.value:t;for(const r of e)if($n(r)&&(r.key===t||r.key===n||vn(r.key)&&r.key.value===n))return r}class Qo extends ly{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Bl,t),this.items=[]}add(t,n){var s;let r;$n(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new Or(t,t==null?void 0:t.value):r=new Or(t.key,t.value);const o=Sa(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`);vn(o.value)&&WF(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=Sa(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){var i;const r=Sa(this.items,t),o=r==null?void 0:r.value;return(i=!n&&vn(o)?o.value:o)!=null?i:void 0}has(t){return!!Sa(this.items,t)}set(t,n){this.add(new Or(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)YF(n,o,i);return o}toString(t,n,r){if(!t)return JSON.stringify(this);for(const o of this.items)if(!$n(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})),XF(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}function jme(e,t,n){const{keepUndefined:r,replacer:o}=n,i=new Qo(e),s=(a,c)=>{if(typeof o=="function")c=o.call(t,a,c);else if(Array.isArray(o)&&!o.includes(a))return;(c!==void 0||r)&&i.items.push(XS(a,c,n))};if(t instanceof Map)for(const[a,c]of t)s(a,c);else if(t&&typeof t=="object")for(const a of Object.keys(t))s(a,t[a]);return typeof e.sortMapEntries=="function"&&i.items.sort(e.sortMapEntries),i}const Ju={collection:"map",createNode:jme,default:!0,nodeClass:Qo,tag:"tag:yaml.org,2002:map",resolve(e,t){return sc(e)||t("Expected a mapping for this tag"),e}};class lc extends ly{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Xu,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=Qh(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=Qh(t);if(typeof r!="number")return;const o=this.items[r];return!n&&vn(o)?o.value:o}has(t){const n=Qh(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=Qh(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[r];vn(o)&&WF(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(os(i,String(o++),n));return r}toString(t,n,r){return t?XF(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}}function Qh(e){let t=vn(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}function Hme(e,t,n){const{replacer:r}=n,o=new lc(e);if(t&&Symbol.iterator in Object(t)){let i=0;for(let s of t){if(typeof r=="function"){const a=t instanceof Set?s:String(i++);s=r.call(t,a,s)}o.items.push(ep(s,void 0,n))}}return o}const Zu={collection:"seq",createNode:Hme,default:!0,nodeClass:lc,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Qu(e)||t("Expected a sequence for this tag"),e}},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),Mp(e,t,n,r)}},fy={identify:e=>e==null,createNode:()=>new _t(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new _t(null),stringify:({source:e},t)=>typeof e=="string"&&fy.test.test(e)?e:t.options.nullStr},QS={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new _t(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&QS.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 Li({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 QF={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:Li},JF={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():Li(e)}},ZF={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 _t(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:Li},py=e=>typeof e=="bigint"||Number.isInteger(e),JS=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function eN(e,t,n){const{value:r}=e;return py(r)&&r>=0?n+r.toString(t):Li(e)}const tN={identify:e=>py(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>JS(e,2,8,n),stringify:e=>eN(e,8,"0o")},nN={identify:py,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>JS(e,0,10,n),stringify:Li},rN={identify:e=>py(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>JS(e,2,16,n),stringify:e=>eN(e,16,"0x")},Vme=[Ju,Zu,dy,fy,QS,tN,nN,rN,QF,JF,ZF];function sM(e){return typeof e=="bigint"||Number.isInteger(e)}const Jh=({value:e})=>JSON.stringify(e),Ume=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Jh},{identify:e=>e==null,createNode:()=>new _t(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Jh},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:Jh},{identify:sM,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})=>sM(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:Jh}],Wme={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},Gme=[Ju,Zu].concat(Ume,Wme),ZS={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=_t.BLOCK_LITERAL),t!==_t.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===_t.BLOCK_LITERAL?`
387
+ `:" ")}return Mp({comment:e,type:t,value:a},r,o,i)}};function oN(e,t){var n;if(Qu(e))for(let r=0;r<e.items.length;++r){let o=e.items[r];if(!$n(o)){if(sc(o)){o.items.length>1&&t("Each pair must have its own sequence indicator");const i=o.items[0]||new Or(new _t(null));if(o.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${o.commentBefore}
388
+ ${i.key.commentBefore}`:o.commentBefore),o.comment){const s=(n=i.value)!=null?n:i.key;s.comment=s.comment?`${o.comment}
389
+ ${s.comment}`:o.comment}o=i}e.items[r]=$n(o)?o:new Or(o)}}else t("Expected a sequence for this tag");return e}function iN(e,t,n){const{replacer:r}=n,o=new lc(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(XS(a,c,n))}return o}const eE={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:oN,createNode:iN};class fu extends lc{constructor(){super(),this.add=Qo.prototype.add.bind(this),this.delete=Qo.prototype.delete.bind(this),this.get=Qo.prototype.get.bind(this),this.has=Qo.prototype.has.bind(this),this.set=Qo.prototype.set.bind(this),this.tag=fu.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($n(o)?(i=os(o.key,"",n),s=os(o.value,i,n)):i=os(o,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,s)}return r}}fu.tag="tag:yaml.org,2002:omap";const tE={collection:"seq",identify:e=>e instanceof Map,nodeClass:fu,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=oN(e,t),r=[];for(const{key:o}of n.items)vn(o)&&(r.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):r.push(o.value));return Object.assign(new fu,n)},createNode(e,t,n){const r=iN(e,t,n),o=new fu;return o.items=r.items,o}};function sN({value:e,source:t},n){return t&&(e?lN:aN).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const lN={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 _t(!0),stringify:sN},aN={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 _t(!1),stringify:sN},Kme={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:Li},qme={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():Li(e)}},Yme={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 _t(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:Li},Rp=e=>typeof e=="bigint"||Number.isInteger(e);function hy(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 nE(e,t,n){const{value:r}=e;if(Rp(r)){const o=r.toString(t);return r<0?"-"+n+o.substr(1):n+o}return Li(e)}const Xme={identify:Rp,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>hy(e,2,2,n),stringify:e=>nE(e,2,"0b")},Qme={identify:Rp,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>hy(e,1,8,n),stringify:e=>nE(e,8,"0")},Jme={identify:Rp,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>hy(e,0,10,n),stringify:Li},Zme={identify:Rp,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>hy(e,2,16,n),stringify:e=>nE(e,16,"0x")};class pu extends Qo{constructor(t){super(t),this.tag=pu.tag}add(t){let n;$n(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new Or(t.key,null):n=new Or(t,null),Sa(this.items,n.key)||this.items.push(n)}get(t,n){const r=Sa(this.items,t);return!n&&$n(r)?vn(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=Sa(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new Or(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")}}pu.tag="tag:yaml.org,2002:set";const rE={collection:"map",identify:e=>e instanceof Set,nodeClass:pu,default:!1,tag:"tag:yaml.org,2002:set",resolve(e,t){if(sc(e)){if(e.hasAllNullValues(!0))return Object.assign(new pu,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e},createNode(e,t,n){const{replacer:r}=n,o=new pu(e);if(t&&Symbol.iterator in Object(t))for(let i of t)typeof r=="function"&&(i=r.call(t,i,i)),o.items.push(XS(i,null,n));return o}};function oE(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 cN(e){let{value:t}=e,n=s=>s;if(typeof t=="bigint")n=s=>BigInt(s);else if(isNaN(t)||!isFinite(t))return Li(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=>s<10?"0"+String(s):String(s)).join(":").replace(/000000\d*$/,"")}const uN={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})=>oE(e,n),stringify:cN},dN={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=>oE(e,!1),stringify:cN},my={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(my.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=oE(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$/,"")},lM=[Ju,Zu,dy,fy,lN,aN,Xme,Qme,Jme,Zme,Kme,qme,Yme,ZS,tE,eE,rE,uN,dN,my],aM=new Map([["core",Vme],["failsafe",[Ju,Zu,dy]],["json",Gme],["yaml11",lM],["yaml-1.1",lM]]),cM={binary:ZS,bool:QS,float:ZF,floatExp:JF,floatNaN:QF,floatTime:dN,int:nN,intHex:rN,intOct:tN,intTime:uN,map:Ju,null:fy,omap:tE,pairs:eE,seq:Zu,set:rE,timestamp:my},ege={"tag:yaml.org,2002:binary":ZS,"tag:yaml.org,2002:omap":tE,"tag:yaml.org,2002:pairs":eE,"tag:yaml.org,2002:set":rE,"tag:yaml.org,2002:timestamp":my};function Tb(e,t){let n=aM.get(t);if(!n)if(Array.isArray(e))n=[];else{const r=Array.from(aM.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=cM[r];if(o)return o;const i=Object.keys(cM).map(s=>JSON.stringify(s)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${i}`)})}const tge=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class gy{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:o,schema:i,sortMapEntries:s,toStringDefaults:a}){this.compat=Array.isArray(t)?Tb(t,"compat"):t?Tb(null,t):null,this.merge=!!r,this.name=typeof i=="string"&&i||"core",this.knownTags=o?ege:{},this.tags=Tb(n,this.name),this.toStringOptions=a!=null?a:null,Object.defineProperty(this,Bl,{value:Ju}),Object.defineProperty(this,Ks,{value:dy}),Object.defineProperty(this,Xu,{value:Zu}),this.sortMapEntries=typeof s=="function"?s:s===!0?tge:null}clone(){const t=Object.create(gy.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function nge(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=KF(e,t),{commentString:i}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const d=i(e.commentBefore);n.unshift(As(d,""))}let s=!1,a=null;if(e.contents){if(Yn(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const h=i(e.contents.commentBefore);n.push(As(h,""))}o.forceBlockIndent=!!e.comment,a=e.contents.comment}const d=a?void 0:()=>s=!0;let p=Ka(e.contents,o,()=>a=null,d);a&&(p+=Il(p,"",i(a))),(p[0]==="|"||p[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${p}`:n.push(p)}else n.push(Ka(e.contents,o));if((c=e.directives)!=null&&c.docEnd)if(e.comment){const d=i(e.comment);d.includes(`
390
+ `)?(n.push("..."),n.push(As(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(As(i(d),"")))}return n.join(`
391
+ `)+`
392
+ `}function Xd(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=Xd(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=Xd(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=Xd(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=Xd(e,r,o,i);s===void 0?delete r[o]:s!==i&&(r[o]=s)}return e.call(t,n,r)}class ed{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,ai,{value:Pw});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),t===void 0?this.contents=null:this.contents=this.createNode(t,o,r)}clone(){const t=Object.create(ed.prototype,{[ai]:{value:Pw}});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=Yn(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){Tc(this.contents)&&this.contents.add(t)}addIn(t,n){Tc(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=VF(this);t.anchor=!n||r.has(n)?UF(n||"a",r):n}return new sy(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 S=E=>typeof E=="number"||E instanceof String||E instanceof Number,C=n.filter(S).map(String);C.length>0&&(n=n.concat(C)),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:v}=Ime(this,s||"a"),b={aliasDuplicateObjects:i!=null?i:!0,keepUndefined:c!=null?c:!1,onAnchor:h,onTagObj:d,replacer:o,schema:this.schema,sourceObjects:v},g=ep(t,p,b);return a&&An(g)&&(g.flow=!0),m(),g}createPair(t,n,r={}){const o=this.createNode(t,null,r),i=this.createNode(n,null,r);return new Or(o,i)}delete(t){return Tc(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Yd(t)?this.contents==null?!1:(this.contents=null,!0):Tc(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return An(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return Yd(t)?!n&&vn(this.contents)?this.contents.value:this.contents:An(this.contents)?this.contents.getIn(t,n):void 0}has(t){return An(this.contents)?this.contents.has(t):!1}hasIn(t){return Yd(t)?this.contents!==void 0:An(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=Cg(this.schema,[t],n):Tc(this.contents)&&this.contents.set(t,n)}setIn(t,n){Yd(t)?this.contents=n:this.contents==null?this.contents=Cg(this.schema,Array.from(t),n):Tc(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 gy(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,stringify:Ka},c=os(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"?Xd(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 nge(this,t)}}function Tc(e){if(An(e))return!0;throw new Error("Expected a YAML collection as document contents")}class iE extends Error{constructor(t,n,r,o){super(),this.name=t,this.code=r,this.message=o,this.pos=n}}class Ea extends iE{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class fN extends iE{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const Sg=(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)+`…
393
+ `),s=a+s}if(/[^ ]/.test(s)){let a=1;const c=n.linePos[1];c&&c.line===r&&c.col>o&&(a=Math.min(c.col-o,80-i));const d=" ".repeat(i)+"^".repeat(a);n.message+=`:
394
+
395
+ ${s}
396
+ ${d}
397
+ `}};function Au(e,{flow:t,indicator:n,next:r,offset:o,onError:i,startOnNewline:s}){let a=!1,c=s,d=s,p="",h="",m=!1,v=!1,b=!1,g=null,S=null,C=null,E=null,w=null;for(const I of e)switch(b&&(I.type!=="space"&&I.type!=="newline"&&I.type!=="comma"&&i(I.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),b=!1),I.type){case"space":!t&&c&&n!=="doc-start"&&I.source[0]===" "&&i(I,"TAB_AS_INDENT","Tabs are not allowed as indentation"),d=!0;break;case"comment":{d||i(I,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const _=I.source.substring(1)||" ";p?p+=h+_:p=_,h="",c=!1;break}case"newline":c?p?p+=I.source:a=!0:h+=I.source,c=!0,m=!0,(g||S)&&(v=!0),d=!0;break;case"anchor":g&&i(I,"MULTIPLE_ANCHORS","A node can have at most one anchor"),I.source.endsWith(":")&&i(I.offset+I.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=I,w===null&&(w=I.offset),c=!1,d=!1,b=!0;break;case"tag":{S&&i(I,"MULTIPLE_TAGS","A node can have at most one tag"),S=I,w===null&&(w=I.offset),c=!1,d=!1,b=!0;break}case n:(g||S)&&i(I,"BAD_PROP_ORDER",`Anchors and tags must be after the ${I.source} indicator`),E&&i(I,"UNEXPECTED_TOKEN",`Unexpected ${I.source} in ${t!=null?t:"collection"}`),E=I,c=!1,d=!1;break;case"comma":if(t){C&&i(I,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),C=I,c=!1,d=!1;break}default:i(I,"UNEXPECTED_TOKEN",`Unexpected ${I.type} token`),c=!1,d=!1}const x=e[e.length-1],k=x?x.offset+x.source.length:o;return b&&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:C,found:E,spaceBefore:a,comment:p,hasNewline:m,hasNewlineAfterProp:v,anchor:g,tag:S,end:k,start:w!=null?w:k}}function tp(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
398
+ `))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(tp(t.key)||tp(t.value))return!0}return!1;default:return!0}}function Iw(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&tp(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function pN(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const o=typeof r=="function"?r:(i,s)=>i===s||vn(i)&&vn(s)&&i.value===s.value&&!(i.value==="<<"&&e.schema.merge);return t.some(i=>o(i.key,n))}const uM="All mapping items must start at the same column";function rge({composeNode:e,composeEmptyNode:t},n,r,o){var c;const i=new Qo(n.schema);n.atRoot&&(n.atRoot=!1);let s=r.offset,a=null;for(const d of r.items){const{start:p,key:h,sep:m,value:v}=d,b=Au(p,{indicator:"explicit-key-ind",next:h!=null?h:m==null?void 0:m[0],offset:s,onError:o,startOnNewline:!0}),g=!b.found;if(g){if(h&&(h.type==="block-seq"?o(s,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in h&&h.indent!==r.indent&&o(s,"BAD_INDENT",uM)),!b.anchor&&!b.tag&&!m){a=b.end,b.comment&&(i.comment?i.comment+=`
399
+ `+b.comment:i.comment=b.comment);continue}(b.hasNewlineAfterProp||tp(h))&&o(h!=null?h:p[p.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((c=b.found)==null?void 0:c.indent)!==r.indent&&o(s,"BAD_INDENT",uM);const S=b.end,C=h?e(n,h,b,o):t(n,S,p,null,b,o);n.schema.compat&&Iw(r.indent,h,o),pN(n,i.items,C)&&o(S,"DUPLICATE_KEY","Map keys must be unique");const E=Au(m!=null?m:[],{indicator:"map-value-ind",next:v,offset:C.range[2],onError:o,startOnNewline:!h||h.type==="block-scalar"});if(s=E.end,E.found){g&&((v==null?void 0:v.type)==="block-map"&&!E.hasNewline&&o(s,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&b.start<E.found.offset-1024&&o(C.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const w=v?e(n,v,E,o):t(n,s,m,null,E,o);n.schema.compat&&Iw(r.indent,v,o),s=w.range[2];const x=new Or(C,w);n.options.keepSourceTokens&&(x.srcToken=d),i.items.push(x)}else{g&&o(C.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),E.comment&&(C.comment?C.comment+=`
400
+ `+E.comment:C.comment=E.comment);const w=new Or(C);n.options.keepSourceTokens&&(w.srcToken=d),i.items.push(w)}}return a&&a<s&&o(a,"IMPOSSIBLE","Map comment with trailing content"),i.range=[r.offset,s,a!=null?a:s],i}function oge({composeNode:e,composeEmptyNode:t},n,r,o){const i=new lc(n.schema);n.atRoot&&(n.atRoot=!1);let s=r.offset,a=null;for(const{start:c,value:d}of r.items){const p=Au(c,{indicator:"seq-item-ind",next:d,offset:s,onError:o,startOnNewline:!0});if(!p.found)if(p.anchor||p.tag||d)d&&d.type==="block-seq"?o(p.end,"BAD_INDENT","All sequence items must start at the same column"):o(s,"MISSING_CHAR","Sequence item without - indicator");else{a=p.end,p.comment&&(i.comment=p.comment);continue}const h=d?e(n,d,p,o):t(n,p.end,c,null,p,o);n.schema.compat&&Iw(r.indent,d,o),s=h.range[2],i.items.push(h)}return i.range=[r.offset,s,a!=null?a:s],i}function Tp(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 Ob="Block collections are not allowed within flow collections",Lb=e=>e&&(e.type==="block-map"||e.type==="block-seq");function ige({composeNode:e,composeEmptyNode:t},n,r,o){var b;const i=r.start.source==="{",s=i?"flow map":"flow sequence",a=i?new Qo(n.schema):new lc(n.schema);a.flow=!0;const c=n.atRoot;c&&(n.atRoot=!1);let d=r.offset+r.start.source.length;for(let g=0;g<r.items.length;++g){const S=r.items[g],{start:C,key:E,sep:w,value:x}=S,k=Au(C,{flow:s,indicator:"explicit-key-ind",next:E!=null?E:w==null?void 0:w[0],offset:d,onError:o,startOnNewline:!1});if(!k.found){if(!k.anchor&&!k.tag&&!w&&!x){g===0&&k.comma?o(k.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`):g<r.items.length-1&&o(k.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${s}`),k.comment&&(a.comment?a.comment+=`
401
+ `+k.comment:a.comment=k.comment),d=k.end;continue}!i&&n.options.strict&&tp(E)&&o(E,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(g===0)k.comma&&o(k.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`);else if(k.comma||o(k.start,"MISSING_CHAR",`Missing , between ${s} items`),k.comment){let I="";e:for(const _ of C)switch(_.type){case"comma":case"space":break;case"comment":I=_.source.substring(1);break e;default:break e}if(I){let _=a.items[a.items.length-1];$n(_)&&(_=(b=_.value)!=null?b:_.key),_.comment?_.comment+=`
402
+ `+I:_.comment=I,k.comment=k.comment.substring(I.length+1)}}if(!i&&!w&&!k.found){const I=x?e(n,x,k,o):t(n,k.end,w,null,k,o);a.items.push(I),d=I.range[2],Lb(x)&&o(I.range,"BLOCK_IN_FLOW",Ob)}else{const I=k.end,_=E?e(n,E,k,o):t(n,I,C,null,k,o);Lb(E)&&o(_.range,"BLOCK_IN_FLOW",Ob);const M=Au(w!=null?w:[],{flow:s,indicator:"map-value-ind",next:x,offset:_.range[2],onError:o,startOnNewline:!1});if(M.found){if(!i&&!k.found&&n.options.strict){if(w)for(const L of w){if(L===M.found)break;if(L.type==="newline"){o(L,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}k.start<M.found.offset-1024&&o(M.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else x&&("source"in x&&x.source&&x.source[0]===":"?o(x,"MISSING_CHAR",`Missing space after : in ${s}`):o(M.start,"MISSING_CHAR",`Missing , or : between ${s} items`));const O=x?e(n,x,M,o):M.found?t(n,M.end,w,null,M,o):null;O?Lb(x)&&o(O.range,"BLOCK_IN_FLOW",Ob):M.comment&&(_.comment?_.comment+=`
403
+ `+M.comment:_.comment=M.comment);const R=new Or(_,O);if(n.options.keepSourceTokens&&(R.srcToken=S),i){const L=a;pN(n,L.items,_)&&o(I,"DUPLICATE_KEY","Map keys must be unique"),L.items.push(R)}else{const L=new Qo(n.schema);L.flow=!0,L.items.push(R),a.items.push(L)}d=O?O.range[2]:M.end}}const p=i?"}":"]",[h,...m]=r.end;let v=d;if(h&&h.source===p)v=h.offset+h.source.length;else{const g=s[0].toUpperCase()+s.substring(1),S=c?`${g} must end with a ${p}`:`${g} in block collection must be sufficiently indented and end with a ${p}`;o(d,c?"MISSING_CHAR":"BAD_INDENT",S),h&&h.source.length!==1&&m.unshift(h)}if(m.length>0){const g=Tp(m,v,n.options.strict,o);g.comment&&(a.comment?a.comment+=`
404
+ `+g.comment:a.comment=g.comment),a.range=[r.offset,v,g.offset]}else a.range=[r.offset,v,v];return a}function sge(e,t,n,r,o){let i;switch(n.type){case"block-map":{i=rge(e,t,n,o);break}case"block-seq":{i=oge(e,t,n,o);break}case"flow-collection":{i=ige(e,t,n,o);break}}if(!r)return i;const s=t.directives.tagName(r.source,m=>o(r,"TAG_RESOLVE_FAILED",m));if(!s)return i;const a=i.constructor;if(s==="!"||s===a.tagName)return i.tag=a.tagName,i;const c=sc(i)?"map":"seq";let d=t.schema.tags.find(m=>m.collection===c&&m.tag===s);if(!d){const m=t.schema.knownTags[s];if(m&&m.collection===c)t.schema.tags.push(Object.assign({},m,{default:!1})),d=m;else return o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),i.tag=s,i}const p=d.resolve(i,m=>o(r,"TAG_RESOLVE_FAILED",m),t.options),h=Yn(p)?p:new _t(p);return h.range=i.range,h.tag=s,d!=null&&d.format&&(h.format=d.format),h}function hN(e,t,n){const r=e.offset,o=lge(e,t,n);if(!o)return{value:"",type:null,comment:"",range:[r,r,r]};const i=o.mode===">"?_t.BLOCK_FOLDED:_t.BLOCK_LITERAL,s=e.source?age(e.source):[];let a=s.length;for(let g=s.length-1;g>=0;--g){const S=s[g][1];if(S===""||S==="\r")a=g;else break}if(a===0){const g=o.chomp==="+"&&s.length>0?`
405
+ `.repeat(Math.max(1,s.length-1)):"";let S=r+o.length;return e.source&&(S+=e.source.length),{value:g,type:i,comment:o.comment,range:[r,S,S]}}let c=e.indent+o.indent,d=e.offset+o.length,p=0;for(let g=0;g<a;++g){const[S,C]=s[g];if(C===""||C==="\r")o.indent===0&&S.length>c&&(c=S.length);else{if(S.length<c){const E="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(d+S.length,"MISSING_CHAR",E)}o.indent===0&&(c=S.length),p=g;break}d+=S.length+C.length+1}for(let g=s.length-1;g>=a;--g)s[g][0].length>c&&(a=g+1);let h="",m="",v=!1;for(let g=0;g<p;++g)h+=s[g][0].slice(c)+`
406
+ `;for(let g=p;g<a;++g){let[S,C]=s[g];d+=S.length+C.length+1;const E=C[C.length-1]==="\r";if(E&&(C=C.slice(0,-1)),C&&S.length<c){const x=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(d-C.length-(E?2:1),"BAD_INDENT",x),S=""}i===_t.BLOCK_LITERAL?(h+=m+S.slice(c)+C,m=`
407
+ `):S.length>c||C[0]===" "?(m===" "?m=`
408
+ `:!v&&m===`
409
+ `&&(m=`
410
+
411
+ `),h+=m+S.slice(c)+C,m=`
412
+ `,v=!0):C===""?m===`
413
+ `?h+=`
414
+ `:m=`
415
+ `:(h+=m+C,m=" ",v=!1)}switch(o.chomp){case"-":break;case"+":for(let g=a;g<s.length;++g)h+=`
416
+ `+s[g][0].slice(c);h[h.length-1]!==`
417
+ `&&(h+=`
418
+ `);break;default:h+=`
419
+ `}const b=r+o.length+e.source.length;return{value:h,type:i,comment:o.comment,range:[r,b,b]}}function lge({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 v=o[m];if(!a&&(v==="-"||v==="+"))a=v;else{const b=Number(v);!s&&b?s=b: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 v=t[m];switch(v.type){case"space":d=!0;case"newline":h+=v.source.length;break;case"comment":n&&!d&&r(v,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),h+=v.source.length,p=v.source.substring(1);break;case"error":r(v,"UNEXPECTED_TOKEN",v.message),h+=v.source.length;break;default:{const b=`Unexpected token in block scalar header: ${v.type}`;r(v,"UNEXPECTED_TOKEN",b);const g=v.source;g&&typeof g=="string"&&(h+=g.length)}}}return{mode:i,indent:s,chomp:a,comment:p,length:h}}function age(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 mN(e,t,n){const{offset:r,type:o,source:i,end:s}=e;let a,c;const d=(m,v,b)=>n(r+m,v,b);switch(o){case"scalar":a=_t.PLAIN,c=cge(i,d);break;case"single-quoted-scalar":a=_t.QUOTE_SINGLE,c=uge(i,d);break;case"double-quoted-scalar":a=_t.QUOTE_DOUBLE,c=dge(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=Tp(s,p,t,n);return{value:c,type:a,comment:h.comment,range:[r,p,h.offset]}}function cge(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}`),gN(e)}function uge(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),gN(e.slice(1,-1)).replace(/''/g,"'")}function gN(e){var c;let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
420
+ `,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
421
+ `,"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===`
422
+ `?o+=i:i=`
423
+ `:(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 dge(e,t){let n="";for(let r=1;r<e.length-1;++r){const o=e[r];if(!(o==="\r"&&e[r+1]===`
424
+ `))if(o===`
425
+ `){const{fold:i,offset:s}=fge(e,r);n+=i,r=s}else if(o==="\\"){let i=e[++r];const s=pge[i];if(s)n+=s;else if(i===`
426
+ `)for(i=e[r+1];i===" "||i===" ";)i=e[++r+1];else if(i==="\r"&&e[r+1]===`
427
+ `)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+=hge(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!==`
428
+ `&&!(s==="\r"&&e[r+2]===`
429
+ `)&&(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 fge(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
430
+ `||r==="\r")&&!(r==="\r"&&e[t+2]!==`
431
+ `);)r===`
432
+ `&&(n+=`
433
+ `),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const pge={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
434
+ `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function hge(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 vN(e,t,n,r){const{value:o,type:i,comment:s,range:a}=t.type==="block-scalar"?hN(t,e.options.strict,r):mN(t,e.options.strict,r),c=n?e.directives.tagName(n.source,h=>r(n,"TAG_RESOLVE_FAILED",h)):null,d=n&&c?mge(e.schema,o,c,n,r):t.type==="scalar"?gge(e,o,t,r):e.schema[Ks];let p;try{const h=d.resolve(o,m=>r(n!=null?n:t,"TAG_RESOLVE_FAILED",m),e.options);p=vn(h)?h:new _t(h)}catch(h){const m=h instanceof Error?h.message:String(h);r(n!=null?n:t,"TAG_RESOLVE_FAILED",m),p=new _t(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 mge(e,t,n,r,o){var a;if(n==="!")return e[Ks];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[Ks])}function gge({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[Ks];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[Ks];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 vge(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 yge={composeNode:yN,composeEmptyNode:sE};function yN(e,t,n,r){const{spaceBefore:o,comment:i,anchor:s,tag:a}=n;let c,d=!0;switch(t.type){case"alias":c=bge(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=vN(e,t,a,r),s&&(c.anchor=s.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=sge(yge,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=sE(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 sE(e,t,n,r,{spaceBefore:o,comment:i,anchor:s,tag:a,end:c},d){const p={type:"scalar",offset:vge(t,n,r),indent:-1,source:""},h=vN(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 bge({options:e},{offset:t,source:n,end:r},o){const i=new sy(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=Tp(r,s,e.strict,o);return i.range=[t,s,a.offset],a.comment&&(i.comment=a.comment),i}function wge(e,t,{offset:n,start:r,value:o,end:i},s){const a=Object.assign({_directives:t},e),c=new ed(void 0,a),d={atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},p=Au(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?yN(d,o,p,s):sE(d,p.end,r,null,p,s);const h=c.contents.range[2],m=Tp(i,h,!1,s);return m.comment&&(c.comment=m.comment),c.range=[n,h,m.offset],c}function Fd(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 dM(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?`
435
+
436
+ `:`
437
+ `)+(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 lE{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,o,i)=>{const s=Fd(n);i?this.warnings.push(new fN(s,r,o)):this.errors.push(new Ea(s,r,o))},this.directives=new jr({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:o}=dM(this.prelude);if(r){const i=t.contents;if(n)t.comment=t.comment?`${t.comment}
438
+ ${r}`:r;else if(o||t.directives.docStart||!i)t.commentBefore=r;else if(An(i)&&!i.flow&&i.items.length>0){let s=i.items[0];$n(s)&&(s=s.key);const a=s.commentBefore;s.commentBefore=a?`${r}
439
+ ${a}`:r}else{const s=i.commentBefore;i.commentBefore=s?`${r}
440
+ ${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:dM(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=Fd(t);i[0]+=n,this.onError(i,"BAD_DIRECTIVE",r,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=wge(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 Ea(Fd(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 Ea(Fd(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=Tp(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}
441
+ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new Ea(Fd(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 ed(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 Cge(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 Ea([a,a+1],i,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return mN(e,t,r);case"block-scalar":return hN(e,t,r)}}return null}function xge(e,t){var d;const{implicitKey:n=!1,indent:r,inFlow:o=!1,offset:i=-1,type:s="PLAIN"}=t,a=Mp({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:`
442
+ `}];switch(a[0]){case"|":case">":{const p=a.indexOf(`
443
+ `),h=a.substring(0,p),m=a.substring(p+1)+`
444
+ `,v=[{type:"block-scalar-header",offset:i,indent:r,source:h}];return bN(v,c)||v.push({type:"newline",offset:-1,indent:r,source:`
445
+ `}),{type:"block-scalar",offset:i,indent:r,props:v,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 Sge(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=Mp({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">":Ege(e,c);break;case'"':Ab(e,c,"double-quoted-scalar");break;case"'":Ab(e,c,"single-quoted-scalar");break;default:Ab(e,c,"scalar")}}function Ege(e,t){const n=t.indexOf(`
446
+ `),r=t.substring(0,n),o=t.substring(n+1)+`
447
+ `;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}];bN(a,"end"in e?e.end:void 0)||a.push({type:"newline",offset:-1,indent:s,source:`
448
+ `});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 bN(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 Ab(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:`
449
+ `};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 Pge=e=>"type"in e?Eg(e):km(e);function Eg(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=Eg(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=km(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=km(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=km(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 km({start:e,key:t,sep:n,value:r}){let o="";for(const i of e)o+=i.source;if(t&&(o+=Eg(t)),n)for(const i of n)o+=i.source;return r&&(o+=Eg(r)),o}const $w=Symbol("break visit"),kge=Symbol("skip children"),wN=Symbol("remove item");function qa(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),CN(Object.freeze([]),e,t)}qa.BREAK=$w;qa.SKIP=kge;qa.REMOVE=wN;qa.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};qa.parentCollection=(e,t)=>{const n=qa.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 CN(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=CN(Object.freeze(e.concat([[o,s]])),i.items[s],n);if(typeof a=="number")s=a-1;else{if(a===$w)return $w;a===wN&&(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",yy="",by="",np="",_ge=e=>!!e&&"items"in e,Ige=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function $ge(e){switch(e){case vy:return"<BOM>";case yy:return"<DOC>";case by:return"<FLOW_END>";case np:return"<SCALAR>";default:return JSON.stringify(e)}}function xN(e){switch(e){case vy:return"byte-order-mark";case yy:return"doc-mode";case by:return"flow-error-end";case np:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
450
+ `:case`\r
451
+ `: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 Mge=Object.freeze(Object.defineProperty({__proto__:null,BOM:vy,DOCUMENT:yy,FLOW_END:by,SCALAR:np,createScalarToken:xge,isCollection:_ge,isScalar:Ige,prettyToken:$ge,resolveAsScalar:Cge,setScalarValue:Sge,stringify:Pge,tokenType:xN,visit:qa},Symbol.toStringTag,{value:"Module"}));function Go(e){switch(e){case void 0:case" ":case`
452
+ `:case"\r":case" ":return!0;default:return!1}}const fM="0123456789ABCDEFabcdef".split(""),Rge="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),Fb=",[]{}".split(""),Tge=` ,[]{}
453
+ \r `.split(""),Nb=e=>!e||Tge.includes(e);class SN{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===`
454
+ `?!0:n==="\r"?this.buffer[t+1]===`
455
+ `:!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===`
456
+ `||!o&&!this.atEnd)return t+r+1}return n===`
457
+ `||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&Go(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(`
458
+ `,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 yy,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==="---"&&Go(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if(n==="..."&&Go(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Go(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===":")&&Go(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(Nb),"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("..."))&&Go(o[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield by,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(Nb),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const s=this.charAt(1);if(this.flowKey||Go(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(`
459
+ `,this.pos);if(o!==-1){for(;o!==-1;){const i=this.continueScalar(o+1);if(i===-1)break;o=r.indexOf(`
460
+ `,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=>Go(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`
461
+ `:t=o,n=0;break;case"\r":{const i=this.buffer[o+1];if(!i&&!this.atEnd)return this.setNext("block-scalar");if(i===`
462
+ `)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(`
463
+ `,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===`
464
+ `&&o>=this.pos&&o+1+n>s)t=o;else break}while(!0);return yield np,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(Go(i)||t&&i===",")break;n=r}else if(Go(o)){let i=this.buffer[r+1];if(o==="\r"&&(i===`
465
+ `?(r+=1,o=`
466
+ `,i=this.buffer[r+1]):n=r),i==="#"||t&&Fb.includes(i))break;if(o===`
467
+ `){const s=this.continueScalar(r+1);if(s===-1)break;r=Math.max(r,s-2)}}else{if(t&&Fb.includes(o))break;n=r}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield np,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(Nb))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(Go(n)||t&&Fb.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(;!Go(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(Rge.includes(n))n=this.buffer[++t];else if(n==="%"&&fM.includes(this.buffer[t+1])&&fM.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===`
468
+ `?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
469
+ `?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 EN{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 yi(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function pM(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 PN(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 Zh(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 Oc(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 hM(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!yi(t.start,"explicit-key-ind")&&!yi(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,PN(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 aE=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 SN,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=xN(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"&&hM(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=!yi(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&&pM(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":{pM(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=Zh(this.peek(2)),r=Oc(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(`
470
+ `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
471
+ `,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&&!yi(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(yi(n.start,"explicit-key-ind"))if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(yi(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(PN(n.key)&&!yi(n.sep,"newline")){const s=Oc(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(yi(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const s=Oc(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]}):yi(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"&&yi(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||yi(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=Zh(r),i=Oc(o);hM(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(`
472
+ `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
473
+ `,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=Zh(t),r=Oc(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=Zh(t),r=Oc(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 kN(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new EN||null,prettyErrors:t}}function Oge(e,t={}){const{lineCounter:n,prettyErrors:r}=kN(t),o=new aE(n==null?void 0:n.addNewLine),i=new lE(t),s=Array.from(i.compose(o.parse(e)));if(r&&n)for(const a of s)a.errors.forEach(Sg(e,n)),a.warnings.forEach(Sg(e,n));return s.length>0?s:Object.assign([],{empty:!0},i.streamInfo())}function _N(e,t={}){const{lineCounter:n,prettyErrors:r}=kN(t),o=new aE(n==null?void 0:n.addNewLine),i=new lE(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 Ea(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(s.errors.forEach(Sg(e,n)),s.warnings.forEach(Sg(e,n))),s}function Lge(e,t,n){let r;typeof t=="function"?r=t:n===void 0&&t&&typeof t=="object"&&(n=t);const o=_N(e,n);if(!o)return null;if(o.warnings.forEach(i=>qF(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 Age(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 ed(e,r,n).toString(n)}const mM=Object.freeze(Object.defineProperty({__proto__:null,Alias:sy,CST:Mge,Composer:lE,Document:ed,Lexer:SN,LineCounter:EN,Pair:Or,Parser:aE,Scalar:_t,Schema:gy,YAMLError:iE,YAMLMap:Qo,YAMLParseError:Ea,YAMLSeq:lc,YAMLWarning:fN,isAlias:ic,isCollection:An,isDocument:$p,isMap:sc,isNode:Yn,isPair:$n,isScalar:vn,isSeq:Qu,parse:Lge,parseAllDocuments:Oge,parseDocument:_N,stringify:Age,visit:Xl,visitAsync:iy},Symbol.toStringTag,{value:"Module"}));var cE={},Fge=ft;Object.defineProperty(cE,"__esModule",{value:!0});var IN=cE.default=void 0,Nge=Fge(gt()),Dge=mt(),Bge=(0,Nge.default)((0,Dge.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");IN=cE.default=Bge;var uE={},zge=ft;Object.defineProperty(uE,"__esModule",{value:!0});var dE=uE.default=void 0,jge=zge(gt()),Hge=mt(),Vge=(0,jge.default)((0,Hge.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");dE=uE.default=Vge;const Uge="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept";function Wge({file:e,anyMask:t,defaultPerms:n,addToBar:r,urls:o}){var R;const O=e,{parent:i,children:s,isRoot:a,byMasks:c}=O,d=hn(O,["parent","children","isRoot","byMasks"]),[p,h]=u.useState(d);u.useEffect(()=>{h(Object.assign(Ux(n,()=>null),d))},[e]);const{source:m}=e,v=e.type==="folder",b=m!==void 0,g=b&&v,S=u.useMemo(()=>{const H={};let j=i;for(;j;)Lt.defaults(H,j,j.byMasks),j=j.parent;return Lt.defaults(H,n)},[i]),C=b&&!!p.ctime,E=b&&!g,w=e.accept>""||v&&((R=e.can_upload)!=null?R:S.can_upload),x=Qx(),{data:k,element:I}=Io("get_accounts");if(I||!k)return I;const _=k.list;return u.createElement(yp,{values:p,set(H,j){var z;if(j==="link")return;const F=j==="source"&&((z=p.source)==null?void 0:z.endsWith(p.name))?Yoe(H):p.name;h(Ot(Ie({},p),{name:F,[j]:H}))},barSx:Ie({gap:2,width:"100%"},x),stickyBar:!0,addToBar:[!a&&u.createElement(Nn,{icon:Ti,title:"Delete",confirm:"Delete?",onClick:()=>$t("del_vfs",{uris:[e.id]}).then(()=>Ya())}),r],onError:Un,save:{sx:Jv(!Jx(p,d)),onClick(){return lt(this,null,function*(){const H=Lt.omit(p,["ctime","mtime","size","id"]);H.masks||(H.masks=null),yield $t("set_vfs",{uri:p.id,props:H}),H.name!==e.name&&(xn.selectedFiles[0].id=e.parent.id+H.name+(v?"/":"")),Ya()})}},fields:[a?u.createElement(No,{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:b&&"You can decide a name that's different from the one on your disk"},{k:"id",comp:Kge,urls:o},{k:"source",label:"Source on disk",comp:bf,files:!v,folders:v,multiline:!0,placeholder:"Not on disk, this is a virtual folder"},M("can_read","Who can see but not download will be asked to login"),M("can_see","If you don't see, you may download with a direct link"),v&&M("can_list","Permission to see content of folders"),v&&M("can_delete",b?"":"Works only on folders with source"),v&&M("can_upload",b?"":"Works only on folders with source",{lg:w?6:12}),w&&{k:"accept",label:"Accept on upload",placeholder:"anything",helperText:u.createElement(Zo,{href:Uge,target:"_blank"},"Example: .zip"),lg:6},E&&{k:"size",comp:wm,lg:4,toField:ja},C&&{k:"ctime",comp:wm,md:6,lg:E&&4,label:"Created",toField:gM},C&&{k:"mtime",comp:wm,md:6,lg:E&&4,label:"Modified",toField:gM},e.website&&{k:"default",comp:Xi,label:"Serve index.html",toField:Boolean,fromField:H=>H?"index.html":null,helperText:Ms("This folder may be a website because contains `index.html`. Enabling this will show the website instead of the list of files.")},v&&{k:"masks",multiline:!0,lg:!0,toField:mM.stringify,fromField:H=>H?mM.parse(H):void 0,sx:{"& textarea":{fontFamily:"monospace"}},helperText:"Special field, leave empty unless you know what you are doing. YAML syntax."}]});function M(H,j="",A={}){return Ie({showInherited:t,otherPerms:Lt.without(Object.keys(n),H).map(F=>({value:F,label:"As "+Mw(F)})),k:H,lg:6,comp:Gge,parent:i,accounts:_,helperText:j,label:"Who can "+Mw(H),inherit:S[H],byMasks:c==null?void 0:c[H]},A)}}function Mw(e){const t=e.split("_")[1];return t==="read"?"download":t}function gM(e){return e?new Date(e).toLocaleString():"-"}function Gge(p){var h=p,{value:e,onChange:t,parent:n,inherit:r,accounts:o,helperText:i,showInherited:s,otherPerms:a,byMasks:c}=h,d=hn(h,["value","onChange","parent","inherit","accounts","helperText","showInherited","otherPerms","byMasks"]);const m=(c!==void 0?"As per mask: ":n!==void 0?"As parent: ":"Default: ")+vM(c!=null?c:r),v=u.useMemo(()=>vp([{value:null,label:m},{value:!0},{value:!1},{value:"*"},...a,{value:[],label:"Select accounts"}].map(g=>(g.value===e||s||g.value!==r)&&Ie({label:Lt.capitalize(vM(g.value))},g))),[r,n,e]),b=Array.isArray(e);return u.createElement("div",{},u.createElement(ls,Ot(Ie({},d),{helperText:!b&&i,value:b?[]:e,onChange(g,{was:S,event:C}){t(g,{was:S,event:C})},options:v})),b&&u.createElement(qx,{label:o!=null&&o.length?"Choose accounts for "+d.label:"You didn't create any account yet",value:e,onChange:t,helperText:i,options:(o==null?void 0:o.map(g=>({value:g.username,label:g.username})))||[]}))}function vM(e){return e===!1?"no one":e===!0?"anyone":e==="*"?"any account (login required)":Array.isArray(e)?e.join(", "):typeof e=="string"?"as "+Mw(e):"*UNKNOWN*"+JSON.stringify(e)}function Kge({value:e,urls:t}){const{data:n,error:r,reload:o}=Io("get_config",{only:["base_url"]}),i=n==null?void 0:n.base_url,s=(i||(t?t[0]:""))+e;return u.createElement(Je,{display:"flex"},u.createElement(wm,{label:"Link",value:s,error:r,end:u.createElement(Je,{},u.createElement(Nn,{icon:IN,title:"Copy",onClick:()=>navigator.clipboard.writeText(s)}),u.createElement(Nn,{icon:dE,title:"Change",onClick:a}))}));function a(){const c=new URL(i||t[0]).protocol+"//";di({title:"Change link",onClose:o,Content(){const[d,p]=u.useState(i),[h,m]=u.useState(c);return u.createElement(Je,{display:"flex",flexDirection:"column"},u.createElement(Je,{mb:2},"You can choose a different base address for your links"),u.createElement(jv,{},t.map(b=>u.createElement(pr,{key:b,selected:b===d,onClick:()=>v(b)},b,b===d&&u.createElement(Tx,{sx:{ml:2}})))),u.createElement(eo,{label:"Custom IP or domain",helperText:Ms(`You can type any address but *you* are responsible to make the address work.
474
+ This functionality is just to help you copy the link in case you have a domain or a complex network configuration.`),value:!d||t.includes(d)?"":d.slice(h.length),onChange:b=>v(mf(h,b)),start:u.createElement(ls,{value:h,onChange:m,options:["http://","https://"],size:"small",variant:"standard",sx:{"& .MuiSelect-select":{pt:"1px",pb:0}}}),sx:{mt:2}}));function v(b){return lt(this,null,function*(){b.endsWith("/")&&(b=b.slice(0,-1)),yield $t("set_config",{values:{base_url:b}}),p(b)})}}})}}let Rw;function qge(){var g,S,C;const[e]=u.useState(()=>new Map),{vfs:t,selectedFiles:n}=ta(),{data:r,reload:o,element:i}=Io("get_vfs");u.useMemo(()=>t||o(),[t,o]);const s=u.useMemo(()=>function E(w){var x;return!Lt.isEmpty(w==null?void 0:w.masks)||((x=w==null?void 0:w.children)==null?void 0:x.some(E))}(t),[t]),a="md",c=Va(a),[d]=bp("get_status"),p=u.useMemo(()=>{var E,w;return typeof d=="object"&&Lt.sortBy(Object.values(((E=d.urls)==null?void 0:E.https)||((w=d.urls)==null?void 0:w.http)||{}),x=>x.includes("["))},[d]);function h(){xn.selectedFiles=[]}const m=n.length?n.length===1?u.createElement(Wge,{addToBar:c&&u.createElement(Nn,{icon:gp,title:"Close",onClick:h}),defaultPerms:r==null?void 0:r.defaultPerms,anyMask:s,urls:p,file:n[0]}):u.createElement(u.Fragment,{},u.createElement(nS,{alignItems:"center"},u.createElement(Rr,{variant:"h6"},n.length+" selected"),u.createElement(fr,{onClick:Yge,startIcon:u.createElement(Ti)},"Remove")),u.createElement(Bv,{dense:!0,disablePadding:!0},n.map(E=>u.createElement(wL,{key:E.id},u.createElement(zv,{primary:E.name,secondary:E.source}))))):null;if(u.useEffect(()=>{if(!(c||!m))return di({title:n.length>1?"Multiple selection":n[0].name,Content:()=>m,onClose:h})},[c,n]),u.useEffect(()=>{if(xn.vfs=void 0,!r)return;e.clear();const{root:E}=r;if(!E)return;E.isRoot=!0,x(E),xn.vfs=E;const w=Rw||xn.selectedFiles.map(k=>k.id);Rw=void 0,xn.selectedFiles=vp(w.map(k=>e.get(k)));function x(k,I="/",_=void 0){if(k.parent=_,k.id=k.isRoot?"/":mf(I,encodeURIComponent(k.name),k.type==="folder"?"/":""),e.set(k.id,k),!!k.children)for(const M of k.children)x(M,k.id,k)}},[r,e]),i)return e.clear(),i;const b=!((S=(g=r==null?void 0:r.root)==null?void 0:g.children)!=null&&S.length)&&!((C=r==null?void 0:r.root)!=null&&C.source)?{severity:"warning",children:"Add something to your shared files — click Add"}:p&&{severity:"info",children:["Your shared files can be browsed from ",loe(" or ",p.slice(0,3).map(E=>u.createElement(Zo,{href:E},E)))]};return u.createElement(Qn,{container:!0,rowSpacing:1,maxWidth:"80em",columnSpacing:2},b&&u.createElement(Qn,{item:!0,mb:2,xs:12},u.createElement(No,b)),u.createElement(Qn,{item:!0,[a]:6,lg:5},u.createElement(Rr,{variant:"h6",mb:1},"Virtual File System"),u.createElement(Eme),t&&u.createElement(Xge,{id2node:e})),c&&m&&u.createElement(Qn,{item:!0,[a]:6,lg:7,maxWidth:"100%"},u.createElement(tL,{},u.createElement(nL,{},m))))}function Ya(e){Rw=e,xn.vfs=void 0}function Yge(){return lt(this,null,function*(){const e=xn.selectedFiles;if(e.length&&(yield Ha(`Delete ${e.length} item(s)?`)))try{const t=e.map(o=>o.id);Lt.pull(t,"/");const{errors:n}=yield $t("del_vfs",{uris:t}),r=t.filter((o,i)=>n[i]);if(r.length)return Un("Following elements couldn't be deleted: "+r.join(", "),"error");Ya()}catch(t){yield Un(t)}})}const $N=IF,MN=MF;function Xge({id2node:e}){const{vfs:t,selectedFiles:n}=ta(),[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(tA,{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,v){o(v),xn.selectedFiles=vp(v.map(b=>e.get(b)))}},h(t));function p(m){return m!==void 0&&m!==!0}function h(m){var E,w;let{id:v,name:b,isRoot:g}=m;if(!v)debugger;const S=m.type==="folder";return u.createElement(dw,{ref(x){x==null||x.addEventListener("focusin",k=>k.stopImmediatePropagation())},label:u.createElement(Je,{draggable:!g,onDragStart(){a.current=v},onDragOver(x){if(!S)return;const k=a.current;k!=null&&k.startsWith(v)&&!k.slice(v.length+1).includes("/")||x.preventDefault()},onDrop(){return lt(this,null,function*(){const x=a.current;x&&(yield Ha(`Moving ${x} under ${v}`))&&$t("move_vfs",{from:x,parent:v}).then(()=>{Ya([v+x.slice(1+x.lastIndexOf("/",x.length-2))])},Un)})},sx:{display:"flex",gap:".5em",lineHeight:"2em",alignItems:"center"}},u.createElement(Je,{display:"flex",flex:0},g?yo($F,"home, or root if you like"):S?yo($N,"Folder"):yo(MN,"File"),u.createElement(Je,{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&&yo(Ti,"Delete permission"),m.can_upload!==void 0&&yo(wp,"Upload permission"),!g&&!m.source&&yo(OF,"Virtual (no source)"),p(m.can_see)&&yo(RF,"Restrictions on who can see"),p(m.can_read)&&yo(pS,"Restrictions on who can download"),m.default&&yo(TF,"Act as website"),m.masks&&yo(_F,"Masks"),m.size===-1&&yo(LF,"Source not found"))),g?"Home":(()=>{var _;const x=(_=m.parent)==null?void 0:_.source,{source:k}=m,I=x&&(k!=null&&k.startsWith(x))?"."+k.slice(x.length):k;return!I||!(k!=null&&k.endsWith(b))||I.length>45?u.createElement(Je,{lineHeight:"1.2em"},b):u.createElement("span",{},u.createElement("span",{style:{opacity:.4}},I.slice(0,-b.length)),I.slice(-b.length))})()),key:b,collapseIcon:u.createElement(kF,{onClick(x){s(i.filter(k=>k!==v)),x.preventDefault(),x.stopPropagation()}}),expandIcon:u.createElement(PF,{onClick(x){s([...i,v]),x.preventDefault(),x.stopPropagation()}}),nodeId:v},g&&!((E=m.children)!=null&&E.length)?u.createElement(dw,{nodeId:"?",label:u.createElement("i",{},"nothing here")}):(w=m.children)==null?void 0:w.map(h))}}var yM=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Qge(e,t){return!!(e===t||yM(e)&&yM(t))}function Jge(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Qge(e[n],t[n]))return!1;return!0}function Db(e,t){t===void 0&&(t=Jge);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 Zge=typeof performance=="object"&&typeof performance.now=="function",bM=Zge?function(){return performance.now()}:function(){return Date.now()};function wM(e){cancelAnimationFrame(e.id)}function eve(e,t){var n=bM();function r(){bM()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var Bb=-1;function CM(e){if(e===void 0&&(e=!1),Bb===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Bb=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Bb}var Lc=null;function xM(e){if(e===void 0&&(e=!1),Lc===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?Lc="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Lc="negative":Lc="positive-ascending"),document.body.removeChild(t),Lc}return Lc}var tve=150,nve=function(t,n){return t};function rve(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){ax(m,h);function m(b){var g;return g=h.call(this,b)||this,g._instanceProps=c(g.props,Q1(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:Q1(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=Db(function(S,C,E,w){return g.props.onItemsRendered({overscanStartIndex:S,overscanStopIndex:C,visibleStartIndex:E,visibleStopIndex:w})}),g._callOnScroll=void 0,g._callOnScroll=Db(function(S,C,E){return g.props.onScroll({scrollDirection:S,scrollOffset:C,scrollUpdateWasRequested:E})}),g._getItemStyle=void 0,g._getItemStyle=function(S){var C=g.props,E=C.direction,w=C.itemSize,x=C.layout,k=g._getItemStyleCache(d&&w,d&&x,d&&E),I;if(k.hasOwnProperty(S))I=k[S];else{var _=n(g.props,S,g._instanceProps),M=o(g.props,S,g._instanceProps),O=E==="horizontal"||x==="horizontal",R=E==="rtl",L=O?_:0;k[S]=I={position:"absolute",left:R?void 0:L,right:R?L:void 0,top:O?0:_,height:O?"100%":M,width:O?M:"100%"}}return I},g._getItemStyleCache=void 0,g._getItemStyleCache=Db(function(S,C,E){return{}}),g._onScrollHorizontal=function(S){var C=S.currentTarget,E=C.clientWidth,w=C.scrollLeft,x=C.scrollWidth;g.setState(function(k){if(k.scrollOffset===w)return null;var I=g.props.direction,_=w;if(I==="rtl")switch(xM()){case"negative":_=-w;break;case"positive-descending":_=x-E-w;break}return _=Math.max(0,Math.min(_,x-E)),{isScrolling:!0,scrollDirection:k.scrollOffset<w?"forward":"backward",scrollOffset:_,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._onScrollVertical=function(S){var C=S.currentTarget,E=C.clientHeight,w=C.scrollHeight,x=C.scrollTop;g.setState(function(k){if(k.scrollOffset===x)return null;var I=Math.max(0,Math.min(x,w-E));return{isScrolling:!0,scrollDirection:k.scrollOffset<I?"forward":"backward",scrollOffset:I,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._outerRefSetter=function(S){var C=g.props.outerRef;g._outerRef=S,typeof C=="function"?C(S):C!=null&&typeof C=="object"&&C.hasOwnProperty("current")&&(C.current=S)},g._resetIsScrollingDebounced=function(){g._resetIsScrollingTimeoutId!==null&&wM(g._resetIsScrollingTimeoutId),g._resetIsScrollingTimeoutId=eve(g._resetIsScrolling,tve)},g._resetIsScrolling=function(){g._resetIsScrollingTimeoutId=null,g.setState({isScrolling:!1},function(){g._getItemStyleCache(-1,null)})},g}m.getDerivedStateFromProps=function(g,S){return ove(g,S),p(g),null};var v=m.prototype;return v.scrollTo=function(g){g=Math.max(0,g),this.setState(function(S){return S.scrollOffset===g?null:{scrollDirection:S.scrollOffset<g?"forward":"backward",scrollOffset:g,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},v.scrollToItem=function(g,S){S===void 0&&(S="auto");var C=this.props,E=C.itemCount,w=C.layout,x=this.state.scrollOffset;g=Math.max(0,Math.min(g,E-1));var k=0;if(this._outerRef){var I=this._outerRef;w==="vertical"?k=I.scrollWidth>I.clientWidth?CM():0:k=I.scrollHeight>I.clientHeight?CM():0}this.scrollTo(i(this.props,g,S,x,this._instanceProps,k))},v.componentDidMount=function(){var g=this.props,S=g.direction,C=g.initialScrollOffset,E=g.layout;if(typeof C=="number"&&this._outerRef!=null){var w=this._outerRef;S==="horizontal"||E==="horizontal"?w.scrollLeft=C:w.scrollTop=C}this._callPropsCallbacks()},v.componentDidUpdate=function(){var g=this.props,S=g.direction,C=g.layout,E=this.state,w=E.scrollOffset,x=E.scrollUpdateWasRequested;if(x&&this._outerRef!=null){var k=this._outerRef;if(S==="horizontal"||C==="horizontal")if(S==="rtl")switch(xM()){case"negative":k.scrollLeft=-w;break;case"positive-ascending":k.scrollLeft=w;break;default:var I=k.clientWidth,_=k.scrollWidth;k.scrollLeft=_-I-w;break}else k.scrollLeft=w;else k.scrollTop=w}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&wM(this._resetIsScrollingTimeoutId)},v.render=function(){var g=this.props,S=g.children,C=g.className,E=g.direction,w=g.height,x=g.innerRef,k=g.innerElementType,I=g.innerTagName,_=g.itemCount,M=g.itemData,O=g.itemKey,R=O===void 0?nve:O,L=g.layout,H=g.outerElementType,j=g.outerTagName,A=g.style,F=g.useIsScrolling,z=g.width,G=this.state.isScrolling,N=E==="horizontal"||L==="horizontal",B=N?this._onScrollHorizontal:this._onScrollVertical,W=this._getRangeToRender(),q=W[0],X=W[1],ie=[];if(_>0)for(var J=q;J<=X;J++)ie.push(u.createElement(S,{data:M,key:R(J,M),index:J,isScrolling:F?G:void 0,style:this._getItemStyle(J)}));var fe=r(this.props,this._instanceProps);return u.createElement(H||j||"div",{className:C,onScroll:B,ref:this._outerRefSetter,style:P({position:"relative",height:w,width:z,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:E},A)},u.createElement(k||I||"div",{children:ie,ref:x,style:{height:N?"100%":fe,pointerEvents:G?"none":void 0,width:N?fe:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var S=this._getRangeToRender(),C=S[0],E=S[1],w=S[2],x=S[3];this._callOnItemsRendered(C,E,w,x)}}if(typeof this.props.onScroll=="function"){var k=this.state,I=k.scrollDirection,_=k.scrollOffset,M=k.scrollUpdateWasRequested;this._callOnScroll(I,_,M)}},v._getRangeToRender=function(){var g=this.props,S=g.itemCount,C=g.overscanCount,E=this.state,w=E.isScrolling,x=E.scrollDirection,k=E.scrollOffset;if(S===0)return[0,0,0,0];var I=s(this.props,k,this._instanceProps),_=a(this.props,I,k,this._instanceProps),M=!w||x==="backward"?Math.max(1,C):1,O=!w||x==="forward"?Math.max(1,C):1;return[Math.max(0,I-M),Math.max(0,Math.min(S-1,_+O)),I,_]},m}(u.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var ove=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},ive=rve({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,v=a==="horizontal"||h==="horizontal",b=v?m:c,g=Math.max(0,d*p-b),S=Math.min(g,n*p),C=Math.max(0,n*p-b+p+s);switch(r==="smart"&&(o>=C-b&&o<=S+b?r="auto":r="center"),r){case"start":return S;case"end":return C;case"center":{var E=Math.round(C+(S-C)/2);return E<Math.ceil(b/2)?0:E>g+Math.floor(b/2)?g:E}case"auto":default:return o>=C&&o<=S?o:o<C?C:S}},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,v=Math.ceil((m+r-h)/a);return Math.max(0,Math.min(s-1,n+v-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}});function RN({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(()=>{$t("resolve_path",{path:i,closestFolder:!0}).then(H=>{typeof H.path=="string"&&(a(H.path),p.current=H.path[1]===":")}).finally(()=>d(!0))},[i]);const{list:h,error:m,loading:v}=nc(c&&"ls",{path:s,files:n,fileMask:o});u.useEffect(()=>{g([]),C("")},[s]);const[b,g]=u.useState([]),[S,C]=u.useState(""),E=u.useMemo(()=>Lt.debounce(H=>C(H)),[]),w=u.useMemo(()=>{const H=new RegExp(Lt.escapeRegExp(S),"i");return j=>H.test(j)},[S]),[x,k]=u.useState(0),I=u.useMemo(()=>h.filter(H=>w(H.n)),[h,w]);if(v)return sA();const _=p.current?"":"/",M=p.current?"\\":"/",O=joe(M,s),R=s.length<2;return u.createElement(u.Fragment,{},u.createElement(Je,{display:"flex",gap:1},u.createElement(fr,{title:"root",disabled:R,onClick(){a(_)}},u.createElement(EF)),u.createElement(fr,{disabled:R,title:"parent folder",onClick(){const H=/[\\/]$/.test(s)?s.slice(0,-1):s,j=Kie(H)?_:H.slice(0,H.lastIndexOf(M)||1);a(j)}},u.createElement(SF)),u.createElement(eo,{label:"Current path",value:s,InputLabelProps:{shrink:!0},onChange(H){return lt(this,null,function*(){if(!H)return a(_);const j=yield $t("resolve_path",{path:H});a(j.path)})}})),m?u.createElement(No,{severity:"error"},lA(m)):u.createElement(u.Fragment,{},u.createElement(Je,{ref(H){if(!H)return;const j=(H==null?void 0:H.clientHeight)-1;j-x>1&&k(j)},sx:{flex:1,display:"flex",flexDirection:"column"}},h.length?u.createElement(ive,{width:"100%",height:x,itemSize:46,itemCount:I.length,overscanCount:5,children({index:H,style:j}){const A=I[H],F=A.k==="d";return u.createElement(pr,{style:Ot(Ie({},j),{padding:0}),key:A.n,onClick(){F?a(O+A.n):e([O+A.n])}},t&&u.createElement(oL,{checked:b.includes(A.n),disabled:!r&&F,onClick(z){const G=A.n,N=b.filter(B=>B!==G);g(N.length<b.length?N:[...b,G]),z.stopPropagation()}}),u.createElement(CL,{},u.createElement(A.k?$N:MN)),u.createElement(zv,{sx:{whiteSpace:"pre-wrap",wordBreak:"break-all"}},A.n),!F&&A.s!==void 0&&u.createElement(Rr,{variant:"body2",color:"text.secondary",ml:4,mr:1},ja(A.s)))}}):u.createElement(eS,{flex:1,mt:"4em"},"No elements in this folder")),u.createElement(Je,{display:"flex",gap:1},(t||r||!n)&&u.createElement(fr,{variant:"contained",disabled:!s||!r&&!b.length&&n,sx:{minWidth:"max-content"},onClick(){e(b.length?b.map(H=>O+H):[s])}},n&&(b.length||!r)?`Select (${b.length})`:"Select this folder"),u.createElement(mp,{value:S,label:`Filter results (${I.length}${I.length<h.length?"/"+h.length:""})`,onChange(H){E(H.target.value)},sx:{flex:1}}))))}function bf(c){var d=c,{value:e,onChange:t,files:n=!0,folders:r=!1,fileMask:o,defaultPath:i,title:s}=d,a=hn(d,["value","onChange","files","folders","fileMask","defaultPath","title"]);const p=Va("md");return u.createElement(eo,Ot(Ie({},a),{value:e,onChange:t,InputProps:{endAdornment:u.createElement(lg,{position:"end"},u.createElement(Nn,{icon:xF,title:"Browse files...",edge:"end",onClick(){const h=di({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(RN,{multiple:!1,folders:r,files:n,fileMask:o,from:e||i,onSelect(v){return lt(this,null,function*(){var S;let b=v==null?void 0:v[0];if(!b)return;const g=(S=yield $t("get_cwd"))==null?void 0:S.path;b.startsWith(g)&&(b=b.slice(g.length+1)||"."),t(b,{was:e,event:"picker"}),h()})}})}})}}))}}))}var fE={},sve=ft;Object.defineProperty(fE,"__esModule",{value:!0});var TN=fE.default=void 0,lve=sve(gt()),ave=mt(),cve=(0,lve.default)((0,ave.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");TN=fE.default=cve;var pE={},uve=ft;Object.defineProperty(pE,"__esModule",{value:!0});var ON=pE.default=void 0,dve=uve(gt()),fve=mt(),pve=(0,dve.default)((0,fve.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");ON=pE.default=pve;const Pg="https://github.com/rejetto/hfs/";function hve(){var C,E,w;const e=" — ",{username:t}=ta(),{data:n,reload:r,element:o}=Io("get_status"),{data:i}=Io("get_vfs"),[s]=bp(t&&"get_account"),{data:a,reload:c}=Io("get_config",{only:["https_port","cert","private_key","proxies"]}),{list:d}=nc("get_plugins");if(o||!n)return o;const{http:p,https:h}=n,m=!(p!=null&&p.listening)&&(h!=null&&h.listening)?"s":"",v=m?h:(p==null?void 0:p.listening)&&p,b=v&&`http${m}://`+window.location.hostname+(v.port===(m?443:80)?"":":"+v.port),g=Ux(n,k=>k.busy?[`port ${k.port} already used by ${k.busy}${e}choose a `,em("different port"),` or stop ${k.busy}`]:k.error),S=g&&vp(Object.entries(g).map(([k,I])=>I&&[Ms(`Protocol _${k}_ cannot work: `),I,(hE(I)||mE(I))&&[e,u.createElement(Zo,{sx:{cursor:"pointer"},onClick(){gE().then(c).then(r)}},"make one")," or ",e,em("provide adequate files")]]));return u.createElement(Je,{display:"flex",gap:2,flexDirection:"column"},t&&vi("","Welcome "+t),S.length?ug(S.map(k=>vi("error",ug(k)))):vi("success","Server is working"),i?!((E=(C=i.root)==null?void 0:C.children)!=null&&E.length)&&!((w=i.root)!=null&&w.source)?vi("warning","You have no files shared",e,mve("add some")):vi("",Ms("This is Admin-panel, where you manage your server. Access your files on "),u.createElement(Zo,{target:"frontend",href:"/"},"Front-end",u.createElement(ON,{sx:{verticalAlign:"sub",ml:".2em"}}))):u.createElement(JJ),!b&&vi("warning","Frontend unreachable: ",["http","https"].map(k=>k+" "+(g[k]?"is in error":"is off")).join(", "),!S.length&&[e,em("switch http or https on")]),d.find(k=>k.badApi)&&vi("warning","Some plugins may be incompatible"),!(s!=null&&s.adminActualAccess)&&vi("",Ms("On _localhost_ you don't need to login"),e,u.createElement(Zx,{to:"accounts"},Ms("to access from another computer create an account with /admin/ permission"))),LN(a,n)&&vi("warning","A proxy was detected but none is configured",e,em("set the number of proxies"),e,"unless you are sure and you can ",u.createElement(fr,{size:"small",onClick(){return lt(this,null,function*(){(yield Ha("Go on only if you know what you are doing"))&&(yield $t("set_config",{values:{ignore_proxies:!0}}))&&c()})}},"ignore this warning"),e,u.createElement(Zo,{target:"help",href:Pg+"wiki/Proxy-warning"},"Explanation")),n.frpDetected&&vi("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",{},Ms("configure FRP to connect to HFS _not_ 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)`))),vi("",u.createElement(Zo,{target:"support",href:Pg+"discussions"},"Get support")))}function vi(e,...t){return u.createElement(Je,{fontSize:"x-large",color:n=>{var r;return e&&((r=n.palette[e])==null?void 0:r.main)}},u.createElement({success:TN,info:Gf,"":Gf,warning:Uv,error:Vv}[e],{sx:{mb:"-3px",mr:1,color:e?void 0:"primary.main"}}),...t)}function mve(e="File System page"){return u.createElement(Zx,{to:"fs"},e)}function em(e="Options page"){return u.createElement(Zx,{to:"options"},e)}function LN(e,t){return e&&!e.proxies&&(t==null?void 0:t.proxyDetected)}let zl,Tw;const AN=zx({changes:{}});jx(xn,e=>{e.some(t=>t[1][0]==="config")&&FN()});const kg={log:"Access log file",error_log:"Access error log file"},SM=eo;function gve(){var v;const{data:e,reload:t,element:n}=Io("get_config",{omit:["vfs"]}),r=ta(),{changes:o}=Hx(AN),i=Io(e&&"get_status"),s=i.data,a=Tw=i.reload;u.useEffect(()=>void a(),[e]),u.useEffect(()=>()=>Tw=void 0,[]);const c=(v=bp("get_admins")[0])==null?void 0:v.list;if(n)return n;if(i.error)return i.element;const d=zl!==e?xn.config=zl=e:r.config,p={comp:Is,min:1,placeholder:"no limit",md:3},h=d.https_port>=0;return u.createElement(yp,{sx:{maxWidth:"60em"},values:d,set(b,g){xn.config[g]=b},stickyBar:!0,onError:Un,save:{onClick:m,sx:Jv(Object.keys(o).length>0)},barSx:{gap:2},addToBar:[u.createElement(fr,{onClick(){t(),a()},startIcon:u.createElement(Hv)},"Reload")],defaults(){return{sm:6}},fields:[{k:"port",comp:EM,md:3,label:"HTTP port",status:(s==null?void 0:s.http)||!0,suggestedPort:80},{k:"https_port",comp:EM,md:3,label:"HTTPS port",status:(s==null?void 0:s.https)||!0,suggestedPort:443,onChange(b){return b>=0&&!h&&!d.cert&&yve(),b}},Ot(Ie({k:"max_kbps"},p),{label:"Limit output KB/s",helperText:"Doesn't apply to localhost"}),Ot(Ie({k:"max_kbps_per_ip"},p),{label:"Limit output KB/s per-ip"}),h&&d.port>=0&&{k:"force_https",comp:Xi,md:4,label:"Force HTTPS",helperText:"Not applied to localhost"},h&&Ie({k:"cert",comp:bf,md:4,label:"HTTPS certificate file"},C$(s==null?void 0:s.https.error,b=>hE(b)?{error:!0,helperText:[b," - ",u.createElement(Zo,{key:"fix",sx:{cursor:"pointer"},onClick:gE},"make one")]}:null)),h&&Ie({k:"private_key",comp:bf,md:4,label:"HTTPS private key file"},C$(s==null?void 0:s.https.error,b=>mE(b)?{error:!0,helperText:b}:null)),{k:"open_browser_at_start",comp:Xi,label:"Open Admin-panel at start",md:4,helperText:"Browser is automatically launched with HFS"},{k:"localhost_admin",comp:Xi,label:"Unprotected admin on localhost",md:4,getError:b=>!b&&(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:ls,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:bf,placeholder:"None",fileMask:"*.png|*.ico|*.jpg|*.jpeg|*.gif|*.svg",helperText:"The icon associated to your website"},{k:"log",label:kg.log,md:3,helperText:"Requests are logged here"},{k:"error_log",label:kg.error_log,md:3,placeholder:"errors go to main log",helperText:"If you want errors in a different log"},{k:"log_rotation",comp:ls,md:3,options:[{value:"",label:"disabled"},"daily","weekly","monthly"],helperText:"To keep log-files smaller"},{k:"dont_log_net",comp:SM,label:"Don't log address",md:3,placeholder:"no exception",helperText:u.createElement(Ow)},{k:"proxies",comp:Is,min:0,max:9,sm:6,label:"How many HTTP proxies between this server and users?",error:LN(d,s),helperText:"Wrong number will prevent detection of users' IP address"},{k:"allowed_referer",placeholder:"any",label:"Links from other websites",comp:vve},{k:"dont_overwrite_uploading",comp:Xi,label:"Don't overwrite uploading",helperText:"Files will be numbered to avoid overwriting"},{k:"delete_unfinished_uploads_after",comp:Is,md:3,min:0,unit:"seconds",placeholder:"Never",helperText:"Leave empty to never delete"},{k:"min_available_mb",comp:Is,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:Xi,helperText:"Keeps you logged in while the page is left open and the computer is on"},{k:"zip_calculate_size_for_seconds",comp:Is,label:"Calculate ZIP size for",unit:"seconds",helperText:"If time is not enough, the browser will not show download percentage"},{k:"admin_net",comp:SM,label:"Admin-panel accessible from",placeholder:"any address",md:12,helperText:u.createElement(u.Fragment,{},"IP address of browser machine. ",u.createElement(Ow))},{k:"mime",comp:Hie,keyLabel:"Files",keyWidth:7,valueLabel:"Mime type",valueWidth:4},{k:"block",label:"Blocked IPs",multiline:!0,minRows:3,helperText:"Enter an IP address for each line. CIDR and * are supported.",fromField:b=>b.split(`
475
+ `).map(g=>g.trim()).filter(Boolean).map(g=>({ip:g})),toField:b=>Array.isArray(b)?b.map(g=>g==null?void 0:g.ip).filter(Boolean).join(`
476
+ `):""}]});function m(){return lt(this,null,function*(){var I,_;if(Lt.isEmpty(o))return Ii("Nothing to save");const b=window.location,g=["port","https_port"];if(g.every(M=>o[M]!==void 0))return Un("You cannot change both http and https port at once. Please, do one, save, and then do the other.","warning");const S=[(I=s==null?void 0:s.http)==null?void 0:I.listening,(_=s==null?void 0:s.https)==null?void 0:_.listening],C=location.protocol==="https:";C&&(g.reverse(),S.reverse());const E=o[g[0]],w=d[g[1]],x=w>0&&S[1],k=C?"http":"https";if(E<0&&!x)return Un("You cannot switch off this port unless you have a working fixed port for "+k,"warning");if(E===0&&!x)return Un("You cannot randomize this port unless you have a working fixed port for "+k,"warning");if(!(E>0&&!(yield Ha("You are changing the port and you may be disconnected")))&&!(C&&("cert"in o||"private_key"in o)&&!(yield Ha("You may disrupt https service, kicking you out")))){if(yield $t("set_config",{values:o}),E!==void 0)return yield Un("You are being redirected but in some cases this may fail. Hold on tight!","warning"),window.location.href=E<=0?(C?"http:":"https:")+"//"+b.hostname+":"+w+b.pathname:b.protocol+"//"+b.hostname+":"+E+b.pathname;setTimeout(a,"port"in o||"https_port"in o?1e3:0),Object.assign(zl,o),FN(),Ii("Changes applied","success")}})}}function FN(){const e={};if(xn.config)for(const[t,n]of Object.entries(xn.config))JSON.stringify(n)!==JSON.stringify(zl==null?void 0:zl[t])&&(e[t]=n);AN.changes=e}function hE(e){return/certificate/.test(e)}function mE(e){return/private key/.test(e)}function EM({label:e,value:t,onChange:n,getApi: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&&(hE(p)||mE(p)?p=void 0:s=!0),u.createElement(Je,{},u.createElement(Je,{display:"flex"},u.createElement(ls,{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(Is,{label:"Number",fullWidth:!1,value:t,onChange:n,getApi:r,error:s,min:1,max:65535,helperText:a,sx:{minWidth:"5.5em"}})),o&&u.createElement(Dv,{error:s},o===!0?"...":p!=null?p:(o==null?void 0:o.listening)&&"Correctly working on port "+o.port))}function vve({label:e,value:t,onChange:n,error:r}){const o=!t||t==="-",i="example.com";return u.createElement(Je,{display:"flex"},u.createElement(ls,{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(eo,{label:"Domain to allow",value:t,placeholder:"example.com",onChange:n,error:r,helperText:u.createElement(Ow)}))}function Ow(){return u.createElement(Zo,{target:"help",href:Pg+"wiki/Wildcards"},"Wildcards supported")}function yve(){di({Content:()=>u.createElement(Je,{},u.createElement(Je,{display:"flex",gap:1},u.createElement(Gf),"You are enabling HTTPs. It needs a valid certificate + private key to work."),u.createElement(Je,{mt:4,display:"flex",gap:1,justifyContent:"space-around"},u.createElement(fr,{variant:"contained",onClick(){Ri(),gE().then()}},"Help me!"),u.createElement(fr,{onClick:Ri},"I will handle the matter myself")))})}function gE(){return lt(this,null,function*(){if(!window.crypto.subtle)return Un("Retry this procedure on localhost","warning");const e=yield Ru({title:"We'll generate a basic certificate for you",form:{fields:[u.createElement(Je,{display:"flex",gap:1,alignItems:"center"},u.createElement(Uv),"This certificate is just one click away, but will issue a warning on the browser"),{k:"commonName",label:"Enter a domain, or leave empty"}],save:{children:"Continue"},barSx:{gap:1},addToBar:[u.createElement(Zo,{target:"cert",href:"https://letsencrypt.org/"},u.createElement(fr,{},"Get better certificate"))]}});if(!e)return;const t=Gie();try{const n=yield $t("save_pem",yield bve(e));yield $t("set_config",{values:n}),zl&&Object.assign(zl,n),setTimeout(Tw,1e3),Object.assign(xn.config,n),yield Un("Certificate saved","success")}finally{t()}})}function bve(e){return lt(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 vE={},wve=ft;Object.defineProperty(vE,"__esModule",{value:!0});var yE=vE.default=void 0,Cve=wve(gt()),xve=mt(),Sve=(0,Cve.default)((0,xve.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");yE=vE.default=Sve;var bE={},Eve=ft;Object.defineProperty(bE,"__esModule",{value:!0});var NN=bE.default=void 0,Pve=Eve(gt()),kve=mt(),_ve=(0,Pve.default)((0,kve.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");NN=bE.default=_ve;var wE={},Ive=ft;Object.defineProperty(wE,"__esModule",{value:!0});var DN=wE.default=void 0,$ve=Ive(gt()),Mve=mt(),Rve=(0,$ve.default)((0,Mve.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");DN=wE.default=Rve;var CE={},Tve=ft;Object.defineProperty(CE,"__esModule",{value:!0});var BN=CE.default=void 0,Ove=Tve(gt()),Lve=mt(),Ave=(0,Ove.default)((0,Lve.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");BN=CE.default=Ave;function Fve({account:e,done:t,groups:n,addToBar:r,reload:o}){const[i,s]=u.useState(e),[a,c]=u.useState([]);u.useEffect(()=>{var v,b;s(e),c(n.filter(g=>g!==e.username)),Koe()||(b=(v=h.current)==null?void 0:v.querySelector("input"))==null||b.focus()},[JSON.stringify(e)]);const d=!e.username,p=!i.hasPassword,h=u.useRef();return u.createElement(yp,{formRef:h,values:i,set(v,b){s(Ot(Ie({},i),{[b]:v}))},barSx:Ie({gap:2,width:"100%"},Qx()),stickyBar:!0,addToBar:[!d&&u.createElement(Nn,{icon:Ti,title:"Delete",confirm:"Delete?",onClick:()=>$t("del_account",{username:e.username}).then(()=>o())}),r,u.createElement(Je,{flex:1}),zN(i,{fontSize:"large",sx:{p:1}})],fields:[{k:"username",label:p?"Group name":void 0,autoComplete:"off",required:!0,xl:p?12:4,getError:v=>v!==e.username&&$t("get_account",{username:v}).then(b=>(b==null?void 0:b.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:(v,{values:b})=>(v||"")!==(b.password||"")&&"Enter same password"},{k:"ignore_limits",comp:Xi,xl:6,helperText:i.ignore_limits?"Speed limits don't apply to this account":"Speed limits apply to this account"},Ie({k:"admin",comp:Xi,xl:6,fromField:v=>v||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(No,{severity:"info"},'To add users to this group, select the user and then click "Inherit"'),{k:"belongs",comp:qx,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:Un,save:{sx:Jv(!Jx(i,e)),onClick(){return lt(this,null,function*(){const x=i,{password:v="",password2:b,adminActualAccess:g,hasPassword:S}=x,C=hn(x,["password","password2","adminActualAccess","hasPassword"]),{username:E}=i;if(d){const k=yield $t("add_account",C);if(v)try{yield Lw(E,v)}catch(I){throw $t("del_account",{username:E}).then(),I}t(k==null?void 0:k.username),Ii("Account created","success");return}const w=yield $t("set_account",{username:e.username,changes:C});v&&(yield Lw(E,v)),setTimeout(()=>Ii("Account modified","success"),1),t(w==null?void 0:w.username)})}}})}function Lw(e,t){return lt(this,null,function*(){const n=new Ma.SRPRoutines(new Ma.SRPParameters),r=yield Ma.createVerifierAndSalt(n,e,t);return $t("change_srp_others",{username:e,salt:String(r.s),verifier:String(r.v)}).catch(o=>{if(o.code!==406)throw o;return $t("change_password_others",{username:e,newPassword:t})})})}const zb={fieldSeparator:",",lineSeparator:`
477
+ `,quote:'"'},tm={field:0,fieldOffset:0,line:0,lineOffset:0,quoted:!1,appendCell:!1,appendField:!1,appendRow:!1};class PM extends Error{constructor(t,n){super(`Invalid CSV at ${t}:${n}`)}}class Nve{constructor(t=zb){Bi(this,"_rows",[]);Bi(this,"_row",[]);Bi(this,"_cell","");Bi(this,"_options",zb);Bi(this,"_state",Ie({},tm));Bi(this,"_index",0);Bi(this,"_current","");Bi(this,"_previous","");Bi(this,"_quoteState",Ie({},tm));this._options=Object.assign({},zb,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 PM(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=Ie({},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 PM(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=Ie({},tm),this._index=0,this._current="",this._previous="",this._quoteState=Ie({},tm)}}function Dve(e){return lt(this,null,function*(){YL(t=>lt(this,null,function*(){const n=t==null?void 0:t[0];if(!n)return;const r=yield XL(n);if(!r)return;const i=new Nve().parse(r.trim()),s={comp:Is,min:1,max:9,xs:6,typing:!0},a={skipFirstLines:0,usernameColumn:1,passwordColumn:2,groupColumn:3,redirectColumn:4,overwriteExistingAccounts:!1},c=yield Ru({title:"Import accounts from CSV",dialogProps:{maxWidth:"sm"},values:a,form:h=>{const m=i[h.skipFirstLines||0],v=p(m,Ie(Ie({},a),h));return{save:{startIcon:u.createElement(wp),children:"Go"},fields:[u.createElement(Je,{p:1},"Total lines:",i.length),{k:"skipFirstLines",comp:Is,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:Xi,md:6},Ot(Ie({k:"usernameColumn"},s),{helperText:u.createElement(u.Fragment,{},"First username: ",v.u)}),Ot(Ie({k:"passwordColumn"},s),{helperText:u.createElement(u.Fragment,{},"First password: ",v.p)}),Ot(Ie({k:"groupColumn"},s),{helperText:u.createElement(u.Fragment,{},"First group: ",v.g)}),Ot(Ie({k:"redirectColumn"},s),{helperText:u.createElement(u.Fragment,{},"First redirect: ",v.r)})]}}});if(!c)return;const d=di({title:"Importing...",Content(){const[h,m]=u.useState(0),[v,b]=u.useState();return u.useEffect(()=>{let g=!1;return setTimeout(()=>lt(this,null,function*(){var x;if(g)return;let S=0,C=0,E=c.skipFirstLines;const w=i.length-E;try{let k=0;for(const I of i){if(g)return;if(E){E--;continue}const _=p(I,c);b(_),m(k++/w),yield $t("add_account",{username:_.u,belongs:(x=_.g)==null?void 0:x.split(","),redirect:_.r,overwrite:c.overwriteExistingAccounts}).then(()=>{if(_.p)return Lw(_.u,_.p)},M=>{if(M.code===409)return C++;S++})}}finally{d();const k=w-S-C,I="Results: "+[mf("",S," failed"),mf("",k," succeeded"),mf("",C," skipped because already present")].filter(Boolean).join(", ");Un(I,!k&&S?"error":S||C?"warning":"success"),e==null||e()}})),()=>{g=!0}},[]),u.createElement(Je,{display:"flex",gap:2,alignItems:"center"},u.createElement(aA,{icon:yE,progress:h}),v==null?void 0:v.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 Bve(){const{username:e}=ta(),{data:t,reload:n,element:r}=Io("get_accounts"),[o,i]=u.useState([]),s=Array.isArray(o);u.useEffect(()=>{Array.isArray(t==null?void 0:t.list)&&s&&i(o.filter(b=>t.list.find(g=>(g==null?void 0:g.username)===b)))},[t]);const a=t==null?void 0:t.list,c=s&&Lt.find(a,{username:o[0]}),p=Va("md"),h=!(o.length>0)||!a?null:s&&o.length>1?u.createElement(u.Fragment,{},u.createElement(nS,{alignItems:"center"},u.createElement(Rr,{variant:"h6"},o.length+" selected"),u.createElement(fr,{onClick:v,startIcon:u.createElement(Ti)},"Remove")),u.createElement(Bv,{},o.map(b=>u.createElement(wL,{key:b},u.createElement(zv,{},b))))):u.createElement(Fve,{account:c||{username:"",hasPassword:o==="new-user"},groups:a.filter(b=>!b.hasPassword).map(b=>b.username),addToBar:p&&u.createElement(Nn,{icon:gp,title:"Close",onClick:m}),reload:n,done(b){i([b]),n()}});return u.useEffect(()=>{if(!(p||!h||!o.length))return di({title:Lt.isString(o)?Lt.startCase(o):o.length>1?"Multiple selection":c?(c.hasPassword?"User: ":"Group: ")+c.username:"?",Content:()=>h,onClose:m})},[p,o,c]),r||u.createElement(Qn,{container:!0,maxWidth:"80em"},u.createElement(Qn,{item:!0,xs:12},u.createElement(Je,{display:"flex",flexWrap:"wrap",gap:2,mb:2,sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper",width:"fit-content"}},u.createElement(FF,{variant:"contained",startIcon:u.createElement(BN),items:[{children:"user",onClick:()=>i("new-user")},{children:"group",onClick:()=>i("new-group")},{children:"from CSV",onClick:()=>Dve(n)}]},"Add"),tS(n),(a==null?void 0:a.length)>0&&u.createElement(Rr,{p:1},`${a.length} account(s)`))),u.createElement(Qn,{item:!0,md:5},!(a!=null&&a.length)&&u.createElement(No,{severity:"info"},Ms`To access administration _remotely_ you will need to create a user account with admin permission`),u.createElement(tA,{multiSelect:!0,sx:{pr:4,pb:2,minWidth:"15em"},selected:s?o:[],onNodeSelect(b,g){i(g)}},a==null?void 0:a.map(b=>{var g,S;return u.createElement(dw,{key:b.username,nodeId:b.username,label:u.createElement(Je,{sx:{display:"flex",flexWrap:"wrap",padding:".2em 0",gap:".5em",alignItems:"center"}},zN(b),b.adminActualAccess&&yo(NN,"Can login into Admin"),b.username,!!((g=b.belongs)!=null&&g.length)&&u.createElement(Je,{sx:{color:"text.secondary",fontSize:"small"}},"(",(S=b.belongs)==null?void 0:S.join(", "),")"))})}))),p&&h&&u.createElement(Qn,{item:!0,md:7},u.createElement(tL,{},u.createElement(nL,{},h))));function m(){i([])}function v(){return lt(this,null,function*(){if(o.length>Lt.pull(o,e).length&&(yield Un("Won't delete current account","warning")),!!o.length&&(yield Ha(`Delete ${o.length} item(s)?`)))try{const b=[];for(const g of o)(yield $t("del_account",{username:g}).then(()=>1,()=>0))||b.push(g);if(n(),b.length)return Un("Following elements couldn't be deleted: "+b.join(", "),"error")}catch(b){yield Un(b)}})}}function zN(e,t={}){return u.createElement(e.hasPassword?DN:yE,t)}function zve(){const{element:e}=Io("get_config",{only:[]}),{username:t}=ta();return e||(t?u.createElement(Je,{display:"flex",flexDirection:"column",gap:2},"You are logged in as "+t,u.createElement(Je,{},u.createElement(fr,{size:"large",variant:"contained",onClick(){$t("logout").catch(n=>n.code!==401&&Un(n))}},"Yes, I want to logout"))):u.createElement(No,{severity:"info"},"You are not logged in, because authentication is not required on localhost"))}function jve(){const{list:e,error:t,connecting:n,reload:r}=nc("list_langs",void 0,{addId:!0}),o=u.useMemo(()=>["en",...Lt.uniq(e.map(a=>a.code))],[e]),i=Va("md");return t||u.createElement(u.Fragment,{},i&&u.createElement(No,{severity:"info"},"Translation is limited to Front-end, it doesn't apply to Admin-panel"),u.createElement(Je,{mt:1,maxWidth:"40em",flex:1,display:"flex",flexDirection:"column"},u.createElement(Je,{mb:1,display:"flex"},u.createElement(fr,{variant:"contained",startIcon:u.createElement(wp),onClick:s},"Add"),u.createElement(Je,{flex:1}),u.createElement(Hve,{langs:o})),u.createElement(Yu,{loading:n,rows:e,hideFooter:!0,sx:{flex:1},columns:[{field:"code",width:80},{field:"version",width:80},{field:"hfs_version",headerName:"HFS version"},{field:"author",flex:1},{field:"actions",width:80,align:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell({row:a}){return a.embedded?"Embedded":u.createElement("div",{},u.createElement(Nn,{icon:Ti,title:"Delete",confirm:"Delete?",onClick(){return lt(this,null,function*(){yield $t("del_lang",Lt.pick(a,"code")),r(),Ii("Deleted")})}}))}}]})));function s(){YL(a=>lt(this,null,function*(){if(!a)return;const c={};for(const d of a)c[d.name]=yield XL(d);try{yield $t("add_langs",{langs:c}),r(),Ii("Loaded")}catch(d){yield Un(d)}}),{accept:".json"})}}function Hve({langs:e}){const t="force_lang",{data:n,reload:r,loading:o}=Io("get_config",{only:[t]}),[i,s]=u.useState();u.useEffect(()=>s(o?i:n[t]),[o]);const[a,c]=u.useState();return u.createElement(ls,{fullWidth:!1,disabled:o||typeof a=="string",value:a!=null?a:i,onChange(p){return lt(this,null,function*(){c(p);try{yield $t("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 Vve(){const[e,t]=u.useState(0),n=Yie(kg);return u.createElement(u.Fragment,{},u.createElement(TL,{value:e,onChange(r,o){t(o)}},n.map(r=>u.createElement(ML,{label:kg[r],key:r}))),u.createElement(Uve,{key:e,file:n[e]}))}function Uve({file:e}){const{list:t,error:n,connecting:r}=nc("get_log",{file:e},{addId:!0});return n||u.createElement(Yu,{loading:r,rows:t,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}},columns:[{field:"ip",headerName:"Address",flex:.6,minWidth:100,maxWidth:230},{field:"user",headerName:"Username",flex:.4,maxWidth:200},{field:"ts",headerName:"Timestamp",type:"dateTime",width:170,valueFormatter:({value:o})=>new Date(o).toLocaleString()},{field:"method",headerName:"Method",width:80},{field:"status",headerName:"Code",type:"number",width:70},{field:"length",headerName:"Size",type:"number",valueFormatter:({value:o})=>ja(o)},{field:"uri",headerName:"URI",flex:2,minWidth:100}]})}var xE={},Wve=ft;Object.defineProperty(xE,"__esModule",{value:!0});var Aw=xE.default=void 0,Gve=Wve(gt()),Kve=mt(),qve=(0,Gve.default)((0,Kve.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");Aw=xE.default=qve;var SE={},Yve=ft;Object.defineProperty(SE,"__esModule",{value:!0});var jN=SE.default=void 0,Xve=Yve(gt()),Qve=mt(),Jve=(0,Xve.default)((0,Qve.jsx)("path",{d:"M16 18v2H8v-2h8zM11 7.99V16h2V7.99h3L12 4 8 7.99h3z"}),"Upgrade");jN=SE.default=Jve;function HN(c){var d=c,{label:e,helperText:t,fields:n,value:r,onChange:o,onError:i,getApi:s}=d,a=hn(d,["label","helperText","fields","value","onChange","onError","getApi"]);const p=u.useMemo(()=>(r||[]).map((m,v)=>Voe(Ie({},m),"id"in m?{$idx:v}:{id:v})),[JSON.stringify(r)]),h=u.useMemo(()=>[...n.map(m=>{var v;return Ie(Ie({field:m.k,headerName:(v=m.headerName)!=null?v:typeof m.label=="string"?m.label:rA(m.k),disableColumnMenu:!0},m.$width>=8?{width:m.$width}:{flex:m.$width||1}),m.$column)}),{field:"",width:80,disableColumnMenu:!0,sortable:!1,align:"center",headerAlign:"center",renderHeader(){return u.createElement(Nn,{icon:Qv,title:"Add",onClick:m=>Ru({form:{fields:n}}).then(v=>v&&o([...r||[],v],{was:r,event:m}))})},renderCell({row:m}){const{$idx:v=m.id}=m;return u.createElement("div",{},u.createElement(Nn,{icon:dE,title:"Modify",onClick:b=>Ru({values:m,form:{fields:n}}).then(g=>{if(!g)return;const S=r.map((C,E)=>E===v?g:C);o(S,{was:r,event:b})})}),u.createElement(Nn,{icon:Ti,title:"Delete",confirm:"Delete?",onClick(b){const g=r.filter((S,C)=>C!==v);o(g,{was:r,event:b})}}))}}],[n,r,o]);return u.createElement(u.Fragment,{},e&&u.createElement(dL,{sx:{ml:1}},e),t&&u.createElement(Dv,{},t),u.createElement(Je,Ie({height:"20em"},a),u.createElement(Yu,{columns:h,rows:p,hideFooterSelectedRowCount:!0,hideFooter:!0,componentsProps:{pagination:{showFirstButton:!0,showLastButton:!0}}})))}function kM({updates:e}){const{list:t,setList:n,error:r,initializing:o}=nc(e?"get_plugin_updates":"get_plugins");return r?WN(r):u.createElement(Yu,{rows:t.length?t:[],loading:o,disableColumnSelector:!0,disableColumnMenu:!0,columnVisibilityModel:{started:!e},localeText:e&&{noRowsLabel:'No updates available. Only plugins available on "search online" are checked.'},columns:[{field:"id",headerName:"name",flex:.3,minWidth:150,renderCell:VN},{field:"version",width:70},{field:"description",flex:1},{field:"actions",width:120,align:"center",headerAlign:"center",hideSortIcons:!0,disableColumnMenu:!0,renderCell({row:i}){const{config:s,id:a}=i;return e?u.createElement(GN,{id:a,then:()=>n(t.filter(p=>p.id!==a))}):u.createElement("div",{},u.createElement(Nn,i.started?{icon:Aw,title:u.createElement(Je,{},`Stop ${a}`,u.createElement("br"),"Started "+new Date(i.started).toLocaleString()),color:"success",onClick:()=>$t("set_plugin",{id:a,enabled:!1}).then(()=>Ii("Plugin is stopping",u.createElement(Aw,{color:"warning"})))}:{icon:Zv,title:`Start ${a}`,onClick:()=>KN(a)}),u.createElement(Nn,{icon:_x,title:"Options",disabled:!i.started&&"Start plugin to access options"||!s&&"No options available for this plugin",progress:!1,onClick(){return lt(this,null,function*(){const p=yield $t("get_plugin",{id:a}),h=yield Ru({title:`${a} options`,form:{before:u.createElement(Je,{mx:2,mb:3},i.description),fields:UN(s)},values:p.config,dialogProps:i.configDialog});!h||Lt.isEqual(p.config,h)||(yield $t("set_plugin",{id:a,config:h}),Ii("Configuration saved"))})}}),u.createElement(Nn,{icon:Ti,title:"Uninstall",confirm:"Remove?",onClick(){return lt(this,null,function*(){yield $t("uninstall_plugin",{id:a}),Ii("Plugin uninstalled")})}}))}}]})}function VN({row:e,value:t}){const{repo:n}=e,r=typeof e.badApi=="string"&&u.createElement(hp,{title:e.badApi,children:u.createElement(Vv,{fontSize:"small",color:"warning",sx:{ml:-.5,mr:.5}})});if(!n)return[r,t];const o=n.split("/"),i=u.createElement(Zo,{href:"https://github.com/"+n,target:"plugin"},o[1]);return u.createElement(u.Fragment,{},r,i," by ",o[0])}function UN(e){return Object.entries(e).map(([t,n])=>{if(!Lt.isPlainObject(n))return n;let d=n,{type:r,defaultValue:o,fields:i,frontend:s}=d,a=hn(d,["type","defaultValue","fields","frontend"]);const c=Zve[r];return c===HN&&(i=UN(i)),o!==void 0&&r==="boolean"&&(a.placeholder=`Default value is ${JSON.stringify(o)}`),Ie({k:t,comp:c,fields:i},a)})}const Zve={string:eo,number:Is,boolean:Xi,select:ls,multiselect:qx,array:HN,real_path:bf};function WN(e){return u.createElement(No,{severity:"error"},Xie(e,{ENOTFOUND:"Couldn't reach github.com"}))}function GN({id:e,then:t}){return u.createElement(Nn,{icon:jN,title:"Update",onClick(){return lt(this,null,function*(){yield $t("update_plugin",{id:e}),t==null||t(e),Ii("Plugin updated")})}})}function KN(e){return $t("set_plugin",{id:e,enabled:!0}).then(()=>Ii("Plugin is starting",u.createElement(Zv,{color:"success"})))}var EE={},eye=ft;Object.defineProperty(EE,"__esModule",{value:!0});var qN=EE.default=void 0,tye=eye(gt()),nye=mt(),rye=(0,tye.default)((0,nye.jsx)("path",{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"}),"Download");qN=EE.default=rye;var PE={},oye=ft;Object.defineProperty(PE,"__esModule",{value:!0});var YN=PE.default=void 0,iye=oye(gt()),sye=mt(),lye=(0,iye.default)((0,sye.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");YN=PE.default=lye;function aye(){const[e,t]=u.useState(""),n=VL(e,1e3),{list:r,error:o,initializing:i,updateList:s}=nc("search_online_plugins",{text:n}),a=ta();return o?WN(o):u.createElement(u.Fragment,{},u.createElement(eo,{value:e,onChange:t,start:u.createElement(YN),typing:!0,label:"Search text"}),u.createElement(Yu,{rows:r.length?r:[],localeText:{noRowsLabel:"No compatible plugins have been found"},loading:i,columnVisibilityModel:a.onlinePluginsColumns,onColumnVisibilityModelChange:c=>Object.assign(xn.onlinePluginsColumns,c),columns:[{field:"id",headerName:"name",flex:1,renderCell:VN},{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},{field:"stargazers_count",width:50,headerName:"stars",align:"center"},{field:"actions",width:80,align:"center",hideSortIcons:!0,disableColumnMenu:!0,hideable:!1,renderCell({row:c}){const{id:d,branch:p}=c;return u.createElement("div",{},c.update?u.createElement(GN,{id:d,then(){s(m=>Lt.find(m,{id:d}).update=!1)}}):u.createElement(Nn,{icon:qN,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 lt(this,null,function*(){const m=yield $t("download_plugin",{id:d,branch:p});yield KN(m.id)})}}))}}]}))}const XN={Installed:kM,"Search online":aye,"Check updates":()=>u.createElement(kM,{updates:!0})},cye=Object.keys(XN),uye=Object.values(XN);function dye(){const[e,t]=u.useState(0);return u.createElement(u.Fragment,{},u.createElement(TL,{value:e,onChange(n,r){t(r)}},cye.map(n=>u.createElement(ML,{label:n,key:n}))),u.createElement(uye[e]))}var QN={},fye=Cn&&Cn.__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)}}(),ar=Cn&&Cn.__assign||function(){return ar=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},ar.apply(this,arguments)},pye=Cn&&Cn.__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]}),hye=Cn&&Cn.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),mye=Cn&&Cn.__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)&&pye(t,e,n);return hye(t,e),t},gye=Cn&&Cn.__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(QN,"__esModule",{value:!0});var Nd=mye(u),vye=13,yye=9,bye=8,wye=89,nm=90,Cye=77,_M=57,IM=219,$M=222,MM=192,xye=27,RM=100,Sye=3e3,Eye=typeof window!="undefined"&&"navigator"in window&&/Win/i.test(navigator.platform),jb=typeof window!="undefined"&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),_m="npm__react-simple-code-editor__textarea",Pye=`
478
+ /**
479
+ * Reset the text fill color so that placeholder is visible
480
+ */
481
+ .`.concat(_m,`:empty {
482
+ -webkit-text-fill-color: inherit !important;
483
+ }
484
+
485
+ /**
486
+ * Hack to apply on some CSS on IE10 and IE11
487
+ */
488
+ @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
489
+ /**
490
+ * IE doesn't support '-webkit-text-fill-color'
491
+ * So we use 'color: transparent' to make the text transparent on IE
492
+ * Unlike other browsers, it doesn't affect caret color in IE
493
+ */
494
+ .`).concat(_m,` {
495
+ color: transparent !important;
496
+ }
497
+
498
+ .`).concat(_m,`::selection {
499
+ background-color: #accef7 !important;
500
+ color: transparent !important;
501
+ }
502
+ }
503
+ `),kye=function(e){fye(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(`
504
+ `)},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>RM){var m=h-RM;n._history.stack=d.slice(m,h),n._history.offset=Math.max(n._history.offset-m,0)}}var v=Date.now();if(o){var b=n._history.stack[n._history.offset];if(b&&v-b.timestamp<Sye){var g=/[^a-z0-9]([a-z0-9]+)$/i,S=(i=n._getLines(b.value,b.selectionStart).pop())===null||i===void 0?void 0:i.match(g),C=(s=n._getLines(r.value,r.selectionStart).pop())===null||s===void 0?void 0:s.match(g);if(S!=null&&S[1]&&(!((a=C==null?void 0:C[1])===null||a===void 0)&&a.startsWith(S[1]))){n._history.stack[n._history.offset]=ar(ar({},r),{timestamp:v});return}}}n._history.stack.push(ar(ar({},r),{timestamp:v})),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]=ar(ar({},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===xye&&r.currentTarget.blur();var d=r.currentTarget,p=d.value,h=d.selectionStart,m=d.selectionEnd,v=(s?" ":" ").repeat(i);if(r.keyCode===yye&&!a&&n.state.capture)if(r.preventDefault(),r.shiftKey){var b=n._getLines(p,h),g=b.length-1,S=n._getLines(p,m).length-1,C=p.split(`
505
+ `).map(function(H,j){return j>=g&&j<=S&&H.startsWith(v)?H.substring(v.length):H}).join(`
506
+ `);if(p!==C){var E=b[g];n._applyEdits({value:C,selectionStart:E!=null&&E.startsWith(v)?h-v.length:h,selectionEnd:m-(p.length-C.length)})}}else if(h!==m){var b=n._getLines(p,h),w=b.length-1,x=n._getLines(p,m).length-1,E=b[w];n._applyEdits({value:p.split(`
507
+ `).map(function(A,F){return F>=w&&F<=x?v+A:A}).join(`
508
+ `),selectionStart:E&&/\S/.test(E)?h+v.length:h,selectionEnd:m+v.length*(x-w+1)})}else{var k=h+v.length;n._applyEdits({value:p.substring(0,h)+v+p.substring(m),selectionStart:k,selectionEnd:k})}else if(r.keyCode===bye){var I=h!==m,_=p.substring(0,h);if(_.endsWith(v)&&!I){r.preventDefault();var k=h-v.length;n._applyEdits({value:p.substring(0,h-v.length)+p.substring(m),selectionStart:k,selectionEnd:k})}}else if(r.keyCode===vye){if(h===m){var M=n._getLines(p,h).pop(),O=M==null?void 0:M.match(/^\s+/);if(O!=null&&O[0]){r.preventDefault();var R=`
509
+ `+O[0],k=h+R.length;n._applyEdits({value:p.substring(0,h)+R+p.substring(m),selectionStart:k,selectionEnd:k})}}}else if(r.keyCode===_M||r.keyCode===IM||r.keyCode===$M||r.keyCode===MM){var L=void 0;r.keyCode===_M&&r.shiftKey?L=["(",")"]:r.keyCode===IM?r.shiftKey?L=["{","}"]:L=["[","]"]:r.keyCode===$M?r.shiftKey?L=['"','"']:L=["'","'"]:r.keyCode===MM&&!r.shiftKey&&(L=["`","`"]),h!==m&&L&&(r.preventDefault(),n._applyEdits({value:p.substring(0,h)+L[0]+p.substring(h,m)+L[1]+p.substring(m),selectionStart:h,selectionEnd:m+2}))}else(jb?r.metaKey&&r.keyCode===nm:r.ctrlKey&&r.keyCode===nm)&&!r.shiftKey&&!r.altKey?(r.preventDefault(),n._undoEdit()):(jb?r.metaKey&&r.keyCode===nm&&r.shiftKey:Eye?r.ctrlKey&&r.keyCode===wye:r.ctrlKey&&r.keyCode===nm&&r.shiftKey)&&!r.altKey?(r.preventDefault(),n._redoEdit()):r.keyCode===Cye&&r.ctrlKey&&(!jb||r.shiftKey)&&(r.preventDefault(),n.setState(function(H){return{capture:!H.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,v=r.maxLength,b=r.minLength,g=r.name,S=r.placeholder,C=r.readOnly,E=r.required,w=r.onClick,x=r.onFocus,k=r.onBlur,I=r.onKeyUp;r.onKeyDown,r.onValueChange,r.tabSize,r.insertSpaces,r.ignoreTabKey;var _=r.preClassName,M=gye(r,["value","style","padding","highlight","textareaId","textareaClassName","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey","preClassName"]),O={paddingTop:typeof 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},R=a(o);return Nd.createElement("div",ar({},M,{style:ar(ar({},Dd.container),i)}),Nd.createElement("pre",ar({className:_,"aria-hidden":"true",style:ar(ar(ar({},Dd.editor),Dd.highlight),O)},typeof R=="string"?{dangerouslySetInnerHTML:{__html:R+"<br />"}}:{children:R})),Nd.createElement("textarea",{ref:function(L){return n._input=L},style:ar(ar(ar({},Dd.editor),Dd.textarea),O),className:_m+(d?" ".concat(d):""),id:c,value:o,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:w,onKeyUp:I,onFocus:x,onBlur:k,disabled:h,form:m,maxLength:v,minLength:b,name:g,placeholder:S,readOnly:C,required:E,autoFocus:p,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),Nd.createElement("style",{dangerouslySetInnerHTML:{__html:Pye}}))},t.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t}(Nd.Component),_ye=QN.default=kye,Dd={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 Iye(){const{data:e,reload:t}=Io("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 v;return{value:m,label:Lt.startCase(m)+((v=o[m])!=null&&v.trim()?" *":"")}})},[VL(o,500)]),d=u.useMemo(()=>!Lt.isEqualWith(s,o,(h,m)=>!h&&!m||void 0),[s,o]);return u.createElement(u.Fragment,{},u.createElement(No,{severity:"info"},Ms("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. "),u.createElement(Zo,{href:Pg+"wiki/customization",target:"help"},"More help")),u.createElement(Je,{display:"flex",alignItems:"center",gap:1,mb:1},u.createElement(ls,{label:"Section",value:n,options:c,onChange:r}),tS(t),u.createElement(Nn,{icon:Gx,title:`Save
510
+ (ctrl+s)`,sx:Jv(d),onClick:p})),u.createElement(_ye,{value:(o==null?void 0:o[n])||"",onValueChange:h=>i(m=>Ot(Ie({},m),{[n]:h})),highlight:$ye,onKeyDown:h=>{Jie(h)==="s"&&(p().then(),h.preventDefault())},padding:10,tabSize:4,insertSpaces:!0,ignoreTabKey:!1,style:{fontFamily:"ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace",fontSize:"1em",flex:1,background:"#8881"}}));function p(){return $t("set_custom_html",{sections:o}).then(()=>a(o))}}function $ye(e){return e.replace(/[\u0000-\u002F\u003A-\u0040\u005B-\u0060\u007B-\u00FF]/g,t=>"&#"+("000"+t.charCodeAt(0)).slice(-4)+";")}const Fw=[{path:"",icon:BL,label:"Home",title:"Admin panel",comp:hve},{path:"fs",icon:OL,label:"Shared files",comp:qge},{path:"accounts",icon:NL,comp:Bve},{path:"options",icon:_x,comp:gve},{path:"monitoring",icon:DL,comp:whe},{path:"logs",icon:AL,comp:Vve},{path:"language",icon:zL,comp:jve},{path:"plugins",icon:LL,comp:dye},{path:"html",icon:jL,label:"Custom HTML",comp:Iye},{path:"logout",icon:FL,comp:zve}];let Hb;function TM({onSelect:e}){var n;const[t]=bp(!Hb&&"get_status");return Hb||(Hb=(n=t==null?void 0:t.version)==null?void 0:n.replace("-"," ")),u.createElement(Je,{display:"flex",flexDirection:"column",bgcolor:"primary.main",minHeight:"100%"},u.createElement(Bv,{sx:{pr:1,color:"primary.contrastText",height:"100vh",boxSizing:"border-box",overflowY:"auto",position:"sticky",top:0,display:"flex",flexDirection:"column","&>a":{flex:"0"}}},u.createElement(Je,{display:"flex",px:2,py:1,gap:2,alignItems:"flex-end"},u.createElement(Rr,{variant:"h3"},"HFS"),u.createElement(Je,{pb:1,fontSize:"small"},Hb)),Fw.map(r=>u.createElement(EZ,{key:r.path,to:r.path,component:F8,onClick:e,style:({isActive:o})=>o?{textDecoration:"underline"}:{},children:void 0},r.icon&&u.createElement(CL,{sx:{color:"primary.contrastText",minWidth:48}},u.createElement(r.icon)),u.createElement(zv,{sx:{whiteSpace:"nowrap"},primary:JN(r)}))),u.createElement(Je,{sx:{flex:1,opacity:.7,background:"url(hfs-logo.svg) no-repeat bottom",backgroundSize:"contain",margin:2}})))}function JN(e){var t;return e&&((t=e.label)!=null?t:Lt.capitalize(e.path))}function Mye({children:e}){const{loginRequired:t}=ta();return t===403?u.createElement(eS,{},u.createElement(No,{severity:"error"},"Admin-panel only for localhost"),u.createElement(Je,{mt:2,fontSize:"small"},"because no admin account was configured")):t?u.createElement(Rye):u.createElement(u.Fragment,{},e)}function Rye(){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(eS,{},u.createElement(yp,{formRef:o,values:e,set(c,d){t(Ot(Ie({},e),{[d]:c}))},fields:[{k:"username",autoComplete:"username",autoFocus:!0,required:!0},{k:"password",type:"password",autoComplete:"current-password",required:!0}],addToBar:[n&&u.createElement(No,{severity:"error",sx:{flex:1}},n)],saveOnEnter:!0,save:{children:"Enter",startIcon:null,onClick(){return lt(this,null,function*(){try{r(""),yield Tye(e.username,e.password)}catch(c){r(String(c))}})}}}))}function Tye(e,t){return lt(this,null,function*(){const n=yield Boe(e,t,$t).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";xn.loginRequired=!1,kE(n)})}kE(QL().session);function kE(e){if(!e)return;const{exp:t,username:n}=e;if(xn.username=n,!n||!t)return;const r=new Date(t).getTime()-Date.now(),o=Math.min(r-3e4,6e5);console.debug("session refresh in",Math.round(o/1e3)),setTimeout(()=>$t("refresh_session").then(kE),o)}var _E={},Oye=ft;Object.defineProperty(_E,"__esModule",{value:!0});var ZN=_E.default=void 0,Lye=Oye(gt()),Aye=mt(),Fye=(0,Lye.default)((0,Aye.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");ZN=_E.default=Fye;function Nye(){return u.createElement(yW,{theme:Uie()},u.createElement(Dye,{},u.createElement(Mye,{},u.createElement(O8,{},u.createElement(Bye)))))}function Dye(e){return u.createElement(Je,Ie({sx:{bgcolor:"background.default",color:"text.primary",display:"flex",flexDirection:"column",minHeight:"100%",flex:1}},e))}function Bye(){const e=ju().pathname.slice(1),t=Fw.find(s=>s.path===e),n=t&&(t.title||JN(t)),[r,o]=u.useState(!1),i=Va("lg");return u.createElement(u.Fragment,{},!i&&u.createElement(zye,{title:n,openMenu:()=>o(!0)}),!i&&u.createElement(MQ,{anchor:"left",open:r,onClose(){o(!1)}},u.createElement(TM,{onSelect:()=>o(!1)})),u.createElement(Je,{display:"flex",flex:1},i&&u.createElement(TM),u.createElement(Je,{component:"main",sx:{background:"url(cup.svg) no-repeat right fixed",backgroundSize:"contain",px:{xs:2,md:3},pb:"1em",position:"relative",display:"flex",flexDirection:"column",width:"100%"}},n&&i&&u.createElement(Rr,{variant:"h2",mb:2},n),u.createElement(I8,{},Fw.map((s,a)=>u.createElement(YT,{key:a,path:s.path,element:u.createElement(s.comp)})))),u.createElement($oe)))}function zye({title:e,openMenu:t}){return u.createElement(Fq,{position:"sticky",sx:{mb:2}},u.createElement(RL,{},u.createElement(ur,{size:"large",edge:"start",color:"inherit",sx:{mr:2},"aria-label":"menu",onClick:t},u.createElement(ZN)),e))}HT(document.getElementById("root")).render(u.createElement(u.StrictMode,{},u.createElement(Nye)));export{Cn as c};